@paimaexample/explorer 0.3.43 → 0.3.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,392 +0,0 @@
1
- var $N=e=>{throw TypeError(e)};var CA=(e,n,i)=>n.has(e)||$N("Cannot "+i);var Ut=(e,n,i)=>(CA(e,n,"read from private field"),i?i.call(e):n.get(e)),ra=(e,n,i)=>n.has(e)?$N("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,i),is=(e,n,i,a)=>(CA(e,n,"write to private field"),a?a.call(e,i):n.set(e,i),i),Nt=(e,n,i)=>(CA(e,n,"access private method"),i);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))a(u);new MutationObserver(u=>{for(const l of u)if(l.type==="childList")for(const f of l.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&a(f)}).observe(document,{childList:!0,subtree:!0});function i(u){const l={};return u.integrity&&(l.integrity=u.integrity),u.referrerPolicy&&(l.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?l.credentials="include":u.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(u){if(u.ep)return;u.ep=!0;const l=i(u);fetch(u.href,l)}})();var da=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var TA={exports:{}},Im={},OA={exports:{}},RA={},id={},qN;function v5(){if(qN)return id;qN=1,id.byteLength=p,id.toByteArray=m,id.fromByteArray=y;for(var e=[],n=[],i=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,l=a.length;u<l;++u)e[u]=a[u],n[a.charCodeAt(u)]=u;n[45]=62,n[95]=63;function f(I){var R=I.length;if(R%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var U=I.indexOf("=");U===-1&&(U=R);var F=U===R?0:4-U%4;return[U,F]}function p(I){var R=f(I),U=R[0],F=R[1];return(U+F)*3/4-F}function h(I,R,U){return(R+U)*3/4-U}function m(I){var R,U=f(I),F=U[0],N=U[1],B=new i(h(I,F,N)),M=0,H=N>0?F-4:F,k;for(k=0;k<H;k+=4)R=n[I.charCodeAt(k)]<<18|n[I.charCodeAt(k+1)]<<12|n[I.charCodeAt(k+2)]<<6|n[I.charCodeAt(k+3)],B[M++]=R>>16&255,B[M++]=R>>8&255,B[M++]=R&255;return N===2&&(R=n[I.charCodeAt(k)]<<2|n[I.charCodeAt(k+1)]>>4,B[M++]=R&255),N===1&&(R=n[I.charCodeAt(k)]<<10|n[I.charCodeAt(k+1)]<<4|n[I.charCodeAt(k+2)]>>2,B[M++]=R>>8&255,B[M++]=R&255),B}function v(I){return e[I>>18&63]+e[I>>12&63]+e[I>>6&63]+e[I&63]}function A(I,R,U){for(var F,N=[],B=R;B<U;B+=3)F=(I[B]<<16&16711680)+(I[B+1]<<8&65280)+(I[B+2]&255),N.push(v(F));return N.join("")}function y(I){for(var R,U=I.length,F=U%3,N=[],B=16383,M=0,H=U-F;M<H;M+=B)N.push(A(I,M,M+B>H?H:M+B));return F===1?(R=I[U-1],N.push(e[R>>2]+e[R<<4&63]+"==")):F===2&&(R=(I[U-2]<<8)+I[U-1],N.push(e[R>>10]+e[R>>4&63]+e[R<<2&63]+"=")),N.join("")}return id}var Cm={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var HN;function x5(){return HN||(HN=1,Cm.read=function(e,n,i,a,u){var l,f,p=u*8-a-1,h=(1<<p)-1,m=h>>1,v=-7,A=i?u-1:0,y=i?-1:1,I=e[n+A];for(A+=y,l=I&(1<<-v)-1,I>>=-v,v+=p;v>0;l=l*256+e[n+A],A+=y,v-=8);for(f=l&(1<<-v)-1,l>>=-v,v+=a;v>0;f=f*256+e[n+A],A+=y,v-=8);if(l===0)l=1-m;else{if(l===h)return f?NaN:(I?-1:1)*(1/0);f=f+Math.pow(2,a),l=l-m}return(I?-1:1)*f*Math.pow(2,l-a)},Cm.write=function(e,n,i,a,u,l){var f,p,h,m=l*8-u-1,v=(1<<m)-1,A=v>>1,y=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=a?0:l-1,R=a?1:-1,U=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(p=isNaN(n)?1:0,f=v):(f=Math.floor(Math.log(n)/Math.LN2),n*(h=Math.pow(2,-f))<1&&(f--,h*=2),f+A>=1?n+=y/h:n+=y*Math.pow(2,1-A),n*h>=2&&(f++,h/=2),f+A>=v?(p=0,f=v):f+A>=1?(p=(n*h-1)*Math.pow(2,u),f=f+A):(p=n*Math.pow(2,A-1)*Math.pow(2,u),f=0));u>=8;e[i+I]=p&255,I+=R,p/=256,u-=8);for(f=f<<u|p,m+=u;m>0;e[i+I]=f&255,I+=R,f/=256,m-=8);e[i+I-R]|=U*128}),Cm}/*!
2
- * The buffer module from node.js, for the browser.
3
- *
4
- * @author Feross Aboukhadijeh <https://feross.org>
5
- * @license MIT
6
- */var zN;function E5(){return zN||(zN=1,(function(e){var n=v5(),i=x5(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=p,e.SlowBuffer=B,e.INSPECT_MAX_BYTES=50;var u=2147483647;e.kMaxLength=u,p.TYPED_ARRAY_SUPPORT=l(),!p.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 l(){try{var E=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(E,g),E.foo()===42}catch{return!1}}Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}});function f(E){if(E>u)throw new RangeError('The value "'+E+'" is invalid for option "size"');var g=new Uint8Array(E);return Object.setPrototypeOf(g,p.prototype),g}function p(E,g,b){if(typeof E=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return A(E)}return h(E,g,b)}p.poolSize=8192;function h(E,g,b){if(typeof E=="string")return y(E,g);if(ArrayBuffer.isView(E))return R(E);if(E==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E);if(W(E,ArrayBuffer)||E&&W(E.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(W(E,SharedArrayBuffer)||E&&W(E.buffer,SharedArrayBuffer)))return U(E,g,b);if(typeof E=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var C=E.valueOf&&E.valueOf();if(C!=null&&C!==E)return p.from(C,g,b);var K=F(E);if(K)return K;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof E[Symbol.toPrimitive]=="function")return p.from(E[Symbol.toPrimitive]("string"),g,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E)}p.from=function(E,g,b){return h(E,g,b)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array);function m(E){if(typeof E!="number")throw new TypeError('"size" argument must be of type number');if(E<0)throw new RangeError('The value "'+E+'" is invalid for option "size"')}function v(E,g,b){return m(E),E<=0?f(E):g!==void 0?typeof b=="string"?f(E).fill(g,b):f(E).fill(g):f(E)}p.alloc=function(E,g,b){return v(E,g,b)};function A(E){return m(E),f(E<0?0:N(E)|0)}p.allocUnsafe=function(E){return A(E)},p.allocUnsafeSlow=function(E){return A(E)};function y(E,g){if((typeof g!="string"||g==="")&&(g="utf8"),!p.isEncoding(g))throw new TypeError("Unknown encoding: "+g);var b=M(E,g)|0,C=f(b),K=C.write(E,g);return K!==b&&(C=C.slice(0,K)),C}function I(E){for(var g=E.length<0?0:N(E.length)|0,b=f(g),C=0;C<g;C+=1)b[C]=E[C]&255;return b}function R(E){if(W(E,Uint8Array)){var g=new Uint8Array(E);return U(g.buffer,g.byteOffset,g.byteLength)}return I(E)}function U(E,g,b){if(g<0||E.byteLength<g)throw new RangeError('"offset" is outside of buffer bounds');if(E.byteLength<g+(b||0))throw new RangeError('"length" is outside of buffer bounds');var C;return g===void 0&&b===void 0?C=new Uint8Array(E):b===void 0?C=new Uint8Array(E,g):C=new Uint8Array(E,g,b),Object.setPrototypeOf(C,p.prototype),C}function F(E){if(p.isBuffer(E)){var g=N(E.length)|0,b=f(g);return b.length===0||E.copy(b,0,0,g),b}if(E.length!==void 0)return typeof E.length!="number"||de(E.length)?f(0):I(E);if(E.type==="Buffer"&&Array.isArray(E.data))return I(E.data)}function N(E){if(E>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return E|0}function B(E){return+E!=E&&(E=0),p.alloc(+E)}p.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==p.prototype},p.compare=function(g,b){if(W(g,Uint8Array)&&(g=p.from(g,g.offset,g.byteLength)),W(b,Uint8Array)&&(b=p.from(b,b.offset,b.byteLength)),!p.isBuffer(g)||!p.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===b)return 0;for(var C=g.length,K=b.length,xe=0,Re=Math.min(C,K);xe<Re;++xe)if(g[xe]!==b[xe]){C=g[xe],K=b[xe];break}return C<K?-1:K<C?1:0},p.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}},p.concat=function(g,b){if(!Array.isArray(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return p.alloc(0);var C;if(b===void 0)for(b=0,C=0;C<g.length;++C)b+=g[C].length;var K=p.allocUnsafe(b),xe=0;for(C=0;C<g.length;++C){var Re=g[C];if(W(Re,Uint8Array))xe+Re.length>K.length?p.from(Re).copy(K,xe):Uint8Array.prototype.set.call(K,Re,xe);else if(p.isBuffer(Re))Re.copy(K,xe);else throw new TypeError('"list" argument must be an Array of Buffers');xe+=Re.length}return K};function M(E,g){if(p.isBuffer(E))return E.length;if(ArrayBuffer.isView(E)||W(E,ArrayBuffer))return E.byteLength;if(typeof E!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof E);var b=E.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&b===0)return 0;for(var K=!1;;)switch(g){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return Ae(E).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return $(E).length;default:if(K)return C?-1:Ae(E).length;g=(""+g).toLowerCase(),K=!0}}p.byteLength=M;function H(E,g,b){var C=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,g>>>=0,b<=g))return"";for(E||(E="utf8");;)switch(E){case"hex":return te(this,g,b);case"utf8":case"utf-8":return ge(this,g,b);case"ascii":return fe(this,g,b);case"latin1":case"binary":return be(this,g,b);case"base64":return oe(this,g,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,g,b);default:if(C)throw new TypeError("Unknown encoding: "+E);E=(E+"").toLowerCase(),C=!0}}p.prototype._isBuffer=!0;function k(E,g,b){var C=E[g];E[g]=E[b],E[b]=C}p.prototype.swap16=function(){var g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var b=0;b<g;b+=2)k(this,b,b+1);return this},p.prototype.swap32=function(){var g=this.length;if(g%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var b=0;b<g;b+=4)k(this,b,b+3),k(this,b+1,b+2);return this},p.prototype.swap64=function(){var g=this.length;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var b=0;b<g;b+=8)k(this,b,b+7),k(this,b+1,b+6),k(this,b+2,b+5),k(this,b+3,b+4);return this},p.prototype.toString=function(){var g=this.length;return g===0?"":arguments.length===0?ge(this,0,g):H.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(g){if(!p.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:p.compare(this,g)===0},p.prototype.inspect=function(){var g="",b=e.INSPECT_MAX_BYTES;return g=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(g+=" ... "),"<Buffer "+g+">"},a&&(p.prototype[a]=p.prototype.inspect),p.prototype.compare=function(g,b,C,K,xe){if(W(g,Uint8Array)&&(g=p.from(g,g.offset,g.byteLength)),!p.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(b===void 0&&(b=0),C===void 0&&(C=g?g.length:0),K===void 0&&(K=0),xe===void 0&&(xe=this.length),b<0||C>g.length||K<0||xe>this.length)throw new RangeError("out of range index");if(K>=xe&&b>=C)return 0;if(K>=xe)return-1;if(b>=C)return 1;if(b>>>=0,C>>>=0,K>>>=0,xe>>>=0,this===g)return 0;for(var Re=xe-K,ze=C-b,ce=Math.min(Re,ze),le=this.slice(K,xe),Ce=g.slice(b,C),Me=0;Me<ce;++Me)if(le[Me]!==Ce[Me]){Re=le[Me],ze=Ce[Me];break}return Re<ze?-1:ze<Re?1:0};function X(E,g,b,C,K){if(E.length===0)return-1;if(typeof b=="string"?(C=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,de(b)&&(b=K?0:E.length-1),b<0&&(b=E.length+b),b>=E.length){if(K)return-1;b=E.length-1}else if(b<0)if(K)b=0;else return-1;if(typeof g=="string"&&(g=p.from(g,C)),p.isBuffer(g))return g.length===0?-1:re(E,g,b,C,K);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?K?Uint8Array.prototype.indexOf.call(E,g,b):Uint8Array.prototype.lastIndexOf.call(E,g,b):re(E,[g],b,C,K);throw new TypeError("val must be string, number or Buffer")}function re(E,g,b,C,K){var xe=1,Re=E.length,ze=g.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(E.length<2||g.length<2)return-1;xe=2,Re/=2,ze/=2,b/=2}function ce(tt,Ze){return xe===1?tt[Ze]:tt.readUInt16BE(Ze*xe)}var le;if(K){var Ce=-1;for(le=b;le<Re;le++)if(ce(E,le)===ce(g,Ce===-1?0:le-Ce)){if(Ce===-1&&(Ce=le),le-Ce+1===ze)return Ce*xe}else Ce!==-1&&(le-=le-Ce),Ce=-1}else for(b+ze>Re&&(b=Re-ze),le=b;le>=0;le--){for(var Me=!0,Le=0;Le<ze;Le++)if(ce(E,le+Le)!==ce(g,Le)){Me=!1;break}if(Me)return le}return-1}p.prototype.includes=function(g,b,C){return this.indexOf(g,b,C)!==-1},p.prototype.indexOf=function(g,b,C){return X(this,g,b,C,!0)},p.prototype.lastIndexOf=function(g,b,C){return X(this,g,b,C,!1)};function ie(E,g,b,C){b=Number(b)||0;var K=E.length-b;C?(C=Number(C),C>K&&(C=K)):C=K;var xe=g.length;C>xe/2&&(C=xe/2);for(var Re=0;Re<C;++Re){var ze=parseInt(g.substr(Re*2,2),16);if(de(ze))return Re;E[b+Re]=ze}return Re}function O(E,g,b,C){return Y(Ae(g,E.length-b),E,b,C)}function P(E,g,b,C){return Y(V(g),E,b,C)}function L(E,g,b,C){return Y($(g),E,b,C)}function q(E,g,b,C){return Y(w(g,E.length-b),E,b,C)}p.prototype.write=function(g,b,C,K){if(b===void 0)K="utf8",C=this.length,b=0;else if(C===void 0&&typeof b=="string")K=b,C=this.length,b=0;else if(isFinite(b))b=b>>>0,isFinite(C)?(C=C>>>0,K===void 0&&(K="utf8")):(K=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var xe=this.length-b;if((C===void 0||C>xe)&&(C=xe),g.length>0&&(C<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");K||(K="utf8");for(var Re=!1;;)switch(K){case"hex":return ie(this,g,b,C);case"utf8":case"utf-8":return O(this,g,b,C);case"ascii":case"latin1":case"binary":return P(this,g,b,C);case"base64":return L(this,g,b,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,g,b,C);default:if(Re)throw new TypeError("Unknown encoding: "+K);K=(""+K).toLowerCase(),Re=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function oe(E,g,b){return g===0&&b===E.length?n.fromByteArray(E):n.fromByteArray(E.slice(g,b))}function ge(E,g,b){b=Math.min(E.length,b);for(var C=[],K=g;K<b;){var xe=E[K],Re=null,ze=xe>239?4:xe>223?3:xe>191?2:1;if(K+ze<=b){var ce,le,Ce,Me;switch(ze){case 1:xe<128&&(Re=xe);break;case 2:ce=E[K+1],(ce&192)===128&&(Me=(xe&31)<<6|ce&63,Me>127&&(Re=Me));break;case 3:ce=E[K+1],le=E[K+2],(ce&192)===128&&(le&192)===128&&(Me=(xe&15)<<12|(ce&63)<<6|le&63,Me>2047&&(Me<55296||Me>57343)&&(Re=Me));break;case 4:ce=E[K+1],le=E[K+2],Ce=E[K+3],(ce&192)===128&&(le&192)===128&&(Ce&192)===128&&(Me=(xe&15)<<18|(ce&63)<<12|(le&63)<<6|Ce&63,Me>65535&&Me<1114112&&(Re=Me))}}Re===null?(Re=65533,ze=1):Re>65535&&(Re-=65536,C.push(Re>>>10&1023|55296),Re=56320|Re&1023),C.push(Re),K+=ze}return D(C)}var Ee=4096;function D(E){var g=E.length;if(g<=Ee)return String.fromCharCode.apply(String,E);for(var b="",C=0;C<g;)b+=String.fromCharCode.apply(String,E.slice(C,C+=Ee));return b}function fe(E,g,b){var C="";b=Math.min(E.length,b);for(var K=g;K<b;++K)C+=String.fromCharCode(E[K]&127);return C}function be(E,g,b){var C="";b=Math.min(E.length,b);for(var K=g;K<b;++K)C+=String.fromCharCode(E[K]);return C}function te(E,g,b){var C=E.length;(!g||g<0)&&(g=0),(!b||b<0||b>C)&&(b=C);for(var K="",xe=g;xe<b;++xe)K+=pe[E[xe]];return K}function j(E,g,b){for(var C=E.slice(g,b),K="",xe=0;xe<C.length-1;xe+=2)K+=String.fromCharCode(C[xe]+C[xe+1]*256);return K}p.prototype.slice=function(g,b){var C=this.length;g=~~g,b=b===void 0?C:~~b,g<0?(g+=C,g<0&&(g=0)):g>C&&(g=C),b<0?(b+=C,b<0&&(b=0)):b>C&&(b=C),b<g&&(b=g);var K=this.subarray(g,b);return Object.setPrototypeOf(K,p.prototype),K};function ue(E,g,b){if(E%1!==0||E<0)throw new RangeError("offset is not uint");if(E+g>b)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUintLE=p.prototype.readUIntLE=function(g,b,C){g=g>>>0,b=b>>>0,C||ue(g,b,this.length);for(var K=this[g],xe=1,Re=0;++Re<b&&(xe*=256);)K+=this[g+Re]*xe;return K},p.prototype.readUintBE=p.prototype.readUIntBE=function(g,b,C){g=g>>>0,b=b>>>0,C||ue(g,b,this.length);for(var K=this[g+--b],xe=1;b>0&&(xe*=256);)K+=this[g+--b]*xe;return K},p.prototype.readUint8=p.prototype.readUInt8=function(g,b){return g=g>>>0,b||ue(g,1,this.length),this[g]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(g,b){return g=g>>>0,b||ue(g,2,this.length),this[g]|this[g+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(g,b){return g=g>>>0,b||ue(g,2,this.length),this[g]<<8|this[g+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(g,b){return g=g>>>0,b||ue(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(g,b){return g=g>>>0,b||ue(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},p.prototype.readIntLE=function(g,b,C){g=g>>>0,b=b>>>0,C||ue(g,b,this.length);for(var K=this[g],xe=1,Re=0;++Re<b&&(xe*=256);)K+=this[g+Re]*xe;return xe*=128,K>=xe&&(K-=Math.pow(2,8*b)),K},p.prototype.readIntBE=function(g,b,C){g=g>>>0,b=b>>>0,C||ue(g,b,this.length);for(var K=b,xe=1,Re=this[g+--K];K>0&&(xe*=256);)Re+=this[g+--K]*xe;return xe*=128,Re>=xe&&(Re-=Math.pow(2,8*b)),Re},p.prototype.readInt8=function(g,b){return g=g>>>0,b||ue(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},p.prototype.readInt16LE=function(g,b){g=g>>>0,b||ue(g,2,this.length);var C=this[g]|this[g+1]<<8;return C&32768?C|4294901760:C},p.prototype.readInt16BE=function(g,b){g=g>>>0,b||ue(g,2,this.length);var C=this[g+1]|this[g]<<8;return C&32768?C|4294901760:C},p.prototype.readInt32LE=function(g,b){return g=g>>>0,b||ue(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},p.prototype.readInt32BE=function(g,b){return g=g>>>0,b||ue(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},p.prototype.readFloatLE=function(g,b){return g=g>>>0,b||ue(g,4,this.length),i.read(this,g,!0,23,4)},p.prototype.readFloatBE=function(g,b){return g=g>>>0,b||ue(g,4,this.length),i.read(this,g,!1,23,4)},p.prototype.readDoubleLE=function(g,b){return g=g>>>0,b||ue(g,8,this.length),i.read(this,g,!0,52,8)},p.prototype.readDoubleBE=function(g,b){return g=g>>>0,b||ue(g,8,this.length),i.read(this,g,!1,52,8)};function me(E,g,b,C,K,xe){if(!p.isBuffer(E))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>K||g<xe)throw new RangeError('"value" argument is out of bounds');if(b+C>E.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(g,b,C,K){if(g=+g,b=b>>>0,C=C>>>0,!K){var xe=Math.pow(2,8*C)-1;me(this,g,b,C,xe,0)}var Re=1,ze=0;for(this[b]=g&255;++ze<C&&(Re*=256);)this[b+ze]=g/Re&255;return b+C},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(g,b,C,K){if(g=+g,b=b>>>0,C=C>>>0,!K){var xe=Math.pow(2,8*C)-1;me(this,g,b,C,xe,0)}var Re=C-1,ze=1;for(this[b+Re]=g&255;--Re>=0&&(ze*=256);)this[b+Re]=g/ze&255;return b+C},p.prototype.writeUint8=p.prototype.writeUInt8=function(g,b,C){return g=+g,b=b>>>0,C||me(this,g,b,1,255,0),this[b]=g&255,b+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(g,b,C){return g=+g,b=b>>>0,C||me(this,g,b,2,65535,0),this[b]=g&255,this[b+1]=g>>>8,b+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(g,b,C){return g=+g,b=b>>>0,C||me(this,g,b,2,65535,0),this[b]=g>>>8,this[b+1]=g&255,b+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(g,b,C){return g=+g,b=b>>>0,C||me(this,g,b,4,4294967295,0),this[b+3]=g>>>24,this[b+2]=g>>>16,this[b+1]=g>>>8,this[b]=g&255,b+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(g,b,C){return g=+g,b=b>>>0,C||me(this,g,b,4,4294967295,0),this[b]=g>>>24,this[b+1]=g>>>16,this[b+2]=g>>>8,this[b+3]=g&255,b+4},p.prototype.writeIntLE=function(g,b,C,K){if(g=+g,b=b>>>0,!K){var xe=Math.pow(2,8*C-1);me(this,g,b,C,xe-1,-xe)}var Re=0,ze=1,ce=0;for(this[b]=g&255;++Re<C&&(ze*=256);)g<0&&ce===0&&this[b+Re-1]!==0&&(ce=1),this[b+Re]=(g/ze>>0)-ce&255;return b+C},p.prototype.writeIntBE=function(g,b,C,K){if(g=+g,b=b>>>0,!K){var xe=Math.pow(2,8*C-1);me(this,g,b,C,xe-1,-xe)}var Re=C-1,ze=1,ce=0;for(this[b+Re]=g&255;--Re>=0&&(ze*=256);)g<0&&ce===0&&this[b+Re+1]!==0&&(ce=1),this[b+Re]=(g/ze>>0)-ce&255;return b+C},p.prototype.writeInt8=function(g,b,C){return g=+g,b=b>>>0,C||me(this,g,b,1,127,-128),g<0&&(g=255+g+1),this[b]=g&255,b+1},p.prototype.writeInt16LE=function(g,b,C){return g=+g,b=b>>>0,C||me(this,g,b,2,32767,-32768),this[b]=g&255,this[b+1]=g>>>8,b+2},p.prototype.writeInt16BE=function(g,b,C){return g=+g,b=b>>>0,C||me(this,g,b,2,32767,-32768),this[b]=g>>>8,this[b+1]=g&255,b+2},p.prototype.writeInt32LE=function(g,b,C){return g=+g,b=b>>>0,C||me(this,g,b,4,2147483647,-2147483648),this[b]=g&255,this[b+1]=g>>>8,this[b+2]=g>>>16,this[b+3]=g>>>24,b+4},p.prototype.writeInt32BE=function(g,b,C){return g=+g,b=b>>>0,C||me(this,g,b,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[b]=g>>>24,this[b+1]=g>>>16,this[b+2]=g>>>8,this[b+3]=g&255,b+4};function ne(E,g,b,C,K,xe){if(b+C>E.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function G(E,g,b,C,K){return g=+g,b=b>>>0,K||ne(E,g,b,4),i.write(E,g,b,C,23,4),b+4}p.prototype.writeFloatLE=function(g,b,C){return G(this,g,b,!0,C)},p.prototype.writeFloatBE=function(g,b,C){return G(this,g,b,!1,C)};function Q(E,g,b,C,K){return g=+g,b=b>>>0,K||ne(E,g,b,8),i.write(E,g,b,C,52,8),b+8}p.prototype.writeDoubleLE=function(g,b,C){return Q(this,g,b,!0,C)},p.prototype.writeDoubleBE=function(g,b,C){return Q(this,g,b,!1,C)},p.prototype.copy=function(g,b,C,K){if(!p.isBuffer(g))throw new TypeError("argument should be a Buffer");if(C||(C=0),!K&&K!==0&&(K=this.length),b>=g.length&&(b=g.length),b||(b=0),K>0&&K<C&&(K=C),K===C||g.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("Index out of range");if(K<0)throw new RangeError("sourceEnd out of bounds");K>this.length&&(K=this.length),g.length-b<K-C&&(K=g.length-b+C);var xe=K-C;return this===g&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(b,C,K):Uint8Array.prototype.set.call(g,this.subarray(C,K),b),xe},p.prototype.fill=function(g,b,C,K){if(typeof g=="string"){if(typeof b=="string"?(K=b,b=0,C=this.length):typeof C=="string"&&(K=C,C=this.length),K!==void 0&&typeof K!="string")throw new TypeError("encoding must be a string");if(typeof K=="string"&&!p.isEncoding(K))throw new TypeError("Unknown encoding: "+K);if(g.length===1){var xe=g.charCodeAt(0);(K==="utf8"&&xe<128||K==="latin1")&&(g=xe)}}else typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=Number(g));if(b<0||this.length<b||this.length<C)throw new RangeError("Out of range index");if(C<=b)return this;b=b>>>0,C=C===void 0?this.length:C>>>0,g||(g=0);var Re;if(typeof g=="number")for(Re=b;Re<C;++Re)this[Re]=g;else{var ze=p.isBuffer(g)?g:p.from(g,K),ce=ze.length;if(ce===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for(Re=0;Re<C-b;++Re)this[Re+b]=ze[Re%ce]}return this};var J=/[^+/0-9A-Za-z-_]/g;function ve(E){if(E=E.split("=")[0],E=E.trim().replace(J,""),E.length<2)return"";for(;E.length%4!==0;)E=E+"=";return E}function Ae(E,g){g=g||1/0;for(var b,C=E.length,K=null,xe=[],Re=0;Re<C;++Re){if(b=E.charCodeAt(Re),b>55295&&b<57344){if(!K){if(b>56319){(g-=3)>-1&&xe.push(239,191,189);continue}else if(Re+1===C){(g-=3)>-1&&xe.push(239,191,189);continue}K=b;continue}if(b<56320){(g-=3)>-1&&xe.push(239,191,189),K=b;continue}b=(K-55296<<10|b-56320)+65536}else K&&(g-=3)>-1&&xe.push(239,191,189);if(K=null,b<128){if((g-=1)<0)break;xe.push(b)}else if(b<2048){if((g-=2)<0)break;xe.push(b>>6|192,b&63|128)}else if(b<65536){if((g-=3)<0)break;xe.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((g-=4)<0)break;xe.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return xe}function V(E){for(var g=[],b=0;b<E.length;++b)g.push(E.charCodeAt(b)&255);return g}function w(E,g){for(var b,C,K,xe=[],Re=0;Re<E.length&&!((g-=2)<0);++Re)b=E.charCodeAt(Re),C=b>>8,K=b%256,xe.push(K),xe.push(C);return xe}function $(E){return n.toByteArray(ve(E))}function Y(E,g,b,C){for(var K=0;K<C&&!(K+b>=g.length||K>=E.length);++K)g[K+b]=E[K];return K}function W(E,g){return E instanceof g||E!=null&&E.constructor!=null&&E.constructor.name!=null&&E.constructor.name===g.name}function de(E){return E!==E}var pe=(function(){for(var E="0123456789abcdef",g=new Array(256),b=0;b<16;++b)for(var C=b*16,K=0;K<16;++K)g[C+K]=E[b]+E[K];return g})()})(RA)),RA}var dn=E5(),Tm={exports:{}},VN;function w5(){return VN||(VN=1,(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var i={exports:{}},a=i.exports={},u,l;function f(){throw new Error("setTimeout has not been defined")}function p(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?u=setTimeout:u=f}catch{u=f}try{typeof clearTimeout=="function"?l=clearTimeout:l=p}catch{l=p}})();function h(te){if(u===setTimeout)return setTimeout(te,0);if((u===f||!u)&&setTimeout)return u=setTimeout,setTimeout(te,0);try{return u(te,0)}catch{try{return u.call(null,te,0)}catch{return u.call(this,te,0)}}}function m(te){if(l===clearTimeout)return clearTimeout(te);if((l===p||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(te);try{return l(te)}catch{try{return l.call(null,te)}catch{return l.call(this,te)}}}var v=[],A=!1,y,I=-1;function R(){!A||!y||(A=!1,y.length?v=y.concat(v):I=-1,v.length&&U())}function U(){if(!A){var te=h(R);A=!0;for(var j=v.length;j;){for(y=v,v=[];++I<j;)y&&y[I].run();I=-1,j=v.length}y=null,A=!1,m(te)}}a.nextTick=function(te){var j=new Array(arguments.length-1);if(arguments.length>1)for(var ue=1;ue<arguments.length;ue++)j[ue-1]=arguments[ue];v.push(new F(te,j)),v.length===1&&!A&&h(U)};function F(te,j){this.fun=te,this.array=j}F.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={};function N(){}a.on=N,a.addListener=N,a.once=N,a.off=N,a.removeListener=N,a.removeAllListeners=N,a.emit=N,a.prependListener=N,a.prependOnceListener=N,a.listeners=function(te){return[]},a.binding=function(te){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(te){throw new Error("process.chdir is not supported")},a.umask=function(){return 0};function B(){}var M=i.exports.browser,H=B,k=i.exports.binding,X=B,re=1,ie={},O=B,P=B,L=B,q=B,oe=B,ge="browser",Ee="browser",D="browser",fe=[],be={nextTick:i.exports.nextTick,title:i.exports.title,browser:M,env:i.exports.env,argv:i.exports.argv,version:i.exports.version,versions:i.exports.versions,on:i.exports.on,addListener:i.exports.addListener,once:i.exports.once,off:i.exports.off,removeListener:i.exports.removeListener,removeAllListeners:i.exports.removeAllListeners,emit:i.exports.emit,emitWarning:H,prependListener:i.exports.prependListener,prependOnceListener:i.exports.prependOnceListener,listeners:i.exports.listeners,binding:k,cwd:i.exports.cwd,chdir:i.exports.chdir,umask:i.exports.umask,exit:X,pid:re,features:ie,kill:O,dlopen:P,uptime:L,memoryUsage:q,uvCounters:oe,platform:ge,arch:Ee,execPath:D,execArgv:fe};n.addListener=i.exports.addListener,n.arch=Ee,n.argv=i.exports.argv,n.binding=k,n.browser=M,n.chdir=i.exports.chdir,n.cwd=i.exports.cwd,n.default=be,n.dlopen=P,n.emit=i.exports.emit,n.emitWarning=H,n.env=i.exports.env,n.execArgv=fe,n.execPath=D,n.exit=X,n.features=ie,n.kill=O,n.listeners=i.exports.listeners,n.memoryUsage=q,n.nextTick=i.exports.nextTick,n.off=i.exports.off,n.on=i.exports.on,n.once=i.exports.once,n.pid=re,n.platform=ge,n.prependListener=i.exports.prependListener,n.prependOnceListener=i.exports.prependOnceListener,n.removeAllListeners=i.exports.removeAllListeners,n.removeListener=i.exports.removeListener,n.title=i.exports.title,n.umask=i.exports.umask,n.uptime=L,n.uvCounters=oe,n.version=i.exports.version,n.versions=i.exports.versions,n=e.exports=be})(Tm,Tm.exports)),Tm.exports}var S5=w5();const Dt=lg(S5);(function(e){function n(){var a=this||self;return delete e.prototype.__magic__,a}if(typeof globalThis=="object")return globalThis;if(this)return n();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:n});var i=__magic__;return i})(Object);var pd={exports:{}};pd.exports;var GN;function I5(){return GN||(GN=1,(function(e,n){/**
7
- * @license React
8
- * react.development.js
9
- *
10
- * Copyright (c) Meta Platforms, Inc. and affiliates.
11
- *
12
- * This source code is licensed under the MIT license found in the
13
- * LICENSE file in the root directory of this source tree.
14
- */(function(){function i(_,he){Object.defineProperty(l.prototype,_,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",he[0],he[1])}})}function a(_){return _===null||typeof _!="object"?null:(_=$&&_[$]||_["@@iterator"],typeof _=="function"?_:null)}function u(_,he){_=(_=_.constructor)&&(_.displayName||_.name)||"ReactClass";var _e=_+"."+he;Y[_e]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",he,_),Y[_e]=!0)}function l(_,he,_e){this.props=_,this.context=he,this.refs=pe,this.updater=_e||W}function f(){}function p(_,he,_e){this.props=_,this.context=he,this.refs=pe,this.updater=_e||W}function h(_){return""+_}function m(_){try{h(_);var he=!1}catch{he=!0}if(he){he=console;var _e=he.error,Pe=typeof Symbol=="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object";return _e.call(he,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Pe),h(_)}}function v(_){if(_==null)return null;if(typeof _=="function")return _.$$typeof===C?null:_.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case j:return"Fragment";case me:return"Profiler";case ue:return"StrictMode";case J:return"Suspense";case ve:return"SuspenseList";case w:return"Activity"}if(typeof _=="object")switch(typeof _.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case te:return"Portal";case G:return(_.displayName||"Context")+".Provider";case ne:return(_._context.displayName||"Context")+".Consumer";case Q:var he=_.render;return _=_.displayName,_||(_=he.displayName||he.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case Ae:return he=_.displayName||null,he!==null?he:v(_.type)||"Memo";case V:he=_._payload,_=_._init;try{return v(_(he))}catch{}}return null}function A(_){if(_===j)return"<>";if(typeof _=="object"&&_!==null&&_.$$typeof===V)return"<...>";try{var he=v(_);return he?"<"+he+">":"<...>"}catch{return"<...>"}}function y(){var _=K.A;return _===null?null:_.getOwner()}function I(){return Error("react-stack-top-frame")}function R(_){if(xe.call(_,"key")){var he=Object.getOwnPropertyDescriptor(_,"key").get;if(he&&he.isReactWarning)return!1}return _.key!==void 0}function U(_,he){function _e(){ze||(ze=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",he))}_e.isReactWarning=!0,Object.defineProperty(_,"key",{get:_e,configurable:!0})}function F(){var _=v(this.type);return le[_]||(le[_]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),_=this.props.ref,_!==void 0?_:null}function N(_,he,_e,Pe,He,it,nt,st){return _e=it.ref,_={$$typeof:be,type:_,key:he,props:it,_owner:He},(_e!==void 0?_e:null)!==null?Object.defineProperty(_,"ref",{enumerable:!1,get:F}):Object.defineProperty(_,"ref",{enumerable:!1,value:null}),_._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(_,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(_,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:nt}),Object.defineProperty(_,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:st}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_}function B(_,he){return he=N(_.type,he,void 0,void 0,_._owner,_.props,_._debugStack,_._debugTask),_._store&&(he._store.validated=_._store.validated),he}function M(_){return typeof _=="object"&&_!==null&&_.$$typeof===be}function H(_){var he={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(_e){return he[_e]})}function k(_,he){return typeof _=="object"&&_!==null&&_.key!=null?(m(_.key),H(""+_.key)):he.toString(36)}function X(){}function re(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(X,X):(_.status="pending",_.then(function(he){_.status==="pending"&&(_.status="fulfilled",_.value=he)},function(he){_.status==="pending"&&(_.status="rejected",_.reason=he)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function ie(_,he,_e,Pe,He){var it=typeof _;(it==="undefined"||it==="boolean")&&(_=null);var nt=!1;if(_===null)nt=!0;else switch(it){case"bigint":case"string":case"number":nt=!0;break;case"object":switch(_.$$typeof){case be:case te:nt=!0;break;case V:return nt=_._init,ie(nt(_._payload),he,_e,Pe,He)}}if(nt){nt=_,He=He(nt);var st=Pe===""?"."+k(nt,0):Pe;return b(He)?(_e="",st!=null&&(_e=st.replace(tt,"$&/")+"/"),ie(He,he,_e,"",function(At){return At})):He!=null&&(M(He)&&(He.key!=null&&(nt&&nt.key===He.key||m(He.key)),_e=B(He,_e+(He.key==null||nt&&nt.key===He.key?"":(""+He.key).replace(tt,"$&/")+"/")+st),Pe!==""&&nt!=null&&M(nt)&&nt.key==null&&nt._store&&!nt._store.validated&&(_e._store.validated=2),He=_e),he.push(He)),1}if(nt=0,st=Pe===""?".":Pe+":",b(_))for(var rt=0;rt<_.length;rt++)Pe=_[rt],it=st+k(Pe,rt),nt+=ie(Pe,he,_e,it,He);else if(rt=a(_),typeof rt=="function")for(rt===_.entries&&(Le||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Le=!0),_=rt.call(_),rt=0;!(Pe=_.next()).done;)Pe=Pe.value,it=st+k(Pe,rt++),nt+=ie(Pe,he,_e,it,He);else if(it==="object"){if(typeof _.then=="function")return ie(re(_),he,_e,Pe,He);throw he=String(_),Error("Objects are not valid as a React child (found: "+(he==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":he)+"). If you meant to render a collection of children, use an array instead.")}return nt}function O(_,he,_e){if(_==null)return _;var Pe=[],He=0;return ie(_,Pe,"","",function(it){return he.call(_e,it,He++)}),Pe}function P(_){if(_._status===-1){var he=_._result;he=he(),he.then(function(_e){(_._status===0||_._status===-1)&&(_._status=1,_._result=_e)},function(_e){(_._status===0||_._status===-1)&&(_._status=2,_._result=_e)}),_._status===-1&&(_._status=0,_._result=he)}if(_._status===1)return he=_._result,he===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
15
-
16
- Your code should look like:
17
- const MyComponent = lazy(() => import('./MyComponent'))
18
-
19
- Did you accidentally put curly braces around the import?`,he),"default"in he||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
20
-
21
- Your code should look like:
22
- const MyComponent = lazy(() => import('./MyComponent'))`,he),he.default;throw _._result}function L(){var _=K.H;return _===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
23
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
24
- 2. You might be breaking the Rules of Hooks
25
- 3. You might have more than one copy of React in the same app
26
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),_}function q(){}function oe(_){if(at===null)try{var he=("require"+Math.random()).slice(0,7);at=(e&&e[he]).call(e,"timers").setImmediate}catch{at=function(Pe){ot===!1&&(ot=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var He=new MessageChannel;He.port1.onmessage=Pe,He.port2.postMessage(void 0)}}return at(_)}function ge(_){return 1<_.length&&typeof AggregateError=="function"?new AggregateError(_):_[0]}function Ee(_,he){he!==ct-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ct=he}function D(_,he,_e){var Pe=K.actQueue;if(Pe!==null)if(Pe.length!==0)try{fe(Pe),oe(function(){return D(_,he,_e)});return}catch(He){K.thrownErrors.push(He)}else K.actQueue=null;0<K.thrownErrors.length?(Pe=ge(K.thrownErrors),K.thrownErrors.length=0,_e(Pe)):he(_)}function fe(_){if(!bt){bt=!0;var he=0;try{for(;he<_.length;he++){var _e=_[he];do{K.didUsePromise=!1;var Pe=_e(!1);if(Pe!==null){if(K.didUsePromise){_[he]=_e,_.splice(0,he);return}_e=Pe}else break}while(!0)}_.length=0}catch(He){_.splice(0,he+1),K.thrownErrors.push(He)}finally{bt=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var be=Symbol.for("react.transitional.element"),te=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),ue=Symbol.for("react.strict_mode"),me=Symbol.for("react.profiler"),ne=Symbol.for("react.consumer"),G=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),ve=Symbol.for("react.suspense_list"),Ae=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),$=Symbol.iterator,Y={},W={isMounted:function(){return!1},enqueueForceUpdate:function(_){u(_,"forceUpdate")},enqueueReplaceState:function(_){u(_,"replaceState")},enqueueSetState:function(_){u(_,"setState")}},de=Object.assign,pe={};Object.freeze(pe),l.prototype.isReactComponent={},l.prototype.setState=function(_,he){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,he,"setState")},l.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};var E={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},g;for(g in E)E.hasOwnProperty(g)&&i(g,E[g]);f.prototype=l.prototype,E=p.prototype=new f,E.constructor=p,de(E,l.prototype),E.isPureReactComponent=!0;var b=Array.isArray,C=Symbol.for("react.client.reference"),K={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},xe=Object.prototype.hasOwnProperty,Re=console.createTask?console.createTask:function(){return null};E={react_stack_bottom_frame:function(_){return _()}};var ze,ce,le={},Ce=E.react_stack_bottom_frame.bind(E,I)(),Me=Re(A(I)),Le=!1,tt=/\/+/g,Ze=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var he=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(he))return}else if(typeof Dt=="object"&&typeof Dt.emit=="function"){Dt.emit("uncaughtException",_);return}console.error(_)},ot=!1,at=null,ct=0,ut=!1,bt=!1,wt=typeof queueMicrotask=="function"?function(_){queueMicrotask(function(){return queueMicrotask(_)})}:oe;E=Object.freeze({__proto__:null,c:function(_){return L().useMemoCache(_)}}),n.Children={map:O,forEach:function(_,he,_e){O(_,function(){he.apply(this,arguments)},_e)},count:function(_){var he=0;return O(_,function(){he++}),he},toArray:function(_){return O(_,function(he){return he})||[]},only:function(_){if(!M(_))throw Error("React.Children.only expected to receive a single React element child.");return _}},n.Component=l,n.Fragment=j,n.Profiler=me,n.PureComponent=p,n.StrictMode=ue,n.Suspense=J,n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,n.__COMPILER_RUNTIME=E,n.act=function(_){var he=K.actQueue,_e=ct;ct++;var Pe=K.actQueue=he!==null?he:[],He=!1;try{var it=_()}catch(rt){K.thrownErrors.push(rt)}if(0<K.thrownErrors.length)throw Ee(he,_e),_=ge(K.thrownErrors),K.thrownErrors.length=0,_;if(it!==null&&typeof it=="object"&&typeof it.then=="function"){var nt=it;return wt(function(){He||ut||(ut=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(rt,At){He=!0,nt.then(function(Sr){if(Ee(he,_e),_e===0){try{fe(Pe),oe(function(){return D(Sr,rt,At)})}catch(Sa){K.thrownErrors.push(Sa)}if(0<K.thrownErrors.length){var wa=ge(K.thrownErrors);K.thrownErrors.length=0,At(wa)}}else rt(Sr)},function(Sr){Ee(he,_e),0<K.thrownErrors.length&&(Sr=ge(K.thrownErrors),K.thrownErrors.length=0),At(Sr)})}}}var st=it;if(Ee(he,_e),_e===0&&(fe(Pe),Pe.length!==0&&wt(function(){He||ut||(ut=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),K.actQueue=null),0<K.thrownErrors.length)throw _=ge(K.thrownErrors),K.thrownErrors.length=0,_;return{then:function(rt,At){He=!0,_e===0?(K.actQueue=Pe,oe(function(){return D(st,rt,At)})):rt(st)}}},n.cache=function(_){return function(){return _.apply(null,arguments)}},n.captureOwnerStack=function(){var _=K.getCurrentStack;return _===null?null:_()},n.cloneElement=function(_,he,_e){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var Pe=de({},_.props),He=_.key,it=_._owner;if(he!=null){var nt;e:{if(xe.call(he,"ref")&&(nt=Object.getOwnPropertyDescriptor(he,"ref").get)&&nt.isReactWarning){nt=!1;break e}nt=he.ref!==void 0}nt&&(it=y()),R(he)&&(m(he.key),He=""+he.key);for(st in he)!xe.call(he,st)||st==="key"||st==="__self"||st==="__source"||st==="ref"&&he.ref===void 0||(Pe[st]=he[st])}var st=arguments.length-2;if(st===1)Pe.children=_e;else if(1<st){nt=Array(st);for(var rt=0;rt<st;rt++)nt[rt]=arguments[rt+2];Pe.children=nt}for(Pe=N(_.type,He,void 0,void 0,it,Pe,_._debugStack,_._debugTask),He=2;He<arguments.length;He++)it=arguments[He],M(it)&&it._store&&(it._store.validated=1);return Pe},n.createContext=function(_){return _={$$typeof:G,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:ne,_context:_},_._currentRenderer=null,_._currentRenderer2=null,_},n.createElement=function(_,he,_e){for(var Pe=2;Pe<arguments.length;Pe++){var He=arguments[Pe];M(He)&&He._store&&(He._store.validated=1)}if(Pe={},He=null,he!=null)for(rt in ce||!("__self"in he)||"key"in he||(ce=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),R(he)&&(m(he.key),He=""+he.key),he)xe.call(he,rt)&&rt!=="key"&&rt!=="__self"&&rt!=="__source"&&(Pe[rt]=he[rt]);var it=arguments.length-2;if(it===1)Pe.children=_e;else if(1<it){for(var nt=Array(it),st=0;st<it;st++)nt[st]=arguments[st+2];Object.freeze&&Object.freeze(nt),Pe.children=nt}if(_&&_.defaultProps)for(rt in it=_.defaultProps,it)Pe[rt]===void 0&&(Pe[rt]=it[rt]);He&&U(Pe,typeof _=="function"?_.displayName||_.name||"Unknown":_);var rt=1e4>K.recentlyCreatedOwnerStacks++;return N(_,He,void 0,void 0,y(),Pe,rt?Error("react-stack-top-frame"):Ce,rt?Re(A(_)):Me)},n.createRef=function(){var _={current:null};return Object.seal(_),_},n.forwardRef=function(_){_!=null&&_.$$typeof===Ae?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof _!="function"?console.error("forwardRef requires a render function but was given %s.",_===null?"null":typeof _):_.length!==0&&_.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",_.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),_!=null&&_.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var he={$$typeof:Q,render:_},_e;return Object.defineProperty(he,"displayName",{enumerable:!1,configurable:!0,get:function(){return _e},set:function(Pe){_e=Pe,_.name||_.displayName||(Object.defineProperty(_,"name",{value:Pe}),_.displayName=Pe)}}),he},n.isValidElement=M,n.lazy=function(_){return{$$typeof:V,_payload:{_status:-1,_result:_},_init:P}},n.memo=function(_,he){_==null&&console.error("memo: The first argument must be a component. Instead received: %s",_===null?"null":typeof _),he={$$typeof:Ae,type:_,compare:he===void 0?null:he};var _e;return Object.defineProperty(he,"displayName",{enumerable:!1,configurable:!0,get:function(){return _e},set:function(Pe){_e=Pe,_.name||_.displayName||(Object.defineProperty(_,"name",{value:Pe}),_.displayName=Pe)}}),he},n.startTransition=function(_){var he=K.T,_e={};K.T=_e,_e._updatedFibers=new Set;try{var Pe=_(),He=K.S;He!==null&&He(_e,Pe),typeof Pe=="object"&&Pe!==null&&typeof Pe.then=="function"&&Pe.then(q,Ze)}catch(it){Ze(it)}finally{he===null&&_e._updatedFibers&&(_=_e._updatedFibers.size,_e._updatedFibers.clear(),10<_&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),K.T=he}},n.unstable_useCacheRefresh=function(){return L().useCacheRefresh()},n.use=function(_){return L().use(_)},n.useActionState=function(_,he,_e){return L().useActionState(_,he,_e)},n.useCallback=function(_,he){return L().useCallback(_,he)},n.useContext=function(_){var he=L();return _.$$typeof===ne&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),he.useContext(_)},n.useDebugValue=function(_,he){return L().useDebugValue(_,he)},n.useDeferredValue=function(_,he){return L().useDeferredValue(_,he)},n.useEffect=function(_,he,_e){_==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var Pe=L();if(typeof _e=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Pe.useEffect(_,he)},n.useId=function(){return L().useId()},n.useImperativeHandle=function(_,he,_e){return L().useImperativeHandle(_,he,_e)},n.useInsertionEffect=function(_,he){return _==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),L().useInsertionEffect(_,he)},n.useLayoutEffect=function(_,he){return _==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),L().useLayoutEffect(_,he)},n.useMemo=function(_,he){return L().useMemo(_,he)},n.useOptimistic=function(_,he){return L().useOptimistic(_,he)},n.useReducer=function(_,he,_e){return L().useReducer(_,he,_e)},n.useRef=function(_){return L().useRef(_)},n.useState=function(_){return L().useState(_)},n.useSyncExternalStore=function(_,he,_e){return L().useSyncExternalStore(_,he,_e)},n.useTransition=function(){return L().useTransition()},n.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(pd,pd.exports)),pd.exports}var QN;function cg(){return QN||(QN=1,OA.exports=I5()),OA.exports}var YN;function C5(){if(YN)return Im;YN=1;/**
27
- * @license React
28
- * react-jsx-dev-runtime.development.js
29
- *
30
- * Copyright (c) Meta Platforms, Inc. and affiliates.
31
- *
32
- * This source code is licensed under the MIT license found in the
33
- * LICENSE file in the root directory of this source tree.
34
- */return(function(){function e(j){if(j==null)return null;if(typeof j=="function")return j.$$typeof===P?null:j.displayName||j.name||null;if(typeof j=="string")return j;switch(j){case U:return"Fragment";case N:return"Profiler";case F:return"StrictMode";case k:return"Suspense";case X:return"SuspenseList";case O:return"Activity"}if(typeof j=="object")switch(typeof j.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),j.$$typeof){case R:return"Portal";case M:return(j.displayName||"Context")+".Provider";case B:return(j._context.displayName||"Context")+".Consumer";case H:var ue=j.render;return j=j.displayName,j||(j=ue.displayName||ue.name||"",j=j!==""?"ForwardRef("+j+")":"ForwardRef"),j;case re:return ue=j.displayName||null,ue!==null?ue:e(j.type)||"Memo";case ie:ue=j._payload,j=j._init;try{return e(j(ue))}catch{}}return null}function n(j){return""+j}function i(j){try{n(j);var ue=!1}catch{ue=!0}if(ue){ue=console;var me=ue.error,ne=typeof Symbol=="function"&&Symbol.toStringTag&&j[Symbol.toStringTag]||j.constructor.name||"Object";return me.call(ue,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ne),n(j)}}function a(j){if(j===U)return"<>";if(typeof j=="object"&&j!==null&&j.$$typeof===ie)return"<...>";try{var ue=e(j);return ue?"<"+ue+">":"<...>"}catch{return"<...>"}}function u(){var j=L.A;return j===null?null:j.getOwner()}function l(){return Error("react-stack-top-frame")}function f(j){if(q.call(j,"key")){var ue=Object.getOwnPropertyDescriptor(j,"key").get;if(ue&&ue.isReactWarning)return!1}return j.key!==void 0}function p(j,ue){function me(){Ee||(Ee=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ue))}me.isReactWarning=!0,Object.defineProperty(j,"key",{get:me,configurable:!0})}function h(){var j=e(this.type);return D[j]||(D[j]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),j=this.props.ref,j!==void 0?j:null}function m(j,ue,me,ne,G,Q,J,ve){return me=Q.ref,j={$$typeof:I,type:j,key:ue,props:Q,_owner:G},(me!==void 0?me:null)!==null?Object.defineProperty(j,"ref",{enumerable:!1,get:h}):Object.defineProperty(j,"ref",{enumerable:!1,value:null}),j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(j,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(j,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:J}),Object.defineProperty(j,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ve}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j}function v(j,ue,me,ne,G,Q,J,ve){var Ae=ue.children;if(Ae!==void 0)if(ne)if(oe(Ae)){for(ne=0;ne<Ae.length;ne++)A(Ae[ne]);Object.freeze&&Object.freeze(Ae)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else A(Ae);if(q.call(ue,"key")){Ae=e(j);var V=Object.keys(ue).filter(function($){return $!=="key"});ne=0<V.length?"{key: someKey, "+V.join(": ..., ")+": ...}":"{key: someKey}",te[Ae+ne]||(V=0<V.length?"{"+V.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
35
- let props = %s;
36
- <%s {...props} />
37
- React keys must be passed directly to JSX without using spread:
38
- let props = %s;
39
- <%s key={someKey} {...props} />`,ne,Ae,V,Ae),te[Ae+ne]=!0)}if(Ae=null,me!==void 0&&(i(me),Ae=""+me),f(ue)&&(i(ue.key),Ae=""+ue.key),"key"in ue){me={};for(var w in ue)w!=="key"&&(me[w]=ue[w])}else me=ue;return Ae&&p(me,typeof j=="function"?j.displayName||j.name||"Unknown":j),m(j,Ae,Q,G,u(),me,J,ve)}function A(j){typeof j=="object"&&j!==null&&j.$$typeof===I&&j._store&&(j._store.validated=1)}var y=cg(),I=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),M=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),P=Symbol.for("react.client.reference"),L=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.prototype.hasOwnProperty,oe=Array.isArray,ge=console.createTask?console.createTask:function(){return null};y={react_stack_bottom_frame:function(j){return j()}};var Ee,D={},fe=y.react_stack_bottom_frame.bind(y,l)(),be=ge(a(l)),te={};Im.Fragment=U,Im.jsxDEV=function(j,ue,me,ne,G,Q){var J=1e4>L.recentlyCreatedOwnerStacks++;return v(j,ue,me,ne,G,Q,J?Error("react-stack-top-frame"):fe,J?ge(a(j)):be)}})(),Im}var KN;function T5(){return KN||(KN=1,TA.exports=C5()),TA.exports}var ee=T5(),je=cg(),FA={exports:{}},od={},NA={exports:{}},DA={},XN;function O5(){return XN||(XN=1,(function(e){/**
40
- * @license React
41
- * scheduler.development.js
42
- *
43
- * Copyright (c) Meta Platforms, Inc. and affiliates.
44
- *
45
- * This source code is licensed under the MIT license found in the
46
- * LICENSE file in the root directory of this source tree.
47
- */(function(){function n(){if(k=!1,O){var D=e.unstable_now();q=D;var fe=!0;try{e:{M=!1,H&&(H=!1,re(P),P=-1),B=!0;var be=N;try{t:{for(f(D),F=a(I);F!==null&&!(F.expirationTime>D&&h());){var te=F.callback;if(typeof te=="function"){F.callback=null,N=F.priorityLevel;var j=te(F.expirationTime<=D);if(D=e.unstable_now(),typeof j=="function"){F.callback=j,f(D),fe=!0;break t}F===a(I)&&u(I),f(D)}else u(I);F=a(I)}if(F!==null)fe=!0;else{var ue=a(R);ue!==null&&m(p,ue.startTime-D),fe=!1}}break e}finally{F=null,N=be,B=!1}fe=void 0}}finally{fe?oe():O=!1}}}function i(D,fe){var be=D.length;D.push(fe);e:for(;0<be;){var te=be-1>>>1,j=D[te];if(0<l(j,fe))D[te]=fe,D[be]=j,be=te;else break e}}function a(D){return D.length===0?null:D[0]}function u(D){if(D.length===0)return null;var fe=D[0],be=D.pop();if(be!==fe){D[0]=be;e:for(var te=0,j=D.length,ue=j>>>1;te<ue;){var me=2*(te+1)-1,ne=D[me],G=me+1,Q=D[G];if(0>l(ne,be))G<j&&0>l(Q,ne)?(D[te]=Q,D[G]=be,te=G):(D[te]=ne,D[me]=be,te=me);else if(G<j&&0>l(Q,be))D[te]=Q,D[G]=be,te=G;else break e}}return fe}function l(D,fe){var be=D.sortIndex-fe.sortIndex;return be!==0?be:D.id-fe.id}function f(D){for(var fe=a(R);fe!==null;){if(fe.callback===null)u(R);else if(fe.startTime<=D)u(R),fe.sortIndex=fe.expirationTime,i(I,fe);else break;fe=a(R)}}function p(D){if(H=!1,f(D),!M)if(a(I)!==null)M=!0,O||(O=!0,oe());else{var fe=a(R);fe!==null&&m(p,fe.startTime-D)}}function h(){return k?!0:!(e.unstable_now()-q<L)}function m(D,fe){P=X(function(){D(e.unstable_now())},fe)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;e.unstable_now=function(){return v.now()}}else{var A=Date,y=A.now();e.unstable_now=function(){return A.now()-y}}var I=[],R=[],U=1,F=null,N=3,B=!1,M=!1,H=!1,k=!1,X=typeof setTimeout=="function"?setTimeout:null,re=typeof clearTimeout=="function"?clearTimeout:null,ie=typeof setImmediate<"u"?setImmediate:null,O=!1,P=-1,L=5,q=-1;if(typeof ie=="function")var oe=function(){ie(n)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,Ee=ge.port2;ge.port1.onmessage=n,oe=function(){Ee.postMessage(null)}}else oe=function(){X(n,0)};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(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return N},e.unstable_next=function(D){switch(N){case 1:case 2:case 3:var fe=3;break;default:fe=N}var be=N;N=fe;try{return D()}finally{N=be}},e.unstable_requestPaint=function(){k=!0},e.unstable_runWithPriority=function(D,fe){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var be=N;N=D;try{return fe()}finally{N=be}},e.unstable_scheduleCallback=function(D,fe,be){var te=e.unstable_now();switch(typeof be=="object"&&be!==null?(be=be.delay,be=typeof be=="number"&&0<be?te+be:te):be=te,D){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=be+j,D={id:U++,callback:fe,priorityLevel:D,startTime:be,expirationTime:j,sortIndex:-1},be>te?(D.sortIndex=be,i(R,D),a(I)===null&&D===a(R)&&(H?(re(P),P=-1):H=!0,m(p,be-te))):(D.sortIndex=j,i(I,D),M||B||(M=!0,O||(O=!0,oe()))),D},e.unstable_shouldYield=h,e.unstable_wrapCallback=function(D){var fe=N;return function(){var be=N;N=fe;try{return D.apply(this,arguments)}finally{N=be}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(DA)),DA}var ZN;function R5(){return ZN||(ZN=1,NA.exports=O5()),NA.exports}var BA={exports:{}},ar={},JN;function F5(){if(JN)return ar;JN=1;/**
48
- * @license React
49
- * react-dom.development.js
50
- *
51
- * Copyright (c) Meta Platforms, Inc. and affiliates.
52
- *
53
- * This source code is licensed under the MIT license found in the
54
- * LICENSE file in the root directory of this source tree.
55
- */return(function(){function e(){}function n(A){return""+A}function i(A,y,I){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(R);var U=!1}catch{U=!0}return U&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&R[Symbol.toStringTag]||R.constructor.name||"Object"),n(R)),{$$typeof:m,key:R==null?null:""+R,children:A,containerInfo:y,implementation:I}}function a(A,y){if(A==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}function u(A){return A===null?"`null`":A===void 0?"`undefined`":A===""?"an empty string":'something with type "'+typeof A+'"'}function l(A){return A===null?"`null`":A===void 0?"`undefined`":A===""?"an empty string":typeof A=="string"?JSON.stringify(A):typeof A=="number"?"`"+A+"`":'something with type "'+typeof A+'"'}function f(){var A=v.H;return A===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
56
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
57
- 2. You might be breaking the Rules of Hooks
58
- 3. You might have more than one copy of React in the same app
59
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),A}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var p=cg(),h={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},m=Symbol.for("react.portal"),v=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),ar.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=h,ar.createPortal=function(A,y){var I=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error("Target container is not a DOM element.");return i(A,y,null,I)},ar.flushSync=function(A){var y=v.T,I=h.p;try{if(v.T=null,h.p=2,A)return A()}finally{v.T=y,h.p=I,h.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},ar.preconnect=function(A,y){typeof A=="string"&&A?y!=null&&typeof y!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",l(y)):y!=null&&typeof y.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",u(y.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(A)),typeof A=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,h.d.C(A,y))},ar.prefetchDNS=function(A){if(typeof A!="string"||!A)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(A));else if(1<arguments.length){var y=arguments[1];typeof y=="object"&&y.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",l(y)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",l(y))}typeof A=="string"&&h.d.D(A)},ar.preinit=function(A,y){if(typeof A=="string"&&A?y==null||typeof y!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",l(y)):y.as!=="style"&&y.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',l(y.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(A)),typeof A=="string"&&y&&typeof y.as=="string"){var I=y.as,R=a(I,y.crossOrigin),U=typeof y.integrity=="string"?y.integrity:void 0,F=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;I==="style"?h.d.S(A,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:R,integrity:U,fetchPriority:F}):I==="script"&&h.d.X(A,{crossOrigin:R,integrity:U,fetchPriority:F,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ar.preinitModule=function(A,y){var I="";if(typeof A=="string"&&A||(I+=" The `href` argument encountered was "+u(A)+"."),y!==void 0&&typeof y!="object"?I+=" The `options` argument encountered was "+u(y)+".":y&&"as"in y&&y.as!=="script"&&(I+=" The `as` option encountered was "+l(y.as)+"."),I)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",I);else switch(I=y&&typeof y.as=="string"?y.as:"script",I){case"script":break;default:I=l(I),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',I,A)}typeof A=="string"&&(typeof y=="object"&&y!==null?(y.as==null||y.as==="script")&&(I=a(y.as,y.crossOrigin),h.d.M(A,{crossOrigin:I,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})):y==null&&h.d.M(A))},ar.preload=function(A,y){var I="";if(typeof A=="string"&&A||(I+=" The `href` argument encountered was "+u(A)+"."),y==null||typeof y!="object"?I+=" The `options` argument encountered was "+u(y)+".":typeof y.as=="string"&&y.as||(I+=" The `as` option encountered was "+u(y.as)+"."),I&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',I),typeof A=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){I=y.as;var R=a(I,y.crossOrigin);h.d.L(A,I,{crossOrigin:R,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ar.preloadModule=function(A,y){var I="";typeof A=="string"&&A||(I+=" The `href` argument encountered was "+u(A)+"."),y!==void 0&&typeof y!="object"?I+=" The `options` argument encountered was "+u(y)+".":y&&"as"in y&&typeof y.as!="string"&&(I+=" The `as` option encountered was "+u(y.as)+"."),I&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',I),typeof A=="string"&&(y?(I=a(y.as,y.crossOrigin),h.d.m(A,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:I,integrity:typeof y.integrity=="string"?y.integrity:void 0})):h.d.m(A))},ar.requestFormReset=function(A){h.d.r(A)},ar.unstable_batchedUpdates=function(A,y){return A(y)},ar.useFormState=function(A,y,I){return f().useFormState(A,y,I)},ar.useFormStatus=function(){return f().useHostTransitionStatus()},ar.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),ar}var WN;function JM(){return WN||(WN=1,BA.exports=F5()),BA.exports}var eD;function N5(){if(eD)return od;eD=1;/**
60
- * @license React
61
- * react-dom-client.development.js
62
- *
63
- * Copyright (c) Meta Platforms, Inc. and affiliates.
64
- *
65
- * This source code is licensed under the MIT license found in the
66
- * LICENSE file in the root directory of this source tree.
67
- */return(function(){function e(t,r){for(t=t.memoizedState;t!==null&&0<r;)t=t.next,r--;return t}function n(t,r,o,s){if(o>=r.length)return s;var c=r[o],d=Vn(t)?t.slice():yt({},t);return d[c]=n(t[c],r,o+1,s),d}function i(t,r,o){if(r.length!==o.length)console.warn("copyWithRename() expects paths of the same length");else{for(var s=0;s<o.length-1;s++)if(r[s]!==o[s]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return a(t,r,o,0)}}function a(t,r,o,s){var c=r[s],d=Vn(t)?t.slice():yt({},t);return s+1===r.length?(d[o[s]]=d[c],Vn(d)?d.splice(c,1):delete d[c]):d[c]=a(t[c],r,o,s+1),d}function u(t,r,o){var s=r[o],c=Vn(t)?t.slice():yt({},t);return o+1===r.length?(Vn(c)?c.splice(s,1):delete c[s],c):(c[s]=u(t[s],r,o+1),c)}function l(){return!1}function f(){return null}function p(){}function h(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function m(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function v(){}function A(t){var r=[];return t.forEach(function(o){r.push(o)}),r.sort().join(", ")}function y(t,r,o,s){return new bP(t,r,o,s)}function I(t,r){t.context===za&&(J0(t.current,2,r,t,null,null),nl())}function R(t,r){if(yi!==null){var o=r.staleFamilies;r=r.updatedFamilies,sf(),yy(t.current,r,o),nl()}}function U(t){yi=t}function F(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function N(t){var r=t,o=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(o=r.return),t=r.return;while(t)}return r.tag===3?o:null}function B(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function M(t){if(N(t)!==t)throw Error("Unable to find node on an unmounted component.")}function H(t){var r=t.alternate;if(!r){if(r=N(t),r===null)throw Error("Unable to find node on an unmounted component.");return r!==t?null:t}for(var o=t,s=r;;){var c=o.return;if(c===null)break;var d=c.alternate;if(d===null){if(s=c.return,s!==null){o=s;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===o)return M(c),t;if(d===s)return M(c),r;d=d.sibling}throw Error("Unable to find node on an unmounted component.")}if(o.return!==s.return)o=c,s=d;else{for(var x=!1,T=c.child;T;){if(T===o){x=!0,o=c,s=d;break}if(T===s){x=!0,s=c,o=d;break}T=T.sibling}if(!x){for(T=d.child;T;){if(T===o){x=!0,o=d,s=c;break}if(T===s){x=!0,s=d,o=c;break}T=T.sibling}if(!x)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(o.alternate!==s)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(o.tag!==3)throw Error("Unable to find node on an unmounted component.");return o.stateNode.current===o?t:r}function k(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=k(t),r!==null)return r;t=t.sibling}return null}function X(t){return t===null||typeof t!="object"?null:(t=lR&&t[lR]||t["@@iterator"],typeof t=="function"?t:null)}function re(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===UL?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case ll:return"Fragment";case ob:return"Profiler";case Nh:return"StrictMode";case sb:return"Suspense";case ub:return"SuspenseList";case lb:return"Activity"}if(typeof t=="object")switch(typeof t.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case ul:return"Portal";case uo:return(t.displayName||"Context")+".Provider";case ab:return(t._context.displayName||"Context")+".Consumer";case gf:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Dh:return r=t.displayName||null,r!==null?r:re(t.type)||"Memo";case Yr:r=t._payload,t=t._init;try{return re(t(r))}catch{}}return null}function ie(t){return typeof t.tag=="number"?O(t):typeof t.name=="string"?t.name:null}function O(t){var r=t.type;switch(t.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(r._context.displayName||"Context")+".Consumer";case 10:return(r.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return re(r);case 8:return r===Nh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;break;case 29:if(r=t._debugInfo,r!=null){for(var o=r.length-1;0<=o;o--)if(typeof r[o].name=="string")return r[o].name}if(t.return!==null)return O(t.return)}return null}function P(t){return{current:t}}function L(t,r){0>qo?console.error("Unexpected pop."):(r!==fb[qo]&&console.error("Unexpected Fiber popped."),t.current=cb[qo],cb[qo]=null,fb[qo]=null,qo--)}function q(t,r,o){qo++,cb[qo]=t.current,fb[qo]=o,t.current=r}function oe(t){return t===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),t}function ge(t,r){q(ka,r,t),q(yf,t,t),q(La,null,t);var o=r.nodeType;switch(o){case 9:case 11:o=o===9?"#document":"#fragment",r=(r=r.documentElement)&&(r=r.namespaceURI)?jO(r):ea;break;default:if(o=r.tagName,r=r.namespaceURI)r=jO(r),r=PO(r,o);else switch(o){case"svg":r=zl;break;case"math":r=bm;break;default:r=ea}}o=o.toLowerCase(),o=QI(null,o),o={context:r,ancestorInfo:o},L(La,t),q(La,o,t)}function Ee(t){L(La,t),L(yf,t),L(ka,t)}function D(){return oe(La.current)}function fe(t){t.memoizedState!==null&&q(Bh,t,t);var r=oe(La.current),o=t.type,s=PO(r.context,o);o=QI(r.ancestorInfo,o),s={context:s,ancestorInfo:o},r!==s&&(q(yf,t,t),q(La,s,t))}function be(t){yf.current===t&&(L(La,t),L(yf,t)),Bh.current===t&&(L(Bh,t),td._currentValue=du)}function te(t){return typeof Symbol=="function"&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"}function j(t){try{return ue(t),!1}catch{return!0}}function ue(t){return""+t}function me(t,r){if(j(t))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",r,te(t)),ue(t)}function ne(t,r){if(j(t))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",r,te(t)),ue(t)}function G(t){if(j(t))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",te(t)),ue(t)}function Q(t){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var r=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(r.isDisabled)return!0;if(!r.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{fl=r.inject(t),rr=r}catch(o){console.error("React instrumentation encountered an error: %s.",o)}return!!r.checkDCE}function J(t){if(typeof $L=="function"&&qL(t),rr&&typeof rr.setStrictMode=="function")try{rr.setStrictMode(fl,t)}catch(r){co||(co=!0,console.error("React instrumentation encountered an error: %s",r))}}function ve(t){Ye=t}function Ae(){Ye!==null&&typeof Ye.markCommitStopped=="function"&&Ye.markCommitStopped()}function V(t){Ye!==null&&typeof Ye.markComponentRenderStarted=="function"&&Ye.markComponentRenderStarted(t)}function w(){Ye!==null&&typeof Ye.markComponentRenderStopped=="function"&&Ye.markComponentRenderStopped()}function $(t){Ye!==null&&typeof Ye.markRenderStarted=="function"&&Ye.markRenderStarted(t)}function Y(){Ye!==null&&typeof Ye.markRenderStopped=="function"&&Ye.markRenderStopped()}function W(t,r){Ye!==null&&typeof Ye.markStateUpdateScheduled=="function"&&Ye.markStateUpdateScheduled(t,r)}function de(t){return t>>>=0,t===0?32:31-(HL(t)/zL|0)|0}function pe(t){if(t&1)return"SyncHydrationLane";if(t&2)return"Sync";if(t&4)return"InputContinuousHydration";if(t&8)return"InputContinuous";if(t&16)return"DefaultHydration";if(t&32)return"Default";if(t&128)return"TransitionHydration";if(t&4194048)return"Transition";if(t&62914560)return"Retry";if(t&67108864)return"SelectiveHydration";if(t&134217728)return"IdleHydration";if(t&268435456)return"Idle";if(t&536870912)return"Offscreen";if(t&1073741824)return"Deferred"}function E(t){var r=t&42;if(r!==0)return r;switch(t&-t){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 t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),t}}function g(t,r,o){var s=t.pendingLanes;if(s===0)return 0;var c=0,d=t.suspendedLanes,x=t.pingedLanes;t=t.warmLanes;var T=s&134217727;return T!==0?(s=T&~d,s!==0?c=E(s):(x&=T,x!==0?c=E(x):o||(o=T&~t,o!==0&&(c=E(o))))):(T=s&~d,T!==0?c=E(T):x!==0?c=E(x):o||(o=s&~t,o!==0&&(c=E(o)))),c===0?0:r!==0&&r!==c&&(r&d)===0&&(d=c&-c,o=r&-r,d>=o||d===32&&(o&4194048)!==0)?r:c}function b(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function C(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function K(){var t=Uh;return Uh<<=1,(Uh&4194048)===0&&(Uh=256),t}function xe(){var t=Mh;return Mh<<=1,(Mh&62914560)===0&&(Mh=4194304),t}function Re(t){for(var r=[],o=0;31>o;o++)r.push(t);return r}function ze(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ce(t,r,o,s,c,d){var x=t.pendingLanes;t.pendingLanes=o,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=o,t.entangledLanes&=o,t.errorRecoveryDisabledLanes&=o,t.shellSuspendCounter=0;var T=t.entanglements,z=t.expirationTimes,Z=t.hiddenUpdates;for(o=x&~o;0<o;){var Se=31-dr(o),Ne=1<<Se;T[Se]=0,z[Se]=-1;var we=Z[Se];if(we!==null)for(Z[Se]=null,Se=0;Se<we.length;Se++){var De=we[Se];De!==null&&(De.lane&=-536870913)}o&=~Ne}s!==0&&le(t,s,0),d!==0&&c===0&&t.tag!==0&&(t.suspendedLanes|=d&~(x&~r))}function le(t,r,o){t.pendingLanes|=r,t.suspendedLanes&=~r;var s=31-dr(r);t.entangledLanes|=r,t.entanglements[s]=t.entanglements[s]|1073741824|o&4194090}function Ce(t,r){var o=t.entangledLanes|=r;for(t=t.entanglements;o;){var s=31-dr(o),c=1<<s;c&r|t[s]&r&&(t[s]|=r),o&=~c}}function Me(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Le(t,r,o){if(_i)for(t=t.pendingUpdatersLaneMap;0<o;){var s=31-dr(o),c=1<<s;t[s].add(r),o&=~c}}function tt(t,r){if(_i)for(var o=t.pendingUpdatersLaneMap,s=t.memoizedUpdaters;0<r;){var c=31-dr(r);t=1<<c,c=o[c],0<c.size&&(c.forEach(function(d){var x=d.alternate;x!==null&&s.has(x)||s.add(d)}),c.clear()),r&=~t}}function Ze(t){return t&=-t,mi<t?fo<t?(t&134217727)!==0?zo:_h:fo:mi}function ot(){var t=Mt.p;return t!==0?t:(t=window.event,t===void 0?zo:rR(t.type))}function at(t,r){var o=Mt.p;try{return Mt.p=t,r()}finally{Mt.p=o}}function ct(t){delete t[ir],delete t[Rr],delete t[gb],delete t[VL],delete t[GL]}function ut(t){var r=t[ir];if(r)return r;for(var o=t.parentNode;o;){if(r=o[qa]||o[ir]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(t=zO(t);t!==null;){if(o=t[ir])return o;t=zO(t)}return r}t=o,o=t.parentNode}return null}function bt(t){if(t=t[ir]||t[qa]){var r=t.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return t}return null}function wt(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function _(t){var r=t[cR];return r||(r=t[cR]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function he(t){t[bf]=!0}function _e(t,r){Pe(t,r),Pe(t+"Capture",r)}function Pe(t,r){Qs[t]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",t),Qs[t]=r;var o=t.toLowerCase();for(yb[o]=t,t==="onDoubleClick"&&(yb.ondblclick=t),t=0;t<r.length;t++)fR.add(r[t])}function He(t,r){QL[r.type]||r.onChange||r.onInput||r.readOnly||r.disabled||r.value==null||console.error(t==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),r.onChange||r.readOnly||r.disabled||r.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function it(t){return Ho.call(pR,t)?!0:Ho.call(dR,t)?!1:YL.test(t)?pR[t]=!0:(dR[t]=!0,console.error("Invalid attribute name: `%s`",t),!1)}function nt(t,r,o){if(it(r)){if(!t.hasAttribute(r)){switch(typeof o){case"symbol":case"object":return o;case"function":return o;case"boolean":if(o===!1)return o}return o===void 0?void 0:null}return t=t.getAttribute(r),t===""&&o===!0?!0:(me(o,r),t===""+o?o:t)}}function st(t,r,o){if(it(r))if(o===null)t.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var s=r.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(r);return}}me(o,r),t.setAttribute(r,""+o)}}function rt(t,r,o){if(o===null)t.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}me(o,r),t.setAttribute(r,""+o)}}function At(t,r,o,s){if(s===null)t.removeAttribute(o);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(o);return}me(s,o),t.setAttributeNS(r,o,""+s)}}function Sr(){}function wa(){if(Af===0){hR=console.log,mR=console.info,gR=console.warn,yR=console.error,bR=console.group,AR=console.groupCollapsed,vR=console.groupEnd;var t={configurable:!0,enumerable:!0,value:Sr,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}Af++}function Sa(){if(Af--,Af===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:yt({},t,{value:hR}),info:yt({},t,{value:mR}),warn:yt({},t,{value:gR}),error:yt({},t,{value:yR}),group:yt({},t,{value:bR}),groupCollapsed:yt({},t,{value:AR}),groupEnd:yt({},t,{value:vR})})}0>Af&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Ln(t){if(bb===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);bb=r&&r[1]||"",xR=-1<o.stack.indexOf(`
68
- at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
69
- `+bb+t+xR}function Ia(t,r){if(!t||Ab)return"";var o=vb.get(t);if(o!==void 0)return o;Ab=!0,o=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var s=null;s=Fe.H,Fe.H=null,wa();try{var c={DetermineComponentFrameRoot:function(){try{if(r){var we=function(){throw Error()};if(Object.defineProperty(we.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(we,[])}catch(Je){var De=Je}Reflect.construct(t,[],we)}else{try{we.call()}catch(Je){De=Je}t.call(we.prototype)}}else{try{throw Error()}catch(Je){De=Je}(we=t())&&typeof we.catch=="function"&&we.catch(function(){})}}catch(Je){if(Je&&De&&typeof Je.stack=="string")return[Je.stack,De.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=c.DetermineComponentFrameRoot(),T=x[0],z=x[1];if(T&&z){var Z=T.split(`
70
- `),Se=z.split(`
71
- `);for(x=d=0;d<Z.length&&!Z[d].includes("DetermineComponentFrameRoot");)d++;for(;x<Se.length&&!Se[x].includes("DetermineComponentFrameRoot");)x++;if(d===Z.length||x===Se.length)for(d=Z.length-1,x=Se.length-1;1<=d&&0<=x&&Z[d]!==Se[x];)x--;for(;1<=d&&0<=x;d--,x--)if(Z[d]!==Se[x]){if(d!==1||x!==1)do if(d--,x--,0>x||Z[d]!==Se[x]){var Ne=`
72
- `+Z[d].replace(" at new "," at ");return t.displayName&&Ne.includes("<anonymous>")&&(Ne=Ne.replace("<anonymous>",t.displayName)),typeof t=="function"&&vb.set(t,Ne),Ne}while(1<=d&&0<=x);break}}}finally{Ab=!1,Fe.H=s,Sa(),Error.prepareStackTrace=o}return Z=(Z=t?t.displayName||t.name:"")?Ln(Z):"",typeof t=="function"&&vb.set(t,Z),Z}function Es(t){var r=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,t=t.stack,Error.prepareStackTrace=r,t.startsWith(`Error: react-stack-top-frame
73
- `)&&(t=t.slice(29)),r=t.indexOf(`
74
- `),r!==-1&&(t=t.slice(r+1)),r=t.indexOf("react_stack_bottom_frame"),r!==-1&&(r=t.lastIndexOf(`
75
- `,r)),r!==-1)t=t.slice(0,r);else return"";return t}function zu(t){switch(t.tag){case 26:case 27:case 5:return Ln(t.type);case 16:return Ln("Lazy");case 13:return Ln("Suspense");case 19:return Ln("SuspenseList");case 0:case 15:return Ia(t.type,!1);case 11:return Ia(t.type.render,!1);case 1:return Ia(t.type,!0);case 31:return Ln("Activity");default:return""}}function ws(t){try{var r="";do{r+=zu(t);var o=t._debugInfo;if(o)for(var s=o.length-1;0<=s;s--){var c=o[s];if(typeof c.name=="string"){var d=r,x=c.env,T=Ln(c.name+(x?" ["+x+"]":""));r=d+T}}t=t.return}while(t);return r}catch(z){return`
76
- Error generating stack: `+z.message+`
77
- `+z.stack}}function Ss(t){return(t=t?t.displayName||t.name:"")?Ln(t):""}function Fo(){if(Kr===null)return null;var t=Kr._debugOwner;return t!=null?ie(t):null}function Vu(){if(Kr===null)return"";var t=Kr;try{var r="";switch(t.tag===6&&(t=t.return),t.tag){case 26:case 27:case 5:r+=Ln(t.type);break;case 13:r+=Ln("Suspense");break;case 19:r+=Ln("SuspenseList");break;case 31:r+=Ln("Activity");break;case 30:case 0:case 15:case 1:t._debugOwner||r!==""||(r+=Ss(t.type));break;case 11:t._debugOwner||r!==""||(r+=Ss(t.type.render))}for(;t;)if(typeof t.tag=="number"){var o=t;t=o._debugOwner;var s=o._debugStack;t&&s&&(typeof s!="string"&&(o._debugStack=s=Es(s)),s!==""&&(r+=`
78
- `+s))}else if(t.debugStack!=null){var c=t.debugStack;(t=t.owner)&&c&&(r+=`
79
- `+Es(c))}else break;var d=r}catch(x){d=`
80
- Error generating stack: `+x.message+`
81
- `+x.stack}return d}function et(t,r,o,s,c,d,x){var T=Kr;Ca(t);try{return t!==null&&t._debugTask?t._debugTask.run(r.bind(null,o,s,c,d,x)):r(o,s,c,d,x)}finally{Ca(T)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Ca(t){Fe.getCurrentStack=t===null?null:Vu,po=!1,Kr=t}function kn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return G(t),t;default:return""}}function Is(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Gu(t){var r=Is(t)?"checked":"value",o=Object.getOwnPropertyDescriptor(t.constructor.prototype,r);G(t[r]);var s=""+t[r];if(!t.hasOwnProperty(r)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var c=o.get,d=o.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return c.call(this)},set:function(x){G(x),s=""+x,d.call(this,x)}}),Object.defineProperty(t,r,{enumerable:o.enumerable}),{getValue:function(){return s},setValue:function(x){G(x),s=""+x},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function No(t){t._valueTracker||(t._valueTracker=Gu(t))}function Cs(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var o=r.getValue(),s="";return t&&(s=Is(t)?t.checked?"true":"false":t.value),t=s,t!==o?(r.setValue(t),!0):!1}function Do(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function $n(t){return t.replace(KL,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Ts(t,r){r.checked===void 0||r.defaultChecked===void 0||wR||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Fo()||"A component",r.type),wR=!0),r.value===void 0||r.defaultValue===void 0||ER||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Fo()||"A component",r.type),ER=!0)}function Ta(t,r,o,s,c,d,x,T){t.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?(me(x,"type"),t.type=x):t.removeAttribute("type"),r!=null?x==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+kn(r)):t.value!==""+kn(r)&&(t.value=""+kn(r)):x!=="submit"&&x!=="reset"||t.removeAttribute("value"),r!=null?Oa(t,x,kn(r)):o!=null?Oa(t,x,kn(o)):s!=null&&t.removeAttribute("value"),c==null&&d!=null&&(t.defaultChecked=!!d),c!=null&&(t.checked=c&&typeof c!="function"&&typeof c!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?(me(T,"name"),t.name=""+kn(T)):t.removeAttribute("name")}function Os(t,r,o,s,c,d,x,T){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(me(d,"type"),t.type=d),r!=null||o!=null){if(!(d!=="submit"&&d!=="reset"||r!=null))return;o=o!=null?""+kn(o):"",r=r!=null?""+kn(r):o,T||r===t.value||(t.value=r),t.defaultValue=r}s=s??c,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=T?t.checked:!!s,t.defaultChecked=!!s,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(me(x,"name"),t.name=x)}function Oa(t,r,o){r==="number"&&Do(t.ownerDocument)===t||t.defaultValue===""+o||(t.defaultValue=""+o)}function Rs(t,r){r.value==null&&(typeof r.children=="object"&&r.children!==null?ib.Children.forEach(r.children,function(o){o==null||typeof o=="string"||typeof o=="number"||typeof o=="bigint"||IR||(IR=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):r.dangerouslySetInnerHTML==null||CR||(CR=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),r.selected==null||SR||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),SR=!0)}function Fs(){var t=Fo();return t?`
82
-
83
- Check the render method of \``+t+"`.":""}function Bi(t,r,o,s){if(t=t.options,r){r={};for(var c=0;c<o.length;c++)r["$"+o[c]]=!0;for(o=0;o<t.length;o++)c=r.hasOwnProperty("$"+t[o].value),t[o].selected!==c&&(t[o].selected=c),c&&s&&(t[o].defaultSelected=!0)}else{for(o=""+kn(o),r=null,c=0;c<t.length;c++){if(t[c].value===o){t[c].selected=!0,s&&(t[c].defaultSelected=!0);return}r!==null||t[c].disabled||(r=t[c])}r!==null&&(r.selected=!0)}}function LI(t,r){for(t=0;t<OR.length;t++){var o=OR[t];if(r[o]!=null){var s=Vn(r[o]);r.multiple&&!s?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",o,Fs()):!r.multiple&&s&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",o,Fs())}}r.value===void 0||r.defaultValue===void 0||TR||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),TR=!0)}function kI(t,r){r.value===void 0||r.defaultValue===void 0||RR||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Fo()||"A component"),RR=!0),r.children!=null&&r.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function $I(t,r,o){if(r!=null&&(r=""+kn(r),r!==t.value&&(t.value=r),o==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=o!=null?""+kn(o):""}function qI(t,r,o,s){if(r==null){if(s!=null){if(o!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Vn(s)){if(1<s.length)throw Error("<textarea> can only have at most one child.");s=s[0]}o=s}o==null&&(o=""),r=o}o=kn(r),t.defaultValue=o,s=t.textContent,s===o&&s!==""&&s!==null&&(t.value=s)}function HI(t,r){return t.serverProps===void 0&&t.serverTail.length===0&&t.children.length===1&&3<t.distanceFromLeaf&&t.distanceFromLeaf>15-r?HI(t.children[0],r):t}function Hr(t){return" "+" ".repeat(t)}function Qu(t){return"+ "+" ".repeat(t)}function Ns(t){return"- "+" ".repeat(t)}function zI(t){switch(t.tag){case 26:case 27:case 5:return t.type;case 16:return"Lazy";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return t=t.type,t.displayName||t.name||null;case 11:return t=t.type.render,t.displayName||t.name||null;case 1:return t=t.type,t.displayName||t.name||null;default:return null}}function Mc(t,r){return FR.test(t)?(t=JSON.stringify(t),t.length>r-2?8>r?'{"..."}':"{"+t.slice(0,r-7)+'..."}':"{"+t+"}"):t.length>r?5>r?'{"..."}':t.slice(0,r-3)+"...":t}function Up(t,r,o){var s=120-2*o;if(r===null)return Qu(o)+Mc(t,s)+`
84
- `;if(typeof r=="string"){for(var c=0;c<r.length&&c<t.length&&r.charCodeAt(c)===t.charCodeAt(c);c++);return c>s-8&&10<c&&(t="..."+t.slice(c-8),r="..."+r.slice(c-8)),Qu(o)+Mc(t,s)+`
85
- `+Ns(o)+Mc(r,s)+`
86
- `}return Hr(o)+Mc(t,s)+`
87
- `}function sy(t){return Object.prototype.toString.call(t).replace(/^\[object (.*)\]$/,function(r,o){return o})}function _c(t,r){switch(typeof t){case"string":return t=JSON.stringify(t),t.length>r?5>r?'"..."':t.slice(0,r-4)+'..."':t;case"object":if(t===null)return"null";if(Vn(t))return"[...]";if(t.$$typeof===Pa)return(r=re(t.type))?"<"+r+">":"<...>";var o=sy(t);if(o==="Object"){o="",r-=2;for(var s in t)if(t.hasOwnProperty(s)){var c=JSON.stringify(s);if(c!=='"'+s+'"'&&(s=c),r-=s.length-2,c=_c(t[s],15>r?r:15),r-=c.length,0>r){o+=o===""?"...":", ...";break}o+=(o===""?"":",")+s+":"+c}return"{"+o+"}"}return o;case"function":return(r=t.displayName||t.name)?"function "+r:"function";default:return String(t)}}function Yu(t,r){return typeof t!="string"||FR.test(t)?"{"+_c(t,r-2)+"}":t.length>r-2?5>r?'"..."':'"'+t.slice(0,r-5)+'..."':'"'+t+'"'}function uy(t,r,o){var s=120-o.length-t.length,c=[],d;for(d in r)if(r.hasOwnProperty(d)&&d!=="children"){var x=Yu(r[d],120-o.length-d.length-1);s-=d.length+x.length+2,c.push(d+"="+x)}return c.length===0?o+"<"+t+`>
88
- `:0<s?o+"<"+t+" "+c.join(" ")+`>
89
- `:o+"<"+t+`
90
- `+o+" "+c.join(`
91
- `+o+" ")+`
92
- `+o+`>
93
- `}function eP(t,r,o){var s="",c=yt({},r),d;for(d in t)if(t.hasOwnProperty(d)){delete c[d];var x=120-2*o-d.length-2,T=_c(t[d],x);r.hasOwnProperty(d)?(x=_c(r[d],x),s+=Qu(o)+d+": "+T+`
94
- `,s+=Ns(o)+d+": "+x+`
95
- `):s+=Qu(o)+d+": "+T+`
96
- `}for(var z in c)c.hasOwnProperty(z)&&(t=_c(c[z],120-2*o-z.length-2),s+=Ns(o)+z+": "+t+`
97
- `);return s}function tP(t,r,o,s){var c="",d=new Map;for(Z in o)o.hasOwnProperty(Z)&&d.set(Z.toLowerCase(),Z);if(d.size===1&&d.has("children"))c+=uy(t,r,Hr(s));else{for(var x in r)if(r.hasOwnProperty(x)&&x!=="children"){var T=120-2*(s+1)-x.length-1,z=d.get(x.toLowerCase());if(z!==void 0){d.delete(x.toLowerCase());var Z=r[x];z=o[z];var Se=Yu(Z,T);T=Yu(z,T),typeof Z=="object"&&Z!==null&&typeof z=="object"&&z!==null&&sy(Z)==="Object"&&sy(z)==="Object"&&(2<Object.keys(Z).length||2<Object.keys(z).length||-1<Se.indexOf("...")||-1<T.indexOf("..."))?c+=Hr(s+1)+x+`={{
98
- `+eP(Z,z,s+2)+Hr(s+1)+`}}
99
- `:(c+=Qu(s+1)+x+"="+Se+`
100
- `,c+=Ns(s+1)+x+"="+T+`
101
- `)}else c+=Hr(s+1)+x+"="+Yu(r[x],T)+`
102
- `}d.forEach(function(Ne){if(Ne!=="children"){var we=120-2*(s+1)-Ne.length-1;c+=Ns(s+1)+Ne+"="+Yu(o[Ne],we)+`
103
- `}}),c=c===""?Hr(s)+"<"+t+`>
104
- `:Hr(s)+"<"+t+`
105
- `+c+Hr(s)+`>
106
- `}return t=o.children,r=r.children,typeof t=="string"||typeof t=="number"||typeof t=="bigint"?(d="",(typeof r=="string"||typeof r=="number"||typeof r=="bigint")&&(d=""+r),c+=Up(d,""+t,s+1)):(typeof r=="string"||typeof r=="number"||typeof r=="bigint")&&(c=t==null?c+Up(""+r,null,s+1):c+Up(""+r,void 0,s+1)),c}function VI(t,r){var o=zI(t);if(o===null){for(o="",t=t.child;t;)o+=VI(t,r),t=t.sibling;return o}return Hr(r)+"<"+o+`>
107
- `}function ly(t,r){var o=HI(t,r);if(o!==t&&(t.children.length!==1||t.children[0]!==o))return Hr(r)+`...
108
- `+ly(o,r+1);o="";var s=t.fiber._debugInfo;if(s)for(var c=0;c<s.length;c++){var d=s[c].name;typeof d=="string"&&(o+=Hr(r)+"<"+d+`>
109
- `,r++)}if(s="",c=t.fiber.pendingProps,t.fiber.tag===6)s=Up(c,t.serverProps,r),r++;else if(d=zI(t.fiber),d!==null)if(t.serverProps===void 0){s=r;var x=120-2*s-d.length-2,T="";for(Z in c)if(c.hasOwnProperty(Z)&&Z!=="children"){var z=Yu(c[Z],15);if(x-=Z.length+z.length+2,0>x){T+=" ...";break}T+=" "+Z+"="+z}s=Hr(s)+"<"+d+T+`>
110
- `,r++}else t.serverProps===null?(s=uy(d,c,Qu(r)),r++):typeof t.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(s=tP(d,c,t.serverProps,r),r++);var Z="";for(c=t.fiber.child,d=0;c&&d<t.children.length;)x=t.children[d],x.fiber===c?(Z+=ly(x,r),d++):Z+=VI(c,r),c=c.sibling;for(c&&0<t.children.length&&(Z+=Hr(r)+`...
111
- `),c=t.serverTail,t.serverProps===null&&r--,t=0;t<c.length;t++)d=c[t],Z=typeof d=="string"?Z+(Ns(r)+Mc(d,120-2*r)+`
112
- `):Z+uy(d.type,d.props,Ns(r));return o+s+Z}function cy(t){try{return`
113
-
114
- `+ly(t,0)}catch{return""}}function GI(t,r,o){for(var s=r,c=null,d=0;s;)s===t&&(d=0),c={fiber:s,children:c!==null?[c]:[],serverProps:s===r?o:s===t?null:void 0,serverTail:[],distanceFromLeaf:d},d++,s=s.return;return c!==null?cy(c).replaceAll(/^[+-]/gm,">"):""}function QI(t,r){var o=yt({},t||DR),s={tag:r};return NR.indexOf(r)!==-1&&(o.aTagInScope=null,o.buttonTagInScope=null,o.nobrTagInScope=null),ZL.indexOf(r)!==-1&&(o.pTagInButtonScope=null),XL.indexOf(r)!==-1&&r!=="address"&&r!=="div"&&r!=="p"&&(o.listItemTagAutoclosing=null,o.dlItemTagAutoclosing=null),o.current=s,r==="form"&&(o.formTag=s),r==="a"&&(o.aTagInScope=s),r==="button"&&(o.buttonTagInScope=s),r==="nobr"&&(o.nobrTagInScope=s),r==="p"&&(o.pTagInButtonScope=s),r==="li"&&(o.listItemTagAutoclosing=s),(r==="dd"||r==="dt")&&(o.dlItemTagAutoclosing=s),r==="#document"||r==="html"?o.containerTagInScope=null:o.containerTagInScope||(o.containerTagInScope=s),t!==null||r!=="#document"&&r!=="html"&&r!=="body"?o.implicitRootScope===!0&&(o.implicitRootScope=!1):o.implicitRootScope=!0,o}function YI(t,r,o){switch(r){case"select":return t==="hr"||t==="option"||t==="optgroup"||t==="script"||t==="template"||t==="#text";case"optgroup":return t==="option"||t==="#text";case"option":return t==="#text";case"tr":return t==="th"||t==="td"||t==="style"||t==="script"||t==="template";case"tbody":case"thead":case"tfoot":return t==="tr"||t==="style"||t==="script"||t==="template";case"colgroup":return t==="col"||t==="template";case"table":return t==="caption"||t==="colgroup"||t==="tbody"||t==="tfoot"||t==="thead"||t==="style"||t==="script"||t==="template";case"head":return t==="base"||t==="basefont"||t==="bgsound"||t==="link"||t==="meta"||t==="title"||t==="noscript"||t==="noframes"||t==="style"||t==="script"||t==="template";case"html":if(o)break;return t==="head"||t==="body"||t==="frameset";case"frameset":return t==="frame";case"#document":if(!o)return t==="html"}switch(t){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return r!=="h1"&&r!=="h2"&&r!=="h3"&&r!=="h4"&&r!=="h5"&&r!=="h6";case"rp":case"rt":return JL.indexOf(r)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return r==null;case"head":return o||r===null;case"html":return o&&r==="#document"||r===null;case"body":return o&&(r==="#document"||r==="html")||r===null}return!0}function nP(t,r){switch(t){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return r.pTagInButtonScope;case"form":return r.formTag||r.pTagInButtonScope;case"li":return r.listItemTagAutoclosing;case"dd":case"dt":return r.dlItemTagAutoclosing;case"button":return r.buttonTagInScope;case"a":return r.aTagInScope;case"nobr":return r.nobrTagInScope}return null}function KI(t,r){for(;t;){switch(t.tag){case 5:case 26:case 27:if(t.type===r)return t}t=t.return}return null}function fy(t,r){r=r||DR;var o=r.current;if(r=(o=YI(t,o&&o.tag,r.implicitRootScope)?null:o)?null:nP(t,r),r=o||r,!r)return!0;var s=r.tag;if(r=String(!!o)+"|"+t+"|"+s,jh[r])return!1;jh[r]=!0;var c=(r=Kr)?KI(r.return,s):null,d=r!==null&&c!==null?GI(c,r,null):"",x="<"+t+">";return o?(o="",s==="table"&&t==="tr"&&(o+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
115
- This will cause a hydration error.%s`,x,s,o,d)):console.error(`In HTML, %s cannot be a descendant of <%s>.
116
- This will cause a hydration error.%s`,x,s,d),r&&(t=r.return,c===null||t===null||c===t&&t._debugOwner===r._debugOwner||et(c,function(){console.error(`<%s> cannot contain a nested %s.
117
- See this log for the ancestor stack trace.`,s,x)})),!1}function Mp(t,r,o){if(o||YI("#text",r,!1))return!0;if(o="#text|"+r,jh[o])return!1;jh[o]=!0;var s=(o=Kr)?KI(o,r):null;return o=o!==null&&s!==null?GI(s,o,o.tag!==6?{children:null}:null):"",/\S/.test(t)?console.error(`In HTML, text nodes cannot be a child of <%s>.
118
- This will cause a hydration error.%s`,r,o):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
119
- This will cause a hydration error.%s`,r,o),!1}function jc(t,r){if(r){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=r;return}}t.textContent=r}function rP(t){return t.replace(tk,function(r,o){return o.toUpperCase()})}function XI(t,r,o){var s=r.indexOf("--")===0;s||(-1<r.indexOf("-")?dl.hasOwnProperty(r)&&dl[r]||(dl[r]=!0,console.error("Unsupported style property %s. Did you mean %s?",r,rP(r.replace(ek,"ms-")))):WL.test(r)?dl.hasOwnProperty(r)&&dl[r]||(dl[r]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",r,r.charAt(0).toUpperCase()+r.slice(1))):!MR.test(o)||Eb.hasOwnProperty(o)&&Eb[o]||(Eb[o]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,r,o.replace(MR,""))),typeof o=="number"&&(isNaN(o)?_R||(_R=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",r)):isFinite(o)||jR||(jR=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",r)))),o==null||typeof o=="boolean"||o===""?s?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":s?t.setProperty(r,o):typeof o!="number"||o===0||PR.has(r)?r==="float"?t.cssFloat=o:(ne(o,r),t[r]=(""+o).trim()):t[r]=o+"px"}function ZI(t,r,o){if(r!=null&&typeof r!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(r&&Object.freeze(r),t=t.style,o!=null){if(r){var s={};if(o){for(var c in o)if(o.hasOwnProperty(c)&&!r.hasOwnProperty(c))for(var d=xb[c]||[c],x=0;x<d.length;x++)s[d[x]]=c}for(var T in r)if(r.hasOwnProperty(T)&&(!o||o[T]!==r[T]))for(c=xb[T]||[T],d=0;d<c.length;d++)s[c[d]]=T;T={};for(var z in r)for(c=xb[z]||[z],d=0;d<c.length;d++)T[c[d]]=z;z={};for(var Z in s)if(c=s[Z],(d=T[Z])&&c!==d&&(x=c+","+d,!z[x])){z[x]=!0,x=console;var Se=r[c];x.error.call(x,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Se==null||typeof Se=="boolean"||Se===""?"Removing":"Updating",c,d)}}for(var Ne in o)!o.hasOwnProperty(Ne)||r!=null&&r.hasOwnProperty(Ne)||(Ne.indexOf("--")===0?t.setProperty(Ne,""):Ne==="float"?t.cssFloat="":t[Ne]="");for(var we in r)Z=r[we],r.hasOwnProperty(we)&&o[we]!==Z&&XI(t,we,Z)}else for(s in r)r.hasOwnProperty(s)&&XI(t,s,r[s])}function Pc(t){if(t.indexOf("-")===-1)return!1;switch(t){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}}function JI(t){return nk.get(t)||t}function iP(t,r){if(Ho.call(hl,r)&&hl[r])return!0;if(ik.test(r)){if(t="aria-"+r.slice(4).toLowerCase(),t=LR.hasOwnProperty(t)?t:null,t==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",r),hl[r]=!0;if(r!==t)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",r,t),hl[r]=!0}if(rk.test(r)){if(t=r.toLowerCase(),t=LR.hasOwnProperty(t)?t:null,t==null)return hl[r]=!0,!1;r!==t&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",r,t),hl[r]=!0)}return!0}function oP(t,r){var o=[],s;for(s in r)iP(t,s)||o.push(s);r=o.map(function(c){return"`"+c+"`"}).join(", "),o.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",r,t):1<o.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",r,t)}function aP(t,r,o,s){if(Ho.call(pr,r)&&pr[r])return!0;var c=r.toLowerCase();if(c==="onfocusin"||c==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),pr[r]=!0;if(typeof o=="function"&&(t==="form"&&r==="action"||t==="input"&&r==="formAction"||t==="button"&&r==="formAction"))return!0;if(s!=null){if(t=s.possibleRegistrationNames,s.registrationNameDependencies.hasOwnProperty(r))return!0;if(s=t.hasOwnProperty(c)?t[c]:null,s!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",r,s),pr[r]=!0;if($R.test(r))return console.error("Unknown event handler property `%s`. It will be ignored.",r),pr[r]=!0}else if($R.test(r))return ok.test(r)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",r),pr[r]=!0;if(ak.test(r)||sk.test(r))return!0;if(c==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),pr[r]=!0;if(c==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),pr[r]=!0;if(c==="is"&&o!==null&&o!==void 0&&typeof o!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof o),pr[r]=!0;if(typeof o=="number"&&isNaN(o))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",r),pr[r]=!0;if(Lh.hasOwnProperty(c)){if(c=Lh[c],c!==r)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",r,c),pr[r]=!0}else if(r!==c)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",r,c),pr[r]=!0;switch(r){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof o){case"boolean":switch(r){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:return c=r.toLowerCase().slice(0,5),c==="data-"||c==="aria-"?!0:(o?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',o,r,r,o,r):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',o,r,r,o,r,r,r),pr[r]=!0)}case"function":case"symbol":return pr[r]=!0,!1;case"string":if(o==="false"||o==="true"){switch(r){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",o,r,o==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',r,o),pr[r]=!0}}return!0}function sP(t,r,o){var s=[],c;for(c in r)aP(t,c,r[c],o)||s.push(c);r=s.map(function(d){return"`"+d+"`"}).join(", "),s.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",r,t):1<s.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",r,t)}function Lc(t){return uk.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function dy(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}function WI(t){var r=bt(t);if(r&&(t=r.stateNode)){var o=t[Rr]||null;e:switch(t=r.stateNode,r.type){case"input":if(Ta(t,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),r=o.name,o.type==="radio"&&r!=null){for(o=t;o.parentNode;)o=o.parentNode;for(me(r,"name"),o=o.querySelectorAll('input[name="'+$n(""+r)+'"][type="radio"]'),r=0;r<o.length;r++){var s=o[r];if(s!==t&&s.form===t.form){var c=s[Rr]||null;if(!c)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Ta(s,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(r=0;r<o.length;r++)s=o[r],s.form===t.form&&Cs(s)}break e;case"textarea":$I(t,o.value,o.defaultValue);break e;case"select":r=o.value,r!=null&&Bi(t,!!o.multiple,r,!1)}}}function eC(t,r,o){if(wb)return t(r,o);wb=!0;try{var s=t(r);return s}finally{if(wb=!1,(ml!==null||gl!==null)&&(nl(),ml&&(r=ml,t=gl,gl=ml=null,WI(r),t)))for(r=0;r<t.length;r++)WI(t[r])}}function kc(t,r){var o=t.stateNode;if(o===null)return null;var s=o[Rr]||null;if(s===null)return null;o=s[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break e;default:t=!1}if(t)return null;if(o&&typeof o!="function")throw Error("Expected `"+r+"` listener to be a function, instead got a value of `"+typeof o+"` type.");return o}function tC(){if(kh)return kh;var t,r=Ib,o=r.length,s,c="value"in Ha?Ha.value:Ha.textContent,d=c.length;for(t=0;t<o&&r[t]===c[t];t++);var x=o-t;for(s=1;s<=x&&r[o-s]===c[d-s];s++);return kh=c.slice(t,1<s?1-s:void 0)}function _p(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function jp(){return!0}function nC(){return!1}function Ir(t){function r(o,s,c,d,x){this._reactName=o,this._targetInst=c,this.type=s,this.nativeEvent=d,this.target=x,this.currentTarget=null;for(var T in t)t.hasOwnProperty(T)&&(o=t[T],this[T]=o?o(d):d[T]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?jp:nC,this.isPropagationStopped=nC,this}return yt(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=jp)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=jp)},persist:function(){},isPersistent:jp}),r}function uP(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=xk[t])?!!r[t]:!1}function py(){return uP}function rC(t,r){switch(t){case"keyup":return Bk.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==VR;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iC(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}function lP(t,r){switch(t){case"compositionend":return iC(r);case"keypress":return r.which!==QR?null:(KR=!0,YR);case"textInput":return t=r.data,t===YR&&KR?null:t;default:return null}}function cP(t,r){if(yl)return t==="compositionend"||!Rb&&rC(t,r)?(t=tC(),kh=Ib=Ha=null,yl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return GR&&r.locale!=="ko"?null:r.data;default:return null}}function oC(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!Mk[t.type]:r==="textarea"}function fP(t){if(!ho)return!1;t="on"+t;var r=t in document;return r||(r=document.createElement("div"),r.setAttribute(t,"return;"),r=typeof r[t]=="function"),r}function aC(t,r,o,s){ml?gl?gl.push(s):gl=[s]:ml=s,r=xh(r,"onChange"),0<r.length&&(o=new $h("onChange","change",null,o,s),t.push({event:o,listeners:r}))}function dP(t){TO(t,0)}function Pp(t){var r=wt(t);if(Cs(r))return t}function sC(t,r){if(t==="change")return r}function uC(){If&&(If.detachEvent("onpropertychange",lC),Cf=If=null)}function lC(t){if(t.propertyName==="value"&&Pp(Cf)){var r=[];aC(r,Cf,t,dy(t)),eC(dP,r)}}function pP(t,r,o){t==="focusin"?(uC(),If=r,Cf=o,If.attachEvent("onpropertychange",lC)):t==="focusout"&&uC()}function hP(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Pp(Cf)}function mP(t,r){if(t==="click")return Pp(r)}function gP(t,r){if(t==="input"||t==="change")return Pp(r)}function yP(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}function $c(t,r){if(hr(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var o=Object.keys(t),s=Object.keys(r);if(o.length!==s.length)return!1;for(s=0;s<o.length;s++){var c=o[s];if(!Ho.call(r,c)||!hr(t[c],r[c]))return!1}return!0}function cC(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function fC(t,r){var o=cC(t);t=0;for(var s;o;){if(o.nodeType===3){if(s=t+o.textContent.length,t<=r&&s>=r)return{node:o,offset:r-t};t=s}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=cC(o)}}function dC(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?dC(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function pC(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=Do(t.document);r instanceof t.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)t=r.contentWindow;else break;r=Do(t.document)}return r}function hy(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function hC(t,r,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Nb||bl==null||bl!==Do(s)||(s=bl,"selectionStart"in s&&hy(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Tf&&$c(Tf,s)||(Tf=s,s=xh(Fb,"onSelect"),0<s.length&&(r=new $h("onSelect","select",null,r,o),t.push({event:r,listeners:s}),r.target=bl)))}function Ds(t,r){var o={};return o[t.toLowerCase()]=r.toLowerCase(),o["Webkit"+t]="webkit"+r,o["Moz"+t]="moz"+r,o}function Bs(t){if(Db[t])return Db[t];if(!Al[t])return t;var r=Al[t],o;for(o in r)if(r.hasOwnProperty(o)&&o in ZR)return Db[t]=r[o];return t}function Ui(t,r){nF.set(t,r),_e(r,[t])}function zr(t,r){if(typeof t=="object"&&t!==null){var o=Ub.get(t);return o!==void 0?o:(r={value:t,source:r,stack:ws(r)},Ub.set(t,r),r)}return{value:t,source:r,stack:ws(r)}}function Lp(){for(var t=vl,r=Mb=vl=0;r<t;){var o=gi[r];gi[r++]=null;var s=gi[r];gi[r++]=null;var c=gi[r];gi[r++]=null;var d=gi[r];if(gi[r++]=null,s!==null&&c!==null){var x=s.pending;x===null?c.next=c:(c.next=x.next,x.next=c),s.pending=c}d!==0&&mC(o,c,d)}}function kp(t,r,o,s){gi[vl++]=t,gi[vl++]=r,gi[vl++]=o,gi[vl++]=s,Mb|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function my(t,r,o,s){return kp(t,r,o,s),$p(t)}function Cr(t,r){return kp(t,null,null,r),$p(t)}function mC(t,r,o){t.lanes|=o;var s=t.alternate;s!==null&&(s.lanes|=o);for(var c=!1,d=t.return;d!==null;)d.childLanes|=o,s=d.alternate,s!==null&&(s.childLanes|=o),d.tag===22&&(t=d.stateNode,t===null||t._visibility&Hh||(c=!0)),t=d,d=d.return;return t.tag===3?(d=t.stateNode,c&&r!==null&&(c=31-dr(o),t=d.hiddenUpdates,s=t[c],s===null?t[c]=[r]:s.push(r),r.lane=o|536870912),d):null}function $p(t){if(Kf>i5)throw su=Kf=0,Xf=fA=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");su>o5&&(su=0,Xf=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),t.alternate===null&&(t.flags&4098)!==0&&vO(t);for(var r=t,o=r.return;o!==null;)r.alternate===null&&(r.flags&4098)!==0&&vO(t),r=o,o=r.return;return r.tag===3?r.stateNode:null}function Us(t){if(yi===null)return t;var r=yi(t);return r===void 0?t:r.current}function gy(t){if(yi===null)return t;var r=yi(t);return r===void 0?t!=null&&typeof t.render=="function"&&(r=Us(t.render),t.render!==r)?(r={$$typeof:gf,render:r},t.displayName!==void 0&&(r.displayName=t.displayName),r):t:r.current}function gC(t,r){if(yi===null)return!1;var o=t.elementType;r=r.type;var s=!1,c=typeof r=="object"&&r!==null?r.$$typeof:null;switch(t.tag){case 1:typeof r=="function"&&(s=!0);break;case 0:(typeof r=="function"||c===Yr)&&(s=!0);break;case 11:(c===gf||c===Yr)&&(s=!0);break;case 14:case 15:(c===Dh||c===Yr)&&(s=!0);break;default:return!1}return!!(s&&(t=yi(o),t!==void 0&&t===yi(r)))}function yC(t){yi!==null&&typeof WeakSet=="function"&&(xl===null&&(xl=new WeakSet),xl.add(t))}function yy(t,r,o){var s=t.alternate,c=t.child,d=t.sibling,x=t.tag,T=t.type,z=null;switch(x){case 0:case 15:case 1:z=T;break;case 11:z=T.render}if(yi===null)throw Error("Expected resolveFamily to be set during hot reload.");var Z=!1;T=!1,z!==null&&(z=yi(z),z!==void 0&&(o.has(z)?T=!0:r.has(z)&&(x===1?T=!0:Z=!0))),xl!==null&&(xl.has(t)||s!==null&&xl.has(s))&&(T=!0),T&&(t._debugNeedsRemount=!0),(T||Z)&&(s=Cr(t,2),s!==null&&ln(s,t,2)),c===null||T||yy(c,r,o),d!==null&&yy(d,r,o)}function bP(t,r,o,s){this.tag=t,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,iF||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function by(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Bo(t,r){var o=t.alternate;switch(o===null?(o=y(t.tag,r,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o._debugOwner=t._debugOwner,o._debugStack=t._debugStack,o._debugTask=t._debugTask,o._debugHookTypes=t._debugHookTypes,o.alternate=t,t.alternate=o):(o.pendingProps=r,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null,o.actualDuration=-0,o.actualStartTime=-1.1),o.flags=t.flags&65011712,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,r=t.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext,_debugThenableState:r._debugThenableState},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o.refCleanup=t.refCleanup,o.selfBaseDuration=t.selfBaseDuration,o.treeBaseDuration=t.treeBaseDuration,o._debugInfo=t._debugInfo,o._debugNeedsRemount=t._debugNeedsRemount,o.tag){case 0:case 15:o.type=Us(t.type);break;case 1:o.type=Us(t.type);break;case 11:o.type=gy(t.type)}return o}function bC(t,r){t.flags&=65011714;var o=t.alternate;return o===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null,t.selfBaseDuration=0,t.treeBaseDuration=0):(t.childLanes=o.childLanes,t.lanes=o.lanes,t.child=o.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=o.memoizedProps,t.memoizedState=o.memoizedState,t.updateQueue=o.updateQueue,t.type=o.type,r=o.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext,_debugThenableState:r._debugThenableState},t.selfBaseDuration=o.selfBaseDuration,t.treeBaseDuration=o.treeBaseDuration),t}function Ay(t,r,o,s,c,d){var x=0,T=t;if(typeof t=="function")by(t)&&(x=1),T=Us(T);else if(typeof t=="string")x=D(),x=bL(t,o,x)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case lb:return r=y(31,o,r,c),r.elementType=lb,r.lanes=d,r;case ll:return Ms(o.children,c,d,r);case Nh:x=8,c|=or,c|=ji;break;case ob:return t=o,s=c,typeof t.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof t.id),r=y(12,t,r,s|Gn),r.elementType=ob,r.lanes=d,r.stateNode={effectDuration:0,passiveEffectDuration:0},r;case sb:return r=y(13,o,r,c),r.elementType=sb,r.lanes=d,r;case ub:return r=y(19,o,r,c),r.elementType=ub,r.lanes=d,r;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case DL:case uo:x=10;break e;case ab:x=9;break e;case gf:x=11,T=gy(T);break e;case Dh:x=14;break e;case Yr:x=16,T=null;break e}T="",(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(T+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),t===null?o="null":Vn(t)?o="array":t!==void 0&&t.$$typeof===Pa?(o="<"+(re(t.type)||"Unknown")+" />",T=" Did you accidentally export a JSX literal instead of a component?"):o=typeof t,(x=s?ie(s):null)&&(T+=`
120
-
121
- Check the render method of \``+x+"`."),x=29,o=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(o+"."+T)),T=null}return r=y(x,o,r,c),r.elementType=t,r.type=T,r.lanes=d,r._debugOwner=s,r}function qp(t,r,o){return r=Ay(t.type,t.key,t.props,t._owner,r,o),r._debugOwner=t._owner,r._debugStack=t._debugStack,r._debugTask=t._debugTask,r}function Ms(t,r,o,s){return t=y(7,t,s,r),t.lanes=o,t}function vy(t,r,o){return t=y(6,t,null,r),t.lanes=o,t}function xy(t,r,o){return r=y(4,t.children!==null?t.children:[],t.key,r),r.lanes=o,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function _s(t,r){js(),El[wl++]=Vh,El[wl++]=zh,zh=t,Vh=r}function AC(t,r,o){js(),bi[Ai++]=Go,bi[Ai++]=Qo,bi[Ai++]=Ks,Ks=t;var s=Go;t=Qo;var c=32-dr(s)-1;s&=~(1<<c),o+=1;var d=32-dr(r)+c;if(30<d){var x=c-c%5;d=(s&(1<<x)-1).toString(32),s>>=x,c-=x,Go=1<<32-dr(r)+c|o<<c|s,Qo=d+t}else Go=1<<d|o<<c|s,Qo=t}function Ey(t){js(),t.return!==null&&(_s(t,1),AC(t,1,0))}function wy(t){for(;t===zh;)zh=El[--wl],El[wl]=null,Vh=El[--wl],El[wl]=null;for(;t===Ks;)Ks=bi[--Ai],bi[Ai]=null,Qo=bi[--Ai],bi[Ai]=null,Go=bi[--Ai],bi[Ai]=null}function js(){Bt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Ps(t,r){if(t.return===null){if(vi===null)vi={fiber:t,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:r};else{if(vi.fiber!==t)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");vi.distanceFromLeaf>r&&(vi.distanceFromLeaf=r)}return vi}var o=Ps(t.return,r+1).children;return 0<o.length&&o[o.length-1].fiber===t?(o=o[o.length-1],o.distanceFromLeaf>r&&(o.distanceFromLeaf=r),o):(r={fiber:t,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:r},o.push(r),r)}function Sy(t,r){Yo||(t=Ps(t,0),t.serverProps=null,r!==null&&(r=$O(r),t.serverTail.push(r)))}function Ls(t){var r="",o=vi;throw o!==null&&(vi=null,r=cy(o)),zc(zr(Error(`Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
122
-
123
- - A server/client branch \`if (typeof window !== 'undefined')\`.
124
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
125
- - Date formatting in a user's locale which doesn't match the server.
126
- - External changing data without sending a snapshot of it along with the HTML.
127
- - Invalid HTML tag nesting.
128
-
129
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
130
-
131
- https://react.dev/link/hydration-mismatch`+r),t)),_b}function vC(t){var r=t.stateNode,o=t.type,s=t.memoizedProps;switch(r[ir]=t,r[Rr]=s,$0(o,s),o){case"dialog":St("cancel",r),St("close",r);break;case"iframe":case"object":case"embed":St("load",r);break;case"video":case"audio":for(o=0;o<Zf.length;o++)St(Zf[o],r);break;case"source":St("error",r);break;case"img":case"image":case"link":St("error",r),St("load",r);break;case"details":St("toggle",r);break;case"input":He("input",s),St("invalid",r),Ts(r,s),Os(r,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),No(r);break;case"option":Rs(r,s);break;case"select":He("select",s),St("invalid",r),LI(r,s);break;case"textarea":He("textarea",s),St("invalid",r),kI(r,s),qI(r,s.value,s.defaultValue,s.children),No(r)}o=s.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||r.textContent===""+o||s.suppressHydrationWarning===!0||NO(r.textContent,o)?(s.popover!=null&&(St("beforetoggle",r),St("toggle",r)),s.onScroll!=null&&St("scroll",r),s.onScrollEnd!=null&&St("scrollend",r),s.onClick!=null&&(r.onclick=Eh),r=!0):r=!1,r||Ls(t)}function xC(t){for(mr=t.return;mr;)switch(mr.tag){case 5:case 13:mo=!1;return;case 27:case 3:mo=!0;return;default:mr=mr.return}}function qc(t){if(t!==mr)return!1;if(!Bt)return xC(t),Bt=!0,!1;var r=t.tag,o;if((o=r!==3&&r!==27)&&((o=r===5)&&(o=t.type,o=!(o!=="form"&&o!=="button")||G0(t.type,t.memoizedProps)),o=!o),o&&nn){for(o=nn;o;){var s=Ps(t,0),c=$O(o);s.serverTail.push(c),o=c.type==="Suspense"?HO(o):hi(o.nextSibling)}Ls(t)}if(xC(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");nn=HO(t)}else r===27?(r=nn,ja(t.type)?(t=wA,wA=null,nn=t):nn=r):nn=mr?hi(t.stateNode.nextSibling):null;return!0}function Hc(){nn=mr=null,Yo=Bt=!1}function EC(){var t=Xs;return t!==null&&(br===null?br=t:br.push.apply(br,t),Xs=null),t}function zc(t){Xs===null?Xs=[t]:Xs.push(t)}function wC(){var t=vi;if(t!==null){vi=null;for(var r=cy(t);0<t.children.length;)t=t.children[0];et(t.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
132
-
133
- - A server/client branch \`if (typeof window !== 'undefined')\`.
134
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
135
- - Date formatting in a user's locale which doesn't match the server.
136
- - External changing data without sending a snapshot of it along with the HTML.
137
- - Invalid HTML tag nesting.
138
-
139
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
140
-
141
- %s%s`,"https://react.dev/link/hydration-mismatch",r)})}}function Hp(){Sl=Gh=null,Il=!1}function Ra(t,r,o){q(jb,r._currentValue,t),r._currentValue=o,q(Pb,r._currentRenderer,t),r._currentRenderer!==void 0&&r._currentRenderer!==null&&r._currentRenderer!==uF&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),r._currentRenderer=uF}function Uo(t,r){t._currentValue=jb.current;var o=Pb.current;L(Pb,r),t._currentRenderer=o,L(jb,r)}function Iy(t,r,o){for(;t!==null;){var s=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,s!==null&&(s.childLanes|=r)):s!==null&&(s.childLanes&r)!==r&&(s.childLanes|=r),t===o)break;t=t.return}t!==o&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Cy(t,r,o,s){var c=t.child;for(c!==null&&(c.return=t);c!==null;){var d=c.dependencies;if(d!==null){var x=c.child;d=d.firstContext;e:for(;d!==null;){var T=d;d=c;for(var z=0;z<r.length;z++)if(T.context===r[z]){d.lanes|=o,T=d.alternate,T!==null&&(T.lanes|=o),Iy(d.return,o,t),s||(x=null);break e}d=T.next}}else if(c.tag===18){if(x=c.return,x===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");x.lanes|=o,d=x.alternate,d!==null&&(d.lanes|=o),Iy(x,o,t),x=null}else x=c.child;if(x!==null)x.return=c;else for(x=c;x!==null;){if(x===t){x=null;break}if(c=x.sibling,c!==null){c.return=x.return,x=c;break}x=x.return}c=x}}function Vc(t,r,o,s){t=null;for(var c=r,d=!1;c!==null;){if(!d){if((c.flags&524288)!==0)d=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var x=c.alternate;if(x===null)throw Error("Should have a current fiber. This is a bug in React.");if(x=x.memoizedProps,x!==null){var T=c.type;hr(c.pendingProps.value,x.value)||(t!==null?t.push(T):t=[T])}}else if(c===Bh.current){if(x=c.alternate,x===null)throw Error("Should have a current fiber. This is a bug in React.");x.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(t!==null?t.push(td):t=[td])}c=c.return}t!==null&&Cy(r,t,o,s),r.flags|=262144}function zp(t){for(t=t.firstContext;t!==null;){if(!hr(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ks(t){Gh=t,Sl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Xt(t){return Il&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),SC(Gh,t)}function Vp(t,r){return Gh===null&&ks(t),SC(t,r)}function SC(t,r){var o=r._currentValue;if(r={context:r,memoizedValue:o,next:null},Sl===null){if(t===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Sl=r,t.dependencies={lanes:0,firstContext:r,_debugThenableState:null},t.flags|=524288}else Sl=Sl.next=r;return o}function Ty(){return{controller:new Hk,data:new Map,refCount:0}}function $s(t){t.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),t.refCount++}function Gc(t){t.refCount--,0>t.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),t.refCount===0&&zk(Vk,function(){t.controller.abort()})}function Mo(){var t=Zs;return Zs=0,t}function Gp(t){var r=Zs;return Zs=t,r}function Qc(t){var r=Zs;return Zs+=t,r}function Oy(t){Fr=Cl(),0>t.actualStartTime&&(t.actualStartTime=Fr)}function Ry(t){if(0<=Fr){var r=Cl()-Fr;t.actualDuration+=r,t.selfBaseDuration=r,Fr=-1}}function IC(t){if(0<=Fr){var r=Cl()-Fr;t.actualDuration+=r,Fr=-1}}function to(){if(0<=Fr){var t=Cl()-Fr;Fr=-1,Zs+=t}}function no(){Fr=Cl()}function Qp(t){for(var r=t.child;r;)t.actualDuration+=r.actualDuration,r=r.sibling}function AP(t,r){if(Of===null){var o=Of=[];Lb=0,Js=j0(),Tl={status:"pending",value:void 0,then:function(s){o.push(s)}}}return Lb++,r.then(CC,CC),r}function CC(){if(--Lb===0&&Of!==null){Tl!==null&&(Tl.status="fulfilled");var t=Of;Of=null,Js=0,Tl=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function vP(t,r){var o=[],s={status:"pending",value:null,reason:null,then:function(c){o.push(c)}};return t.then(function(){s.status="fulfilled",s.value=r;for(var c=0;c<o.length;c++)(0,o[c])(r)},function(c){for(s.status="rejected",s.reason=c,c=0;c<o.length;c++)(0,o[c])(void 0)}),s}function Fy(){var t=Ws.current;return t!==null?t:zt.pooledCache}function Yp(t,r){r===null?q(Ws,Ws.current,t):q(Ws,r.pool,t)}function TC(){var t=Fy();return t===null?null:{parent:wn._currentValue,pool:t}}function OC(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function RC(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Kp(){}function FC(t,r,o){Fe.actQueue!==null&&(Fe.didUsePromise=!0);var s=t.thenables;switch(o=s[o],o===void 0?s.push(r):o!==r&&(t.didWarnAboutUncachedPromise||(t.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),r.then(Kp,Kp),r=o),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,DC(t),t;default:if(typeof r.status=="string")r.then(Kp,Kp);else{if(t=zt,t!==null&&100<t.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");t=r,t.status="pending",t.then(function(c){if(r.status==="pending"){var d=r;d.status="fulfilled",d.value=c}},function(c){if(r.status==="pending"){var d=r;d.status="rejected",d.reason=c}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,DC(t),t}throw _f=r,Jh=!0,Mf}}function NC(){if(_f===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var t=_f;return _f=null,Jh=!1,t}function DC(t){if(t===Mf||t===Zh)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Ny(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Dy(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Fa(t){return{lane:t,tag:pF,payload:null,callback:null,next:null}}function Na(t,r,o){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,qb===s&&!gF){var c=O(t);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
142
-
143
- Please update the following component: %s`,c),gF=!0}return(_t&yr)!==Xr?(c=s.pending,c===null?r.next=r:(r.next=c.next,c.next=r),s.pending=r,r=$p(t),mC(t,null,o),r):(kp(t,s,r,o),$p(t))}function Yc(t,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194048)!==0)){var s=r.lanes;s&=t.pendingLanes,o|=s,r.lanes=o,Ce(t,o)}}function Xp(t,r){var o=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var c=null,d=null;if(o=o.firstBaseUpdate,o!==null){do{var x={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};d===null?c=d=x:d=d.next=x,o=o.next}while(o!==null);d===null?c=d=r:d=d.next=r}else c=d=r;o={baseState:s.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:s.shared,callbacks:s.callbacks},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=r:t.next=r,o.lastBaseUpdate=r}function Kc(){if(Hb){var t=Tl;if(t!==null)throw t}}function Xc(t,r,o,s){Hb=!1;var c=t.updateQueue;Va=!1,qb=c.shared;var d=c.firstBaseUpdate,x=c.lastBaseUpdate,T=c.shared.pending;if(T!==null){c.shared.pending=null;var z=T,Z=z.next;z.next=null,x===null?d=Z:x.next=Z,x=z;var Se=t.alternate;Se!==null&&(Se=Se.updateQueue,T=Se.lastBaseUpdate,T!==x&&(T===null?Se.firstBaseUpdate=Z:T.next=Z,Se.lastBaseUpdate=z))}if(d!==null){var Ne=c.baseState;x=0,Se=Z=z=null,T=d;do{var we=T.lane&-536870913,De=we!==T.lane;if(De?(Et&we)===we:(s&we)===we){we!==0&&we===Js&&(Hb=!0),Se!==null&&(Se=Se.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{we=t;var Je=T,lt=r,Vt=o;switch(Je.tag){case hF:if(Je=Je.payload,typeof Je=="function"){Il=!0;var It=Je.call(Vt,Ne,lt);if(we.mode&or){J(!0);try{Je.call(Vt,Ne,lt)}finally{J(!1)}}Il=!1,Ne=It;break e}Ne=Je;break e;case $b:we.flags=we.flags&-65537|128;case pF:if(It=Je.payload,typeof It=="function"){if(Il=!0,Je=It.call(Vt,Ne,lt),we.mode&or){J(!0);try{It.call(Vt,Ne,lt)}finally{J(!1)}}Il=!1}else Je=It;if(Je==null)break e;Ne=yt({},Ne,Je);break e;case mF:Va=!0}}we=T.callback,we!==null&&(t.flags|=64,De&&(t.flags|=8192),De=c.callbacks,De===null?c.callbacks=[we]:De.push(we))}else De={lane:we,tag:T.tag,payload:T.payload,callback:T.callback,next:null},Se===null?(Z=Se=De,z=Ne):Se=Se.next=De,x|=we;if(T=T.next,T===null){if(T=c.shared.pending,T===null)break;De=T,T=De.next,De.next=null,c.lastBaseUpdate=De,c.shared.pending=null}}while(!0);Se===null&&(z=Ne),c.baseState=z,c.firstBaseUpdate=Z,c.lastBaseUpdate=Se,d===null&&(c.shared.lanes=0),Ka|=x,t.lanes=x,t.memoizedState=Ne}qb=null}function BC(t,r){if(typeof t!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+t);t.call(r)}function xP(t,r){var o=t.shared.hiddenCallbacks;if(o!==null)for(t.shared.hiddenCallbacks=null,t=0;t<o.length;t++)BC(o[t],r)}function UC(t,r){var o=t.callbacks;if(o!==null)for(t.callbacks=null,t=0;t<o.length;t++)BC(o[t],r)}function MC(t,r){var o=bo;q(Wh,o,t),q(Ol,r,t),bo=o|r.baseLanes}function By(t){q(Wh,bo,t),q(Ol,Ol.current,t)}function Uy(t){bo=Wh.current,L(Ol,t),L(Wh,t)}function xt(){var t=Oe;wi===null?wi=[t]:wi.push(t)}function ke(){var t=Oe;if(wi!==null&&(Xo++,wi[Xo]!==t)){var r=O(ft);if(!yF.has(r)&&(yF.add(r),wi!==null)){for(var o="",s=0;s<=Xo;s++){var c=wi[s],d=s===Xo?t:c;for(c=s+1+". "+c;30>c.length;)c+=" ";c+=d+`
144
- `,o+=c}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
145
-
146
- Previous render Next render
147
- ------------------------------------------------------
148
- %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
149
- `,r,o)}}}function Ku(t){t==null||Vn(t)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Oe,typeof t)}function Zp(){var t=O(ft);AF.has(t)||(AF.add(t),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",t))}function un(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
150
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
151
- 2. You might be breaking the Rules of Hooks
152
- 3. You might have more than one copy of React in the same app
153
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function My(t,r){if(Pf)return!1;if(r===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Oe),!1;t.length!==r.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
154
-
155
- Previous: %s
156
- Incoming: %s`,Oe,"["+r.join(", ")+"]","["+t.join(", ")+"]");for(var o=0;o<r.length&&o<t.length;o++)if(!hr(t[o],r[o]))return!1;return!0}function _y(t,r,o,s,c,d){Ga=d,ft=r,wi=t!==null?t._debugHookTypes:null,Xo=-1,Pf=t!==null&&t.type!==r.type,(Object.prototype.toString.call(o)==="[object AsyncFunction]"||Object.prototype.toString.call(o)==="[object AsyncGeneratorFunction]")&&(d=O(ft),zb.has(d)||(zb.add(d),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",d===null?"An unknown Component":"<"+d+">"))),r.memoizedState=null,r.updateQueue=null,r.lanes=0,Fe.H=t!==null&&t.memoizedState!==null?Gb:wi!==null?vF:Vb,tu=d=(r.mode&or)!==Yt;var x=Qb(o,s,c);if(tu=!1,Fl&&(x=jy(r,o,s,c)),d){J(!0);try{x=jy(r,o,s,c)}finally{J(!1)}}return _C(t,r),x}function _C(t,r){r._debugHookTypes=wi,r.dependencies===null?Ko!==null&&(r.dependencies={lanes:0,firstContext:null,_debugThenableState:Ko}):r.dependencies._debugThenableState=Ko,Fe.H=nm;var o=Ht!==null&&Ht.next!==null;if(Ga=0,wi=Oe=gn=Ht=ft=null,Xo=-1,t!==null&&(t.flags&65011712)!==(r.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),em=!1,jf=0,Ko=null,o)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");t===null||Rn||(t=t.dependencies,t!==null&&zp(t)&&(Rn=!0)),Jh?(Jh=!1,t=!0):t=!1,t&&(r=O(r)||"Unknown",bF.has(r)||zb.has(r)||(bF.add(r),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function jy(t,r,o,s){ft=t;var c=0;do{if(Fl&&(Ko=null),jf=0,Fl=!1,c>=Qk)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(c+=1,Pf=!1,gn=Ht=null,t.updateQueue!=null){var d=t.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}Xo=-1,Fe.H=xF,d=Qb(r,o,s)}while(Fl);return d}function EP(){var t=Fe.H,r=t.useState()[0];return r=typeof r.then=="function"?Zc(r):r,t=t.useState()[0],(Ht!==null?Ht.memoizedState:null)!==t&&(ft.flags|=1024),r}function Py(){var t=tm!==0;return tm=0,t}function Ly(t,r,o){r.updateQueue=t.updateQueue,r.flags=(r.mode&ji)!==Yt?r.flags&-402655237:r.flags&-2053,t.lanes&=~o}function ky(t){if(em){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}em=!1}Ga=0,wi=gn=Ht=ft=null,Xo=-1,Oe=null,Fl=!1,jf=tm=0,Ko=null}function Tr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gn===null?ft.memoizedState=gn=t:gn=gn.next=t,gn}function Pt(){if(Ht===null){var t=ft.alternate;t=t!==null?t.memoizedState:null}else t=Ht.next;var r=gn===null?ft.memoizedState:gn.next;if(r!==null)gn=r,Ht=t;else{if(t===null)throw ft.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Ht=t,t={memoizedState:Ht.memoizedState,baseState:Ht.baseState,baseQueue:Ht.baseQueue,queue:Ht.queue,next:null},gn===null?ft.memoizedState=gn=t:gn=gn.next=t}return gn}function $y(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zc(t){var r=jf;return jf+=1,Ko===null&&(Ko=OC()),t=FC(Ko,t,r),r=ft,(gn===null?r.memoizedState:gn.next)===null&&(r=r.alternate,Fe.H=r!==null&&r.memoizedState!==null?Gb:Vb),t}function Da(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Zc(t);if(t.$$typeof===uo)return Xt(t)}throw Error("An unsupported type was passed to use(): "+String(t))}function qs(t){var r=null,o=ft.updateQueue;if(o!==null&&(r=o.memoCache),r==null){var s=ft.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(r={data:s.data.map(function(c){return c.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),o===null&&(o=$y(),ft.updateQueue=o),o.memoCache=r,o=r.data[r.index],o===void 0||Pf)for(o=r.data[r.index]=Array(t),s=0;s<t;s++)o[s]=BL;else o.length!==t&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",o.length,t);return r.index++,o}function Mi(t,r){return typeof r=="function"?r(t):r}function qy(t,r,o){var s=Tr();if(o!==void 0){var c=o(r);if(tu){J(!0);try{o(r)}finally{J(!1)}}}else c=r;return s.memoizedState=s.baseState=c,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:c},s.queue=t,t=t.dispatch=CP.bind(null,ft,t),[s.memoizedState,t]}function Xu(t){var r=Pt();return Hy(r,Ht,t)}function Hy(t,r,o){var s=t.queue;if(s===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");s.lastRenderedReducer=o;var c=t.baseQueue,d=s.pending;if(d!==null){if(c!==null){var x=c.next;c.next=d.next,d.next=x}r.baseQueue!==c&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),r.baseQueue=c=d,s.pending=null}if(d=t.baseState,c===null)t.memoizedState=d;else{r=c.next;var T=x=null,z=null,Z=r,Se=!1;do{var Ne=Z.lane&-536870913;if(Ne!==Z.lane?(Et&Ne)===Ne:(Ga&Ne)===Ne){var we=Z.revertLane;if(we===0)z!==null&&(z=z.next={lane:0,revertLane:0,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null}),Ne===Js&&(Se=!0);else if((Ga&we)===we){Z=Z.next,we===Js&&(Se=!0);continue}else Ne={lane:0,revertLane:Z.revertLane,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},z===null?(T=z=Ne,x=d):z=z.next=Ne,ft.lanes|=we,Ka|=we;Ne=Z.action,tu&&o(d,Ne),d=Z.hasEagerState?Z.eagerState:o(d,Ne)}else we={lane:Ne,revertLane:Z.revertLane,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},z===null?(T=z=we,x=d):z=z.next=we,ft.lanes|=Ne,Ka|=Ne;Z=Z.next}while(Z!==null&&Z!==r);if(z===null?x=d:z.next=T,!hr(d,t.memoizedState)&&(Rn=!0,Se&&(o=Tl,o!==null)))throw o;t.memoizedState=d,t.baseState=x,t.baseQueue=z,s.lastRenderedState=d}return c===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function Jc(t){var r=Pt(),o=r.queue;if(o===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");o.lastRenderedReducer=t;var s=o.dispatch,c=o.pending,d=r.memoizedState;if(c!==null){o.pending=null;var x=c=c.next;do d=t(d,x.action),x=x.next;while(x!==c);hr(d,r.memoizedState)||(Rn=!0),r.memoizedState=d,r.baseQueue===null&&(r.baseState=d),o.lastRenderedState=d}return[d,s]}function zy(t,r,o){var s=ft,c=Tr();if(Bt){if(o===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var d=o();Rl||d===o()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Rl=!0)}else{if(d=r(),Rl||(o=r(),hr(d,o)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Rl=!0)),zt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Et&124)!==0||jC(s,r,d)}return c.memoizedState=d,o={value:d,getSnapshot:r},c.queue=o,nh(LC.bind(null,s,o,t),[t]),s.flags|=2048,Ju(Ei|Sn,th(),PC.bind(null,s,o,d,r),null),d}function Jp(t,r,o){var s=ft,c=Pt(),d=Bt;if(d){if(o===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");o=o()}else if(o=r(),!Rl){var x=r();hr(o,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Rl=!0)}(x=!hr((Ht||c).memoizedState,o))&&(c.memoizedState=o,Rn=!0),c=c.queue;var T=LC.bind(null,s,c,t);if(Or(2048,Sn,T,[t]),c.getSnapshot!==r||x||gn!==null&&gn.memoizedState.tag&Ei){if(s.flags|=2048,Ju(Ei|Sn,th(),PC.bind(null,s,c,o,r),null),zt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");d||(Ga&124)!==0||jC(s,r,o)}return o}function jC(t,r,o){t.flags|=16384,t={getSnapshot:r,value:o},r=ft.updateQueue,r===null?(r=$y(),ft.updateQueue=r,r.stores=[t]):(o=r.stores,o===null?r.stores=[t]:o.push(t))}function PC(t,r,o,s){r.value=o,r.getSnapshot=s,kC(r)&&$C(t)}function LC(t,r,o){return o(function(){kC(r)&&$C(t)})}function kC(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!hr(t,o)}catch{return!0}}function $C(t){var r=Cr(t,2);r!==null&&ln(r,t,2)}function Vy(t){var r=Tr();if(typeof t=="function"){var o=t;if(t=o(),tu){J(!0);try{o()}finally{J(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mi,lastRenderedState:t},r}function Gy(t){t=Vy(t);var r=t.queue,o=aT.bind(null,ft,r);return r.dispatch=o,[t.memoizedState,o]}function Qy(t){var r=Tr();r.memoizedState=r.baseState=t;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=o,r=a0.bind(null,ft,!0,o),o.dispatch=r,[t,r]}function qC(t,r){var o=Pt();return HC(o,Ht,t,r)}function HC(t,r,o,s){return t.baseState=o,Hy(t,Ht,typeof s=="function"?s:Mi)}function zC(t,r){var o=Pt();return Ht!==null?HC(o,Ht,t,r):(o.baseState=t,[t,o.queue.dispatch])}function wP(t,r,o,s,c){if(ah(t))throw Error("Cannot update form state while rendering.");if(t=r.action,t!==null){var d={payload:c,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){d.listeners.push(x)}};Fe.T!==null?o(!0):d.isTransition=!1,s(d),o=r.pending,o===null?(d.next=r.pending=d,VC(r,d)):(d.next=o.next,r.pending=o.next=d)}}function VC(t,r){var o=r.action,s=r.payload,c=t.state;if(r.isTransition){var d=Fe.T,x={};Fe.T=x,Fe.T._updatedFibers=new Set;try{var T=o(c,s),z=Fe.S;z!==null&&z(x,T),GC(t,r,T)}catch(Z){Yy(t,r,Z)}finally{Fe.T=d,d===null&&x._updatedFibers&&(t=x._updatedFibers.size,x._updatedFibers.clear(),10<t&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{x=o(c,s),GC(t,r,x)}catch(Z){Yy(t,r,Z)}}function GC(t,r,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?(o.then(function(s){QC(t,r,s)},function(s){return Yy(t,r,s)}),r.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):QC(t,r,o)}function QC(t,r,o){r.status="fulfilled",r.value=o,YC(r),t.state=o,r=t.pending,r!==null&&(o=r.next,o===r?t.pending=null:(o=o.next,r.next=o,VC(t,o)))}function Yy(t,r,o){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do r.status="rejected",r.reason=o,YC(r),r=r.next;while(r!==s)}t.action=null}function YC(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function KC(t,r){return r}function Zu(t,r){if(Bt){var o=zt.formState;if(o!==null){e:{var s=ft;if(Bt){if(nn){t:{for(var c=nn,d=mo;c.nodeType!==8;){if(!d){c=null;break t}if(c=hi(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d===AA||d===AN?c:null}if(c){nn=hi(c.nextSibling),s=c.data===AA;break e}}Ls(s)}s=!1}s&&(r=o[0])}}return o=Tr(),o.memoizedState=o.baseState=r,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:KC,lastRenderedState:r},o.queue=s,o=aT.bind(null,ft,s),s.dispatch=o,s=Vy(!1),d=a0.bind(null,ft,!1,s.queue),s=Tr(),c={state:r,dispatch:null,action:t,pending:null},s.queue=c,o=wP.bind(null,ft,c,d,o),c.dispatch=o,s.memoizedState=t,[r,o,!1]}function Wp(t){var r=Pt();return XC(r,Ht,t)}function XC(t,r,o){if(r=Hy(t,r,KC)[0],t=Xu(Mi)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var s=Zc(r)}catch(x){throw x===Mf?Zh:x}else s=r;r=Pt();var c=r.queue,d=c.dispatch;return o!==r.memoizedState&&(ft.flags|=2048,Ju(Ei|Sn,th(),SP.bind(null,c,o),null)),[s,d,t]}function SP(t,r){t.action=r}function eh(t){var r=Pt(),o=Ht;if(o!==null)return XC(r,o,t);Pt(),r=r.memoizedState,o=Pt();var s=o.queue.dispatch;return o.memoizedState=t,[r,s,!1]}function Ju(t,r,o,s){return t={tag:t,create:o,deps:s,inst:r,next:null},r=ft.updateQueue,r===null&&(r=$y(),ft.updateQueue=r),o=r.lastEffect,o===null?r.lastEffect=t.next=t:(s=o.next,o.next=t,t.next=s,r.lastEffect=t),t}function th(){return{destroy:void 0,resource:void 0}}function Ky(t){var r=Tr();return t={current:t},r.memoizedState=t}function Hs(t,r,o,s){var c=Tr();s=s===void 0?null:s,ft.flags|=t,c.memoizedState=Ju(Ei|r,th(),o,s)}function Or(t,r,o,s){var c=Pt();s=s===void 0?null:s;var d=c.memoizedState.inst;Ht!==null&&s!==null&&My(s,Ht.memoizedState.deps)?c.memoizedState=Ju(r,d,o,s):(ft.flags|=t,c.memoizedState=Ju(Ei|r,d,o,s))}function nh(t,r){(ft.mode&ji)!==Yt&&(ft.mode&rF)===Yt?Hs(276826112,Sn,t,r):Hs(8390656,Sn,t,r)}function Xy(t,r){var o=4194308;return(ft.mode&ji)!==Yt&&(o|=134217728),Hs(o,Qn,t,r)}function ZC(t,r){if(typeof r=="function"){t=t();var o=r(t);return function(){typeof o=="function"?o():r(null)}}if(r!=null)return r.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(r).join(", ")+"}"),t=t(),r.current=t,function(){r.current=null}}function Zy(t,r,o){typeof r!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",r!==null?typeof r:"null"),o=o!=null?o.concat([t]):null;var s=4194308;(ft.mode&ji)!==Yt&&(s|=134217728),Hs(s,Qn,ZC.bind(null,r,t),o)}function rh(t,r,o){typeof r!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",r!==null?typeof r:"null"),o=o!=null?o.concat([t]):null,Or(4,Qn,ZC.bind(null,r,t),o)}function Jy(t,r){return Tr().memoizedState=[t,r===void 0?null:r],t}function ih(t,r){var o=Pt();r=r===void 0?null:r;var s=o.memoizedState;return r!==null&&My(r,s[1])?s[0]:(o.memoizedState=[t,r],t)}function Wy(t,r){var o=Tr();r=r===void 0?null:r;var s=t();if(tu){J(!0);try{t()}finally{J(!1)}}return o.memoizedState=[s,r],s}function oh(t,r){var o=Pt();r=r===void 0?null:r;var s=o.memoizedState;if(r!==null&&My(r,s[1]))return s[0];if(s=t(),tu){J(!0);try{t()}finally{J(!1)}}return o.memoizedState=[s,r],s}function e0(t,r){var o=Tr();return t0(o,t,r)}function JC(t,r){var o=Pt();return eT(o,Ht.memoizedState,t,r)}function WC(t,r){var o=Pt();return Ht===null?t0(o,t,r):eT(o,Ht.memoizedState,t,r)}function t0(t,r,o){return o===void 0||(Ga&1073741824)!==0?t.memoizedState=r:(t.memoizedState=o,t=tO(),ft.lanes|=t,Ka|=t,o)}function eT(t,r,o,s){return hr(o,r)?o:Ol.current!==null?(t=t0(t,o,s),hr(t,r)||(Rn=!0),t):(Ga&42)===0?(Rn=!0,t.memoizedState=o):(t=tO(),ft.lanes|=t,Ka|=t,r)}function tT(t,r,o,s,c){var d=Mt.p;Mt.p=d!==0&&d<fo?d:fo;var x=Fe.T,T={};Fe.T=T,a0(t,!1,r,o),T._updatedFibers=new Set;try{var z=c(),Z=Fe.S;if(Z!==null&&Z(T,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var Se=vP(z,s);Wc(t,r,Se,Qr(t))}else Wc(t,r,s,Qr(t))}catch(Ne){Wc(t,r,{then:function(){},status:"rejected",reason:Ne},Qr(t))}finally{Mt.p=d,Fe.T=x,x===null&&T._updatedFibers&&(t=T._updatedFibers.size,T._updatedFibers.clear(),10<t&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function n0(t,r,o,s){if(t.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var c=nT(t).queue;tT(t,c,r,du,o===null?v:function(){return rT(t),o(s)})}function nT(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:du,baseState:du,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mi,lastRenderedState:du},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mi,lastRenderedState:o},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function rT(t){Fe.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var r=nT(t).next.queue;Wc(t,r,{},Qr(t))}function r0(){var t=Vy(!1);return t=tT.bind(null,ft,t.queue,!0,!1),Tr().memoizedState=t,[!1,t]}function iT(){var t=Xu(Mi)[0],r=Pt().memoizedState;return[typeof t=="boolean"?t:Zc(t),r]}function oT(){var t=Jc(Mi)[0],r=Pt().memoizedState;return[typeof t=="boolean"?t:Zc(t),r]}function zs(){return Xt(td)}function i0(){var t=Tr(),r=zt.identifierPrefix;if(Bt){var o=Qo,s=Go;o=(s&~(1<<32-dr(s)-1)).toString(32)+o,r="«"+r+"R"+o,o=tm++,0<o&&(r+="H"+o.toString(32)),r+="»"}else o=Gk++,r="«"+r+"r"+o.toString(32)+"»";return t.memoizedState=r}function o0(){return Tr().memoizedState=IP.bind(null,ft)}function IP(t,r){for(var o=t.return;o!==null;){switch(o.tag){case 24:case 3:var s=Qr(o);t=Fa(s);var c=Na(o,t,s);c!==null&&(ln(c,o,s),Yc(c,o,s)),o=Ty(),r!=null&&c!==null&&console.error("The seed argument is not enabled outside experimental channels."),t.payload={cache:o};return}o=o.return}}function CP(t,r,o){var s=arguments;typeof s[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),s=Qr(t);var c={lane:s,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};ah(t)?sT(r,c):(c=my(t,r,c,s),c!==null&&(ln(c,t,s),uT(c,r,s))),W(t,s)}function aT(t,r,o){var s=arguments;typeof s[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),s=Qr(t),Wc(t,r,o,s),W(t,s)}function Wc(t,r,o,s){var c={lane:s,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(ah(t))sT(r,c);else{var d=t.alternate;if(t.lanes===0&&(d===null||d.lanes===0)&&(d=r.lastRenderedReducer,d!==null)){var x=Fe.H;Fe.H=Li;try{var T=r.lastRenderedState,z=d(T,o);if(c.hasEagerState=!0,c.eagerState=z,hr(z,T))return kp(t,r,c,0),zt===null&&Lp(),!1}catch{}finally{Fe.H=x}}if(o=my(t,r,c,s),o!==null)return ln(o,t,s),uT(o,r,s),!0}return!1}function a0(t,r,o,s){if(Fe.T===null&&Js===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),s={lane:2,revertLane:j0(),action:s,hasEagerState:!1,eagerState:null,next:null},ah(t)){if(r)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else r=my(t,o,s,2),r!==null&&ln(r,t,2);W(t,2)}function ah(t){var r=t.alternate;return t===ft||r!==null&&r===ft}function sT(t,r){Fl=em=!0;var o=t.pending;o===null?r.next=r:(r.next=o.next,o.next=r),t.pending=r}function uT(t,r,o){if((o&4194048)!==0){var s=r.lanes;s&=t.pendingLanes,o|=s,r.lanes=o,Ce(t,o)}}function qn(t){var r=mt;return t!=null&&(mt=r===null?t:r.concat(t)),r}function sh(t,r,o){for(var s=Object.keys(t.props),c=0;c<s.length;c++){var d=s[c];if(d!=="children"&&d!=="key"){r===null&&(r=qp(t,o.mode,0),r._debugInfo=mt,r.return=o),et(r,function(x){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",x)},d);break}}}function uh(t){var r=Lf;return Lf+=1,Nl===null&&(Nl=OC()),FC(Nl,t,r)}function ef(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function lh(t,r){throw r.$$typeof===NL?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
157
- - Multiple copies of the "react" package is used.
158
- - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
159
- - A compiler tries to "inline" JSX instead of using the runtime.`):(t=Object.prototype.toString.call(r),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead."))}function ch(t,r){var o=O(t)||"Component";_F[o]||(_F[o]=!0,r=r.displayName||r.name||"Component",t.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
160
- root.render(%s)`,r,r,r):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
161
- <%s>{%s}</%s>`,r,r,o,r,o))}function fh(t,r){var o=O(t)||"Component";jF[o]||(jF[o]=!0,r=String(r),t.tag===3?console.error(`Symbols are not valid as a React child.
162
- root.render(%s)`,r):console.error(`Symbols are not valid as a React child.
163
- <%s>%s</%s>`,o,r,o))}function lT(t){function r(ae,se){if(t){var ye=ae.deletions;ye===null?(ae.deletions=[se],ae.flags|=16):ye.push(se)}}function o(ae,se){if(!t)return null;for(;se!==null;)r(ae,se),se=se.sibling;return null}function s(ae){for(var se=new Map;ae!==null;)ae.key!==null?se.set(ae.key,ae):se.set(ae.index,ae),ae=ae.sibling;return se}function c(ae,se){return ae=Bo(ae,se),ae.index=0,ae.sibling=null,ae}function d(ae,se,ye){return ae.index=ye,t?(ye=ae.alternate,ye!==null?(ye=ye.index,ye<se?(ae.flags|=67108866,se):ye):(ae.flags|=67108866,se)):(ae.flags|=1048576,se)}function x(ae){return t&&ae.alternate===null&&(ae.flags|=67108866),ae}function T(ae,se,ye,Be){return se===null||se.tag!==6?(se=vy(ye,ae.mode,Be),se.return=ae,se._debugOwner=ae,se._debugTask=ae._debugTask,se._debugInfo=mt,se):(se=c(se,ye),se.return=ae,se._debugInfo=mt,se)}function z(ae,se,ye,Be){var qe=ye.type;return qe===ll?(se=Se(ae,se,ye.props.children,Be,ye.key),sh(ye,se,ae),se):se!==null&&(se.elementType===qe||gC(se,ye)||typeof qe=="object"&&qe!==null&&qe.$$typeof===Yr&&Qa(qe)===se.type)?(se=c(se,ye.props),ef(se,ye),se.return=ae,se._debugOwner=ye._owner,se._debugInfo=mt,se):(se=qp(ye,ae.mode,Be),ef(se,ye),se.return=ae,se._debugInfo=mt,se)}function Z(ae,se,ye,Be){return se===null||se.tag!==4||se.stateNode.containerInfo!==ye.containerInfo||se.stateNode.implementation!==ye.implementation?(se=xy(ye,ae.mode,Be),se.return=ae,se._debugInfo=mt,se):(se=c(se,ye.children||[]),se.return=ae,se._debugInfo=mt,se)}function Se(ae,se,ye,Be,qe){return se===null||se.tag!==7?(se=Ms(ye,ae.mode,Be,qe),se.return=ae,se._debugOwner=ae,se._debugTask=ae._debugTask,se._debugInfo=mt,se):(se=c(se,ye),se.return=ae,se._debugInfo=mt,se)}function Ne(ae,se,ye){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return se=vy(""+se,ae.mode,ye),se.return=ae,se._debugOwner=ae,se._debugTask=ae._debugTask,se._debugInfo=mt,se;if(typeof se=="object"&&se!==null){switch(se.$$typeof){case Pa:return ye=qp(se,ae.mode,ye),ef(ye,se),ye.return=ae,ae=qn(se._debugInfo),ye._debugInfo=mt,mt=ae,ye;case ul:return se=xy(se,ae.mode,ye),se.return=ae,se._debugInfo=mt,se;case Yr:var Be=qn(se._debugInfo);return se=Qa(se),ae=Ne(ae,se,ye),mt=Be,ae}if(Vn(se)||X(se))return ye=Ms(se,ae.mode,ye,null),ye.return=ae,ye._debugOwner=ae,ye._debugTask=ae._debugTask,ae=qn(se._debugInfo),ye._debugInfo=mt,mt=ae,ye;if(typeof se.then=="function")return Be=qn(se._debugInfo),ae=Ne(ae,uh(se),ye),mt=Be,ae;if(se.$$typeof===uo)return Ne(ae,Vp(ae,se),ye);lh(ae,se)}return typeof se=="function"&&ch(ae,se),typeof se=="symbol"&&fh(ae,se),null}function we(ae,se,ye,Be){var qe=se!==null?se.key:null;if(typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint")return qe!==null?null:T(ae,se,""+ye,Be);if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case Pa:return ye.key===qe?(qe=qn(ye._debugInfo),ae=z(ae,se,ye,Be),mt=qe,ae):null;case ul:return ye.key===qe?Z(ae,se,ye,Be):null;case Yr:return qe=qn(ye._debugInfo),ye=Qa(ye),ae=we(ae,se,ye,Be),mt=qe,ae}if(Vn(ye)||X(ye))return qe!==null?null:(qe=qn(ye._debugInfo),ae=Se(ae,se,ye,Be,null),mt=qe,ae);if(typeof ye.then=="function")return qe=qn(ye._debugInfo),ae=we(ae,se,uh(ye),Be),mt=qe,ae;if(ye.$$typeof===uo)return we(ae,se,Vp(ae,ye),Be);lh(ae,ye)}return typeof ye=="function"&&ch(ae,ye),typeof ye=="symbol"&&fh(ae,ye),null}function De(ae,se,ye,Be,qe){if(typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint")return ae=ae.get(ye)||null,T(se,ae,""+Be,qe);if(typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case Pa:return ye=ae.get(Be.key===null?ye:Be.key)||null,ae=qn(Be._debugInfo),se=z(se,ye,Be,qe),mt=ae,se;case ul:return ae=ae.get(Be.key===null?ye:Be.key)||null,Z(se,ae,Be,qe);case Yr:var dt=qn(Be._debugInfo);return Be=Qa(Be),se=De(ae,se,ye,Be,qe),mt=dt,se}if(Vn(Be)||X(Be))return ye=ae.get(ye)||null,ae=qn(Be._debugInfo),se=Se(se,ye,Be,qe,null),mt=ae,se;if(typeof Be.then=="function")return dt=qn(Be._debugInfo),se=De(ae,se,ye,uh(Be),qe),mt=dt,se;if(Be.$$typeof===uo)return De(ae,se,ye,Vp(se,Be),qe);lh(se,Be)}return typeof Be=="function"&&ch(se,Be),typeof Be=="symbol"&&fh(se,Be),null}function Je(ae,se,ye,Be){if(typeof ye!="object"||ye===null)return Be;switch(ye.$$typeof){case Pa:case ul:p(ae,se,ye);var qe=ye.key;if(typeof qe!="string")break;if(Be===null){Be=new Set,Be.add(qe);break}if(!Be.has(qe)){Be.add(qe);break}et(se,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",qe)});break;case Yr:ye=Qa(ye),Je(ae,se,ye,Be)}return Be}function lt(ae,se,ye,Be){for(var qe=null,dt=null,We=null,pt=se,ht=se=0,Kt=null;pt!==null&&ht<ye.length;ht++){pt.index>ht?(Kt=pt,pt=null):Kt=pt.sibling;var fn=we(ae,pt,ye[ht],Be);if(fn===null){pt===null&&(pt=Kt);break}qe=Je(ae,fn,ye[ht],qe),t&&pt&&fn.alternate===null&&r(ae,pt),se=d(fn,se,ht),We===null?dt=fn:We.sibling=fn,We=fn,pt=Kt}if(ht===ye.length)return o(ae,pt),Bt&&_s(ae,ht),dt;if(pt===null){for(;ht<ye.length;ht++)pt=Ne(ae,ye[ht],Be),pt!==null&&(qe=Je(ae,pt,ye[ht],qe),se=d(pt,se,ht),We===null?dt=pt:We.sibling=pt,We=pt);return Bt&&_s(ae,ht),dt}for(pt=s(pt);ht<ye.length;ht++)Kt=De(pt,ae,ht,ye[ht],Be),Kt!==null&&(qe=Je(ae,Kt,ye[ht],qe),t&&Kt.alternate!==null&&pt.delete(Kt.key===null?ht:Kt.key),se=d(Kt,se,ht),We===null?dt=Kt:We.sibling=Kt,We=Kt);return t&&pt.forEach(function(na){return r(ae,na)}),Bt&&_s(ae,ht),dt}function Vt(ae,se,ye,Be){if(ye==null)throw Error("An iterable object provided no iterator.");for(var qe=null,dt=null,We=se,pt=se=0,ht=null,Kt=null,fn=ye.next();We!==null&&!fn.done;pt++,fn=ye.next()){We.index>pt?(ht=We,We=null):ht=We.sibling;var na=we(ae,We,fn.value,Be);if(na===null){We===null&&(We=ht);break}Kt=Je(ae,na,fn.value,Kt),t&&We&&na.alternate===null&&r(ae,We),se=d(na,se,pt),dt===null?qe=na:dt.sibling=na,dt=na,We=ht}if(fn.done)return o(ae,We),Bt&&_s(ae,pt),qe;if(We===null){for(;!fn.done;pt++,fn=ye.next())We=Ne(ae,fn.value,Be),We!==null&&(Kt=Je(ae,We,fn.value,Kt),se=d(We,se,pt),dt===null?qe=We:dt.sibling=We,dt=We);return Bt&&_s(ae,pt),qe}for(We=s(We);!fn.done;pt++,fn=ye.next())ht=De(We,ae,pt,fn.value,Be),ht!==null&&(Kt=Je(ae,ht,fn.value,Kt),t&&ht.alternate!==null&&We.delete(ht.key===null?pt:ht.key),se=d(ht,se,pt),dt===null?qe=ht:dt.sibling=ht,dt=ht);return t&&We.forEach(function(A5){return r(ae,A5)}),Bt&&_s(ae,pt),qe}function It(ae,se,ye,Be){if(typeof ye=="object"&&ye!==null&&ye.type===ll&&ye.key===null&&(sh(ye,null,ae),ye=ye.props.children),typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case Pa:var qe=qn(ye._debugInfo);e:{for(var dt=ye.key;se!==null;){if(se.key===dt){if(dt=ye.type,dt===ll){if(se.tag===7){o(ae,se.sibling),Be=c(se,ye.props.children),Be.return=ae,Be._debugOwner=ye._owner,Be._debugInfo=mt,sh(ye,Be,ae),ae=Be;break e}}else if(se.elementType===dt||gC(se,ye)||typeof dt=="object"&&dt!==null&&dt.$$typeof===Yr&&Qa(dt)===se.type){o(ae,se.sibling),Be=c(se,ye.props),ef(Be,ye),Be.return=ae,Be._debugOwner=ye._owner,Be._debugInfo=mt,ae=Be;break e}o(ae,se);break}else r(ae,se);se=se.sibling}ye.type===ll?(Be=Ms(ye.props.children,ae.mode,Be,ye.key),Be.return=ae,Be._debugOwner=ae,Be._debugTask=ae._debugTask,Be._debugInfo=mt,sh(ye,Be,ae),ae=Be):(Be=qp(ye,ae.mode,Be),ef(Be,ye),Be.return=ae,Be._debugInfo=mt,ae=Be)}return ae=x(ae),mt=qe,ae;case ul:e:{for(qe=ye,ye=qe.key;se!==null;){if(se.key===ye)if(se.tag===4&&se.stateNode.containerInfo===qe.containerInfo&&se.stateNode.implementation===qe.implementation){o(ae,se.sibling),Be=c(se,qe.children||[]),Be.return=ae,ae=Be;break e}else{o(ae,se);break}else r(ae,se);se=se.sibling}Be=xy(qe,ae.mode,Be),Be.return=ae,ae=Be}return x(ae);case Yr:return qe=qn(ye._debugInfo),ye=Qa(ye),ae=It(ae,se,ye,Be),mt=qe,ae}if(Vn(ye))return qe=qn(ye._debugInfo),ae=lt(ae,se,ye,Be),mt=qe,ae;if(X(ye)){if(qe=qn(ye._debugInfo),dt=X(ye),typeof dt!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var We=dt.call(ye);return We===ye?(ae.tag!==0||Object.prototype.toString.call(ae.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(We)!=="[object Generator]")&&(UF||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),UF=!0):ye.entries!==dt||Kb||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Kb=!0),ae=Vt(ae,se,We,Be),mt=qe,ae}if(typeof ye.then=="function")return qe=qn(ye._debugInfo),ae=It(ae,se,uh(ye),Be),mt=qe,ae;if(ye.$$typeof===uo)return It(ae,se,Vp(ae,ye),Be);lh(ae,ye)}return typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint"?(qe=""+ye,se!==null&&se.tag===6?(o(ae,se.sibling),Be=c(se,qe),Be.return=ae,ae=Be):(o(ae,se),Be=vy(qe,ae.mode,Be),Be.return=ae,Be._debugOwner=ae,Be._debugTask=ae._debugTask,Be._debugInfo=mt,ae=Be),x(ae)):(typeof ye=="function"&&ch(ae,ye),typeof ye=="symbol"&&fh(ae,ye),o(ae,se))}return function(ae,se,ye,Be){var qe=mt;mt=null;try{Lf=0;var dt=It(ae,se,ye,Be);return Nl=null,dt}catch(Kt){if(Kt===Mf||Kt===Zh)throw Kt;var We=y(29,Kt,null,ae.mode);We.lanes=Be,We.return=ae;var pt=We._debugInfo=mt;if(We._debugOwner=ae._debugOwner,We._debugTask=ae._debugTask,pt!=null){for(var ht=pt.length-1;0<=ht;ht--)if(typeof pt[ht].stack=="string"){We._debugOwner=pt[ht],We._debugTask=pt[ht].debugTask;break}}return We}finally{mt=qe}}}function Ba(t){var r=t.alternate;q(In,In.current&Bl,t),q(Si,t,t),yo===null&&(r===null||Ol.current!==null||r.memoizedState!==null)&&(yo=t)}function cT(t){if(t.tag===22){if(q(In,In.current,t),q(Si,t,t),yo===null){var r=t.alternate;r!==null&&r.memoizedState!==null&&(yo=t)}}else Ua(t)}function Ua(t){q(In,In.current,t),q(Si,Si.current,t)}function _o(t){L(Si,t),yo===t&&(yo=null),L(In,t)}function dh(t){for(var r=t;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data===Wo||Y0(o)))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function s0(t){if(t!==null&&typeof t!="function"){var r=String(t);KF.has(r)||(KF.add(r),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",t))}}function u0(t,r,o,s){var c=t.memoizedState,d=o(s,c);if(t.mode&or){J(!0);try{d=o(s,c)}finally{J(!1)}}d===void 0&&(r=re(r)||"Component",VF.has(r)||(VF.add(r),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",r))),c=d==null?c:yt({},c,d),t.memoizedState=c,t.lanes===0&&(t.updateQueue.baseState=c)}function fT(t,r,o,s,c,d,x){var T=t.stateNode;if(typeof T.shouldComponentUpdate=="function"){if(o=T.shouldComponentUpdate(s,d,x),t.mode&or){J(!0);try{o=T.shouldComponentUpdate(s,d,x)}finally{J(!1)}}return o===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",re(r)||"Component"),o}return r.prototype&&r.prototype.isPureReactComponent?!$c(o,s)||!$c(c,d):!0}function dT(t,r,o,s){var c=r.state;typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,s),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,s),r.state!==c&&(t=O(t)||"Component",kF.has(t)||(kF.add(t),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",t)),Xb.enqueueReplaceState(r,r.state,null))}function Vs(t,r){var o=r;if("ref"in r){o={};for(var s in r)s!=="ref"&&(o[s]=r[s])}if(t=t.defaultProps){o===r&&(o=yt({},o));for(var c in t)o[c]===void 0&&(o[c]=t[c])}return o}function pT(t){Zb(t),console.warn(`%s
164
-
165
- %s
166
- `,Ul?"An error occurred in the <"+Ul+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
167
- Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function hT(t){var r=Ul?"The above error occurred in the <"+Ul+"> component.":"The above error occurred in one of your React components.",o="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Jb||"Anonymous")+".");if(typeof t=="object"&&t!==null&&typeof t.environmentName=="string"){var s=t.environmentName;t=[`%o
168
-
169
- %s
170
-
171
- %s
172
- `,t,r,o].slice(0),typeof t[0]=="string"?t.splice(0,1,TN+t[0],ON,xm+s+xm,RN):t.splice(0,0,TN,ON,xm+s+xm,RN),t.unshift(console),s=y5.apply(console.error,t),s()}else console.error(`%o
173
-
174
- %s
175
-
176
- %s
177
- `,t,r,o)}function mT(t){Zb(t)}function ph(t,r){try{Ul=r.source?O(r.source):null,Jb=null;var o=r.value;if(Fe.actQueue!==null)Fe.thrownErrors.push(o);else{var s=t.onUncaughtError;s(o,{componentStack:r.stack})}}catch(c){setTimeout(function(){throw c})}}function gT(t,r,o){try{Ul=o.source?O(o.source):null,Jb=O(r);var s=t.onCaughtError;s(o.value,{componentStack:o.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function l0(t,r,o){return o=Fa(o),o.tag=$b,o.payload={element:null},o.callback=function(){et(r.source,ph,t,r)},o}function c0(t){return t=Fa(t),t.tag=$b,t}function f0(t,r,o,s){var c=o.type.getDerivedStateFromError;if(typeof c=="function"){var d=s.value;t.payload=function(){return c(d)},t.callback=function(){yC(o),et(s.source,gT,r,o,s)}}var x=o.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(t.callback=function(){yC(o),et(s.source,gT,r,o,s),typeof c!="function"&&(Za===null?Za=new Set([this]):Za.add(this)),Yk(this,s),typeof c=="function"||(o.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",O(o)||"Unknown")})}function TP(t,r,o,s,c){if(o.flags|=32768,_i&&uf(t,c),s!==null&&typeof s=="object"&&typeof s.then=="function"){if(r=o.alternate,r!==null&&Vc(r,o,c,!0),Bt&&(Yo=!0),o=Si.current,o!==null){switch(o.tag){case 13:return yo===null?F0():o.alternate===null&&rn===Jo&&(rn=nA),o.flags&=-257,o.flags|=65536,o.lanes=c,s===kb?o.flags|=16384:(r=o.updateQueue,r===null?o.updateQueue=new Set([s]):r.add(s),B0(t,s,c)),!1;case 22:return o.flags|=65536,s===kb?o.flags|=16384:(r=o.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([s])},o.updateQueue=r):(o=r.retryQueue,o===null?r.retryQueue=new Set([s]):o.add(s)),B0(t,s,c)),!1}throw Error("Unexpected Suspense handler tag ("+o.tag+"). This is a bug in React.")}return B0(t,s,c),F0(),!1}if(Bt)return Yo=!0,r=Si.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=c,s!==_b&&zc(zr(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:s}),o))):(s!==_b&&zc(zr(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:s}),o)),t=t.current.alternate,t.flags|=65536,c&=-c,t.lanes|=c,s=zr(s,o),c=l0(t.stateNode,s,c),Xp(t,c),rn!==nu&&(rn=Pl)),!1;var d=zr(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:s}),o);if(Qf===null?Qf=[d]:Qf.push(d),rn!==nu&&(rn=Pl),r===null)return!0;s=zr(s,o),o=r;do{switch(o.tag){case 3:return o.flags|=65536,t=c&-c,o.lanes|=t,t=l0(o.stateNode,s,t),Xp(o,t),!1;case 1:if(r=o.type,d=o.stateNode,(o.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Za===null||!Za.has(d))))return o.flags|=65536,c&=-c,o.lanes|=c,c=c0(c),f0(c,t,o,s),Xp(o,c),!1}o=o.return}while(o!==null);return!1}function Hn(t,r,o,s){r.child=t===null?PF(r,null,o,s):Dl(r,t.child,o,s)}function yT(t,r,o,s,c){o=o.render;var d=r.ref;if("ref"in s){var x={};for(var T in s)T!=="ref"&&(x[T]=s[T])}else x=s;return ks(r),V(r),s=_y(t,r,o,x,d,c),T=Py(),w(),t!==null&&!Rn?(Ly(t,r,c),jo(t,r,c)):(Bt&&T&&Ey(r),r.flags|=1,Hn(t,r,s,c),r.child)}function bT(t,r,o,s,c){if(t===null){var d=o.type;return typeof d=="function"&&!by(d)&&d.defaultProps===void 0&&o.compare===null?(o=Us(d),r.tag=15,r.type=o,p0(r,d),AT(t,r,o,s,c)):(t=Ay(o.type,null,s,r,r.mode,c),t.ref=r.ref,t.return=r,r.child=t)}if(d=t.child,!A0(t,c)){var x=d.memoizedProps;if(o=o.compare,o=o!==null?o:$c,o(x,s)&&t.ref===r.ref)return jo(t,r,c)}return r.flags|=1,t=Bo(d,s),t.ref=r.ref,t.return=r,r.child=t}function AT(t,r,o,s,c){if(t!==null){var d=t.memoizedProps;if($c(d,s)&&t.ref===r.ref&&r.type===t.type)if(Rn=!1,r.pendingProps=s=d,A0(t,c))(t.flags&131072)!==0&&(Rn=!0);else return r.lanes=t.lanes,jo(t,r,c)}return d0(t,r,o,s,c)}function vT(t,r,o){var s=r.pendingProps,c=s.children,d=t!==null?t.memoizedState:null;if(s.mode==="hidden"){if((r.flags&128)!==0){if(s=d!==null?d.baseLanes|o:o,t!==null){for(c=r.child=t.child,d=0;c!==null;)d=d|c.lanes|c.childLanes,c=c.sibling;r.childLanes=d&~s}else r.childLanes=0,r.child=null;return xT(t,r,s,o)}if((o&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&Yp(r,d!==null?d.cachePool:null),d!==null?MC(r,d):By(r),cT(r);else return r.lanes=r.childLanes=536870912,xT(t,r,d!==null?d.baseLanes|o:o,o)}else d!==null?(Yp(r,d.cachePool),MC(r,d),Ua(r),r.memoizedState=null):(t!==null&&Yp(r,null),By(r),Ua(r));return Hn(t,r,c,o),r.child}function xT(t,r,o,s){var c=Fy();return c=c===null?null:{parent:wn._currentValue,pool:c},r.memoizedState={baseLanes:o,cachePool:c},t!==null&&Yp(r,null),By(r),cT(r),t!==null&&Vc(t,r,s,!0),null}function hh(t,r){var o=r.ref;if(o===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(t===null||t.ref!==o)&&(r.flags|=4194816)}}function d0(t,r,o,s,c){if(o.prototype&&typeof o.prototype.render=="function"){var d=re(o)||"Unknown";ZF[d]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",d,d),ZF[d]=!0)}return r.mode&or&&Pi.recordLegacyContextWarning(r,null),t===null&&(p0(r,r.type),o.contextTypes&&(d=re(o)||"Unknown",WF[d]||(WF[d]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",d)))),ks(r),V(r),o=_y(t,r,o,s,void 0,c),s=Py(),w(),t!==null&&!Rn?(Ly(t,r,c),jo(t,r,c)):(Bt&&s&&Ey(r),r.flags|=1,Hn(t,r,o,c),r.child)}function ET(t,r,o,s,c,d){return ks(r),V(r),Xo=-1,Pf=t!==null&&t.type!==r.type,r.updateQueue=null,o=jy(r,s,o,c),_C(t,r),s=Py(),w(),t!==null&&!Rn?(Ly(t,r,d),jo(t,r,d)):(Bt&&s&&Ey(r),r.flags|=1,Hn(t,r,o,d),r.child)}function wT(t,r,o,s,c){switch(f(r)){case!1:var d=r.stateNode,x=new r.type(r.memoizedProps,d.context).state;d.updater.enqueueSetState(d,x,null);break;case!0:r.flags|=128,r.flags|=65536,d=Error("Simulated error coming from DevTools");var T=c&-c;if(r.lanes|=T,x=zt,x===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");T=c0(T),f0(T,x,r,zr(d,r)),Xp(r,T)}if(ks(r),r.stateNode===null){if(x=za,d=o.contextType,"contextType"in o&&d!==null&&(d===void 0||d.$$typeof!==uo)&&!YF.has(o)&&(YF.add(o),T=d===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof d!="object"?" However, it is set to a "+typeof d+".":d.$$typeof===ab?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(d).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",re(o)||"Component",T)),typeof d=="object"&&d!==null&&(x=Xt(d)),d=new o(s,x),r.mode&or){J(!0);try{d=new o(s,x)}finally{J(!1)}}if(x=r.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Xb,r.stateNode=d,d._reactInternals=r,d._reactInternalInstance=LF,typeof o.getDerivedStateFromProps=="function"&&x===null&&(x=re(o)||"Component",$F.has(x)||($F.add(x),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",x,d.state===null?"null":"undefined",x))),typeof o.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"){var z=T=x=null;if(typeof d.componentWillMount=="function"&&d.componentWillMount.__suppressDeprecationWarning!==!0?x="componentWillMount":typeof d.UNSAFE_componentWillMount=="function"&&(x="UNSAFE_componentWillMount"),typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps.__suppressDeprecationWarning!==!0?T="componentWillReceiveProps":typeof d.UNSAFE_componentWillReceiveProps=="function"&&(T="UNSAFE_componentWillReceiveProps"),typeof d.componentWillUpdate=="function"&&d.componentWillUpdate.__suppressDeprecationWarning!==!0?z="componentWillUpdate":typeof d.UNSAFE_componentWillUpdate=="function"&&(z="UNSAFE_componentWillUpdate"),x!==null||T!==null||z!==null){d=re(o)||"Component";var Z=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";HF.has(d)||(HF.add(d),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
178
-
179
- %s uses %s but also contains the following legacy lifecycles:%s%s%s
180
-
181
- The above lifecycles should be removed. Learn more about this warning here:
182
- https://react.dev/link/unsafe-component-lifecycles`,d,Z,x!==null?`
183
- `+x:"",T!==null?`
184
- `+T:"",z!==null?`
185
- `+z:""))}}d=r.stateNode,x=re(o)||"Component",d.render||(o.prototype&&typeof o.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",x):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",x)),!d.getInitialState||d.getInitialState.isReactClassApproved||d.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",x),d.getDefaultProps&&!d.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",x),d.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",x),o.childContextTypes&&!QF.has(o)&&(QF.add(o),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",x)),o.contextTypes&&!GF.has(o)&&(GF.add(o),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",x)),typeof d.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",x),o.prototype&&o.prototype.isPureReactComponent&&typeof d.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",re(o)||"A pure component"),typeof d.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",x),typeof d.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",x),typeof d.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",x),typeof d.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",x),T=d.props!==s,d.props!==void 0&&T&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",x),d.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",x,x),typeof d.getSnapshotBeforeUpdate!="function"||typeof d.componentDidUpdate=="function"||qF.has(o)||(qF.add(o),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",re(o))),typeof d.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",x),typeof d.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",x),typeof o.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",x),(T=d.state)&&(typeof T!="object"||Vn(T))&&console.error("%s.state: must be set to an object or null",x),typeof d.getChildContext=="function"&&typeof o.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",x),d=r.stateNode,d.props=s,d.state=r.memoizedState,d.refs={},Ny(r),x=o.contextType,d.context=typeof x=="object"&&x!==null?Xt(x):za,d.state===s&&(x=re(o)||"Component",zF.has(x)||(zF.add(x),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",x))),r.mode&or&&Pi.recordLegacyContextWarning(r,d),Pi.recordUnsafeLifecycleWarnings(r,d),d.state=r.memoizedState,x=o.getDerivedStateFromProps,typeof x=="function"&&(u0(r,o,x,s),d.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(x=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),x!==d.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",O(r)||"Component"),Xb.enqueueReplaceState(d,d.state,null)),Xc(r,s,d,c),Kc(),d.state=r.memoizedState),typeof d.componentDidMount=="function"&&(r.flags|=4194308),(r.mode&ji)!==Yt&&(r.flags|=134217728),d=!0}else if(t===null){d=r.stateNode;var Se=r.memoizedProps;T=Vs(o,Se),d.props=T;var Ne=d.context;z=o.contextType,x=za,typeof z=="object"&&z!==null&&(x=Xt(z)),Z=o.getDerivedStateFromProps,z=typeof Z=="function"||typeof d.getSnapshotBeforeUpdate=="function",Se=r.pendingProps!==Se,z||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(Se||Ne!==x)&&dT(r,d,s,x),Va=!1;var we=r.memoizedState;d.state=we,Xc(r,s,d,c),Kc(),Ne=r.memoizedState,Se||we!==Ne||Va?(typeof Z=="function"&&(u0(r,o,Z,s),Ne=r.memoizedState),(T=Va||fT(r,o,T,s,we,Ne,x))?(z||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(r.flags|=4194308),(r.mode&ji)!==Yt&&(r.flags|=134217728)):(typeof d.componentDidMount=="function"&&(r.flags|=4194308),(r.mode&ji)!==Yt&&(r.flags|=134217728),r.memoizedProps=s,r.memoizedState=Ne),d.props=s,d.state=Ne,d.context=x,d=T):(typeof d.componentDidMount=="function"&&(r.flags|=4194308),(r.mode&ji)!==Yt&&(r.flags|=134217728),d=!1)}else{d=r.stateNode,Dy(t,r),x=r.memoizedProps,z=Vs(o,x),d.props=z,Z=r.pendingProps,we=d.context,Ne=o.contextType,T=za,typeof Ne=="object"&&Ne!==null&&(T=Xt(Ne)),Se=o.getDerivedStateFromProps,(Ne=typeof Se=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x!==Z||we!==T)&&dT(r,d,s,T),Va=!1,we=r.memoizedState,d.state=we,Xc(r,s,d,c),Kc();var De=r.memoizedState;x!==Z||we!==De||Va||t!==null&&t.dependencies!==null&&zp(t.dependencies)?(typeof Se=="function"&&(u0(r,o,Se,s),De=r.memoizedState),(z=Va||fT(r,o,z,s,we,De,T)||t!==null&&t.dependencies!==null&&zp(t.dependencies))?(Ne||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(s,De,T),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(s,De,T)),typeof d.componentDidUpdate=="function"&&(r.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof d.componentDidUpdate!="function"||x===t.memoizedProps&&we===t.memoizedState||(r.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===t.memoizedProps&&we===t.memoizedState||(r.flags|=1024),r.memoizedProps=s,r.memoizedState=De),d.props=s,d.state=De,d.context=T,d=z):(typeof d.componentDidUpdate!="function"||x===t.memoizedProps&&we===t.memoizedState||(r.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===t.memoizedProps&&we===t.memoizedState||(r.flags|=1024),d=!1)}if(T=d,hh(t,r),x=(r.flags&128)!==0,T||x){if(T=r.stateNode,Ca(r),x&&typeof o.getDerivedStateFromError!="function")o=null,Fr=-1;else{if(V(r),o=SF(T),r.mode&or){J(!0);try{SF(T)}finally{J(!1)}}w()}r.flags|=1,t!==null&&x?(r.child=Dl(r,t.child,null,c),r.child=Dl(r,null,o,c)):Hn(t,r,o,c),r.memoizedState=T.state,t=r.child}else t=jo(t,r,c);return c=r.stateNode,d&&c.props!==s&&(Ml||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",O(r)||"a component"),Ml=!0),t}function ST(t,r,o,s){return Hc(),r.flags|=256,Hn(t,r,o,s),r.child}function p0(t,r){r&&r.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
186
- %s.childContextTypes = ...`,r.displayName||r.name||"Component"),typeof r.getDerivedStateFromProps=="function"&&(t=re(r)||"Unknown",eN[t]||(console.error("%s: Function components do not support getDerivedStateFromProps.",t),eN[t]=!0)),typeof r.contextType=="object"&&r.contextType!==null&&(r=re(r)||"Unknown",JF[r]||(console.error("%s: Function components do not support contextType.",r),JF[r]=!0))}function h0(t){return{baseLanes:t,cachePool:TC()}}function m0(t,r,o){return t=t!==null?t.childLanes&~o:0,r&&(t|=Jr),t}function IT(t,r,o){var s,c=r.pendingProps;l(r)&&(r.flags|=128);var d=!1,x=(r.flags&128)!==0;if((s=x)||(s=t!==null&&t.memoizedState===null?!1:(In.current&kf)!==0),s&&(d=!0,r.flags&=-129),s=(r.flags&32)!==0,r.flags&=-33,t===null){if(Bt){if(d?Ba(r):Ua(r),Bt){var T=nn,z;if(!(z=!T)){e:{var Z=T;for(z=mo;Z.nodeType!==8;){if(!z){z=null;break e}if(Z=hi(Z.nextSibling),Z===null){z=null;break e}}z=Z}z!==null?(js(),r.memoizedState={dehydrated:z,treeContext:Ks!==null?{id:Go,overflow:Qo}:null,retryLane:536870912,hydrationErrors:null},Z=y(18,null,null,Yt),Z.stateNode=z,Z.return=r,r.child=Z,mr=r,nn=null,z=!0):z=!1,z=!z}z&&(Sy(r,T),Ls(r))}if(T=r.memoizedState,T!==null&&(T=T.dehydrated,T!==null))return Y0(T)?r.lanes=32:r.lanes=536870912,null;_o(r)}return T=c.children,c=c.fallback,d?(Ua(r),d=r.mode,T=mh({mode:"hidden",children:T},d),c=Ms(c,d,o,null),T.return=r,c.return=r,T.sibling=c,r.child=T,d=r.child,d.memoizedState=h0(o),d.childLanes=m0(t,s,o),r.memoizedState=eA,c):(Ba(r),g0(r,T))}var Se=t.memoizedState;if(Se!==null&&(T=Se.dehydrated,T!==null)){if(x)r.flags&256?(Ba(r),r.flags&=-257,r=y0(t,r,o)):r.memoizedState!==null?(Ua(r),r.child=t.child,r.flags|=128,r=null):(Ua(r),d=c.fallback,T=r.mode,c=mh({mode:"visible",children:c.children},T),d=Ms(d,T,o,null),d.flags|=2,c.return=r,d.return=r,c.sibling=d,r.child=c,Dl(r,t.child,null,o),c=r.child,c.memoizedState=h0(o),c.childLanes=m0(t,s,o),r.memoizedState=eA,r=d);else if(Ba(r),Bt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),Y0(T)){if(s=T.nextSibling&&T.nextSibling.dataset,s){z=s.dgst;var Ne=s.msg;Z=s.stck;var we=s.cstck}T=Ne,s=z,c=Z,z=d=we,d=Error(T||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),d.stack=c||"",d.digest=s,s=z===void 0?null:z,c={value:d,source:null,stack:s},typeof s=="string"&&Ub.set(d,c),zc(c),r=y0(t,r,o)}else if(Rn||Vc(t,r,o,!1),s=(o&t.childLanes)!==0,Rn||s){if(s=zt,s!==null&&(c=o&-o,c=(c&42)!==0?1:Me(c),c=(c&(s.suspendedLanes|o))!==0?0:c,c!==0&&c!==Se.retryLane))throw Se.retryLane=c,Cr(t,c),ln(s,t,c),XF;T.data===Wo||F0(),r=y0(t,r,o)}else T.data===Wo?(r.flags|=192,r.child=t.child,r=null):(t=Se.treeContext,nn=hi(T.nextSibling),mr=r,Bt=!0,Xs=null,Yo=!1,vi=null,mo=!1,t!==null&&(js(),bi[Ai++]=Go,bi[Ai++]=Qo,bi[Ai++]=Ks,Go=t.id,Qo=t.overflow,Ks=r),r=g0(r,c.children),r.flags|=4096);return r}return d?(Ua(r),d=c.fallback,T=r.mode,z=t.child,Z=z.sibling,c=Bo(z,{mode:"hidden",children:c.children}),c.subtreeFlags=z.subtreeFlags&65011712,Z!==null?d=Bo(Z,d):(d=Ms(d,T,o,null),d.flags|=2),d.return=r,c.return=r,c.sibling=d,r.child=c,c=d,d=r.child,T=t.child.memoizedState,T===null?T=h0(o):(z=T.cachePool,z!==null?(Z=wn._currentValue,z=z.parent!==Z?{parent:Z,pool:Z}:z):z=TC(),T={baseLanes:T.baseLanes|o,cachePool:z}),d.memoizedState=T,d.childLanes=m0(t,s,o),r.memoizedState=eA,c):(Ba(r),o=t.child,t=o.sibling,o=Bo(o,{mode:"visible",children:c.children}),o.return=r,o.sibling=null,t!==null&&(s=r.deletions,s===null?(r.deletions=[t],r.flags|=16):s.push(t)),r.child=o,r.memoizedState=null,o)}function g0(t,r){return r=mh({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function mh(t,r){return t=y(22,t,null,r),t.lanes=0,t.stateNode={_visibility:Hh,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function y0(t,r,o){return Dl(r,t.child,null,o),t=g0(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function CT(t,r,o){t.lanes|=r;var s=t.alternate;s!==null&&(s.lanes|=r),Iy(t.return,r,o)}function TT(t,r){var o=Vn(t);return t=!o&&typeof X(t)=="function",o||t?(o=o?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",o,r,o),!1):!0}function b0(t,r,o,s,c){var d=t.memoizedState;d===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:s,tail:o,tailMode:c}:(d.isBackwards=r,d.rendering=null,d.renderingStartTime=0,d.last=s,d.tail=o,d.tailMode=c)}function OT(t,r,o){var s=r.pendingProps,c=s.revealOrder,d=s.tail;if(s=s.children,c!==void 0&&c!=="forwards"&&c!=="backwards"&&c!=="together"&&!tN[c])if(tN[c]=!0,typeof c=="string")switch(c.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',c,c.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',c,c.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',c)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',c);d===void 0||Wb[d]||(d!=="collapsed"&&d!=="hidden"?(Wb[d]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',d)):c!=="forwards"&&c!=="backwards"&&(Wb[d]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',d)));e:if((c==="forwards"||c==="backwards")&&s!==void 0&&s!==null&&s!==!1)if(Vn(s)){for(var x=0;x<s.length;x++)if(!TT(s[x],x))break e}else if(x=X(s),typeof x=="function"){if(x=x.call(s))for(var T=x.next(),z=0;!T.done;T=x.next()){if(!TT(T.value,z))break e;z++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',c);if(Hn(t,r,s,o),s=In.current,(s&kf)!==0)s=s&Bl|kf,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&CT(t,o,r);else if(t.tag===19)CT(t,o,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}s&=Bl}switch(q(In,s,r),c){case"forwards":for(o=r.child,c=null;o!==null;)t=o.alternate,t!==null&&dh(t)===null&&(c=o),o=o.sibling;o=c,o===null?(c=r.child,r.child=null):(c=o.sibling,o.sibling=null),b0(r,!1,c,o,d);break;case"backwards":for(o=null,c=r.child,r.child=null;c!==null;){if(t=c.alternate,t!==null&&dh(t)===null){r.child=c;break}t=c.sibling,c.sibling=o,o=c,c=t}b0(r,!0,o,null,d);break;case"together":b0(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function jo(t,r,o){if(t!==null&&(r.dependencies=t.dependencies),Fr=-1,Ka|=r.lanes,(o&r.childLanes)===0)if(t!==null){if(Vc(t,r,o,!1),(o&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error("Resuming work not yet implemented.");if(r.child!==null){for(t=r.child,o=Bo(t,t.pendingProps),r.child=o,o.return=r;t.sibling!==null;)t=t.sibling,o=o.sibling=Bo(t,t.pendingProps),o.return=r;o.sibling=null}return r.child}function A0(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&zp(t)))}function OP(t,r,o){switch(r.tag){case 3:ge(r,r.stateNode.containerInfo),Ra(r,wn,t.memoizedState.cache),Hc();break;case 27:case 5:fe(r);break;case 4:ge(r,r.stateNode.containerInfo);break;case 10:Ra(r,r.type,r.memoizedProps.value);break;case 12:(o&r.childLanes)!==0&&(r.flags|=4),r.flags|=2048;var s=r.stateNode;s.effectDuration=-0,s.passiveEffectDuration=-0;break;case 13:if(s=r.memoizedState,s!==null)return s.dehydrated!==null?(Ba(r),r.flags|=128,null):(o&r.child.childLanes)!==0?IT(t,r,o):(Ba(r),t=jo(t,r,o),t!==null?t.sibling:null);Ba(r);break;case 19:var c=(t.flags&128)!==0;if(s=(o&r.childLanes)!==0,s||(Vc(t,r,o,!1),s=(o&r.childLanes)!==0),c){if(s)return OT(t,r,o);r.flags|=128}if(c=r.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),q(In,In.current,r),s)break;return null;case 22:case 23:return r.lanes=0,vT(t,r,o);case 24:Ra(r,wn,t.memoizedState.cache)}return jo(t,r,o)}function v0(t,r,o){if(r._debugNeedsRemount&&t!==null){o=Ay(r.type,r.key,r.pendingProps,r._debugOwner||null,r.mode,r.lanes),o._debugStack=r._debugStack,o._debugTask=r._debugTask;var s=r.return;if(s===null)throw Error("Cannot swap the root fiber.");if(t.alternate=null,r.alternate=null,o.index=r.index,o.sibling=r.sibling,o.return=r.return,o.ref=r.ref,o._debugInfo=r._debugInfo,r===s.child)s.child=o;else{var c=s.child;if(c===null)throw Error("Expected parent to have a child.");for(;c.sibling!==r;)if(c=c.sibling,c===null)throw Error("Expected to find the previous sibling.");c.sibling=o}return r=s.deletions,r===null?(s.deletions=[t],s.flags|=16):r.push(t),o.flags|=2,o}if(t!==null)if(t.memoizedProps!==r.pendingProps||r.type!==t.type)Rn=!0;else{if(!A0(t,o)&&(r.flags&128)===0)return Rn=!1,OP(t,r,o);Rn=(t.flags&131072)!==0}else Rn=!1,(s=Bt)&&(js(),s=(r.flags&1048576)!==0),s&&(s=r.index,js(),AC(r,Vh,s));switch(r.lanes=0,r.tag){case 16:e:if(s=r.pendingProps,t=Qa(r.elementType),r.type=t,typeof t=="function")by(t)?(s=Vs(t,s),r.tag=1,r.type=t=Us(t),r=wT(null,r,t,s,o)):(r.tag=0,p0(r,t),r.type=t=Us(t),r=d0(null,r,t,s,o));else{if(t!=null){if(c=t.$$typeof,c===gf){r.tag=11,r.type=t=gy(t),r=yT(null,r,t,s,o);break e}else if(c===Dh){r.tag=14,r=bT(null,r,t,s,o);break e}}throw r="",t!==null&&typeof t=="object"&&t.$$typeof===Yr&&(r=" Did you wrap a component in React.lazy() more than once?"),t=re(t)||t,Error("Element type is invalid. Received a promise that resolves to: "+t+". Lazy element type must resolve to a class or function."+r)}return r;case 0:return d0(t,r,r.type,r.pendingProps,o);case 1:return s=r.type,c=Vs(s,r.pendingProps),wT(t,r,s,c,o);case 3:e:{if(ge(r,r.stateNode.containerInfo),t===null)throw Error("Should have a current fiber. This is a bug in React.");s=r.pendingProps;var d=r.memoizedState;c=d.element,Dy(t,r),Xc(r,s,null,o);var x=r.memoizedState;if(s=x.cache,Ra(r,wn,s),s!==d.cache&&Cy(r,[wn],o,!0),Kc(),s=x.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:x.cache},r.updateQueue.baseState=d,r.memoizedState=d,r.flags&256){r=ST(t,r,s,o);break e}else if(s!==c){c=zr(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),r),zc(c),r=ST(t,r,s,o);break e}else{switch(t=r.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(nn=hi(t.firstChild),mr=r,Bt=!0,Xs=null,Yo=!1,vi=null,mo=!0,t=PF(r,null,s,o),r.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling}else{if(Hc(),s===c){r=jo(t,r,o);break e}Hn(t,r,s,o)}r=r.child}return r;case 26:return hh(t,r),t===null?(t=QO(r.type,null,r.pendingProps,null))?r.memoizedState=t:Bt||(t=r.type,o=r.pendingProps,s=oe(ka.current),s=wh(s).createElement(t),s[ir]=r,s[Rr]=o,zn(s,t,o),he(s),r.stateNode=s):r.memoizedState=QO(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return fe(r),t===null&&Bt&&(s=oe(ka.current),c=D(),s=r.stateNode=VO(r.type,r.pendingProps,s,c,!1),Yo||(c=_O(s,r.type,r.pendingProps,c),c!==null&&(Ps(r,0).serverProps=c)),mr=r,mo=!0,c=nn,ja(r.type)?(wA=c,nn=hi(s.firstChild)):nn=c),Hn(t,r,r.pendingProps.children,o),hh(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&Bt&&(d=D(),s=fy(r.type,d.ancestorInfo),c=nn,(x=!c)||(x=fL(c,r.type,r.pendingProps,mo),x!==null?(r.stateNode=x,Yo||(d=_O(x,r.type,r.pendingProps,d),d!==null&&(Ps(r,0).serverProps=d)),mr=r,nn=hi(x.firstChild),mo=!1,d=!0):d=!1,x=!d),x&&(s&&Sy(r,c),Ls(r))),fe(r),c=r.type,d=r.pendingProps,x=t!==null?t.memoizedProps:null,s=d.children,G0(c,d)?s=null:x!==null&&G0(c,x)&&(r.flags|=32),r.memoizedState!==null&&(c=_y(t,r,EP,null,null,o),td._currentValue=c),hh(t,r),Hn(t,r,s,o),r.child;case 6:return t===null&&Bt&&(t=r.pendingProps,o=D(),s=o.ancestorInfo.current,t=s!=null?Mp(t,s.tag,o.ancestorInfo.implicitRootScope):!0,o=nn,(s=!o)||(s=dL(o,r.pendingProps,mo),s!==null?(r.stateNode=s,mr=r,nn=null,s=!0):s=!1,s=!s),s&&(t&&Sy(r,o),Ls(r))),null;case 13:return IT(t,r,o);case 4:return ge(r,r.stateNode.containerInfo),s=r.pendingProps,t===null?r.child=Dl(r,null,s,o):Hn(t,r,s,o),r.child;case 11:return yT(t,r,r.type,r.pendingProps,o);case 7:return Hn(t,r,r.pendingProps,o),r.child;case 8:return Hn(t,r,r.pendingProps.children,o),r.child;case 12:return r.flags|=4,r.flags|=2048,s=r.stateNode,s.effectDuration=-0,s.passiveEffectDuration=-0,Hn(t,r,r.pendingProps.children,o),r.child;case 10:return s=r.type,c=r.pendingProps,d=c.value,"value"in c||nN||(nN=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Ra(r,s,d),Hn(t,r,c.children,o),r.child;case 9:return c=r.type._context,s=r.pendingProps.children,typeof s!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),ks(r),c=Xt(c),V(r),s=Qb(s,c,void 0),w(),r.flags|=1,Hn(t,r,s,o),r.child;case 14:return bT(t,r,r.type,r.pendingProps,o);case 15:return AT(t,r,r.type,r.pendingProps,o);case 19:return OT(t,r,o);case 31:return s=r.pendingProps,o=r.mode,s={mode:s.mode,children:s.children},t===null?(t=mh(s,o),t.ref=r.ref,r.child=t,t.return=r,r=t):(t=Bo(t.child,s),t.ref=r.ref,r.child=t,t.return=r,r=t),r;case 22:return vT(t,r,o);case 24:return ks(r),s=Xt(wn),t===null?(c=Fy(),c===null&&(c=zt,d=Ty(),c.pooledCache=d,$s(d),d!==null&&(c.pooledCacheLanes|=o),c=d),r.memoizedState={parent:s,cache:c},Ny(r),Ra(r,wn,c)):((t.lanes&o)!==0&&(Dy(t,r),Xc(r,null,null,o),Kc()),c=t.memoizedState,d=r.memoizedState,c.parent!==s?(c={parent:s,cache:s},r.memoizedState=c,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=c),Ra(r,wn,s)):(s=d.cache,Ra(r,wn,s),s!==c.cache&&Cy(r,[wn],o,!0))),Hn(t,r,r.pendingProps.children,o),r.child;case 29:throw r.pendingProps}throw Error("Unknown unit of work tag ("+r.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Po(t){t.flags|=4}function RT(t,r){if(r.type!=="stylesheet"||(r.state.loading&Ii)!==fu)t.flags&=-16777217;else if(t.flags|=16777216,!JO(r)){if(r=Si.current,r!==null&&((Et&4194048)===Et?yo!==null:(Et&62914560)!==Et&&(Et&536870912)===0||r!==yo))throw _f=kb,dF;t.flags|=8192}}function gh(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?xe():536870912,t.lanes|=r,ou|=r)}function tf(t,r){if(!Bt)switch(t.tailMode){case"hidden":r=t.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t.tail=null:o.sibling=null;break;case"collapsed":o=t.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function Zt(t){var r=t.alternate!==null&&t.alternate.child===t.child,o=0,s=0;if(r)if((t.mode&Gn)!==Yt){for(var c=t.selfBaseDuration,d=t.child;d!==null;)o|=d.lanes|d.childLanes,s|=d.subtreeFlags&65011712,s|=d.flags&65011712,c+=d.treeBaseDuration,d=d.sibling;t.treeBaseDuration=c}else for(c=t.child;c!==null;)o|=c.lanes|c.childLanes,s|=c.subtreeFlags&65011712,s|=c.flags&65011712,c.return=t,c=c.sibling;else if((t.mode&Gn)!==Yt){c=t.actualDuration,d=t.selfBaseDuration;for(var x=t.child;x!==null;)o|=x.lanes|x.childLanes,s|=x.subtreeFlags,s|=x.flags,c+=x.actualDuration,d+=x.treeBaseDuration,x=x.sibling;t.actualDuration=c,t.treeBaseDuration=d}else for(c=t.child;c!==null;)o|=c.lanes|c.childLanes,s|=c.subtreeFlags,s|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=s,t.childLanes=o,r}function RP(t,r,o){var s=r.pendingProps;switch(wy(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zt(r),null;case 1:return Zt(r),null;case 3:return o=r.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),r.memoizedState.cache!==s&&(r.flags|=2048),Uo(wn,r),Ee(r),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(qc(r)?(wC(),Po(r)):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,EC())),Zt(r),null;case 26:return o=r.memoizedState,t===null?(Po(r),o!==null?(Zt(r),RT(r,o)):(Zt(r),r.flags&=-16777217)):o?o!==t.memoizedState?(Po(r),Zt(r),RT(r,o)):(Zt(r),r.flags&=-16777217):(t.memoizedProps!==s&&Po(r),Zt(r),r.flags&=-16777217),null;case 27:be(r),o=oe(ka.current);var c=r.type;if(t!==null&&r.stateNode!=null)t.memoizedProps!==s&&Po(r);else{if(!s){if(r.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Zt(r),null}t=D(),qc(r)?vC(r):(t=VO(c,s,o,t,!0),r.stateNode=t,Po(r))}return Zt(r),null;case 5:if(be(r),o=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==s&&Po(r);else{if(!s){if(r.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Zt(r),null}if(c=D(),qc(r))vC(r);else{switch(t=oe(ka.current),fy(o,c.ancestorInfo),c=c.context,t=wh(t),c){case zl:t=t.createElementNS(pl,o);break;case bm:t=t.createElementNS(Ph,o);break;default:switch(o){case"svg":t=t.createElementNS(pl,o);break;case"math":t=t.createElementNS(Ph,o);break;case"script":t=t.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof s.is=="string"?t.createElement("select",{is:s.is}):t.createElement("select"),s.multiple?t.multiple=!0:s.size&&(t.size=s.size);break;default:t=typeof s.is=="string"?t.createElement(o,{is:s.is}):t.createElement(o),o.indexOf("-")===-1&&(o!==o.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",o),Object.prototype.toString.call(t)!=="[object HTMLUnknownElement]"||Ho.call(xN,o)||(xN[o]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",o)))}}t[ir]=r,t[Rr]=s;e:for(c=r.child;c!==null;){if(c.tag===5||c.tag===6)t.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===r)break e;for(;c.sibling===null;){if(c.return===null||c.return===r)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r.stateNode=t;e:switch(zn(t,o,s),o){case"button":case"input":case"select":case"textarea":t=!!s.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&Po(r)}}return Zt(r),r.flags&=-16777217,null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==s&&Po(r);else{if(typeof s!="string"&&r.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(t=oe(ka.current),o=D(),qc(r)){t=r.stateNode,o=r.memoizedProps,c=!Yo,s=null;var d=mr;if(d!==null)switch(d.tag){case 3:c&&(c=qO(t,o,s),c!==null&&(Ps(r,0).serverProps=c));break;case 27:case 5:s=d.memoizedProps,c&&(c=qO(t,o,s),c!==null&&(Ps(r,0).serverProps=c))}t[ir]=r,t=!!(t.nodeValue===o||s!==null&&s.suppressHydrationWarning===!0||NO(t.nodeValue,o)),t||Ls(r)}else c=o.ancestorInfo.current,c!=null&&Mp(s,c.tag,o.ancestorInfo.implicitRootScope),t=wh(t).createTextNode(s),t[ir]=r,r.stateNode=t}return Zt(r),null;case 13:if(s=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(c=qc(r),s!==null&&s.dehydrated!==null){if(t===null){if(!c)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(c=r.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");c[ir]=r,Zt(r),(r.mode&Gn)!==Yt&&s!==null&&(c=r.child,c!==null&&(r.treeBaseDuration-=c.treeBaseDuration))}else wC(),Hc(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4,Zt(r),(r.mode&Gn)!==Yt&&s!==null&&(c=r.child,c!==null&&(r.treeBaseDuration-=c.treeBaseDuration));c=!1}else c=EC(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=c),c=!0;if(!c)return r.flags&256?(_o(r),r):(_o(r),null)}return _o(r),(r.flags&128)!==0?(r.lanes=o,(r.mode&Gn)!==Yt&&Qp(r),r):(o=s!==null,t=t!==null&&t.memoizedState!==null,o&&(s=r.child,c=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(c=s.alternate.memoizedState.cachePool.pool),d=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),d!==c&&(s.flags|=2048)),o!==t&&o&&(r.child.flags|=8192),gh(r,r.updateQueue),Zt(r),(r.mode&Gn)!==Yt&&o&&(t=r.child,t!==null&&(r.treeBaseDuration-=t.treeBaseDuration)),null);case 4:return Ee(r),t===null&&L0(r.stateNode.containerInfo),Zt(r),null;case 10:return Uo(r.type,r),Zt(r),null;case 19:if(L(In,r),c=r.memoizedState,c===null)return Zt(r),null;if(s=(r.flags&128)!==0,d=c.rendering,d===null)if(s)tf(c,!1);else{if(rn!==Jo||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(d=dh(t),d!==null){for(r.flags|=128,tf(c,!1),t=d.updateQueue,r.updateQueue=t,gh(r,t),r.subtreeFlags=0,t=o,o=r.child;o!==null;)bC(o,t),o=o.sibling;return q(In,In.current&Bl|kf,r),r.child}t=t.sibling}c.tail!==null&&lo()>am&&(r.flags|=128,s=!0,tf(c,!1),r.lanes=4194304)}else{if(!s)if(t=dh(d),t!==null){if(r.flags|=128,s=!0,t=t.updateQueue,r.updateQueue=t,gh(r,t),tf(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!Bt)return Zt(r),null}else 2*lo()-c.renderingStartTime>am&&o!==536870912&&(r.flags|=128,s=!0,tf(c,!1),r.lanes=4194304);c.isBackwards?(d.sibling=r.child,r.child=d):(t=c.last,t!==null?t.sibling=d:r.child=d,c.last=d)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=lo(),t.sibling=null,o=In.current,o=s?o&Bl|kf:o&Bl,q(In,o,r),t):(Zt(r),null);case 22:case 23:return _o(r),Uy(r),s=r.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(r.flags|=8192):s&&(r.flags|=8192),s?(o&536870912)!==0&&(r.flags&128)===0&&(Zt(r),r.subtreeFlags&6&&(r.flags|=8192)):Zt(r),o=r.updateQueue,o!==null&&gh(r,o.retryQueue),o=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),s=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),s!==o&&(r.flags|=2048),t!==null&&L(Ws,r),null;case 24:return o=null,t!==null&&(o=t.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),Uo(wn,r),Zt(r),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+r.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function FP(t,r){switch(wy(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,(r.mode&Gn)!==Yt&&Qp(r),r):null;case 3:return Uo(wn,r),Ee(r),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return be(r),null;case 13:if(_o(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Hc()}return t=r.flags,t&65536?(r.flags=t&-65537|128,(r.mode&Gn)!==Yt&&Qp(r),r):null;case 19:return L(In,r),null;case 4:return Ee(r),null;case 10:return Uo(r.type,r),null;case 22:case 23:return _o(r),Uy(r),t!==null&&L(Ws,r),t=r.flags,t&65536?(r.flags=t&-65537|128,(r.mode&Gn)!==Yt&&Qp(r),r):null;case 24:return Uo(wn,r),null;case 25:return null;default:return null}}function FT(t,r){switch(wy(r),r.tag){case 3:Uo(wn,r),Ee(r);break;case 26:case 27:case 5:be(r);break;case 4:Ee(r);break;case 13:_o(r);break;case 19:L(In,r);break;case 10:Uo(r.type,r);break;case 22:case 23:_o(r),Uy(r),t!==null&&L(Ws,r);break;case 24:Uo(wn,r)}}function ro(t){return(t.mode&Gn)!==Yt}function NT(t,r){ro(t)?(no(),nf(r,t),to()):nf(r,t)}function x0(t,r,o){ro(t)?(no(),Wu(o,t,r),to()):Wu(o,t,r)}function nf(t,r){try{var o=r.updateQueue,s=o!==null?o.lastEffect:null;if(s!==null){var c=s.next;o=c;do{if((o.tag&t)===t&&((t&Sn)!==xi?Ye!==null&&typeof Ye.markComponentPassiveEffectMountStarted=="function"&&Ye.markComponentPassiveEffectMountStarted(r):(t&Qn)!==xi&&Ye!==null&&typeof Ye.markComponentLayoutEffectMountStarted=="function"&&Ye.markComponentLayoutEffectMountStarted(r),s=void 0,(t&gr)!==xi&&(ql=!0),s=et(r,Kk,o),(t&gr)!==xi&&(ql=!1),(t&Sn)!==xi?Ye!==null&&typeof Ye.markComponentPassiveEffectMountStopped=="function"&&Ye.markComponentPassiveEffectMountStopped():(t&Qn)!==xi&&Ye!==null&&typeof Ye.markComponentLayoutEffectMountStopped=="function"&&Ye.markComponentLayoutEffectMountStopped(),s!==void 0&&typeof s!="function")){var d=void 0;d=(o.tag&Qn)!==0?"useLayoutEffect":(o.tag&gr)!==0?"useInsertionEffect":"useEffect";var x=void 0;x=s===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof s.then=="function"?`
187
-
188
- It looks like you wrote `+d+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
189
-
190
- `+d+`(() => {
191
- async function fetchData() {
192
- // You can await here
193
- const response = await MyAPI.getData(someId);
194
- // ...
195
- }
196
- fetchData();
197
- }, [someId]); // Or [] if effect doesn't need props or state
198
-
199
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+s,et(r,function(T,z){console.error("%s must not return anything besides a function, which is used for clean-up.%s",T,z)},d,x)}o=o.next}while(o!==c)}}catch(T){$t(r,r.return,T)}}function Wu(t,r,o){try{var s=r.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var d=c.next;s=d;do{if((s.tag&t)===t){var x=s.inst,T=x.destroy;T!==void 0&&(x.destroy=void 0,(t&Sn)!==xi?Ye!==null&&typeof Ye.markComponentPassiveEffectUnmountStarted=="function"&&Ye.markComponentPassiveEffectUnmountStarted(r):(t&Qn)!==xi&&Ye!==null&&typeof Ye.markComponentLayoutEffectUnmountStarted=="function"&&Ye.markComponentLayoutEffectUnmountStarted(r),(t&gr)!==xi&&(ql=!0),c=r,et(c,Xk,c,o,T),(t&gr)!==xi&&(ql=!1),(t&Sn)!==xi?Ye!==null&&typeof Ye.markComponentPassiveEffectUnmountStopped=="function"&&Ye.markComponentPassiveEffectUnmountStopped():(t&Qn)!==xi&&Ye!==null&&typeof Ye.markComponentLayoutEffectUnmountStopped=="function"&&Ye.markComponentLayoutEffectUnmountStopped())}s=s.next}while(s!==d)}}catch(z){$t(r,r.return,z)}}function DT(t,r){ro(t)?(no(),nf(r,t),to()):nf(r,t)}function E0(t,r,o){ro(t)?(no(),Wu(o,t,r),to()):Wu(o,t,r)}function BT(t){var r=t.updateQueue;if(r!==null){var o=t.stateNode;t.type.defaultProps||"ref"in t.memoizedProps||Ml||(o.props!==t.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",O(t)||"instance"),o.state!==t.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",O(t)||"instance"));try{et(t,UC,r,o)}catch(s){$t(t,t.return,s)}}}function NP(t,r,o){return t.getSnapshotBeforeUpdate(r,o)}function DP(t,r){var o=r.memoizedProps,s=r.memoizedState;r=t.stateNode,t.type.defaultProps||"ref"in t.memoizedProps||Ml||(r.props!==t.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",O(t)||"instance"),r.state!==t.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",O(t)||"instance"));try{var c=Vs(t.type,o,t.elementType===t.type),d=et(t,NP,r,c,s);o=rN,d!==void 0||o.has(t.type)||(o.add(t.type),et(t,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",O(t))})),r.__reactInternalSnapshotBeforeUpdate=d}catch(x){$t(t,t.return,x)}}function UT(t,r,o){o.props=Vs(t.type,t.memoizedProps),o.state=t.memoizedState,ro(t)?(no(),et(t,FF,t,r,o),to()):et(t,FF,t,r,o)}function BP(t){var r=t.ref;if(r!==null){switch(t.tag){case 26:case 27:case 5:var o=t.stateNode;break;case 30:o=t.stateNode;break;default:o=t.stateNode}if(typeof r=="function")if(ro(t))try{no(),t.refCleanup=r(o)}finally{to()}else t.refCleanup=r(o);else typeof r=="string"?console.error("String refs are no longer supported."):r.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",O(t)),r.current=o}}function rf(t,r){try{et(t,BP,t)}catch(o){$t(t,r,o)}}function io(t,r){var o=t.ref,s=t.refCleanup;if(o!==null)if(typeof s=="function")try{if(ro(t))try{no(),et(t,s)}finally{to(t)}else et(t,s)}catch(c){$t(t,r,c)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof o=="function")try{if(ro(t))try{no(),et(t,o,null)}finally{to(t)}else et(t,o,null)}catch(c){$t(t,r,c)}else o.current=null}function MT(t,r,o,s){var c=t.memoizedProps,d=c.id,x=c.onCommit;c=c.onRender,r=r===null?"mount":"update",Yh&&(r="nested-update"),typeof c=="function"&&c(d,r,t.actualDuration,t.treeBaseDuration,t.actualStartTime,o),typeof x=="function"&&x(t.memoizedProps.id,r,s,o)}function UP(t,r,o,s){var c=t.memoizedProps;t=c.id,c=c.onPostCommit,r=r===null?"mount":"update",Yh&&(r="nested-update"),typeof c=="function"&&c(t,r,s,o)}function _T(t){var r=t.type,o=t.memoizedProps,s=t.stateNode;try{et(t,nL,s,r,o,t)}catch(c){$t(t,t.return,c)}}function w0(t,r,o){try{et(t,rL,t.stateNode,t.type,o,r,t)}catch(s){$t(t,t.return,s)}}function jT(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ja(t.type)||t.tag===4}function S0(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||jT(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ja(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function I0(t,r,o){var s=t.tag;if(s===5||s===6)t=t.stateNode,r?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(t,r):(r=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,r.appendChild(t),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=Eh));else if(s!==4&&(s===27&&ja(t.type)&&(o=t.stateNode,r=null),t=t.child,t!==null))for(I0(t,r,o),t=t.sibling;t!==null;)I0(t,r,o),t=t.sibling}function yh(t,r,o){var s=t.tag;if(s===5||s===6)t=t.stateNode,r?o.insertBefore(t,r):o.appendChild(t);else if(s!==4&&(s===27&&ja(t.type)&&(o=t.stateNode),t=t.child,t!==null))for(yh(t,r,o),t=t.sibling;t!==null;)yh(t,r,o),t=t.sibling}function MP(t){for(var r,o=t.return;o!==null;){if(jT(o)){r=o;break}o=o.return}if(r==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(r.tag){case 27:r=r.stateNode,o=S0(t),yh(t,o,r);break;case 5:o=r.stateNode,r.flags&32&&(LO(o),r.flags&=-33),r=S0(t),yh(t,r,o);break;case 3:case 4:r=r.stateNode.containerInfo,o=S0(t),I0(t,o,r);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function PT(t){var r=t.stateNode,o=t.memoizedProps;try{et(t,gL,t.type,o,r,t)}catch(s){$t(t,t.return,s)}}function _P(t,r){if(t=t.containerInfo,vA=Em,t=pC(t),hy(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var s=o.getSelection&&o.getSelection();if(s&&s.rangeCount!==0){o=s.anchorNode;var c=s.anchorOffset,d=s.focusNode;s=s.focusOffset;try{o.nodeType,d.nodeType}catch{o=null;break e}var x=0,T=-1,z=-1,Z=0,Se=0,Ne=t,we=null;t:for(;;){for(var De;Ne!==o||c!==0&&Ne.nodeType!==3||(T=x+c),Ne!==d||s!==0&&Ne.nodeType!==3||(z=x+s),Ne.nodeType===3&&(x+=Ne.nodeValue.length),(De=Ne.firstChild)!==null;)we=Ne,Ne=De;for(;;){if(Ne===t)break t;if(we===o&&++Z===c&&(T=x),we===d&&++Se===s&&(z=x),(De=Ne.nextSibling)!==null)break;Ne=we,we=Ne.parentNode}Ne=De}o=T===-1||z===-1?null:{start:T,end:z}}else o=null}o=o||{start:0,end:0}}else o=null;for(xA={focusedElem:t,selectionRange:o},Em=!1,Fn=r;Fn!==null;)if(r=Fn,t=r.child,(r.subtreeFlags&1024)!==0&&t!==null)t.return=r,Fn=t;else for(;Fn!==null;){switch(t=r=Fn,o=t.alternate,c=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:(c&1024)!==0&&o!==null&&DP(t,o);break;case 3:if((c&1024)!==0){if(t=t.stateNode.containerInfo,o=t.nodeType,o===9)Q0(t);else if(o===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Q0(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((c&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(t=r.sibling,t!==null){t.return=r.return,Fn=t;break}Fn=r.return}}function LT(t,r,o){var s=o.flags;switch(o.tag){case 0:case 11:case 15:ko(t,o),s&4&&NT(o,Qn|Ei);break;case 1:if(ko(t,o),s&4)if(t=o.stateNode,r===null)o.type.defaultProps||"ref"in o.memoizedProps||Ml||(t.props!==o.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",O(o)||"instance"),t.state!==o.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",O(o)||"instance")),ro(o)?(no(),et(o,Yb,o,t),to()):et(o,Yb,o,t);else{var c=Vs(o.type,r.memoizedProps);r=r.memoizedState,o.type.defaultProps||"ref"in o.memoizedProps||Ml||(t.props!==o.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",O(o)||"instance"),t.state!==o.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",O(o)||"instance")),ro(o)?(no(),et(o,TF,o,t,c,r,t.__reactInternalSnapshotBeforeUpdate),to()):et(o,TF,o,t,c,r,t.__reactInternalSnapshotBeforeUpdate)}s&64&&BT(o),s&512&&rf(o,o.return);break;case 3:if(r=Mo(),ko(t,o),s&64&&(s=o.updateQueue,s!==null)){if(c=null,o.child!==null)switch(o.child.tag){case 27:case 5:c=o.child.stateNode;break;case 1:c=o.child.stateNode}try{et(o,UC,s,c)}catch(x){$t(o,o.return,x)}}t.effectDuration+=Gp(r);break;case 27:r===null&&s&4&&PT(o);case 26:case 5:ko(t,o),r===null&&s&4&&_T(o),s&512&&rf(o,o.return);break;case 12:if(s&4){s=Mo(),ko(t,o),t=o.stateNode,t.effectDuration+=Qc(s);try{et(o,MT,o,r,Qh,t.effectDuration)}catch(x){$t(o,o.return,x)}}else ko(t,o);break;case 13:ko(t,o),s&4&&qT(t,o),s&64&&(t=o.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(o=VP.bind(null,o),pL(t,o))));break;case 22:if(s=o.memoizedState!==null||Zo,!s){r=r!==null&&r.memoizedState!==null||cn,c=Zo;var d=cn;Zo=s,(cn=r)&&!d?$o(t,o,(o.subtreeFlags&8772)!==0):ko(t,o),Zo=c,cn=d}break;case 30:break;default:ko(t,o)}}function kT(t){var r=t.alternate;r!==null&&(t.alternate=null,kT(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&ct(r)),t.stateNode=null,t._debugOwner=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Lo(t,r,o){for(o=o.child;o!==null;)$T(t,r,o),o=o.sibling}function $T(t,r,o){if(rr&&typeof rr.onCommitFiberUnmount=="function")try{rr.onCommitFiberUnmount(fl,o)}catch(d){co||(co=!0,console.error("React instrumentation encountered an error: %s",d))}switch(o.tag){case 26:cn||io(o,r),Lo(t,r,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:cn||io(o,r);var s=yn,c=Nr;ja(o.type)&&(yn=o.stateNode,Nr=!1),Lo(t,r,o),et(o,ff,o.stateNode),yn=s,Nr=c;break;case 5:cn||io(o,r);case 6:if(s=yn,c=Nr,yn=null,Lo(t,r,o),yn=s,Nr=c,yn!==null)if(Nr)try{et(o,aL,yn,o.stateNode)}catch(d){$t(o,r,d)}else try{et(o,oL,yn,o.stateNode)}catch(d){$t(o,r,d)}break;case 18:yn!==null&&(Nr?(t=yn,kO(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,o.stateNode),mf(t)):kO(yn,o.stateNode));break;case 4:s=yn,c=Nr,yn=o.stateNode.containerInfo,Nr=!0,Lo(t,r,o),yn=s,Nr=c;break;case 0:case 11:case 14:case 15:cn||Wu(gr,o,r),cn||x0(o,r,Qn),Lo(t,r,o);break;case 1:cn||(io(o,r),s=o.stateNode,typeof s.componentWillUnmount=="function"&&UT(o,r,s)),Lo(t,r,o);break;case 21:Lo(t,r,o);break;case 22:cn=(s=cn)||o.memoizedState!==null,Lo(t,r,o),cn=s;break;default:Lo(t,r,o)}}function qT(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{et(r,mL,t)}catch(o){$t(r,r.return,o)}}function jP(t){switch(t.tag){case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new iN),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new iN),r;default:throw Error("Unexpected Suspense handler tag ("+t.tag+"). This is a bug in React.")}}function C0(t,r){var o=jP(t);r.forEach(function(s){var c=GP.bind(null,t,s);if(!o.has(s)){if(o.add(s),_i)if(_l!==null&&jl!==null)uf(jl,_l);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");s.then(c,c)}})}function Vr(t,r){var o=r.deletions;if(o!==null)for(var s=0;s<o.length;s++){var c=t,d=r,x=o[s],T=d;e:for(;T!==null;){switch(T.tag){case 27:if(ja(T.type)){yn=T.stateNode,Nr=!1;break e}break;case 5:yn=T.stateNode,Nr=!1;break e;case 3:case 4:yn=T.stateNode.containerInfo,Nr=!0;break e}T=T.return}if(yn===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");$T(c,d,x),yn=null,Nr=!1,c=x,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)HT(r,t),r=r.sibling}function HT(t,r){var o=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Vr(r,t),Gr(t),s&4&&(Wu(gr|Ei,t,t.return),nf(gr|Ei,t),x0(t,t.return,Qn|Ei));break;case 1:Vr(r,t),Gr(t),s&512&&(cn||o===null||io(o,o.return)),s&64&&Zo&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(o=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=o===null?s:o.concat(s))));break;case 26:var c=ki;if(Vr(r,t),Gr(t),s&512&&(cn||o===null||io(o,o.return)),s&4)if(r=o!==null?o.memoizedState:null,s=t.memoizedState,o===null)if(s===null)if(t.stateNode===null){e:{s=t.type,o=t.memoizedProps,r=c.ownerDocument||c;t:switch(s){case"title":c=r.getElementsByTagName("title")[0],(!c||c[bf]||c[ir]||c.namespaceURI===pl||c.hasAttribute("itemprop"))&&(c=r.createElement(s),r.head.insertBefore(c,r.querySelector("head > title"))),zn(c,s,o),c[ir]=t,he(c),s=c;break e;case"link":var d=XO("link","href",r).get(s+(o.href||""));if(d){for(var x=0;x<d.length;x++)if(c=d[x],c.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&c.getAttribute("rel")===(o.rel==null?null:o.rel)&&c.getAttribute("title")===(o.title==null?null:o.title)&&c.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){d.splice(x,1);break t}}c=r.createElement(s),zn(c,s,o),r.head.appendChild(c);break;case"meta":if(d=XO("meta","content",r).get(s+(o.content||""))){for(x=0;x<d.length;x++)if(c=d[x],me(o.content,"content"),c.getAttribute("content")===(o.content==null?null:""+o.content)&&c.getAttribute("name")===(o.name==null?null:o.name)&&c.getAttribute("property")===(o.property==null?null:o.property)&&c.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&c.getAttribute("charset")===(o.charSet==null?null:o.charSet)){d.splice(x,1);break t}}c=r.createElement(s),zn(c,s,o),r.head.appendChild(c);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+s+'". This is a bug in React.')}c[ir]=t,he(c),s=c}t.stateNode=s}else ZO(c,t.type,t.stateNode);else t.stateNode=KO(c,s,t.memoizedProps);else r!==s?(r===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):r.count--,s===null?ZO(c,t.type,t.stateNode):KO(c,s,t.memoizedProps)):s===null&&t.stateNode!==null&&w0(t,t.memoizedProps,o.memoizedProps);break;case 27:Vr(r,t),Gr(t),s&512&&(cn||o===null||io(o,o.return)),o!==null&&s&4&&w0(t,t.memoizedProps,o.memoizedProps);break;case 5:if(Vr(r,t),Gr(t),s&512&&(cn||o===null||io(o,o.return)),t.flags&32){r=t.stateNode;try{et(t,LO,r)}catch(Se){$t(t,t.return,Se)}}s&4&&t.stateNode!=null&&(r=t.memoizedProps,w0(t,r,o!==null?o.memoizedProps:r)),s&1024&&(tA=!0,t.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Vr(r,t),Gr(t),s&4){if(t.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");s=t.memoizedProps,o=o!==null?o.memoizedProps:s,r=t.stateNode;try{et(t,iL,r,o,s)}catch(Se){$t(t,t.return,Se)}}break;case 3:if(c=Mo(),Am=null,d=ki,ki=Sh(r.containerInfo),Vr(r,t),ki=d,Gr(t),s&4&&o!==null&&o.memoizedState.isDehydrated)try{et(t,hL,r.containerInfo)}catch(Se){$t(t,t.return,Se)}tA&&(tA=!1,zT(t)),r.effectDuration+=Gp(c);break;case 4:s=ki,ki=Sh(t.stateNode.containerInfo),Vr(r,t),Gr(t),ki=s;break;case 12:s=Mo(),Vr(r,t),Gr(t),t.stateNode.effectDuration+=Qc(s);break;case 13:Vr(r,t),Gr(t),t.child.flags&8192&&t.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(sA=lo()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,C0(t,s)));break;case 22:c=t.memoizedState!==null;var T=o!==null&&o.memoizedState!==null,z=Zo,Z=cn;if(Zo=z||c,cn=Z||T,Vr(r,t),cn=Z,Zo=z,Gr(t),s&8192)e:for(r=t.stateNode,r._visibility=c?r._visibility&~Hh:r._visibility|Hh,c&&(o===null||T||Zo||cn||Gs(t)),o=null,r=t;;){if(r.tag===5||r.tag===26){if(o===null){T=o=r;try{d=T.stateNode,c?et(T,sL,d):et(T,lL,T.stateNode,T.memoizedProps)}catch(Se){$t(T,T.return,Se)}}}else if(r.tag===6){if(o===null){T=r;try{x=T.stateNode,c?et(T,uL,x):et(T,cL,x,T.memoizedProps)}catch(Se){$t(T,T.return,Se)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;o===r&&(o=null),r=r.return}o===r&&(o=null),r.sibling.return=r.return,r=r.sibling}s&4&&(s=t.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,C0(t,o))));break;case 19:Vr(r,t),Gr(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,C0(t,s)));break;case 30:break;case 21:break;default:Vr(r,t),Gr(t)}}function Gr(t){var r=t.flags;if(r&2){try{et(t,MP,t)}catch(o){$t(t,t.return,o)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function zT(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;zT(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function ko(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)LT(t,r.alternate,r),r=r.sibling}function VT(t){switch(t.tag){case 0:case 11:case 14:case 15:x0(t,t.return,Qn),Gs(t);break;case 1:io(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&UT(t,t.return,r),Gs(t);break;case 27:et(t,ff,t.stateNode);case 26:case 5:io(t,t.return),Gs(t);break;case 22:t.memoizedState===null&&Gs(t);break;case 30:Gs(t);break;default:Gs(t)}}function Gs(t){for(t=t.child;t!==null;)VT(t),t=t.sibling}function GT(t,r,o,s){var c=o.flags;switch(o.tag){case 0:case 11:case 15:$o(t,o,s),NT(o,Qn);break;case 1:if($o(t,o,s),r=o.stateNode,typeof r.componentDidMount=="function"&&et(o,Yb,o,r),r=o.updateQueue,r!==null){t=o.stateNode;try{et(o,xP,r,t)}catch(d){$t(o,o.return,d)}}s&&c&64&&BT(o),rf(o,o.return);break;case 27:PT(o);case 26:case 5:$o(t,o,s),s&&r===null&&c&4&&_T(o),rf(o,o.return);break;case 12:if(s&&c&4){c=Mo(),$o(t,o,s),s=o.stateNode,s.effectDuration+=Qc(c);try{et(o,MT,o,r,Qh,s.effectDuration)}catch(d){$t(o,o.return,d)}}else $o(t,o,s);break;case 13:$o(t,o,s),s&&c&4&&qT(t,o);break;case 22:o.memoizedState===null&&$o(t,o,s),rf(o,o.return);break;case 30:break;default:$o(t,o,s)}}function $o(t,r,o){for(o=o&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;)GT(t,r.alternate,r,o),r=r.sibling}function T0(t,r){var o=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==o&&(t!=null&&$s(t),o!=null&&Gc(o))}function O0(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&($s(r),t!=null&&Gc(t))}function oo(t,r,o,s){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)QT(t,r,o,s),r=r.sibling}function QT(t,r,o,s){var c=r.flags;switch(r.tag){case 0:case 11:case 15:oo(t,r,o,s),c&2048&&DT(r,Sn|Ei);break;case 1:oo(t,r,o,s);break;case 3:var d=Mo();oo(t,r,o,s),c&2048&&(o=null,r.alternate!==null&&(o=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==o&&($s(r),o!=null&&Gc(o))),t.passiveEffectDuration+=Gp(d);break;case 12:if(c&2048){c=Mo(),oo(t,r,o,s),t=r.stateNode,t.passiveEffectDuration+=Qc(c);try{et(r,UP,r,r.alternate,Qh,t.passiveEffectDuration)}catch(T){$t(r,r.return,T)}}else oo(t,r,o,s);break;case 13:oo(t,r,o,s);break;case 23:break;case 22:d=r.stateNode;var x=r.alternate;r.memoizedState!==null?d._visibility&Vo?oo(t,r,o,s):of(t,r):d._visibility&Vo?oo(t,r,o,s):(d._visibility|=Vo,el(t,r,o,s,(r.subtreeFlags&10256)!==0)),c&2048&&T0(x,r);break;case 24:oo(t,r,o,s),c&2048&&O0(r.alternate,r);break;default:oo(t,r,o,s)}}function el(t,r,o,s,c){for(c=c&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;)YT(t,r,o,s,c),r=r.sibling}function YT(t,r,o,s,c){var d=r.flags;switch(r.tag){case 0:case 11:case 15:el(t,r,o,s,c),DT(r,Sn);break;case 23:break;case 22:var x=r.stateNode;r.memoizedState!==null?x._visibility&Vo?el(t,r,o,s,c):of(t,r):(x._visibility|=Vo,el(t,r,o,s,c)),c&&d&2048&&T0(r.alternate,r);break;case 24:el(t,r,o,s,c),c&&d&2048&&O0(r.alternate,r);break;default:el(t,r,o,s,c)}}function of(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var o=t,s=r,c=s.flags;switch(s.tag){case 22:of(o,s),c&2048&&T0(s.alternate,s);break;case 24:of(o,s),c&2048&&O0(s.alternate,s);break;default:of(o,s)}r=r.sibling}}function tl(t){if(t.subtreeFlags&$f)for(t=t.child;t!==null;)KT(t),t=t.sibling}function KT(t){switch(t.tag){case 26:tl(t),t.flags&$f&&t.memoizedState!==null&&vL(ki,t.memoizedState,t.memoizedProps);break;case 5:tl(t);break;case 3:case 4:var r=ki;ki=Sh(t.stateNode.containerInfo),tl(t),ki=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=$f,$f=16777216,tl(t),$f=r):tl(t));break;default:tl(t)}}function XT(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function af(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var s=r[o];Fn=s,WT(s,t)}XT(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ZT(t),t=t.sibling}function ZT(t){switch(t.tag){case 0:case 11:case 15:af(t),t.flags&2048&&E0(t,t.return,Sn|Ei);break;case 3:var r=Mo();af(t),t.stateNode.passiveEffectDuration+=Gp(r);break;case 12:r=Mo(),af(t),t.stateNode.passiveEffectDuration+=Qc(r);break;case 22:r=t.stateNode,t.memoizedState!==null&&r._visibility&Vo&&(t.return===null||t.return.tag!==13)?(r._visibility&=~Vo,bh(t)):af(t);break;default:af(t)}}function bh(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var s=r[o];Fn=s,WT(s,t)}XT(t)}for(t=t.child;t!==null;)JT(t),t=t.sibling}function JT(t){switch(t.tag){case 0:case 11:case 15:E0(t,t.return,Sn),bh(t);break;case 22:var r=t.stateNode;r._visibility&Vo&&(r._visibility&=~Vo,bh(t));break;default:bh(t)}}function WT(t,r){for(;Fn!==null;){var o=Fn,s=o;switch(s.tag){case 0:case 11:case 15:E0(s,r,Sn);break;case 23:case 22:s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(s=s.memoizedState.cachePool.pool,s!=null&&$s(s));break;case 24:Gc(s.memoizedState.cache)}if(s=o.child,s!==null)s.return=o,Fn=s;else e:for(o=t;Fn!==null;){s=Fn;var c=s.sibling,d=s.return;if(kT(s),s===o){Fn=null;break e}if(c!==null){c.return=d,Fn=c;break e}Fn=d}}}function PP(){Jk.forEach(function(t){return t()})}function eO(){var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return t||Fe.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),t}function Qr(t){if((_t&yr)!==Xr&&Et!==0)return Et&-Et;var r=Fe.T;return r!==null?(r._updatedFibers||(r._updatedFibers=new Set),r._updatedFibers.add(t),t=Js,t!==0?t:j0()):ot()}function tO(){Jr===0&&(Jr=(Et&536870912)===0||Bt?K():536870912);var t=Si.current;return t!==null&&(t.flags|=32),Jr}function ln(t,r,o){if(ql&&console.error("useInsertionEffect must not schedule updates."),dA&&(sm=!0),(t===zt&&(jt===ru||jt===iu)||t.cancelPendingCommit!==null)&&(rl(t,0),Ma(t,Et,Jr,!1)),ze(t,o),(_t&yr)!==0&&t===zt){if(po)switch(r.tag){case 0:case 11:case 15:t=vt&&O(vt)||"Unknown",hN.has(t)||(hN.add(t),r=O(r)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",r,t,t));break;case 1:pN||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),pN=!0)}}else _i&&Le(t,r,o),YP(r),t===zt&&((_t&yr)===Xr&&(Xa|=o),rn===nu&&Ma(t,Et,Jr,!1)),ao(t)}function nO(t,r,o){if((_t&(yr|$i))!==Xr)throw Error("Should not already be working.");var s=!o&&(r&124)===0&&(r&t.expiredLanes)===0||b(t,r),c=s?kP(t,r):N0(t,r,!0),d=s;do{if(c===Jo){kl&&!s&&Ma(t,r,0,!1);break}else{if(o=t.current.alternate,d&&!LP(o)){c=N0(t,r,!1),d=!1;continue}if(c===Pl){if(d=r,t.errorRecoveryDisabledLanes&d)var x=0;else x=t.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){r=x;e:{c=t;var T=x;x=Qf;var z=c.current.memoizedState.isDehydrated;if(z&&(rl(c,T).flags|=256),T=N0(c,T,!1),T!==Pl){if(oA&&!z){c.errorRecoveryDisabledLanes|=d,Xa|=d,c=nu;break e}c=br,br=x,c!==null&&(br===null?br=c:br.push.apply(br,c))}c=T}if(d=!1,c!==Pl)continue}}if(c===Hf){rl(t,0),Ma(t,r,0,!0);break}e:{switch(s=t,c){case Jo:case Hf:throw Error("Root did not complete. This is a bug in React.");case nu:if((r&4194048)!==r)break;case im:Ma(s,r,Jr,!Ya);break e;case Pl:br=null;break;case nA:case oN:break;default:throw Error("Unknown root exit status.")}if(Fe.actQueue!==null)D0(s,o,r,br,Yf,om,Jr,Xa,ou);else{if((r&62914560)===r&&(d=sA+sN-lo(),10<d)){if(Ma(s,r,Jr,!Ya),g(s,0,!0)!==0)break e;s.timeoutHandle=EN(rO.bind(null,s,o,br,Yf,om,r,Jr,Xa,ou,Ya,c,n5,lF,0),d);break e}rO(s,o,br,Yf,om,r,Jr,Xa,ou,Ya,c,e5,lF,0)}}}break}while(!0);ao(t)}function rO(t,r,o,s,c,d,x,T,z,Z,Se,Ne,we,De){if(t.timeoutHandle=cu,Ne=r.subtreeFlags,(Ne&8192||(Ne&16785408)===16785408)&&(ed={stylesheets:null,count:0,unsuspend:AL},KT(r),Ne=xL(),Ne!==null)){t.cancelPendingCommit=Ne(D0.bind(null,t,r,d,o,s,c,x,T,z,Se,t5,we,De)),Ma(t,d,x,!Z);return}D0(t,r,d,o,s,c,x,T,z)}function LP(t){for(var r=t;;){var o=r.tag;if((o===0||o===11||o===15)&&r.flags&16384&&(o=r.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var s=0;s<o.length;s++){var c=o[s],d=c.getSnapshot;c=c.value;try{if(!hr(d(),c))return!1}catch{return!1}}if(o=r.child,r.subtreeFlags&16384&&o!==null)o.return=r,r=o;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Ma(t,r,o,s){r&=~aA,r&=~Xa,t.suspendedLanes|=r,t.pingedLanes&=~r,s&&(t.warmLanes|=r),s=t.expirationTimes;for(var c=r;0<c;){var d=31-dr(c),x=1<<d;s[d]=-1,c&=~x}o!==0&&le(t,o,r)}function nl(){return(_t&(yr|$i))===Xr?(lf(0),!1):!0}function R0(){if(vt!==null){if(jt===Dr)var t=vt.return;else t=vt,Hp(),ky(t),Nl=null,Lf=0,t=vt;for(;t!==null;)FT(t.alternate,t),t=t.return;vt=null}}function rl(t,r){var o=t.timeoutHandle;o!==cu&&(t.timeoutHandle=cu,m5(o)),o=t.cancelPendingCommit,o!==null&&(t.cancelPendingCommit=null,o()),R0(),zt=t,vt=o=Bo(t.current,null),Et=r,jt=Dr,Zr=null,Ya=!1,kl=b(t,r),oA=!1,rn=Jo,ou=Jr=aA=Xa=Ka=0,br=Qf=null,om=!1,(r&8)!==0&&(r|=r&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=r;0<s;){var c=31-dr(s),d=1<<c;r|=t[c],s&=~d}return bo=r,Lp(),r=sF(),1e3<r-aF&&(Fe.recentlyCreatedOwnerStacks=0,aF=r),Pi.discardPendingWarnings(),o}function iO(t,r){ft=null,Fe.H=nm,Fe.getCurrentStack=null,po=!1,Kr=null,r===Mf||r===Zh?(r=NC(),jt=Vf):r===dF?(r=NC(),jt=aN):jt=r===XF?iA:r!==null&&typeof r=="object"&&typeof r.then=="function"?Ll:zf,Zr=r;var o=vt;if(o===null)rn=Hf,ph(t,zr(r,t.current));else switch(o.mode&Gn&&Ry(o),w(),jt){case zf:Ye!==null&&typeof Ye.markComponentErrored=="function"&&Ye.markComponentErrored(o,r,Et);break;case ru:case iu:case Vf:case Ll:case Gf:Ye!==null&&typeof Ye.markComponentSuspended=="function"&&Ye.markComponentSuspended(o,r,Et)}}function oO(){var t=Fe.H;return Fe.H=nm,t===null?nm:t}function aO(){var t=Fe.A;return Fe.A=Zk,t}function F0(){rn=nu,Ya||(Et&4194048)!==Et&&Si.current!==null||(kl=!0),(Ka&134217727)===0&&(Xa&134217727)===0||zt===null||Ma(zt,Et,Jr,!1)}function N0(t,r,o){var s=_t;_t|=yr;var c=oO(),d=aO();if(zt!==t||Et!==r){if(_i){var x=t.memoizedUpdaters;0<x.size&&(uf(t,Et),x.clear()),tt(t,r)}Yf=null,rl(t,r)}$(r),r=!1,x=rn;e:do try{if(jt!==Dr&&vt!==null){var T=vt,z=Zr;switch(jt){case iA:R0(),x=im;break e;case Vf:case ru:case iu:case Ll:Si.current===null&&(r=!0);var Z=jt;if(jt=Dr,Zr=null,il(t,T,z,Z),o&&kl){x=Jo;break e}break;default:Z=jt,jt=Dr,Zr=null,il(t,T,z,Z)}}sO(),x=rn;break}catch(Se){iO(t,Se)}while(!0);return r&&t.shellSuspendCounter++,Hp(),_t=s,Fe.H=c,Fe.A=d,Y(),vt===null&&(zt=null,Et=0,Lp()),x}function sO(){for(;vt!==null;)uO(vt)}function kP(t,r){var o=_t;_t|=yr;var s=oO(),c=aO();if(zt!==t||Et!==r){if(_i){var d=t.memoizedUpdaters;0<d.size&&(uf(t,Et),d.clear()),tt(t,r)}Yf=null,am=lo()+uN,rl(t,r)}else kl=b(t,r);$(r);e:do try{if(jt!==Dr&&vt!==null)t:switch(r=vt,d=Zr,jt){case zf:jt=Dr,Zr=null,il(t,r,d,zf);break;case ru:case iu:if(RC(d)){jt=Dr,Zr=null,lO(r);break}r=function(){jt!==ru&&jt!==iu||zt!==t||(jt=Gf),ao(t)},d.then(r,r);break e;case Vf:jt=Gf;break e;case aN:jt=rA;break e;case Gf:RC(d)?(jt=Dr,Zr=null,lO(r)):(jt=Dr,Zr=null,il(t,r,d,Gf));break;case rA:var x=null;switch(vt.tag){case 26:x=vt.memoizedState;case 5:case 27:var T=vt;if(!x||JO(x)){jt=Dr,Zr=null;var z=T.sibling;if(z!==null)vt=z;else{var Z=T.return;Z!==null?(vt=Z,Ah(Z)):vt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}jt=Dr,Zr=null,il(t,r,d,rA);break;case Ll:jt=Dr,Zr=null,il(t,r,d,Ll);break;case iA:R0(),rn=im;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Fe.actQueue!==null?sO():$P();break}catch(Se){iO(t,Se)}while(!0);return Hp(),Fe.H=s,Fe.A=c,_t=o,vt!==null?(Ye!==null&&typeof Ye.markRenderYielded=="function"&&Ye.markRenderYielded(),Jo):(Y(),zt=null,Et=0,Lp(),rn)}function $P(){for(;vt!==null&&!jL();)uO(vt)}function uO(t){var r=t.alternate;(t.mode&Gn)!==Yt?(Oy(t),r=et(t,v0,r,t,bo),Ry(t)):r=et(t,v0,r,t,bo),t.memoizedProps=t.pendingProps,r===null?Ah(t):vt=r}function lO(t){var r=et(t,qP,t);t.memoizedProps=t.pendingProps,r===null?Ah(t):vt=r}function qP(t){var r=t.alternate,o=(t.mode&Gn)!==Yt;switch(o&&Oy(t),t.tag){case 15:case 0:r=ET(r,t,t.pendingProps,t.type,void 0,Et);break;case 11:r=ET(r,t,t.pendingProps,t.type.render,t.ref,Et);break;case 5:ky(t);default:FT(r,t),t=vt=bC(t,bo),r=v0(r,t,bo)}return o&&Ry(t),r}function il(t,r,o,s){Hp(),ky(r),Nl=null,Lf=0;var c=r.return;try{if(TP(t,c,r,o,Et)){rn=Hf,ph(t,zr(o,t.current)),vt=null;return}}catch(d){if(c!==null)throw vt=c,d;rn=Hf,ph(t,zr(o,t.current)),vt=null;return}r.flags&32768?(Bt||s===zf?t=!0:kl||(Et&536870912)!==0?t=!1:(Ya=t=!0,(s===ru||s===iu||s===Vf||s===Ll)&&(s=Si.current,s!==null&&s.tag===13&&(s.flags|=16384))),cO(r,t)):Ah(r)}function Ah(t){var r=t;do{if((r.flags&32768)!==0){cO(r,Ya);return}var o=r.alternate;if(t=r.return,Oy(r),o=et(r,RP,o,r,bo),(r.mode&Gn)!==Yt&&IC(r),o!==null){vt=o;return}if(r=r.sibling,r!==null){vt=r;return}vt=r=t}while(r!==null);rn===Jo&&(rn=oN)}function cO(t,r){do{var o=FP(t.alternate,t);if(o!==null){o.flags&=32767,vt=o;return}if((t.mode&Gn)!==Yt){IC(t),o=t.actualDuration;for(var s=t.child;s!==null;)o+=s.actualDuration,s=s.sibling;t.actualDuration=o}if(o=t.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!r&&(t=t.sibling,t!==null)){vt=t;return}vt=t=o}while(t!==null);rn=im,vt=null}function D0(t,r,o,s,c,d,x,T,z){t.cancelPendingCommit=null;do sf();while(Yn!==au);if(Pi.flushLegacyContextWarning(),Pi.flushPendingUnsafeLifecycleWarnings(),(_t&(yr|$i))!==Xr)throw Error("Should not already be working.");if(Ye!==null&&typeof Ye.markCommitStarted=="function"&&Ye.markCommitStarted(o),r===null)Ae();else{if(o===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),r===t.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(d=r.lanes|r.childLanes,d|=Mb,ce(t,o,d,x,T,z),t===zt&&(vt=zt=null,Et=0),$l=r,Ja=t,Wa=o,lA=d,cA=c,dN=s,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,QP(cl,function(){return mO(),null})):(t.callbackNode=null,t.callbackPriority=0),Qh=Cl(),s=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||s){s=Fe.T,Fe.T=null,c=Mt.p,Mt.p=mi,x=_t,_t|=$i;try{_P(t,r,o)}finally{_t=x,Mt.p=c,Fe.T=s}}Yn=lN,fO(),dO(),pO()}}function fO(){if(Yn===lN){Yn=au;var t=Ja,r=$l,o=Wa,s=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||s){s=Fe.T,Fe.T=null;var c=Mt.p;Mt.p=mi;var d=_t;_t|=$i;try{_l=o,jl=t,HT(r,t),jl=_l=null,o=xA;var x=pC(t.containerInfo),T=o.focusedElem,z=o.selectionRange;if(x!==T&&T&&T.ownerDocument&&dC(T.ownerDocument.documentElement,T)){if(z!==null&&hy(T)){var Z=z.start,Se=z.end;if(Se===void 0&&(Se=Z),"selectionStart"in T)T.selectionStart=Z,T.selectionEnd=Math.min(Se,T.value.length);else{var Ne=T.ownerDocument||document,we=Ne&&Ne.defaultView||window;if(we.getSelection){var De=we.getSelection(),Je=T.textContent.length,lt=Math.min(z.start,Je),Vt=z.end===void 0?lt:Math.min(z.end,Je);!De.extend&&lt>Vt&&(x=Vt,Vt=lt,lt=x);var It=fC(T,lt),ae=fC(T,Vt);if(It&&ae&&(De.rangeCount!==1||De.anchorNode!==It.node||De.anchorOffset!==It.offset||De.focusNode!==ae.node||De.focusOffset!==ae.offset)){var se=Ne.createRange();se.setStart(It.node,It.offset),De.removeAllRanges(),lt>Vt?(De.addRange(se),De.extend(ae.node,ae.offset)):(se.setEnd(ae.node,ae.offset),De.addRange(se))}}}}for(Ne=[],De=T;De=De.parentNode;)De.nodeType===1&&Ne.push({element:De,left:De.scrollLeft,top:De.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<Ne.length;T++){var ye=Ne[T];ye.element.scrollLeft=ye.left,ye.element.scrollTop=ye.top}}Em=!!vA,xA=vA=null}finally{_t=d,Mt.p=c,Fe.T=s}}t.current=r,Yn=cN}}function dO(){if(Yn===cN){Yn=au;var t=Ja,r=$l,o=Wa,s=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||s){s=Fe.T,Fe.T=null;var c=Mt.p;Mt.p=mi;var d=_t;_t|=$i;try{Ye!==null&&typeof Ye.markLayoutEffectsStarted=="function"&&Ye.markLayoutEffectsStarted(o),_l=o,jl=t,LT(t,r.alternate,r),jl=_l=null,Ye!==null&&typeof Ye.markLayoutEffectsStopped=="function"&&Ye.markLayoutEffectsStopped()}finally{_t=d,Mt.p=c,Fe.T=s}}Yn=fN}}function pO(){if(Yn===r5||Yn===fN){Yn=au,PL();var t=Ja,r=$l,o=Wa,s=dN,c=(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0;c?Yn=uA:(Yn=au,$l=Ja=null,hO(t,t.pendingLanes),su=0,Xf=null);var d=t.pendingLanes;if(d===0&&(Za=null),c||AO(t),c=Ze(o),r=r.stateNode,rr&&typeof rr.onCommitFiberRoot=="function")try{var x=(r.current.flags&128)===128;switch(c){case mi:var T=pb;break;case fo:T=hb;break;case zo:T=cl;break;case _h:T=mb;break;default:T=cl}rr.onCommitFiberRoot(fl,r,T,x)}catch(Ne){co||(co=!0,console.error("React instrumentation encountered an error: %s",Ne))}if(_i&&t.memoizedUpdaters.clear(),PP(),s!==null){x=Fe.T,T=Mt.p,Mt.p=mi,Fe.T=null;try{var z=t.onRecoverableError;for(r=0;r<s.length;r++){var Z=s[r],Se=HP(Z.stack);et(Z.source,z,Z.value,Se)}}finally{Fe.T=x,Mt.p=T}}(Wa&3)!==0&&sf(),ao(t),d=t.pendingLanes,(o&4194090)!==0&&(d&42)!==0?(Kh=!0,t===fA?Kf++:(Kf=0,fA=t)):Kf=0,lf(0),Ae()}}function HP(t){return t={componentStack:t},Object.defineProperty(t,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),t}function hO(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,Gc(r)))}function sf(t){return fO(),dO(),pO(),mO()}function mO(){if(Yn!==uA)return!1;var t=Ja,r=lA;lA=0;var o=Ze(Wa),s=zo>o?zo:o;o=Fe.T;var c=Mt.p;try{Mt.p=s,Fe.T=null,s=cA,cA=null;var d=Ja,x=Wa;if(Yn=au,$l=Ja=null,Wa=0,(_t&(yr|$i))!==Xr)throw Error("Cannot flush passive effects while already rendering.");dA=!0,sm=!1,Ye!==null&&typeof Ye.markPassiveEffectsStarted=="function"&&Ye.markPassiveEffectsStarted(x);var T=_t;if(_t|=$i,ZT(d.current),QT(d,d.current,x,s),Ye!==null&&typeof Ye.markPassiveEffectsStopped=="function"&&Ye.markPassiveEffectsStopped(),AO(d),_t=T,lf(0,!1),sm?d===Xf?su++:(su=0,Xf=d):su=0,sm=dA=!1,rr&&typeof rr.onPostCommitFiberRoot=="function")try{rr.onPostCommitFiberRoot(fl,d)}catch(Z){co||(co=!0,console.error("React instrumentation encountered an error: %s",Z))}var z=d.current.stateNode;return z.effectDuration=0,z.passiveEffectDuration=0,!0}finally{Mt.p=c,Fe.T=o,hO(t,r)}}function gO(t,r,o){r=zr(o,r),r=l0(t.stateNode,r,2),t=Na(t,r,2),t!==null&&(ze(t,2),ao(t))}function $t(t,r,o){if(ql=!1,t.tag===3)gO(t,t,o);else{for(;r!==null;){if(r.tag===3){gO(r,t,o);return}if(r.tag===1){var s=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Za===null||!Za.has(s))){t=zr(o,t),o=c0(2),s=Na(r,o,2),s!==null&&(f0(o,s,r,t),ze(s,2),ao(s));return}}r=r.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
200
-
201
- Error message:
202
-
203
- %s`,o)}}function B0(t,r,o){var s=t.pingCache;if(s===null){s=t.pingCache=new Wk;var c=new Set;s.set(r,c)}else c=s.get(r),c===void 0&&(c=new Set,s.set(r,c));c.has(o)||(oA=!0,c.add(o),s=zP.bind(null,t,r,o),_i&&uf(t,o),r.then(s,s))}function zP(t,r,o){var s=t.pingCache;s!==null&&s.delete(r),t.pingedLanes|=t.suspendedLanes&o,t.warmLanes&=~o,eO()&&Fe.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
204
-
205
- When testing, code that resolves suspended data should be wrapped into act(...):
206
-
207
- act(() => {
208
- /* finish loading suspended data */
209
- });
210
- /* assert on the output */
211
-
212
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),zt===t&&(Et&o)===o&&(rn===nu||rn===nA&&(Et&62914560)===Et&&lo()-sA<sN?(_t&yr)===Xr&&rl(t,0):aA|=o,ou===Et&&(ou=0)),ao(t)}function yO(t,r){r===0&&(r=xe()),t=Cr(t,r),t!==null&&(ze(t,r),ao(t))}function VP(t){var r=t.memoizedState,o=0;r!==null&&(o=r.retryLane),yO(t,o)}function GP(t,r){var o=0;switch(t.tag){case 13:var s=t.stateNode,c=t.memoizedState;c!==null&&(o=c.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}s!==null&&s.delete(r),yO(t,o)}function U0(t,r,o){if((r.subtreeFlags&67117056)!==0)for(r=r.child;r!==null;){var s=t,c=r,d=c.type===Nh;d=o||d,c.tag!==22?c.flags&67108864?d&&et(c,bO,s,c,(c.mode&rF)===Yt):U0(s,c,d):c.memoizedState===null&&(d&&c.flags&8192?et(c,bO,s,c):c.subtreeFlags&67108864&&et(c,U0,s,c,d)),r=r.sibling}}function bO(t,r){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:!0;J(!0);try{VT(r),o&&JT(r),GT(t,r.alternate,r,!1),o&&YT(t,r,0,null,!1,0)}finally{J(!1)}}function AO(t){var r=!0;t.current.mode&(or|ji)||(r=!1),U0(t,t.current,r)}function vO(t){if((_t&yr)===Xr){var r=t.tag;if(r===3||r===1||r===0||r===11||r===14||r===15){if(r=O(t)||"ReactComponent",um!==null){if(um.has(r))return;um.add(r)}else um=new Set([r]);et(t,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")})}}}function uf(t,r){_i&&t.memoizedUpdaters.forEach(function(o){Le(t,o,r)})}function QP(t,r){var o=Fe.actQueue;return o!==null?(o.push(r),a5):db(t,r)}function YP(t){eO()&&Fe.actQueue===null&&et(t,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
213
-
214
- When testing, code that causes React state updates should be wrapped into act(...):
215
-
216
- act(() => {
217
- /* fire events that update state */
218
- });
219
- /* assert on the output */
220
-
221
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,O(t))})}function ao(t){t!==Hl&&t.next===null&&(Hl===null?lm=Hl=t:Hl=Hl.next=t),cm=!0,Fe.actQueue!==null?hA||(hA=!0,SO()):pA||(pA=!0,SO())}function lf(t,r){if(!mA&&cm){mA=!0;do for(var o=!1,s=lm;s!==null;){if(t!==0){var c=s.pendingLanes;if(c===0)var d=0;else{var x=s.suspendedLanes,T=s.pingedLanes;d=(1<<31-dr(42|t)+1)-1,d&=c&~(x&~T),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(o=!0,wO(s,d))}else d=Et,d=g(s,s===zt?d:0,s.cancelPendingCommit!==null||s.timeoutHandle!==cu),(d&3)===0||b(s,d)||(o=!0,wO(s,d));s=s.next}while(o);mA=!1}}function KP(){M0()}function M0(){cm=hA=pA=!1;var t=0;uu!==0&&(eL()&&(t=uu),uu=0);for(var r=lo(),o=null,s=lm;s!==null;){var c=s.next,d=xO(s,r);d===0?(s.next=null,o===null?lm=c:o.next=c,c===null&&(Hl=o)):(o=s,(t!==0||(d&3)!==0)&&(cm=!0)),s=c}lf(t)}function xO(t,r){for(var o=t.suspendedLanes,s=t.pingedLanes,c=t.expirationTimes,d=t.pendingLanes&-62914561;0<d;){var x=31-dr(d),T=1<<x,z=c[x];z===-1?((T&o)===0||(T&s)!==0)&&(c[x]=C(T,r)):z<=r&&(t.expiredLanes|=T),d&=~T}if(r=zt,o=Et,o=g(t,t===r?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==cu),s=t.callbackNode,o===0||t===r&&(jt===ru||jt===iu)||t.cancelPendingCommit!==null)return s!==null&&_0(s),t.callbackNode=null,t.callbackPriority=0;if((o&3)===0||b(t,o)){if(r=o&-o,r!==t.callbackPriority||Fe.actQueue!==null&&s!==gA)_0(s);else return r;switch(Ze(o)){case mi:case fo:o=hb;break;case zo:o=cl;break;case _h:o=mb;break;default:o=cl}return s=EO.bind(null,t),Fe.actQueue!==null?(Fe.actQueue.push(s),o=gA):o=db(o,s),t.callbackPriority=r,t.callbackNode=o,r}return s!==null&&_0(s),t.callbackPriority=2,t.callbackNode=null,2}function EO(t,r){if(Kh=Yh=!1,Yn!==au&&Yn!==uA)return t.callbackNode=null,t.callbackPriority=0,null;var o=t.callbackNode;if(sf()&&t.callbackNode!==o)return null;var s=Et;return s=g(t,t===zt?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==cu),s===0?null:(nO(t,s,r),xO(t,lo()),t.callbackNode!=null&&t.callbackNode===o?EO.bind(null,t):null)}function wO(t,r){if(sf())return null;Yh=Kh,Kh=!1,nO(t,r,!0)}function _0(t){t!==gA&&t!==null&&_L(t)}function SO(){Fe.actQueue!==null&&Fe.actQueue.push(function(){return M0(),null}),g5(function(){(_t&(yr|$i))!==Xr?db(pb,KP):M0()})}function j0(){return uu===0&&(uu=K()),uu}function IO(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:(me(t,"action"),Lc(""+t))}function CO(t,r){var o=r.ownerDocument.createElement("input");return o.name=r.name,o.value=r.value,t.id&&o.setAttribute("form",t.id),r.parentNode.insertBefore(o,r),t=new FormData(t),o.parentNode.removeChild(o),t}function XP(t,r,o,s,c){if(r==="submit"&&o&&o.stateNode===c){var d=IO((c[Rr]||null).action),x=s.submitter;x&&(r=(r=x[Rr]||null)?IO(r.formAction):x.getAttribute("formAction"),r!==null&&(d=r,x=null));var T=new $h("action","action",null,s,c);t.push({event:T,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(uu!==0){var z=x?CO(c,x):new FormData(c),Z={pending:!0,data:z,method:c.method,action:d};Object.freeze(Z),n0(o,Z,null,z)}}else typeof d=="function"&&(T.preventDefault(),z=x?CO(c,x):new FormData(c),Z={pending:!0,data:z,method:c.method,action:d},Object.freeze(Z),n0(o,Z,d,z))},currentTarget:c}]})}}function vh(t,r,o){t.currentTarget=o;try{r(t)}catch(s){Zb(s)}t.currentTarget=null}function TO(t,r){r=(r&4)!==0;for(var o=0;o<t.length;o++){var s=t[o];e:{var c=void 0,d=s.event;if(s=s.listeners,r)for(var x=s.length-1;0<=x;x--){var T=s[x],z=T.instance,Z=T.currentTarget;if(T=T.listener,z!==c&&d.isPropagationStopped())break e;z!==null?et(z,vh,d,T,Z):vh(d,T,Z),c=z}else for(x=0;x<s.length;x++){if(T=s[x],z=T.instance,Z=T.currentTarget,T=T.listener,z!==c&&d.isPropagationStopped())break e;z!==null?et(z,vh,d,T,Z):vh(d,T,Z),c=z}}}}function St(t,r){yA.has(t)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',t);var o=r[gb];o===void 0&&(o=r[gb]=new Set);var s=t+"__bubble";o.has(s)||(OO(r,t,2,!1),o.add(s))}function P0(t,r,o){yA.has(t)&&!r&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',t);var s=0;r&&(s|=4),OO(o,t,s,r)}function L0(t){if(!t[fm]){t[fm]=!0,fR.forEach(function(o){o!=="selectionchange"&&(yA.has(o)||P0(o,!1,t),P0(o,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[fm]||(r[fm]=!0,P0("selectionchange",!1,r))}}function OO(t,r,o,s){switch(rR(r)){case mi:var c=CL;break;case fo:c=TL;break;default:c=eb}o=c.bind(null,r,o,t),c=void 0,!Sb||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(c=!0),s?c!==void 0?t.addEventListener(r,o,{capture:!0,passive:c}):t.addEventListener(r,o,!0):c!==void 0?t.addEventListener(r,o,{passive:c}):t.addEventListener(r,o,!1)}function k0(t,r,o,s,c){var d=s;if((r&1)===0&&(r&2)===0&&s!==null)e:for(;;){if(s===null)return;var x=s.tag;if(x===3||x===4){var T=s.stateNode.containerInfo;if(T===c)break;if(x===4)for(x=s.return;x!==null;){var z=x.tag;if((z===3||z===4)&&x.stateNode.containerInfo===c)return;x=x.return}for(;T!==null;){if(x=ut(T),x===null)return;if(z=x.tag,z===5||z===6||z===26||z===27){s=d=x;continue e}T=T.parentNode}}s=s.return}eC(function(){var Z=d,Se=dy(o),Ne=[];e:{var we=nF.get(t);if(we!==void 0){var De=$h,Je=t;switch(t){case"keypress":if(_p(o)===0)break e;case"keydown":case"keyup":De=wk;break;case"focusin":Je="focus",De=Ob;break;case"focusout":Je="blur",De=Ob;break;case"beforeblur":case"afterblur":De=Ob;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":De=qR;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":De=fk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":De=Ck;break;case JR:case WR:case eF:De=hk;break;case tF:De=Ok;break;case"scroll":case"scrollend":De=lk;break;case"wheel":De=Fk;break;case"copy":case"cut":case"paste":De=gk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":De=zR;break;case"toggle":case"beforetoggle":De=Dk}var lt=(r&4)!==0,Vt=!lt&&(t==="scroll"||t==="scrollend"),It=lt?we!==null?we+"Capture":null:we;lt=[];for(var ae=Z,se;ae!==null;){var ye=ae;if(se=ye.stateNode,ye=ye.tag,ye!==5&&ye!==26&&ye!==27||se===null||It===null||(ye=kc(ae,It),ye!=null&&lt.push(cf(ae,ye,se))),Vt)break;ae=ae.return}0<lt.length&&(we=new De(we,Je,null,o,Se),Ne.push({event:we,listeners:lt}))}}if((r&7)===0){e:{if(we=t==="mouseover"||t==="pointerover",De=t==="mouseout"||t==="pointerout",we&&o!==vf&&(Je=o.relatedTarget||o.fromElement)&&(ut(Je)||Je[qa]))break e;if((De||we)&&(we=Se.window===Se?Se:(we=Se.ownerDocument)?we.defaultView||we.parentWindow:window,De?(Je=o.relatedTarget||o.toElement,De=Z,Je=Je?ut(Je):null,Je!==null&&(Vt=N(Je),lt=Je.tag,Je!==Vt||lt!==5&&lt!==27&&lt!==6)&&(Je=null)):(De=null,Je=Z),De!==Je)){if(lt=qR,ye="onMouseLeave",It="onMouseEnter",ae="mouse",(t==="pointerout"||t==="pointerover")&&(lt=zR,ye="onPointerLeave",It="onPointerEnter",ae="pointer"),Vt=De==null?we:wt(De),se=Je==null?we:wt(Je),we=new lt(ye,ae+"leave",De,o,Se),we.target=Vt,we.relatedTarget=se,ye=null,ut(Se)===Z&&(lt=new lt(It,ae+"enter",Je,o,Se),lt.target=se,lt.relatedTarget=Vt,ye=lt),Vt=ye,De&&Je)t:{for(lt=De,It=Je,ae=0,se=lt;se;se=ol(se))ae++;for(se=0,ye=It;ye;ye=ol(ye))se++;for(;0<ae-se;)lt=ol(lt),ae--;for(;0<se-ae;)It=ol(It),se--;for(;ae--;){if(lt===It||It!==null&&lt===It.alternate)break t;lt=ol(lt),It=ol(It)}lt=null}else lt=null;De!==null&&RO(Ne,we,De,lt,!1),Je!==null&&Vt!==null&&RO(Ne,Vt,Je,lt,!0)}}e:{if(we=Z?wt(Z):window,De=we.nodeName&&we.nodeName.toLowerCase(),De==="select"||De==="input"&&we.type==="file")var Be=sC;else if(oC(we))if(XR)Be=gP;else{Be=hP;var qe=pP}else De=we.nodeName,!De||De.toLowerCase()!=="input"||we.type!=="checkbox"&&we.type!=="radio"?Z&&Pc(Z.elementType)&&(Be=sC):Be=mP;if(Be&&(Be=Be(t,Z))){aC(Ne,Be,o,Se);break e}qe&&qe(t,we,Z),t==="focusout"&&Z&&we.type==="number"&&Z.memoizedProps.value!=null&&Oa(we,"number",we.value)}switch(qe=Z?wt(Z):window,t){case"focusin":(oC(qe)||qe.contentEditable==="true")&&(bl=qe,Fb=Z,Tf=null);break;case"focusout":Tf=Fb=bl=null;break;case"mousedown":Nb=!0;break;case"contextmenu":case"mouseup":case"dragend":Nb=!1,hC(Ne,o,Se);break;case"selectionchange":if(_k)break;case"keydown":case"keyup":hC(Ne,o,Se)}var dt;if(Rb)e:{switch(t){case"compositionstart":var We="onCompositionStart";break e;case"compositionend":We="onCompositionEnd";break e;case"compositionupdate":We="onCompositionUpdate";break e}We=void 0}else yl?rC(t,o)&&(We="onCompositionEnd"):t==="keydown"&&o.keyCode===VR&&(We="onCompositionStart");We&&(GR&&o.locale!=="ko"&&(yl||We!=="onCompositionStart"?We==="onCompositionEnd"&&yl&&(dt=tC()):(Ha=Se,Ib="value"in Ha?Ha.value:Ha.textContent,yl=!0)),qe=xh(Z,We),0<qe.length&&(We=new HR(We,t,null,o,Se),Ne.push({event:We,listeners:qe}),dt?We.data=dt:(dt=iC(o),dt!==null&&(We.data=dt)))),(dt=Uk?lP(t,o):cP(t,o))&&(We=xh(Z,"onBeforeInput"),0<We.length&&(qe=new bk("onBeforeInput","beforeinput",null,o,Se),Ne.push({event:qe,listeners:We}),qe.data=dt)),XP(Ne,t,Z,o,Se)}TO(Ne,r)})}function cf(t,r,o){return{instance:t,listener:r,currentTarget:o}}function xh(t,r){for(var o=r+"Capture",s=[];t!==null;){var c=t,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=kc(t,o),c!=null&&s.unshift(cf(t,c,d)),c=kc(t,r),c!=null&&s.push(cf(t,c,d))),t.tag===3)return s;t=t.return}return[]}function ol(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function RO(t,r,o,s,c){for(var d=r._reactName,x=[];o!==null&&o!==s;){var T=o,z=T.alternate,Z=T.stateNode;if(T=T.tag,z!==null&&z===s)break;T!==5&&T!==26&&T!==27||Z===null||(z=Z,c?(Z=kc(o,d),Z!=null&&x.unshift(cf(o,Z,z))):c||(Z=kc(o,d),Z!=null&&x.push(cf(o,Z,z)))),o=o.return}x.length!==0&&t.push({event:r,listeners:x})}function $0(t,r){oP(t,r),t!=="input"&&t!=="textarea"&&t!=="select"||r==null||r.value!==null||kR||(kR=!0,t==="select"&&r.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",t):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",t));var o={registrationNameDependencies:Qs,possibleRegistrationNames:yb};Pc(t)||typeof r.is=="string"||sP(t,r,o),r.contentEditable&&!r.suppressContentEditableWarning&&r.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function On(t,r,o,s){r!==o&&(o=_a(o),_a(r)!==o&&(s[t]=r))}function ZP(t,r,o){r.forEach(function(s){o[DO(s)]=s==="style"?H0(t):t.getAttribute(s)})}function so(t,r){r===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",t,t,t):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",t,typeof r)}function FO(t,r){return t=t.namespaceURI===Ph||t.namespaceURI===pl?t.ownerDocument.createElementNS(t.namespaceURI,t.tagName):t.ownerDocument.createElement(t.tagName),t.innerHTML=r,t.innerHTML}function _a(t){return j(t)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",te(t)),ue(t)),(typeof t=="string"?t:""+t).replace(s5,`
222
- `).replace(u5,"")}function NO(t,r){return r=_a(r),_a(t)===r}function Eh(){}function qt(t,r,o,s,c,d){switch(o){case"children":typeof s=="string"?(Mp(s,r,!1),r==="body"||r==="textarea"&&s===""||jc(t,s)):(typeof s=="number"||typeof s=="bigint")&&(Mp(""+s,r,!1),r!=="body"&&jc(t,""+s));break;case"className":rt(t,"class",s);break;case"tabIndex":rt(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":rt(t,o,s);break;case"style":ZI(t,s,d);break;case"data":if(r!=="object"){rt(t,"data",s);break}case"src":case"href":if(s===""&&(r!=="a"||o!=="href")){console.error(o==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',o,o),t.removeAttribute(o);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(o);break}me(s,o),s=Lc(""+s),t.setAttribute(o,s);break;case"action":case"formAction":if(s!=null&&(r==="form"?o==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof s=="function"&&(c.encType==null&&c.method==null||hm||(hm=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),c.target==null||pm||(pm=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):r==="input"||r==="button"?o==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):r!=="input"||c.type==="submit"||c.type==="image"||dm?r!=="button"||c.type==null||c.type==="submit"||dm?typeof s=="function"&&(c.name==null||yN||(yN=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),c.formEncType==null&&c.formMethod==null||hm||(hm=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),c.formTarget==null||pm||(pm=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(dm=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(dm=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(o==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof s=="function"){t.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(o==="formAction"?(r!=="input"&&qt(t,r,"name",c.name,c,null),qt(t,r,"formEncType",c.formEncType,c,null),qt(t,r,"formMethod",c.formMethod,c,null),qt(t,r,"formTarget",c.formTarget,c,null)):(qt(t,r,"encType",c.encType,c,null),qt(t,r,"method",c.method,c,null),qt(t,r,"target",c.target,c,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(o);break}me(s,o),s=Lc(""+s),t.setAttribute(o,s);break;case"onClick":s!=null&&(typeof s!="function"&&so(o,s),t.onclick=Eh);break;case"onScroll":s!=null&&(typeof s!="function"&&so(o,s),St("scroll",t));break;case"onScrollEnd":s!=null&&(typeof s!="function"&&so(o,s),St("scrollend",t));break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(o=s.__html,o!=null){if(c.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");t.innerHTML=o}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}me(s,o),o=Lc(""+s),t.setAttributeNS(lu,"xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?(me(s,o),t.setAttribute(o,""+s)):t.removeAttribute(o);break;case"inert":s!==""||mm[o]||(mm[o]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",o));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":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(o,""):t.removeAttribute(o);break;case"capture":case"download":s===!0?t.setAttribute(o,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?(me(s,o),t.setAttribute(o,s)):t.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?(me(s,o),t.setAttribute(o,s)):t.removeAttribute(o);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(o):(me(s,o),t.setAttribute(o,s));break;case"popover":St("beforetoggle",t),St("toggle",t),st(t,"popover",s);break;case"xlinkActuate":At(t,lu,"xlink:actuate",s);break;case"xlinkArcrole":At(t,lu,"xlink:arcrole",s);break;case"xlinkRole":At(t,lu,"xlink:role",s);break;case"xlinkShow":At(t,lu,"xlink:show",s);break;case"xlinkTitle":At(t,lu,"xlink:title",s);break;case"xlinkType":At(t,lu,"xlink:type",s);break;case"xmlBase":At(t,bA,"xml:base",s);break;case"xmlLang":At(t,bA,"xml:lang",s);break;case"xmlSpace":At(t,bA,"xml:space",s);break;case"is":d!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),st(t,"is",s);break;case"innerText":case"textContent":break;case"popoverTarget":bN||s==null||typeof s!="object"||(bN=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",s));default:!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N"?(o=JI(o),st(t,o,s)):Qs.hasOwnProperty(o)&&s!=null&&typeof s!="function"&&so(o,s)}}function q0(t,r,o,s,c,d){switch(o){case"style":ZI(t,s,d);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(o=s.__html,o!=null){if(c.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");t.innerHTML=o}}break;case"children":typeof s=="string"?jc(t,s):(typeof s=="number"||typeof s=="bigint")&&jc(t,""+s);break;case"onScroll":s!=null&&(typeof s!="function"&&so(o,s),St("scroll",t));break;case"onScrollEnd":s!=null&&(typeof s!="function"&&so(o,s),St("scrollend",t));break;case"onClick":s!=null&&(typeof s!="function"&&so(o,s),t.onclick=Eh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Qs.hasOwnProperty(o))s!=null&&typeof s!="function"&&so(o,s);else e:{if(o[0]==="o"&&o[1]==="n"&&(c=o.endsWith("Capture"),r=o.slice(2,c?o.length-7:void 0),d=t[Rr]||null,d=d!=null?d[o]:null,typeof d=="function"&&t.removeEventListener(r,d,c),typeof s=="function")){typeof d!="function"&&d!==null&&(o in t?t[o]=null:t.hasAttribute(o)&&t.removeAttribute(o)),t.addEventListener(r,s,c);break e}o in t?t[o]=s:s===!0?t.setAttribute(o,""):st(t,o,s)}}}function zn(t,r,o){switch($0(r,o),r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":St("error",t),St("load",t);var s=!1,c=!1,d;for(d in o)if(o.hasOwnProperty(d)){var x=o[d];if(x!=null)switch(d){case"src":s=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:qt(t,r,d,x,o,null)}}c&&qt(t,r,"srcSet",o.srcSet,o,null),s&&qt(t,r,"src",o.src,o,null);return;case"input":He("input",o),St("invalid",t);var T=d=x=c=null,z=null,Z=null;for(s in o)if(o.hasOwnProperty(s)){var Se=o[s];if(Se!=null)switch(s){case"name":c=Se;break;case"type":x=Se;break;case"checked":z=Se;break;case"defaultChecked":Z=Se;break;case"value":d=Se;break;case"defaultValue":T=Se;break;case"children":case"dangerouslySetInnerHTML":if(Se!=null)throw Error(r+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:qt(t,r,s,Se,o,null)}}Ts(t,o),Os(t,d,T,z,Z,x,c,!1),No(t);return;case"select":He("select",o),St("invalid",t),s=x=d=null;for(c in o)if(o.hasOwnProperty(c)&&(T=o[c],T!=null))switch(c){case"value":d=T;break;case"defaultValue":x=T;break;case"multiple":s=T;default:qt(t,r,c,T,o,null)}LI(t,o),r=d,o=x,t.multiple=!!s,r!=null?Bi(t,!!s,r,!1):o!=null&&Bi(t,!!s,o,!0);return;case"textarea":He("textarea",o),St("invalid",t),d=c=s=null;for(x in o)if(o.hasOwnProperty(x)&&(T=o[x],T!=null))switch(x){case"value":s=T;break;case"defaultValue":c=T;break;case"children":d=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:qt(t,r,x,T,o,null)}kI(t,o),qI(t,s,c,d),No(t);return;case"option":Rs(t,o);for(z in o)if(o.hasOwnProperty(z)&&(s=o[z],s!=null))switch(z){case"selected":t.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:qt(t,r,z,s,o,null)}return;case"dialog":St("beforetoggle",t),St("toggle",t),St("cancel",t),St("close",t);break;case"iframe":case"object":St("load",t);break;case"video":case"audio":for(s=0;s<Zf.length;s++)St(Zf[s],t);break;case"image":St("error",t),St("load",t);break;case"details":St("toggle",t);break;case"embed":case"source":case"link":St("error",t),St("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Z in o)if(o.hasOwnProperty(Z)&&(s=o[Z],s!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":throw Error(r+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:qt(t,r,Z,s,o,null)}return;default:if(Pc(r)){for(Se in o)o.hasOwnProperty(Se)&&(s=o[Se],s!==void 0&&q0(t,r,Se,s,o,void 0));return}}for(T in o)o.hasOwnProperty(T)&&(s=o[T],s!=null&&qt(t,r,T,s,o,null))}function JP(t,r,o,s){switch($0(r,s),r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,x=null,T=null,z=null,Z=null,Se=null;for(De in o){var Ne=o[De];if(o.hasOwnProperty(De)&&Ne!=null)switch(De){case"checked":break;case"value":break;case"defaultValue":z=Ne;default:s.hasOwnProperty(De)||qt(t,r,De,null,s,Ne)}}for(var we in s){var De=s[we];if(Ne=o[we],s.hasOwnProperty(we)&&(De!=null||Ne!=null))switch(we){case"type":d=De;break;case"name":c=De;break;case"checked":Z=De;break;case"defaultChecked":Se=De;break;case"value":x=De;break;case"defaultValue":T=De;break;case"children":case"dangerouslySetInnerHTML":if(De!=null)throw Error(r+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:De!==Ne&&qt(t,r,we,De,s,Ne)}}r=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,s=s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null,r||!s||gN||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),gN=!0),!r||s||mN||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),mN=!0),Ta(t,x,T,z,Z,Se,d,c);return;case"select":De=x=T=we=null;for(d in o)if(z=o[d],o.hasOwnProperty(d)&&z!=null)switch(d){case"value":break;case"multiple":De=z;default:s.hasOwnProperty(d)||qt(t,r,d,null,s,z)}for(c in s)if(d=s[c],z=o[c],s.hasOwnProperty(c)&&(d!=null||z!=null))switch(c){case"value":we=d;break;case"defaultValue":T=d;break;case"multiple":x=d;default:d!==z&&qt(t,r,c,d,s,z)}s=T,r=x,o=De,we!=null?Bi(t,!!r,we,!1):!!o!=!!r&&(s!=null?Bi(t,!!r,s,!0):Bi(t,!!r,r?[]:"",!1));return;case"textarea":De=we=null;for(T in o)if(c=o[T],o.hasOwnProperty(T)&&c!=null&&!s.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:qt(t,r,T,null,s,c)}for(x in s)if(c=s[x],d=o[x],s.hasOwnProperty(x)&&(c!=null||d!=null))switch(x){case"value":we=c;break;case"defaultValue":De=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:c!==d&&qt(t,r,x,c,s,d)}$I(t,we,De);return;case"option":for(var Je in o)if(we=o[Je],o.hasOwnProperty(Je)&&we!=null&&!s.hasOwnProperty(Je))switch(Je){case"selected":t.selected=!1;break;default:qt(t,r,Je,null,s,we)}for(z in s)if(we=s[z],De=o[z],s.hasOwnProperty(z)&&we!==De&&(we!=null||De!=null))switch(z){case"selected":t.selected=we&&typeof we!="function"&&typeof we!="symbol";break;default:qt(t,r,z,we,s,De)}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 lt in o)we=o[lt],o.hasOwnProperty(lt)&&we!=null&&!s.hasOwnProperty(lt)&&qt(t,r,lt,null,s,we);for(Z in s)if(we=s[Z],De=o[Z],s.hasOwnProperty(Z)&&we!==De&&(we!=null||De!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(r+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:qt(t,r,Z,we,s,De)}return;default:if(Pc(r)){for(var Vt in o)we=o[Vt],o.hasOwnProperty(Vt)&&we!==void 0&&!s.hasOwnProperty(Vt)&&q0(t,r,Vt,void 0,s,we);for(Se in s)we=s[Se],De=o[Se],!s.hasOwnProperty(Se)||we===De||we===void 0&&De===void 0||q0(t,r,Se,we,s,De);return}}for(var It in o)we=o[It],o.hasOwnProperty(It)&&we!=null&&!s.hasOwnProperty(It)&&qt(t,r,It,null,s,we);for(Ne in s)we=s[Ne],De=o[Ne],!s.hasOwnProperty(Ne)||we===De||we==null&&De==null||qt(t,r,Ne,we,s,De)}function DO(t){switch(t){case"class":return"className";case"for":return"htmlFor";default:return t}}function H0(t){var r={};t=t.style;for(var o=0;o<t.length;o++){var s=t[o];r[s]=t.getPropertyValue(s)}return r}function BO(t,r,o){if(r!=null&&typeof r!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var s,c=s="",d;for(d in r)if(r.hasOwnProperty(d)){var x=r[d];x!=null&&typeof x!="boolean"&&x!==""&&(d.indexOf("--")===0?(ne(x,d),s+=c+d+":"+(""+x).trim()):typeof x!="number"||x===0||PR.has(d)?(ne(x,d),s+=c+d.replace(BR,"-$1").toLowerCase().replace(UR,"-ms-")+":"+(""+x).trim()):s+=c+d.replace(BR,"-$1").toLowerCase().replace(UR,"-ms-")+":"+x+"px",c=";")}s=s||null,r=t.getAttribute("style"),r!==s&&(s=_a(s),_a(r)!==s&&(o.style=H0(t)))}}function pi(t,r,o,s,c,d){if(c.delete(o),t=t.getAttribute(o),t===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(me(s,r),t===""+s)return}On(r,t,s,d)}function UO(t,r,o,s,c,d){if(c.delete(o),t=t.getAttribute(o),t===null){switch(typeof s){case"function":case"symbol":return}if(!s)return}else switch(typeof s){case"function":case"symbol":break;default:if(s)return}On(r,t,s,d)}function z0(t,r,o,s,c,d){if(c.delete(o),t=t.getAttribute(o),t===null)switch(typeof s){case"undefined":case"function":case"symbol":return}else if(s!=null)switch(typeof s){case"function":case"symbol":break;default:if(me(s,o),t===""+s)return}On(r,t,s,d)}function MO(t,r,o,s,c,d){if(c.delete(o),t=t.getAttribute(o),t===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(s))return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(!isNaN(s)&&(me(s,r),t===""+s))return}On(r,t,s,d)}function V0(t,r,o,s,c,d){if(c.delete(o),t=t.getAttribute(o),t===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(me(s,r),o=Lc(""+s),t===o)return}On(r,t,s,d)}function _O(t,r,o,s){for(var c={},d=new Set,x=t.attributes,T=0;T<x.length;T++)switch(x[T].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:d.add(x[T].name)}if(Pc(r)){for(var z in o)if(o.hasOwnProperty(z)){var Z=o[z];if(Z!=null){if(Qs.hasOwnProperty(z))typeof Z!="function"&&so(z,Z);else if(o.suppressHydrationWarning!==!0)switch(z){case"children":typeof Z!="string"&&typeof Z!="number"||On("children",t.textContent,Z,c);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":x=t.innerHTML,Z=Z?Z.__html:void 0,Z!=null&&(Z=FO(t,Z),On(z,x,Z,c));continue;case"style":d.delete(z),BO(t,Z,c);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":d.delete(z.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",z);continue;case"className":d.delete("class"),x=nt(t,"class",Z),On("className",x,Z,c);continue;default:s.context===ea&&r!=="svg"&&r!=="math"?d.delete(z.toLowerCase()):d.delete(z),x=nt(t,z,Z),On(z,x,Z,c)}}}}else for(Z in o)if(o.hasOwnProperty(Z)&&(z=o[Z],z!=null)){if(Qs.hasOwnProperty(Z))typeof z!="function"&&so(Z,z);else if(o.suppressHydrationWarning!==!0)switch(Z){case"children":typeof z!="string"&&typeof z!="number"||On("children",t.textContent,z,c);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":x=t.innerHTML,z=z?z.__html:void 0,z!=null&&(z=FO(t,z),x!==z&&(c[Z]={__html:x}));continue;case"className":pi(t,Z,"class",z,d,c);continue;case"tabIndex":pi(t,Z,"tabindex",z,d,c);continue;case"style":d.delete(Z),BO(t,z,c);continue;case"multiple":d.delete(Z),On(Z,t.multiple,z,c);continue;case"muted":d.delete(Z),On(Z,t.muted,z,c);continue;case"autoFocus":d.delete("autofocus"),On(Z,t.autofocus,z,c);continue;case"data":if(r!=="object"){d.delete(Z),x=t.getAttribute("data"),On(Z,x,z,c);continue}case"src":case"href":if(!(z!==""||r==="a"&&Z==="href"||r==="object"&&Z==="data")){console.error(Z==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',Z,Z);continue}V0(t,Z,Z,z,d,c);continue;case"action":case"formAction":if(x=t.getAttribute(Z),typeof z=="function"){d.delete(Z.toLowerCase()),Z==="formAction"?(d.delete("name"),d.delete("formenctype"),d.delete("formmethod"),d.delete("formtarget")):(d.delete("enctype"),d.delete("method"),d.delete("target"));continue}else if(x===l5){d.delete(Z.toLowerCase()),On(Z,"function",z,c);continue}V0(t,Z,Z.toLowerCase(),z,d,c);continue;case"xlinkHref":V0(t,Z,"xlink:href",z,d,c);continue;case"contentEditable":z0(t,Z,"contenteditable",z,d,c);continue;case"spellCheck":z0(t,Z,"spellcheck",z,d,c);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":z0(t,Z,Z,z,d,c);continue;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":UO(t,Z,Z.toLowerCase(),z,d,c);continue;case"capture":case"download":e:{T=t;var Se=x=Z,Ne=c;if(d.delete(Se),T=T.getAttribute(Se),T===null)switch(typeof z){case"undefined":case"function":case"symbol":break e;default:if(z===!1)break e}else if(z!=null)switch(typeof z){case"function":case"symbol":break;case"boolean":if(z===!0&&T==="")break e;break;default:if(me(z,x),T===""+z)break e}On(x,T,z,Ne)}continue;case"cols":case"rows":case"size":case"span":e:{if(T=t,Se=x=Z,Ne=c,d.delete(Se),T=T.getAttribute(Se),T===null)switch(typeof z){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(z)||1>z)break e}else if(z!=null)switch(typeof z){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(z)||1>z)&&(me(z,x),T===""+z))break e}On(x,T,z,Ne)}continue;case"rowSpan":MO(t,Z,"rowspan",z,d,c);continue;case"start":MO(t,Z,Z,z,d,c);continue;case"xHeight":pi(t,Z,"x-height",z,d,c);continue;case"xlinkActuate":pi(t,Z,"xlink:actuate",z,d,c);continue;case"xlinkArcrole":pi(t,Z,"xlink:arcrole",z,d,c);continue;case"xlinkRole":pi(t,Z,"xlink:role",z,d,c);continue;case"xlinkShow":pi(t,Z,"xlink:show",z,d,c);continue;case"xlinkTitle":pi(t,Z,"xlink:title",z,d,c);continue;case"xlinkType":pi(t,Z,"xlink:type",z,d,c);continue;case"xmlBase":pi(t,Z,"xml:base",z,d,c);continue;case"xmlLang":pi(t,Z,"xml:lang",z,d,c);continue;case"xmlSpace":pi(t,Z,"xml:space",z,d,c);continue;case"inert":z!==""||mm[Z]||(mm[Z]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",Z)),UO(t,Z,Z,z,d,c);continue;default:if(!(2<Z.length)||Z[0]!=="o"&&Z[0]!=="O"||Z[1]!=="n"&&Z[1]!=="N"){T=JI(Z),x=!1,s.context===ea&&r!=="svg"&&r!=="math"?d.delete(T.toLowerCase()):(Se=Z.toLowerCase(),Se=Lh.hasOwnProperty(Se)&&Lh[Se]||null,Se!==null&&Se!==Z&&(x=!0,d.delete(Se)),d.delete(T));e:if(Se=t,Ne=T,T=z,it(Ne))if(Se.hasAttribute(Ne))Se=Se.getAttribute(Ne),me(T,Ne),T=Se===""+T?T:Se;else{switch(typeof T){case"function":case"symbol":break e;case"boolean":if(Se=Ne.toLowerCase().slice(0,5),Se!=="data-"&&Se!=="aria-")break e}T=T===void 0?void 0:null}else T=void 0;x||On(Z,T,z,c)}}}return 0<d.size&&o.suppressHydrationWarning!==!0&&ZP(t,d,c),Object.keys(c).length===0?null:c}function WP(t,r){switch(t.length){case 0:return"";case 1:return t[0];case 2:return t[0]+" "+r+" "+t[1];default:return t.slice(0,-1).join(", ")+", "+r+" "+t[t.length-1]}}function wh(t){return t.nodeType===9?t:t.ownerDocument}function jO(t){switch(t){case pl:return zl;case Ph:return bm;default:return ea}}function PO(t,r){if(t===ea)switch(r){case"svg":return zl;case"math":return bm;default:return ea}return t===zl&&r==="foreignObject"?ea:t}function G0(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}function eL(){var t=window.event;return t&&t.type==="popstate"?t===EA?!1:(EA=t,!0):(EA=null,!1)}function tL(t){setTimeout(function(){throw t})}function nL(t,r,o){switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&t.focus();break;case"img":o.src?t.src=o.src:o.srcSet&&(t.srcset=o.srcSet)}}function rL(t,r,o,s){JP(t,r,o,s),t[Rr]=s}function LO(t){jc(t,"")}function iL(t,r,o){t.nodeValue=o}function ja(t){return t==="head"}function oL(t,r){t.removeChild(r)}function aL(t,r){(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t).removeChild(r)}function kO(t,r){var o=r,s=0,c=0;do{var d=o.nextSibling;if(t.removeChild(o),d&&d.nodeType===8)if(o=d.data,o===ym){if(0<s&&8>s){o=s;var x=t.ownerDocument;if(o&f5&&ff(x.documentElement),o&d5&&ff(x.body),o&p5)for(o=x.head,ff(o),x=o.firstChild;x;){var T=x.nextSibling,z=x.nodeName;x[bf]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&x.rel.toLowerCase()==="stylesheet"||o.removeChild(x),x=T}}if(c===0){t.removeChild(d),mf(r);return}c--}else o===gm||o===Wo||o===Jf?c++:s=o.charCodeAt(0)-48;else s=0;o=d}while(o);mf(r)}function sL(t){t=t.style,typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function uL(t){t.nodeValue=""}function lL(t,r){r=r[h5],r=r!=null&&r.hasOwnProperty("display")?r.display:null,t.style.display=r==null||typeof r=="boolean"?"":(""+r).trim()}function cL(t,r){t.nodeValue=r}function Q0(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var o=r;switch(r=r.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Q0(o),ct(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}t.removeChild(o)}}function fL(t,r,o,s){for(;t.nodeType===1;){var c=o;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[bf])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(d=t.getAttribute("rel"),d==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(d!==c.rel||t.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||t.getAttribute("title")!==(c.title==null?null:c.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(d=t.getAttribute("src"),(d!==(c.src==null?null:c.src)||t.getAttribute("type")!==(c.type==null?null:c.type)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){me(c.name,"name");var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&t.getAttribute("name")===d)return t}else return t;if(t=hi(t.nextSibling),t===null)break}return null}function dL(t,r,o){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!o||(t=hi(t.nextSibling),t===null))return null;return t}function Y0(t){return t.data===Jf||t.data===Wo&&t.ownerDocument.readyState===vN}function pL(t,r){var o=t.ownerDocument;if(t.data!==Wo||o.readyState===vN)r();else{var s=function(){r(),o.removeEventListener("DOMContentLoaded",s)};o.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function hi(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r===gm||r===Jf||r===Wo||r===AA||r===AN)break;if(r===ym)return null}}return t}function $O(t){if(t.nodeType===1){for(var r=t.nodeName.toLowerCase(),o={},s=t.attributes,c=0;c<s.length;c++){var d=s[c];o[DO(d.name)]=d.name.toLowerCase()==="style"?H0(t):d.value}return{type:r,props:o}}return t.nodeType===8?{type:"Suspense",props:{}}:t.nodeValue}function qO(t,r,o){return o===null||o[c5]!==!0?(t.nodeValue===r?t=null:(r=_a(r),t=_a(t.nodeValue)===r?null:t.nodeValue),t):null}function HO(t){t=t.nextSibling;for(var r=0;t;){if(t.nodeType===8){var o=t.data;if(o===ym){if(r===0)return hi(t.nextSibling);r--}else o!==gm&&o!==Jf&&o!==Wo||r++}t=t.nextSibling}return null}function zO(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var o=t.data;if(o===gm||o===Jf||o===Wo){if(r===0)return t;r--}else o===ym&&r++}t=t.previousSibling}return null}function hL(t){mf(t)}function mL(t){mf(t)}function VO(t,r,o,s,c){switch(c&&fy(t,s.ancestorInfo),r=wh(o),t){case"html":if(t=r.documentElement,!t)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return t;case"head":if(t=r.head,!t)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return t;case"body":if(t=r.body,!t)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return t;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function gL(t,r,o,s){if(!o[qa]&&bt(o)){var c=o.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",c,c,c)}switch(t){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(c=o.attributes;c.length;)o.removeAttributeNode(c[0]);zn(o,t,r),o[ir]=s,o[Rr]=r}function ff(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);ct(t)}function Sh(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}function GO(t,r,o){var s=Vl;if(s&&typeof r=="string"&&r){var c=$n(r);c='link[rel="'+t+'"][href="'+c+'"]',typeof o=="string"&&(c+='[crossorigin="'+o+'"]'),CN.has(c)||(CN.add(c),t={rel:t,crossOrigin:o,href:r},s.querySelector(c)===null&&(r=s.createElement("link"),zn(r,"link",t),he(r),s.head.appendChild(r)))}}function QO(t,r,o,s){var c=(c=ka.current)?Sh(c):null;if(!c)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(t){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(o=al(o.href),r=_(c).hoistableStyles,s=r.get(o),s||(s={type:"style",instance:null,count:0,state:null},r.set(o,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){t=al(o.href);var d=_(c).hoistableStyles,x=d.get(t);if(!x&&(c=c.ownerDocument||c,x={type:"stylesheet",instance:null,count:0,state:{loading:fu,preload:null}},d.set(t,x),(d=c.querySelector(df(t)))&&!d._p&&(x.instance=d,x.state.loading=Wf|Ii),!Ci.has(t))){var T={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy};Ci.set(t,T),d||yL(c,t,T,x.state)}if(r&&s===null)throw o=`
223
-
224
- - `+Ih(r)+`
225
- + `+Ih(o),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+o);return x}if(r&&s!==null)throw o=`
226
-
227
- - `+Ih(r)+`
228
- + `+Ih(o),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+o);return null;case"script":return r=o.async,o=o.src,typeof o=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(o=sl(o),r=_(c).hoistableScripts,s=r.get(o),s||(s={type:"script",instance:null,count:0,state:null},r.set(o,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+t+'". this is a bug in React.')}}function Ih(t){var r=0,o="<link";return typeof t.rel=="string"?(r++,o+=' rel="'+t.rel+'"'):Ho.call(t,"rel")&&(r++,o+=' rel="'+(t.rel===null?"null":"invalid type "+typeof t.rel)+'"'),typeof t.href=="string"?(r++,o+=' href="'+t.href+'"'):Ho.call(t,"href")&&(r++,o+=' href="'+(t.href===null?"null":"invalid type "+typeof t.href)+'"'),typeof t.precedence=="string"?(r++,o+=' precedence="'+t.precedence+'"'):Ho.call(t,"precedence")&&(r++,o+=" precedence={"+(t.precedence===null?"null":"invalid type "+typeof t.precedence)+"}"),Object.getOwnPropertyNames(t).length>r&&(o+=" ..."),o+" />"}function al(t){return'href="'+$n(t)+'"'}function df(t){return'link[rel="stylesheet"]['+t+"]"}function YO(t){return yt({},t,{"data-precedence":t.precedence,precedence:null})}function yL(t,r,o,s){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?s.loading=Wf:(r=t.createElement("link"),s.preload=r,r.addEventListener("load",function(){return s.loading|=Wf}),r.addEventListener("error",function(){return s.loading|=SN}),zn(r,"link",o),he(r),t.head.appendChild(r))}function sl(t){return'[src="'+$n(t)+'"]'}function pf(t){return"script[async]"+t}function KO(t,r,o){if(r.count++,r.instance===null)switch(r.type){case"style":var s=t.querySelector('style[data-href~="'+$n(o.href)+'"]');if(s)return r.instance=s,he(s),s;var c=yt({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),he(s),zn(s,"style",c),Ch(s,o.precedence,t),r.instance=s;case"stylesheet":c=al(o.href);var d=t.querySelector(df(c));if(d)return r.state.loading|=Ii,r.instance=d,he(d),d;s=YO(o),(c=Ci.get(c))&&K0(s,c),d=(t.ownerDocument||t).createElement("link"),he(d);var x=d;return x._p=new Promise(function(T,z){x.onload=T,x.onerror=z}),zn(d,"link",s),r.state.loading|=Ii,Ch(d,o.precedence,t),r.instance=d;case"script":return d=sl(o.src),(c=t.querySelector(pf(d)))?(r.instance=c,he(c),c):(s=o,(c=Ci.get(d))&&(s=yt({},o),X0(s,c)),t=t.ownerDocument||t,c=t.createElement("script"),he(c),zn(c,"link",s),t.head.appendChild(c),r.instance=c);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+r.type+'". this is a bug in React.')}else r.type==="stylesheet"&&(r.state.loading&Ii)===fu&&(s=r.instance,r.state.loading|=Ii,Ch(s,o.precedence,t));return r.instance}function Ch(t,r,o){for(var s=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=s.length?s[s.length-1]:null,d=c,x=0;x<s.length;x++){var T=s[x];if(T.dataset.precedence===r)d=T;else if(d!==c)break}d?d.parentNode.insertBefore(t,d.nextSibling):(r=o.nodeType===9?o.head:o,r.insertBefore(t,r.firstChild))}function K0(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function X0(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}function XO(t,r,o){if(Am===null){var s=new Map,c=Am=new Map;c.set(o,s)}else c=Am,s=c.get(o),s||(s=new Map,c.set(o,s));if(s.has(t))return s;for(s.set(t,null),o=o.getElementsByTagName(t),c=0;c<o.length;c++){var d=o[c];if(!(d[bf]||d[ir]||t==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!==pl){var x=d.getAttribute(r)||"";x=t+x;var T=s.get(x);T?T.push(d):s.set(x,[d])}}return s}function ZO(t,r,o){t=t.ownerDocument||t,t.head.insertBefore(o,r==="title"?t.querySelector("head > title"):null)}function bL(t,r,o){var s=!o.ancestorInfo.containerTagInScope;if(o.context===zl||r.itemProp!=null)return!s||r.itemProp==null||t!=="meta"&&t!=="title"&&t!=="style"&&t!=="link"&&t!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",t,t),!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href===""){s&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError){if(r.rel==="stylesheet"&&typeof r.precedence=="string"){t=r.href;var c=r.onError,d=r.disabled;o=[],r.onLoad&&o.push("`onLoad`"),c&&o.push("`onError`"),d!=null&&o.push("`disabled`"),c=WP(o,"and"),c+=o.length===1?" prop":" props",d=o.length===1?"an "+c:"the "+c,o.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',t,d,c)}s&&(typeof r.rel!="string"||typeof r.href!="string"||r.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(r.onError||r.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(r.rel){case"stylesheet":return t=r.precedence,r=r.disabled,typeof t!="string"&&s&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof t=="string"&&r==null;default:return!0}case"script":if(t=r.async&&typeof r.async!="function"&&typeof r.async!="symbol",!t||r.onLoad||r.onError||!r.src||typeof r.src!="string"){s&&(t?r.onLoad||r.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":s&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",t)}return!1}function JO(t){return!(t.type==="stylesheet"&&(t.state.loading&IN)===fu)}function AL(){}function vL(t,r,o){if(ed===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var s=ed;if(r.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(r.state.loading&Ii)===fu){if(r.instance===null){var c=al(o.href),d=t.querySelector(df(c));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(s.count++,s=Th.bind(s),t.then(s,s)),r.state.loading|=Ii,r.instance=d,he(d);return}d=t.ownerDocument||t,o=YO(o),(c=Ci.get(c))&&K0(o,c),d=d.createElement("link"),he(d);var x=d;x._p=new Promise(function(T,z){x.onload=T,x.onerror=z}),zn(d,"link",o),r.instance=d}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&IN)===fu&&(s.count++,r=Th.bind(s),t.addEventListener("load",r),t.addEventListener("error",r))}}function xL(){if(ed===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var t=ed;return t.stylesheets&&t.count===0&&Z0(t,t.stylesheets),0<t.count?function(r){var o=setTimeout(function(){if(t.stylesheets&&Z0(t,t.stylesheets),t.unsuspend){var s=t.unsuspend;t.unsuspend=null,s()}},6e4);return t.unsuspend=r,function(){t.unsuspend=null,clearTimeout(o)}}:null}function Th(){if(this.count--,this.count===0){if(this.stylesheets)Z0(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}function Z0(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,vm=new Map,r.forEach(EL,t),vm=null,Th.call(t))}function EL(t,r){if(!(r.state.loading&Ii)){var o=vm.get(t);if(o)var s=o.get(SA);else{o=new Map,vm.set(t,o);for(var c=t.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var x=c[d];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(o.set(x.dataset.precedence,x),s=x)}s&&o.set(SA,s)}c=r.instance,x=c.getAttribute("data-precedence"),d=o.get(x)||s,d===s&&o.set(SA,c),o.set(x,c),this.count++,s=Th.bind(this),c.addEventListener("load",s),c.addEventListener("error",s),d?d.parentNode.insertBefore(c,d.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(c,t.firstChild)),r.state.loading|=Ii}}function wL(t,r,o,s,c,d,x,T){for(this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=cu,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Re(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Re(0),this.hiddenUpdates=Re(null),this.identifierPrefix=s,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,t=this.pendingUpdatersLaneMap=[],r=0;31>r;r++)t.push(new Set);this._debugRootType=o?"hydrateRoot()":"createRoot()"}function WO(t,r,o,s,c,d,x,T,z,Z,Se,Ne){return t=new wL(t,r,o,x,T,z,Z,Ne),r=kk,d===!0&&(r|=or|ji),_i&&(r|=Gn),d=y(3,null,null,r),t.current=d,d.stateNode=t,r=Ty(),$s(r),t.pooledCache=r,$s(r),d.memoizedState={element:s,isDehydrated:o,cache:r},Ny(d),t}function eR(t){return t?(t=za,t):za}function J0(t,r,o,s,c,d){if(rr&&typeof rr.onScheduleFiberRoot=="function")try{rr.onScheduleFiberRoot(fl,s,o)}catch(x){co||(co=!0,console.error("React instrumentation encountered an error: %s",x))}Ye!==null&&typeof Ye.markRenderScheduled=="function"&&Ye.markRenderScheduled(r),c=eR(c),s.context===null?s.context=c:s.pendingContext=c,po&&Kr!==null&&!FN&&(FN=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
229
-
230
- Check the render method of %s.`,O(Kr)||"Unknown")),s=Fa(r),s.payload={element:o},d=d===void 0?null:d,d!==null&&(typeof d!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",d),s.callback=d),o=Na(t,s,r),o!==null&&(ln(o,t,r),Yc(o,t,r))}function tR(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<r?o:r}}function W0(t,r){tR(t,r),(t=t.alternate)&&tR(t,r)}function nR(t){if(t.tag===13){var r=Cr(t,67108864);r!==null&&ln(r,t,67108864),W0(t,67108864)}}function SL(){return Kr}function IL(){for(var t=new Map,r=1,o=0;31>o;o++){var s=pe(r);t.set(r,s),r*=2}return t}function CL(t,r,o,s){var c=Fe.T;Fe.T=null;var d=Mt.p;try{Mt.p=mi,eb(t,r,o,s)}finally{Mt.p=d,Fe.T=c}}function TL(t,r,o,s){var c=Fe.T;Fe.T=null;var d=Mt.p;try{Mt.p=fo,eb(t,r,o,s)}finally{Mt.p=d,Fe.T=c}}function eb(t,r,o,s){if(Em){var c=tb(s);if(c===null)k0(t,r,s,wm,o),iR(t,s);else if(OL(c,t,r,o,s))s.stopPropagation();else if(iR(t,s),r&4&&-1<b5.indexOf(t)){for(;c!==null;){var d=bt(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var x=E(d.pendingLanes);if(x!==0){var T=d;for(T.pendingLanes|=2,T.entangledLanes|=2;x;){var z=1<<31-dr(x);T.entanglements[1]|=z,x&=~z}ao(d),(_t&(yr|$i))===Xr&&(am=lo()+uN,lf(0))}}break;case 13:T=Cr(d,2),T!==null&&ln(T,d,2),nl(),W0(d,2)}if(d=tb(s),d===null&&k0(t,r,s,wm,o),d===c)break;c=d}c!==null&&s.stopPropagation()}else k0(t,r,s,null,o)}}function tb(t){return t=dy(t),nb(t)}function nb(t){if(wm=null,t=ut(t),t!==null){var r=N(t);if(r===null)t=null;else{var o=r.tag;if(o===13){if(t=B(r),t!==null)return t;t=null}else if(o===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return wm=t,null}function rR(t){switch(t){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 mi;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 fo;case"message":switch(LL()){case pb:return mi;case hb:return fo;case cl:case kL:return zo;case mb:return _h;default:return zo}default:return zo}}function iR(t,r){switch(t){case"focusin":case"focusout":es=null;break;case"dragenter":case"dragleave":ts=null;break;case"mouseover":case"mouseout":ns=null;break;case"pointerover":case"pointerout":nd.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":rd.delete(r.pointerId)}}function hf(t,r,o,s,c,d){return t===null||t.nativeEvent!==d?(t={blockedOn:r,domEventName:o,eventSystemFlags:s,nativeEvent:d,targetContainers:[c]},r!==null&&(r=bt(r),r!==null&&nR(r)),t):(t.eventSystemFlags|=s,r=t.targetContainers,c!==null&&r.indexOf(c)===-1&&r.push(c),t)}function OL(t,r,o,s,c){switch(r){case"focusin":return es=hf(es,t,r,o,s,c),!0;case"dragenter":return ts=hf(ts,t,r,o,s,c),!0;case"mouseover":return ns=hf(ns,t,r,o,s,c),!0;case"pointerover":var d=c.pointerId;return nd.set(d,hf(nd.get(d)||null,t,r,o,s,c)),!0;case"gotpointercapture":return d=c.pointerId,rd.set(d,hf(rd.get(d)||null,t,r,o,s,c)),!0}return!1}function oR(t){var r=ut(t.target);if(r!==null){var o=N(r);if(o!==null){if(r=o.tag,r===13){if(r=B(o),r!==null){t.blockedOn=r,at(t.priority,function(){if(o.tag===13){var s=Qr(o);s=Me(s);var c=Cr(o,s);c!==null&&ln(c,o,s),W0(o,s)}});return}}else if(r===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Oh(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var o=tb(t.nativeEvent);if(o===null){o=t.nativeEvent;var s=new o.constructor(o.type,o),c=s;vf!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),vf=c,o.target.dispatchEvent(s),vf===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),vf=null}else return r=bt(o),r!==null&&nR(r),t.blockedOn=o,!1;r.shift()}return!0}function aR(t,r,o){Oh(t)&&o.delete(r)}function RL(){IA=!1,es!==null&&Oh(es)&&(es=null),ts!==null&&Oh(ts)&&(ts=null),ns!==null&&Oh(ns)&&(ns=null),nd.forEach(aR),rd.forEach(aR)}function Rh(t,r){t.blockedOn===r&&(t.blockedOn=null,IA||(IA=!0,mn.unstable_scheduleCallback(mn.unstable_NormalPriority,RL)))}function sR(t){Sm!==t&&(Sm=t,mn.unstable_scheduleCallback(mn.unstable_NormalPriority,function(){Sm===t&&(Sm=null);for(var r=0;r<t.length;r+=3){var o=t[r],s=t[r+1],c=t[r+2];if(typeof s!="function"){if(nb(s||o)===null)continue;break}var d=bt(o);d!==null&&(t.splice(r,3),r-=3,o={pending:!0,data:c,method:o.method,action:s},Object.freeze(o),n0(d,o,s,c))}}))}function mf(t){function r(z){return Rh(z,t)}es!==null&&Rh(es,t),ts!==null&&Rh(ts,t),ns!==null&&Rh(ns,t),nd.forEach(r),rd.forEach(r);for(var o=0;o<rs.length;o++){var s=rs[o];s.blockedOn===t&&(s.blockedOn=null)}for(;0<rs.length&&(o=rs[0],o.blockedOn===null);)oR(o),o.blockedOn===null&&rs.shift();if(o=(t.ownerDocument||t).$$reactFormReplay,o!=null)for(s=0;s<o.length;s+=3){var c=o[s],d=o[s+1],x=c[Rr]||null;if(typeof d=="function")x||sR(o);else if(x){var T=null;if(d&&d.hasAttribute("formAction")){if(c=d,x=d[Rr]||null)T=x.formAction;else if(nb(c)!==null)continue}else T=x.action;typeof T=="function"?o[s+1]=T:(o.splice(s,3),s-=3),sR(o)}}}function rb(t){this._internalRoot=t}function Fh(t){this._internalRoot=t}function uR(t){t[qa]&&(t._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var mn=R5(),ib=cg(),FL=JM(),yt=Object.assign,NL=Symbol.for("react.element"),Pa=Symbol.for("react.transitional.element"),ul=Symbol.for("react.portal"),ll=Symbol.for("react.fragment"),Nh=Symbol.for("react.strict_mode"),ob=Symbol.for("react.profiler"),DL=Symbol.for("react.provider"),ab=Symbol.for("react.consumer"),uo=Symbol.for("react.context"),gf=Symbol.for("react.forward_ref"),sb=Symbol.for("react.suspense"),ub=Symbol.for("react.suspense_list"),Dh=Symbol.for("react.memo"),Yr=Symbol.for("react.lazy"),lb=Symbol.for("react.activity"),BL=Symbol.for("react.memo_cache_sentinel"),lR=Symbol.iterator,UL=Symbol.for("react.client.reference"),Vn=Array.isArray,Fe=ib.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Mt=FL.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ML=Object.freeze({pending:!1,data:null,method:null,action:null}),cb=[],fb=[],qo=-1,La=P(null),yf=P(null),ka=P(null),Bh=P(null),Ho=Object.prototype.hasOwnProperty,db=mn.unstable_scheduleCallback,_L=mn.unstable_cancelCallback,jL=mn.unstable_shouldYield,PL=mn.unstable_requestPaint,lo=mn.unstable_now,LL=mn.unstable_getCurrentPriorityLevel,pb=mn.unstable_ImmediatePriority,hb=mn.unstable_UserBlockingPriority,cl=mn.unstable_NormalPriority,kL=mn.unstable_LowPriority,mb=mn.unstable_IdlePriority,$L=mn.log,qL=mn.unstable_setDisableYieldValue,fl=null,rr=null,Ye=null,co=!1,_i=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",dr=Math.clz32?Math.clz32:de,HL=Math.log,zL=Math.LN2,Uh=256,Mh=4194304,mi=2,fo=8,zo=32,_h=268435456,$a=Math.random().toString(36).slice(2),ir="__reactFiber$"+$a,Rr="__reactProps$"+$a,qa="__reactContainer$"+$a,gb="__reactEvents$"+$a,VL="__reactListeners$"+$a,GL="__reactHandles$"+$a,cR="__reactResources$"+$a,bf="__reactMarker$"+$a,fR=new Set,Qs={},yb={},QL={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},YL=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]*$"),dR={},pR={},Af=0,hR,mR,gR,yR,bR,AR,vR;Sr.__reactDisabledLog=!0;var bb,xR,Ab=!1,vb=new(typeof WeakMap=="function"?WeakMap:Map),Kr=null,po=!1,KL=/[\n"\\]/g,ER=!1,wR=!1,SR=!1,IR=!1,CR=!1,TR=!1,OR=["value","defaultValue"],RR=!1,FR=/["'&<>\n\t]|^\s|\s$/,XL="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),NR="applet caption html table td th marquee object template foreignObject desc title".split(" "),ZL=NR.concat(["button"]),JL="dd dt li option optgroup p rp rt".split(" "),DR={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},jh={},xb={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},BR=/([A-Z])/g,UR=/^ms-/,WL=/^(?:webkit|moz|o)[A-Z]/,ek=/^-ms-/,tk=/-(.)/g,MR=/;\s*$/,dl={},Eb={},_R=!1,jR=!1,PR=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(" ")),Ph="http://www.w3.org/1998/Math/MathML",pl="http://www.w3.org/2000/svg",nk=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"]]),Lh={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},LR={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},hl={},rk=RegExp("^(aria)-[: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]*$"),ik=RegExp("^(aria)[A-Z][: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]*$"),kR=!1,pr={},$R=/^on./,ok=/^on[^A-Z]/,ak=RegExp("^(aria)-[: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]*$"),sk=RegExp("^(aria)[A-Z][: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]*$"),uk=/^[\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,vf=null,ml=null,gl=null,wb=!1,ho=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sb=!1;if(ho)try{var xf={};Object.defineProperty(xf,"passive",{get:function(){Sb=!0}}),window.addEventListener("test",xf,xf),window.removeEventListener("test",xf,xf)}catch{Sb=!1}var Ha=null,Ib=null,kh=null,Ys={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$h=Ir(Ys),Ef=yt({},Ys,{view:0,detail:0}),lk=Ir(Ef),Cb,Tb,wf,qh=yt({},Ef,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:py,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==wf&&(wf&&t.type==="mousemove"?(Cb=t.screenX-wf.screenX,Tb=t.screenY-wf.screenY):Tb=Cb=0,wf=t),Cb)},movementY:function(t){return"movementY"in t?t.movementY:Tb}}),qR=Ir(qh),ck=yt({},qh,{dataTransfer:0}),fk=Ir(ck),dk=yt({},Ef,{relatedTarget:0}),Ob=Ir(dk),pk=yt({},Ys,{animationName:0,elapsedTime:0,pseudoElement:0}),hk=Ir(pk),mk=yt({},Ys,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),gk=Ir(mk),yk=yt({},Ys,{data:0}),HR=Ir(yk),bk=HR,Ak={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vk={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"},xk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Ek=yt({},Ef,{key:function(t){if(t.key){var r=Ak[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=_p(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?vk[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:py,charCode:function(t){return t.type==="keypress"?_p(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?_p(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),wk=Ir(Ek),Sk=yt({},qh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zR=Ir(Sk),Ik=yt({},Ef,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:py}),Ck=Ir(Ik),Tk=yt({},Ys,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ok=Ir(Tk),Rk=yt({},qh,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Fk=Ir(Rk),Nk=yt({},Ys,{newState:0,oldState:0}),Dk=Ir(Nk),Bk=[9,13,27,32],VR=229,Rb=ho&&"CompositionEvent"in window,Sf=null;ho&&"documentMode"in document&&(Sf=document.documentMode);var Uk=ho&&"TextEvent"in window&&!Sf,GR=ho&&(!Rb||Sf&&8<Sf&&11>=Sf),QR=32,YR=String.fromCharCode(QR),KR=!1,yl=!1,Mk={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},If=null,Cf=null,XR=!1;ho&&(XR=fP("input")&&(!document.documentMode||9<document.documentMode));var hr=typeof Object.is=="function"?Object.is:yP,_k=ho&&"documentMode"in document&&11>=document.documentMode,bl=null,Fb=null,Tf=null,Nb=!1,Al={animationend:Ds("Animation","AnimationEnd"),animationiteration:Ds("Animation","AnimationIteration"),animationstart:Ds("Animation","AnimationStart"),transitionrun:Ds("Transition","TransitionRun"),transitionstart:Ds("Transition","TransitionStart"),transitioncancel:Ds("Transition","TransitionCancel"),transitionend:Ds("Transition","TransitionEnd")},Db={},ZR={};ho&&(ZR=document.createElement("div").style,"AnimationEvent"in window||(delete Al.animationend.animation,delete Al.animationiteration.animation,delete Al.animationstart.animation),"TransitionEvent"in window||delete Al.transitionend.transition);var JR=Bs("animationend"),WR=Bs("animationiteration"),eF=Bs("animationstart"),jk=Bs("transitionrun"),Pk=Bs("transitionstart"),Lk=Bs("transitioncancel"),tF=Bs("transitionend"),nF=new Map,Bb="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(" ");Bb.push("scrollEnd");var Ub=new WeakMap,Hh=1,Vo=2,gi=[],vl=0,Mb=0,za={};Object.freeze(za);var yi=null,xl=null,Yt=0,kk=1,Gn=2,or=8,ji=16,rF=64,iF=!1;try{var oF=Object.preventExtensions({})}catch{iF=!0}var El=[],wl=0,zh=null,Vh=0,bi=[],Ai=0,Ks=null,Go=1,Qo="",mr=null,nn=null,Bt=!1,Yo=!1,vi=null,Xs=null,mo=!1,_b=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),aF=0;if(typeof performance=="object"&&typeof performance.now=="function")var $k=performance,sF=function(){return $k.now()};else{var qk=Date;sF=function(){return qk.now()}}var jb=P(null),Pb=P(null),uF={},Gh=null,Sl=null,Il=!1,Hk=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(o,s){t.push(s)}};this.abort=function(){r.aborted=!0,t.forEach(function(o){return o()})}},zk=mn.unstable_scheduleCallback,Vk=mn.unstable_NormalPriority,wn={$$typeof:uo,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Cl=mn.unstable_now,lF=-0,Qh=-0,Fr=-1.1,Zs=-0,Yh=!1,Kh=!1,Of=null,Lb=0,Js=0,Tl=null,cF=Fe.S;Fe.S=function(t,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&AP(t,r),cF!==null&&cF(t,r)};var Ws=P(null),Pi={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Rf=[],Ff=[],Nf=[],Df=[],Bf=[],Uf=[],eu=new Set;Pi.recordUnsafeLifecycleWarnings=function(t,r){eu.has(t.type)||(typeof r.componentWillMount=="function"&&r.componentWillMount.__suppressDeprecationWarning!==!0&&Rf.push(t),t.mode&or&&typeof r.UNSAFE_componentWillMount=="function"&&Ff.push(t),typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Nf.push(t),t.mode&or&&typeof r.UNSAFE_componentWillReceiveProps=="function"&&Df.push(t),typeof r.componentWillUpdate=="function"&&r.componentWillUpdate.__suppressDeprecationWarning!==!0&&Bf.push(t),t.mode&or&&typeof r.UNSAFE_componentWillUpdate=="function"&&Uf.push(t))},Pi.flushPendingUnsafeLifecycleWarnings=function(){var t=new Set;0<Rf.length&&(Rf.forEach(function(T){t.add(O(T)||"Component"),eu.add(T.type)}),Rf=[]);var r=new Set;0<Ff.length&&(Ff.forEach(function(T){r.add(O(T)||"Component"),eu.add(T.type)}),Ff=[]);var o=new Set;0<Nf.length&&(Nf.forEach(function(T){o.add(O(T)||"Component"),eu.add(T.type)}),Nf=[]);var s=new Set;0<Df.length&&(Df.forEach(function(T){s.add(O(T)||"Component"),eu.add(T.type)}),Df=[]);var c=new Set;0<Bf.length&&(Bf.forEach(function(T){c.add(O(T)||"Component"),eu.add(T.type)}),Bf=[]);var d=new Set;if(0<Uf.length&&(Uf.forEach(function(T){d.add(O(T)||"Component"),eu.add(T.type)}),Uf=[]),0<r.size){var x=A(r);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
231
-
232
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
233
-
234
- Please update the following components: %s`,x)}0<s.size&&(x=A(s),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
235
-
236
- * Move data fetching code or side effects to componentDidUpdate.
237
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
238
-
239
- Please update the following components: %s`,x)),0<d.size&&(x=A(d),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
240
-
241
- * Move data fetching code or side effects to componentDidUpdate.
242
-
243
- Please update the following components: %s`,x)),0<t.size&&(x=A(t),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
244
-
245
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
246
- * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
247
-
248
- Please update the following components: %s`,x)),0<o.size&&(x=A(o),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
249
-
250
- * Move data fetching code or side effects to componentDidUpdate.
251
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
252
- * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
253
-
254
- Please update the following components: %s`,x)),0<c.size&&(x=A(c),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
255
-
256
- * Move data fetching code or side effects to componentDidUpdate.
257
- * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
258
-
259
- Please update the following components: %s`,x))};var Xh=new Map,fF=new Set;Pi.recordLegacyContextWarning=function(t,r){for(var o=null,s=t;s!==null;)s.mode&or&&(o=s),s=s.return;o===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!fF.has(t.type)&&(s=Xh.get(o),t.type.contextTypes!=null||t.type.childContextTypes!=null||r!==null&&typeof r.getChildContext=="function")&&(s===void 0&&(s=[],Xh.set(o,s)),s.push(t))},Pi.flushLegacyContextWarning=function(){Xh.forEach(function(t){if(t.length!==0){var r=t[0],o=new Set;t.forEach(function(c){o.add(O(c)||"Component"),fF.add(c.type)});var s=A(o);et(r,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
260
-
261
- The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
262
-
263
- Please update the following components: %s
264
-
265
- Learn more about this warning here: https://react.dev/link/legacy-context`,s)})}})},Pi.discardPendingWarnings=function(){Rf=[],Ff=[],Nf=[],Df=[],Bf=[],Uf=[],Xh=new Map};var Mf=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),dF=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Zh=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),kb={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},_f=null,Jh=!1,xi=0,Ei=1,gr=2,Qn=4,Sn=8,pF=0,hF=1,mF=2,$b=3,Va=!1,gF=!1,qb=null,Hb=!1,Ol=P(null),Wh=P(0),Rl,yF=new Set,bF=new Set,zb=new Set,AF=new Set,Ga=0,ft=null,Ht=null,gn=null,em=!1,Fl=!1,tu=!1,tm=0,jf=0,Ko=null,Gk=0,Qk=25,Oe=null,wi=null,Xo=-1,Pf=!1,nm={readContext:Xt,use:Da,useCallback:un,useContext:un,useEffect:un,useImperativeHandle:un,useLayoutEffect:un,useInsertionEffect:un,useMemo:un,useReducer:un,useRef:un,useState:un,useDebugValue:un,useDeferredValue:un,useTransition:un,useSyncExternalStore:un,useId:un,useHostTransitionStatus:un,useFormState:un,useActionState:un,useOptimistic:un,useMemoCache:un,useCacheRefresh:un},Vb=null,vF=null,Gb=null,xF=null,go=null,Li=null,rm=null;Vb={readContext:function(t){return Xt(t)},use:Da,useCallback:function(t,r){return Oe="useCallback",xt(),Ku(r),Jy(t,r)},useContext:function(t){return Oe="useContext",xt(),Xt(t)},useEffect:function(t,r){return Oe="useEffect",xt(),Ku(r),nh(t,r)},useImperativeHandle:function(t,r,o){return Oe="useImperativeHandle",xt(),Ku(o),Zy(t,r,o)},useInsertionEffect:function(t,r){Oe="useInsertionEffect",xt(),Ku(r),Hs(4,gr,t,r)},useLayoutEffect:function(t,r){return Oe="useLayoutEffect",xt(),Ku(r),Xy(t,r)},useMemo:function(t,r){Oe="useMemo",xt(),Ku(r);var o=Fe.H;Fe.H=go;try{return Wy(t,r)}finally{Fe.H=o}},useReducer:function(t,r,o){Oe="useReducer",xt();var s=Fe.H;Fe.H=go;try{return qy(t,r,o)}finally{Fe.H=s}},useRef:function(t){return Oe="useRef",xt(),Ky(t)},useState:function(t){Oe="useState",xt();var r=Fe.H;Fe.H=go;try{return Gy(t)}finally{Fe.H=r}},useDebugValue:function(){Oe="useDebugValue",xt()},useDeferredValue:function(t,r){return Oe="useDeferredValue",xt(),e0(t,r)},useTransition:function(){return Oe="useTransition",xt(),r0()},useSyncExternalStore:function(t,r,o){return Oe="useSyncExternalStore",xt(),zy(t,r,o)},useId:function(){return Oe="useId",xt(),i0()},useFormState:function(t,r){return Oe="useFormState",xt(),Zp(),Zu(t,r)},useActionState:function(t,r){return Oe="useActionState",xt(),Zu(t,r)},useOptimistic:function(t){return Oe="useOptimistic",xt(),Qy(t)},useHostTransitionStatus:zs,useMemoCache:qs,useCacheRefresh:function(){return Oe="useCacheRefresh",xt(),o0()}},vF={readContext:function(t){return Xt(t)},use:Da,useCallback:function(t,r){return Oe="useCallback",ke(),Jy(t,r)},useContext:function(t){return Oe="useContext",ke(),Xt(t)},useEffect:function(t,r){return Oe="useEffect",ke(),nh(t,r)},useImperativeHandle:function(t,r,o){return Oe="useImperativeHandle",ke(),Zy(t,r,o)},useInsertionEffect:function(t,r){Oe="useInsertionEffect",ke(),Hs(4,gr,t,r)},useLayoutEffect:function(t,r){return Oe="useLayoutEffect",ke(),Xy(t,r)},useMemo:function(t,r){Oe="useMemo",ke();var o=Fe.H;Fe.H=go;try{return Wy(t,r)}finally{Fe.H=o}},useReducer:function(t,r,o){Oe="useReducer",ke();var s=Fe.H;Fe.H=go;try{return qy(t,r,o)}finally{Fe.H=s}},useRef:function(t){return Oe="useRef",ke(),Ky(t)},useState:function(t){Oe="useState",ke();var r=Fe.H;Fe.H=go;try{return Gy(t)}finally{Fe.H=r}},useDebugValue:function(){Oe="useDebugValue",ke()},useDeferredValue:function(t,r){return Oe="useDeferredValue",ke(),e0(t,r)},useTransition:function(){return Oe="useTransition",ke(),r0()},useSyncExternalStore:function(t,r,o){return Oe="useSyncExternalStore",ke(),zy(t,r,o)},useId:function(){return Oe="useId",ke(),i0()},useActionState:function(t,r){return Oe="useActionState",ke(),Zu(t,r)},useFormState:function(t,r){return Oe="useFormState",ke(),Zp(),Zu(t,r)},useOptimistic:function(t){return Oe="useOptimistic",ke(),Qy(t)},useHostTransitionStatus:zs,useMemoCache:qs,useCacheRefresh:function(){return Oe="useCacheRefresh",ke(),o0()}},Gb={readContext:function(t){return Xt(t)},use:Da,useCallback:function(t,r){return Oe="useCallback",ke(),ih(t,r)},useContext:function(t){return Oe="useContext",ke(),Xt(t)},useEffect:function(t,r){Oe="useEffect",ke(),Or(2048,Sn,t,r)},useImperativeHandle:function(t,r,o){return Oe="useImperativeHandle",ke(),rh(t,r,o)},useInsertionEffect:function(t,r){return Oe="useInsertionEffect",ke(),Or(4,gr,t,r)},useLayoutEffect:function(t,r){return Oe="useLayoutEffect",ke(),Or(4,Qn,t,r)},useMemo:function(t,r){Oe="useMemo",ke();var o=Fe.H;Fe.H=Li;try{return oh(t,r)}finally{Fe.H=o}},useReducer:function(t,r,o){Oe="useReducer",ke();var s=Fe.H;Fe.H=Li;try{return Xu(t,r,o)}finally{Fe.H=s}},useRef:function(){return Oe="useRef",ke(),Pt().memoizedState},useState:function(){Oe="useState",ke();var t=Fe.H;Fe.H=Li;try{return Xu(Mi)}finally{Fe.H=t}},useDebugValue:function(){Oe="useDebugValue",ke()},useDeferredValue:function(t,r){return Oe="useDeferredValue",ke(),JC(t,r)},useTransition:function(){return Oe="useTransition",ke(),iT()},useSyncExternalStore:function(t,r,o){return Oe="useSyncExternalStore",ke(),Jp(t,r,o)},useId:function(){return Oe="useId",ke(),Pt().memoizedState},useFormState:function(t){return Oe="useFormState",ke(),Zp(),Wp(t)},useActionState:function(t){return Oe="useActionState",ke(),Wp(t)},useOptimistic:function(t,r){return Oe="useOptimistic",ke(),qC(t,r)},useHostTransitionStatus:zs,useMemoCache:qs,useCacheRefresh:function(){return Oe="useCacheRefresh",ke(),Pt().memoizedState}},xF={readContext:function(t){return Xt(t)},use:Da,useCallback:function(t,r){return Oe="useCallback",ke(),ih(t,r)},useContext:function(t){return Oe="useContext",ke(),Xt(t)},useEffect:function(t,r){Oe="useEffect",ke(),Or(2048,Sn,t,r)},useImperativeHandle:function(t,r,o){return Oe="useImperativeHandle",ke(),rh(t,r,o)},useInsertionEffect:function(t,r){return Oe="useInsertionEffect",ke(),Or(4,gr,t,r)},useLayoutEffect:function(t,r){return Oe="useLayoutEffect",ke(),Or(4,Qn,t,r)},useMemo:function(t,r){Oe="useMemo",ke();var o=Fe.H;Fe.H=rm;try{return oh(t,r)}finally{Fe.H=o}},useReducer:function(t,r,o){Oe="useReducer",ke();var s=Fe.H;Fe.H=rm;try{return Jc(t,r,o)}finally{Fe.H=s}},useRef:function(){return Oe="useRef",ke(),Pt().memoizedState},useState:function(){Oe="useState",ke();var t=Fe.H;Fe.H=rm;try{return Jc(Mi)}finally{Fe.H=t}},useDebugValue:function(){Oe="useDebugValue",ke()},useDeferredValue:function(t,r){return Oe="useDeferredValue",ke(),WC(t,r)},useTransition:function(){return Oe="useTransition",ke(),oT()},useSyncExternalStore:function(t,r,o){return Oe="useSyncExternalStore",ke(),Jp(t,r,o)},useId:function(){return Oe="useId",ke(),Pt().memoizedState},useFormState:function(t){return Oe="useFormState",ke(),Zp(),eh(t)},useActionState:function(t){return Oe="useActionState",ke(),eh(t)},useOptimistic:function(t,r){return Oe="useOptimistic",ke(),zC(t,r)},useHostTransitionStatus:zs,useMemoCache:qs,useCacheRefresh:function(){return Oe="useCacheRefresh",ke(),Pt().memoizedState}},go={readContext:function(t){return m(),Xt(t)},use:function(t){return h(),Da(t)},useCallback:function(t,r){return Oe="useCallback",h(),xt(),Jy(t,r)},useContext:function(t){return Oe="useContext",h(),xt(),Xt(t)},useEffect:function(t,r){return Oe="useEffect",h(),xt(),nh(t,r)},useImperativeHandle:function(t,r,o){return Oe="useImperativeHandle",h(),xt(),Zy(t,r,o)},useInsertionEffect:function(t,r){Oe="useInsertionEffect",h(),xt(),Hs(4,gr,t,r)},useLayoutEffect:function(t,r){return Oe="useLayoutEffect",h(),xt(),Xy(t,r)},useMemo:function(t,r){Oe="useMemo",h(),xt();var o=Fe.H;Fe.H=go;try{return Wy(t,r)}finally{Fe.H=o}},useReducer:function(t,r,o){Oe="useReducer",h(),xt();var s=Fe.H;Fe.H=go;try{return qy(t,r,o)}finally{Fe.H=s}},useRef:function(t){return Oe="useRef",h(),xt(),Ky(t)},useState:function(t){Oe="useState",h(),xt();var r=Fe.H;Fe.H=go;try{return Gy(t)}finally{Fe.H=r}},useDebugValue:function(){Oe="useDebugValue",h(),xt()},useDeferredValue:function(t,r){return Oe="useDeferredValue",h(),xt(),e0(t,r)},useTransition:function(){return Oe="useTransition",h(),xt(),r0()},useSyncExternalStore:function(t,r,o){return Oe="useSyncExternalStore",h(),xt(),zy(t,r,o)},useId:function(){return Oe="useId",h(),xt(),i0()},useFormState:function(t,r){return Oe="useFormState",h(),xt(),Zu(t,r)},useActionState:function(t,r){return Oe="useActionState",h(),xt(),Zu(t,r)},useOptimistic:function(t){return Oe="useOptimistic",h(),xt(),Qy(t)},useMemoCache:function(t){return h(),qs(t)},useHostTransitionStatus:zs,useCacheRefresh:function(){return Oe="useCacheRefresh",xt(),o0()}},Li={readContext:function(t){return m(),Xt(t)},use:function(t){return h(),Da(t)},useCallback:function(t,r){return Oe="useCallback",h(),ke(),ih(t,r)},useContext:function(t){return Oe="useContext",h(),ke(),Xt(t)},useEffect:function(t,r){Oe="useEffect",h(),ke(),Or(2048,Sn,t,r)},useImperativeHandle:function(t,r,o){return Oe="useImperativeHandle",h(),ke(),rh(t,r,o)},useInsertionEffect:function(t,r){return Oe="useInsertionEffect",h(),ke(),Or(4,gr,t,r)},useLayoutEffect:function(t,r){return Oe="useLayoutEffect",h(),ke(),Or(4,Qn,t,r)},useMemo:function(t,r){Oe="useMemo",h(),ke();var o=Fe.H;Fe.H=Li;try{return oh(t,r)}finally{Fe.H=o}},useReducer:function(t,r,o){Oe="useReducer",h(),ke();var s=Fe.H;Fe.H=Li;try{return Xu(t,r,o)}finally{Fe.H=s}},useRef:function(){return Oe="useRef",h(),ke(),Pt().memoizedState},useState:function(){Oe="useState",h(),ke();var t=Fe.H;Fe.H=Li;try{return Xu(Mi)}finally{Fe.H=t}},useDebugValue:function(){Oe="useDebugValue",h(),ke()},useDeferredValue:function(t,r){return Oe="useDeferredValue",h(),ke(),JC(t,r)},useTransition:function(){return Oe="useTransition",h(),ke(),iT()},useSyncExternalStore:function(t,r,o){return Oe="useSyncExternalStore",h(),ke(),Jp(t,r,o)},useId:function(){return Oe="useId",h(),ke(),Pt().memoizedState},useFormState:function(t){return Oe="useFormState",h(),ke(),Wp(t)},useActionState:function(t){return Oe="useActionState",h(),ke(),Wp(t)},useOptimistic:function(t,r){return Oe="useOptimistic",h(),ke(),qC(t,r)},useMemoCache:function(t){return h(),qs(t)},useHostTransitionStatus:zs,useCacheRefresh:function(){return Oe="useCacheRefresh",ke(),Pt().memoizedState}},rm={readContext:function(t){return m(),Xt(t)},use:function(t){return h(),Da(t)},useCallback:function(t,r){return Oe="useCallback",h(),ke(),ih(t,r)},useContext:function(t){return Oe="useContext",h(),ke(),Xt(t)},useEffect:function(t,r){Oe="useEffect",h(),ke(),Or(2048,Sn,t,r)},useImperativeHandle:function(t,r,o){return Oe="useImperativeHandle",h(),ke(),rh(t,r,o)},useInsertionEffect:function(t,r){return Oe="useInsertionEffect",h(),ke(),Or(4,gr,t,r)},useLayoutEffect:function(t,r){return Oe="useLayoutEffect",h(),ke(),Or(4,Qn,t,r)},useMemo:function(t,r){Oe="useMemo",h(),ke();var o=Fe.H;Fe.H=Li;try{return oh(t,r)}finally{Fe.H=o}},useReducer:function(t,r,o){Oe="useReducer",h(),ke();var s=Fe.H;Fe.H=Li;try{return Jc(t,r,o)}finally{Fe.H=s}},useRef:function(){return Oe="useRef",h(),ke(),Pt().memoizedState},useState:function(){Oe="useState",h(),ke();var t=Fe.H;Fe.H=Li;try{return Jc(Mi)}finally{Fe.H=t}},useDebugValue:function(){Oe="useDebugValue",h(),ke()},useDeferredValue:function(t,r){return Oe="useDeferredValue",h(),ke(),WC(t,r)},useTransition:function(){return Oe="useTransition",h(),ke(),oT()},useSyncExternalStore:function(t,r,o){return Oe="useSyncExternalStore",h(),ke(),Jp(t,r,o)},useId:function(){return Oe="useId",h(),ke(),Pt().memoizedState},useFormState:function(t){return Oe="useFormState",h(),ke(),eh(t)},useActionState:function(t){return Oe="useActionState",h(),ke(),eh(t)},useOptimistic:function(t,r){return Oe="useOptimistic",h(),ke(),zC(t,r)},useMemoCache:function(t){return h(),qs(t)},useHostTransitionStatus:zs,useCacheRefresh:function(){return Oe="useCacheRefresh",ke(),Pt().memoizedState}};var EF={react_stack_bottom_frame:function(t,r,o){var s=po;po=!0;try{return t(r,o)}finally{po=s}}},Qb=EF.react_stack_bottom_frame.bind(EF),wF={react_stack_bottom_frame:function(t){var r=po;po=!0;try{return t.render()}finally{po=r}}},SF=wF.react_stack_bottom_frame.bind(wF),IF={react_stack_bottom_frame:function(t,r){try{r.componentDidMount()}catch(o){$t(t,t.return,o)}}},Yb=IF.react_stack_bottom_frame.bind(IF),CF={react_stack_bottom_frame:function(t,r,o,s,c){try{r.componentDidUpdate(o,s,c)}catch(d){$t(t,t.return,d)}}},TF=CF.react_stack_bottom_frame.bind(CF),OF={react_stack_bottom_frame:function(t,r){var o=r.stack;t.componentDidCatch(r.value,{componentStack:o!==null?o:""})}},Yk=OF.react_stack_bottom_frame.bind(OF),RF={react_stack_bottom_frame:function(t,r,o){try{o.componentWillUnmount()}catch(s){$t(t,r,s)}}},FF=RF.react_stack_bottom_frame.bind(RF),NF={react_stack_bottom_frame:function(t){t.resourceKind!=null&&console.error("Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",t.resourceKind);var r=t.create;return t=t.inst,r=r(),t.destroy=r}},Kk=NF.react_stack_bottom_frame.bind(NF),DF={react_stack_bottom_frame:function(t,r,o){try{o()}catch(s){$t(t,r,s)}}},Xk=DF.react_stack_bottom_frame.bind(DF),BF={react_stack_bottom_frame:function(t){var r=t._init;return r(t._payload)}},Qa=BF.react_stack_bottom_frame.bind(BF),Nl=null,Lf=0,mt=null,Kb,UF=Kb=!1,MF={},_F={},jF={};p=function(t,r,o){if(o!==null&&typeof o=="object"&&o._store&&(!o._store.validated&&o.key==null||o._store.validated===2)){if(typeof o._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");o._store.validated=1;var s=O(t),c=s||"null";if(!MF[c]){MF[c]=!0,o=o._owner,t=t._debugOwner;var d="";t&&typeof t.tag=="number"&&(c=O(t))&&(d=`
266
-
267
- Check the render method of \``+c+"`."),d||s&&(d=`
268
-
269
- Check the top-level render call using <`+s+">.");var x="";o!=null&&t!==o&&(s=null,typeof o.tag=="number"?s=O(o):typeof o.name=="string"&&(s=o.name),s&&(x=" It was passed a child from "+s+".")),et(r,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',d,x)})}}};var Dl=lT(!0),PF=lT(!1),Si=P(null),yo=null,Bl=1,kf=2,In=P(0),LF={},kF=new Set,$F=new Set,qF=new Set,HF=new Set,zF=new Set,VF=new Set,GF=new Set,QF=new Set,YF=new Set,KF=new Set;Object.freeze(LF);var Xb={enqueueSetState:function(t,r,o){t=t._reactInternals;var s=Qr(t),c=Fa(s);c.payload=r,o!=null&&(s0(o),c.callback=o),r=Na(t,c,s),r!==null&&(ln(r,t,s),Yc(r,t,s)),W(t,s)},enqueueReplaceState:function(t,r,o){t=t._reactInternals;var s=Qr(t),c=Fa(s);c.tag=hF,c.payload=r,o!=null&&(s0(o),c.callback=o),r=Na(t,c,s),r!==null&&(ln(r,t,s),Yc(r,t,s)),W(t,s)},enqueueForceUpdate:function(t,r){t=t._reactInternals;var o=Qr(t),s=Fa(o);s.tag=mF,r!=null&&(s0(r),s.callback=r),r=Na(t,s,o),r!==null&&(ln(r,t,o),Yc(r,t,o)),Ye!==null&&typeof Ye.markForceUpdateScheduled=="function"&&Ye.markForceUpdateScheduled(t,o)}},Zb=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(r))return}else if(typeof Dt=="object"&&typeof Dt.emit=="function"){Dt.emit("uncaughtException",t);return}console.error(t)},Ul=null,Jb=null,XF=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Rn=!1,ZF={},JF={},WF={},eN={},Ml=!1,tN={},Wb={},eA={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},nN=!1,rN=null;rN=new Set;var Zo=!1,cn=!1,tA=!1,iN=typeof WeakSet=="function"?WeakSet:Set,Fn=null,_l=null,jl=null,yn=null,Nr=!1,ki=null,$f=8192,Zk={getCacheForType:function(t){var r=Xt(wn),o=r.data.get(t);return o===void 0&&(o=t(),r.data.set(t,o)),o},getOwner:function(){return Kr}};if(typeof Symbol=="function"&&Symbol.for){var qf=Symbol.for;qf("selector.component"),qf("selector.has_pseudo_class"),qf("selector.role"),qf("selector.test_id"),qf("selector.text")}var Jk=[],Wk=typeof WeakMap=="function"?WeakMap:Map,Xr=0,yr=2,$i=4,Jo=0,Hf=1,Pl=2,nA=3,nu=4,im=6,oN=5,_t=Xr,zt=null,vt=null,Et=0,Dr=0,zf=1,ru=2,Vf=3,aN=4,rA=5,Ll=6,Gf=7,iA=8,iu=9,jt=Dr,Zr=null,Ya=!1,kl=!1,oA=!1,bo=0,rn=Jo,Ka=0,Xa=0,aA=0,Jr=0,ou=0,Qf=null,br=null,om=!1,sA=0,sN=300,am=1/0,uN=500,Yf=null,Za=null,e5=0,t5=1,n5=2,au=0,lN=1,cN=2,fN=3,r5=4,uA=5,Yn=0,Ja=null,$l=null,Wa=0,lA=0,cA=null,dN=null,i5=50,Kf=0,fA=null,dA=!1,sm=!1,o5=50,su=0,Xf=null,ql=!1,um=null,pN=!1,hN=new Set,a5={},lm=null,Hl=null,pA=!1,hA=!1,cm=!1,mA=!1,uu=0,gA={};(function(){for(var t=0;t<Bb.length;t++){var r=Bb[t],o=r.toLowerCase();r=r[0].toUpperCase()+r.slice(1),Ui(o,"on"+r)}Ui(JR,"onAnimationEnd"),Ui(WR,"onAnimationIteration"),Ui(eF,"onAnimationStart"),Ui("dblclick","onDoubleClick"),Ui("focusin","onFocus"),Ui("focusout","onBlur"),Ui(jk,"onTransitionRun"),Ui(Pk,"onTransitionStart"),Ui(Lk,"onTransitionCancel"),Ui(tF,"onTransitionEnd")})(),Pe("onMouseEnter",["mouseout","mouseover"]),Pe("onMouseLeave",["mouseout","mouseover"]),Pe("onPointerEnter",["pointerout","pointerover"]),Pe("onPointerLeave",["pointerout","pointerover"]),_e("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),_e("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),_e("onBeforeInput",["compositionend","keypress","textInput","paste"]),_e("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),_e("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),_e("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zf="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(" "),yA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zf)),fm="_reactListening"+Math.random().toString(36).slice(2),mN=!1,gN=!1,dm=!1,yN=!1,pm=!1,hm=!1,bN=!1,mm={},s5=/\r\n?/g,u5=/\u0000|\uFFFD/g,lu="http://www.w3.org/1999/xlink",bA="http://www.w3.org/XML/1998/namespace",l5="javascript:throw new Error('React form unexpectedly submitted.')",c5="suppressHydrationWarning",gm="$",ym="/$",Wo="$?",Jf="$!",f5=1,d5=2,p5=4,AA="F!",AN="F",vN="complete",h5="style",ea=0,zl=1,bm=2,vA=null,xA=null,xN={dialog:!0,webview:!0},EA=null,EN=typeof setTimeout=="function"?setTimeout:void 0,m5=typeof clearTimeout=="function"?clearTimeout:void 0,cu=-1,wN=typeof Promise=="function"?Promise:void 0,g5=typeof queueMicrotask=="function"?queueMicrotask:typeof wN<"u"?function(t){return wN.resolve(null).then(t).catch(tL)}:EN,wA=null,fu=0,Wf=1,SN=2,IN=3,Ii=4,Ci=new Map,CN=new Set,ta=Mt.d;Mt.d={f:function(){var t=ta.f(),r=nl();return t||r},r:function(t){var r=bt(t);r!==null&&r.tag===5&&r.type==="form"?rT(r):ta.r(t)},D:function(t){ta.D(t),GO("dns-prefetch",t,null)},C:function(t,r){ta.C(t,r),GO("preconnect",t,r)},L:function(t,r,o){ta.L(t,r,o);var s=Vl;if(s&&t&&r){var c='link[rel="preload"][as="'+$n(r)+'"]';r==="image"&&o&&o.imageSrcSet?(c+='[imagesrcset="'+$n(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(c+='[imagesizes="'+$n(o.imageSizes)+'"]')):c+='[href="'+$n(t)+'"]';var d=c;switch(r){case"style":d=al(t);break;case"script":d=sl(t)}Ci.has(d)||(t=yt({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:t,as:r},o),Ci.set(d,t),s.querySelector(c)!==null||r==="style"&&s.querySelector(df(d))||r==="script"&&s.querySelector(pf(d))||(r=s.createElement("link"),zn(r,"link",t),he(r),s.head.appendChild(r)))}},m:function(t,r){ta.m(t,r);var o=Vl;if(o&&t){var s=r&&typeof r.as=="string"?r.as:"script",c='link[rel="modulepreload"][as="'+$n(s)+'"][href="'+$n(t)+'"]',d=c;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=sl(t)}if(!Ci.has(d)&&(t=yt({rel:"modulepreload",href:t},r),Ci.set(d,t),o.querySelector(c)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(pf(d)))return}s=o.createElement("link"),zn(s,"link",t),he(s),o.head.appendChild(s)}}},X:function(t,r){ta.X(t,r);var o=Vl;if(o&&t){var s=_(o).hoistableScripts,c=sl(t),d=s.get(c);d||(d=o.querySelector(pf(c)),d||(t=yt({src:t,async:!0},r),(r=Ci.get(c))&&X0(t,r),d=o.createElement("script"),he(d),zn(d,"link",t),o.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(c,d))}},S:function(t,r,o){ta.S(t,r,o);var s=Vl;if(s&&t){var c=_(s).hoistableStyles,d=al(t);r=r||"default";var x=c.get(d);if(!x){var T={loading:fu,preload:null};if(x=s.querySelector(df(d)))T.loading=Wf|Ii;else{t=yt({rel:"stylesheet",href:t,"data-precedence":r},o),(o=Ci.get(d))&&K0(t,o);var z=x=s.createElement("link");he(z),zn(z,"link",t),z._p=new Promise(function(Z,Se){z.onload=Z,z.onerror=Se}),z.addEventListener("load",function(){T.loading|=Wf}),z.addEventListener("error",function(){T.loading|=SN}),T.loading|=Ii,Ch(x,r,s)}x={type:"stylesheet",instance:x,count:1,state:T},c.set(d,x)}}},M:function(t,r){ta.M(t,r);var o=Vl;if(o&&t){var s=_(o).hoistableScripts,c=sl(t),d=s.get(c);d||(d=o.querySelector(pf(c)),d||(t=yt({src:t,async:!0,type:"module"},r),(r=Ci.get(c))&&X0(t,r),d=o.createElement("script"),he(d),zn(d,"link",t),o.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(c,d))}}};var Vl=typeof document>"u"?null:document,Am=null,ed=null,SA=null,vm=null,du=ML,td={$$typeof:uo,Provider:null,Consumer:null,_currentValue:du,_currentValue2:du,_threadCount:0},TN="%c%s%c ",ON="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",RN="",xm=" ",y5=Function.prototype.bind,FN=!1,NN=null,DN=null,BN=null,UN=null,MN=null,_N=null,jN=null,PN=null,LN=null;NN=function(t,r,o,s){r=e(t,r),r!==null&&(o=n(r.memoizedState,o,0,s),r.memoizedState=o,r.baseState=o,t.memoizedProps=yt({},t.memoizedProps),o=Cr(t,2),o!==null&&ln(o,t,2))},DN=function(t,r,o){r=e(t,r),r!==null&&(o=u(r.memoizedState,o,0),r.memoizedState=o,r.baseState=o,t.memoizedProps=yt({},t.memoizedProps),o=Cr(t,2),o!==null&&ln(o,t,2))},BN=function(t,r,o,s){r=e(t,r),r!==null&&(o=i(r.memoizedState,o,s),r.memoizedState=o,r.baseState=o,t.memoizedProps=yt({},t.memoizedProps),o=Cr(t,2),o!==null&&ln(o,t,2))},UN=function(t,r,o){t.pendingProps=n(t.memoizedProps,r,0,o),t.alternate&&(t.alternate.pendingProps=t.pendingProps),r=Cr(t,2),r!==null&&ln(r,t,2)},MN=function(t,r){t.pendingProps=u(t.memoizedProps,r,0),t.alternate&&(t.alternate.pendingProps=t.pendingProps),r=Cr(t,2),r!==null&&ln(r,t,2)},_N=function(t,r,o){t.pendingProps=i(t.memoizedProps,r,o),t.alternate&&(t.alternate.pendingProps=t.pendingProps),r=Cr(t,2),r!==null&&ln(r,t,2)},jN=function(t){var r=Cr(t,2);r!==null&&ln(r,t,2)},PN=function(t){f=t},LN=function(t){l=t};var Em=!0,wm=null,IA=!1,es=null,ts=null,ns=null,nd=new Map,rd=new Map,rs=[],b5="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(" "),Sm=null;if(Fh.prototype.render=rb.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error("Cannot update an unmounted root.");var o=arguments;typeof o[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):F(o[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof o[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),o=t;var s=r.current,c=Qr(s);J0(s,c,o,r,null,null)},Fh.prototype.unmount=rb.prototype.unmount=function(){var t=arguments;if(typeof t[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),t=this._internalRoot,t!==null){this._internalRoot=null;var r=t.containerInfo;(_t&(yr|$i))!==Xr&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),J0(t.current,2,null,t,null,null),nl(),r[qa]=null}},Fh.prototype.unstable_scheduleHydration=function(t){if(t){var r=ot();t={blockedOn:null,target:t,priority:r};for(var o=0;o<rs.length&&r!==0&&r<rs[o].priority;o++);rs.splice(o,0,t),o===0&&oR(t)}},(function(){var t=ib.version;if(t!=="19.1.1")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
270
- - react: `+(t+`
271
- - react-dom: 19.1.1
272
- Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Mt.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error("Unable to find node on an unmounted component."):(t=Object.keys(t).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+t));return t=H(r),t=t!==null?k(t):null,t=t===null?null:t.stateNode,t},!(function(){var t={bundleType:1,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:Fe,reconcilerVersion:"19.1.1"};return t.overrideHookState=NN,t.overrideHookStateDeletePath=DN,t.overrideHookStateRenamePath=BN,t.overrideProps=UN,t.overridePropsDeletePath=MN,t.overridePropsRenamePath=_N,t.scheduleUpdate=jN,t.setErrorHandler=PN,t.setSuspenseHandler=LN,t.scheduleRefresh=R,t.scheduleRoot=I,t.setRefreshHandler=U,t.getCurrentFiber=SL,t.getLaneLabelMap=IL,t.injectProfilingHooks=ve,Q(t)})()&&ho&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var kN=window.location.protocol;/^(https?|file):$/.test(kN)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(kN==="file:"?`
273
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}od.createRoot=function(t,r){if(!F(t))throw Error("Target container is not a DOM element.");uR(t);var o=!1,s="",c=pT,d=hT,x=mT,T=null;return r!=null&&(r.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof r=="object"&&r!==null&&r.$$typeof===Pa&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
274
-
275
- let root = createRoot(domContainer);
276
- root.render(<App />);`),r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onUncaughtError!==void 0&&(c=r.onUncaughtError),r.onCaughtError!==void 0&&(d=r.onCaughtError),r.onRecoverableError!==void 0&&(x=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(T=r.unstable_transitionCallbacks)),r=WO(t,1,!1,null,null,o,s,c,d,x,T,null),t[qa]=r.current,L0(t),new rb(r)},od.hydrateRoot=function(t,r,o){if(!F(t))throw Error("Target container is not a DOM element.");uR(t),r===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var s=!1,c="",d=pT,x=hT,T=mT,z=null,Z=null;return o!=null&&(o.unstable_strictMode===!0&&(s=!0),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onUncaughtError!==void 0&&(d=o.onUncaughtError),o.onCaughtError!==void 0&&(x=o.onCaughtError),o.onRecoverableError!==void 0&&(T=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(z=o.unstable_transitionCallbacks),o.formState!==void 0&&(Z=o.formState)),r=WO(t,1,!0,r,o??null,s,c,d,x,T,z,Z),r.context=eR(null),o=r.current,s=Qr(o),s=Me(s),c=Fa(s),c.callback=null,Na(o,c,s),o=s,r.current.lanes=o,ze(r,o),ao(r),t[qa]=r.current,L0(t),new Fh(r)},od.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),od}var tD;function D5(){return tD||(tD=1,FA.exports=N5()),FA.exports}var B5=D5(),U5=JM();function hd({isOpen:e,onClose:n,title:i,children:a,className:u,url:l}){je.useEffect(()=>{if(e){const h=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=h}}},[e]);const f=()=>{var h;l&&((h=globalThis==null?void 0:globalThis.open)==null||h.call(globalThis,l,"_blank","noopener,noreferrer"),n())};if(!e)return null;const p=ee.jsxDEV("div",{className:"modal-overlay",onClick:n,children:ee.jsxDEV("div",{className:`modal-content ${u}`,onClick:h=>h.stopPropagation(),children:[ee.jsxDEV("div",{className:"modal-header",children:[ee.jsxDEV("h2",{className:"modal-title",children:i},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:46,columnNumber:11},this),ee.jsxDEV("div",{className:"modal-header-actions",children:[l&&ee.jsxDEV("button",{className:"modal-open-new-window",onClick:f,"aria-label":"Open in new window",title:"Open in new window",type:"button",children:ee.jsxDEV("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:[ee.jsxDEV("path",{d:"M18 13v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:67,columnNumber:19},this),ee.jsxDEV("polyline",{points:"15 3 21 3 21 9"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:68,columnNumber:19},this),ee.jsxDEV("line",{x1:"10",y1:"14",x2:"21",y2:"3"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:69,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:56,columnNumber:17},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:49,columnNumber:15},this),ee.jsxDEV("button",{className:"modal-close",onClick:n,type:"button",children:"×"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:73,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:47,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:45,columnNumber:9},this),ee.jsxDEV("div",{className:"modal-body",children:a},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:78,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:41,columnNumber:7},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:40,columnNumber:5},this);return typeof document<"u"&&document.body?U5.createPortal(p,document.body):p}const Gl=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function M5(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Td(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Su(e,...n){if(!M5(e))throw new Error("Uint8Array expected");if(n.length>0&&!n.includes(e.length))throw new Error("Uint8Array expected of length "+n+", got length="+e.length)}function _5(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Td(e.outputLen),Td(e.blockLen)}function nc(e,n=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(n&&e.finished)throw new Error("Hash#digest() has already been called")}function WM(e,n){Su(e);const i=n.outputLen;if(e.length<i)throw new Error("digestInto() expects output buffer of length at least "+i)}function j5(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function rc(...e){for(let n=0;n<e.length;n++)e[n].fill(0)}function UA(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Ao(e,n){return e<<32-n|e>>>n}const P5=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function L5(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function k5(e){for(let n=0;n<e.length;n++)e[n]=L5(e[n]);return e}const nD=P5?e=>e:k5;function $5(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function fg(e){return typeof e=="string"&&(e=$5(e)),Su(e),e}function q5(...e){let n=0;for(let a=0;a<e.length;a++){const u=e[a];Su(u),n+=u.length}const i=new Uint8Array(n);for(let a=0,u=0;a<e.length;a++){const l=e[a];i.set(l,u),u+=l.length}return i}let sS=class{};function e8(e){const n=a=>e().update(fg(a)).digest(),i=e();return n.outputLen=i.outputLen,n.blockLen=i.blockLen,n.create=()=>e(),n}function H5(e=32){if(Gl&&typeof Gl.getRandomValues=="function")return Gl.getRandomValues(new Uint8Array(e));if(Gl&&typeof Gl.randomBytes=="function")return Uint8Array.from(Gl.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const uS=BigInt(0),Sw=BigInt(1);function up(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function lS(e){if(!up(e))throw new Error("Uint8Array expected")}function Od(e,n){if(typeof n!="boolean")throw new Error(e+" boolean expected, got "+n)}function Om(e){const n=e.toString(16);return n.length&1?"0"+n:n}function t8(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?uS:BigInt("0x"+e)}const n8=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",z5=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function Rd(e){if(lS(e),n8)return e.toHex();let n="";for(let i=0;i<e.length;i++)n+=z5[e[i]];return n}const ia={_0:48,_9:57,A:65,F:70,a:97,f:102};function rD(e){if(e>=ia._0&&e<=ia._9)return e-ia._0;if(e>=ia.A&&e<=ia.F)return e-(ia.A-10);if(e>=ia.a&&e<=ia.f)return e-(ia.a-10)}function Xm(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(n8)return Uint8Array.fromHex(e);const n=e.length,i=n/2;if(n%2)throw new Error("hex string expected, got unpadded hex of length "+n);const a=new Uint8Array(i);for(let u=0,l=0;u<i;u++,l+=2){const f=rD(e.charCodeAt(l)),p=rD(e.charCodeAt(l+1));if(f===void 0||p===void 0){const h=e[l]+e[l+1];throw new Error('hex string expected, got non-hex character "'+h+'" at index '+l)}a[u]=f*16+p}return a}function wu(e){return t8(Rd(e))}function r8(e){return lS(e),t8(Rd(Uint8Array.from(e).reverse()))}function lp(e,n){return Xm(e.toString(16).padStart(n*2,"0"))}function i8(e,n){return lp(e,n).reverse()}function Oi(e,n,i){let a;if(typeof n=="string")try{a=Xm(n)}catch(l){throw new Error(e+" must be hex string or Uint8Array, cause: "+l)}else if(up(n))a=Uint8Array.from(n);else throw new Error(e+" must be hex string or Uint8Array");const u=a.length;if(typeof i=="number"&&u!==i)throw new Error(e+" of length "+i+" expected, got "+u);return a}function Zm(...e){let n=0;for(let a=0;a<e.length;a++){const u=e[a];lS(u),n+=u.length}const i=new Uint8Array(n);for(let a=0,u=0;a<e.length;a++){const l=e[a];i.set(l,u),u+=l.length}return i}const MA=e=>typeof e=="bigint"&&uS<=e;function cS(e,n,i){return MA(e)&&MA(n)&&MA(i)&&n<=e&&e<i}function Zl(e,n,i,a){if(!cS(n,i,a))throw new Error("expected valid "+e+": "+i+" <= n < "+a+", got "+n)}function V5(e){let n;for(n=0;e>uS;e>>=Sw,n+=1);return n}const dg=e=>(Sw<<BigInt(e))-Sw,_A=e=>new Uint8Array(e),iD=e=>Uint8Array.from(e);function G5(e,n,i){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof n!="number"||n<2)throw new Error("qByteLen must be a number");if(typeof i!="function")throw new Error("hmacFn must be a function");let a=_A(e),u=_A(e),l=0;const f=()=>{a.fill(1),u.fill(0),l=0},p=(...A)=>i(u,a,...A),h=(A=_A(0))=>{u=p(iD([0]),A),a=p(),A.length!==0&&(u=p(iD([1]),A),a=p())},m=()=>{if(l++>=1e3)throw new Error("drbg: tried 1000 values");let A=0;const y=[];for(;A<n;){a=p();const I=a.slice();y.push(I),A+=a.length}return Zm(...y)};return(A,y)=>{f(),h(A);let I;for(;!(I=y(m()));)h();return f(),I}}const Q5={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"||up(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,n)=>n.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function pg(e,n,i={}){const a=(u,l,f)=>{const p=Q5[l];if(typeof p!="function")throw new Error("invalid validator function");const h=e[u];if(!(f&&h===void 0)&&!p(h,e))throw new Error("param "+String(u)+" is invalid. Expected "+l+", got "+h)};for(const[u,l]of Object.entries(n))a(u,l,!1);for(const[u,l]of Object.entries(i))a(u,l,!0);return e}function oD(e){const n=new WeakMap;return(i,...a)=>{const u=n.get(i);if(u!==void 0)return u;const l=e(i,...a);return n.set(i,l),l}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ur=BigInt(0),vr=BigInt(1),vu=BigInt(2),Y5=BigInt(3),o8=BigInt(4),a8=BigInt(5),s8=BigInt(8);function Br(e,n){const i=e%n;return i>=Ur?i:n+i}function Ti(e,n,i){let a=e;for(;n-- >Ur;)a*=a,a%=i;return a}function Iw(e,n){if(e===Ur)throw new Error("invert: expected non-zero number");if(n<=Ur)throw new Error("invert: expected positive modulus, got "+n);let i=Br(e,n),a=n,u=Ur,l=vr;for(;i!==Ur;){const p=a/i,h=a%i,m=u-l*p;a=i,i=h,u=l,l=m}if(a!==vr)throw new Error("invert: does not exist");return Br(u,n)}function u8(e,n){const i=(e.ORDER+vr)/o8,a=e.pow(n,i);if(!e.eql(e.sqr(a),n))throw new Error("Cannot find square root");return a}function K5(e,n){const i=(e.ORDER-a8)/s8,a=e.mul(n,vu),u=e.pow(a,i),l=e.mul(n,u),f=e.mul(e.mul(l,vu),u),p=e.mul(l,e.sub(f,e.ONE));if(!e.eql(e.sqr(p),n))throw new Error("Cannot find square root");return p}function X5(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let n=e-vr,i=0;for(;n%vu===Ur;)n/=vu,i++;let a=vu;const u=fS(e);for(;aD(u,a)===1;)if(a++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(i===1)return u8;let l=u.pow(a,n);const f=(n+vr)/vu;return function(h,m){if(h.is0(m))return m;if(aD(h,m)!==1)throw new Error("Cannot find square root");let v=i,A=h.mul(h.ONE,l),y=h.pow(m,n),I=h.pow(m,f);for(;!h.eql(y,h.ONE);){if(h.is0(y))return h.ZERO;let R=1,U=h.sqr(y);for(;!h.eql(U,h.ONE);)if(R++,U=h.sqr(U),R===v)throw new Error("Cannot find square root");const F=vr<<BigInt(v-R-1),N=h.pow(A,F);v=R,A=h.sqr(N),y=h.mul(y,A),I=h.mul(I,N)}return I}}function Z5(e){return e%o8===Y5?u8:e%s8===a8?K5:X5(e)}const J5=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function W5(e){const n={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},i=J5.reduce((a,u)=>(a[u]="function",a),n);return pg(e,i)}function e$(e,n,i){if(i<Ur)throw new Error("invalid exponent, negatives unsupported");if(i===Ur)return e.ONE;if(i===vr)return n;let a=e.ONE,u=n;for(;i>Ur;)i&vr&&(a=e.mul(a,u)),u=e.sqr(u),i>>=vr;return a}function l8(e,n,i=!1){const a=new Array(n.length).fill(i?e.ZERO:void 0),u=n.reduce((f,p,h)=>e.is0(p)?f:(a[h]=f,e.mul(f,p)),e.ONE),l=e.inv(u);return n.reduceRight((f,p,h)=>e.is0(p)?f:(a[h]=e.mul(f,a[h]),e.mul(f,p)),l),a}function aD(e,n){const i=(e.ORDER-vr)/vu,a=e.pow(n,i),u=e.eql(a,e.ONE),l=e.eql(a,e.ZERO),f=e.eql(a,e.neg(e.ONE));if(!u&&!l&&!f)throw new Error("invalid Legendre symbol result");return u?1:l?0:-1}function c8(e,n){n!==void 0&&Td(n);const i=n!==void 0?n:e.toString(2).length,a=Math.ceil(i/8);return{nBitLength:i,nByteLength:a}}function fS(e,n,i=!1,a={}){if(e<=Ur)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:u,nByteLength:l}=c8(e,n);if(l>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let f;const p=Object.freeze({ORDER:e,isLE:i,BITS:u,BYTES:l,MASK:dg(u),ZERO:Ur,ONE:vr,create:h=>Br(h,e),isValid:h=>{if(typeof h!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof h);return Ur<=h&&h<e},is0:h=>h===Ur,isOdd:h=>(h&vr)===vr,neg:h=>Br(-h,e),eql:(h,m)=>h===m,sqr:h=>Br(h*h,e),add:(h,m)=>Br(h+m,e),sub:(h,m)=>Br(h-m,e),mul:(h,m)=>Br(h*m,e),pow:(h,m)=>e$(p,h,m),div:(h,m)=>Br(h*Iw(m,e),e),sqrN:h=>h*h,addN:(h,m)=>h+m,subN:(h,m)=>h-m,mulN:(h,m)=>h*m,inv:h=>Iw(h,e),sqrt:a.sqrt||(h=>(f||(f=Z5(e)),f(p,h))),toBytes:h=>i?i8(h,l):lp(h,l),fromBytes:h=>{if(h.length!==l)throw new Error("Field.fromBytes: expected "+l+" bytes, got "+h.length);return i?r8(h):wu(h)},invertBatch:h=>l8(p,h),cmov:(h,m,v)=>v?m:h});return Object.freeze(p)}function f8(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const n=e.toString(2).length;return Math.ceil(n/8)}function d8(e){const n=f8(e);return n+Math.ceil(n/2)}function t$(e,n,i=!1){const a=e.length,u=f8(n),l=d8(n);if(a<16||a<l||a>1024)throw new Error("expected "+l+"-1024 bytes of input, got "+a);const f=i?r8(e):wu(e),p=Br(f,n-vr)+vr;return i?i8(p,u):lp(p,u)}function n$(e,n,i,a){if(typeof e.setBigUint64=="function")return e.setBigUint64(n,i,a);const u=BigInt(32),l=BigInt(4294967295),f=Number(i>>u&l),p=Number(i&l),h=a?4:0,m=a?0:4;e.setUint32(n+h,f,a),e.setUint32(n+m,p,a)}function r$(e,n,i){return e&n^~e&i}function i$(e,n,i){return e&n^e&i^n&i}class o$ extends sS{constructor(n,i,a,u){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=n,this.outputLen=i,this.padOffset=a,this.isLE=u,this.buffer=new Uint8Array(n),this.view=UA(this.buffer)}update(n){nc(this),n=fg(n),Su(n);const{view:i,buffer:a,blockLen:u}=this,l=n.length;for(let f=0;f<l;){const p=Math.min(u-this.pos,l-f);if(p===u){const h=UA(n);for(;u<=l-f;f+=u)this.process(h,f);continue}a.set(n.subarray(f,f+p),this.pos),this.pos+=p,f+=p,this.pos===u&&(this.process(i,0),this.pos=0)}return this.length+=n.length,this.roundClean(),this}digestInto(n){nc(this),WM(n,this),this.finished=!0;const{buffer:i,view:a,blockLen:u,isLE:l}=this;let{pos:f}=this;i[f++]=128,rc(this.buffer.subarray(f)),this.padOffset>u-f&&(this.process(a,0),f=0);for(let A=f;A<u;A++)i[A]=0;n$(a,u-8,BigInt(this.length*8),l),this.process(a,0);const p=UA(n),h=this.outputLen;if(h%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const m=h/4,v=this.get();if(m>v.length)throw new Error("_sha2: outputLen bigger than state");for(let A=0;A<m;A++)p.setUint32(4*A,v[A],l)}digest(){const{buffer:n,outputLen:i}=this;this.digestInto(n);const a=n.slice(0,i);return this.destroy(),a}_cloneInto(n){n||(n=new this.constructor),n.set(...this.get());const{blockLen:i,buffer:a,length:u,finished:l,destroyed:f,pos:p}=this;return n.destroyed=f,n.finished=l,n.length=u,n.pos=p,u%i&&n.buffer.set(a),n}clone(){return this._cloneInto()}}const os=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Rm=BigInt(2**32-1),sD=BigInt(32);function a$(e,n=!1){return n?{h:Number(e&Rm),l:Number(e>>sD&Rm)}:{h:Number(e>>sD&Rm)|0,l:Number(e&Rm)|0}}function s$(e,n=!1){const i=e.length;let a=new Uint32Array(i),u=new Uint32Array(i);for(let l=0;l<i;l++){const{h:f,l:p}=a$(e[l],n);[a[l],u[l]]=[f,p]}return[a,u]}const u$=(e,n,i)=>e<<i|n>>>32-i,l$=(e,n,i)=>n<<i|e>>>32-i,c$=(e,n,i)=>n<<i-32|e>>>64-i,f$=(e,n,i)=>e<<i-32|n>>>64-i,d$=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]),as=new Uint32Array(64);class p$ extends o${constructor(n=32){super(64,n,8,!1),this.A=os[0]|0,this.B=os[1]|0,this.C=os[2]|0,this.D=os[3]|0,this.E=os[4]|0,this.F=os[5]|0,this.G=os[6]|0,this.H=os[7]|0}get(){const{A:n,B:i,C:a,D:u,E:l,F:f,G:p,H:h}=this;return[n,i,a,u,l,f,p,h]}set(n,i,a,u,l,f,p,h){this.A=n|0,this.B=i|0,this.C=a|0,this.D=u|0,this.E=l|0,this.F=f|0,this.G=p|0,this.H=h|0}process(n,i){for(let A=0;A<16;A++,i+=4)as[A]=n.getUint32(i,!1);for(let A=16;A<64;A++){const y=as[A-15],I=as[A-2],R=Ao(y,7)^Ao(y,18)^y>>>3,U=Ao(I,17)^Ao(I,19)^I>>>10;as[A]=U+as[A-7]+R+as[A-16]|0}let{A:a,B:u,C:l,D:f,E:p,F:h,G:m,H:v}=this;for(let A=0;A<64;A++){const y=Ao(p,6)^Ao(p,11)^Ao(p,25),I=v+y+r$(p,h,m)+d$[A]+as[A]|0,U=(Ao(a,2)^Ao(a,13)^Ao(a,22))+i$(a,u,l)|0;v=m,m=h,h=p,p=f+I|0,f=l,l=u,u=a,a=I+U|0}a=a+this.A|0,u=u+this.B|0,l=l+this.C|0,f=f+this.D|0,p=p+this.E|0,h=h+this.F|0,m=m+this.G|0,v=v+this.H|0,this.set(a,u,l,f,p,h,m,v)}roundClean(){rc(as)}destroy(){this.set(0,0,0,0,0,0,0,0),rc(this.buffer)}}const p8=e8(()=>new p$);class h8 extends sS{constructor(n,i){super(),this.finished=!1,this.destroyed=!1,_5(n);const a=fg(i);if(this.iHash=n.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 u=this.blockLen,l=new Uint8Array(u);l.set(a.length>u?n.create().update(a).digest():a);for(let f=0;f<l.length;f++)l[f]^=54;this.iHash.update(l),this.oHash=n.create();for(let f=0;f<l.length;f++)l[f]^=106;this.oHash.update(l),rc(l)}update(n){return nc(this),this.iHash.update(n),this}digestInto(n){nc(this),Su(n,this.outputLen),this.finished=!0,this.iHash.digestInto(n),this.oHash.update(n),this.oHash.digestInto(n),this.destroy()}digest(){const n=new Uint8Array(this.oHash.outputLen);return this.digestInto(n),n}_cloneInto(n){n||(n=Object.create(Object.getPrototypeOf(this),{}));const{oHash:i,iHash:a,finished:u,destroyed:l,blockLen:f,outputLen:p}=this;return n=n,n.finished=u,n.destroyed=l,n.blockLen=f,n.outputLen=p,n.oHash=i._cloneInto(n.oHash),n.iHash=a._cloneInto(n.iHash),n}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const m8=(e,n,i)=>new h8(e,n).update(i).digest();m8.create=(e,n)=>new h8(e,n);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const uD=BigInt(0),Cw=BigInt(1);function jA(e,n){const i=n.negate();return e?i:n}function g8(e,n){if(!Number.isSafeInteger(e)||e<=0||e>n)throw new Error("invalid window size, expected [1.."+n+"], got W="+e)}function PA(e,n){g8(e,n);const i=Math.ceil(n/e)+1,a=2**(e-1),u=2**e,l=dg(e),f=BigInt(e);return{windows:i,windowSize:a,mask:l,maxNumber:u,shiftBy:f}}function lD(e,n,i){const{windowSize:a,mask:u,maxNumber:l,shiftBy:f}=i;let p=Number(e&u),h=e>>f;p>a&&(p-=l,h+=Cw);const m=n*a,v=m+Math.abs(p)-1,A=p===0,y=p<0,I=n%2!==0;return{nextN:h,offset:v,isZero:A,isNeg:y,isNegF:I,offsetF:m}}function h$(e,n){if(!Array.isArray(e))throw new Error("array expected");e.forEach((i,a)=>{if(!(i instanceof n))throw new Error("invalid point at index "+a)})}function m$(e,n){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((i,a)=>{if(!n.isValid(i))throw new Error("invalid scalar at index "+a)})}const LA=new WeakMap,y8=new WeakMap;function kA(e){return y8.get(e)||1}function g$(e,n){return{constTimeNegate:jA,hasPrecomputes(i){return kA(i)!==1},unsafeLadder(i,a,u=e.ZERO){let l=i;for(;a>uD;)a&Cw&&(u=u.add(l)),l=l.double(),a>>=Cw;return u},precomputeWindow(i,a){const{windows:u,windowSize:l}=PA(a,n),f=[];let p=i,h=p;for(let m=0;m<u;m++){h=p,f.push(h);for(let v=1;v<l;v++)h=h.add(p),f.push(h);p=h.double()}return f},wNAF(i,a,u){let l=e.ZERO,f=e.BASE;const p=PA(i,n);for(let h=0;h<p.windows;h++){const{nextN:m,offset:v,isZero:A,isNeg:y,isNegF:I,offsetF:R}=lD(u,h,p);u=m,A?f=f.add(jA(I,a[R])):l=l.add(jA(y,a[v]))}return{p:l,f}},wNAFUnsafe(i,a,u,l=e.ZERO){const f=PA(i,n);for(let p=0;p<f.windows&&u!==uD;p++){const{nextN:h,offset:m,isZero:v,isNeg:A}=lD(u,p,f);if(u=h,!v){const y=a[m];l=l.add(A?y.negate():y)}}return l},getPrecomputes(i,a,u){let l=LA.get(a);return l||(l=this.precomputeWindow(a,i),i!==1&&LA.set(a,u(l))),l},wNAFCached(i,a,u){const l=kA(i);return this.wNAF(l,this.getPrecomputes(l,i,u),a)},wNAFCachedUnsafe(i,a,u,l){const f=kA(i);return f===1?this.unsafeLadder(i,a,l):this.wNAFUnsafe(f,this.getPrecomputes(f,i,u),a,l)},setWindowSize(i,a){g8(a,n),y8.set(i,a),LA.delete(i)}}}function y$(e,n,i,a){h$(i,e),m$(a,n);const u=i.length,l=a.length;if(u!==l)throw new Error("arrays of points and scalars must have equal length");const f=e.ZERO,p=V5(BigInt(u));let h=1;p>12?h=p-3:p>4?h=p-2:p>0&&(h=2);const m=dg(h),v=new Array(Number(m)+1).fill(f),A=Math.floor((n.BITS-1)/h)*h;let y=f;for(let I=A;I>=0;I-=h){v.fill(f);for(let U=0;U<l;U++){const F=a[U],N=Number(F>>BigInt(I)&m);v[N]=v[N].add(i[U])}let R=f;for(let U=v.length-1,F=f;U>0;U--)F=F.add(v[U]),R=R.add(F);if(y=y.add(R),I!==0)for(let U=0;U<h;U++)y=y.double()}return y}function b8(e){return W5(e.Fp),pg(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...c8(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function cD(e){e.lowS!==void 0&&Od("lowS",e.lowS),e.prehash!==void 0&&Od("prehash",e.prehash)}function b$(e){const n=b8(e);pg(n,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:i,Fp:a,a:u}=n;if(i){if(!a.eql(u,a.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if(typeof i!="object"||typeof i.beta!="bigint"||typeof i.splitScalar!="function")throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...n})}class A$ extends Error{constructor(n=""){super(n)}}const ua={Err:A$,_tlv:{encode:(e,n)=>{const{Err:i}=ua;if(e<0||e>256)throw new i("tlv.encode: wrong tag");if(n.length&1)throw new i("tlv.encode: unpadded data");const a=n.length/2,u=Om(a);if(u.length/2&128)throw new i("tlv.encode: long form length too big");const l=a>127?Om(u.length/2|128):"";return Om(e)+l+u+n},decode(e,n){const{Err:i}=ua;let a=0;if(e<0||e>256)throw new i("tlv.encode: wrong tag");if(n.length<2||n[a++]!==e)throw new i("tlv.decode: wrong tlv");const u=n[a++],l=!!(u&128);let f=0;if(!l)f=u;else{const h=u&127;if(!h)throw new i("tlv.decode(long): indefinite length not supported");if(h>4)throw new i("tlv.decode(long): byte length is too big");const m=n.subarray(a,a+h);if(m.length!==h)throw new i("tlv.decode: length bytes not complete");if(m[0]===0)throw new i("tlv.decode(long): zero leftmost byte");for(const v of m)f=f<<8|v;if(a+=h,f<128)throw new i("tlv.decode(long): not minimal encoding")}const p=n.subarray(a,a+f);if(p.length!==f)throw new i("tlv.decode: wrong value length");return{v:p,l:n.subarray(a+f)}}},_int:{encode(e){const{Err:n}=ua;if(e<fa)throw new n("integer: negative integers are not allowed");let i=Om(e);if(Number.parseInt(i[0],16)&8&&(i="00"+i),i.length&1)throw new n("unexpected DER parsing assertion: unpadded hex");return i},decode(e){const{Err:n}=ua;if(e[0]&128)throw new n("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new n("invalid signature integer: unnecessary leading zero");return wu(e)}},toSig(e){const{Err:n,_int:i,_tlv:a}=ua,u=Oi("signature",e),{v:l,l:f}=a.decode(48,u);if(f.length)throw new n("invalid signature: left bytes after parsing");const{v:p,l:h}=a.decode(2,l),{v:m,l:v}=a.decode(2,h);if(v.length)throw new n("invalid signature: left bytes after parsing");return{r:i.decode(p),s:i.decode(m)}},hexFromSig(e){const{_tlv:n,_int:i}=ua,a=n.encode(2,i.encode(e.r)),u=n.encode(2,i.encode(e.s)),l=a+u;return n.encode(48,l)}};function $A(e,n){return Rd(lp(e,n))}const fa=BigInt(0),Dn=BigInt(1);BigInt(2);const qA=BigInt(3),v$=BigInt(4);function x$(e){const n=b$(e),{Fp:i}=n,a=fS(n.n,n.nBitLength),u=n.toBytes||((M,H,k)=>{const X=H.toAffine();return Zm(Uint8Array.from([4]),i.toBytes(X.x),i.toBytes(X.y))}),l=n.fromBytes||(M=>{const H=M.subarray(1),k=i.fromBytes(H.subarray(0,i.BYTES)),X=i.fromBytes(H.subarray(i.BYTES,2*i.BYTES));return{x:k,y:X}});function f(M){const{a:H,b:k}=n,X=i.sqr(M),re=i.mul(X,M);return i.add(i.add(re,i.mul(M,H)),k)}function p(M,H){const k=i.sqr(H),X=f(M);return i.eql(k,X)}if(!p(n.Gx,n.Gy))throw new Error("bad curve params: generator point");const h=i.mul(i.pow(n.a,qA),v$),m=i.mul(i.sqr(n.b),BigInt(27));if(i.is0(i.add(h,m)))throw new Error("bad curve params: a or b");function v(M){return cS(M,Dn,n.n)}function A(M){const{allowedPrivateKeyLengths:H,nByteLength:k,wrapPrivateKey:X,n:re}=n;if(H&&typeof M!="bigint"){if(up(M)&&(M=Rd(M)),typeof M!="string"||!H.includes(M.length))throw new Error("invalid private key");M=M.padStart(k*2,"0")}let ie;try{ie=typeof M=="bigint"?M:wu(Oi("private key",M,k))}catch{throw new Error("invalid private key, expected hex or "+k+" bytes, got "+typeof M)}return X&&(ie=Br(ie,re)),Zl("private key",ie,Dn,re),ie}function y(M){if(!(M instanceof U))throw new Error("ProjectivePoint expected")}const I=oD((M,H)=>{const{px:k,py:X,pz:re}=M;if(i.eql(re,i.ONE))return{x:k,y:X};const ie=M.is0();H==null&&(H=ie?i.ONE:i.inv(re));const O=i.mul(k,H),P=i.mul(X,H),L=i.mul(re,H);if(ie)return{x:i.ZERO,y:i.ZERO};if(!i.eql(L,i.ONE))throw new Error("invZ was invalid");return{x:O,y:P}}),R=oD(M=>{if(M.is0()){if(n.allowInfinityPoint&&!i.is0(M.py))return;throw new Error("bad point: ZERO")}const{x:H,y:k}=M.toAffine();if(!i.isValid(H)||!i.isValid(k))throw new Error("bad point: x or y not FE");if(!p(H,k))throw new Error("bad point: equation left != right");if(!M.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class U{constructor(H,k,X){if(H==null||!i.isValid(H))throw new Error("x required");if(k==null||!i.isValid(k)||i.is0(k))throw new Error("y required");if(X==null||!i.isValid(X))throw new Error("z required");this.px=H,this.py=k,this.pz=X,Object.freeze(this)}static fromAffine(H){const{x:k,y:X}=H||{};if(!H||!i.isValid(k)||!i.isValid(X))throw new Error("invalid affine point");if(H instanceof U)throw new Error("projective point not allowed");const re=ie=>i.eql(ie,i.ZERO);return re(k)&&re(X)?U.ZERO:new U(k,X,i.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(H){const k=l8(i,H.map(X=>X.pz));return H.map((X,re)=>X.toAffine(k[re])).map(U.fromAffine)}static fromHex(H){const k=U.fromAffine(l(Oi("pointHex",H)));return k.assertValidity(),k}static fromPrivateKey(H){return U.BASE.multiply(A(H))}static msm(H,k){return y$(U,a,H,k)}_setWindowSize(H){B.setWindowSize(this,H)}assertValidity(){R(this)}hasEvenY(){const{y:H}=this.toAffine();if(i.isOdd)return!i.isOdd(H);throw new Error("Field doesn't support isOdd")}equals(H){y(H);const{px:k,py:X,pz:re}=this,{px:ie,py:O,pz:P}=H,L=i.eql(i.mul(k,P),i.mul(ie,re)),q=i.eql(i.mul(X,P),i.mul(O,re));return L&&q}negate(){return new U(this.px,i.neg(this.py),this.pz)}double(){const{a:H,b:k}=n,X=i.mul(k,qA),{px:re,py:ie,pz:O}=this;let P=i.ZERO,L=i.ZERO,q=i.ZERO,oe=i.mul(re,re),ge=i.mul(ie,ie),Ee=i.mul(O,O),D=i.mul(re,ie);return D=i.add(D,D),q=i.mul(re,O),q=i.add(q,q),P=i.mul(H,q),L=i.mul(X,Ee),L=i.add(P,L),P=i.sub(ge,L),L=i.add(ge,L),L=i.mul(P,L),P=i.mul(D,P),q=i.mul(X,q),Ee=i.mul(H,Ee),D=i.sub(oe,Ee),D=i.mul(H,D),D=i.add(D,q),q=i.add(oe,oe),oe=i.add(q,oe),oe=i.add(oe,Ee),oe=i.mul(oe,D),L=i.add(L,oe),Ee=i.mul(ie,O),Ee=i.add(Ee,Ee),oe=i.mul(Ee,D),P=i.sub(P,oe),q=i.mul(Ee,ge),q=i.add(q,q),q=i.add(q,q),new U(P,L,q)}add(H){y(H);const{px:k,py:X,pz:re}=this,{px:ie,py:O,pz:P}=H;let L=i.ZERO,q=i.ZERO,oe=i.ZERO;const ge=n.a,Ee=i.mul(n.b,qA);let D=i.mul(k,ie),fe=i.mul(X,O),be=i.mul(re,P),te=i.add(k,X),j=i.add(ie,O);te=i.mul(te,j),j=i.add(D,fe),te=i.sub(te,j),j=i.add(k,re);let ue=i.add(ie,P);return j=i.mul(j,ue),ue=i.add(D,be),j=i.sub(j,ue),ue=i.add(X,re),L=i.add(O,P),ue=i.mul(ue,L),L=i.add(fe,be),ue=i.sub(ue,L),oe=i.mul(ge,j),L=i.mul(Ee,be),oe=i.add(L,oe),L=i.sub(fe,oe),oe=i.add(fe,oe),q=i.mul(L,oe),fe=i.add(D,D),fe=i.add(fe,D),be=i.mul(ge,be),j=i.mul(Ee,j),fe=i.add(fe,be),be=i.sub(D,be),be=i.mul(ge,be),j=i.add(j,be),D=i.mul(fe,j),q=i.add(q,D),D=i.mul(ue,j),L=i.mul(te,L),L=i.sub(L,D),D=i.mul(te,fe),oe=i.mul(ue,oe),oe=i.add(oe,D),new U(L,q,oe)}subtract(H){return this.add(H.negate())}is0(){return this.equals(U.ZERO)}wNAF(H){return B.wNAFCached(this,H,U.normalizeZ)}multiplyUnsafe(H){const{endo:k,n:X}=n;Zl("scalar",H,fa,X);const re=U.ZERO;if(H===fa)return re;if(this.is0()||H===Dn)return this;if(!k||B.hasPrecomputes(this))return B.wNAFCachedUnsafe(this,H,U.normalizeZ);let{k1neg:ie,k1:O,k2neg:P,k2:L}=k.splitScalar(H),q=re,oe=re,ge=this;for(;O>fa||L>fa;)O&Dn&&(q=q.add(ge)),L&Dn&&(oe=oe.add(ge)),ge=ge.double(),O>>=Dn,L>>=Dn;return ie&&(q=q.negate()),P&&(oe=oe.negate()),oe=new U(i.mul(oe.px,k.beta),oe.py,oe.pz),q.add(oe)}multiply(H){const{endo:k,n:X}=n;Zl("scalar",H,Dn,X);let re,ie;if(k){const{k1neg:O,k1:P,k2neg:L,k2:q}=k.splitScalar(H);let{p:oe,f:ge}=this.wNAF(P),{p:Ee,f:D}=this.wNAF(q);oe=B.constTimeNegate(O,oe),Ee=B.constTimeNegate(L,Ee),Ee=new U(i.mul(Ee.px,k.beta),Ee.py,Ee.pz),re=oe.add(Ee),ie=ge.add(D)}else{const{p:O,f:P}=this.wNAF(H);re=O,ie=P}return U.normalizeZ([re,ie])[0]}multiplyAndAddUnsafe(H,k,X){const re=U.BASE,ie=(P,L)=>L===fa||L===Dn||!P.equals(re)?P.multiplyUnsafe(L):P.multiply(L),O=ie(this,k).add(ie(H,X));return O.is0()?void 0:O}toAffine(H){return I(this,H)}isTorsionFree(){const{h:H,isTorsionFree:k}=n;if(H===Dn)return!0;if(k)return k(U,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:H,clearCofactor:k}=n;return H===Dn?this:k?k(U,this):this.multiplyUnsafe(n.h)}toRawBytes(H=!0){return Od("isCompressed",H),this.assertValidity(),u(U,this,H)}toHex(H=!0){return Od("isCompressed",H),Rd(this.toRawBytes(H))}}U.BASE=new U(n.Gx,n.Gy,i.ONE),U.ZERO=new U(i.ZERO,i.ONE,i.ZERO);const{endo:F,nBitLength:N}=n,B=g$(U,F?Math.ceil(N/2):N);return{CURVE:n,ProjectivePoint:U,normPrivateKeyToScalar:A,weierstrassEquation:f,isWithinCurveOrder:v}}function E$(e){const n=b8(e);return pg(n,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...n})}function w$(e){const n=E$(e),{Fp:i,n:a,nByteLength:u,nBitLength:l}=n,f=i.BYTES+1,p=2*i.BYTES+1;function h(Ee){return Br(Ee,a)}function m(Ee){return Iw(Ee,a)}const{ProjectivePoint:v,normPrivateKeyToScalar:A,weierstrassEquation:y,isWithinCurveOrder:I}=x$({...n,toBytes(Ee,D,fe){const be=D.toAffine(),te=i.toBytes(be.x),j=Zm;return Od("isCompressed",fe),fe?j(Uint8Array.from([D.hasEvenY()?2:3]),te):j(Uint8Array.from([4]),te,i.toBytes(be.y))},fromBytes(Ee){const D=Ee.length,fe=Ee[0],be=Ee.subarray(1);if(D===f&&(fe===2||fe===3)){const te=wu(be);if(!cS(te,Dn,i.ORDER))throw new Error("Point is not on curve");const j=y(te);let ue;try{ue=i.sqrt(j)}catch(G){const Q=G instanceof Error?": "+G.message:"";throw new Error("Point is not on curve"+Q)}const me=(ue&Dn)===Dn;return(fe&1)===1!==me&&(ue=i.neg(ue)),{x:te,y:ue}}else if(D===p&&fe===4){const te=i.fromBytes(be.subarray(0,i.BYTES)),j=i.fromBytes(be.subarray(i.BYTES,2*i.BYTES));return{x:te,y:j}}else{const te=f,j=p;throw new Error("invalid Point, expected length of "+te+", or uncompressed "+j+", got "+D)}}});function R(Ee){const D=a>>Dn;return Ee>D}function U(Ee){return R(Ee)?h(-Ee):Ee}const F=(Ee,D,fe)=>wu(Ee.slice(D,fe));class N{constructor(D,fe,be){Zl("r",D,Dn,a),Zl("s",fe,Dn,a),this.r=D,this.s=fe,be!=null&&(this.recovery=be),Object.freeze(this)}static fromCompact(D){const fe=u;return D=Oi("compactSignature",D,fe*2),new N(F(D,0,fe),F(D,fe,2*fe))}static fromDER(D){const{r:fe,s:be}=ua.toSig(Oi("DER",D));return new N(fe,be)}assertValidity(){}addRecoveryBit(D){return new N(this.r,this.s,D)}recoverPublicKey(D){const{r:fe,s:be,recovery:te}=this,j=re(Oi("msgHash",D));if(te==null||![0,1,2,3].includes(te))throw new Error("recovery id invalid");const ue=te===2||te===3?fe+n.n:fe;if(ue>=i.ORDER)throw new Error("recovery id 2 or 3 invalid");const me=(te&1)===0?"02":"03",ne=v.fromHex(me+$A(ue,i.BYTES)),G=m(ue),Q=h(-j*G),J=h(be*G),ve=v.BASE.multiplyAndAddUnsafe(ne,Q,J);if(!ve)throw new Error("point at infinify");return ve.assertValidity(),ve}hasHighS(){return R(this.s)}normalizeS(){return this.hasHighS()?new N(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return Xm(this.toDERHex())}toDERHex(){return ua.hexFromSig(this)}toCompactRawBytes(){return Xm(this.toCompactHex())}toCompactHex(){const D=u;return $A(this.r,D)+$A(this.s,D)}}const B={isValidPrivateKey(Ee){try{return A(Ee),!0}catch{return!1}},normPrivateKeyToScalar:A,randomPrivateKey:()=>{const Ee=d8(n.n);return t$(n.randomBytes(Ee),n.n)},precompute(Ee=8,D=v.BASE){return D._setWindowSize(Ee),D.multiply(BigInt(3)),D}};function M(Ee,D=!0){return v.fromPrivateKey(Ee).toRawBytes(D)}function H(Ee){if(typeof Ee=="bigint")return!1;if(Ee instanceof v)return!0;const fe=Oi("key",Ee).length,be=i.BYTES,te=be+1,j=2*be+1;if(!(n.allowedPrivateKeyLengths||u===te))return fe===te||fe===j}function k(Ee,D,fe=!0){if(H(Ee)===!0)throw new Error("first arg must be private key");if(H(D)===!1)throw new Error("second arg must be public key");return v.fromHex(D).multiply(A(Ee)).toRawBytes(fe)}const X=n.bits2int||function(Ee){if(Ee.length>8192)throw new Error("input is too large");const D=wu(Ee),fe=Ee.length*8-l;return fe>0?D>>BigInt(fe):D},re=n.bits2int_modN||function(Ee){return h(X(Ee))},ie=dg(l);function O(Ee){return Zl("num < 2^"+l,Ee,fa,ie),lp(Ee,u)}function P(Ee,D,fe=L){if(["recovered","canonical"].some(V=>V in fe))throw new Error("sign() legacy options not supported");const{hash:be,randomBytes:te}=n;let{lowS:j,prehash:ue,extraEntropy:me}=fe;j==null&&(j=!0),Ee=Oi("msgHash",Ee),cD(fe),ue&&(Ee=Oi("prehashed msgHash",be(Ee)));const ne=re(Ee),G=A(D),Q=[O(G),O(ne)];if(me!=null&&me!==!1){const V=me===!0?te(i.BYTES):me;Q.push(Oi("extraEntropy",V))}const J=Zm(...Q),ve=ne;function Ae(V){const w=X(V);if(!I(w))return;const $=m(w),Y=v.BASE.multiply(w).toAffine(),W=h(Y.x);if(W===fa)return;const de=h($*h(ve+W*G));if(de===fa)return;let pe=(Y.x===W?0:2)|Number(Y.y&Dn),E=de;return j&&R(de)&&(E=U(de),pe^=1),new N(W,E,pe)}return{seed:J,k2sig:Ae}}const L={lowS:n.lowS,prehash:!1},q={lowS:n.lowS,prehash:!1};function oe(Ee,D,fe=L){const{seed:be,k2sig:te}=P(Ee,D,fe),j=n;return G5(j.hash.outputLen,j.nByteLength,j.hmac)(be,te)}v.BASE._setWindowSize(8);function ge(Ee,D,fe,be=q){var pe;const te=Ee;D=Oi("msgHash",D),fe=Oi("publicKey",fe);const{lowS:j,prehash:ue,format:me}=be;if(cD(be),"strict"in be)throw new Error("options.strict was renamed to lowS");if(me!==void 0&&me!=="compact"&&me!=="der")throw new Error("format must be compact or der");const ne=typeof te=="string"||up(te),G=!ne&&!me&&typeof te=="object"&&te!==null&&typeof te.r=="bigint"&&typeof te.s=="bigint";if(!ne&&!G)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let Q,J;try{if(G&&(Q=new N(te.r,te.s)),ne){try{me!=="compact"&&(Q=N.fromDER(te))}catch(E){if(!(E instanceof ua.Err))throw E}!Q&&me!=="der"&&(Q=N.fromCompact(te))}J=v.fromHex(fe)}catch{return!1}if(!Q||j&&Q.hasHighS())return!1;ue&&(D=n.hash(D));const{r:ve,s:Ae}=Q,V=re(D),w=m(Ae),$=h(V*w),Y=h(ve*w),W=(pe=v.BASE.multiplyAndAddUnsafe(J,$,Y))==null?void 0:pe.toAffine();return W?h(W.x)===ve:!1}return{CURVE:n,getPublicKey:M,getSharedSecret:k,sign:oe,verify:ge,ProjectivePoint:v,Signature:N,utils:B}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function S$(e){return{hash:e,hmac:(n,...i)=>m8(e,n,q5(...i)),randomBytes:H5}}function I$(e,n){const i=a=>w$({...e,...S$(a)});return{...i(n),create:i}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const A8=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),fD=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),C$=BigInt(0),T$=BigInt(1),Tw=BigInt(2),dD=(e,n)=>(e+n/Tw)/n;function O$(e){const n=A8,i=BigInt(3),a=BigInt(6),u=BigInt(11),l=BigInt(22),f=BigInt(23),p=BigInt(44),h=BigInt(88),m=e*e*e%n,v=m*m*e%n,A=Ti(v,i,n)*v%n,y=Ti(A,i,n)*v%n,I=Ti(y,Tw,n)*m%n,R=Ti(I,u,n)*I%n,U=Ti(R,l,n)*R%n,F=Ti(U,p,n)*U%n,N=Ti(F,h,n)*F%n,B=Ti(N,p,n)*U%n,M=Ti(B,i,n)*v%n,H=Ti(M,f,n)*R%n,k=Ti(H,a,n)*m%n,X=Ti(k,Tw,n);if(!Ow.eql(Ow.sqr(X),e))throw new Error("Cannot find square root");return X}const Ow=fS(A8,void 0,void 0,{sqrt:O$}),cp=I$({a:C$,b:BigInt(7),Fp:Ow,n:fD,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const n=fD,i=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),a=-T$*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),u=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),l=i,f=BigInt("0x100000000000000000000000000000000"),p=dD(l*e,n),h=dD(-a*e,n);let m=Br(e-p*i-h*u,n),v=Br(-p*a-h*l,n);const A=m>f,y=v>f;if(A&&(m=n-m),y&&(v=n-v),m>f||v>f)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:A,k1:m,k2neg:y,k2:v}}}},p8),R$=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:cp},Symbol.toStringTag,{value:"Module"})),v8="2.37.4";let ad={getDocsUrl:({docsBaseUrl:e,docsPath:n="",docsSlug:i})=>n?`${e??"https://viem.sh"}${n}${i?`#${i}`:""}`:void 0,version:`viem@${v8}`};class $e extends Error{constructor(n,i={}){var p;const a=(()=>{var h;return i.cause instanceof $e?i.cause.details:(h=i.cause)!=null&&h.message?i.cause.message:i.details})(),u=i.cause instanceof $e&&i.cause.docsPath||i.docsPath,l=(p=ad.getDocsUrl)==null?void 0:p.call(ad,{...i,docsPath:u}),f=[n||"An error occurred.","",...i.metaMessages?[...i.metaMessages,""]:[],...l?[`Docs: ${l}`]:[],...a?[`Details: ${a}`]:[],...ad.version?[`Version: ${ad.version}`]:[]].join(`
277
- `);super(f,i.cause?{cause:i.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=a,this.docsPath=u,this.metaMessages=i.metaMessages,this.name=i.name??this.name,this.shortMessage=n,this.version=v8}walk(n){return x8(this,n)}}function x8(e,n){return n!=null&&n(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?x8(e.cause,n):n?null:e}class E8 extends $e{constructor({max:n,min:i,signed:a,size:u,value:l}){super(`Number "${l}" is not in safe ${u?`${u*8}-bit ${a?"signed":"unsigned"} `:""}integer range ${n?`(${i} to ${n})`:`(above ${i})`}`,{name:"IntegerOutOfRangeError"})}}class F$ extends $e{constructor(n){super(`Bytes value "${n}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class N$ extends $e{constructor({givenSize:n,maxSize:i}){super(`Size cannot exceed ${i} bytes. Given size: ${n} bytes.`,{name:"SizeOverflowError"})}}function ga(e,{strict:n=!0}={}){return!e||typeof e!="string"?!1:n?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function an(e){return ga(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}function ds(e,{dir:n="left"}={}){let i=typeof e=="string"?e.replace("0x",""):e,a=0;for(let u=0;u<i.length-1&&i[n==="left"?u:i.length-u-1].toString()==="0";u++)a++;return i=n==="left"?i.slice(a):i.slice(0,i.length-a),typeof e=="string"?(i.length===1&&n==="right"&&(i=`${i}0`),`0x${i.length%2===1?`0${i}`:i}`):i}class w8 extends $e{constructor({offset:n,position:i,size:a}){super(`Slice ${i==="start"?"starting":"ending"} at offset "${n}" is out-of-bounds (size: ${a}).`,{name:"SliceOffsetOutOfBoundsError"})}}class S8 extends $e{constructor({size:n,targetSize:i,type:a}){super(`${a.charAt(0).toUpperCase()}${a.slice(1).toLowerCase()} size (${n}) exceeds padding size (${i}).`,{name:"SizeExceedsPaddingSizeError"})}}class pD extends $e{constructor({size:n,targetSize:i,type:a}){super(`${a.charAt(0).toUpperCase()}${a.slice(1).toLowerCase()} is expected to be ${i} ${a} long, but is ${n} ${a} long.`,{name:"InvalidBytesLengthError"})}}function mc(e,{dir:n,size:i=32}={}){return typeof e=="string"?fs(e,{dir:n,size:i}):D$(e,{dir:n,size:i})}function fs(e,{dir:n,size:i=32}={}){if(i===null)return e;const a=e.replace("0x","");if(a.length>i*2)throw new S8({size:Math.ceil(a.length/2),targetSize:i,type:"hex"});return`0x${a[n==="right"?"padEnd":"padStart"](i*2,"0")}`}function D$(e,{dir:n,size:i=32}={}){if(i===null)return e;if(e.length>i)throw new S8({size:e.length,targetSize:i,type:"bytes"});const a=new Uint8Array(i);for(let u=0;u<i;u++){const l=n==="right";a[l?u:i-u-1]=e[l?u:e.length-u-1]}return a}const B$=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function wo(e,n={}){return typeof e=="number"||typeof e=="bigint"?Ke(e,n):typeof e=="string"?ic(e,n):typeof e=="boolean"?I8(e,n):lr(e,n)}function I8(e,n={}){const i=`0x${Number(e)}`;return typeof n.size=="number"?(To(i,{size:n.size}),mc(i,{size:n.size})):i}function lr(e,n={}){let i="";for(let u=0;u<e.length;u++)i+=B$[e[u]];const a=`0x${i}`;return typeof n.size=="number"?(To(a,{size:n.size}),mc(a,{dir:"right",size:n.size})):a}function Ke(e,n={}){const{signed:i,size:a}=n,u=BigInt(e);let l;a?i?l=(1n<<BigInt(a)*8n-1n)-1n:l=2n**(BigInt(a)*8n)-1n:typeof e=="number"&&(l=BigInt(Number.MAX_SAFE_INTEGER));const f=typeof l=="bigint"&&i?-l-1n:0;if(l&&u>l||u<f){const h=typeof e=="bigint"?"n":"";throw new E8({max:l?`${l}${h}`:void 0,min:`${f}${h}`,signed:i,size:a,value:`${e}${h}`})}const p=`0x${(i&&u<0?(1n<<BigInt(a*8))+BigInt(u):u).toString(16)}`;return a?mc(p,{size:a}):p}const U$=new TextEncoder;function ic(e,n={}){const i=U$.encode(e);return lr(i,n)}const M$=new TextEncoder;function dS(e,n={}){return typeof e=="number"||typeof e=="bigint"?j$(e,n):typeof e=="boolean"?_$(e,n):ga(e)?Gi(e,n):C8(e,n)}function _$(e,n={}){const i=new Uint8Array(1);return i[0]=Number(e),typeof n.size=="number"?(To(i,{size:n.size}),mc(i,{size:n.size})):i}const oa={zero:48,nine:57,A:65,F:70,a:97,f:102};function hD(e){if(e>=oa.zero&&e<=oa.nine)return e-oa.zero;if(e>=oa.A&&e<=oa.F)return e-(oa.A-10);if(e>=oa.a&&e<=oa.f)return e-(oa.a-10)}function Gi(e,n={}){let i=e;n.size&&(To(i,{size:n.size}),i=mc(i,{dir:"right",size:n.size}));let a=i.slice(2);a.length%2&&(a=`0${a}`);const u=a.length/2,l=new Uint8Array(u);for(let f=0,p=0;f<u;f++){const h=hD(a.charCodeAt(p++)),m=hD(a.charCodeAt(p++));if(h===void 0||m===void 0)throw new $e(`Invalid byte sequence ("${a[p-2]}${a[p-1]}" in "${a}").`);l[f]=h*16+m}return l}function j$(e,n){const i=Ke(e,n);return Gi(i)}function C8(e,n={}){const i=M$.encode(e);return typeof n.size=="number"?(To(i,{size:n.size}),mc(i,{dir:"right",size:n.size})):i}function To(e,{size:n}){if(an(e)>n)throw new N$({givenSize:an(e),maxSize:n})}function So(e,n={}){const{signed:i}=n;n.size&&To(e,{size:n.size});const a=BigInt(e);if(!i)return a;const u=(e.length-2)/2,l=(1n<<BigInt(u)*8n-1n)-1n;return a<=l?a:a-BigInt(`0x${"f".padStart(u*2,"f")}`)-1n}function ya(e,n={}){return Number(So(e,n))}async function T8(e,{address:n,blockTag:i="latest",blockNumber:a}){const u=await e.request({method:"eth_getTransactionCount",params:[n,typeof a=="bigint"?Ke(a):i]},{dedupe:!!a});return ya(u)}class hg extends Map{constructor(n){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=n}get(n){const i=super.get(n);return super.has(n)&&i!==void 0&&(this.delete(n),super.set(n,i)),i}set(n,i){if(super.set(n,i),this.maxSize&&this.size>this.maxSize){const a=this.keys().next().value;a&&this.delete(a)}return this}}function P$({r:e,s:n,to:i="hex",v:a,yParity:u}){const l=(()=>{if(u===0||u===1)return u;if(a&&(a===27n||a===28n||a>=35n))return a%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),f=`0x${new cp.Signature(So(e),So(n)).toCompactHex()}${l===0?"1b":"1c"}`;return i==="hex"?f:Gi(f)}function O8(){return wo(cp.utils.randomPrivateKey())}class Er extends $e{constructor({address:n}){super(`Address "${n}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}const L$=BigInt(0),sd=BigInt(1),k$=BigInt(2),$$=BigInt(7),q$=BigInt(256),H$=BigInt(113),R8=[],F8=[],N8=[];for(let e=0,n=sd,i=1,a=0;e<24;e++){[i,a]=[a,(2*i+3*a)%5],R8.push(2*(5*a+i)),F8.push((e+1)*(e+2)/2%64);let u=L$;for(let l=0;l<7;l++)n=(n<<sd^(n>>$$)*H$)%q$,n&k$&&(u^=sd<<(sd<<BigInt(l))-sd);N8.push(u)}const D8=s$(N8,!0),z$=D8[0],V$=D8[1],mD=(e,n,i)=>i>32?c$(e,n,i):u$(e,n,i),gD=(e,n,i)=>i>32?f$(e,n,i):l$(e,n,i);function G$(e,n=24){const i=new Uint32Array(10);for(let a=24-n;a<24;a++){for(let f=0;f<10;f++)i[f]=e[f]^e[f+10]^e[f+20]^e[f+30]^e[f+40];for(let f=0;f<10;f+=2){const p=(f+8)%10,h=(f+2)%10,m=i[h],v=i[h+1],A=mD(m,v,1)^i[p],y=gD(m,v,1)^i[p+1];for(let I=0;I<50;I+=10)e[f+I]^=A,e[f+I+1]^=y}let u=e[2],l=e[3];for(let f=0;f<24;f++){const p=F8[f],h=mD(u,l,p),m=gD(u,l,p),v=R8[f];u=e[v],l=e[v+1],e[v]=h,e[v+1]=m}for(let f=0;f<50;f+=10){for(let p=0;p<10;p++)i[p]=e[f+p];for(let p=0;p<10;p++)e[f+p]^=~i[(p+2)%10]&i[(p+4)%10]}e[0]^=z$[a],e[1]^=V$[a]}rc(i)}class pS extends sS{constructor(n,i,a,u=!1,l=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=n,this.suffix=i,this.outputLen=a,this.enableXOF=u,this.rounds=l,Td(a),!(0<n&&n<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=j5(this.state)}clone(){return this._cloneInto()}keccak(){nD(this.state32),G$(this.state32,this.rounds),nD(this.state32),this.posOut=0,this.pos=0}update(n){nc(this),n=fg(n),Su(n);const{blockLen:i,state:a}=this,u=n.length;for(let l=0;l<u;){const f=Math.min(i-this.pos,u-l);for(let p=0;p<f;p++)a[this.pos++]^=n[l++];this.pos===i&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:n,suffix:i,pos:a,blockLen:u}=this;n[a]^=i,(i&128)!==0&&a===u-1&&this.keccak(),n[u-1]^=128,this.keccak()}writeInto(n){nc(this,!1),Su(n),this.finish();const i=this.state,{blockLen:a}=this;for(let u=0,l=n.length;u<l;){this.posOut>=a&&this.keccak();const f=Math.min(a-this.posOut,l-u);n.set(i.subarray(this.posOut,this.posOut+f),u),this.posOut+=f,u+=f}return n}xofInto(n){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(n)}xof(n){return Td(n),this.xofInto(new Uint8Array(n))}digestInto(n){if(WM(n,this),this.finished)throw new Error("digest() was already called");return this.writeInto(n),this.destroy(),n}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,rc(this.state)}_cloneInto(n){const{blockLen:i,suffix:a,outputLen:u,rounds:l,enableXOF:f}=this;return n||(n=new pS(i,a,u,f,l)),n.state32.set(this.state32),n.pos=this.pos,n.posOut=this.posOut,n.finished=this.finished,n.rounds=l,n.suffix=a,n.outputLen=u,n.enableXOF=f,n.destroyed=this.destroyed,n}}const Q$=(e,n,i)=>e8(()=>new pS(n,e,i)),Y$=Q$(1,136,256/8);function Wr(e,n){const i=n||"hex",a=Y$(ga(e,{strict:!1})?dS(e):e);return i==="bytes"?a:wo(a)}const HA=new hg(8192);function fp(e,n){if(HA.has(`${e}.${n}`))return HA.get(`${e}.${n}`);const i=e.substring(2).toLowerCase(),a=Wr(C8(i),"bytes"),u=i.split("");for(let f=0;f<40;f+=2)a[f>>1]>>4>=8&&u[f]&&(u[f]=u[f].toUpperCase()),(a[f>>1]&15)>=8&&u[f+1]&&(u[f+1]=u[f+1].toUpperCase());const l=`0x${u.join("")}`;return HA.set(`${e}.${n}`,l),l}function K$(e,n){if(!Mn(e,{strict:!1}))throw new Er({address:e});return fp(e,n)}const X$=/^0x[a-fA-F0-9]{40}$/,zA=new hg(8192);function Mn(e,n){const{strict:i=!0}=n??{},a=`${e}.${i}`;if(zA.has(a))return zA.get(a);const u=X$.test(e)?e.toLowerCase()===e?!0:i?fp(e)===e:!0:!1;return zA.set(a,u),u}function Z$(e){if(typeof e=="string"){if(!Mn(e,{strict:!1}))throw new Er({address:e});return{address:e,type:"json-rpc"}}if(!Mn(e.address,{strict:!1}))throw new Er({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 B8(e){const n=Wr(`0x${e.substring(4)}`).substring(26);return fp(`0x${n}`)}let VA=!1;async function dp({hash:e,privateKey:n,to:i="object"}){const{r:a,s:u,recovery:l}=cp.sign(e.slice(2),n.slice(2),{lowS:!0,extraEntropy:ga(VA,{strict:!1})?Gi(VA):VA}),f={r:Ke(a,{size:32}),s:Ke(u,{size:32}),v:l?28n:27n,yParity:l};return i==="bytes"||i==="hex"?P$({...f,to:i}):f}function Io(e){return typeof e[0]=="string"?ps(e):J$(e)}function J$(e){let n=0;for(const u of e)n+=u.length;const i=new Uint8Array(n);let a=0;for(const u of e)i.set(u,a),a+=u.length;return i}function ps(e){return`0x${e.reduce((n,i)=>n+i.replace("0x",""),"")}`}class yD extends $e{constructor({offset:n}){super(`Offset \`${n}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class W$ extends $e{constructor({length:n,position:i}){super(`Position \`${i}\` is out of bounds (\`0 < position < ${n}\`).`,{name:"PositionOutOfBoundsError"})}}class eq extends $e{constructor({count:n,limit:i}){super(`Recursive read limit of \`${i}\` exceeded (recursive read count: \`${n}\`).`,{name:"RecursiveReadLimitExceededError"})}}const tq={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 eq({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new W$({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new yD({offset:e});const n=this.position-e;this.assertPosition(n),this.position=n},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new yD({offset:e});const n=this.position+e;this.assertPosition(n),this.position=n},inspectByte(e){const n=e??this.position;return this.assertPosition(n),this.bytes[n]},inspectBytes(e,n){const i=n??this.position;return this.assertPosition(i+e-1),this.bytes.subarray(i,i+e)},inspectUint8(e){const n=e??this.position;return this.assertPosition(n),this.bytes[n]},inspectUint16(e){const n=e??this.position;return this.assertPosition(n+1),this.dataView.getUint16(n)},inspectUint24(e){const n=e??this.position;return this.assertPosition(n+2),(this.dataView.getUint16(n)<<8)+this.dataView.getUint8(n+2)},inspectUint32(e){const n=e??this.position;return this.assertPosition(n+3),this.dataView.getUint32(n)},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,n){this.assertReadLimit(),this._touch();const i=this.inspectBytes(e);return this.position+=n??e,i},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const n=this.position;return this.assertPosition(e),this.position=e,()=>this.position=n},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function hS(e,{recursiveReadLimit:n=8192}={}){const i=Object.create(tq);return i.bytes=e,i.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),i.positionReadCount=new Map,i.recursiveReadLimit=n,i}function Iu(e,n="hex"){const i=U8(e),a=hS(new Uint8Array(i.length));return i.encode(a),n==="hex"?lr(a.bytes):a.bytes}function U8(e){return Array.isArray(e)?nq(e.map(n=>U8(n))):rq(e)}function nq(e){const n=e.reduce((u,l)=>u+l.length,0),i=M8(n);return{length:n<=55?1+n:1+i+n,encode(u){n<=55?u.pushByte(192+n):(u.pushByte(247+i),i===1?u.pushUint8(n):i===2?u.pushUint16(n):i===3?u.pushUint24(n):u.pushUint32(n));for(const{encode:l}of e)l(u)}}}function rq(e){const n=typeof e=="string"?Gi(e):e,i=M8(n.length);return{length:n.length===1&&n[0]<128?1:n.length<=55?1+n.length:1+i+n.length,encode(u){n.length===1&&n[0]<128?u.pushBytes(n):n.length<=55?(u.pushByte(128+n.length),u.pushBytes(n)):(u.pushByte(183+i),i===1?u.pushUint8(n.length):i===2?u.pushUint16(n.length):i===3?u.pushUint24(n.length):u.pushUint32(n.length),u.pushBytes(n))}}}function M8(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new $e("Length is too large.")}function _8(e){const{chainId:n,nonce:i,to:a}=e,u=e.contractAddress??e.address,l=Wr(ps(["0x05",Iu([n?Ke(n):"0x",u,i?Ke(i):"0x"])]));return a==="bytes"?Gi(l):l}async function iq(e){const{chainId:n,nonce:i,privateKey:a,to:u="object"}=e,l=e.contractAddress??e.address,f=await dp({hash:_8({address:l,chainId:n,nonce:i}),privateKey:a,to:u});return u==="object"?{address:l,chainId:n,nonce:i,...f}:f}const oq=`Ethereum Signed Message:
278
- `;function aq(e){const n=typeof e=="string"?ic(e):typeof e.raw=="string"?e.raw:lr(e.raw),i=ic(`${oq}${an(n)}`);return Io([i,n])}function sq(e,n){return Wr(aq(e),n)}async function uq({message:e,privateKey:n}){return await dp({hash:sq(e),privateKey:n,to:"hex"})}const lq={gwei:9,wei:18},cq={ether:-9,wei:9};function j8(e,n){let i=e.toString();const a=i.startsWith("-");a&&(i=i.slice(1)),i=i.padStart(n,"0");let[u,l]=[i.slice(0,i.length-n),i.slice(i.length-n)];return l=l.replace(/(0+)$/,""),`${a?"-":""}${u||"0"}${l?`.${l}`:""}`}function P8(e,n="wei"){return j8(e,lq[n])}function zi(e,n="wei"){return j8(e,cq[n])}function mg(e){const n=Object.entries(e).map(([a,u])=>u===void 0||u===!1?null:[a,u]).filter(Boolean),i=n.reduce((a,[u])=>Math.max(a,u.length),0);return n.map(([a,u])=>` ${`${a}:`.padEnd(i+1)} ${u}`).join(`
279
- `)}class fq extends $e{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(`
280
- `),{name:"FeeConflictError"})}}class dq extends $e{constructor({v:n}){super(`Invalid \`v\` value "${n}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class pq extends $e{constructor({transaction:n}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",mg(n),"}","","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 hq extends $e{constructor({storageKey:n}){super(`Size for storage key "${n}" is invalid. Expected 32 bytes. Got ${Math.floor((n.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class mq extends $e{constructor(n,{account:i,docsPath:a,chain:u,data:l,gas:f,gasPrice:p,maxFeePerGas:h,maxPriorityFeePerGas:m,nonce:v,to:A,value:y}){var R;const I=mg({chain:u&&`${u==null?void 0:u.name} (id: ${u==null?void 0:u.id})`,from:i==null?void 0:i.address,to:A,value:typeof y<"u"&&`${P8(y)} ${((R=u==null?void 0:u.nativeCurrency)==null?void 0:R.symbol)||"ETH"}`,data:l,gas:f,gasPrice:typeof p<"u"&&`${zi(p)} gwei`,maxFeePerGas:typeof h<"u"&&`${zi(h)} gwei`,maxPriorityFeePerGas:typeof m<"u"&&`${zi(m)} gwei`,nonce:v});super(n.shortMessage,{cause:n,docsPath:a,metaMessages:[...n.metaMessages?[...n.metaMessages," "]:[],"Request Arguments:",I].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=n}}function gq(e){if(!e||e.length===0)return[];const n=[];for(const i of e){const{chainId:a,nonce:u,...l}=i,f=i.address;n.push([a?wo(a):"0x",f,u?wo(u):"0x",...pp({},l)])}return n}function mS(e){const{kzg:n}=e,i=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),a=typeof e.blobs[0]=="string"?e.blobs.map(l=>Gi(l)):e.blobs,u=[];for(const l of a)u.push(Uint8Array.from(n.blobToKzgCommitment(l)));return i==="bytes"?u:u.map(l=>lr(l))}function gS(e){const{kzg:n}=e,i=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),a=typeof e.blobs[0]=="string"?e.blobs.map(f=>Gi(f)):e.blobs,u=typeof e.commitments[0]=="string"?e.commitments.map(f=>Gi(f)):e.commitments,l=[];for(let f=0;f<a.length;f++){const p=a[f],h=u[f];l.push(Uint8Array.from(n.computeBlobKzgProof(p,h)))}return i==="bytes"?l:l.map(f=>lr(f))}const Rw=p8;function yq(e,n){return Rw(ga(e,{strict:!1})?dS(e):e)}function bq(e){const{commitment:n,version:i=1}=e,a=e.to??(typeof n=="string"?"hex":"bytes"),u=yq(n);return u.set([i],0),a==="bytes"?u:lr(u)}function L8(e){const{commitments:n,version:i}=e,a=e.to??(typeof n[0]=="string"?"hex":"bytes"),u=[];for(const l of n)u.push(bq({commitment:l,to:a,version:i}));return u}const bD=6,k8=32,yS=4096,$8=k8*yS,AD=$8*bD-1-1*yS*bD,q8=1;class Aq extends $e{constructor({maxSize:n,size:i}){super("Blob size is too large.",{metaMessages:[`Max: ${n} bytes`,`Given: ${i} bytes`],name:"BlobSizeTooLargeError"})}}class H8 extends $e{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class vq extends $e{constructor({hash:n,size:i}){super(`Versioned hash "${n}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${i}`],name:"InvalidVersionedHashSizeError"})}}class xq extends $e{constructor({hash:n,version:i}){super(`Versioned hash "${n}" version is invalid.`,{metaMessages:[`Expected: ${q8}`,`Received: ${i}`],name:"InvalidVersionedHashVersionError"})}}function Eq(e){const n=e.to??(typeof e.data=="string"?"hex":"bytes"),i=typeof e.data=="string"?Gi(e.data):e.data,a=an(i);if(!a)throw new H8;if(a>AD)throw new Aq({maxSize:AD,size:a});const u=[];let l=!0,f=0;for(;l;){const p=hS(new Uint8Array($8));let h=0;for(;h<yS;){const m=i.slice(f,f+(k8-1));if(p.pushByte(0),p.pushBytes(m),m.length<31){p.pushByte(128),l=!1;break}h++,f+=31}u.push(p)}return n==="bytes"?u.map(p=>p.bytes):u.map(p=>lr(p.bytes))}function z8(e){const{data:n,kzg:i,to:a}=e,u=e.blobs??Eq({data:n,to:a}),l=e.commitments??mS({blobs:u,kzg:i,to:a}),f=e.proofs??gS({blobs:u,commitments:l,kzg:i,to:a}),p=[];for(let h=0;h<u.length;h++)p.push({blob:u[h],commitment:l[h],proof:f[h]});return p}const gg=2n**256n-1n;class wq extends $e{constructor({chain:n,currentChainId:i}){super(`The current chain of the wallet (id: ${i}) does not match the target chain for the transaction (id: ${n.id} – ${n.name}).`,{metaMessages:[`Current Chain ID: ${i}`,`Expected Chain ID: ${n.id} – ${n.name}`],name:"ChainMismatchError"})}}class Sq extends $e{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join(`
281
- `),{name:"ChainNotFoundError"})}}class yg extends $e{constructor({chainId:n}){super(typeof n=="number"?`Chain ID "${n}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}class Yl extends $e{constructor({cause:n,message:i}={}){var u;const a=(u=i==null?void 0:i.replace("execution reverted: ",""))==null?void 0:u.replace("execution reverted","");super(`Execution reverted ${a?`with reason: ${a}`:"for an unknown reason"}.`,{cause:n,name:"ExecutionRevertedError"})}}Object.defineProperty(Yl,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(Yl,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class Cu extends $e{constructor({cause:n,maxFeePerGas:i}={}){super(`The fee cap (\`maxFeePerGas\`${i?` = ${zi(i)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:n,name:"FeeCapTooHighError"})}}Object.defineProperty(Cu,"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 Fw extends $e{constructor({cause:n,maxFeePerGas:i}={}){super(`The fee cap (\`maxFeePerGas\`${i?` = ${zi(i)}`:""} gwei) cannot be lower than the block base fee.`,{cause:n,name:"FeeCapTooLowError"})}}Object.defineProperty(Fw,"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 Nw extends $e{constructor({cause:n,nonce:i}={}){super(`Nonce provided for the transaction ${i?`(${i}) `:""}is higher than the next one expected.`,{cause:n,name:"NonceTooHighError"})}}Object.defineProperty(Nw,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class Dw extends $e{constructor({cause:n,nonce:i}={}){super([`Nonce provided for the transaction ${i?`(${i}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
282
- `),{cause:n,name:"NonceTooLowError"})}}Object.defineProperty(Dw,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Bw extends $e{constructor({cause:n,nonce:i}={}){super(`Nonce provided for the transaction ${i?`(${i}) `:""}exceeds the maximum allowed nonce.`,{cause:n,name:"NonceMaxValueError"})}}Object.defineProperty(Bw,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Uw extends $e{constructor({cause:n}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
283
- `),{cause:n,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(Uw,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class Mw extends $e{constructor({cause:n,gas:i}={}){super(`The amount of gas ${i?`(${i}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:n,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(Mw,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class _w extends $e{constructor({cause:n,gas:i}={}){super(`The amount of gas ${i?`(${i}) `:""}provided for the transaction is too low.`,{cause:n,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(_w,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class jw extends $e{constructor({cause:n}){super("The transaction type is not supported for this chain.",{cause:n,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(jw,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class Fd extends $e{constructor({cause:n,maxPriorityFeePerGas:i,maxFeePerGas:a}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${i?` = ${zi(i)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${a?` = ${zi(a)} gwei`:""}).`].join(`
284
- `),{cause:n,name:"TipAboveFeeCapError"})}}Object.defineProperty(Fd,"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 bS extends $e{constructor({cause:n}){super(`An error occurred while executing: ${n==null?void 0:n.shortMessage}`,{cause:n,name:"UnknownNodeError"})}}function Nd(e,n,i,{strict:a}={}){return ga(e,{strict:!1})?Pw(e,n,i,{strict:a}):Q8(e,n,i,{strict:a})}function V8(e,n){if(typeof n=="number"&&n>0&&n>an(e)-1)throw new w8({offset:n,position:"start",size:an(e)})}function G8(e,n,i){if(typeof n=="number"&&typeof i=="number"&&an(e)!==i-n)throw new w8({offset:i,position:"end",size:an(e)})}function Q8(e,n,i,{strict:a}={}){V8(e,n);const u=e.slice(n,i);return a&&G8(u,n,i),u}function Pw(e,n,i,{strict:a}={}){V8(e,n);const u=`0x${e.replace("0x","").slice((n??0)*2,(i??e.length)*2)}`;return a&&G8(u,n,i),u}function Iq(e){const{authorizationList:n}=e;if(n)for(const i of n){const{chainId:a}=i,u=i.address;if(!Mn(u))throw new Er({address:u});if(a<0)throw new yg({chainId:a})}AS(e)}function Cq(e){const{blobVersionedHashes:n}=e;if(n){if(n.length===0)throw new H8;for(const i of n){const a=an(i),u=ya(Nd(i,0,1));if(a!==32)throw new vq({hash:i,size:a});if(u!==q8)throw new xq({hash:i,version:u})}}AS(e)}function AS(e){const{chainId:n,maxPriorityFeePerGas:i,maxFeePerGas:a,to:u}=e;if(n<=0)throw new yg({chainId:n});if(u&&!Mn(u))throw new Er({address:u});if(a&&a>gg)throw new Cu({maxFeePerGas:a});if(i&&a&&i>a)throw new Fd({maxFeePerGas:a,maxPriorityFeePerGas:i})}function Tq(e){const{chainId:n,maxPriorityFeePerGas:i,gasPrice:a,maxFeePerGas:u,to:l}=e;if(n<=0)throw new yg({chainId:n});if(l&&!Mn(l))throw new Er({address:l});if(i||u)throw new $e("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(a&&a>gg)throw new Cu({maxFeePerGas:a})}function Oq(e){const{chainId:n,maxPriorityFeePerGas:i,gasPrice:a,maxFeePerGas:u,to:l}=e;if(l&&!Mn(l))throw new Er({address:l});if(typeof n<"u"&&n<=0)throw new yg({chainId:n});if(i||u)throw new $e("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(a&&a>gg)throw new Cu({maxFeePerGas:a})}function Y8(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 pq({transaction:e})}function bg(e){if(!e||e.length===0)return[];const n=[];for(let i=0;i<e.length;i++){const{address:a,storageKeys:u}=e[i];for(let l=0;l<u.length;l++)if(u[l].length-2!==64)throw new hq({storageKey:u[l]});if(!Mn(a,{strict:!1}))throw new Er({address:a});n.push([a,u])}return n}function Rq(e,n){const i=Y8(e);return i==="eip1559"?Dq(e,n):i==="eip2930"?Bq(e,n):i==="eip4844"?Nq(e,n):i==="eip7702"?Fq(e,n):Uq(e,n)}function Fq(e,n){const{authorizationList:i,chainId:a,gas:u,nonce:l,to:f,value:p,maxFeePerGas:h,maxPriorityFeePerGas:m,accessList:v,data:A}=e;Iq(e);const y=bg(v),I=gq(i);return ps(["0x04",Iu([Ke(a),l?Ke(l):"0x",m?Ke(m):"0x",h?Ke(h):"0x",u?Ke(u):"0x",f??"0x",p?Ke(p):"0x",A??"0x",y,I,...pp(e,n)])])}function Nq(e,n){const{chainId:i,gas:a,nonce:u,to:l,value:f,maxFeePerBlobGas:p,maxFeePerGas:h,maxPriorityFeePerGas:m,accessList:v,data:A}=e;Cq(e);let y=e.blobVersionedHashes,I=e.sidecars;if(e.blobs&&(typeof y>"u"||typeof I>"u")){const M=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(X=>lr(X)),H=e.kzg,k=mS({blobs:M,kzg:H});if(typeof y>"u"&&(y=L8({commitments:k})),typeof I>"u"){const X=gS({blobs:M,commitments:k,kzg:H});I=z8({blobs:M,commitments:k,proofs:X})}}const R=bg(v),U=[Ke(i),u?Ke(u):"0x",m?Ke(m):"0x",h?Ke(h):"0x",a?Ke(a):"0x",l??"0x",f?Ke(f):"0x",A??"0x",R,p?Ke(p):"0x",y??[],...pp(e,n)],F=[],N=[],B=[];if(I)for(let M=0;M<I.length;M++){const{blob:H,commitment:k,proof:X}=I[M];F.push(H),N.push(k),B.push(X)}return ps(["0x03",Iu(I?[U,F,N,B]:U)])}function Dq(e,n){const{chainId:i,gas:a,nonce:u,to:l,value:f,maxFeePerGas:p,maxPriorityFeePerGas:h,accessList:m,data:v}=e;AS(e);const A=bg(m),y=[Ke(i),u?Ke(u):"0x",h?Ke(h):"0x",p?Ke(p):"0x",a?Ke(a):"0x",l??"0x",f?Ke(f):"0x",v??"0x",A,...pp(e,n)];return ps(["0x02",Iu(y)])}function Bq(e,n){const{chainId:i,gas:a,data:u,nonce:l,to:f,value:p,accessList:h,gasPrice:m}=e;Tq(e);const v=bg(h),A=[Ke(i),l?Ke(l):"0x",m?Ke(m):"0x",a?Ke(a):"0x",f??"0x",p?Ke(p):"0x",u??"0x",v,...pp(e,n)];return ps(["0x01",Iu(A)])}function Uq(e,n){const{chainId:i=0,gas:a,data:u,nonce:l,to:f,value:p,gasPrice:h}=e;Oq(e);let m=[l?Ke(l):"0x",h?Ke(h):"0x",a?Ke(a):"0x",f??"0x",p?Ke(p):"0x",u??"0x"];if(n){const v=(()=>{if(n.v>=35n)return(n.v-35n)/2n>0?n.v:27n+(n.v===35n?0n:1n);if(i>0)return BigInt(i*2)+BigInt(35n+n.v-27n);const I=27n+(n.v===27n?0n:1n);if(n.v!==I)throw new dq({v:n.v});return I})(),A=ds(n.r),y=ds(n.s);m=[...m,Ke(v),A==="0x00"?"0x":A,y==="0x00"?"0x":y]}else i>0&&(m=[...m,Ke(i),"0x","0x"]);return Iu(m)}function pp(e,n){const i=n??e,{v:a,yParity:u}=i;if(typeof i.r>"u")return[];if(typeof i.s>"u")return[];if(typeof a>"u"&&typeof u>"u")return[];const l=ds(i.r),f=ds(i.s);return[typeof u=="number"?u?Ke(1):"0x":a===0n?"0x":a===1n?Ke(1):a===27n?"0x":Ke(1),l==="0x00"?"0x":l,f==="0x00"?"0x":f]}async function Mq(e){const{privateKey:n,transaction:i,serializer:a=Rq}=e,u=i.type==="eip4844"?{...i,sidecars:!1}:i,l=await dp({hash:Wr(a(u)),privateKey:n});return a(i,l)}function oc(e,{includeName:n=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new Qq(e.type);return`${e.name}(${vS(e.inputs,{includeName:n})})`}function vS(e,{includeName:n=!1}={}){return e?e.map(i=>_q(i,{includeName:n})).join(n?", ":","):""}function _q(e,{includeName:n}){return e.type.startsWith("tuple")?`(${vS(e.components,{includeName:n})})${e.type.slice(5)}`:e.type+(n&&e.name?` ${e.name}`:"")}class jq extends $e{constructor({docsPath:n}){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(`
285
- `),{docsPath:n,name:"AbiConstructorNotFoundError"})}}class vD extends $e{constructor({docsPath:n}){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(`
286
- `),{docsPath:n,name:"AbiConstructorParamsNotFoundError"})}}class Pq extends $e{constructor({data:n,params:i,size:a}){super([`Data size of ${a} bytes is too small for given parameters.`].join(`
287
- `),{metaMessages:[`Params: (${vS(i,{includeName:!0})})`,`Data: ${n} (${a} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n,this.params=i,this.size=a}}class xS extends $e{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class Lq extends $e{constructor({expectedLength:n,givenLength:i,type:a}){super([`ABI encoding array length mismatch for type ${a}.`,`Expected length: ${n}`,`Given length: ${i}`].join(`
288
- `),{name:"AbiEncodingArrayLengthMismatchError"})}}class kq extends $e{constructor({expectedSize:n,value:i}){super(`Size of bytes "${i}" (bytes${an(i)}) does not match expected size (bytes${n}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class $q extends $e{constructor({expectedLength:n,givenLength:i}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${n}`,`Given length (values): ${i}`].join(`
289
- `),{name:"AbiEncodingLengthMismatchError"})}}class K8 extends $e{constructor(n,{docsPath:i}){super([`Encoded error signature "${n}" 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=${n}.`].join(`
290
- `),{docsPath:i,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=n}}class xD extends $e{constructor(n,{docsPath:i}={}){super([`Function ${n?`"${n}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`
291
- `),{docsPath:i,name:"AbiFunctionNotFoundError"})}}class qq extends $e{constructor(n,i){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${n.type}\` in \`${oc(n.abiItem)}\`, and`,`\`${i.type}\` in \`${oc(i.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class Hq extends $e{constructor({expectedSize:n,givenSize:i}){super(`Expected bytes${n}, got bytes${i}.`,{name:"BytesSizeMismatchError"})}}class zq extends $e{constructor(n,{docsPath:i}){super([`Type "${n}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
292
- `),{docsPath:i,name:"InvalidAbiEncodingType"})}}class Vq extends $e{constructor(n,{docsPath:i}){super([`Type "${n}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
293
- `),{docsPath:i,name:"InvalidAbiDecodingType"})}}class Gq extends $e{constructor(n){super([`Value "${n}" is not a valid array.`].join(`
294
- `),{name:"InvalidArrayError"})}}class Qq extends $e{constructor(n){super([`"${n}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
295
- `),{name:"InvalidDefinitionTypeError"})}}const Yq=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,X8=/^(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 Ag(e,n){if(e.length!==n.length)throw new $q({expectedLength:e.length,givenLength:n.length});const i=Kq({params:e,values:n}),a=wS(i);return a.length===0?"0x":a}function Kq({params:e,values:n}){const i=[];for(let a=0;a<e.length;a++)i.push(ES({param:e[a],value:n[a]}));return i}function ES({param:e,value:n}){const i=SS(e.type);if(i){const[a,u]=i;return Zq(n,{length:a,param:{...e,type:u}})}if(e.type==="tuple")return n7(n,{param:e});if(e.type==="address")return Xq(n);if(e.type==="bool")return Wq(n);if(e.type.startsWith("uint")||e.type.startsWith("int")){const a=e.type.startsWith("int"),[,,u="256"]=X8.exec(e.type)??[];return e7(n,{signed:a,size:Number(u)})}if(e.type.startsWith("bytes"))return Jq(n,{param:e});if(e.type==="string")return t7(n);throw new zq(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function wS(e){let n=0;for(let l=0;l<e.length;l++){const{dynamic:f,encoded:p}=e[l];f?n+=32:n+=an(p)}const i=[],a=[];let u=0;for(let l=0;l<e.length;l++){const{dynamic:f,encoded:p}=e[l];f?(i.push(Ke(n+u,{size:32})),a.push(p),u+=an(p)):i.push(p)}return Io([...i,...a])}function Xq(e){if(!Mn(e))throw new Er({address:e});return{dynamic:!1,encoded:fs(e.toLowerCase())}}function Zq(e,{length:n,param:i}){const a=n===null;if(!Array.isArray(e))throw new Gq(e);if(!a&&e.length!==n)throw new Lq({expectedLength:n,givenLength:e.length,type:`${i.type}[${n}]`});let u=!1;const l=[];for(let f=0;f<e.length;f++){const p=ES({param:i,value:e[f]});p.dynamic&&(u=!0),l.push(p)}if(a||u){const f=wS(l);if(a){const p=Ke(l.length,{size:32});return{dynamic:!0,encoded:l.length>0?Io([p,f]):p}}if(u)return{dynamic:!0,encoded:f}}return{dynamic:!1,encoded:Io(l.map(({encoded:f})=>f))}}function Jq(e,{param:n}){const[,i]=n.type.split("bytes"),a=an(e);if(!i){let u=e;return a%32!==0&&(u=fs(u,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:Io([fs(Ke(a,{size:32})),u])}}if(a!==Number.parseInt(i,10))throw new kq({expectedSize:Number.parseInt(i,10),value:e});return{dynamic:!1,encoded:fs(e,{dir:"right"})}}function Wq(e){if(typeof e!="boolean")throw new $e(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:fs(I8(e))}}function e7(e,{signed:n,size:i=256}){if(typeof i=="number"){const a=2n**(BigInt(i)-(n?1n:0n))-1n,u=n?-a-1n:0n;if(e>a||e<u)throw new E8({max:a.toString(),min:u.toString(),signed:n,size:i/8,value:e.toString()})}return{dynamic:!1,encoded:Ke(e,{size:32,signed:n})}}function t7(e){const n=ic(e),i=Math.ceil(an(n)/32),a=[];for(let u=0;u<i;u++)a.push(fs(Nd(n,u*32,(u+1)*32),{dir:"right"}));return{dynamic:!0,encoded:Io([fs(Ke(an(n),{size:32})),...a])}}function n7(e,{param:n}){let i=!1;const a=[];for(let u=0;u<n.components.length;u++){const l=n.components[u],f=Array.isArray(e)?u:l.name,p=ES({param:l,value:e[f]});a.push(p),p.dynamic&&(i=!0)}return{dynamic:i,encoded:i?wS(a):Io(a.map(({encoded:u})=>u))}}function SS(e){const n=e.match(/^(.*)\[(\d+)?\]$/);return n?[n[2]?Number(n[2]):null,n[1]]:void 0}const Vi=(e,n,i)=>JSON.stringify(e,(a,u)=>typeof u=="bigint"?u.toString():u,i);class r7 extends $e{constructor({domain:n}){super(`Invalid domain "${Vi(n)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class i7 extends $e{constructor({primaryType:n,types:i}){super(`Invalid primary type \`${n}\` must be one of \`${JSON.stringify(Object.keys(i))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class o7 extends $e{constructor({type:n}){super(`Struct type "${n}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function a7(e){const{domain:n,message:i,primaryType:a,types:u}=e,l=(h,m)=>{const v={...m};for(const A of h){const{name:y,type:I}=A;I==="address"&&(v[y]=v[y].toLowerCase())}return v},f=u.EIP712Domain?n?l(u.EIP712Domain,n):{}:{},p=(()=>{if(a!=="EIP712Domain")return l(u[a],i)})();return Vi({domain:f,message:p,primaryType:a,types:u})}function Z8(e){const{domain:n,message:i,primaryType:a,types:u}=e,l=(f,p)=>{for(const h of f){const{name:m,type:v}=h,A=p[m],y=v.match(X8);if(y&&(typeof A=="number"||typeof A=="bigint")){const[U,F,N]=y;Ke(A,{signed:F==="int",size:Number.parseInt(N,10)/8})}if(v==="address"&&typeof A=="string"&&!Mn(A))throw new Er({address:A});const I=v.match(Yq);if(I){const[U,F]=I;if(F&&an(A)!==Number.parseInt(F,10))throw new Hq({expectedSize:Number.parseInt(F,10),givenSize:an(A)})}const R=u[v];R&&(s7(v),l(R,A))}};if(u.EIP712Domain&&n){if(typeof n!="object")throw new r7({domain:n});l(u.EIP712Domain,n)}if(a!=="EIP712Domain")if(u[a])l(u[a],i);else throw new i7({primaryType:a,types:u})}function J8({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 s7(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new o7({type:e})}function u7(e){const{domain:n={},message:i,primaryType:a}=e,u={EIP712Domain:J8({domain:n}),...e.types};Z8({domain:n,message:i,primaryType:a,types:u});const l=["0x1901"];return n&&l.push(l7({domain:n,types:u})),a!=="EIP712Domain"&&l.push(W8({data:i,primaryType:a,types:u})),Wr(Io(l))}function l7({domain:e,types:n}){return W8({data:e,primaryType:"EIP712Domain",types:n})}function W8({data:e,primaryType:n,types:i}){const a=e_({data:e,primaryType:n,types:i});return Wr(a)}function e_({data:e,primaryType:n,types:i}){const a=[{type:"bytes32"}],u=[c7({primaryType:n,types:i})];for(const l of i[n]){const[f,p]=n_({types:i,name:l.name,type:l.type,value:e[l.name]});a.push(f),u.push(p)}return Ag(a,u)}function c7({primaryType:e,types:n}){const i=wo(f7({primaryType:e,types:n}));return Wr(i)}function f7({primaryType:e,types:n}){let i="";const a=t_({primaryType:e,types:n});a.delete(e);const u=[e,...Array.from(a).sort()];for(const l of u)i+=`${l}(${n[l].map(({name:f,type:p})=>`${p} ${f}`).join(",")})`;return i}function t_({primaryType:e,types:n},i=new Set){const a=e.match(/^\w*/u),u=a==null?void 0:a[0];if(i.has(u)||n[u]===void 0)return i;i.add(u);for(const l of n[u])t_({primaryType:l.type,types:n},i);return i}function n_({types:e,name:n,type:i,value:a}){if(e[i]!==void 0)return[{type:"bytes32"},Wr(e_({data:a,primaryType:i,types:e}))];if(i==="bytes")return a=`0x${(a.length%2?"0":"")+a.slice(2)}`,[{type:"bytes32"},Wr(a)];if(i==="string")return[{type:"bytes32"},Wr(wo(a))];if(i.lastIndexOf("]")===i.length-1){const u=i.slice(0,i.lastIndexOf("[")),l=a.map(f=>n_({name:n,type:u,types:e,value:f}));return[{type:"bytes32"},Wr(Ag(l.map(([f])=>f),l.map(([,f])=>f)))]}return[{type:i},a]}async function d7(e){const{privateKey:n,...i}=e;return await dp({hash:u7(i),privateKey:n,to:"hex"})}function xo(e,n={}){const{nonceManager:i}=n,a=wo(cp.getPublicKey(e.slice(2),!1)),u=B8(a);return{...Z$({address:u,nonceManager:i,async sign({hash:f}){return dp({hash:f,privateKey:e,to:"hex"})},async signAuthorization(f){return iq({...f,privateKey:e})},async signMessage({message:f}){return uq({message:f,privateKey:e})},async signTransaction(f,{serializer:p}={}){return Mq({privateKey:e,transaction:f,serializer:p})},async signTypedData(f){return d7({...f,privateKey:e})}}),publicKey:a,source:"privateKey"}}function jr(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}function p7(e,n){const i=e.exec(n);return i==null?void 0:i.groups}const ED=/^tuple(?<array>(\[(\d*)\])*)$/;function Lw(e){let n=e.type;if(ED.test(e.type)&&"components"in e){n="(";const i=e.components.length;for(let u=0;u<i;u++){const l=e.components[u];n+=Lw(l),u<i-1&&(n+=", ")}const a=p7(ED,e.type);return n+=`)${(a==null?void 0:a.array)??""}`,Lw({...e,type:n})}return"indexed"in e&&e.indexed&&(n=`${n} indexed`),e.name?`${n} ${e.name}`:n}function ud(e){let n="";const i=e.length;for(let a=0;a<i;a++){const u=e[a];n+=Lw(u),a!==i-1&&(n+=", ")}return n}function h7(e){var n;return e.type==="function"?`function ${e.name}(${ud(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${(n=e.outputs)!=null&&n.length?` returns (${ud(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${ud(e.inputs)})`:e.type==="error"?`error ${e.name}(${ud(e.inputs)})`:e.type==="constructor"?`constructor(${ud(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}function Zn(e,n,i){const a=e[n.name];if(typeof a=="function")return a;const u=e[i];return typeof u=="function"?u:l=>n(e,l)}const m7=e=>Wr(dS(e));function g7(e){return m7(e)}function y7(e){let n=!0,i="",a=0,u="",l=!1;for(let f=0;f<e.length;f++){const p=e[f];if(["(",")",","].includes(p)&&(n=!0),p==="("&&a++,p===")"&&a--,!!n){if(a===0){if(p===" "&&["event","function",""].includes(u))u="";else if(u+=p,p===")"){l=!0;break}continue}if(p===" "){e[f-1]!==","&&i!==","&&i!==",("&&(i="",n=!1);continue}u+=p,i+=p}}if(!l)throw new $e("Unable to normalize signature.");return u}const b7=e=>{const n=typeof e=="string"?e:h7(e);return y7(n)};function r_(e){return g7(b7(e))}const A7=r_,IS=e=>Nd(r_(e),0,4);function i_(e){const{abi:n,args:i=[],name:a}=e,u=ga(a,{strict:!1}),l=n.filter(p=>u?p.type==="function"?IS(p)===a:p.type==="event"?A7(p)===a:!1:"name"in p&&p.name===a);if(l.length===0)return;if(l.length===1)return l[0];let f;for(const p of l){if(!("inputs"in p))continue;if(!i||i.length===0){if(!p.inputs||p.inputs.length===0)return p;continue}if(!p.inputs||p.inputs.length===0||p.inputs.length!==i.length)continue;if(i.every((m,v)=>{const A="inputs"in p&&p.inputs[v];return A?kw(m,A):!1})){if(f&&"inputs"in f&&f.inputs){const m=o_(p.inputs,f.inputs,i);if(m)throw new qq({abiItem:p,type:m[0]},{abiItem:f,type:m[1]})}f=p}}return f||l[0]}function kw(e,n){const i=typeof e,a=n.type;switch(a){case"address":return Mn(e,{strict:!1});case"bool":return i==="boolean";case"function":return i==="string";case"string":return i==="string";default:return a==="tuple"&&"components"in n?Object.values(n.components).every((u,l)=>kw(Object.values(e)[l],u)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(a)?i==="number"||i==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(a)?i==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(a)?Array.isArray(e)&&e.every(u=>kw(u,{...n,type:a.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function o_(e,n,i){for(const a in e){const u=e[a],l=n[a];if(u.type==="tuple"&&l.type==="tuple"&&"components"in u&&"components"in l)return o_(u.components,l.components,i[a]);const f=[u.type,l.type];if(f.includes("address")&&f.includes("bytes20")?!0:f.includes("address")&&f.includes("string")?Mn(i[a],{strict:!1}):f.includes("address")&&f.includes("bytes")?Mn(i[a],{strict:!1}):!1)return f}}const wD="/docs/contract/encodeFunctionData";function v7(e){const{abi:n,args:i,functionName:a}=e;let u=n[0];if(a){const l=i_({abi:n,args:i,name:a});if(!l)throw new xD(a,{docsPath:wD});u=l}if(u.type!=="function")throw new xD(void 0,{docsPath:wD});return{abi:[u],functionName:IS(oc(u))}}function a_(e){const{args:n}=e,{abi:i,functionName:a}=(()=>{var p;return e.abi.length===1&&((p=e.functionName)!=null&&p.startsWith("0x"))?e:v7(e)})(),u=i[0],l=a,f="inputs"in u&&u.inputs?Ag(u.inputs,n??[]):void 0;return ps([l,f??"0x"])}const x7={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."},E7={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},w7={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function S7(e,n={}){typeof n.size<"u"&&To(e,{size:n.size});const i=lr(e,n);return So(i,n)}function I7(e,n={}){let i=e;if(typeof n.size<"u"&&(To(i,{size:n.size}),i=ds(i)),i.length>1||i[0]>1)throw new F$(i);return!!i[0]}function ma(e,n={}){typeof n.size<"u"&&To(e,{size:n.size});const i=lr(e,n);return ya(i,n)}function C7(e,n={}){let i=e;return typeof n.size<"u"&&(To(i,{size:n.size}),i=ds(i,{dir:"right"})),new TextDecoder().decode(i)}function T7(e,n){const i=typeof n=="string"?Gi(n):n,a=hS(i);if(an(i)===0&&e.length>0)throw new xS;if(an(n)&&an(n)<32)throw new Pq({data:typeof n=="string"?n:lr(n),params:e,size:an(n)});let u=0;const l=[];for(let f=0;f<e.length;++f){const p=e[f];a.setPosition(u);const[h,m]=Jl(a,p,{staticPosition:0});u+=m,l.push(h)}return l}function Jl(e,n,{staticPosition:i}){const a=SS(n.type);if(a){const[u,l]=a;return R7(e,{...n,type:l},{length:u,staticPosition:i})}if(n.type==="tuple")return B7(e,n,{staticPosition:i});if(n.type==="address")return O7(e);if(n.type==="bool")return F7(e);if(n.type.startsWith("bytes"))return N7(e,n,{staticPosition:i});if(n.type.startsWith("uint")||n.type.startsWith("int"))return D7(e,n);if(n.type==="string")return U7(e,{staticPosition:i});throw new Vq(n.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const SD=32,$w=32;function O7(e){const n=e.readBytes(32);return[fp(lr(Q8(n,-20))),32]}function R7(e,n,{length:i,staticPosition:a}){if(!i){const f=ma(e.readBytes($w)),p=a+f,h=p+SD;e.setPosition(p);const m=ma(e.readBytes(SD)),v=Dd(n);let A=0;const y=[];for(let I=0;I<m;++I){e.setPosition(h+(v?I*32:A));const[R,U]=Jl(e,n,{staticPosition:h});A+=U,y.push(R)}return e.setPosition(a+32),[y,32]}if(Dd(n)){const f=ma(e.readBytes($w)),p=a+f,h=[];for(let m=0;m<i;++m){e.setPosition(p+m*32);const[v]=Jl(e,n,{staticPosition:p});h.push(v)}return e.setPosition(a+32),[h,32]}let u=0;const l=[];for(let f=0;f<i;++f){const[p,h]=Jl(e,n,{staticPosition:a+u});u+=h,l.push(p)}return[l,u]}function F7(e){return[I7(e.readBytes(32),{size:32}),32]}function N7(e,n,{staticPosition:i}){const[a,u]=n.type.split("bytes");if(!u){const f=ma(e.readBytes(32));e.setPosition(i+f);const p=ma(e.readBytes(32));if(p===0)return e.setPosition(i+32),["0x",32];const h=e.readBytes(p);return e.setPosition(i+32),[lr(h),32]}return[lr(e.readBytes(Number.parseInt(u,10),32)),32]}function D7(e,n){const i=n.type.startsWith("int"),a=Number.parseInt(n.type.split("int")[1]||"256",10),u=e.readBytes(32);return[a>48?S7(u,{signed:i}):ma(u,{signed:i}),32]}function B7(e,n,{staticPosition:i}){const a=n.components.length===0||n.components.some(({name:f})=>!f),u=a?[]:{};let l=0;if(Dd(n)){const f=ma(e.readBytes($w)),p=i+f;for(let h=0;h<n.components.length;++h){const m=n.components[h];e.setPosition(p+l);const[v,A]=Jl(e,m,{staticPosition:p});l+=A,u[a?h:m==null?void 0:m.name]=v}return e.setPosition(i+32),[u,32]}for(let f=0;f<n.components.length;++f){const p=n.components[f],[h,m]=Jl(e,p,{staticPosition:i});u[a?f:p==null?void 0:p.name]=h,l+=m}return[u,l]}function U7(e,{staticPosition:n}){const i=ma(e.readBytes(32)),a=n+i;e.setPosition(a);const u=ma(e.readBytes(32));if(u===0)return e.setPosition(n+32),["",32];const l=e.readBytes(u,32),f=C7(ds(l));return e.setPosition(n+32),[f,32]}function Dd(e){var a;const{type:n}=e;if(n==="string"||n==="bytes"||n.endsWith("[]"))return!0;if(n==="tuple")return(a=e.components)==null?void 0:a.some(Dd);const i=SS(e.type);return!!(i&&Dd({...e,type:i[1]}))}function M7(e){const{abi:n,data:i}=e,a=Nd(i,0,4);if(a==="0x")throw new xS;const l=[...n||[],E7,w7].find(f=>f.type==="error"&&a===IS(oc(f)));if(!l)throw new K8(a,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?T7(l.inputs,Nd(i,4)):void 0,errorName:l.name}}function s_({abiItem:e,args:n,includeFunctionName:i=!0,includeName:a=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${i?e.name:""}(${e.inputs.map((u,l)=>`${a&&u.name?`${u.name}: `:""}${typeof n[l]=="object"?Vi(n[l]):n[l]}`).join(", ")})`}class _7 extends $e{constructor({address:n}){super(`State for account "${n}" is set multiple times.`,{name:"AccountStateConflictError"})}}class j7 extends $e{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}const P7=e=>e,CS=e=>e;class L7 extends $e{constructor(n,{abi:i,args:a,contractAddress:u,docsPath:l,functionName:f,sender:p}){const h=i_({abi:i,args:a,name:f}),m=h?s_({abiItem:h,args:a,includeFunctionName:!1,includeName:!1}):void 0,v=h?oc(h,{includeName:!0}):void 0,A=mg({address:u&&P7(u),function:v,args:m&&m!=="()"&&`${[...Array((f==null?void 0:f.length)??0).keys()].map(()=>" ").join("")}${m}`,sender:p});super(n.shortMessage||`An unknown error occurred while executing the contract function "${f}".`,{cause:n,docsPath:l,metaMessages:[...n.metaMessages?[...n.metaMessages," "]:[],A&&"Contract Call:",A].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=i,this.args=a,this.cause=n,this.contractAddress=u,this.functionName=f,this.sender=p}}class k7 extends $e{constructor({abi:n,data:i,functionName:a,message:u}){let l,f,p,h;if(i&&i!=="0x")try{f=M7({abi:n,data:i});const{abiItem:v,errorName:A,args:y}=f;if(A==="Error")h=y[0];else if(A==="Panic"){const[I]=y;h=x7[I]}else{const I=v?oc(v,{includeName:!0}):void 0,R=v&&y?s_({abiItem:v,args:y,includeFunctionName:!1,includeName:!1}):void 0;p=[I?`Error: ${I}`:"",R&&R!=="()"?` ${[...Array((A==null?void 0:A.length)??0).keys()].map(()=>" ").join("")}${R}`:""]}}catch(v){l=v}else u&&(h=u);let m;l instanceof K8&&(m=l.signature,p=[`Unable to decode signature "${m}" 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=${m}.`]),super(h&&h!=="execution reverted"||m?[`The contract function "${a}" reverted with the following ${m?"signature":"reason"}:`,h||m].join(`
296
- `):`The contract function "${a}" reverted.`,{cause:l,metaMessages:p,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=f,this.raw=i,this.reason=h,this.signature=m}}class $7 extends $e{constructor({functionName:n}){super(`The contract function "${n}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${n}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class q7 extends $e{constructor({data:n,message:i}){super(i||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n}}class Ed extends $e{constructor({body:n,cause:i,details:a,headers:u,status:l,url:f}){super("HTTP request failed.",{cause:i,details:a,metaMessages:[l&&`Status: ${l}`,`URL: ${CS(f)}`,n&&`Request body: ${Vi(n)}`].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=n,this.headers=u,this.status=l,this.url=f}}class TS extends $e{constructor({body:n,error:i,url:a}){super("RPC Request failed.",{cause:i,details:i.message,metaMessages:[`URL: ${CS(a)}`,`Request body: ${Vi(n)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=i.code,this.data=i.data}}class ID extends $e{constructor({body:n,url:i}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${CS(i)}`,`Request body: ${Vi(n)}`],name:"TimeoutError"})}}const H7=-1;class $r extends $e{constructor(n,{code:i,docsPath:a,metaMessages:u,name:l,shortMessage:f}){super(f,{cause:n,docsPath:a,metaMessages:u||(n==null?void 0:n.metaMessages),name:l||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=l||n.name,this.code=n instanceof TS?n.code:i??H7}}class ui extends $r{constructor(n,i){super(n,i),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=i.data}}class Bd extends $r{constructor(n){super(n,{code:Bd.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(Bd,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class Ud extends $r{constructor(n){super(n,{code:Ud.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(Ud,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class Md extends $r{constructor(n,{method:i}={}){super(n,{code:Md.code,name:"MethodNotFoundRpcError",shortMessage:`The method${i?` "${i}"`:""} does not exist / is not available.`})}}Object.defineProperty(Md,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class _d extends $r{constructor(n){super(n,{code:_d.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
297
- `)})}}Object.defineProperty(_d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Tu extends $r{constructor(n){super(n,{code:Tu.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(Tu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class jd extends $r{constructor(n){super(n,{code:jd.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
298
- `)})}}Object.defineProperty(jd,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class Pd extends $r{constructor(n){super(n,{code:Pd.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(Pd,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class Ld extends $r{constructor(n){super(n,{code:Ld.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(Ld,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class kd extends $r{constructor(n){super(n,{code:kd.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(kd,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class xu extends $r{constructor(n,{method:i}={}){super(n,{code:xu.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${i?` "${i}"`:""} is not supported.`})}}Object.defineProperty(xu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class ac extends $r{constructor(n){super(n,{code:ac.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(ac,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class $d extends $r{constructor(n){super(n,{code:$d.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty($d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Wl extends ui{constructor(n){super(n,{code:Wl.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(Wl,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class qd extends ui{constructor(n){super(n,{code:qd.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(qd,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class Hd extends ui{constructor(n,{method:i}={}){super(n,{code:Hd.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${i?` " ${i}"`:""}.`})}}Object.defineProperty(Hd,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class zd extends ui{constructor(n){super(n,{code:zd.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(zd,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class Vd extends ui{constructor(n){super(n,{code:Vd.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(Vd,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class Gd extends ui{constructor(n){super(n,{code:Gd.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(Gd,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class sc extends ui{constructor(n){super(n,{code:sc.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(sc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class Qd extends ui{constructor(n){super(n,{code:Qd.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(Qd,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class Yd extends ui{constructor(n){super(n,{code:Yd.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(Yd,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class Kd extends ui{constructor(n){super(n,{code:Kd.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(Kd,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class Xd extends ui{constructor(n){super(n,{code:Xd.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(Xd,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class Zd extends ui{constructor(n){super(n,{code:Zd.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(Zd,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class uc extends ui{constructor(n){super(n,{code:uc.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(uc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class z7 extends $r{constructor(n){super(n,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const V7=3;function G7(e,{abi:n,address:i,args:a,docsPath:u,functionName:l,sender:f}){const p=e instanceof q7?e:e instanceof $e?e.walk(R=>"data"in R)||e.walk():{},{code:h,data:m,details:v,message:A,shortMessage:y}=p,I=e instanceof xS?new $7({functionName:l}):[V7,Tu.code].includes(h)&&(m||v||A||y)?new k7({abi:n,data:typeof m=="object"?m.data:m,functionName:l,message:p instanceof TS?v:y??A}):e;return new L7(I,{abi:n,args:a,contractAddress:i,docsPath:u,functionName:l,sender:f})}const Q7="modulepreload",Y7=function(e){return"/"+e},CD={},K7=function(n,i,a){let u=Promise.resolve();if(i&&i.length>0){let f=function(m){return Promise.all(m.map(v=>Promise.resolve(v).then(A=>({status:"fulfilled",value:A}),A=>({status:"rejected",reason:A}))))};document.getElementsByTagName("link");const p=document.querySelector("meta[property=csp-nonce]"),h=(p==null?void 0:p.nonce)||(p==null?void 0:p.getAttribute("nonce"));u=f(i.map(m=>{if(m=Y7(m),m in CD)return;CD[m]=!0;const v=m.endsWith(".css"),A=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${A}`))return;const y=document.createElement("link");if(y.rel=v?"stylesheet":Q7,v||(y.as="script"),y.crossOrigin="",y.href=m,h&&y.setAttribute("nonce",h),document.head.appendChild(y),v)return new Promise((I,R)=>{y.addEventListener("load",I),y.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${m}`)))})}))}function l(f){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=f,window.dispatchEvent(p),!p.defaultPrevented)throw f}return u.then(f=>{for(const p of f||[])p.status==="rejected"&&l(p.reason);return n().catch(l)})};async function X7({hash:e,signature:n}){const i=ga(e)?e:wo(e),{secp256k1:a}=await K7(async()=>{const{secp256k1:f}=await Promise.resolve().then(()=>R$);return{secp256k1:f}},void 0);return`0x${(()=>{if(typeof n=="object"&&"r"in n&&"s"in n){const{r:m,s:v,v:A,yParity:y}=n,I=Number(y??A),R=TD(I);return new a.Signature(So(m),So(v)).addRecoveryBit(R)}const f=ga(n)?n:wo(n);if(an(f)!==65)throw new Error("invalid signature length");const p=ya(`0x${f.slice(130)}`),h=TD(p);return a.Signature.fromCompact(f.substring(2,130)).addRecoveryBit(h)})().recoverPublicKey(i.substring(2)).toHex(!1)}`}function TD(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 Z7({hash:e,signature:n}){return B8(await X7({hash:e,signature:n}))}async function u_(e){const{authorization:n,signature:i}=e;return Z7({hash:_8(n),signature:i??n})}class J7 extends $e{constructor(n,{account:i,docsPath:a,chain:u,data:l,gas:f,gasPrice:p,maxFeePerGas:h,maxPriorityFeePerGas:m,nonce:v,to:A,value:y}){var R;const I=mg({from:i==null?void 0:i.address,to:A,value:typeof y<"u"&&`${P8(y)} ${((R=u==null?void 0:u.nativeCurrency)==null?void 0:R.symbol)||"ETH"}`,data:l,gas:f,gasPrice:typeof p<"u"&&`${zi(p)} gwei`,maxFeePerGas:typeof h<"u"&&`${zi(h)} gwei`,maxPriorityFeePerGas:typeof m<"u"&&`${zi(m)} gwei`,nonce:v});super(n.shortMessage,{cause:n,docsPath:a,metaMessages:[...n.metaMessages?[...n.metaMessages," "]:[],"Estimate Gas Arguments:",I].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=n}}function l_(e,n){const i=(e.details||"").toLowerCase(),a=e instanceof $e?e.walk(u=>(u==null?void 0:u.code)===Yl.code):e;return a instanceof $e?new Yl({cause:e,message:a.details}):Yl.nodeMessage.test(i)?new Yl({cause:e,message:e.details}):Cu.nodeMessage.test(i)?new Cu({cause:e,maxFeePerGas:n==null?void 0:n.maxFeePerGas}):Fw.nodeMessage.test(i)?new Fw({cause:e,maxFeePerGas:n==null?void 0:n.maxFeePerGas}):Nw.nodeMessage.test(i)?new Nw({cause:e,nonce:n==null?void 0:n.nonce}):Dw.nodeMessage.test(i)?new Dw({cause:e,nonce:n==null?void 0:n.nonce}):Bw.nodeMessage.test(i)?new Bw({cause:e,nonce:n==null?void 0:n.nonce}):Uw.nodeMessage.test(i)?new Uw({cause:e}):Mw.nodeMessage.test(i)?new Mw({cause:e,gas:n==null?void 0:n.gas}):_w.nodeMessage.test(i)?new _w({cause:e,gas:n==null?void 0:n.gas}):jw.nodeMessage.test(i)?new jw({cause:e}):Fd.nodeMessage.test(i)?new Fd({cause:e,maxFeePerGas:n==null?void 0:n.maxFeePerGas,maxPriorityFeePerGas:n==null?void 0:n.maxPriorityFeePerGas}):new bS({cause:e})}function W7(e,{docsPath:n,...i}){const a=(()=>{const u=l_(e,i);return u instanceof bS?e:u})();return new J7(a,{docsPath:n,...i})}function c_(e,{format:n}){if(!n)return{};const i={};function a(l){const f=Object.keys(l);for(const p of f)p in e&&(i[p]=e[p]),l[p]&&typeof l[p]=="object"&&!Array.isArray(l[p])&&a(l[p])}const u=n(e||{});return a(u),i}const eH={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function OS(e){const n={};return typeof e.authorizationList<"u"&&(n.authorizationList=tH(e.authorizationList)),typeof e.accessList<"u"&&(n.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(n.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?n.blobs=e.blobs.map(i=>lr(i)):n.blobs=e.blobs),typeof e.data<"u"&&(n.data=e.data),typeof e.from<"u"&&(n.from=e.from),typeof e.gas<"u"&&(n.gas=Ke(e.gas)),typeof e.gasPrice<"u"&&(n.gasPrice=Ke(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(n.maxFeePerBlobGas=Ke(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(n.maxFeePerGas=Ke(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(n.maxPriorityFeePerGas=Ke(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(n.nonce=Ke(e.nonce)),typeof e.to<"u"&&(n.to=e.to),typeof e.type<"u"&&(n.type=eH[e.type]),typeof e.value<"u"&&(n.value=Ke(e.value)),n}function tH(e){return e.map(n=>({address:n.address,r:n.r?Ke(BigInt(n.r)):n.r,s:n.s?Ke(BigInt(n.s)):n.s,chainId:Ke(n.chainId),nonce:Ke(n.nonce),...typeof n.yParity<"u"?{yParity:Ke(n.yParity)}:{},...typeof n.v<"u"&&typeof n.yParity>"u"?{v:Ke(n.v)}:{}}))}function OD(e){if(!(!e||e.length===0))return e.reduce((n,{slot:i,value:a})=>{if(i.length!==66)throw new pD({size:i.length,targetSize:66,type:"hex"});if(a.length!==66)throw new pD({size:a.length,targetSize:66,type:"hex"});return n[i]=a,n},{})}function nH(e){const{balance:n,nonce:i,state:a,stateDiff:u,code:l}=e,f={};if(l!==void 0&&(f.code=l),n!==void 0&&(f.balance=Ke(n)),i!==void 0&&(f.nonce=Ke(i)),a!==void 0&&(f.state=OD(a)),u!==void 0){if(f.state)throw new j7;f.stateDiff=OD(u)}return f}function rH(e){if(!e)return;const n={};for(const{address:i,...a}of e){if(!Mn(i,{strict:!1}))throw new Er({address:i});if(n[i])throw new _7({address:i});n[i]=nH(a)}return n}function vg(e){const{account:n,gasPrice:i,maxFeePerGas:a,maxPriorityFeePerGas:u,to:l}=e,f=n?jr(n):void 0;if(f&&!Mn(f.address))throw new Er({address:f.address});if(l&&!Mn(l))throw new Er({address:l});if(typeof i<"u"&&(typeof a<"u"||typeof u<"u"))throw new fq;if(a&&a>gg)throw new Cu({maxFeePerGas:a});if(u&&a&&u>a)throw new Fd({maxFeePerGas:a,maxPriorityFeePerGas:u})}class iH extends $e{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class RS extends $e{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class oH extends $e{constructor({maxPriorityFeePerGas:n}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${zi(n)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class aH extends $e{constructor({blockHash:n,blockNumber:i}){let a="Block";n&&(a=`Block at hash "${n}"`),i&&(a=`Block at number "${i}"`),super(`${a} could not be found.`,{name:"BlockNotFoundError"})}}const sH={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function uH(e){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?ya(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?ya(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?sH[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(n.authorizationList=lH(e.authorizationList)),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof n.v=="bigint"){if(n.v===0n||n.v===27n)return 0;if(n.v===1n||n.v===28n)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),n.type==="legacy"&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),n.type==="eip2930"&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),n.type==="eip1559"&&delete n.maxFeePerBlobGas,n}function lH(e){return e.map(n=>({address:n.address,chainId:Number(n.chainId),nonce:Number(n.nonce),r:n.r,s:n.s,yParity:Number(n.yParity)}))}function cH(e){const n=(e.transactions??[]).map(i=>typeof i=="string"?i:uH(i));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}async function Jm(e,{blockHash:n,blockNumber:i,blockTag:a=e.experimental_blockTag??"latest",includeTransactions:u}={}){var m,v,A;const l=u??!1,f=i!==void 0?Ke(i):void 0;let p=null;if(n?p=await e.request({method:"eth_getBlockByHash",params:[n,l]},{dedupe:!0}):p=await e.request({method:"eth_getBlockByNumber",params:[f||a,l]},{dedupe:!!f}),!p)throw new aH({blockHash:n,blockNumber:i});return(((A=(v=(m=e.chain)==null?void 0:m.formatters)==null?void 0:v.block)==null?void 0:A.format)||cH)(p)}async function f_(e){const n=await e.request({method:"eth_gasPrice"});return BigInt(n)}async function fH(e,n){var l,f;const{block:i,chain:a=e.chain,request:u}=n||{};try{const p=((l=a==null?void 0:a.fees)==null?void 0:l.maxPriorityFeePerGas)??((f=a==null?void 0:a.fees)==null?void 0:f.defaultPriorityFee);if(typeof p=="function"){const m=i||await Zn(e,Jm,"getBlock")({}),v=await p({block:m,client:e,request:u});if(v===null)throw new Error;return v}if(typeof p<"u")return p;const h=await e.request({method:"eth_maxPriorityFeePerGas"});return So(h)}catch{const[p,h]=await Promise.all([i?Promise.resolve(i):Zn(e,Jm,"getBlock")({}),Zn(e,f_,"getGasPrice")({})]);if(typeof p.baseFeePerGas!="bigint")throw new RS;const m=h-p.baseFeePerGas;return m<0n?0n:m}}async function RD(e,n){var y,I;const{block:i,chain:a=e.chain,request:u,type:l="eip1559"}=n||{},f=await(async()=>{var R,U;return typeof((R=a==null?void 0:a.fees)==null?void 0:R.baseFeeMultiplier)=="function"?a.fees.baseFeeMultiplier({block:i,client:e,request:u}):((U=a==null?void 0:a.fees)==null?void 0:U.baseFeeMultiplier)??1.2})();if(f<1)throw new iH;const h=10**(((y=f.toString().split(".")[1])==null?void 0:y.length)??0),m=R=>R*BigInt(Math.ceil(f*h))/BigInt(h),v=i||await Zn(e,Jm,"getBlock")({});if(typeof((I=a==null?void 0:a.fees)==null?void 0:I.estimateFeesPerGas)=="function"){const R=await a.fees.estimateFeesPerGas({block:i,client:e,multiply:m,request:u,type:l});if(R!==null)return R}if(l==="eip1559"){if(typeof v.baseFeePerGas!="bigint")throw new RS;const R=typeof(u==null?void 0:u.maxPriorityFeePerGas)=="bigint"?u.maxPriorityFeePerGas:await fH(e,{block:v,chain:a,request:u}),U=m(v.baseFeePerGas);return{maxFeePerGas:(u==null?void 0:u.maxFeePerGas)??U+R,maxPriorityFeePerGas:R}}return{gasPrice:(u==null?void 0:u.gasPrice)??m(await Zn(e,f_,"getGasPrice")({}))}}async function hp(e){const n=await e.request({method:"eth_chainId"},{dedupe:!0});return ya(n)}const d_=["blobVersionedHashes","chainId","fees","gas","nonce","type"],FD=new Map;async function FS(e,n){const{account:i=e.account,blobs:a,chain:u,gas:l,kzg:f,nonce:p,nonceManager:h,parameters:m=d_,type:v}=n,A=i&&jr(i),y={...n,...A?{from:A==null?void 0:A.address}:{}};let I;async function R(){return I||(I=await Zn(e,Jm,"getBlock")({blockTag:"latest"}),I)}let U;async function F(){return U||(u?u.id:typeof n.chainId<"u"?n.chainId:(U=await Zn(e,hp,"getChainId")({}),U))}if(m.includes("nonce")&&typeof p>"u"&&A)if(h){const N=await F();y.nonce=await h.consume({address:A.address,chainId:N,client:e})}else y.nonce=await Zn(e,T8,"getTransactionCount")({address:A.address,blockTag:"pending"});if((m.includes("blobVersionedHashes")||m.includes("sidecars"))&&a&&f){const N=mS({blobs:a,kzg:f});if(m.includes("blobVersionedHashes")){const B=L8({commitments:N,to:"hex"});y.blobVersionedHashes=B}if(m.includes("sidecars")){const B=gS({blobs:a,commitments:N,kzg:f}),M=z8({blobs:a,commitments:N,proofs:B,to:"hex"});y.sidecars=M}}if(m.includes("chainId")&&(y.chainId=await F()),(m.includes("fees")||m.includes("type"))&&typeof v>"u")try{y.type=Y8(y)}catch{let N=FD.get(e.uid);if(typeof N>"u"){const B=await R();N=typeof(B==null?void 0:B.baseFeePerGas)=="bigint",FD.set(e.uid,N)}y.type=N?"eip1559":"legacy"}if(m.includes("fees"))if(y.type!=="legacy"&&y.type!=="eip2930"){if(typeof y.maxFeePerGas>"u"||typeof y.maxPriorityFeePerGas>"u"){const N=await R(),{maxFeePerGas:B,maxPriorityFeePerGas:M}=await RD(e,{block:N,chain:u,request:y});if(typeof n.maxPriorityFeePerGas>"u"&&n.maxFeePerGas&&n.maxFeePerGas<M)throw new oH({maxPriorityFeePerGas:M});y.maxPriorityFeePerGas=M,y.maxFeePerGas=B}}else{if(typeof n.maxFeePerGas<"u"||typeof n.maxPriorityFeePerGas<"u")throw new RS;if(typeof n.gasPrice>"u"){const N=await R(),{gasPrice:B}=await RD(e,{block:N,chain:u,request:y,type:"legacy"});y.gasPrice=B}}return m.includes("gas")&&typeof l>"u"&&(y.gas=await Zn(e,pH,"estimateGas")({...y,account:A&&{address:A.address,type:"json-rpc"}})),vg(y),delete y.parameters,y}async function dH(e,{address:n,blockNumber:i,blockTag:a=e.experimental_blockTag??"latest"}){const u=typeof i=="bigint"?Ke(i):void 0,l=await e.request({method:"eth_getBalance",params:[n,u||a]});return BigInt(l)}async function pH(e,n){var l,f,p;const{account:i=e.account}=n,a=i?jr(i):void 0;try{let Ee=function(fe){const{block:be,request:te,rpcStateOverride:j}=fe;return e.request({method:"eth_estimateGas",params:j?[te,be??e.experimental_blockTag??"latest",j]:be?[te,be]:[te]})};var u=Ee;const{accessList:h,authorizationList:m,blobs:v,blobVersionedHashes:A,blockNumber:y,blockTag:I,data:R,gas:U,gasPrice:F,maxFeePerBlobGas:N,maxFeePerGas:B,maxPriorityFeePerGas:M,nonce:H,value:k,stateOverride:X,...re}=await FS(e,{...n,parameters:(a==null?void 0:a.type)==="local"?void 0:["blobVersionedHashes"]}),O=(typeof y=="bigint"?Ke(y):void 0)||I,P=rH(X),L=await(async()=>{if(re.to)return re.to;if(m&&m.length>0)return await u_({authorization:m[0]}).catch(()=>{throw new $e("`to` is required. Could not infer from `authorizationList`")})})();vg(n);const q=(p=(f=(l=e.chain)==null?void 0:l.formatters)==null?void 0:f.transactionRequest)==null?void 0:p.format,ge=(q||OS)({...c_(re,{format:q}),from:a==null?void 0:a.address,accessList:h,authorizationList:m,blobs:v,blobVersionedHashes:A,data:R,gas:U,gasPrice:F,maxFeePerBlobGas:N,maxFeePerGas:B,maxPriorityFeePerGas:M,nonce:H,to:L,value:k});let D=BigInt(await Ee({block:O,request:ge,rpcStateOverride:P}));if(m){const fe=await dH(e,{address:ge.from}),be=await Promise.all(m.map(async te=>{const{address:j}=te,ue=await Ee({block:O,request:{authorizationList:void 0,data:R,from:a==null?void 0:a.address,to:j,value:Ke(fe)},rpcStateOverride:P}).catch(()=>100000n);return 2n*BigInt(ue)}));D+=be.reduce((te,j)=>te+j,0n)}return D}catch(h){throw W7(h,{...n,account:a,chain:e.chain})}}function hH(e,n){if(!Mn(e,{strict:!1}))throw new Er({address:e});if(!Mn(n,{strict:!1}))throw new Er({address:n});return e.toLowerCase()===n.toLowerCase()}const GA="/docs/contract/encodeDeployData";function mH(e){const{abi:n,args:i,bytecode:a}=e;if(!i||i.length===0)return a;const u=n.find(f=>"type"in f&&f.type==="constructor");if(!u)throw new jq({docsPath:GA});if(!("inputs"in u))throw new vD({docsPath:GA});if(!u.inputs||u.inputs.length===0)throw new vD({docsPath:GA});const l=Ag(u.inputs,i);return ps([a,l])}function p_(){let e=()=>{},n=()=>{};return{promise:new Promise((a,u)=>{e=a,n=u}),resolve:e,reject:n}}const QA=new Map;function gH({fn:e,id:n,shouldSplitBatch:i,wait:a=0,sort:u}){const l=async()=>{const v=h();f();const A=v.map(({args:y})=>y);A.length!==0&&e(A).then(y=>{u&&Array.isArray(y)&&y.sort(u);for(let I=0;I<v.length;I++){const{resolve:R}=v[I];R==null||R([y[I],y])}}).catch(y=>{for(let I=0;I<v.length;I++){const{reject:R}=v[I];R==null||R(y)}})},f=()=>QA.delete(n),p=()=>h().map(({args:v})=>v),h=()=>QA.get(n)||[],m=v=>QA.set(n,[...h(),v]);return{flush:f,async schedule(v){const{promise:A,resolve:y,reject:I}=p_();return(i==null?void 0:i([...p(),v]))&&l(),h().length>0?(m({args:v,resolve:y,reject:I}),A):(m({args:v,resolve:y,reject:I}),setTimeout(l,a),A)}}}const YA=new Map,ND=new Map;let yH=0;function bH(e,n,i){const a=++yH,u=()=>YA.get(e)||[],l=()=>{const v=u();YA.set(e,v.filter(A=>A.id!==a))},f=()=>{const v=u();if(!v.some(y=>y.id===a))return;const A=ND.get(e);if(v.length===1&&A){const y=A();y instanceof Promise&&y.catch(()=>{})}l()},p=u();if(YA.set(e,[...p,{id:a,fns:n}]),p&&p.length>0)return f;const h={};for(const v in n)h[v]=((...A)=>{var I,R;const y=u();if(y.length!==0)for(const U of y)(R=(I=U.fns)[v])==null||R.call(I,...A)});const m=i(h);return typeof m=="function"&&ND.set(e,m),f}async function qw(e){return new Promise(n=>setTimeout(n,e))}function AH(e,{emitOnBegin:n,initialWaitTime:i,interval:a}){let u=!0;const l=()=>u=!1;return(async()=>{let p;p=await e({unpoll:l});const h=await(i==null?void 0:i(p))??a;await qw(h);const m=async()=>{u&&(await e({unpoll:l}),await qw(a),m())};m()})(),l}class Nu extends $e{constructor({docsPath:n}={}){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(`
299
- `),{docsPath:n,docsSlug:"account",name:"AccountNotFoundError"})}}class Hm extends $e{constructor({docsPath:n,metaMessages:i,type:a}){super(`Account type "${a}" is not supported.`,{docsPath:n,metaMessages:i,name:"AccountTypeNotSupportedError"})}}function h_({chain:e,currentChainId:n}){if(!e)throw new Sq;if(n!==e.id)throw new wq({chain:e,currentChainId:n})}function m_(e,{docsPath:n,...i}){const a=(()=>{const u=l_(e,i);return u instanceof bS?e:u})();return new mq(a,{docsPath:n,...i})}async function g_(e,{serializedTransaction:n}){return e.request({method:"eth_sendRawTransaction",params:[n]},{retryCount:0})}const KA=new hg(128);async function xg(e,n){var B,M,H,k;const{account:i=e.account,chain:a=e.chain,accessList:u,authorizationList:l,blobs:f,data:p,gas:h,gasPrice:m,maxFeePerBlobGas:v,maxFeePerGas:A,maxPriorityFeePerGas:y,nonce:I,type:R,value:U,...F}=n;if(typeof i>"u")throw new Nu({docsPath:"/docs/actions/wallet/sendTransaction"});const N=i?jr(i):null;try{vg(n);const X=await(async()=>{if(n.to)return n.to;if(n.to!==null&&l&&l.length>0)return await u_({authorization:l[0]}).catch(()=>{throw new $e("`to` is required. Could not infer from `authorizationList`.")})})();if((N==null?void 0:N.type)==="json-rpc"||N===null){let re;a!==null&&(re=await Zn(e,hp,"getChainId")({}),h_({currentChainId:re,chain:a}));const ie=(H=(M=(B=e.chain)==null?void 0:B.formatters)==null?void 0:M.transactionRequest)==null?void 0:H.format,P=(ie||OS)({...c_(F,{format:ie}),accessList:u,authorizationList:l,blobs:f,chainId:re,data:p,from:N==null?void 0:N.address,gas:h,gasPrice:m,maxFeePerBlobGas:v,maxFeePerGas:A,maxPriorityFeePerGas:y,nonce:I,to:X,type:R,value:U}),L=KA.get(e.uid),q=L?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:q,params:[P]},{retryCount:0})}catch(oe){if(L===!1)throw oe;const ge=oe;if(ge.name==="InvalidInputRpcError"||ge.name==="InvalidParamsRpcError"||ge.name==="MethodNotFoundRpcError"||ge.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[P]},{retryCount:0}).then(Ee=>(KA.set(e.uid,!0),Ee)).catch(Ee=>{const D=Ee;throw D.name==="MethodNotFoundRpcError"||D.name==="MethodNotSupportedRpcError"?(KA.set(e.uid,!1),ge):D});throw ge}}if((N==null?void 0:N.type)==="local"){const re=await Zn(e,FS,"prepareTransactionRequest")({account:N,accessList:u,authorizationList:l,blobs:f,chain:a,data:p,gas:h,gasPrice:m,maxFeePerBlobGas:v,maxFeePerGas:A,maxPriorityFeePerGas:y,nonce:I,nonceManager:N.nonceManager,parameters:[...d_,"sidecars"],type:R,value:U,...F,to:X}),ie=(k=a==null?void 0:a.serializers)==null?void 0:k.transaction,O=await N.signTransaction(re,{serializer:ie});return await Zn(e,g_,"sendRawTransaction")({serializedTransaction:O})}throw(N==null?void 0:N.type)==="smart"?new Hm({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new Hm({docsPath:"/docs/actions/wallet/sendTransaction",type:N==null?void 0:N.type})}catch(X){throw X instanceof Hm?X:m_(X,{...n,account:N,chain:n.chain||void 0})}}async function vH(e,n){const{abi:i,account:a=e.account,address:u,args:l,dataSuffix:f,functionName:p,...h}=n;if(typeof a>"u")throw new Nu({docsPath:"/docs/contract/writeContract"});const m=a?jr(a):null,v=a_({abi:i,args:l,functionName:p});try{return await Zn(e,xg,"sendTransaction")({data:`${v}${f?f.replace("0x",""):""}`,to:u,account:m,...h})}catch(A){throw G7(A,{abi:i,address:u,args:l,docsPath:"/docs/contract/writeContract",functionName:p,sender:m==null?void 0:m.address})}}class xH extends $e{constructor(n){super(`Call bundle failed with status: ${n.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=n}}function y_(e,{delay:n=100,retryCount:i=2,shouldRetry:a=()=>!0}={}){return new Promise((u,l)=>{const f=async({count:p=0}={})=>{const h=async({error:m})=>{const v=typeof n=="function"?n({count:p,error:m}):n;v&&await qw(v),f({count:p+1})};try{const m=await e();u(m)}catch(m){if(p<i&&await a({count:p,error:m}))return h({error:m});l(m)}};f()})}const EH={"0x0":"reverted","0x1":"success"},b_="0x5792579257925792579257925792579257925792579257925792579257925792",A_=Ke(0,{size:32});async function wH(e,n){const{account:i=e.account,capabilities:a,chain:u=e.chain,experimental_fallback:l,experimental_fallbackDelay:f=32,forceAtomic:p=!1,id:h,version:m="2.0.0"}=n,v=i?jr(i):null,A=n.calls.map(y=>{const I=y,R=I.abi?a_({abi:I.abi,functionName:I.functionName,args:I.args}):I.data;return{data:I.dataSuffix&&R?Io([R,I.dataSuffix]):R,to:I.to,value:I.value?Ke(I.value):void 0}});try{const y=await e.request({method:"wallet_sendCalls",params:[{atomicRequired:p,calls:A,capabilities:a,chainId:Ke(u.id),from:v==null?void 0:v.address,id:h,version:m}]},{retryCount:0});return typeof y=="string"?{id:y}:y}catch(y){const I=y;if(l&&(I.name==="MethodNotFoundRpcError"||I.name==="MethodNotSupportedRpcError"||I.name==="UnknownRpcError"||I.details.toLowerCase().includes("does not exist / is not available")||I.details.toLowerCase().includes("missing or invalid. request()")||I.details.toLowerCase().includes("did not match any variant of untagged enum")||I.details.toLowerCase().includes("account upgraded to unsupported contract")||I.details.toLowerCase().includes("eip-7702 not supported")||I.details.toLowerCase().includes("unsupported wc_ method")||I.details.toLowerCase().includes("feature toggled misconfigured"))){if(a&&Object.values(a).some(B=>!B.optional)){const B="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new sc(new $e(B,{details:B}))}if(p&&A.length>1){const N="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new uc(new $e(N,{details:N}))}const R=[];for(const N of A){const B=xg(e,{account:v,chain:u,data:N.data,to:N.to,value:N.value?So(N.value):void 0});R.push(B),f>0&&await new Promise(M=>setTimeout(M,f))}const U=await Promise.allSettled(R);if(U.every(N=>N.status==="rejected"))throw U[0].reason;const F=U.map(N=>N.status==="fulfilled"?N.value:A_);return{id:Io([...F,Ke(u.id,{size:32}),b_])}}throw m_(y,{...n,account:v,chain:n.chain})}}async function v_(e,n){async function i(v){if(v.endsWith(b_.slice(2))){const y=ds(Pw(v,-64,-32)),I=Pw(v,0,-64).slice(2).match(/.{1,64}/g),R=await Promise.all(I.map(F=>A_.slice(2)!==F?e.request({method:"eth_getTransactionReceipt",params:[`0x${F}`]},{dedupe:!0}):void 0)),U=R.some(F=>F===null)?100:R.every(F=>(F==null?void 0:F.status)==="0x1")?200:R.every(F=>(F==null?void 0:F.status)==="0x0")?500:600;return{atomic:!1,chainId:ya(y),receipts:R.filter(Boolean),status:U,version:"2.0.0"}}return e.request({method:"wallet_getCallsStatus",params:[v]})}const{atomic:a=!1,chainId:u,receipts:l,version:f="2.0.0",...p}=await i(n.id),[h,m]=(()=>{const v=p.status;return v>=100&&v<200?["pending",v]:v>=200&&v<300?["success",v]:v>=300&&v<700?["failure",v]:v==="CONFIRMED"?["success",200]:v==="PENDING"?["pending",100]:[void 0,v]})();return{...p,atomic:a,chainId:u?ya(u):void 0,receipts:(l==null?void 0:l.map(v=>({...v,blockNumber:So(v.blockNumber),gasUsed:So(v.gasUsed),status:EH[v.status]})))??[],statusCode:m,status:h,version:f}}async function SH(e,n){const{id:i,pollingInterval:a=e.pollingInterval,status:u=({statusCode:U})=>U===200||U>=300,retryCount:l=4,retryDelay:f=({count:U})=>~~(1<<U)*200,timeout:p=6e4,throwOnFailure:h=!1}=n,m=Vi(["waitForCallsStatus",e.uid,i]),{promise:v,resolve:A,reject:y}=p_();let I;const R=bH(m,{resolve:A,reject:y},U=>{const F=AH(async()=>{const N=B=>{clearTimeout(I),F(),B(),R()};try{const B=await y_(async()=>{const M=await Zn(e,v_,"getCallsStatus")({id:i});if(h&&M.status==="failure")throw new xH(M);return M},{retryCount:l,delay:f});if(!u(B))return;N(()=>U.resolve(B))}catch(B){N(()=>U.reject(B))}},{interval:a,emitOnBegin:!0});return F});return I=p?setTimeout(()=>{R(),clearTimeout(I),y(new IH({id:i}))},p):void 0,await v}class IH extends $e{constructor({id:n}){super(`Timed out while waiting for call bundle with id "${n}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}const Hw=256;let Fm=Hw,Nm;function x_(e=11){if(!Nm||Fm+e>Hw*2){Nm="",Fm=0;for(let n=0;n<Hw;n++)Nm+=(256+Math.random()*256|0).toString(16).substring(1)}return Nm.substring(Fm,Fm+++e)}function CH(e){const{batch:n,chain:i,ccipRead:a,key:u="base",name:l="Base Client",type:f="base"}=e,p=e.experimental_blockTag??(typeof(i==null?void 0:i.experimental_preconfirmationTime)=="number"?"pending":void 0),h=(i==null?void 0:i.blockTime)??12e3,m=Math.min(Math.max(Math.floor(h/2),500),4e3),v=e.pollingInterval??m,A=e.cacheTime??v,y=e.account?jr(e.account):void 0,{config:I,request:R,value:U}=e.transport({chain:i,pollingInterval:v}),F={...I,...U},N={account:y,batch:n,cacheTime:A,ccipRead:a,chain:i,key:u,name:l,pollingInterval:v,request:R,transport:F,type:f,uid:x_(),...p?{experimental_blockTag:p}:{}};function B(M){return H=>{const k=H(M);for(const re in N)delete k[re];const X={...M,...k};return Object.assign(X,{extend:B(X)})}}return Object.assign(N,{extend:B(N)})}const Dm=new hg(8192);function TH(e,{enabled:n=!0,id:i}){if(!n||!i)return e();if(Dm.get(i))return Dm.get(i);const a=e().finally(()=>Dm.delete(i));return Dm.set(i,a),a}function OH(e,n={}){return async(i,a={})=>{var A;const{dedupe:u=!1,methods:l,retryDelay:f=150,retryCount:p=3,uid:h}={...n,...a},{method:m}=i;if((A=l==null?void 0:l.exclude)!=null&&A.includes(m))throw new xu(new Error("method not supported"),{method:m});if(l!=null&&l.include&&!l.include.includes(m))throw new xu(new Error("method not supported"),{method:m});const v=u?ic(`${h}.${Vi(i)}`):void 0;return TH(()=>y_(async()=>{try{return await e(i)}catch(y){const I=y;switch(I.code){case Bd.code:throw new Bd(I);case Ud.code:throw new Ud(I);case Md.code:throw new Md(I,{method:i.method});case _d.code:throw new _d(I);case Tu.code:throw new Tu(I);case jd.code:throw new jd(I);case Pd.code:throw new Pd(I);case Ld.code:throw new Ld(I);case kd.code:throw new kd(I);case xu.code:throw new xu(I,{method:i.method});case ac.code:throw new ac(I);case $d.code:throw new $d(I);case Wl.code:throw new Wl(I);case qd.code:throw new qd(I);case Hd.code:throw new Hd(I);case zd.code:throw new zd(I);case Vd.code:throw new Vd(I);case Gd.code:throw new Gd(I);case sc.code:throw new sc(I);case Qd.code:throw new Qd(I);case Yd.code:throw new Yd(I);case Kd.code:throw new Kd(I);case Xd.code:throw new Xd(I);case Zd.code:throw new Zd(I);case uc.code:throw new uc(I);case 5e3:throw new Wl(I);default:throw y instanceof $e?y:new z7(I)}}},{delay:({count:y,error:I})=>{var R;if(I&&I instanceof Ed){const U=(R=I==null?void 0:I.headers)==null?void 0:R.get("Retry-After");if(U!=null&&U.match(/\d/))return Number.parseInt(U,10)*1e3}return~~(1<<y)*f},retryCount:p,shouldRetry:({error:y})=>RH(y)}),{enabled:u,id:v})}}function RH(e){return"code"in e&&typeof e.code=="number"?e.code===-1||e.code===ac.code||e.code===Tu.code:e instanceof Ed&&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 FH(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}function NH(e,{errorInstance:n=new Error("timed out"),timeout:i,signal:a}){return new Promise((u,l)=>{(async()=>{let f;try{const p=new AbortController;i>0&&(f=setTimeout(()=>{a&&p.abort()},i)),u(await e({signal:(p==null?void 0:p.signal)||null}))}catch(p){(p==null?void 0:p.name)==="AbortError"&&l(n),l(p)}finally{clearTimeout(f)}})()})}function DH(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const DD=DH();function BH(e,n={}){return{async request(i){var y;const{body:a,fetchFn:u=n.fetchFn??fetch,onRequest:l=n.onRequest,onResponse:f=n.onResponse,timeout:p=n.timeout??1e4}=i,h={...n.fetchOptions??{},...i.fetchOptions??{}},{headers:m,method:v,signal:A}=h;try{const I=await NH(async({signal:U})=>{const F={...h,body:Array.isArray(a)?Vi(a.map(H=>({jsonrpc:"2.0",id:H.id??DD.take(),...H}))):Vi({jsonrpc:"2.0",id:a.id??DD.take(),...a}),headers:{"Content-Type":"application/json",...m},method:v||"POST",signal:A||(p>0?U:null)},N=new Request(e,F),B=await(l==null?void 0:l(N,F))??{...F,url:e};return await u(B.url??e,B)},{errorInstance:new ID({body:a,url:e}),timeout:p,signal:!0});f&&await f(I);let R;if((y=I.headers.get("Content-Type"))!=null&&y.startsWith("application/json"))R=await I.json();else{R=await I.text();try{R=JSON.parse(R||"{}")}catch(U){if(I.ok)throw U;R={error:R}}}if(!I.ok)throw new Ed({body:a,details:Vi(R.error)||I.statusText,headers:I.headers,status:I.status,url:e});return R}catch(I){throw I instanceof Ed||I instanceof ID?I:new Ed({body:a,cause:I,url:e})}}}}async function UH(e,{chain:n}){const{id:i,name:a,nativeCurrency:u,rpcUrls:l,blockExplorers:f}=n;await e.request({method:"wallet_addEthereumChain",params:[{chainId:Ke(i),chainName:a,nativeCurrency:u,rpcUrls:l.default.http,blockExplorerUrls:f?Object.values(f).map(({url:p})=>p):void 0}]},{dedupe:!0,retryCount:0})}function MH(e,n){const{abi:i,args:a,bytecode:u,...l}=n,f=mH({abi:i,args:a,bytecode:u});return xg(e,{...l,...l.authorizationList?{to:null}:{},data:f})}async function _H(e){var i;return((i=e.account)==null?void 0:i.type)==="local"?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(a=>fp(a))}async function jH(e,n={}){const{account:i=e.account,chainId:a}=n,u=i?jr(i):void 0,l=a?[u==null?void 0:u.address,[Ke(a)]]:[u==null?void 0:u.address],f=await e.request({method:"wallet_getCapabilities",params:l}),p={};for(const[h,m]of Object.entries(f)){p[Number(h)]={};for(let[v,A]of Object.entries(m))v==="addSubAccount"&&(v="unstable_addSubAccount"),p[Number(h)][v]=A}return typeof a=="number"?p[a]:p}async function PH(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}async function E_(e,n){var h;const{account:i=e.account,chainId:a,nonce:u}=n;if(!i)throw new Nu({docsPath:"/docs/eip7702/prepareAuthorization"});const l=jr(i),f=(()=>{if(n.executor)return n.executor==="self"?n.executor:jr(n.executor)})(),p={address:n.contractAddress??n.address,chainId:a,nonce:u};return typeof p.chainId>"u"&&(p.chainId=((h=e.chain)==null?void 0:h.id)??await Zn(e,hp,"getChainId")({})),typeof p.nonce>"u"&&(p.nonce=await Zn(e,T8,"getTransactionCount")({address:l.address,blockTag:"pending"}),(f==="self"||f!=null&&f.address&&hH(f.address,l.address))&&(p.nonce+=1)),p}async function LH(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(i=>K$(i))}async function kH(e,n){return e.request({method:"wallet_requestPermissions",params:[n]},{retryCount:0})}async function $H(e,n){const{id:i}=n;await e.request({method:"wallet_showCallsStatus",params:[i]})}async function qH(e,n){const{account:i=e.account}=n;if(!i)throw new Nu({docsPath:"/docs/eip7702/signAuthorization"});const a=jr(i);if(!a.signAuthorization)throw new Hm({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:a.type});const u=await E_(e,n);return a.signAuthorization(u)}async function HH(e,{account:n=e.account,message:i}){if(!n)throw new Nu({docsPath:"/docs/actions/wallet/signMessage"});const a=jr(n);if(a.signMessage)return a.signMessage({message:i});const u=typeof i=="string"?ic(i):i.raw instanceof Uint8Array?wo(i.raw):i.raw;return e.request({method:"personal_sign",params:[u,a.address]},{retryCount:0})}async function zH(e,n){var m,v,A,y;const{account:i=e.account,chain:a=e.chain,...u}=n;if(!i)throw new Nu({docsPath:"/docs/actions/wallet/signTransaction"});const l=jr(i);vg({account:l,...n});const f=await Zn(e,hp,"getChainId")({});a!==null&&h_({currentChainId:f,chain:a});const p=(a==null?void 0:a.formatters)||((m=e.chain)==null?void 0:m.formatters),h=((v=p==null?void 0:p.transactionRequest)==null?void 0:v.format)||OS;return l.signTransaction?l.signTransaction({...u,chainId:f},{serializer:(y=(A=e.chain)==null?void 0:A.serializers)==null?void 0:y.transaction}):await e.request({method:"eth_signTransaction",params:[{...h(u),chainId:Ke(f),from:l.address}]},{retryCount:0})}async function VH(e,n){const{account:i=e.account,domain:a,message:u,primaryType:l}=n;if(!i)throw new Nu({docsPath:"/docs/actions/wallet/signTypedData"});const f=jr(i),p={EIP712Domain:J8({domain:a}),...n.types};if(Z8({domain:a,message:u,primaryType:l,types:p}),f.signTypedData)return f.signTypedData({domain:a,message:u,primaryType:l,types:p});const h=a7({domain:a,message:u,primaryType:l,types:p});return e.request({method:"eth_signTypedData_v4",params:[f.address,h]},{retryCount:0})}async function GH(e,{id:n}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:Ke(n)}]},{retryCount:0})}async function QH(e,n){return await e.request({method:"wallet_watchAsset",params:n},{retryCount:0})}function YH(e){return{addChain:n=>UH(e,n),deployContract:n=>MH(e,n),getAddresses:()=>_H(e),getCallsStatus:n=>v_(e,n),getCapabilities:n=>jH(e,n),getChainId:()=>hp(e),getPermissions:()=>PH(e),prepareAuthorization:n=>E_(e,n),prepareTransactionRequest:n=>FS(e,n),requestAddresses:()=>LH(e),requestPermissions:n=>kH(e,n),sendCalls:n=>wH(e,n),sendRawTransaction:n=>g_(e,n),sendTransaction:n=>xg(e,n),showCallsStatus:n=>$H(e,n),signAuthorization:n=>qH(e,n),signMessage:n=>HH(e,n),signTransaction:n=>zH(e,n),signTypedData:n=>VH(e,n),switchChain:n=>GH(e,n),waitForCallsStatus:n=>SH(e,n),watchAsset:n=>QH(e,n),writeContract:n=>vH(e,n)}}function wd(e){const{key:n="wallet",name:i="Wallet Client",transport:a}=e;return CH({...e,key:n,name:i,transport:a,type:"walletClient"}).extend(YH)}function KH({key:e,methods:n,name:i,request:a,retryCount:u=3,retryDelay:l=150,timeout:f,type:p},h){const m=x_();return{config:{key:e,methods:n,name:i,request:a,retryCount:u,retryDelay:l,timeout:f,type:p},request:OH(a,{methods:n,retryCount:u,retryDelay:l,uid:m}),value:h}}class XH extends $e{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}function Sd(e,n={}){const{batch:i,fetchFn:a,fetchOptions:u,key:l="http",methods:f,name:p="HTTP JSON-RPC",onFetchRequest:h,onFetchResponse:m,retryDelay:v,raw:A}=n;return({chain:y,retryCount:I,timeout:R})=>{const{batchSize:U=1e3,wait:F=0}=typeof i=="object"?i:{},N=n.retryCount??I,B=R??n.timeout??1e4,M=y==null?void 0:y.rpcUrls.default.http[0];if(!M)throw new XH;const H=BH(M,{fetchFn:a,fetchOptions:u,onRequest:h,onResponse:m,timeout:B});return KH({key:l,methods:f,name:p,async request({method:k,params:X}){const re={method:k,params:X},{schedule:ie}=gH({id:M,wait:F,shouldSplitBatch(q){return q.length>U},fn:q=>H.request({body:q}),sort:(q,oe)=>q.id-oe.id}),O=async q=>i?ie(q):[await H.request({body:q})],[{error:P,result:L}]=await O(re);if(A)return{error:P,result:L};if(P)throw new TS({body:re,error:P,url:M});return L},retryCount:N,retryDelay:v,timeout:B,type:"http"},{fetchOptions:u,url:M})}}const Id=FH({id:31337,name:"Hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),wr={PAIMA_API_PORT:"9999",BATCHER_PORT:"3334",DOCS_PORT:"10600",PAIMA_EXPLORER_PORT:"10590"},ld={evm:"#4caf50",evmParallel:"#ff9800",cardano:"#2196f3",midnight:"#9c27b0"};function ZH(e){const n={};return e.filter(a=>a.networkType!=="ntp").forEach((a,u)=>{var A,y,I;const l=a.network,f=a.syncProtocol;let p=l.name;l.type==="evm"&&l.chainId?p=`evm_${l.chainId}`:l.type==="evm"&&l.id&&(p=`evm_${l.id}`),n[p]&&(p=`${p}_${u}`);let h;l.type==="evm"?(I=(y=(A=l.rpcUrls)==null?void 0:A.default)==null?void 0:y.http)!=null&&I[0]?h=l.rpcUrls.default.http[0]:f.chainUri&&(h=f.chainUri):l.type==="midnight"&&(h=l.nodeUrl);let m=ld.evm;l.type==="cardano"?m=ld.cardano:l.type==="midnight"?m=ld.midnight:l.name.toLowerCase().includes("arbitrum")?m=ld.evm:(l.name.toLowerCase().includes("ethereum")||l.name.toLowerCase().includes("l1"))&&(m=ld.evmParallel);const v={type:l.type.toUpperCase(),name:l.name,blockTime:l.blockTimeMS??void 0,color:m,blocks:[],currentBlock:l.type==="evm"?5e5:1e5,rpcEndpoint:h,latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1,protocolName:f.name};n[p]=v}),n}async function JH(){var e;try{const n=await fetch(S_);if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const i=await n.json(),a=ZH(i);return{Paima:{type:"EVM",name:"Paima Engine",blockTime:((e=i.find(l=>l.syncProtocol.name==="mainNtp"))==null?void 0:e.network.blockTimeMS)??1e3,color:"#667eea",blocks:[],currentBlock:1e6,rpcEndpoint:`http://127.0.0.1:${wr.PAIMA_API_PORT}/rpc/evm`,latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1},...a}}catch(n){return console.error("Error fetching chain configs:",n),w_}}const w_={Paima:{type:"EVM",name:"Paima Engine",blockTime:1e3,color:"#667eea",blocks:[],currentBlock:1e6,rpcEndpoint:`http://127.0.0.1:${wr.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}},S_=`http://127.0.0.1:${wr.PAIMA_API_PORT}/config`,WH=`http://127.0.0.1:${wr.PAIMA_API_PORT}/block-heights`,ez=`http://127.0.0.1:${wr.PAIMA_API_PORT}/primitives`,BD=`http://127.0.0.1:${wr.PAIMA_API_PORT}/tables`,tz=`http://127.0.0.1:${wr.PAIMA_API_PORT}/grammar`,nz=`http://127.0.0.1:${wr.PAIMA_API_PORT}/scheduled-data`,rz=`http://127.0.0.1:${wr.PAIMA_API_PORT}/primitives-schema`,iz=`http://127.0.0.1:${wr.PAIMA_API_PORT}/table-schema`,oz=`http://127.0.0.1:${wr.PAIMA_API_PORT}/sync-protocols`,I_=`http://localhost:${wr.BATCHER_PORT}/send-input`,UD=`http://localhost:${wr.BATCHER_PORT}/documentation`,MD=`http://localhost:${wr.PAIMA_API_PORT}/documentation`,_D="https://acedward.github.io/paima-v-next-docs/",az=`http://127.0.0.1:${wr.PAIMA_API_PORT}/addresses`;function sz(e){return vn(e)&&!qr(e)&&!gp(e)&&Symbol.asyncIterator in e}function qr(e){return Array.isArray(e)}function C_(e){return typeof e=="bigint"}function mp(e){return typeof e=="boolean"}function NS(e){return e instanceof globalThis.Date}function uz(e){return typeof e=="function"}function lz(e){return vn(e)&&!qr(e)&&!gp(e)&&Symbol.iterator in e}function cz(e){return e===null}function Co(e){return typeof e=="number"}function vn(e){return typeof e=="object"&&e!==null}function T_(e){return e instanceof globalThis.RegExp}function pn(e){return typeof e=="string"}function fz(e){return typeof e=="symbol"}function gp(e){return e instanceof globalThis.Uint8Array}function bn(e){return e===void 0}function dz(e){return e.map(n=>Wm(n))}function pz(e){return new Date(e.getTime())}function hz(e){return new Uint8Array(e)}function mz(e){return new RegExp(e.source,e.flags)}function gz(e){const n={};for(const i of Object.getOwnPropertyNames(e))n[i]=Wm(e[i]);for(const i of Object.getOwnPropertySymbols(e))n[i]=Wm(e[i]);return n}function Wm(e){return qr(e)?dz(e):NS(e)?pz(e):gp(e)?hz(e):T_(e)?mz(e):vn(e)?gz(e):e}function ni(e){return Wm(e)}function DS(e,n){return ni(n===void 0?e:{...n,...e})}function O_(e){return ri(e)&&globalThis.Symbol.asyncIterator in e}function R_(e){return ri(e)&&globalThis.Symbol.iterator in e}function F_(e){return e instanceof globalThis.Promise}function yp(e){return e instanceof Date&&globalThis.Number.isFinite(e.getTime())}function yz(e){return e instanceof globalThis.Map}function bz(e){return e instanceof globalThis.Set}function Az(e){return globalThis.ArrayBuffer.isView(e)}function BS(e){return e instanceof globalThis.Uint8Array}function N_(e,n){return n in e}function ri(e){return e!==null&&typeof e=="object"}function ii(e){return globalThis.Array.isArray(e)&&!globalThis.ArrayBuffer.isView(e)}function Oo(e){return e===void 0}function Eg(e){return e===null}function wg(e){return typeof e=="boolean"}function pa(e){return typeof e=="number"}function D_(e){return globalThis.Number.isInteger(e)}function Sg(e){return typeof e=="bigint"}function Eo(e){return typeof e=="string"}function US(e){return typeof e=="function"}function Ig(e){return typeof e=="symbol"}function B_(e){return Sg(e)||wg(e)||Eg(e)||pa(e)||Eo(e)||Ig(e)||Oo(e)}var Pr;(function(e){e.InstanceMode="default",e.ExactOptionalPropertyTypes=!1,e.AllowArrayObject=!1,e.AllowNaN=!1,e.AllowNullVoid=!1;function n(f,p){return e.ExactOptionalPropertyTypes?p in f:f[p]!==void 0}e.IsExactOptionalProperty=n;function i(f){const p=ri(f);return e.AllowArrayObject?p:p&&!ii(f)}e.IsObjectLike=i;function a(f){return i(f)&&!(f instanceof Date)&&!(f instanceof Uint8Array)}e.IsRecordLike=a;function u(f){return e.AllowNaN?pa(f):Number.isFinite(f)}e.IsNumberLike=u;function l(f){const p=Oo(f);return e.AllowNullVoid?p||f===null:p}e.IsVoidLike=l})(Pr||(Pr={}));function vz(e){return globalThis.Object.freeze(e).map(n=>eg(n))}function xz(e){const n={};for(const i of Object.getOwnPropertyNames(e))n[i]=eg(e[i]);for(const i of Object.getOwnPropertySymbols(e))n[i]=eg(e[i]);return globalThis.Object.freeze(n)}function eg(e){return qr(e)?vz(e):NS(e)?e:gp(e)?e:T_(e)?e:vn(e)?xz(e):e}function Ve(e,n){const i=n!==void 0?{...n,...e}:e;switch(Pr.InstanceMode){case"freeze":return eg(i);case"clone":return ni(i);default:return i}}class li extends Error{constructor(n){super(n)}}const ei=Symbol.for("TypeBox.Transform"),bp=Symbol.for("TypeBox.Readonly"),Aa=Symbol.for("TypeBox.Optional"),Cg=Symbol.for("TypeBox.Hint"),Xe=Symbol.for("TypeBox.Kind");function MS(e){return vn(e)&&e[bp]==="Readonly"}function hs(e){return vn(e)&&e[Aa]==="Optional"}function U_(e){return Rt(e,"Any")}function M_(e){return Rt(e,"Argument")}function gc(e){return Rt(e,"Array")}function Tg(e){return Rt(e,"AsyncIterator")}function Og(e){return Rt(e,"BigInt")}function Ap(e){return Rt(e,"Boolean")}function yc(e){return Rt(e,"Computed")}function bc(e){return Rt(e,"Constructor")}function Ez(e){return Rt(e,"Date")}function Ac(e){return Rt(e,"Function")}function vc(e){return Rt(e,"Integer")}function Ni(e){return Rt(e,"Intersect")}function Rg(e){return Rt(e,"Iterator")}function Rt(e,n){return vn(e)&&Xe in e&&e[Xe]===n}function __(e){return mp(e)||Co(e)||pn(e)}function Du(e){return Rt(e,"Literal")}function Bu(e){return Rt(e,"MappedKey")}function ci(e){return Rt(e,"MappedResult")}function vp(e){return Rt(e,"Never")}function wz(e){return Rt(e,"Not")}function _S(e){return Rt(e,"Null")}function xc(e){return Rt(e,"Number")}function Ji(e){return Rt(e,"Object")}function Fg(e){return Rt(e,"Promise")}function Ng(e){return Rt(e,"Record")}function Lr(e){return Rt(e,"Ref")}function j_(e){return Rt(e,"RegExp")}function xp(e){return Rt(e,"String")}function jS(e){return Rt(e,"Symbol")}function Uu(e){return Rt(e,"TemplateLiteral")}function Sz(e){return Rt(e,"This")}function en(e){return vn(e)&&ei in e}function Mu(e){return Rt(e,"Tuple")}function Dg(e){return Rt(e,"Undefined")}function Pn(e){return Rt(e,"Union")}function Iz(e){return Rt(e,"Uint8Array")}function Cz(e){return Rt(e,"Unknown")}function Tz(e){return Rt(e,"Unsafe")}function Oz(e){return Rt(e,"Void")}function P_(e){return vn(e)&&Xe in e&&pn(e[Xe])}function ti(e){return U_(e)||M_(e)||gc(e)||Ap(e)||Og(e)||Tg(e)||yc(e)||bc(e)||Ez(e)||Ac(e)||vc(e)||Ni(e)||Rg(e)||Du(e)||Bu(e)||ci(e)||vp(e)||wz(e)||_S(e)||xc(e)||Ji(e)||Fg(e)||Ng(e)||Lr(e)||j_(e)||xp(e)||jS(e)||Uu(e)||Sz(e)||Mu(e)||Dg(e)||Pn(e)||Iz(e)||Cz(e)||Tz(e)||Oz(e)||P_(e)}const Rz=["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 L_(e){try{return new RegExp(e),!0}catch{return!1}}function PS(e){if(!pn(e))return!1;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);if(i>=7&&i<=13||i===27||i===127)return!1}return!0}function k_(e){return LS(e)||Wn(e)}function cd(e){return bn(e)||C_(e)}function Qt(e){return bn(e)||Co(e)}function LS(e){return bn(e)||mp(e)}function kt(e){return bn(e)||pn(e)}function Fz(e){return bn(e)||pn(e)&&PS(e)&&L_(e)}function Nz(e){return bn(e)||pn(e)&&PS(e)}function $_(e){return bn(e)||Wn(e)}function tg(e){return vn(e)&&e[Aa]==="Optional"}function Qi(e){return Ft(e,"Any")&&kt(e.$id)}function Dz(e){return Ft(e,"Argument")&&Co(e.index)}function _u(e){return Ft(e,"Array")&&e.type==="array"&&kt(e.$id)&&Wn(e.items)&&Qt(e.minItems)&&Qt(e.maxItems)&&LS(e.uniqueItems)&&$_(e.contains)&&Qt(e.minContains)&&Qt(e.maxContains)}function kS(e){return Ft(e,"AsyncIterator")&&e.type==="AsyncIterator"&&kt(e.$id)&&Wn(e.items)}function Bg(e){return Ft(e,"BigInt")&&e.type==="bigint"&&kt(e.$id)&&cd(e.exclusiveMaximum)&&cd(e.exclusiveMinimum)&&cd(e.maximum)&&cd(e.minimum)&&cd(e.multipleOf)}function ju(e){return Ft(e,"Boolean")&&e.type==="boolean"&&kt(e.$id)}function Bz(e){return Ft(e,"Computed")&&pn(e.target)&&qr(e.parameters)&&e.parameters.every(n=>Wn(n))}function Ug(e){return Ft(e,"Constructor")&&e.type==="Constructor"&&kt(e.$id)&&qr(e.parameters)&&e.parameters.every(n=>Wn(n))&&Wn(e.returns)}function Mg(e){return Ft(e,"Date")&&e.type==="Date"&&kt(e.$id)&&Qt(e.exclusiveMaximumTimestamp)&&Qt(e.exclusiveMinimumTimestamp)&&Qt(e.maximumTimestamp)&&Qt(e.minimumTimestamp)&&Qt(e.multipleOfTimestamp)}function _g(e){return Ft(e,"Function")&&e.type==="Function"&&kt(e.$id)&&qr(e.parameters)&&e.parameters.every(n=>Wn(n))&&Wn(e.returns)}function va(e){return Ft(e,"Integer")&&e.type==="integer"&&kt(e.$id)&&Qt(e.exclusiveMaximum)&&Qt(e.exclusiveMinimum)&&Qt(e.maximum)&&Qt(e.minimum)&&Qt(e.multipleOf)}function q_(e){return vn(e)&&Object.entries(e).every(([n,i])=>PS(n)&&Wn(i))}function Pu(e){return Ft(e,"Intersect")&&!(pn(e.type)&&e.type!=="object")&&qr(e.allOf)&&e.allOf.every(n=>Wn(n)&&!Lz(n))&&kt(e.type)&&(LS(e.unevaluatedProperties)||$_(e.unevaluatedProperties))&&kt(e.$id)}function $S(e){return Ft(e,"Iterator")&&e.type==="Iterator"&&kt(e.$id)&&Wn(e.items)}function Ft(e,n){return vn(e)&&Xe in e&&e[Xe]===n}function H_(e){return ms(e)&&pn(e.const)}function z_(e){return ms(e)&&Co(e.const)}function V_(e){return ms(e)&&mp(e.const)}function ms(e){return Ft(e,"Literal")&&kt(e.$id)&&Uz(e.const)}function Uz(e){return mp(e)||Co(e)||pn(e)}function Mz(e){return Ft(e,"MappedKey")&&qr(e.keys)&&e.keys.every(n=>Co(n)||pn(n))}function _z(e){return Ft(e,"MappedResult")&&q_(e.properties)}function gs(e){return Ft(e,"Never")&&vn(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function lc(e){return Ft(e,"Not")&&Wn(e.not)}function qS(e){return Ft(e,"Null")&&e.type==="null"&&kt(e.$id)}function Mr(e){return Ft(e,"Number")&&e.type==="number"&&kt(e.$id)&&Qt(e.exclusiveMaximum)&&Qt(e.exclusiveMinimum)&&Qt(e.maximum)&&Qt(e.minimum)&&Qt(e.multipleOf)}function tn(e){return Ft(e,"Object")&&e.type==="object"&&kt(e.$id)&&q_(e.properties)&&k_(e.additionalProperties)&&Qt(e.minProperties)&&Qt(e.maxProperties)}function HS(e){return Ft(e,"Promise")&&e.type==="Promise"&&kt(e.$id)&&Wn(e.item)}function Jn(e){return Ft(e,"Record")&&e.type==="object"&&kt(e.$id)&&k_(e.additionalProperties)&&vn(e.patternProperties)&&(n=>{const i=Object.getOwnPropertyNames(n.patternProperties);return i.length===1&&L_(i[0])&&vn(n.patternProperties)&&Wn(n.patternProperties[i[0]])})(e)}function jz(e){return Ft(e,"Ref")&&kt(e.$id)&&pn(e.$ref)}function Jd(e){return Ft(e,"RegExp")&&kt(e.$id)&&pn(e.source)&&pn(e.flags)&&Qt(e.maxLength)&&Qt(e.minLength)}function Yi(e){return Ft(e,"String")&&e.type==="string"&&kt(e.$id)&&Qt(e.minLength)&&Qt(e.maxLength)&&Fz(e.pattern)&&Nz(e.format)}function Wd(e){return Ft(e,"Symbol")&&e.type==="symbol"&&kt(e.$id)}function ep(e){return Ft(e,"TemplateLiteral")&&e.type==="string"&&pn(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function Pz(e){return Ft(e,"This")&&kt(e.$id)&&pn(e.$ref)}function Lz(e){return vn(e)&&ei in e}function jg(e){return Ft(e,"Tuple")&&e.type==="array"&&kt(e.$id)&&Co(e.minItems)&&Co(e.maxItems)&&e.minItems===e.maxItems&&(bn(e.items)&&bn(e.additionalItems)&&e.minItems===0||qr(e.items)&&e.items.every(n=>Wn(n)))}function Ou(e){return Ft(e,"Undefined")&&e.type==="undefined"&&kt(e.$id)}function ba(e){return Ft(e,"Union")&&kt(e.$id)&&vn(e)&&qr(e.anyOf)&&e.anyOf.every(n=>Wn(n))}function Ep(e){return Ft(e,"Uint8Array")&&e.type==="Uint8Array"&&kt(e.$id)&&Qt(e.minByteLength)&&Qt(e.maxByteLength)}function Ki(e){return Ft(e,"Unknown")&&kt(e.$id)}function kz(e){return Ft(e,"Unsafe")}function Pg(e){return Ft(e,"Void")&&e.type==="void"&&kt(e.$id)}function $z(e){return vn(e)&&Xe in e&&pn(e[Xe])&&!Rz.includes(e[Xe])}function Wn(e){return vn(e)&&(Qi(e)||Dz(e)||_u(e)||ju(e)||Bg(e)||kS(e)||Bz(e)||Ug(e)||Mg(e)||_g(e)||va(e)||Pu(e)||$S(e)||ms(e)||Mz(e)||_z(e)||gs(e)||lc(e)||qS(e)||Mr(e)||tn(e)||HS(e)||Jn(e)||jz(e)||Jd(e)||Yi(e)||Wd(e)||ep(e)||Pz(e)||jg(e)||Ou(e)||ba(e)||Ep(e)||Ki(e)||kz(e)||Pg(e)||$z(e))}const qz="(true|false)",zm="(0|[1-9][0-9]*)",G_="(.*)",Hz="(?!.*)",cc=`^${zm}$`,fc=`^${G_}$`,zz=`^${Hz}$`,zS=new Map;function Q_(e){return zS.has(e)}function Ro(e,n){zS.set(e,n)}function Y_(e){return zS.get(e)}const K_=new Map;function VS(e){return K_.has(e)}function X_(e){return K_.get(e)}function Vz(e,n){return e.includes(n)}function Gz(e){return[...new Set(e)]}function Qz(e,n){return e.filter(i=>n.includes(i))}function Yz(e,n){return e.reduce((i,a)=>Qz(i,a),n)}function Kz(e){return e.length===1?e[0]:e.length>1?Yz(e.slice(1),e[0]):[]}function Xz(e){const n=[];for(const i of e)n.push(...i);return n}function tp(e){return Ve({[Xe]:"Any"},e)}function GS(e,n){return Ve({[Xe]:"Array",type:"array",items:e},n)}function Zz(e){return Ve({[Xe]:"Argument",index:e})}function QS(e,n){return Ve({[Xe]:"AsyncIterator",type:"AsyncIterator",items:e},n)}function Cn(e,n,i){return Ve({[Xe]:"Computed",target:e,parameters:n},i)}function Jz(e,n){const{[n]:i,...a}=e;return a}function oi(e,n){return n.reduce((i,a)=>Jz(i,a),e)}function sn(e){return Ve({[Xe]:"Never",not:{}},e)}function er(e){return Ve({[Xe]:"MappedResult",properties:e})}function YS(e,n,i){return Ve({[Xe]:"Constructor",type:"Constructor",parameters:e,returns:n},i)}function wp(e,n,i){return Ve({[Xe]:"Function",type:"Function",parameters:e,returns:n},i)}function zw(e,n){return Ve({[Xe]:"Union",anyOf:e},n)}function Wz(e){return e.some(n=>hs(n))}function jD(e){return e.map(n=>hs(n)?e2(n):n)}function e2(e){return oi(e,[Aa])}function t2(e,n){return Wz(e)?As(zw(jD(e),n)):zw(jD(e),n)}function Ec(e,n){return e.length===1?Ve(e[0],n):e.length===0?sn(n):t2(e,n)}function tr(e,n){return e.length===0?sn(n):e.length===1?Ve(e[0],n):zw(e,n)}class PD extends li{}function n2(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function KS(e,n,i){return e[n]===i&&e.charCodeAt(n-1)!==92}function ha(e,n){return KS(e,n,"(")}function np(e,n){return KS(e,n,")")}function Z_(e,n){return KS(e,n,"|")}function r2(e){if(!(ha(e,0)&&np(e,e.length-1)))return!1;let n=0;for(let i=0;i<e.length;i++)if(ha(e,i)&&(n+=1),np(e,i)&&(n-=1),n===0&&i!==e.length-1)return!1;return!0}function i2(e){return e.slice(1,e.length-1)}function o2(e){let n=0;for(let i=0;i<e.length;i++)if(ha(e,i)&&(n+=1),np(e,i)&&(n-=1),Z_(e,i)&&n===0)return!0;return!1}function a2(e){for(let n=0;n<e.length;n++)if(ha(e,n))return!0;return!1}function s2(e){let[n,i]=[0,0];const a=[];for(let l=0;l<e.length;l++)if(ha(e,l)&&(n+=1),np(e,l)&&(n-=1),Z_(e,l)&&n===0){const f=e.slice(i,l);f.length>0&&a.push(dc(f)),i=l+1}const u=e.slice(i);return u.length>0&&a.push(dc(u)),a.length===0?{type:"const",const:""}:a.length===1?a[0]:{type:"or",expr:a}}function u2(e){function n(u,l){if(!ha(u,l))throw new PD("TemplateLiteralParser: Index must point to open parens");let f=0;for(let p=l;p<u.length;p++)if(ha(u,p)&&(f+=1),np(u,p)&&(f-=1),f===0)return[l,p];throw new PD("TemplateLiteralParser: Unclosed group parens in expression")}function i(u,l){for(let f=l;f<u.length;f++)if(ha(u,f))return[l,f];return[l,u.length]}const a=[];for(let u=0;u<e.length;u++)if(ha(e,u)){const[l,f]=n(e,u),p=e.slice(l,f+1);a.push(dc(p)),u=f}else{const[l,f]=i(e,u),p=e.slice(l,f);p.length>0&&a.push(dc(p)),u=f-1}return a.length===0?{type:"const",const:""}:a.length===1?a[0]:{type:"and",expr:a}}function dc(e){return r2(e)?dc(i2(e)):o2(e)?s2(e):a2(e)?u2(e):{type:"const",const:n2(e)}}function XS(e){return dc(e.slice(1,e.length-1))}class l2 extends li{}function c2(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 f2(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 d2(e){return e.type==="const"&&e.const===".*"}function rp(e){return c2(e)||d2(e)?!1:f2(e)?!0:e.type==="and"?e.expr.every(n=>rp(n)):e.type==="or"?e.expr.every(n=>rp(n)):e.type==="const"?!0:(()=>{throw new l2("Unknown expression type")})()}function p2(e){const n=XS(e.pattern);return rp(n)}class h2 extends li{}function*J_(e){if(e.length===1)return yield*e[0];for(const n of e[0])for(const i of J_(e.slice(1)))yield`${n}${i}`}function*m2(e){return yield*J_(e.expr.map(n=>[...Lg(n)]))}function*g2(e){for(const n of e.expr)yield*Lg(n)}function*y2(e){return yield e.const}function*Lg(e){return e.type==="and"?yield*m2(e):e.type==="or"?yield*g2(e):e.type==="const"?yield*y2(e):(()=>{throw new h2("Unknown expression")})()}function W_(e){const n=XS(e.pattern);return rp(n)?[...Lg(n)]:[]}function An(e,n){return Ve({[Xe]:"Literal",const:e,type:typeof e},n)}function e4(e){return Ve({[Xe]:"Boolean",type:"boolean"},e)}function ZS(e){return Ve({[Xe]:"BigInt",type:"bigint"},e)}function Lu(e){return Ve({[Xe]:"Number",type:"number"},e)}function Ru(e){return Ve({[Xe]:"String",type:"string"},e)}function*b2(e){const n=e.trim().replace(/"|'/g,"");return n==="boolean"?yield e4():n==="number"?yield Lu():n==="bigint"?yield ZS():n==="string"?yield Ru():yield(()=>{const i=n.split("|").map(a=>An(a.trim()));return i.length===0?sn():i.length===1?i[0]:Ec(i)})()}function*A2(e){if(e[1]!=="{"){const n=An("$"),i=Vw(e.slice(1));return yield*[n,...i]}for(let n=2;n<e.length;n++)if(e[n]==="}"){const i=b2(e.slice(2,n)),a=Vw(e.slice(n+1));return yield*[...i,...a]}yield An(e)}function*Vw(e){for(let n=0;n<e.length;n++)if(e[n]==="$"){const i=An(e.slice(0,n)),a=A2(e.slice(n));return yield*[i,...a]}yield An(e)}function v2(e){return[...Vw(e)]}class x2 extends li{}function E2(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function t4(e,n){return Uu(e)?e.pattern.slice(1,e.pattern.length-1):Pn(e)?`(${e.anyOf.map(i=>t4(i,n)).join("|")})`:xc(e)?`${n}${zm}`:vc(e)?`${n}${zm}`:Og(e)?`${n}${zm}`:xp(e)?`${n}${G_}`:Du(e)?`${n}${E2(e.const.toString())}`:Ap(e)?`${n}${qz}`:(()=>{throw new x2(`Unexpected Kind '${e[Xe]}'`)})()}function LD(e){return`^${e.map(n=>t4(n,"")).join("")}$`}function ng(e){const i=W_(e).map(a=>An(a));return Ec(i)}function n4(e,n){const i=pn(e)?LD(v2(e)):LD(e);return Ve({[Xe]:"TemplateLiteral",type:"string",pattern:i},n)}function w2(e){return W_(e).map(i=>i.toString())}function S2(e){const n=[];for(const i of e)n.push(...ys(i));return n}function I2(e){return[e.toString()]}function ys(e){return[...new Set(Uu(e)?w2(e):Pn(e)?S2(e.anyOf):Du(e)?I2(e.const):xc(e)?["[number]"]:vc(e)?["[number]"]:[])]}function C2(e,n,i){const a={};for(const u of Object.getOwnPropertyNames(n))a[u]=kg(e,ys(n[u]),i);return a}function T2(e,n,i){return C2(e,n.properties,i)}function O2(e,n,i){const a=T2(e,n,i);return er(a)}function r4(e,n){return e.map(i=>i4(i,n))}function R2(e){return e.filter(n=>!vp(n))}function F2(e,n){return s4(R2(r4(e,n)))}function N2(e){return e.some(n=>vp(n))?[]:e}function D2(e,n){return Ec(N2(r4(e,n)))}function B2(e,n){return n in e?e[n]:n==="[number]"?Ec(e):sn()}function U2(e,n){return n==="[number]"?e:sn()}function M2(e,n){return n in e?e[n]:sn()}function i4(e,n){return Ni(e)?F2(e.allOf,n):Pn(e)?D2(e.anyOf,n):Mu(e)?B2(e.items??[],n):gc(e)?U2(e.items,n):Ji(e)?M2(e.properties,n):sn()}function JS(e,n){return n.map(i=>i4(e,i))}function kD(e,n){return Ec(JS(e,n))}function kg(e,n,i){if(Lr(e)||Lr(n)){const a="Index types using Ref parameters require both Type and Key to be of TSchema";if(!ti(e)||!ti(n))throw new li(a);return Cn("Index",[e,n])}return ci(n)?O2(e,n,i):Bu(n)?L2(e,n,i):Ve(ti(n)?kD(e,ys(n)):kD(e,n),i)}function _2(e,n,i){return{[n]:kg(e,[n],ni(i))}}function j2(e,n,i){return n.reduce((a,u)=>({...a,..._2(e,u,i)}),{})}function P2(e,n,i){return j2(e,n.keys,i)}function L2(e,n,i){const a=P2(e,n,i);return er(a)}function WS(e,n){return Ve({[Xe]:"Iterator",type:"Iterator",items:e},n)}function k2(e){const n=[];for(let i in e)hs(e[i])||n.push(i);return n}function $2(e,n){const i=k2(e),a=i.length>0?{[Xe]:"Object",type:"object",properties:e,required:i}:{[Xe]:"Object",type:"object",properties:e};return Ve(a,n)}var _n=$2;function o4(e,n){return Ve({[Xe]:"Promise",type:"Promise",item:e},n)}function q2(e){return Ve(oi(e,[bp]))}function H2(e){return Ve({...e,[bp]:"Readonly"})}function z2(e,n){return n===!1?q2(e):H2(e)}function bs(e,n){const i=n??!0;return ci(e)?Q2(e,i):z2(e,i)}function V2(e,n){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=bs(e[a],n);return i}function G2(e,n){return V2(e.properties,n)}function Q2(e,n){const i=G2(e,n);return er(i)}function wc(e,n){return Ve(e.length>0?{[Xe]:"Tuple",type:"array",items:e,additionalItems:!1,minItems:e.length,maxItems:e.length}:{[Xe]:"Tuple",type:"array",minItems:e.length,maxItems:e.length},n)}function a4(e,n){return e in n?Ri(e,n[e]):er(n)}function Y2(e){return{[e]:An(e)}}function K2(e){const n={};for(const i of e)n[i]=An(i);return n}function X2(e,n){return Vz(n,e)?Y2(e):K2(n)}function Z2(e,n){const i=X2(e,n);return a4(e,i)}function fd(e,n){return n.map(i=>Ri(e,i))}function J2(e,n){const i={};for(const a of globalThis.Object.getOwnPropertyNames(n))i[a]=Ri(e,n[a]);return i}function Ri(e,n){const i={...n};return hs(n)?As(Ri(e,oi(n,[Aa]))):MS(n)?bs(Ri(e,oi(n,[bp]))):ci(n)?a4(e,n.properties):Bu(n)?Z2(e,n.keys):bc(n)?YS(fd(e,n.parameters),Ri(e,n.returns),i):Ac(n)?wp(fd(e,n.parameters),Ri(e,n.returns),i):Tg(n)?QS(Ri(e,n.items),i):Rg(n)?WS(Ri(e,n.items),i):Ni(n)?vs(fd(e,n.allOf),i):Pn(n)?tr(fd(e,n.anyOf),i):Mu(n)?wc(fd(e,n.items??[]),i):Ji(n)?_n(J2(e,n.properties),i):gc(n)?GS(Ri(e,n.items),i):Fg(n)?o4(Ri(e,n.item),i):n}function W2(e,n){const i={};for(const a of e)i[a]=Ri(a,n);return i}function e9(e,n,i){const a=ti(e)?ys(e):e,u=n({[Xe]:"MappedKey",keys:a}),l=W2(a,u);return _n(l,i)}function t9(e){return Ve(oi(e,[Aa]))}function n9(e){return Ve({...e,[Aa]:"Optional"})}function r9(e,n){return n===!1?t9(e):n9(e)}function As(e,n){const i=n??!0;return ci(e)?a9(e,i):r9(e,i)}function i9(e,n){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=As(e[a],n);return i}function o9(e,n){return i9(e.properties,n)}function a9(e,n){const i=o9(e,n);return er(i)}function Gw(e,n={}){const i=e.every(u=>Ji(u)),a=ti(n.unevaluatedProperties)?{unevaluatedProperties:n.unevaluatedProperties}:{};return Ve(n.unevaluatedProperties===!1||ti(n.unevaluatedProperties)||i?{...a,[Xe]:"Intersect",type:"object",allOf:e}:{...a,[Xe]:"Intersect",allOf:e},n)}function s9(e){return e.every(n=>hs(n))}function u9(e){return oi(e,[Aa])}function $D(e){return e.map(n=>hs(n)?u9(n):n)}function l9(e,n){return s9(e)?As(Gw($D(e),n)):Gw($D(e),n)}function s4(e,n={}){if(e.length===1)return Ve(e[0],n);if(e.length===0)return sn(n);if(e.some(i=>en(i)))throw new Error("Cannot intersect transform types");return l9(e,n)}function vs(e,n){if(e.length===1)return Ve(e[0],n);if(e.length===0)return sn(n);if(e.some(i=>en(i)))throw new Error("Cannot intersect transform types");return Gw(e,n)}function Sp(...e){const[n,i]=typeof e[0]=="string"?[e[0],e[1]]:[e[0].$id,e[1]];if(typeof n!="string")throw new li("Ref: $ref must be a string");return Ve({[Xe]:"Ref",$ref:n},i)}function c9(e,n){return Cn("Awaited",[Cn(e,n)])}function f9(e){return Cn("Awaited",[Sp(e)])}function d9(e){return vs(u4(e))}function p9(e){return tr(u4(e))}function h9(e){return $g(e)}function u4(e){return e.map(n=>$g(n))}function $g(e,n){return Ve(yc(e)?c9(e.target,e.parameters):Ni(e)?d9(e.allOf):Pn(e)?p9(e.anyOf):Fg(e)?h9(e.item):Lr(e)?f9(e.$ref):e,n)}function l4(e){const n=[];for(const i of e)n.push(Sc(i));return n}function m9(e){const n=l4(e);return Xz(n)}function g9(e){const n=l4(e);return Kz(n)}function y9(e){return e.map((n,i)=>i.toString())}function b9(e){return["[number]"]}function A9(e){return globalThis.Object.getOwnPropertyNames(e)}function v9(e){return Qw?globalThis.Object.getOwnPropertyNames(e).map(i=>i[0]==="^"&&i[i.length-1]==="$"?i.slice(1,i.length-1):i):[]}function Sc(e){return Ni(e)?m9(e.allOf):Pn(e)?g9(e.anyOf):Mu(e)?y9(e.items??[]):gc(e)?b9(e.items):Ji(e)?A9(e.properties):Ng(e)?v9(e.patternProperties):[]}let Qw=!1;function rg(e){Qw=!0;const n=Sc(e);return Qw=!1,`^(${n.map(a=>`(${a})`).join("|")})$`}function x9(e,n){return Cn("KeyOf",[Cn(e,n)])}function E9(e){return Cn("KeyOf",[Sp(e)])}function w9(e,n){const i=Sc(e),a=S9(i),u=Ec(a);return Ve(u,n)}function S9(e){return e.map(n=>n==="[number]"?Lu():An(n))}function eI(e,n){return yc(e)?x9(e.target,e.parameters):Lr(e)?E9(e.$ref):ci(e)?T9(e,n):w9(e,n)}function I9(e,n){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=eI(e[a],ni(n));return i}function C9(e,n){return I9(e.properties,n)}function T9(e,n){const i=C9(e,n);return er(i)}function O9(e){const n=Sc(e),i=JS(e,n);return n.map((a,u)=>[n[u],i[u]])}function R9(e){const n=[];for(const i of e)n.push(...Sc(i));return Gz(n)}function F9(e){return e.filter(n=>!vp(n))}function N9(e,n){const i=[];for(const a of e)i.push(...JS(a,[n]));return F9(i)}function D9(e,n){const i={};for(const a of n)i[a]=s4(N9(e,a));return i}function B9(e,n){const i=R9(e),a=D9(e,i);return _n(a,n)}function c4(e){return Ve({[Xe]:"Date",type:"Date"},e)}function f4(e){return Ve({[Xe]:"Null",type:"null"},e)}function d4(e){return Ve({[Xe]:"Symbol",type:"symbol"},e)}function p4(e){return Ve({[Xe]:"Undefined",type:"undefined"},e)}function h4(e){return Ve({[Xe]:"Uint8Array",type:"Uint8Array"},e)}function qg(e){return Ve({[Xe]:"Unknown"},e)}function U9(e){return e.map(n=>tI(n,!1))}function M9(e){const n={};for(const i of globalThis.Object.getOwnPropertyNames(e))n[i]=bs(tI(e[i],!1));return n}function Bm(e,n){return n===!0?e:bs(e)}function tI(e,n){return sz(e)||lz(e)?Bm(tp(),n):qr(e)?bs(wc(U9(e))):gp(e)?h4():NS(e)?c4():vn(e)?Bm(_n(M9(e)),n):uz(e)?Bm(wp([],qg()),n):bn(e)?p4():cz(e)?f4():fz(e)?d4():C_(e)?ZS():Co(e)||mp(e)||pn(e)?An(e):_n({})}function _9(e,n){return Ve(tI(e,!0),n)}function j9(e,n){return bc(e)?wc(e.parameters,n):sn(n)}function P9(e,n){if(bn(e))throw new Error("Enum undefined or empty");const i=globalThis.Object.getOwnPropertyNames(e).filter(l=>isNaN(l)).map(l=>e[l]),u=[...new Set(i)].map(l=>An(l));return tr(u,{...n,[Cg]:"Enum"})}class L9 extends li{}var Ue;(function(e){e[e.Union=0]="Union",e[e.True=1]="True",e[e.False=2]="False"})(Ue||(Ue={}));function Fi(e){return e===Ue.False?e:Ue.True}function Ic(e){throw new L9(e)}function xn(e){return gs(e)||Pu(e)||ba(e)||Ki(e)||Qi(e)}function En(e,n){return gs(n)?y4():Pu(n)?Hg(e,n):ba(n)?rI(e,n):Ki(n)?x4():Qi(n)?nI():Ic("StructuralRight")}function nI(e,n){return Ue.True}function k9(e,n){return Pu(n)?Hg(e,n):ba(n)&&n.anyOf.some(i=>Qi(i)||Ki(i))?Ue.True:ba(n)?Ue.Union:Ki(n)||Qi(n)?Ue.True:Ue.Union}function $9(e,n){return Ki(e)?Ue.False:Qi(e)?Ue.Union:gs(e)?Ue.True:Ue.False}function q9(e,n){return tn(n)&&zg(n)?Ue.True:xn(n)?En(e,n):_u(n)?Fi(Lt(e.items,n.items)):Ue.False}function H9(e,n){return xn(n)?En(e,n):kS(n)?Fi(Lt(e.items,n.items)):Ue.False}function z9(e,n){return xn(n)?En(e,n):tn(n)?fr(e,n):Jn(n)?Di(e,n):Bg(n)?Ue.True:Ue.False}function m4(e,n){return V_(e)||ju(e)?Ue.True:Ue.False}function V9(e,n){return xn(n)?En(e,n):tn(n)?fr(e,n):Jn(n)?Di(e,n):ju(n)?Ue.True:Ue.False}function G9(e,n){return xn(n)?En(e,n):tn(n)?fr(e,n):Ug(n)?e.parameters.length>n.parameters.length?Ue.False:e.parameters.every((i,a)=>Fi(Lt(n.parameters[a],i))===Ue.True)?Fi(Lt(e.returns,n.returns)):Ue.False:Ue.False}function Q9(e,n){return xn(n)?En(e,n):tn(n)?fr(e,n):Jn(n)?Di(e,n):Mg(n)?Ue.True:Ue.False}function Y9(e,n){return xn(n)?En(e,n):tn(n)?fr(e,n):_g(n)?e.parameters.length>n.parameters.length?Ue.False:e.parameters.every((i,a)=>Fi(Lt(n.parameters[a],i))===Ue.True)?Fi(Lt(e.returns,n.returns)):Ue.False:Ue.False}function g4(e,n){return ms(e)&&Co(e.const)||Mr(e)||va(e)?Ue.True:Ue.False}function K9(e,n){return va(n)||Mr(n)?Ue.True:xn(n)?En(e,n):tn(n)?fr(e,n):Jn(n)?Di(e,n):Ue.False}function Hg(e,n){return n.allOf.every(i=>Lt(e,i)===Ue.True)?Ue.True:Ue.False}function X9(e,n){return e.allOf.some(i=>Lt(i,n)===Ue.True)?Ue.True:Ue.False}function Z9(e,n){return xn(n)?En(e,n):$S(n)?Fi(Lt(e.items,n.items)):Ue.False}function J9(e,n){return ms(n)&&n.const===e.const?Ue.True:xn(n)?En(e,n):tn(n)?fr(e,n):Jn(n)?Di(e,n):Yi(n)?v4(e):Mr(n)?b4(e):va(n)?g4(e):ju(n)?m4(e):Ue.False}function y4(e,n){return Ue.False}function W9(e,n){return Ue.True}function qD(e){let[n,i]=[e,0];for(;lc(n);)n=n.not,i+=1;return i%2===0?n:qg()}function eV(e,n){return lc(e)?Lt(qD(e),n):lc(n)?Lt(e,qD(n)):Ic("Invalid fallthrough for Not")}function tV(e,n){return xn(n)?En(e,n):tn(n)?fr(e,n):Jn(n)?Di(e,n):qS(n)?Ue.True:Ue.False}function b4(e,n){return z_(e)||Mr(e)||va(e)?Ue.True:Ue.False}function nV(e,n){return xn(n)?En(e,n):tn(n)?fr(e,n):Jn(n)?Di(e,n):va(n)||Mr(n)?Ue.True:Ue.False}function kr(e,n){return Object.getOwnPropertyNames(e.properties).length===n}function HD(e){return zg(e)}function zD(e){return kr(e,0)||kr(e,1)&&"description"in e.properties&&ba(e.properties.description)&&e.properties.description.anyOf.length===2&&(Yi(e.properties.description.anyOf[0])&&Ou(e.properties.description.anyOf[1])||Yi(e.properties.description.anyOf[1])&&Ou(e.properties.description.anyOf[0]))}function XA(e){return kr(e,0)}function VD(e){return kr(e,0)}function rV(e){return kr(e,0)}function iV(e){return kr(e,0)}function oV(e){return zg(e)}function aV(e){const n=Lu();return kr(e,0)||kr(e,1)&&"length"in e.properties&&Fi(Lt(e.properties.length,n))===Ue.True}function sV(e){return kr(e,0)}function zg(e){const n=Lu();return kr(e,0)||kr(e,1)&&"length"in e.properties&&Fi(Lt(e.properties.length,n))===Ue.True}function uV(e){const n=wp([tp()],tp());return kr(e,0)||kr(e,1)&&"then"in e.properties&&Fi(Lt(e.properties.then,n))===Ue.True}function A4(e,n){return Lt(e,n)===Ue.False||tg(e)&&!tg(n)?Ue.False:Ue.True}function fr(e,n){return Ki(e)?Ue.False:Qi(e)?Ue.Union:gs(e)||H_(e)&&HD(n)||z_(e)&&XA(n)||V_(e)&&VD(n)||Wd(e)&&zD(n)||Bg(e)&&rV(n)||Yi(e)&&HD(n)||Wd(e)&&zD(n)||Mr(e)&&XA(n)||va(e)&&XA(n)||ju(e)&&VD(n)||Ep(e)&&oV(n)||Mg(e)&&iV(n)||Ug(e)&&sV(n)||_g(e)&&aV(n)?Ue.True:Jn(e)&&Yi(Yw(e))?n[Cg]==="Record"?Ue.True:Ue.False:Jn(e)&&Mr(Yw(e))?kr(n,0)?Ue.True:Ue.False:Ue.False}function lV(e,n){return xn(n)?En(e,n):Jn(n)?Di(e,n):tn(n)?(()=>{for(const i of Object.getOwnPropertyNames(n.properties)){if(!(i in e.properties)&&!tg(n.properties[i]))return Ue.False;if(tg(n.properties[i]))return Ue.True;if(A4(e.properties[i],n.properties[i])===Ue.False)return Ue.False}return Ue.True})():Ue.False}function cV(e,n){return xn(n)?En(e,n):tn(n)&&uV(n)?Ue.True:HS(n)?Fi(Lt(e.item,n.item)):Ue.False}function Yw(e){return cc in e.patternProperties?Lu():fc in e.patternProperties?Ru():Ic("Unknown record key pattern")}function Kw(e){return cc in e.patternProperties?e.patternProperties[cc]:fc in e.patternProperties?e.patternProperties[fc]:Ic("Unable to get record value schema")}function Di(e,n){const[i,a]=[Yw(n),Kw(n)];return H_(e)&&Mr(i)&&Fi(Lt(e,a))===Ue.True?Ue.True:Ep(e)&&Mr(i)||Yi(e)&&Mr(i)||_u(e)&&Mr(i)?Lt(e,a):tn(e)?(()=>{for(const u of Object.getOwnPropertyNames(e.properties))if(A4(a,e.properties[u])===Ue.False)return Ue.False;return Ue.True})():Ue.False}function fV(e,n){return xn(n)?En(e,n):tn(n)?fr(e,n):Jn(n)?Lt(Kw(e),Kw(n)):Ue.False}function dV(e,n){const i=Jd(e)?Ru():e,a=Jd(n)?Ru():n;return Lt(i,a)}function v4(e,n){return ms(e)&&pn(e.const)||Yi(e)?Ue.True:Ue.False}function pV(e,n){return xn(n)?En(e,n):tn(n)?fr(e,n):Jn(n)?Di(e,n):Yi(n)?Ue.True:Ue.False}function hV(e,n){return xn(n)?En(e,n):tn(n)?fr(e,n):Jn(n)?Di(e,n):Wd(n)?Ue.True:Ue.False}function mV(e,n){return ep(e)?Lt(ng(e),n):ep(n)?Lt(e,ng(n)):Ic("Invalid fallthrough for TemplateLiteral")}function gV(e,n){return _u(n)&&e.items!==void 0&&e.items.every(i=>Lt(i,n.items)===Ue.True)}function yV(e,n){return gs(e)?Ue.True:Ki(e)?Ue.False:Qi(e)?Ue.Union:Ue.False}function bV(e,n){return xn(n)?En(e,n):tn(n)&&zg(n)||_u(n)&&gV(e,n)?Ue.True:jg(n)?bn(e.items)&&!bn(n.items)||!bn(e.items)&&bn(n.items)?Ue.False:bn(e.items)&&!bn(n.items)||e.items.every((i,a)=>Lt(i,n.items[a])===Ue.True)?Ue.True:Ue.False:Ue.False}function AV(e,n){return xn(n)?En(e,n):tn(n)?fr(e,n):Jn(n)?Di(e,n):Ep(n)?Ue.True:Ue.False}function vV(e,n){return xn(n)?En(e,n):tn(n)?fr(e,n):Jn(n)?Di(e,n):Pg(n)?wV(e):Ou(n)?Ue.True:Ue.False}function rI(e,n){return n.anyOf.some(i=>Lt(e,i)===Ue.True)?Ue.True:Ue.False}function xV(e,n){return e.anyOf.every(i=>Lt(i,n)===Ue.True)?Ue.True:Ue.False}function x4(e,n){return Ue.True}function EV(e,n){return gs(n)?y4():Pu(n)?Hg(e,n):ba(n)?rI(e,n):Qi(n)?nI():Yi(n)?v4(e):Mr(n)?b4(e):va(n)?g4(e):ju(n)?m4(e):_u(n)?$9(e):jg(n)?yV(e):tn(n)?fr(e,n):Ki(n)?Ue.True:Ue.False}function wV(e,n){return Ou(e)||Ou(e)?Ue.True:Ue.False}function SV(e,n){return Pu(n)?Hg(e,n):ba(n)?rI(e,n):Ki(n)?x4():Qi(n)?nI():tn(n)?fr(e,n):Pg(n)?Ue.True:Ue.False}function Lt(e,n){return ep(e)||ep(n)?mV(e,n):Jd(e)||Jd(n)?dV(e,n):lc(e)||lc(n)?eV(e,n):Qi(e)?k9(e,n):_u(e)?q9(e,n):Bg(e)?z9(e,n):ju(e)?V9(e,n):kS(e)?H9(e,n):Ug(e)?G9(e,n):Mg(e)?Q9(e,n):_g(e)?Y9(e,n):va(e)?K9(e,n):Pu(e)?X9(e,n):$S(e)?Z9(e,n):ms(e)?J9(e,n):gs(e)?W9():qS(e)?tV(e,n):Mr(e)?nV(e,n):tn(e)?lV(e,n):Jn(e)?fV(e,n):Yi(e)?pV(e,n):Wd(e)?hV(e,n):jg(e)?bV(e,n):HS(e)?cV(e,n):Ep(e)?AV(e,n):Ou(e)?vV(e,n):ba(e)?xV(e,n):Ki(e)?EV(e,n):Pg(e)?SV(e,n):Ic(`Unknown left type operand '${e[Xe]}'`)}function Ip(e,n){return Lt(e,n)}function IV(e,n,i,a,u){const l={};for(const f of globalThis.Object.getOwnPropertyNames(e))l[f]=iI(e[f],n,i,a,ni(u));return l}function CV(e,n,i,a,u){return IV(e.properties,n,i,a,u)}function TV(e,n,i,a,u){const l=CV(e,n,i,a,u);return er(l)}function OV(e,n,i,a){const u=Ip(e,n);return u===Ue.Union?tr([i,a]):u===Ue.True?i:a}function iI(e,n,i,a,u){return ci(e)?TV(e,n,i,a,u):Bu(e)?Ve(DV(e,n,i,a,u)):Ve(OV(e,n,i,a),u)}function RV(e,n,i,a,u){return{[e]:iI(An(e),n,i,a,ni(u))}}function FV(e,n,i,a,u){return e.reduce((l,f)=>({...l,...RV(f,n,i,a,u)}),{})}function NV(e,n,i,a,u){return FV(e.keys,n,i,a,u)}function DV(e,n,i,a,u){const l=NV(e,n,i,a,u);return er(l)}function BV(e){return e.allOf.every(n=>Cp(n))}function UV(e){return e.anyOf.some(n=>Cp(n))}function MV(e){return!Cp(e.not)}function Cp(e){return e[Xe]==="Intersect"?BV(e):e[Xe]==="Union"?UV(e):e[Xe]==="Not"?MV(e):e[Xe]==="Undefined"}function _V(e,n){return oI(ng(e),n)}function jV(e,n){const i=e.filter(a=>Ip(a,n)===Ue.False);return i.length===1?i[0]:tr(i)}function oI(e,n,i={}){return Uu(e)?Ve(_V(e,n),i):ci(e)?Ve(kV(e,n),i):Ve(Pn(e)?jV(e.anyOf,n):Ip(e,n)!==Ue.False?sn():e,i)}function PV(e,n){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=oI(e[a],n);return i}function LV(e,n){return PV(e.properties,n)}function kV(e,n){const i=LV(e,n);return er(i)}function $V(e,n){return aI(ng(e),n)}function qV(e,n){const i=e.filter(a=>Ip(a,n)!==Ue.False);return i.length===1?i[0]:tr(i)}function aI(e,n,i){return Uu(e)?Ve($V(e,n),i):ci(e)?Ve(VV(e,n),i):Ve(Pn(e)?qV(e.anyOf,n):Ip(e,n)!==Ue.False?e:sn(),i)}function HV(e,n){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=aI(e[a],n);return i}function zV(e,n){return HV(e.properties,n)}function VV(e,n){const i=zV(e,n);return er(i)}function GV(e,n){return bc(e)?Ve(e.returns,n):sn(n)}function E4(e){return bs(As(e))}function ku(e,n,i){return Ve({[Xe]:"Record",type:"object",patternProperties:{[e]:n}},i)}function sI(e,n,i){const a={};for(const u of e)a[u]=n;return _n(a,{...i,[Cg]:"Record"})}function QV(e,n,i){return p2(e)?sI(ys(e),n,i):ku(e.pattern,n,i)}function YV(e,n,i){return sI(ys(tr(e)),n,i)}function KV(e,n,i){return sI([e.toString()],n,i)}function XV(e,n,i){return ku(e.source,n,i)}function ZV(e,n,i){const a=bn(e.pattern)?fc:e.pattern;return ku(a,n,i)}function JV(e,n,i){return ku(fc,n,i)}function WV(e,n,i){return ku(zz,n,i)}function eG(e,n,i){return _n({true:n,false:n},i)}function tG(e,n,i){return ku(cc,n,i)}function nG(e,n,i){return ku(cc,n,i)}function w4(e,n,i={}){return Pn(e)?YV(e.anyOf,n,i):Uu(e)?QV(e,n,i):Du(e)?KV(e.const,n,i):Ap(e)?eG(e,n,i):vc(e)?tG(e,n,i):xc(e)?nG(e,n,i):j_(e)?XV(e,n,i):xp(e)?ZV(e,n,i):U_(e)?JV(e,n,i):vp(e)?WV(e,n,i):sn(i)}function uI(e){return globalThis.Object.getOwnPropertyNames(e.patternProperties)[0]}function rG(e){const n=uI(e);return n===fc?Ru():n===cc?Lu():Ru({pattern:n})}function S4(e){return e.patternProperties[uI(e)]}function iG(e,n){return n.parameters=Tp(e,n.parameters),n.returns=Xi(e,n.returns),n}function oG(e,n){return n.parameters=Tp(e,n.parameters),n.returns=Xi(e,n.returns),n}function aG(e,n){return n.allOf=Tp(e,n.allOf),n}function sG(e,n){return n.anyOf=Tp(e,n.anyOf),n}function uG(e,n){return bn(n.items)||(n.items=Tp(e,n.items)),n}function lG(e,n){return n.items=Xi(e,n.items),n}function cG(e,n){return n.items=Xi(e,n.items),n}function fG(e,n){return n.items=Xi(e,n.items),n}function dG(e,n){return n.item=Xi(e,n.item),n}function pG(e,n){const i=yG(e,n.properties);return{...n,..._n(i)}}function hG(e,n){const i=Xi(e,rG(n)),a=Xi(e,S4(n)),u=w4(i,a);return{...n,...u}}function mG(e,n){return n.index in e?e[n.index]:qg()}function gG(e,n){const i=MS(n),a=hs(n),u=Xi(e,n);return i&&a?E4(u):i&&!a?bs(u):!i&&a?As(u):u}function yG(e,n){return globalThis.Object.getOwnPropertyNames(n).reduce((i,a)=>({...i,[a]:gG(e,n[a])}),{})}function Tp(e,n){return n.map(i=>Xi(e,i))}function Xi(e,n){return bc(n)?iG(e,n):Ac(n)?oG(e,n):Ni(n)?aG(e,n):Pn(n)?sG(e,n):Mu(n)?uG(e,n):gc(n)?lG(e,n):Tg(n)?cG(e,n):Rg(n)?fG(e,n):Fg(n)?dG(e,n):Ji(n)?pG(e,n):Ng(n)?hG(e,n):M_(n)?mG(e,n):n}function bG(e,n){return Xi(n,DS(e))}function AG(e){return Ve({[Xe]:"Integer",type:"integer"},e)}function vG(e,n,i){return{[e]:Cc(An(e),n,ni(i))}}function xG(e,n,i){return e.reduce((u,l)=>({...u,...vG(l,n,i)}),{})}function EG(e,n,i){return xG(e.keys,n,i)}function wG(e,n,i){const a=EG(e,n,i);return er(a)}function SG(e){const[n,i]=[e.slice(0,1),e.slice(1)];return[n.toLowerCase(),i].join("")}function IG(e){const[n,i]=[e.slice(0,1),e.slice(1)];return[n.toUpperCase(),i].join("")}function CG(e){return e.toUpperCase()}function TG(e){return e.toLowerCase()}function OG(e,n,i){const a=XS(e.pattern);if(!rp(a))return{...e,pattern:I4(e.pattern,n)};const f=[...Lg(a)].map(m=>An(m)),p=C4(f,n),h=tr(p);return n4([h],i)}function I4(e,n){return typeof e=="string"?n==="Uncapitalize"?SG(e):n==="Capitalize"?IG(e):n==="Uppercase"?CG(e):n==="Lowercase"?TG(e):e:e.toString()}function C4(e,n){return e.map(i=>Cc(i,n))}function Cc(e,n,i={}){return Bu(e)?wG(e,n,i):Uu(e)?OG(e,n,i):Pn(e)?tr(C4(e.anyOf,n),i):Du(e)?An(I4(e.const,n),i):Ve(e,i)}function RG(e,n={}){return Cc(e,"Capitalize",n)}function FG(e,n={}){return Cc(e,"Lowercase",n)}function NG(e,n={}){return Cc(e,"Uncapitalize",n)}function DG(e,n={}){return Cc(e,"Uppercase",n)}function BG(e,n,i){const a={};for(const u of globalThis.Object.getOwnPropertyNames(e))a[u]=Vg(e[u],n,ni(i));return a}function UG(e,n,i){return BG(e.properties,n,i)}function MG(e,n,i){const a=UG(e,n,i);return er(a)}function _G(e,n){return e.map(i=>lI(i,n))}function jG(e,n){return e.map(i=>lI(i,n))}function PG(e,n){const{[n]:i,...a}=e;return a}function LG(e,n){return n.reduce((i,a)=>PG(i,a),e)}function kG(e,n){const i=oi(e,[ei,"$id","required","properties"]),a=LG(e.properties,n);return _n(a,i)}function $G(e){const n=e.reduce((i,a)=>__(a)?[...i,An(a)]:i,[]);return tr(n)}function lI(e,n){return Ni(e)?vs(_G(e.allOf,n)):Pn(e)?tr(jG(e.anyOf,n)):Ji(e)?kG(e,n):_n({})}function Vg(e,n,i){const a=qr(n)?$G(n):n,u=ti(n)?ys(n):n,l=Lr(e),f=Lr(n);return ci(e)?MG(e,u,i):Bu(n)?VG(e,n,i):l&&f?Cn("Omit",[e,a],i):!l&&f?Cn("Omit",[e,a],i):l&&!f?Cn("Omit",[e,a],i):Ve({...lI(e,u),...i})}function qG(e,n,i){return{[n]:Vg(e,[n],ni(i))}}function HG(e,n,i){return n.reduce((a,u)=>({...a,...qG(e,u,i)}),{})}function zG(e,n,i){return HG(e,n.keys,i)}function VG(e,n,i){const a=zG(e,n,i);return er(a)}function GG(e,n,i){const a={};for(const u of globalThis.Object.getOwnPropertyNames(e))a[u]=Gg(e[u],n,ni(i));return a}function QG(e,n,i){return GG(e.properties,n,i)}function YG(e,n,i){const a=QG(e,n,i);return er(a)}function KG(e,n){return e.map(i=>cI(i,n))}function XG(e,n){return e.map(i=>cI(i,n))}function ZG(e,n){const i={};for(const a of n)a in e&&(i[a]=e[a]);return i}function JG(e,n){const i=oi(e,[ei,"$id","required","properties"]),a=ZG(e.properties,n);return _n(a,i)}function WG(e){const n=e.reduce((i,a)=>__(a)?[...i,An(a)]:i,[]);return tr(n)}function cI(e,n){return Ni(e)?vs(KG(e.allOf,n)):Pn(e)?tr(XG(e.anyOf,n)):Ji(e)?JG(e,n):_n({})}function Gg(e,n,i){const a=qr(n)?WG(n):n,u=ti(n)?ys(n):n,l=Lr(e),f=Lr(n);return ci(e)?YG(e,u,i):Bu(n)?rQ(e,n,i):l&&f?Cn("Pick",[e,a],i):!l&&f?Cn("Pick",[e,a],i):l&&!f?Cn("Pick",[e,a],i):Ve({...cI(e,u),...i})}function eQ(e,n,i){return{[n]:Gg(e,[n],ni(i))}}function tQ(e,n,i){return n.reduce((a,u)=>({...a,...eQ(e,u,i)}),{})}function nQ(e,n,i){return tQ(e,n.keys,i)}function rQ(e,n,i){const a=nQ(e,n,i);return er(a)}function iQ(e,n){return Cn("Partial",[Cn(e,n)])}function oQ(e){return Cn("Partial",[Sp(e)])}function aQ(e){const n={};for(const i of globalThis.Object.getOwnPropertyNames(e))n[i]=As(e[i]);return n}function sQ(e){const n=oi(e,[ei,"$id","required","properties"]),i=aQ(e.properties);return _n(i,n)}function GD(e){return e.map(n=>T4(n))}function T4(e){return yc(e)?iQ(e.target,e.parameters):Lr(e)?oQ(e.$ref):Ni(e)?vs(GD(e.allOf)):Pn(e)?tr(GD(e.anyOf)):Ji(e)?sQ(e):Og(e)||Ap(e)||vc(e)||Du(e)||_S(e)||xc(e)||xp(e)||jS(e)||Dg(e)?e:_n({})}function fI(e,n){return ci(e)?cQ(e,n):Ve({...T4(e),...n})}function uQ(e,n){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=fI(e[a],ni(n));return i}function lQ(e,n){return uQ(e.properties,n)}function cQ(e,n){const i=lQ(e,n);return er(i)}function fQ(e,n){return Cn("Required",[Cn(e,n)])}function dQ(e){return Cn("Required",[Sp(e)])}function pQ(e){const n={};for(const i of globalThis.Object.getOwnPropertyNames(e))n[i]=oi(e[i],[Aa]);return n}function hQ(e){const n=oi(e,[ei,"$id","required","properties"]),i=pQ(e.properties);return _n(i,n)}function QD(e){return e.map(n=>O4(n))}function O4(e){return yc(e)?fQ(e.target,e.parameters):Lr(e)?dQ(e.$ref):Ni(e)?vs(QD(e.allOf)):Pn(e)?tr(QD(e.anyOf)):Ji(e)?hQ(e):Og(e)||Ap(e)||vc(e)||Du(e)||_S(e)||xc(e)||xp(e)||jS(e)||Dg(e)?e:_n({})}function dI(e,n){return ci(e)?yQ(e,n):Ve({...O4(e),...n})}function mQ(e,n){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=dI(e[a],n);return i}function gQ(e,n){return mQ(e.properties,n)}function yQ(e,n){const i=gQ(e,n);return er(i)}function bQ(e,n){return n.map(i=>Lr(i)?pI(e,i.$ref):ai(e,i))}function pI(e,n){return n in e?Lr(e[n])?pI(e,e[n].$ref):ai(e,e[n]):sn()}function AQ(e){return $g(e[0])}function vQ(e){return kg(e[0],e[1])}function xQ(e){return eI(e[0])}function EQ(e){return fI(e[0])}function wQ(e){return Vg(e[0],e[1])}function SQ(e){return Gg(e[0],e[1])}function IQ(e){return dI(e[0])}function CQ(e,n,i){const a=bQ(e,i);return n==="Awaited"?AQ(a):n==="Index"?vQ(a):n==="KeyOf"?xQ(a):n==="Partial"?EQ(a):n==="Omit"?wQ(a):n==="Pick"?SQ(a):n==="Required"?IQ(a):sn()}function TQ(e,n){return GS(ai(e,n))}function OQ(e,n){return QS(ai(e,n))}function RQ(e,n,i){return YS(Op(e,n),ai(e,i))}function FQ(e,n,i){return wp(Op(e,n),ai(e,i))}function NQ(e,n){return vs(Op(e,n))}function DQ(e,n){return WS(ai(e,n))}function BQ(e,n){return _n(globalThis.Object.keys(n).reduce((i,a)=>({...i,[a]:ai(e,n[a])}),{}))}function UQ(e,n){const[i,a]=[ai(e,S4(n)),uI(n)],u=DS(n);return u.patternProperties[a]=i,u}function MQ(e,n){return Lr(n)?{...pI(e,n.$ref),[ei]:n[ei]}:n}function _Q(e,n){return wc(Op(e,n))}function jQ(e,n){return tr(Op(e,n))}function Op(e,n){return n.map(i=>ai(e,i))}function ai(e,n){return hs(n)?Ve(ai(e,oi(n,[Aa])),n):MS(n)?Ve(ai(e,oi(n,[bp])),n):en(n)?Ve(MQ(e,n),n):gc(n)?Ve(TQ(e,n.items),n):Tg(n)?Ve(OQ(e,n.items),n):yc(n)?Ve(CQ(e,n.target,n.parameters)):bc(n)?Ve(RQ(e,n.parameters,n.returns),n):Ac(n)?Ve(FQ(e,n.parameters,n.returns),n):Ni(n)?Ve(NQ(e,n.allOf),n):Rg(n)?Ve(DQ(e,n.items),n):Ji(n)?Ve(BQ(e,n.properties),n):Ng(n)?Ve(UQ(e,n)):Mu(n)?Ve(_Q(e,n.items||[]),n):Pn(n)?Ve(jQ(e,n.anyOf),n):n}function PQ(e,n){return n in e?ai(e,e[n]):sn()}function LQ(e){return globalThis.Object.getOwnPropertyNames(e).reduce((n,i)=>({...n,[i]:PQ(e,i)}),{})}class kQ{constructor(n){const i=LQ(n),a=this.WithIdentifiers(i);this.$defs=a}Import(n,i){const a={...this.$defs,[n]:Ve(this.$defs[n],i)};return Ve({[Xe]:"Import",$defs:a,$ref:n})}WithIdentifiers(n){return globalThis.Object.getOwnPropertyNames(n).reduce((i,a)=>({...i,[a]:{...n[a],$id:a}}),{})}}function $Q(e){return new kQ(e)}function qQ(e,n){return Ve({[Xe]:"Not",not:e},n)}function HQ(e,n){return Ac(e)?wc(e.parameters,n):sn()}let zQ=0;function VQ(e,n={}){bn(n.$id)&&(n.$id=`T${zQ++}`);const i=DS(e({[Xe]:"This",$ref:`${n.$id}`}));return i.$id=n.$id,Ve({[Cg]:"Recursive",...i},n)}function GQ(e,n){const i=pn(e)?new globalThis.RegExp(e):e;return Ve({[Xe]:"RegExp",type:"RegExp",source:i.source,flags:i.flags},n)}function QQ(e){return Ni(e)?e.allOf:Pn(e)?e.anyOf:Mu(e)?e.items??[]:[]}function YQ(e){return QQ(e)}function KQ(e,n){return Ac(e)?Ve(e.returns,n):sn(n)}class XQ{constructor(n){this.schema=n}Decode(n){return new ZQ(this.schema,n)}}class ZQ{constructor(n,i){this.schema=n,this.decode=i}EncodeTransform(n,i){const l={Encode:f=>i[ei].Encode(n(f)),Decode:f=>this.decode(i[ei].Decode(f))};return{...i,[ei]:l}}EncodeSchema(n,i){const a={Decode:this.decode,Encode:n};return{...i,[ei]:a}}Encode(n){return en(this.schema)?this.EncodeTransform(n,this.schema):this.EncodeSchema(n,this.schema)}}function JQ(e){return new XQ(e)}function WQ(e={}){return Ve({[Xe]:e[Xe]??"Unsafe"},e)}function eY(e){return Ve({[Xe]:"Void",type:"void"},e)}const tY=Object.freeze(Object.defineProperty({__proto__:null,Any:tp,Argument:Zz,Array:GS,AsyncIterator:QS,Awaited:$g,BigInt:ZS,Boolean:e4,Capitalize:RG,Composite:B9,Const:_9,Constructor:YS,ConstructorParameters:j9,Date:c4,Enum:P9,Exclude:oI,Extends:iI,Extract:aI,Function:wp,Index:kg,InstanceType:GV,Instantiate:bG,Integer:AG,Intersect:vs,Iterator:WS,KeyOf:eI,Literal:An,Lowercase:FG,Mapped:e9,Module:$Q,Never:sn,Not:qQ,Null:f4,Number:Lu,Object:_n,Omit:Vg,Optional:As,Parameters:HQ,Partial:fI,Pick:Gg,Promise:o4,Readonly:bs,ReadonlyOptional:E4,Record:w4,Recursive:VQ,Ref:Sp,RegExp:GQ,Required:dI,Rest:YQ,ReturnType:KQ,String:Ru,Symbol:d4,TemplateLiteral:n4,Transform:JQ,Tuple:wc,Uint8Array:h4,Uncapitalize:NG,Undefined:p4,Union:tr,Unknown:qg,Unsafe:WQ,Uppercase:DG,Void:eY},Symbol.toStringTag,{value:"Module"})),S=tY;function nY(e){switch(e.errorType){case Te.ArrayContains:return"Expected array to contain at least one matching value";case Te.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case Te.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case Te.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case Te.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case Te.ArrayUniqueItems:return"Expected array elements to be unique";case Te.Array:return"Expected array";case Te.AsyncIterator:return"Expected AsyncIterator";case Te.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case Te.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case Te.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case Te.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case Te.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case Te.BigInt:return"Expected bigint";case Te.Boolean:return"Expected boolean";case Te.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case Te.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case Te.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case Te.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case Te.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case Te.Date:return"Expected Date";case Te.Function:return"Expected function";case Te.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case Te.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case Te.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case Te.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case Te.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case Te.Integer:return"Expected integer";case Te.IntersectUnevaluatedProperties:return"Unexpected property";case Te.Intersect:return"Expected all values to match";case Te.Iterator:return"Expected Iterator";case Te.Literal:return`Expected ${typeof e.schema.const=="string"?`'${e.schema.const}'`:e.schema.const}`;case Te.Never:return"Never";case Te.Not:return"Value should not match";case Te.Null:return"Expected null";case Te.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case Te.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case Te.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case Te.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case Te.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case Te.Number:return"Expected number";case Te.Object:return"Expected object";case Te.ObjectAdditionalProperties:return"Unexpected property";case Te.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case Te.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case Te.ObjectRequiredProperty:return"Expected required property";case Te.Promise:return"Expected Promise";case Te.RegExp:return"Expected string to match regular expression";case Te.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case Te.StringFormat:return`Expected string to match '${e.schema.format}' format`;case Te.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case Te.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case Te.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case Te.String:return"Expected string";case Te.Symbol:return"Expected symbol";case Te.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case Te.Tuple:return"Expected tuple";case Te.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case Te.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case Te.Uint8Array:return"Expected Uint8Array";case Te.Undefined:return"Expected undefined";case Te.Union:return"Expected union value";case Te.Void:return"Expected void";case Te.Kind:return`Expected kind '${e.schema[Xe]}'`;default:return"Unknown error type"}}let rY=nY;function iY(){return rY}class oY extends li{constructor(n){super(`Unable to dereference schema with $id '${n.$ref}'`),this.schema=n}}function aY(e,n){const i=n.find(a=>a.$id===e.$ref);if(i===void 0)throw new oY(e);return Wi(i,n)}function Qg(e,n){return!Eo(e.$id)||n.some(i=>i.$id===e.$id)||n.push(e),n}function Wi(e,n){return e[Xe]==="This"||e[Xe]==="Ref"?aY(e,n):e}class sY extends li{constructor(n){super("Unable to hash value"),this.value=n}}var si;(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"})(si||(si={}));let Kl=BigInt("14695981039346656037");const[uY,lY]=[BigInt("1099511628211"),BigInt("18446744073709551616")],cY=Array.from({length:256}).map((e,n)=>BigInt(n)),R4=new Float64Array(1),F4=new DataView(R4.buffer),N4=new Uint8Array(R4.buffer);function*fY(e){const n=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let i=0;i<n;i++)yield e>>8*(n-1-i)&255}function dY(e){cr(si.Array);for(const n of e)pc(n)}function pY(e){cr(si.Boolean),cr(e?1:0)}function hY(e){cr(si.BigInt),F4.setBigInt64(0,e);for(const n of N4)cr(n)}function mY(e){cr(si.Date),pc(e.getTime())}function gY(e){cr(si.Null)}function yY(e){cr(si.Number),F4.setFloat64(0,e);for(const n of N4)cr(n)}function bY(e){cr(si.Object);for(const n of globalThis.Object.getOwnPropertyNames(e).sort())pc(n),pc(e[n])}function AY(e){cr(si.String);for(let n=0;n<e.length;n++)for(const i of fY(e.charCodeAt(n)))cr(i)}function vY(e){cr(si.Symbol),pc(e.description)}function xY(e){cr(si.Uint8Array);for(let n=0;n<e.length;n++)cr(e[n])}function EY(e){return cr(si.Undefined)}function pc(e){if(ii(e))return dY(e);if(wg(e))return pY(e);if(Sg(e))return hY(e);if(yp(e))return mY(e);if(Eg(e))return gY();if(pa(e))return yY(e);if(ri(e))return bY(e);if(Eo(e))return AY(e);if(Ig(e))return vY(e);if(BS(e))return xY(e);if(Oo(e))return EY();throw new sY(e)}function cr(e){Kl=Kl^cY[e],Kl=Kl*uY%lY}function D4(e){return Kl=BigInt("14695981039346656037"),pc(e),Kl}class wY extends li{constructor(n){super("Unknown type"),this.schema=n}}function SY(e){return e[Xe]==="Any"||e[Xe]==="Unknown"}function Tt(e){return e!==void 0}function IY(e,n,i){return!0}function CY(e,n,i){return!0}function TY(e,n,i){if(!ii(i)||Tt(e.minItems)&&!(i.length>=e.minItems)||Tt(e.maxItems)&&!(i.length<=e.maxItems)||!i.every(l=>Bn(e.items,n,l))||e.uniqueItems===!0&&!(function(){const l=new Set;for(const f of i){const p=D4(f);if(l.has(p))return!1;l.add(p)}return!0})())return!1;if(!(Tt(e.contains)||pa(e.minContains)||pa(e.maxContains)))return!0;const a=Tt(e.contains)?e.contains:sn(),u=i.reduce((l,f)=>Bn(a,n,f)?l+1:l,0);return!(u===0||pa(e.minContains)&&u<e.minContains||pa(e.maxContains)&&u>e.maxContains)}function OY(e,n,i){return O_(i)}function RY(e,n,i){return!(!Sg(i)||Tt(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)||Tt(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)||Tt(e.maximum)&&!(i<=e.maximum)||Tt(e.minimum)&&!(i>=e.minimum)||Tt(e.multipleOf)&&i%e.multipleOf!==BigInt(0))}function FY(e,n,i){return wg(i)}function NY(e,n,i){return Bn(e.returns,n,i.prototype)}function DY(e,n,i){return!(!yp(i)||Tt(e.exclusiveMaximumTimestamp)&&!(i.getTime()<e.exclusiveMaximumTimestamp)||Tt(e.exclusiveMinimumTimestamp)&&!(i.getTime()>e.exclusiveMinimumTimestamp)||Tt(e.maximumTimestamp)&&!(i.getTime()<=e.maximumTimestamp)||Tt(e.minimumTimestamp)&&!(i.getTime()>=e.minimumTimestamp)||Tt(e.multipleOfTimestamp)&&i.getTime()%e.multipleOfTimestamp!==0)}function BY(e,n,i){return US(i)}function UY(e,n,i){const a=globalThis.Object.values(e.$defs),u=e.$defs[e.$ref];return Bn(u,[...n,...a],i)}function MY(e,n,i){return!(!D_(i)||Tt(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)||Tt(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)||Tt(e.maximum)&&!(i<=e.maximum)||Tt(e.minimum)&&!(i>=e.minimum)||Tt(e.multipleOf)&&i%e.multipleOf!==0)}function _Y(e,n,i){const a=e.allOf.every(u=>Bn(u,n,i));if(e.unevaluatedProperties===!1){const u=new RegExp(rg(e)),l=Object.getOwnPropertyNames(i).every(f=>u.test(f));return a&&l}else if(ti(e.unevaluatedProperties)){const u=new RegExp(rg(e)),l=Object.getOwnPropertyNames(i).every(f=>u.test(f)||Bn(e.unevaluatedProperties,n,i[f]));return a&&l}else return a}function jY(e,n,i){return R_(i)}function PY(e,n,i){return i===e.const}function LY(e,n,i){return!1}function kY(e,n,i){return!Bn(e.not,n,i)}function $Y(e,n,i){return Eg(i)}function qY(e,n,i){return!(!Pr.IsNumberLike(i)||Tt(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)||Tt(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)||Tt(e.minimum)&&!(i>=e.minimum)||Tt(e.maximum)&&!(i<=e.maximum)||Tt(e.multipleOf)&&i%e.multipleOf!==0)}function HY(e,n,i){if(!Pr.IsObjectLike(i)||Tt(e.minProperties)&&!(Object.getOwnPropertyNames(i).length>=e.minProperties)||Tt(e.maxProperties)&&!(Object.getOwnPropertyNames(i).length<=e.maxProperties))return!1;const a=Object.getOwnPropertyNames(e.properties);for(const u of a){const l=e.properties[u];if(e.required&&e.required.includes(u)){if(!Bn(l,n,i[u])||(Cp(l)||SY(l))&&!(u in i))return!1}else if(Pr.IsExactOptionalProperty(i,u)&&!Bn(l,n,i[u]))return!1}if(e.additionalProperties===!1){const u=Object.getOwnPropertyNames(i);return e.required&&e.required.length===a.length&&u.length===a.length?!0:u.every(l=>a.includes(l))}else return typeof e.additionalProperties=="object"?Object.getOwnPropertyNames(i).every(l=>a.includes(l)||Bn(e.additionalProperties,n,i[l])):!0}function zY(e,n,i){return F_(i)}function VY(e,n,i){if(!Pr.IsRecordLike(i)||Tt(e.minProperties)&&!(Object.getOwnPropertyNames(i).length>=e.minProperties)||Tt(e.maxProperties)&&!(Object.getOwnPropertyNames(i).length<=e.maxProperties))return!1;const[a,u]=Object.entries(e.patternProperties)[0],l=new RegExp(a),f=Object.entries(i).every(([m,v])=>l.test(m)?Bn(u,n,v):!0),p=typeof e.additionalProperties=="object"?Object.entries(i).every(([m,v])=>l.test(m)?!0:Bn(e.additionalProperties,n,v)):!0,h=e.additionalProperties===!1?Object.getOwnPropertyNames(i).every(m=>l.test(m)):!0;return f&&p&&h}function GY(e,n,i){return Bn(Wi(e,n),n,i)}function QY(e,n,i){const a=new RegExp(e.source,e.flags);return Tt(e.minLength)&&!(i.length>=e.minLength)||Tt(e.maxLength)&&!(i.length<=e.maxLength)?!1:a.test(i)}function YY(e,n,i){return!Eo(i)||Tt(e.minLength)&&!(i.length>=e.minLength)||Tt(e.maxLength)&&!(i.length<=e.maxLength)||Tt(e.pattern)&&!new RegExp(e.pattern).test(i)?!1:Tt(e.format)?Q_(e.format)?Y_(e.format)(i):!1:!0}function KY(e,n,i){return Ig(i)}function XY(e,n,i){return Eo(i)&&new RegExp(e.pattern).test(i)}function ZY(e,n,i){return Bn(Wi(e,n),n,i)}function JY(e,n,i){if(!ii(i)||e.items===void 0&&i.length!==0||i.length!==e.maxItems)return!1;if(!e.items)return!0;for(let a=0;a<e.items.length;a++)if(!Bn(e.items[a],n,i[a]))return!1;return!0}function WY(e,n,i){return Oo(i)}function eK(e,n,i){return e.anyOf.some(a=>Bn(a,n,i))}function tK(e,n,i){return!(!BS(i)||Tt(e.maxByteLength)&&!(i.length<=e.maxByteLength)||Tt(e.minByteLength)&&!(i.length>=e.minByteLength))}function nK(e,n,i){return!0}function rK(e,n,i){return Pr.IsVoidLike(i)}function iK(e,n,i){return VS(e[Xe])?X_(e[Xe])(e,i):!1}function Bn(e,n,i){const a=Tt(e.$id)?Qg(e,n):n,u=e;switch(u[Xe]){case"Any":return IY();case"Argument":return CY();case"Array":return TY(u,a,i);case"AsyncIterator":return OY(u,a,i);case"BigInt":return RY(u,a,i);case"Boolean":return FY(u,a,i);case"Constructor":return NY(u,a,i);case"Date":return DY(u,a,i);case"Function":return BY(u,a,i);case"Import":return UY(u,a,i);case"Integer":return MY(u,a,i);case"Intersect":return _Y(u,a,i);case"Iterator":return jY(u,a,i);case"Literal":return PY(u,a,i);case"Never":return LY();case"Not":return kY(u,a,i);case"Null":return $Y(u,a,i);case"Number":return qY(u,a,i);case"Object":return HY(u,a,i);case"Promise":return zY(u,a,i);case"Record":return VY(u,a,i);case"Ref":return GY(u,a,i);case"RegExp":return QY(u,a,i);case"String":return YY(u,a,i);case"Symbol":return KY(u,a,i);case"TemplateLiteral":return XY(u,a,i);case"This":return ZY(u,a,i);case"Tuple":return JY(u,a,i);case"Undefined":return WY(u,a,i);case"Union":return eK(u,a,i);case"Uint8Array":return tK(u,a,i);case"Unknown":return nK();case"Void":return rK(u,a,i);default:if(!VS(u[Xe]))throw new wY(u);return iK(u,a,i)}}function Yg(...e){return e.length===3?Bn(e[0],e[1],e[2]):Bn(e[0],[],e[1])}var Te;(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"})(Te||(Te={}));class oK extends li{constructor(n){super("Unknown type"),this.schema=n}}function la(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Ct(e){return e!==void 0}class B4{constructor(n){this.iterator=n}[Symbol.iterator](){return this.iterator}First(){const n=this.iterator.next();return n.done?void 0:n.value}}function Ge(e,n,i,a,u=[]){return{type:e,schema:n,path:i,value:a,message:iY()({errorType:e,path:i,schema:n,value:a,errors:u}),errors:u}}function*aK(e,n,i,a){}function*sK(e,n,i,a){}function*uK(e,n,i,a){if(!ii(a))return yield Ge(Te.Array,e,i,a);Ct(e.minItems)&&!(a.length>=e.minItems)&&(yield Ge(Te.ArrayMinItems,e,i,a)),Ct(e.maxItems)&&!(a.length<=e.maxItems)&&(yield Ge(Te.ArrayMaxItems,e,i,a));for(let f=0;f<a.length;f++)yield*Un(e.items,n,`${i}/${f}`,a[f]);if(e.uniqueItems===!0&&!(function(){const f=new Set;for(const p of a){const h=D4(p);if(f.has(h))return!1;f.add(h)}return!0})()&&(yield Ge(Te.ArrayUniqueItems,e,i,a)),!(Ct(e.contains)||Ct(e.minContains)||Ct(e.maxContains)))return;const u=Ct(e.contains)?e.contains:sn(),l=a.reduce((f,p,h)=>Un(u,n,`${i}${h}`,p).next().done===!0?f+1:f,0);l===0&&(yield Ge(Te.ArrayContains,e,i,a)),pa(e.minContains)&&l<e.minContains&&(yield Ge(Te.ArrayMinContains,e,i,a)),pa(e.maxContains)&&l>e.maxContains&&(yield Ge(Te.ArrayMaxContains,e,i,a))}function*lK(e,n,i,a){O_(a)||(yield Ge(Te.AsyncIterator,e,i,a))}function*cK(e,n,i,a){if(!Sg(a))return yield Ge(Te.BigInt,e,i,a);Ct(e.exclusiveMaximum)&&!(a<e.exclusiveMaximum)&&(yield Ge(Te.BigIntExclusiveMaximum,e,i,a)),Ct(e.exclusiveMinimum)&&!(a>e.exclusiveMinimum)&&(yield Ge(Te.BigIntExclusiveMinimum,e,i,a)),Ct(e.maximum)&&!(a<=e.maximum)&&(yield Ge(Te.BigIntMaximum,e,i,a)),Ct(e.minimum)&&!(a>=e.minimum)&&(yield Ge(Te.BigIntMinimum,e,i,a)),Ct(e.multipleOf)&&a%e.multipleOf!==BigInt(0)&&(yield Ge(Te.BigIntMultipleOf,e,i,a))}function*fK(e,n,i,a){wg(a)||(yield Ge(Te.Boolean,e,i,a))}function*dK(e,n,i,a){yield*Un(e.returns,n,i,a.prototype)}function*pK(e,n,i,a){if(!yp(a))return yield Ge(Te.Date,e,i,a);Ct(e.exclusiveMaximumTimestamp)&&!(a.getTime()<e.exclusiveMaximumTimestamp)&&(yield Ge(Te.DateExclusiveMaximumTimestamp,e,i,a)),Ct(e.exclusiveMinimumTimestamp)&&!(a.getTime()>e.exclusiveMinimumTimestamp)&&(yield Ge(Te.DateExclusiveMinimumTimestamp,e,i,a)),Ct(e.maximumTimestamp)&&!(a.getTime()<=e.maximumTimestamp)&&(yield Ge(Te.DateMaximumTimestamp,e,i,a)),Ct(e.minimumTimestamp)&&!(a.getTime()>=e.minimumTimestamp)&&(yield Ge(Te.DateMinimumTimestamp,e,i,a)),Ct(e.multipleOfTimestamp)&&a.getTime()%e.multipleOfTimestamp!==0&&(yield Ge(Te.DateMultipleOfTimestamp,e,i,a))}function*hK(e,n,i,a){US(a)||(yield Ge(Te.Function,e,i,a))}function*mK(e,n,i,a){const u=globalThis.Object.values(e.$defs),l=e.$defs[e.$ref];yield*Un(l,[...n,...u],i,a)}function*gK(e,n,i,a){if(!D_(a))return yield Ge(Te.Integer,e,i,a);Ct(e.exclusiveMaximum)&&!(a<e.exclusiveMaximum)&&(yield Ge(Te.IntegerExclusiveMaximum,e,i,a)),Ct(e.exclusiveMinimum)&&!(a>e.exclusiveMinimum)&&(yield Ge(Te.IntegerExclusiveMinimum,e,i,a)),Ct(e.maximum)&&!(a<=e.maximum)&&(yield Ge(Te.IntegerMaximum,e,i,a)),Ct(e.minimum)&&!(a>=e.minimum)&&(yield Ge(Te.IntegerMinimum,e,i,a)),Ct(e.multipleOf)&&a%e.multipleOf!==0&&(yield Ge(Te.IntegerMultipleOf,e,i,a))}function*yK(e,n,i,a){let u=!1;for(const l of e.allOf)for(const f of Un(l,n,i,a))u=!0,yield f;if(u)return yield Ge(Te.Intersect,e,i,a);if(e.unevaluatedProperties===!1){const l=new RegExp(rg(e));for(const f of Object.getOwnPropertyNames(a))l.test(f)||(yield Ge(Te.IntersectUnevaluatedProperties,e,`${i}/${f}`,a))}if(typeof e.unevaluatedProperties=="object"){const l=new RegExp(rg(e));for(const f of Object.getOwnPropertyNames(a))if(!l.test(f)){const p=Un(e.unevaluatedProperties,n,`${i}/${f}`,a[f]).next();p.done||(yield p.value)}}}function*bK(e,n,i,a){R_(a)||(yield Ge(Te.Iterator,e,i,a))}function*AK(e,n,i,a){a!==e.const&&(yield Ge(Te.Literal,e,i,a))}function*vK(e,n,i,a){yield Ge(Te.Never,e,i,a)}function*xK(e,n,i,a){Un(e.not,n,i,a).next().done===!0&&(yield Ge(Te.Not,e,i,a))}function*EK(e,n,i,a){Eg(a)||(yield Ge(Te.Null,e,i,a))}function*wK(e,n,i,a){if(!Pr.IsNumberLike(a))return yield Ge(Te.Number,e,i,a);Ct(e.exclusiveMaximum)&&!(a<e.exclusiveMaximum)&&(yield Ge(Te.NumberExclusiveMaximum,e,i,a)),Ct(e.exclusiveMinimum)&&!(a>e.exclusiveMinimum)&&(yield Ge(Te.NumberExclusiveMinimum,e,i,a)),Ct(e.maximum)&&!(a<=e.maximum)&&(yield Ge(Te.NumberMaximum,e,i,a)),Ct(e.minimum)&&!(a>=e.minimum)&&(yield Ge(Te.NumberMinimum,e,i,a)),Ct(e.multipleOf)&&a%e.multipleOf!==0&&(yield Ge(Te.NumberMultipleOf,e,i,a))}function*SK(e,n,i,a){if(!Pr.IsObjectLike(a))return yield Ge(Te.Object,e,i,a);Ct(e.minProperties)&&!(Object.getOwnPropertyNames(a).length>=e.minProperties)&&(yield Ge(Te.ObjectMinProperties,e,i,a)),Ct(e.maxProperties)&&!(Object.getOwnPropertyNames(a).length<=e.maxProperties)&&(yield Ge(Te.ObjectMaxProperties,e,i,a));const u=Array.isArray(e.required)?e.required:[],l=Object.getOwnPropertyNames(e.properties),f=Object.getOwnPropertyNames(a);for(const p of u)f.includes(p)||(yield Ge(Te.ObjectRequiredProperty,e.properties[p],`${i}/${la(p)}`,void 0));if(e.additionalProperties===!1)for(const p of f)l.includes(p)||(yield Ge(Te.ObjectAdditionalProperties,e,`${i}/${la(p)}`,a[p]));if(typeof e.additionalProperties=="object")for(const p of f)l.includes(p)||(yield*Un(e.additionalProperties,n,`${i}/${la(p)}`,a[p]));for(const p of l){const h=e.properties[p];e.required&&e.required.includes(p)?(yield*Un(h,n,`${i}/${la(p)}`,a[p]),Cp(e)&&!(p in a)&&(yield Ge(Te.ObjectRequiredProperty,h,`${i}/${la(p)}`,void 0))):Pr.IsExactOptionalProperty(a,p)&&(yield*Un(h,n,`${i}/${la(p)}`,a[p]))}}function*IK(e,n,i,a){F_(a)||(yield Ge(Te.Promise,e,i,a))}function*CK(e,n,i,a){if(!Pr.IsRecordLike(a))return yield Ge(Te.Object,e,i,a);Ct(e.minProperties)&&!(Object.getOwnPropertyNames(a).length>=e.minProperties)&&(yield Ge(Te.ObjectMinProperties,e,i,a)),Ct(e.maxProperties)&&!(Object.getOwnPropertyNames(a).length<=e.maxProperties)&&(yield Ge(Te.ObjectMaxProperties,e,i,a));const[u,l]=Object.entries(e.patternProperties)[0],f=new RegExp(u);for(const[p,h]of Object.entries(a))f.test(p)&&(yield*Un(l,n,`${i}/${la(p)}`,h));if(typeof e.additionalProperties=="object")for(const[p,h]of Object.entries(a))f.test(p)||(yield*Un(e.additionalProperties,n,`${i}/${la(p)}`,h));if(e.additionalProperties===!1){for(const[p,h]of Object.entries(a))if(!f.test(p))return yield Ge(Te.ObjectAdditionalProperties,e,`${i}/${la(p)}`,h)}}function*TK(e,n,i,a){yield*Un(Wi(e,n),n,i,a)}function*OK(e,n,i,a){if(!Eo(a))return yield Ge(Te.String,e,i,a);if(Ct(e.minLength)&&!(a.length>=e.minLength)&&(yield Ge(Te.StringMinLength,e,i,a)),Ct(e.maxLength)&&!(a.length<=e.maxLength)&&(yield Ge(Te.StringMaxLength,e,i,a)),!new RegExp(e.source,e.flags).test(a))return yield Ge(Te.RegExp,e,i,a)}function*RK(e,n,i,a){if(!Eo(a))return yield Ge(Te.String,e,i,a);Ct(e.minLength)&&!(a.length>=e.minLength)&&(yield Ge(Te.StringMinLength,e,i,a)),Ct(e.maxLength)&&!(a.length<=e.maxLength)&&(yield Ge(Te.StringMaxLength,e,i,a)),Eo(e.pattern)&&(new RegExp(e.pattern).test(a)||(yield Ge(Te.StringPattern,e,i,a))),Eo(e.format)&&(Q_(e.format)?Y_(e.format)(a)||(yield Ge(Te.StringFormat,e,i,a)):yield Ge(Te.StringFormatUnknown,e,i,a))}function*FK(e,n,i,a){Ig(a)||(yield Ge(Te.Symbol,e,i,a))}function*NK(e,n,i,a){if(!Eo(a))return yield Ge(Te.String,e,i,a);new RegExp(e.pattern).test(a)||(yield Ge(Te.StringPattern,e,i,a))}function*DK(e,n,i,a){yield*Un(Wi(e,n),n,i,a)}function*BK(e,n,i,a){if(!ii(a))return yield Ge(Te.Tuple,e,i,a);if(e.items===void 0&&a.length!==0)return yield Ge(Te.TupleLength,e,i,a);if(a.length!==e.maxItems)return yield Ge(Te.TupleLength,e,i,a);if(e.items)for(let u=0;u<e.items.length;u++)yield*Un(e.items[u],n,`${i}/${u}`,a[u])}function*UK(e,n,i,a){Oo(a)||(yield Ge(Te.Undefined,e,i,a))}function*MK(e,n,i,a){if(Yg(e,n,a))return;const u=e.anyOf.map(l=>new B4(Un(l,n,i,a)));yield Ge(Te.Union,e,i,a,u)}function*_K(e,n,i,a){if(!BS(a))return yield Ge(Te.Uint8Array,e,i,a);Ct(e.maxByteLength)&&!(a.length<=e.maxByteLength)&&(yield Ge(Te.Uint8ArrayMaxByteLength,e,i,a)),Ct(e.minByteLength)&&!(a.length>=e.minByteLength)&&(yield Ge(Te.Uint8ArrayMinByteLength,e,i,a))}function*jK(e,n,i,a){}function*PK(e,n,i,a){Pr.IsVoidLike(a)||(yield Ge(Te.Void,e,i,a))}function*LK(e,n,i,a){X_(e[Xe])(e,a)||(yield Ge(Te.Kind,e,i,a))}function*Un(e,n,i,a){const u=Ct(e.$id)?[...n,e]:n,l=e;switch(l[Xe]){case"Any":return yield*aK();case"Argument":return yield*sK();case"Array":return yield*uK(l,u,i,a);case"AsyncIterator":return yield*lK(l,u,i,a);case"BigInt":return yield*cK(l,u,i,a);case"Boolean":return yield*fK(l,u,i,a);case"Constructor":return yield*dK(l,u,i,a);case"Date":return yield*pK(l,u,i,a);case"Function":return yield*hK(l,u,i,a);case"Import":return yield*mK(l,u,i,a);case"Integer":return yield*gK(l,u,i,a);case"Intersect":return yield*yK(l,u,i,a);case"Iterator":return yield*bK(l,u,i,a);case"Literal":return yield*AK(l,u,i,a);case"Never":return yield*vK(l,u,i,a);case"Not":return yield*xK(l,u,i,a);case"Null":return yield*EK(l,u,i,a);case"Number":return yield*wK(l,u,i,a);case"Object":return yield*SK(l,u,i,a);case"Promise":return yield*IK(l,u,i,a);case"Record":return yield*CK(l,u,i,a);case"Ref":return yield*TK(l,u,i,a);case"RegExp":return yield*OK(l,u,i,a);case"String":return yield*RK(l,u,i,a);case"Symbol":return yield*FK(l,u,i,a);case"TemplateLiteral":return yield*NK(l,u,i,a);case"This":return yield*DK(l,u,i,a);case"Tuple":return yield*BK(l,u,i,a);case"Undefined":return yield*UK(l,u,i,a);case"Union":return yield*MK(l,u,i,a);case"Uint8Array":return yield*_K(l,u,i,a);case"Unknown":return yield*jK();case"Void":return yield*PK(l,u,i,a);default:if(!VS(l[Xe]))throw new oK(e);return yield*LK(l,u,i,a)}}function kK(...e){const n=e.length===3?Un(e[0],e[1],"",e[2]):Un(e[0],[],"",e[1]);return new B4(n)}function $K(e){const n={};for(const i of Object.getOwnPropertyNames(e))n[i]=Fu(e[i]);for(const i of Object.getOwnPropertySymbols(e))n[i]=Fu(e[i]);return n}function qK(e){return e.map(n=>Fu(n))}function HK(e){return e.slice()}function zK(e){return new Map(Fu([...e.entries()]))}function VK(e){return new Set(Fu([...e.entries()]))}function GK(e){return new Date(e.toISOString())}function Fu(e){if(ii(e))return qK(e);if(yp(e))return GK(e);if(Az(e))return HK(e);if(yz(e))return zK(e);if(bz(e))return VK(e);if(ri(e))return $K(e);if(B_(e))return e;throw new Error("ValueClone: Unable to clone value")}class QK extends li{constructor(n,i,a){super("Unable to decode value as it does not match the expected schema"),this.schema=n,this.value=i,this.error=a}}class YK extends li{constructor(n,i,a,u){super(u instanceof Error?u.message:"Unknown error"),this.schema=n,this.path=i,this.value=a,this.error=u}}function Wt(e,n,i){try{return en(e)?e[ei].Decode(i):i}catch(a){throw new YK(e,n,i,a)}}function KK(e,n,i,a){return ii(a)?Wt(e,i,a.map((u,l)=>eo(e.items,n,`${i}/${l}`,u))):Wt(e,i,a)}function XK(e,n,i,a){if(!ri(a)||B_(a))return Wt(e,i,a);const u=O9(e),l=u.map(v=>v[0]),f={...a};for(const[v,A]of u)v in f&&(f[v]=eo(A,n,`${i}/${v}`,f[v]));if(!en(e.unevaluatedProperties))return Wt(e,i,f);const p=Object.getOwnPropertyNames(f),h=e.unevaluatedProperties,m={...f};for(const v of p)l.includes(v)||(m[v]=Wt(h,`${i}/${v}`,m[v]));return Wt(e,i,m)}function ZK(e,n,i,a){const u=globalThis.Object.values(e.$defs),l=e.$defs[e.$ref],f=eo(l,[...n,...u],i,a);return Wt(e,i,f)}function JK(e,n,i,a){return Wt(e,i,eo(e.not,n,i,a))}function WK(e,n,i,a){if(!ri(a))return Wt(e,i,a);const u=Sc(e),l={...a};for(const m of u)N_(l,m)&&(Oo(l[m])&&(!Dg(e.properties[m])||Pr.IsExactOptionalProperty(l,m))||(l[m]=eo(e.properties[m],n,`${i}/${m}`,l[m])));if(!ti(e.additionalProperties))return Wt(e,i,l);const f=Object.getOwnPropertyNames(l),p=e.additionalProperties,h={...l};for(const m of f)u.includes(m)||(h[m]=Wt(p,`${i}/${m}`,h[m]));return Wt(e,i,h)}function eX(e,n,i,a){if(!ri(a))return Wt(e,i,a);const u=Object.getOwnPropertyNames(e.patternProperties)[0],l=new RegExp(u),f={...a};for(const v of Object.getOwnPropertyNames(a))l.test(v)&&(f[v]=eo(e.patternProperties[u],n,`${i}/${v}`,f[v]));if(!ti(e.additionalProperties))return Wt(e,i,f);const p=Object.getOwnPropertyNames(f),h=e.additionalProperties,m={...f};for(const v of p)l.test(v)||(m[v]=Wt(h,`${i}/${v}`,m[v]));return Wt(e,i,m)}function tX(e,n,i,a){const u=Wi(e,n);return Wt(e,i,eo(u,n,i,a))}function nX(e,n,i,a){const u=Wi(e,n);return Wt(e,i,eo(u,n,i,a))}function rX(e,n,i,a){return ii(a)&&ii(e.items)?Wt(e,i,e.items.map((u,l)=>eo(u,n,`${i}/${l}`,a[l]))):Wt(e,i,a)}function iX(e,n,i,a){for(const u of e.anyOf){if(!Yg(u,n,a))continue;const l=eo(u,n,i,a);return Wt(e,i,l)}return Wt(e,i,a)}function eo(e,n,i,a){const u=Qg(e,n),l=e;switch(e[Xe]){case"Array":return KK(l,u,i,a);case"Import":return ZK(l,u,i,a);case"Intersect":return XK(l,u,i,a);case"Not":return JK(l,u,i,a);case"Object":return WK(l,u,i,a);case"Record":return eX(l,u,i,a);case"Ref":return tX(l,u,i,a);case"Symbol":return Wt(l,i,a);case"This":return nX(l,u,i,a);case"Tuple":return rX(l,u,i,a);case"Union":return iX(l,u,i,a);default:return Wt(l,i,a)}}function oX(e,n,i){return eo(e,n,"",i)}function aX(e,n){return en(e)||Tn(e.items,n)}function sX(e,n){return en(e)||Tn(e.items,n)}function uX(e,n){return en(e)||Tn(e.returns,n)||e.parameters.some(i=>Tn(i,n))}function lX(e,n){return en(e)||Tn(e.returns,n)||e.parameters.some(i=>Tn(i,n))}function cX(e,n){return en(e)||en(e.unevaluatedProperties)||e.allOf.some(i=>Tn(i,n))}function fX(e,n){const i=globalThis.Object.getOwnPropertyNames(e.$defs).reduce((u,l)=>[...u,e.$defs[l]],[]),a=e.$defs[e.$ref];return en(e)||Tn(a,[...i,...n])}function dX(e,n){return en(e)||Tn(e.items,n)}function pX(e,n){return en(e)||Tn(e.not,n)}function hX(e,n){return en(e)||Object.values(e.properties).some(i=>Tn(i,n))||ti(e.additionalProperties)&&Tn(e.additionalProperties,n)}function mX(e,n){return en(e)||Tn(e.item,n)}function gX(e,n){const i=Object.getOwnPropertyNames(e.patternProperties)[0],a=e.patternProperties[i];return en(e)||Tn(a,n)||ti(e.additionalProperties)&&en(e.additionalProperties)}function yX(e,n){return en(e)?!0:Tn(Wi(e,n),n)}function bX(e,n){return en(e)?!0:Tn(Wi(e,n),n)}function AX(e,n){return en(e)||!Oo(e.items)&&e.items.some(i=>Tn(i,n))}function vX(e,n){return en(e)||e.anyOf.some(i=>Tn(i,n))}function Tn(e,n){const i=Qg(e,n),a=e;if(e.$id&&Xw.has(e.$id))return!1;switch(e.$id&&Xw.add(e.$id),e[Xe]){case"Array":return aX(a,i);case"AsyncIterator":return sX(a,i);case"Constructor":return uX(a,i);case"Function":return lX(a,i);case"Import":return fX(a,i);case"Intersect":return cX(a,i);case"Iterator":return dX(a,i);case"Not":return pX(a,i);case"Object":return hX(a,i);case"Promise":return mX(a,i);case"Record":return gX(a,i);case"Ref":return yX(a,i);case"This":return bX(a,i);case"Tuple":return AX(a,i);case"Union":return vX(a,i);default:return en(e)}}const Xw=new Set;function xX(e,n){return Xw.clear(),Tn(e,n)}function EX(...e){const[n,i,a]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!Yg(n,i,a))throw new QK(n,a,kK(n,i,a).First());return xX(n,i)?oX(n,i,a):a}function xa(e,n){const i=N_(e,"default")?e.default:void 0,a=US(i)?i():Fu(i);return Oo(n)?a:ri(n)&&ri(a)?Object.assign(a,n):n}function Zw(e){return P_(e)&&"default"in e}function wX(e,n,i){if(ii(i)){for(let u=0;u<i.length;u++)i[u]=xr(e.items,n,i[u]);return i}const a=xa(e,i);if(!ii(a))return a;for(let u=0;u<a.length;u++)a[u]=xr(e.items,n,a[u]);return a}function SX(e,n,i){return yp(i)?i:xa(e,i)}function IX(e,n,i){const a=globalThis.Object.values(e.$defs),u=e.$defs[e.$ref];return xr(u,[...n,...a],i)}function CX(e,n,i){const a=xa(e,i);return e.allOf.reduce((u,l)=>{const f=xr(l,n,a);return ri(f)?{...u,...f}:f},{})}function TX(e,n,i){const a=xa(e,i);if(!ri(a))return a;const u=Object.getOwnPropertyNames(e.properties);for(const l of u){const f=xr(e.properties[l],n,a[l]);Oo(f)||(a[l]=xr(e.properties[l],n,a[l]))}if(!Zw(e.additionalProperties))return a;for(const l of Object.getOwnPropertyNames(a))u.includes(l)||(a[l]=xr(e.additionalProperties,n,a[l]));return a}function OX(e,n,i){const a=xa(e,i);if(!ri(a))return a;const u=e.additionalProperties,[l,f]=Object.entries(e.patternProperties)[0],p=new RegExp(l);for(const h of Object.getOwnPropertyNames(a))p.test(h)&&Zw(f)&&(a[h]=xr(f,n,a[h]));if(!Zw(u))return a;for(const h of Object.getOwnPropertyNames(a))p.test(h)||(a[h]=xr(u,n,a[h]));return a}function RX(e,n,i){return xr(Wi(e,n),n,xa(e,i))}function FX(e,n,i){return xr(Wi(e,n),n,i)}function NX(e,n,i){const a=xa(e,i);if(!ii(a)||Oo(e.items))return a;const[u,l]=[e.items,Math.max(e.items.length,a.length)];for(let f=0;f<l;f++)f<u.length&&(a[f]=xr(u[f],n,a[f]));return a}function DX(e,n,i){const a=xa(e,i);for(const u of e.anyOf){const l=xr(u,n,Fu(a));if(Yg(u,n,l))return l}return a}function xr(e,n,i){const a=Qg(e,n),u=e;switch(u[Xe]){case"Array":return wX(u,a,i);case"Date":return SX(u,a,i);case"Import":return IX(u,a,i);case"Intersect":return CX(u,a,i);case"Object":return TX(u,a,i);case"Record":return OX(u,a,i);case"Ref":return RX(u,a,i);case"This":return FX(u,a,i);case"Tuple":return NX(u,a,i);case"Union":return DX(u,a,i);default:return xa(u,i)}}function BX(...e){return e.length===3?xr(e[0],e[1],e[2]):xr(e[0],[],e[1])}var aa={},ZA={exports:{}},JA={},WA={},ev={},tv,YD;function hI(){return YD||(YD=1,tv=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},i=Symbol("test"),a=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var u=42;n[i]=u;for(var l in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var f=Object.getOwnPropertySymbols(n);if(f.length!==1||f[0]!==i||!Object.prototype.propertyIsEnumerable.call(n,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(n,i);if(p.value!==u||p.enumerable!==!0)return!1}return!0}),tv}var nv,KD;function Kg(){if(KD)return nv;KD=1;var e=hI();return nv=function(){return e()&&!!Symbol.toStringTag},nv}var rv,XD;function mI(){return XD||(XD=1,rv=Object),rv}var iv,ZD;function UX(){return ZD||(ZD=1,iv=Error),iv}var ov,JD;function MX(){return JD||(JD=1,ov=EvalError),ov}var av,WD;function _X(){return WD||(WD=1,av=RangeError),av}var sv,e6;function jX(){return e6||(e6=1,sv=ReferenceError),sv}var uv,t6;function U4(){return t6||(t6=1,uv=SyntaxError),uv}var lv,n6;function Rp(){return n6||(n6=1,lv=TypeError),lv}var cv,r6;function PX(){return r6||(r6=1,cv=URIError),cv}var fv,i6;function LX(){return i6||(i6=1,fv=Math.abs),fv}var dv,o6;function kX(){return o6||(o6=1,dv=Math.floor),dv}var pv,a6;function $X(){return a6||(a6=1,pv=Math.max),pv}var hv,s6;function qX(){return s6||(s6=1,hv=Math.min),hv}var mv,u6;function HX(){return u6||(u6=1,mv=Math.pow),mv}var gv,l6;function zX(){return l6||(l6=1,gv=Math.round),gv}var yv,c6;function VX(){return c6||(c6=1,yv=Number.isNaN||function(n){return n!==n}),yv}var bv,f6;function GX(){if(f6)return bv;f6=1;var e=VX();return bv=function(i){return e(i)||i===0?i:i<0?-1:1},bv}var Av,d6;function QX(){return d6||(d6=1,Av=Object.getOwnPropertyDescriptor),Av}var vv,p6;function Tc(){if(p6)return vv;p6=1;var e=QX();if(e)try{e([],"length")}catch{e=null}return vv=e,vv}var xv,h6;function Xg(){if(h6)return xv;h6=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return xv=e,xv}var Ev,m6;function YX(){if(m6)return Ev;m6=1;var e=typeof Symbol<"u"&&Symbol,n=hI();return Ev=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()},Ev}var wv,g6;function M4(){return g6||(g6=1,wv=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),wv}var Sv,y6;function _4(){if(y6)return Sv;y6=1;var e=mI();return Sv=e.getPrototypeOf||null,Sv}var Iv,b6;function KX(){if(b6)return Iv;b6=1;var e="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,i=Math.max,a="[object Function]",u=function(h,m){for(var v=[],A=0;A<h.length;A+=1)v[A]=h[A];for(var y=0;y<m.length;y+=1)v[y+h.length]=m[y];return v},l=function(h,m){for(var v=[],A=m,y=0;A<h.length;A+=1,y+=1)v[y]=h[A];return v},f=function(p,h){for(var m="",v=0;v<p.length;v+=1)m+=p[v],v+1<p.length&&(m+=h);return m};return Iv=function(h){var m=this;if(typeof m!="function"||n.apply(m)!==a)throw new TypeError(e+m);for(var v=l(arguments,1),A,y=function(){if(this instanceof A){var N=m.apply(this,u(v,arguments));return Object(N)===N?N:this}return m.apply(h,u(v,arguments))},I=i(0,m.length-v.length),R=[],U=0;U<I;U++)R[U]="$"+U;if(A=Function("binder","return function ("+f(R,",")+"){ return binder.apply(this,arguments); }")(y),m.prototype){var F=function(){};F.prototype=m.prototype,A.prototype=new F,F.prototype=null}return A},Iv}var Cv,A6;function Fp(){if(A6)return Cv;A6=1;var e=KX();return Cv=Function.prototype.bind||e,Cv}var Tv,v6;function gI(){return v6||(v6=1,Tv=Function.prototype.call),Tv}var Ov,x6;function yI(){return x6||(x6=1,Ov=Function.prototype.apply),Ov}var Rv,E6;function XX(){return E6||(E6=1,Rv=typeof Reflect<"u"&&Reflect&&Reflect.apply),Rv}var Fv,w6;function j4(){if(w6)return Fv;w6=1;var e=Fp(),n=yI(),i=gI(),a=XX();return Fv=a||e.call(i,n),Fv}var Nv,S6;function bI(){if(S6)return Nv;S6=1;var e=Fp(),n=Rp(),i=gI(),a=j4();return Nv=function(l){if(l.length<1||typeof l[0]!="function")throw new n("a function is required");return a(e,i,l)},Nv}var Dv,I6;function ZX(){if(I6)return Dv;I6=1;var e=bI(),n=Tc(),i;try{i=[].__proto__===Array.prototype}catch(f){if(!f||typeof f!="object"||!("code"in f)||f.code!=="ERR_PROTO_ACCESS")throw f}var a=!!i&&n&&n(Object.prototype,"__proto__"),u=Object,l=u.getPrototypeOf;return Dv=a&&typeof a.get=="function"?e([a.get]):typeof l=="function"?function(p){return l(p==null?p:u(p))}:!1,Dv}var Bv,C6;function AI(){if(C6)return Bv;C6=1;var e=M4(),n=_4(),i=ZX();return Bv=e?function(u){return e(u)}:n?function(u){if(!u||typeof u!="object"&&typeof u!="function")throw new TypeError("getProto: not an object");return n(u)}:i?function(u){return i(u)}:null,Bv}var Uv,T6;function P4(){if(T6)return Uv;T6=1;var e=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=Fp();return Uv=i.call(e,n),Uv}var Mv,O6;function vI(){if(O6)return Mv;O6=1;var e,n=mI(),i=UX(),a=MX(),u=_X(),l=jX(),f=U4(),p=Rp(),h=PX(),m=LX(),v=kX(),A=$X(),y=qX(),I=HX(),R=zX(),U=GX(),F=Function,N=function(V){try{return F('"use strict"; return ('+V+").constructor;")()}catch{}},B=Tc(),M=Xg(),H=function(){throw new p},k=B?(function(){try{return arguments.callee,H}catch{try{return B(arguments,"callee").get}catch{return H}}})():H,X=YX()(),re=AI(),ie=_4(),O=M4(),P=yI(),L=gI(),q={},oe=typeof Uint8Array>"u"||!re?e:re(Uint8Array),ge={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":X&&re?re([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":q,"%AsyncGenerator%":q,"%AsyncGeneratorFunction%":q,"%AsyncIteratorPrototype%":q,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":F,"%GeneratorFunction%":q,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":X&&re?re(re([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!X||!re?e:re(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":B,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":u,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!X||!re?e:re(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":X&&re?re(""[Symbol.iterator]()):e,"%Symbol%":X?Symbol:e,"%SyntaxError%":f,"%ThrowTypeError%":k,"%TypedArray%":oe,"%TypeError%":p,"%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%":h,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":P,"%Object.defineProperty%":M,"%Object.getPrototypeOf%":ie,"%Math.abs%":m,"%Math.floor%":v,"%Math.max%":A,"%Math.min%":y,"%Math.pow%":I,"%Math.round%":R,"%Math.sign%":U,"%Reflect.getPrototypeOf%":O};if(re)try{null.error}catch(V){var Ee=re(re(V));ge["%Error.prototype%"]=Ee}var D=function V(w){var $;if(w==="%AsyncFunction%")$=N("async function () {}");else if(w==="%GeneratorFunction%")$=N("function* () {}");else if(w==="%AsyncGeneratorFunction%")$=N("async function* () {}");else if(w==="%AsyncGenerator%"){var Y=V("%AsyncGeneratorFunction%");Y&&($=Y.prototype)}else if(w==="%AsyncIteratorPrototype%"){var W=V("%AsyncGenerator%");W&&re&&($=re(W.prototype))}return ge[w]=$,$},fe={__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"]},be=Fp(),te=P4(),j=be.call(L,Array.prototype.concat),ue=be.call(P,Array.prototype.splice),me=be.call(L,String.prototype.replace),ne=be.call(L,String.prototype.slice),G=be.call(L,RegExp.prototype.exec),Q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J=/\\(\\)?/g,ve=function(w){var $=ne(w,0,1),Y=ne(w,-1);if($==="%"&&Y!=="%")throw new f("invalid intrinsic syntax, expected closing `%`");if(Y==="%"&&$!=="%")throw new f("invalid intrinsic syntax, expected opening `%`");var W=[];return me(w,Q,function(de,pe,E,g){W[W.length]=E?me(g,J,"$1"):pe||de}),W},Ae=function(w,$){var Y=w,W;if(te(fe,Y)&&(W=fe[Y],Y="%"+W[0]+"%"),te(ge,Y)){var de=ge[Y];if(de===q&&(de=D(Y)),typeof de>"u"&&!$)throw new p("intrinsic "+w+" exists, but is not available. Please file an issue!");return{alias:W,name:Y,value:de}}throw new f("intrinsic "+w+" does not exist!")};return Mv=function(w,$){if(typeof w!="string"||w.length===0)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof $!="boolean")throw new p('"allowMissing" argument must be a boolean');if(G(/^%?[^%]*%?$/,w)===null)throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Y=ve(w),W=Y.length>0?Y[0]:"",de=Ae("%"+W+"%",$),pe=de.name,E=de.value,g=!1,b=de.alias;b&&(W=b[0],ue(Y,j([0,1],b)));for(var C=1,K=!0;C<Y.length;C+=1){var xe=Y[C],Re=ne(xe,0,1),ze=ne(xe,-1);if((Re==='"'||Re==="'"||Re==="`"||ze==='"'||ze==="'"||ze==="`")&&Re!==ze)throw new f("property names with quotes must have matching quotes");if((xe==="constructor"||!K)&&(g=!0),W+="."+xe,pe="%"+W+"%",te(ge,pe))E=ge[pe];else if(E!=null){if(!(xe in E)){if(!$)throw new p("base intrinsic for "+w+" exists, but the property is not available.");return}if(B&&C+1>=Y.length){var ce=B(E,xe);K=!!ce,K&&"get"in ce&&!("originalValue"in ce.get)?E=ce.get:E=E[xe]}else K=te(E,xe),E=E[xe];K&&!g&&(ge[pe]=E)}}return E},Mv}var _v,R6;function Oc(){if(R6)return _v;R6=1;var e=vI(),n=bI(),i=n([e("%String.prototype.indexOf%")]);return _v=function(u,l){var f=e(u,!!l);return typeof f=="function"&&i(u,".prototype.")>-1?n([f]):f},_v}var jv,F6;function JX(){if(F6)return jv;F6=1;var e=Kg()(),n=Oc(),i=n("Object.prototype.toString"),a=function(p){return e&&p&&typeof p=="object"&&Symbol.toStringTag in p?!1:i(p)==="[object Arguments]"},u=function(p){return a(p)?!0:p!==null&&typeof p=="object"&&"length"in p&&typeof p.length=="number"&&p.length>=0&&i(p)!=="[object Array]"&&"callee"in p&&i(p.callee)==="[object Function]"},l=(function(){return a(arguments)})();return a.isLegacyArguments=u,jv=l?a:u,jv}var Pv,N6;function WX(){if(N6)return Pv;N6=1;var e=Oc(),n=Kg()(),i=P4(),a=Tc(),u;if(n){var l=e("RegExp.prototype.exec"),f={},p=function(){throw f},h={toString:p,valueOf:p};typeof Symbol.toPrimitive=="symbol"&&(h[Symbol.toPrimitive]=p),u=function(y){if(!y||typeof y!="object")return!1;var I=a(y,"lastIndex"),R=I&&i(I,"value");if(!R)return!1;try{l(y,h)}catch(U){return U===f}}}else{var m=e("Object.prototype.toString"),v="[object RegExp]";u=function(y){return!y||typeof y!="object"&&typeof y!="function"?!1:m(y)===v}}return Pv=u,Pv}var Lv,D6;function eZ(){if(D6)return Lv;D6=1;var e=Oc(),n=WX(),i=e("RegExp.prototype.exec"),a=Rp();return Lv=function(l){if(!n(l))throw new a("`regex` must be a RegExp");return function(p){return i(l,p)!==null}},Lv}var kv,B6;function tZ(){if(B6)return kv;B6=1;var e=Oc(),n=eZ(),i=n(/^\s*(?:function)?\*/),a=Kg()(),u=AI(),l=e("Object.prototype.toString"),f=e("Function.prototype.toString"),p=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch{}},h;return kv=function(v){if(typeof v!="function")return!1;if(i(f(v)))return!0;if(!a){var A=l(v);return A==="[object GeneratorFunction]"}if(!u)return!1;if(typeof h>"u"){var y=p();h=y?u(y):!1}return u(v)===h},kv}var $v,U6;function nZ(){if(U6)return $v;U6=1;var e=Function.prototype.toString,n=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,i,a;if(typeof n=="function"&&typeof Object.defineProperty=="function")try{i=Object.defineProperty({},"length",{get:function(){throw a}}),a={},n(function(){throw 42},null,i)}catch(B){B!==a&&(n=null)}else n=null;var u=/^\s*class\b/,l=function(M){try{var H=e.call(M);return u.test(H)}catch{return!1}},f=function(M){try{return l(M)?!1:(e.call(M),!0)}catch{return!1}},p=Object.prototype.toString,h="[object Object]",m="[object Function]",v="[object GeneratorFunction]",A="[object HTMLAllCollection]",y="[object HTML document.all class]",I="[object HTMLCollection]",R=typeof Symbol=="function"&&!!Symbol.toStringTag,U=!(0 in[,]),F=function(){return!1};if(typeof document=="object"){var N=document.all;p.call(N)===p.call(document.all)&&(F=function(M){if((U||!M)&&(typeof M>"u"||typeof M=="object"))try{var H=p.call(M);return(H===A||H===y||H===I||H===h)&&M("")==null}catch{}return!1})}return $v=n?function(M){if(F(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;try{n(M,null,i)}catch(H){if(H!==a)return!1}return!l(M)&&f(M)}:function(M){if(F(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;if(R)return f(M);if(l(M))return!1;var H=p.call(M);return H!==m&&H!==v&&!/^\[object HTML/.test(H)?!1:f(M)},$v}var qv,M6;function rZ(){if(M6)return qv;M6=1;var e=nZ(),n=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(h,m,v){for(var A=0,y=h.length;A<y;A++)i.call(h,A)&&(v==null?m(h[A],A,h):m.call(v,h[A],A,h))},u=function(h,m,v){for(var A=0,y=h.length;A<y;A++)v==null?m(h.charAt(A),A,h):m.call(v,h.charAt(A),A,h)},l=function(h,m,v){for(var A in h)i.call(h,A)&&(v==null?m(h[A],A,h):m.call(v,h[A],A,h))};function f(p){return n.call(p)==="[object Array]"}return qv=function(h,m,v){if(!e(m))throw new TypeError("iterator must be a function");var A;arguments.length>=3&&(A=v),f(h)?a(h,m,A):typeof h=="string"?u(h,m,A):l(h,m,A)},qv}var Hv,_6;function iZ(){return _6||(_6=1,Hv=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Hv}var zv,j6;function oZ(){if(j6)return zv;j6=1;var e=iZ(),n=typeof globalThis>"u"?da:globalThis;return zv=function(){for(var a=[],u=0;u<e.length;u++)typeof n[e[u]]=="function"&&(a[a.length]=e[u]);return a},zv}var Vv={exports:{}},Gv,P6;function L4(){if(P6)return Gv;P6=1;var e=Xg(),n=U4(),i=Rp(),a=Tc();return Gv=function(l,f,p){if(!l||typeof l!="object"&&typeof l!="function")throw new i("`obj` must be an object or a function`");if(typeof f!="string"&&typeof f!="symbol")throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new i("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,m=arguments.length>4?arguments[4]:null,v=arguments.length>5?arguments[5]:null,A=arguments.length>6?arguments[6]:!1,y=!!a&&a(l,f);if(e)e(l,f,{configurable:v===null&&y?y.configurable:!v,enumerable:h===null&&y?y.enumerable:!h,value:p,writable:m===null&&y?y.writable:!m});else if(A||!h&&!m&&!v)l[f]=p;else throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Gv}var Qv,L6;function k4(){if(L6)return Qv;L6=1;var e=Xg(),n=function(){return!!e};return n.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Qv=n,Qv}var Yv,k6;function aZ(){if(k6)return Yv;k6=1;var e=vI(),n=L4(),i=k4()(),a=Tc(),u=Rp(),l=e("%Math.floor%");return Yv=function(p,h){if(typeof p!="function")throw new u("`fn` is not a function");if(typeof h!="number"||h<0||h>4294967295||l(h)!==h)throw new u("`length` must be a positive 32-bit integer");var m=arguments.length>2&&!!arguments[2],v=!0,A=!0;if("length"in p&&a){var y=a(p,"length");y&&!y.configurable&&(v=!1),y&&!y.writable&&(A=!1)}return(v||A||!m)&&(i?n(p,"length",h,!0,!0):n(p,"length",h)),p},Yv}var Kv,$6;function sZ(){if($6)return Kv;$6=1;var e=Fp(),n=yI(),i=j4();return Kv=function(){return i(e,n,arguments)},Kv}var q6;function Zg(){return q6||(q6=1,(function(e){var n=aZ(),i=Xg(),a=bI(),u=sZ();e.exports=function(f){var p=a(arguments),h=f.length-(arguments.length-1);return n(p,1+(h>0?h:0),!0)},i?i(e.exports,"apply",{value:u}):e.exports.apply=u})(Vv)),Vv.exports}var Xv,H6;function $4(){if(H6)return Xv;H6=1;var e=rZ(),n=oZ(),i=Zg(),a=Oc(),u=Tc(),l=AI(),f=a("Object.prototype.toString"),p=Kg()(),h=typeof globalThis>"u"?da:globalThis,m=n(),v=a("String.prototype.slice"),A=a("Array.prototype.indexOf",!0)||function(F,N){for(var B=0;B<F.length;B+=1)if(F[B]===N)return B;return-1},y={__proto__:null};p&&u&&l?e(m,function(U){var F=new h[U];if(Symbol.toStringTag in F&&l){var N=l(F),B=u(N,Symbol.toStringTag);if(!B&&N){var M=l(N);B=u(M,Symbol.toStringTag)}y["$"+U]=i(B.get)}}):e(m,function(U){var F=new h[U],N=F.slice||F.set;N&&(y["$"+U]=i(N))});var I=function(F){var N=!1;return e(y,function(B,M){if(!N)try{"$"+B(F)===M&&(N=v(M,1))}catch{}}),N},R=function(F){var N=!1;return e(y,function(B,M){if(!N)try{B(F),N=v(M,1)}catch{}}),N};return Xv=function(F){if(!F||typeof F!="object")return!1;if(!p){var N=v(f(F),8,-1);return A(m,N)>-1?N:N!=="Object"?!1:R(F)}return u?I(F):null},Xv}var Zv,z6;function uZ(){if(z6)return Zv;z6=1;var e=$4();return Zv=function(i){return!!e(i)},Zv}var V6;function lZ(){return V6||(V6=1,(function(e){var n=JX(),i=tZ(),a=$4(),u=uZ();function l(C){return C.call.bind(C)}var f=typeof BigInt<"u",p=typeof Symbol<"u",h=l(Object.prototype.toString),m=l(Number.prototype.valueOf),v=l(String.prototype.valueOf),A=l(Boolean.prototype.valueOf);if(f)var y=l(BigInt.prototype.valueOf);if(p)var I=l(Symbol.prototype.valueOf);function R(C,K){if(typeof C!="object")return!1;try{return K(C),!0}catch{return!1}}e.isArgumentsObject=n,e.isGeneratorFunction=i,e.isTypedArray=u;function U(C){return typeof Promise<"u"&&C instanceof Promise||C!==null&&typeof C=="object"&&typeof C.then=="function"&&typeof C.catch=="function"}e.isPromise=U;function F(C){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(C):u(C)||ne(C)}e.isArrayBufferView=F;function N(C){return a(C)==="Uint8Array"}e.isUint8Array=N;function B(C){return a(C)==="Uint8ClampedArray"}e.isUint8ClampedArray=B;function M(C){return a(C)==="Uint16Array"}e.isUint16Array=M;function H(C){return a(C)==="Uint32Array"}e.isUint32Array=H;function k(C){return a(C)==="Int8Array"}e.isInt8Array=k;function X(C){return a(C)==="Int16Array"}e.isInt16Array=X;function re(C){return a(C)==="Int32Array"}e.isInt32Array=re;function ie(C){return a(C)==="Float32Array"}e.isFloat32Array=ie;function O(C){return a(C)==="Float64Array"}e.isFloat64Array=O;function P(C){return a(C)==="BigInt64Array"}e.isBigInt64Array=P;function L(C){return a(C)==="BigUint64Array"}e.isBigUint64Array=L;function q(C){return h(C)==="[object Map]"}q.working=typeof Map<"u"&&q(new Map);function oe(C){return typeof Map>"u"?!1:q.working?q(C):C instanceof Map}e.isMap=oe;function ge(C){return h(C)==="[object Set]"}ge.working=typeof Set<"u"&&ge(new Set);function Ee(C){return typeof Set>"u"?!1:ge.working?ge(C):C instanceof Set}e.isSet=Ee;function D(C){return h(C)==="[object WeakMap]"}D.working=typeof WeakMap<"u"&&D(new WeakMap);function fe(C){return typeof WeakMap>"u"?!1:D.working?D(C):C instanceof WeakMap}e.isWeakMap=fe;function be(C){return h(C)==="[object WeakSet]"}be.working=typeof WeakSet<"u"&&be(new WeakSet);function te(C){return be(C)}e.isWeakSet=te;function j(C){return h(C)==="[object ArrayBuffer]"}j.working=typeof ArrayBuffer<"u"&&j(new ArrayBuffer);function ue(C){return typeof ArrayBuffer>"u"?!1:j.working?j(C):C instanceof ArrayBuffer}e.isArrayBuffer=ue;function me(C){return h(C)==="[object DataView]"}me.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&me(new DataView(new ArrayBuffer(1),0,1));function ne(C){return typeof DataView>"u"?!1:me.working?me(C):C instanceof DataView}e.isDataView=ne;var G=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Q(C){return h(C)==="[object SharedArrayBuffer]"}function J(C){return typeof G>"u"?!1:(typeof Q.working>"u"&&(Q.working=Q(new G)),Q.working?Q(C):C instanceof G)}e.isSharedArrayBuffer=J;function ve(C){return h(C)==="[object AsyncFunction]"}e.isAsyncFunction=ve;function Ae(C){return h(C)==="[object Map Iterator]"}e.isMapIterator=Ae;function V(C){return h(C)==="[object Set Iterator]"}e.isSetIterator=V;function w(C){return h(C)==="[object Generator]"}e.isGeneratorObject=w;function $(C){return h(C)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=$;function Y(C){return R(C,m)}e.isNumberObject=Y;function W(C){return R(C,v)}e.isStringObject=W;function de(C){return R(C,A)}e.isBooleanObject=de;function pe(C){return f&&R(C,y)}e.isBigIntObject=pe;function E(C){return p&&R(C,I)}e.isSymbolObject=E;function g(C){return Y(C)||W(C)||de(C)||pe(C)||E(C)}e.isBoxedPrimitive=g;function b(C){return typeof Uint8Array<"u"&&(ue(C)||J(C))}e.isAnyArrayBuffer=b,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(C){Object.defineProperty(e,C,{enumerable:!1,value:function(){throw new Error(C+" is not supported in userland")}})})})(ev)),ev}var Jv,G6;function cZ(){return G6||(G6=1,Jv=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"}),Jv}var Um={exports:{}},Q6;function fZ(){return Q6||(Q6=1,typeof Object.create=="function"?Um.exports=function(n,i){i&&(n.super_=i,n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:Um.exports=function(n,i){if(i){n.super_=i;var a=function(){};a.prototype=i.prototype,n.prototype=new a,n.prototype.constructor=n}}),Um.exports}var Y6;function ip(){return Y6||(Y6=1,(function(e){var n={},i=Object.getOwnPropertyDescriptors||function(G){for(var Q=Object.keys(G),J={},ve=0;ve<Q.length;ve++)J[Q[ve]]=Object.getOwnPropertyDescriptor(G,Q[ve]);return J},a=/%[sdj%]/g;e.format=function(ne){if(!X(ne)){for(var G=[],Q=0;Q<arguments.length;Q++)G.push(p(arguments[Q]));return G.join(" ")}for(var Q=1,J=arguments,ve=J.length,Ae=String(ne).replace(a,function(w){if(w==="%%")return"%";if(Q>=ve)return w;switch(w){case"%s":return String(J[Q++]);case"%d":return Number(J[Q++]);case"%j":try{return JSON.stringify(J[Q++])}catch{return"[Circular]"}default:return w}}),V=J[Q];Q<ve;V=J[++Q])M(V)||!P(V)?Ae+=" "+V:Ae+=" "+p(V);return Ae},e.deprecate=function(ne,G){if(typeof Dt<"u"&&Dt.noDeprecation===!0)return ne;if(typeof Dt>"u")return function(){return e.deprecate(ne,G).apply(this,arguments)};var Q=!1;function J(){if(!Q){if(Dt.throwDeprecation)throw new Error(G);Dt.traceDeprecation?console.trace(G):console.error(G),Q=!0}return ne.apply(this,arguments)}return J};var u={},l=/^$/;if(n.NODE_DEBUG){var f=n.NODE_DEBUG;f=f.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+f+"$","i")}e.debuglog=function(ne){if(ne=ne.toUpperCase(),!u[ne])if(l.test(ne)){var G=Dt.pid;u[ne]=function(){var Q=e.format.apply(e,arguments);console.error("%s %d: %s",ne,G,Q)}}else u[ne]=function(){};return u[ne]};function p(ne,G){var Q={seen:[],stylize:m};return arguments.length>=3&&(Q.depth=arguments[2]),arguments.length>=4&&(Q.colors=arguments[3]),B(G)?Q.showHidden=G:G&&e._extend(Q,G),ie(Q.showHidden)&&(Q.showHidden=!1),ie(Q.depth)&&(Q.depth=2),ie(Q.colors)&&(Q.colors=!1),ie(Q.customInspect)&&(Q.customInspect=!0),Q.colors&&(Q.stylize=h),A(Q,ne,Q.depth)}e.inspect=p,p.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]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function h(ne,G){var Q=p.styles[G];return Q?"\x1B["+p.colors[Q][0]+"m"+ne+"\x1B["+p.colors[Q][1]+"m":ne}function m(ne,G){return ne}function v(ne){var G={};return ne.forEach(function(Q,J){G[Q]=!0}),G}function A(ne,G,Q){if(ne.customInspect&&G&&oe(G.inspect)&&G.inspect!==e.inspect&&!(G.constructor&&G.constructor.prototype===G)){var J=G.inspect(Q,ne);return X(J)||(J=A(ne,J,Q)),J}var ve=y(ne,G);if(ve)return ve;var Ae=Object.keys(G),V=v(Ae);if(ne.showHidden&&(Ae=Object.getOwnPropertyNames(G)),q(G)&&(Ae.indexOf("message")>=0||Ae.indexOf("description")>=0))return I(G);if(Ae.length===0){if(oe(G)){var w=G.name?": "+G.name:"";return ne.stylize("[Function"+w+"]","special")}if(O(G))return ne.stylize(RegExp.prototype.toString.call(G),"regexp");if(L(G))return ne.stylize(Date.prototype.toString.call(G),"date");if(q(G))return I(G)}var $="",Y=!1,W=["{","}"];if(N(G)&&(Y=!0,W=["[","]"]),oe(G)){var de=G.name?": "+G.name:"";$=" [Function"+de+"]"}if(O(G)&&($=" "+RegExp.prototype.toString.call(G)),L(G)&&($=" "+Date.prototype.toUTCString.call(G)),q(G)&&($=" "+I(G)),Ae.length===0&&(!Y||G.length==0))return W[0]+$+W[1];if(Q<0)return O(G)?ne.stylize(RegExp.prototype.toString.call(G),"regexp"):ne.stylize("[Object]","special");ne.seen.push(G);var pe;return Y?pe=R(ne,G,Q,V,Ae):pe=Ae.map(function(E){return U(ne,G,Q,V,E,Y)}),ne.seen.pop(),F(pe,$,W)}function y(ne,G){if(ie(G))return ne.stylize("undefined","undefined");if(X(G)){var Q="'"+JSON.stringify(G).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ne.stylize(Q,"string")}if(k(G))return ne.stylize(""+G,"number");if(B(G))return ne.stylize(""+G,"boolean");if(M(G))return ne.stylize("null","null")}function I(ne){return"["+Error.prototype.toString.call(ne)+"]"}function R(ne,G,Q,J,ve){for(var Ae=[],V=0,w=G.length;V<w;++V)te(G,String(V))?Ae.push(U(ne,G,Q,J,String(V),!0)):Ae.push("");return ve.forEach(function($){$.match(/^\d+$/)||Ae.push(U(ne,G,Q,J,$,!0))}),Ae}function U(ne,G,Q,J,ve,Ae){var V,w,$;if($=Object.getOwnPropertyDescriptor(G,ve)||{value:G[ve]},$.get?$.set?w=ne.stylize("[Getter/Setter]","special"):w=ne.stylize("[Getter]","special"):$.set&&(w=ne.stylize("[Setter]","special")),te(J,ve)||(V="["+ve+"]"),w||(ne.seen.indexOf($.value)<0?(M(Q)?w=A(ne,$.value,null):w=A(ne,$.value,Q-1),w.indexOf(`
300
- `)>-1&&(Ae?w=w.split(`
301
- `).map(function(Y){return" "+Y}).join(`
302
- `).slice(2):w=`
303
- `+w.split(`
304
- `).map(function(Y){return" "+Y}).join(`
305
- `))):w=ne.stylize("[Circular]","special")),ie(V)){if(Ae&&ve.match(/^\d+$/))return w;V=JSON.stringify(""+ve),V.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(V=V.slice(1,-1),V=ne.stylize(V,"name")):(V=V.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),V=ne.stylize(V,"string"))}return V+": "+w}function F(ne,G,Q){var J=ne.reduce(function(ve,Ae){return Ae.indexOf(`
306
- `)>=0,ve+Ae.replace(/\u001b\[\d\d?m/g,"").length+1},0);return J>60?Q[0]+(G===""?"":G+`
307
- `)+" "+ne.join(`,
308
- `)+" "+Q[1]:Q[0]+G+" "+ne.join(", ")+" "+Q[1]}e.types=lZ();function N(ne){return Array.isArray(ne)}e.isArray=N;function B(ne){return typeof ne=="boolean"}e.isBoolean=B;function M(ne){return ne===null}e.isNull=M;function H(ne){return ne==null}e.isNullOrUndefined=H;function k(ne){return typeof ne=="number"}e.isNumber=k;function X(ne){return typeof ne=="string"}e.isString=X;function re(ne){return typeof ne=="symbol"}e.isSymbol=re;function ie(ne){return ne===void 0}e.isUndefined=ie;function O(ne){return P(ne)&&Ee(ne)==="[object RegExp]"}e.isRegExp=O,e.types.isRegExp=O;function P(ne){return typeof ne=="object"&&ne!==null}e.isObject=P;function L(ne){return P(ne)&&Ee(ne)==="[object Date]"}e.isDate=L,e.types.isDate=L;function q(ne){return P(ne)&&(Ee(ne)==="[object Error]"||ne instanceof Error)}e.isError=q,e.types.isNativeError=q;function oe(ne){return typeof ne=="function"}e.isFunction=oe;function ge(ne){return ne===null||typeof ne=="boolean"||typeof ne=="number"||typeof ne=="string"||typeof ne=="symbol"||typeof ne>"u"}e.isPrimitive=ge,e.isBuffer=cZ();function Ee(ne){return Object.prototype.toString.call(ne)}function D(ne){return ne<10?"0"+ne.toString(10):ne.toString(10)}var fe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function be(){var ne=new Date,G=[D(ne.getHours()),D(ne.getMinutes()),D(ne.getSeconds())].join(":");return[ne.getDate(),fe[ne.getMonth()],G].join(" ")}e.log=function(){console.log("%s - %s",be(),e.format.apply(e,arguments))},e.inherits=fZ(),e._extend=function(ne,G){if(!G||!P(G))return ne;for(var Q=Object.keys(G),J=Q.length;J--;)ne[Q[J]]=G[Q[J]];return ne};function te(ne,G){return Object.prototype.hasOwnProperty.call(ne,G)}var j=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(G){if(typeof G!="function")throw new TypeError('The "original" argument must be of type Function');if(j&&G[j]){var Q=G[j];if(typeof Q!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Q,j,{value:Q,enumerable:!1,writable:!1,configurable:!0}),Q}function Q(){for(var J,ve,Ae=new Promise(function($,Y){J=$,ve=Y}),V=[],w=0;w<arguments.length;w++)V.push(arguments[w]);V.push(function($,Y){$?ve($):J(Y)});try{G.apply(this,V)}catch($){ve($)}return Ae}return Object.setPrototypeOf(Q,Object.getPrototypeOf(G)),j&&Object.defineProperty(Q,j,{value:Q,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Q,i(G))},e.promisify.custom=j;function ue(ne,G){if(!ne){var Q=new Error("Promise was rejected with a falsy value");Q.reason=ne,ne=Q}return G(ne)}function me(ne){if(typeof ne!="function")throw new TypeError('The "original" argument must be of type Function');function G(){for(var Q=[],J=0;J<arguments.length;J++)Q.push(arguments[J]);var ve=Q.pop();if(typeof ve!="function")throw new TypeError("The last argument must be of type Function");var Ae=this,V=function(){return ve.apply(Ae,arguments)};ne.apply(this,Q).then(function(w){Dt.nextTick(V.bind(null,null,w))},function(w){Dt.nextTick(ue.bind(null,w,V))})}return Object.setPrototypeOf(G,Object.getPrototypeOf(ne)),Object.defineProperties(G,i(ne)),G}e.callbackify=me})(WA)),WA}var K6;function q4(){if(K6)return JA;K6=1;function e(B){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},e(B)}function n(B,M,H){return Object.defineProperty(B,"prototype",{writable:!1}),B}function i(B,M){if(!(B instanceof M))throw new TypeError("Cannot call a class as a function")}function a(B,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(M&&M.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),Object.defineProperty(B,"prototype",{writable:!1}),M&&u(B,M)}function u(B,M){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,X){return k.__proto__=X,k},u(B,M)}function l(B){var M=h();return function(){var k=m(B),X;if(M){var re=m(this).constructor;X=Reflect.construct(k,arguments,re)}else X=k.apply(this,arguments);return f(this,X)}}function f(B,M){if(M&&(e(M)==="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(B)}function p(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function h(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function m(B){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(H){return H.__proto__||Object.getPrototypeOf(H)},m(B)}var v={},A,y;function I(B,M,H){H||(H=Error);function k(re,ie,O){return typeof M=="string"?M:M(re,ie,O)}var X=(function(re){a(O,re);var ie=l(O);function O(P,L,q){var oe;return i(this,O),oe=ie.call(this,k(P,L,q)),oe.code=B,oe}return n(O)})(H);v[B]=X}function R(B,M){if(Array.isArray(B)){var H=B.length;return B=B.map(function(k){return String(k)}),H>2?"one of ".concat(M," ").concat(B.slice(0,H-1).join(", "),", or ")+B[H-1]:H===2?"one of ".concat(M," ").concat(B[0]," or ").concat(B[1]):"of ".concat(M," ").concat(B[0])}else return"of ".concat(M," ").concat(String(B))}function U(B,M,H){return B.substr(0,M.length)===M}function F(B,M,H){return(H===void 0||H>B.length)&&(H=B.length),B.substring(H-M.length,H)===M}function N(B,M,H){return typeof H!="number"&&(H=0),H+M.length>B.length?!1:B.indexOf(M,H)!==-1}return I("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),I("ERR_INVALID_ARG_TYPE",function(B,M,H){A===void 0&&(A=Jw()),A(typeof B=="string","'name' must be a string");var k;typeof M=="string"&&U(M,"not ")?(k="must not be",M=M.replace(/^not /,"")):k="must be";var X;if(F(B," argument"))X="The ".concat(B," ").concat(k," ").concat(R(M,"type"));else{var re=N(B,".")?"property":"argument";X='The "'.concat(B,'" ').concat(re," ").concat(k," ").concat(R(M,"type"))}return X+=". Received type ".concat(e(H)),X},TypeError),I("ERR_INVALID_ARG_VALUE",function(B,M){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";y===void 0&&(y=ip());var k=y.inspect(M);return k.length>128&&(k="".concat(k.slice(0,128),"...")),"The argument '".concat(B,"' ").concat(H,". Received ").concat(k)},TypeError),I("ERR_INVALID_RETURN_VALUE",function(B,M,H){var k;return H&&H.constructor&&H.constructor.name?k="instance of ".concat(H.constructor.name):k="type ".concat(e(H)),"Expected ".concat(B,' to be returned from the "').concat(M,'"')+" function but got ".concat(k,".")},TypeError),I("ERR_MISSING_ARGS",function(){for(var B=arguments.length,M=new Array(B),H=0;H<B;H++)M[H]=arguments[H];A===void 0&&(A=Jw()),A(M.length>0,"At least one arg needs to be specified");var k="The ",X=M.length;switch(M=M.map(function(re){return'"'.concat(re,'"')}),X){case 1:k+="".concat(M[0]," argument");break;case 2:k+="".concat(M[0]," and ").concat(M[1]," arguments");break;default:k+=M.slice(0,X-1).join(", "),k+=", and ".concat(M[X-1]," arguments");break}return"".concat(k," must be specified")},TypeError),JA.codes=v,JA}var Wv,X6;function dZ(){if(X6)return Wv;X6=1;function e(te,j){var ue=Object.keys(te);if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(te);j&&(me=me.filter(function(ne){return Object.getOwnPropertyDescriptor(te,ne).enumerable})),ue.push.apply(ue,me)}return ue}function n(te){for(var j=1;j<arguments.length;j++){var ue=arguments[j]!=null?arguments[j]:{};j%2?e(Object(ue),!0).forEach(function(me){i(te,me,ue[me])}):Object.getOwnPropertyDescriptors?Object.defineProperties(te,Object.getOwnPropertyDescriptors(ue)):e(Object(ue)).forEach(function(me){Object.defineProperty(te,me,Object.getOwnPropertyDescriptor(ue,me))})}return te}function i(te,j,ue){return j=f(j),j in te?Object.defineProperty(te,j,{value:ue,enumerable:!0,configurable:!0,writable:!0}):te[j]=ue,te}function a(te,j){if(!(te instanceof j))throw new TypeError("Cannot call a class as a function")}function u(te,j){for(var ue=0;ue<j.length;ue++){var me=j[ue];me.enumerable=me.enumerable||!1,me.configurable=!0,"value"in me&&(me.writable=!0),Object.defineProperty(te,f(me.key),me)}}function l(te,j,ue){return j&&u(te.prototype,j),Object.defineProperty(te,"prototype",{writable:!1}),te}function f(te){var j=p(te,"string");return B(j)==="symbol"?j:String(j)}function p(te,j){if(B(te)!=="object"||te===null)return te;var ue=te[Symbol.toPrimitive];if(ue!==void 0){var me=ue.call(te,j);if(B(me)!=="object")return me;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(te)}function h(te,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");te.prototype=Object.create(j&&j.prototype,{constructor:{value:te,writable:!0,configurable:!0}}),Object.defineProperty(te,"prototype",{writable:!1}),j&&F(te,j)}function m(te){var j=R();return function(){var me=N(te),ne;if(j){var G=N(this).constructor;ne=Reflect.construct(me,arguments,G)}else ne=me.apply(this,arguments);return v(this,ne)}}function v(te,j){if(j&&(B(j)==="object"||typeof j=="function"))return j;if(j!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A(te)}function A(te){if(te===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return te}function y(te){var j=typeof Map=="function"?new Map:void 0;return y=function(me){if(me===null||!U(me))return me;if(typeof me!="function")throw new TypeError("Super expression must either be null or a function");if(typeof j<"u"){if(j.has(me))return j.get(me);j.set(me,ne)}function ne(){return I(me,arguments,N(this).constructor)}return ne.prototype=Object.create(me.prototype,{constructor:{value:ne,enumerable:!1,writable:!0,configurable:!0}}),F(ne,me)},y(te)}function I(te,j,ue){return R()?I=Reflect.construct.bind():I=function(ne,G,Q){var J=[null];J.push.apply(J,G);var ve=Function.bind.apply(ne,J),Ae=new ve;return Q&&F(Ae,Q.prototype),Ae},I.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(te){return Function.toString.call(te).indexOf("[native code]")!==-1}function F(te,j){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(me,ne){return me.__proto__=ne,me},F(te,j)}function N(te){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ue){return ue.__proto__||Object.getPrototypeOf(ue)},N(te)}function B(te){"@babel/helpers - typeof";return B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},B(te)}var M=ip(),H=M.inspect,k=q4(),X=k.codes.ERR_INVALID_ARG_TYPE;function re(te,j,ue){return(ue===void 0||ue>te.length)&&(ue=te.length),te.substring(ue-j.length,ue)===j}function ie(te,j){if(j=Math.floor(j),te.length==0||j==0)return"";var ue=te.length*j;for(j=Math.floor(Math.log(j)/Math.log(2));j;)te+=te,j--;return te+=te.substring(0,ue-te.length),te}var O="",P="",L="",q="",oe={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:"},ge=10;function Ee(te){var j=Object.keys(te),ue=Object.create(Object.getPrototypeOf(te));return j.forEach(function(me){ue[me]=te[me]}),Object.defineProperty(ue,"message",{value:te.message}),ue}function D(te){return H(te,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function fe(te,j,ue){var me="",ne="",G=0,Q="",J=!1,ve=D(te),Ae=ve.split(`
309
- `),V=D(j).split(`
310
- `),w=0,$="";if(ue==="strictEqual"&&B(te)==="object"&&B(j)==="object"&&te!==null&&j!==null&&(ue="strictEqualObject"),Ae.length===1&&V.length===1&&Ae[0]!==V[0]){var Y=Ae[0].length+V[0].length;if(Y<=ge){if((B(te)!=="object"||te===null)&&(B(j)!=="object"||j===null)&&(te!==0||j!==0))return"".concat(oe[ue],`
311
-
312
- `)+"".concat(Ae[0]," !== ").concat(V[0],`
313
- `)}else if(ue!=="strictEqualObject"){var W=Dt.stderr&&Dt.stderr.isTTY?Dt.stderr.columns:80;if(Y<W){for(;Ae[0][w]===V[0][w];)w++;w>2&&($=`
314
- `.concat(ie(" ",w),"^"),w=0)}}}for(var de=Ae[Ae.length-1],pe=V[V.length-1];de===pe&&(w++<2?Q=`
315
- `.concat(de).concat(Q):me=de,Ae.pop(),V.pop(),!(Ae.length===0||V.length===0));)de=Ae[Ae.length-1],pe=V[V.length-1];var E=Math.max(Ae.length,V.length);if(E===0){var g=ve.split(`
316
- `);if(g.length>30)for(g[26]="".concat(O,"...").concat(q);g.length>27;)g.pop();return"".concat(oe.notIdentical,`
317
-
318
- `).concat(g.join(`
319
- `),`
320
- `)}w>3&&(Q=`
321
- `.concat(O,"...").concat(q).concat(Q),J=!0),me!==""&&(Q=`
322
- `.concat(me).concat(Q),me="");var b=0,C=oe[ue]+`
323
- `.concat(P,"+ actual").concat(q," ").concat(L,"- expected").concat(q),K=" ".concat(O,"...").concat(q," Lines skipped");for(w=0;w<E;w++){var xe=w-G;if(Ae.length<w+1)xe>1&&w>2&&(xe>4?(ne+=`
324
- `.concat(O,"...").concat(q),J=!0):xe>3&&(ne+=`
325
- `.concat(V[w-2]),b++),ne+=`
326
- `.concat(V[w-1]),b++),G=w,me+=`
327
- `.concat(L,"-").concat(q," ").concat(V[w]),b++;else if(V.length<w+1)xe>1&&w>2&&(xe>4?(ne+=`
328
- `.concat(O,"...").concat(q),J=!0):xe>3&&(ne+=`
329
- `.concat(Ae[w-2]),b++),ne+=`
330
- `.concat(Ae[w-1]),b++),G=w,ne+=`
331
- `.concat(P,"+").concat(q," ").concat(Ae[w]),b++;else{var Re=V[w],ze=Ae[w],ce=ze!==Re&&(!re(ze,",")||ze.slice(0,-1)!==Re);ce&&re(Re,",")&&Re.slice(0,-1)===ze&&(ce=!1,ze+=","),ce?(xe>1&&w>2&&(xe>4?(ne+=`
332
- `.concat(O,"...").concat(q),J=!0):xe>3&&(ne+=`
333
- `.concat(Ae[w-2]),b++),ne+=`
334
- `.concat(Ae[w-1]),b++),G=w,ne+=`
335
- `.concat(P,"+").concat(q," ").concat(ze),me+=`
336
- `.concat(L,"-").concat(q," ").concat(Re),b+=2):(ne+=me,me="",(xe===1||w===0)&&(ne+=`
337
- `.concat(ze),b++))}if(b>20&&w<E-2)return"".concat(C).concat(K,`
338
- `).concat(ne,`
339
- `).concat(O,"...").concat(q).concat(me,`
340
- `)+"".concat(O,"...").concat(q)}return"".concat(C).concat(J?K:"",`
341
- `).concat(ne).concat(me).concat(Q).concat($)}var be=(function(te,j){h(me,te);var ue=m(me);function me(ne){var G;if(a(this,me),B(ne)!=="object"||ne===null)throw new X("options","Object",ne);var Q=ne.message,J=ne.operator,ve=ne.stackStartFn,Ae=ne.actual,V=ne.expected,w=Error.stackTraceLimit;if(Error.stackTraceLimit=0,Q!=null)G=ue.call(this,String(Q));else if(Dt.stderr&&Dt.stderr.isTTY&&(Dt.stderr&&Dt.stderr.getColorDepth&&Dt.stderr.getColorDepth()!==1?(O="\x1B[34m",P="\x1B[32m",q="\x1B[39m",L="\x1B[31m"):(O="",P="",q="",L="")),B(Ae)==="object"&&Ae!==null&&B(V)==="object"&&V!==null&&"stack"in Ae&&Ae instanceof Error&&"stack"in V&&V instanceof Error&&(Ae=Ee(Ae),V=Ee(V)),J==="deepStrictEqual"||J==="strictEqual")G=ue.call(this,fe(Ae,V,J));else if(J==="notDeepStrictEqual"||J==="notStrictEqual"){var $=oe[J],Y=D(Ae).split(`
342
- `);if(J==="notStrictEqual"&&B(Ae)==="object"&&Ae!==null&&($=oe.notStrictEqualObject),Y.length>30)for(Y[26]="".concat(O,"...").concat(q);Y.length>27;)Y.pop();Y.length===1?G=ue.call(this,"".concat($," ").concat(Y[0])):G=ue.call(this,"".concat($,`
343
-
344
- `).concat(Y.join(`
345
- `),`
346
- `))}else{var W=D(Ae),de="",pe=oe[J];J==="notDeepEqual"||J==="notEqual"?(W="".concat(oe[J],`
347
-
348
- `).concat(W),W.length>1024&&(W="".concat(W.slice(0,1021),"..."))):(de="".concat(D(V)),W.length>512&&(W="".concat(W.slice(0,509),"...")),de.length>512&&(de="".concat(de.slice(0,509),"...")),J==="deepEqual"||J==="equal"?W="".concat(pe,`
349
-
350
- `).concat(W,`
351
-
352
- should equal
353
-
354
- `):de=" ".concat(J," ").concat(de)),G=ue.call(this,"".concat(W).concat(de))}return Error.stackTraceLimit=w,G.generatedMessage=!Q,Object.defineProperty(A(G),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),G.code="ERR_ASSERTION",G.actual=Ae,G.expected=V,G.operator=J,Error.captureStackTrace&&Error.captureStackTrace(A(G),ve),G.stack,G.name="AssertionError",v(G)}return l(me,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:j,value:function(G,Q){return H(this,n(n({},Q),{},{customInspect:!1,depth:0}))}}]),me})(y(Error),H.custom);return Wv=be,Wv}var e1,Z6;function H4(){if(Z6)return e1;Z6=1;var e=Object.prototype.toString;return e1=function(i){var a=e.call(i),u=a==="[object Arguments]";return u||(u=a!=="[object Array]"&&i!==null&&typeof i=="object"&&typeof i.length=="number"&&i.length>=0&&e.call(i.callee)==="[object Function]"),u},e1}var t1,J6;function pZ(){if(J6)return t1;J6=1;var e;if(!Object.keys){var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=H4(),u=Object.prototype.propertyIsEnumerable,l=!u.call({toString:null},"toString"),f=u.call(function(){},"prototype"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(y){var I=y.constructor;return I&&I.prototype===y},m={$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},v=(function(){if(typeof window>"u")return!1;for(var y in window)try{if(!m["$"+y]&&n.call(window,y)&&window[y]!==null&&typeof window[y]=="object")try{h(window[y])}catch{return!0}}catch{return!0}return!1})(),A=function(y){if(typeof window>"u"||!v)return h(y);try{return h(y)}catch{return!1}};e=function(I){var R=I!==null&&typeof I=="object",U=i.call(I)==="[object Function]",F=a(I),N=R&&i.call(I)==="[object String]",B=[];if(!R&&!U&&!F)throw new TypeError("Object.keys called on a non-object");var M=f&&U;if(N&&I.length>0&&!n.call(I,0))for(var H=0;H<I.length;++H)B.push(String(H));if(F&&I.length>0)for(var k=0;k<I.length;++k)B.push(String(k));else for(var X in I)!(M&&X==="prototype")&&n.call(I,X)&&B.push(String(X));if(l)for(var re=A(I),ie=0;ie<p.length;++ie)!(re&&p[ie]==="constructor")&&n.call(I,p[ie])&&B.push(p[ie]);return B}}return t1=e,t1}var n1,W6;function z4(){if(W6)return n1;W6=1;var e=Array.prototype.slice,n=H4(),i=Object.keys,a=i?function(f){return i(f)}:pZ(),u=Object.keys;return a.shim=function(){if(Object.keys){var f=(function(){var p=Object.keys(arguments);return p&&p.length===arguments.length})(1,2);f||(Object.keys=function(h){return n(h)?u(e.call(h)):u(h)})}else Object.keys=a;return Object.keys||a},n1=a,n1}var r1,eB;function hZ(){if(eB)return r1;eB=1;var e=z4(),n=hI()(),i=Oc(),a=mI(),u=i("Array.prototype.push"),l=i("Object.prototype.propertyIsEnumerable"),f=n?a.getOwnPropertySymbols:null;return r1=function(h,m){if(h==null)throw new TypeError("target must be an object");var v=a(h);if(arguments.length===1)return v;for(var A=1;A<arguments.length;++A){var y=a(arguments[A]),I=e(y),R=n&&(a.getOwnPropertySymbols||f);if(R)for(var U=R(y),F=0;F<U.length;++F){var N=U[F];l(y,N)&&u(I,N)}for(var B=0;B<I.length;++B){var M=I[B];if(l(y,M)){var H=y[M];v[M]=H}}}return v},r1}var i1,tB;function mZ(){if(tB)return i1;tB=1;var e=hZ(),n=function(){if(!Object.assign)return!1;for(var a="abcdefghijklmnopqrst",u=a.split(""),l={},f=0;f<u.length;++f)l[u[f]]=u[f];var p=Object.assign({},l),h="";for(var m in p)h+=m;return a!==h},i=function(){if(!Object.assign||!Object.preventExtensions)return!1;var a=Object.preventExtensions({1:2});try{Object.assign(a,"xy")}catch{return a[1]==="y"}return!1};return i1=function(){return!Object.assign||n()||i()?e:Object.assign},i1}var o1,nB;function V4(){if(nB)return o1;nB=1;var e=function(n){return n!==n};return o1=function(i,a){return i===0&&a===0?1/i===1/a:!!(i===a||e(i)&&e(a))},o1}var a1,rB;function xI(){if(rB)return a1;rB=1;var e=V4();return a1=function(){return typeof Object.is=="function"?Object.is:e},a1}var s1,iB;function gZ(){if(iB)return s1;iB=1;var e=vI(),n=Zg(),i=n(e("String.prototype.indexOf"));return s1=function(u,l){var f=e(u,!!l);return typeof f=="function"&&i(u,".prototype.")>-1?n(f):f},s1}var u1,oB;function Jg(){if(oB)return u1;oB=1;var e=z4(),n=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",i=Object.prototype.toString,a=Array.prototype.concat,u=L4(),l=function(m){return typeof m=="function"&&i.call(m)==="[object Function]"},f=k4()(),p=function(m,v,A,y){if(v in m){if(y===!0){if(m[v]===A)return}else if(!l(y)||!y())return}f?u(m,v,A,!0):u(m,v,A)},h=function(m,v){var A=arguments.length>2?arguments[2]:{},y=e(v);n&&(y=a.call(y,Object.getOwnPropertySymbols(v)));for(var I=0;I<y.length;I+=1)p(m,y[I],v[y[I]],A[y[I]])};return h.supportsDescriptors=!!f,u1=h,u1}var l1,aB;function yZ(){if(aB)return l1;aB=1;var e=xI(),n=Jg();return l1=function(){var a=e();return n(Object,{is:a},{is:function(){return Object.is!==a}}),a},l1}var c1,sB;function bZ(){if(sB)return c1;sB=1;var e=Jg(),n=Zg(),i=V4(),a=xI(),u=yZ(),l=n(a(),Object);return e(l,{getPolyfill:a,implementation:i,shim:u}),c1=l,c1}var f1,uB;function G4(){return uB||(uB=1,f1=function(n){return n!==n}),f1}var d1,lB;function Q4(){if(lB)return d1;lB=1;var e=G4();return d1=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:e},d1}var p1,cB;function AZ(){if(cB)return p1;cB=1;var e=Jg(),n=Q4();return p1=function(){var a=n();return e(Number,{isNaN:a},{isNaN:function(){return Number.isNaN!==a}}),a},p1}var h1,fB;function vZ(){if(fB)return h1;fB=1;var e=Zg(),n=Jg(),i=G4(),a=Q4(),u=AZ(),l=e(a(),Number);return n(l,{getPolyfill:a,implementation:i,shim:u}),h1=l,h1}var m1,dB;function xZ(){if(dB)return m1;dB=1;function e(ce,le){return l(ce)||u(ce,le)||i(ce,le)||n()}function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
355
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(ce,le){if(ce){if(typeof ce=="string")return a(ce,le);var Ce=Object.prototype.toString.call(ce).slice(8,-1);if(Ce==="Object"&&ce.constructor&&(Ce=ce.constructor.name),Ce==="Map"||Ce==="Set")return Array.from(ce);if(Ce==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ce))return a(ce,le)}}function a(ce,le){(le==null||le>ce.length)&&(le=ce.length);for(var Ce=0,Me=new Array(le);Ce<le;Ce++)Me[Ce]=ce[Ce];return Me}function u(ce,le){var Ce=ce==null?null:typeof Symbol<"u"&&ce[Symbol.iterator]||ce["@@iterator"];if(Ce!=null){var Me,Le,tt,Ze,ot=[],at=!0,ct=!1;try{if(tt=(Ce=Ce.call(ce)).next,le!==0)for(;!(at=(Me=tt.call(Ce)).done)&&(ot.push(Me.value),ot.length!==le);at=!0);}catch(ut){ct=!0,Le=ut}finally{try{if(!at&&Ce.return!=null&&(Ze=Ce.return(),Object(Ze)!==Ze))return}finally{if(ct)throw Le}}return ot}}function l(ce){if(Array.isArray(ce))return ce}function f(ce){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(le){return typeof le}:function(le){return le&&typeof Symbol=="function"&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le},f(ce)}var p=/a/g.flags!==void 0,h=function(le){var Ce=[];return le.forEach(function(Me){return Ce.push(Me)}),Ce},m=function(le){var Ce=[];return le.forEach(function(Me,Le){return Ce.push([Le,Me])}),Ce},v=Object.is?Object.is:bZ(),A=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},y=Number.isNaN?Number.isNaN:vZ();function I(ce){return ce.call.bind(ce)}var R=I(Object.prototype.hasOwnProperty),U=I(Object.prototype.propertyIsEnumerable),F=I(Object.prototype.toString),N=ip().types,B=N.isAnyArrayBuffer,M=N.isArrayBufferView,H=N.isDate,k=N.isMap,X=N.isRegExp,re=N.isSet,ie=N.isNativeError,O=N.isBoxedPrimitive,P=N.isNumberObject,L=N.isStringObject,q=N.isBooleanObject,oe=N.isBigIntObject,ge=N.isSymbolObject,Ee=N.isFloat32Array,D=N.isFloat64Array;function fe(ce){if(ce.length===0||ce.length>10)return!0;for(var le=0;le<ce.length;le++){var Ce=ce.charCodeAt(le);if(Ce<48||Ce>57)return!0}return ce.length===10&&ce>=Math.pow(2,32)}function be(ce){return Object.keys(ce).filter(fe).concat(A(ce).filter(Object.prototype.propertyIsEnumerable.bind(ce)))}/*!
356
- * The buffer module from node.js, for the browser.
357
- *
358
- * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
359
- * @license MIT
360
- */function te(ce,le){if(ce===le)return 0;for(var Ce=ce.length,Me=le.length,Le=0,tt=Math.min(Ce,Me);Le<tt;++Le)if(ce[Le]!==le[Le]){Ce=ce[Le],Me=le[Le];break}return Ce<Me?-1:Me<Ce?1:0}var j=!0,ue=!1,me=0,ne=1,G=2,Q=3;function J(ce,le){return p?ce.source===le.source&&ce.flags===le.flags:RegExp.prototype.toString.call(ce)===RegExp.prototype.toString.call(le)}function ve(ce,le){if(ce.byteLength!==le.byteLength)return!1;for(var Ce=0;Ce<ce.byteLength;Ce++)if(ce[Ce]!==le[Ce])return!1;return!0}function Ae(ce,le){return ce.byteLength!==le.byteLength?!1:te(new Uint8Array(ce.buffer,ce.byteOffset,ce.byteLength),new Uint8Array(le.buffer,le.byteOffset,le.byteLength))===0}function V(ce,le){return ce.byteLength===le.byteLength&&te(new Uint8Array(ce),new Uint8Array(le))===0}function w(ce,le){return P(ce)?P(le)&&v(Number.prototype.valueOf.call(ce),Number.prototype.valueOf.call(le)):L(ce)?L(le)&&String.prototype.valueOf.call(ce)===String.prototype.valueOf.call(le):q(ce)?q(le)&&Boolean.prototype.valueOf.call(ce)===Boolean.prototype.valueOf.call(le):oe(ce)?oe(le)&&BigInt.prototype.valueOf.call(ce)===BigInt.prototype.valueOf.call(le):ge(le)&&Symbol.prototype.valueOf.call(ce)===Symbol.prototype.valueOf.call(le)}function $(ce,le,Ce,Me){if(ce===le)return ce!==0?!0:Ce?v(ce,le):!0;if(Ce){if(f(ce)!=="object")return typeof ce=="number"&&y(ce)&&y(le);if(f(le)!=="object"||ce===null||le===null||Object.getPrototypeOf(ce)!==Object.getPrototypeOf(le))return!1}else{if(ce===null||f(ce)!=="object")return le===null||f(le)!=="object"?ce==le:!1;if(le===null||f(le)!=="object")return!1}var Le=F(ce),tt=F(le);if(Le!==tt)return!1;if(Array.isArray(ce)){if(ce.length!==le.length)return!1;var Ze=be(ce),ot=be(le);return Ze.length!==ot.length?!1:W(ce,le,Ce,Me,ne,Ze)}if(Le==="[object Object]"&&(!k(ce)&&k(le)||!re(ce)&&re(le)))return!1;if(H(ce)){if(!H(le)||Date.prototype.getTime.call(ce)!==Date.prototype.getTime.call(le))return!1}else if(X(ce)){if(!X(le)||!J(ce,le))return!1}else if(ie(ce)||ce instanceof Error){if(ce.message!==le.message||ce.name!==le.name)return!1}else if(M(ce)){if(!Ce&&(Ee(ce)||D(ce))){if(!ve(ce,le))return!1}else if(!Ae(ce,le))return!1;var at=be(ce),ct=be(le);return at.length!==ct.length?!1:W(ce,le,Ce,Me,me,at)}else{if(re(ce))return!re(le)||ce.size!==le.size?!1:W(ce,le,Ce,Me,G);if(k(ce))return!k(le)||ce.size!==le.size?!1:W(ce,le,Ce,Me,Q);if(B(ce)){if(!V(ce,le))return!1}else if(O(ce)&&!w(ce,le))return!1}return W(ce,le,Ce,Me,me)}function Y(ce,le){return le.filter(function(Ce){return U(ce,Ce)})}function W(ce,le,Ce,Me,Le,tt){if(arguments.length===5){tt=Object.keys(ce);var Ze=Object.keys(le);if(tt.length!==Ze.length)return!1}for(var ot=0;ot<tt.length;ot++)if(!R(le,tt[ot]))return!1;if(Ce&&arguments.length===5){var at=A(ce);if(at.length!==0){var ct=0;for(ot=0;ot<at.length;ot++){var ut=at[ot];if(U(ce,ut)){if(!U(le,ut))return!1;tt.push(ut),ct++}else if(U(le,ut))return!1}var bt=A(le);if(at.length!==bt.length&&Y(le,bt).length!==ct)return!1}else{var wt=A(le);if(wt.length!==0&&Y(le,wt).length!==0)return!1}}if(tt.length===0&&(Le===me||Le===ne&&ce.length===0||ce.size===0))return!0;if(Me===void 0)Me={val1:new Map,val2:new Map,position:0};else{var _=Me.val1.get(ce);if(_!==void 0){var he=Me.val2.get(le);if(he!==void 0)return _===he}Me.position++}Me.val1.set(ce,Me.position),Me.val2.set(le,Me.position);var _e=xe(ce,le,Ce,tt,Me,Le);return Me.val1.delete(ce),Me.val2.delete(le),_e}function de(ce,le,Ce,Me){for(var Le=h(ce),tt=0;tt<Le.length;tt++){var Ze=Le[tt];if($(le,Ze,Ce,Me))return ce.delete(Ze),!0}return!1}function pe(ce){switch(f(ce)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":ce=+ce;case"number":if(y(ce))return!1}return!0}function E(ce,le,Ce){var Me=pe(Ce);return Me??(le.has(Me)&&!ce.has(Me))}function g(ce,le,Ce,Me,Le){var tt=pe(Ce);if(tt!=null)return tt;var Ze=le.get(tt);return Ze===void 0&&!le.has(tt)||!$(Me,Ze,!1,Le)?!1:!ce.has(tt)&&$(Me,Ze,!1,Le)}function b(ce,le,Ce,Me){for(var Le=null,tt=h(ce),Ze=0;Ze<tt.length;Ze++){var ot=tt[Ze];if(f(ot)==="object"&&ot!==null)Le===null&&(Le=new Set),Le.add(ot);else if(!le.has(ot)){if(Ce||!E(ce,le,ot))return!1;Le===null&&(Le=new Set),Le.add(ot)}}if(Le!==null){for(var at=h(le),ct=0;ct<at.length;ct++){var ut=at[ct];if(f(ut)==="object"&&ut!==null){if(!de(Le,ut,Ce,Me))return!1}else if(!Ce&&!ce.has(ut)&&!de(Le,ut,Ce,Me))return!1}return Le.size===0}return!0}function C(ce,le,Ce,Me,Le,tt){for(var Ze=h(ce),ot=0;ot<Ze.length;ot++){var at=Ze[ot];if($(Ce,at,Le,tt)&&$(Me,le.get(at),Le,tt))return ce.delete(at),!0}return!1}function K(ce,le,Ce,Me){for(var Le=null,tt=m(ce),Ze=0;Ze<tt.length;Ze++){var ot=e(tt[Ze],2),at=ot[0],ct=ot[1];if(f(at)==="object"&&at!==null)Le===null&&(Le=new Set),Le.add(at);else{var ut=le.get(at);if(ut===void 0&&!le.has(at)||!$(ct,ut,Ce,Me)){if(Ce||!g(ce,le,at,ct,Me))return!1;Le===null&&(Le=new Set),Le.add(at)}}}if(Le!==null){for(var bt=m(le),wt=0;wt<bt.length;wt++){var _=e(bt[wt],2),he=_[0],_e=_[1];if(f(he)==="object"&&he!==null){if(!C(Le,ce,he,_e,Ce,Me))return!1}else if(!Ce&&(!ce.has(he)||!$(ce.get(he),_e,!1,Me))&&!C(Le,ce,he,_e,!1,Me))return!1}return Le.size===0}return!0}function xe(ce,le,Ce,Me,Le,tt){var Ze=0;if(tt===G){if(!b(ce,le,Ce,Le))return!1}else if(tt===Q){if(!K(ce,le,Ce,Le))return!1}else if(tt===ne)for(;Ze<ce.length;Ze++)if(R(ce,Ze)){if(!R(le,Ze)||!$(ce[Ze],le[Ze],Ce,Le))return!1}else{if(R(le,Ze))return!1;for(var ot=Object.keys(ce);Ze<ot.length;Ze++){var at=ot[Ze];if(!R(le,at)||!$(ce[at],le[at],Ce,Le))return!1}return ot.length===Object.keys(le).length}for(Ze=0;Ze<Me.length;Ze++){var ct=Me[Ze];if(!$(ce[ct],le[ct],Ce,Le))return!1}return!0}function Re(ce,le){return $(ce,le,ue)}function ze(ce,le){return $(ce,le,j)}return m1={isDeepEqual:Re,isDeepStrictEqual:ze},m1}var pB;function Jw(){if(pB)return ZA.exports;pB=1;function e(G){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Q){return typeof Q}:function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},e(G)}function n(G,Q,J){return Object.defineProperty(G,"prototype",{writable:!1}),G}function i(G,Q){if(!(G instanceof Q))throw new TypeError("Cannot call a class as a function")}var a=q4(),u=a.codes,l=u.ERR_AMBIGUOUS_ARGUMENT,f=u.ERR_INVALID_ARG_TYPE,p=u.ERR_INVALID_ARG_VALUE,h=u.ERR_INVALID_RETURN_VALUE,m=u.ERR_MISSING_ARGS,v=dZ(),A=ip(),y=A.inspect,I=ip().types,R=I.isPromise,U=I.isRegExp,F=mZ()(),N=xI()(),B=gZ()("RegExp.prototype.test"),M,H;function k(){var G=xZ();M=G.isDeepEqual,H=G.isDeepStrictEqual}var X=!1,re=ZA.exports=q,ie={};function O(G){throw G.message instanceof Error?G.message:new v(G)}function P(G,Q,J,ve,Ae){var V=arguments.length,w;if(V===0)w="Failed";else if(V===1)J=G,G=void 0;else{if(X===!1){X=!0;var $=Dt.emitWarning?Dt.emitWarning:console.warn.bind(console);$("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}V===2&&(ve="!=")}if(J instanceof Error)throw J;var Y={actual:G,expected:Q,operator:ve===void 0?"fail":ve,stackStartFn:Ae||P};J!==void 0&&(Y.message=J);var W=new v(Y);throw w&&(W.message=w,W.generatedMessage=!0),W}re.fail=P,re.AssertionError=v;function L(G,Q,J,ve){if(!J){var Ae=!1;if(Q===0)Ae=!0,ve="No value argument passed to `assert.ok()`";else if(ve instanceof Error)throw ve;var V=new v({actual:J,expected:!0,message:ve,operator:"==",stackStartFn:G});throw V.generatedMessage=Ae,V}}function q(){for(var G=arguments.length,Q=new Array(G),J=0;J<G;J++)Q[J]=arguments[J];L.apply(void 0,[q,Q.length].concat(Q))}re.ok=q,re.equal=function G(Q,J,ve){if(arguments.length<2)throw new m("actual","expected");Q!=J&&O({actual:Q,expected:J,message:ve,operator:"==",stackStartFn:G})},re.notEqual=function G(Q,J,ve){if(arguments.length<2)throw new m("actual","expected");Q==J&&O({actual:Q,expected:J,message:ve,operator:"!=",stackStartFn:G})},re.deepEqual=function G(Q,J,ve){if(arguments.length<2)throw new m("actual","expected");M===void 0&&k(),M(Q,J)||O({actual:Q,expected:J,message:ve,operator:"deepEqual",stackStartFn:G})},re.notDeepEqual=function G(Q,J,ve){if(arguments.length<2)throw new m("actual","expected");M===void 0&&k(),M(Q,J)&&O({actual:Q,expected:J,message:ve,operator:"notDeepEqual",stackStartFn:G})},re.deepStrictEqual=function G(Q,J,ve){if(arguments.length<2)throw new m("actual","expected");M===void 0&&k(),H(Q,J)||O({actual:Q,expected:J,message:ve,operator:"deepStrictEqual",stackStartFn:G})},re.notDeepStrictEqual=oe;function oe(G,Q,J){if(arguments.length<2)throw new m("actual","expected");M===void 0&&k(),H(G,Q)&&O({actual:G,expected:Q,message:J,operator:"notDeepStrictEqual",stackStartFn:oe})}re.strictEqual=function G(Q,J,ve){if(arguments.length<2)throw new m("actual","expected");N(Q,J)||O({actual:Q,expected:J,message:ve,operator:"strictEqual",stackStartFn:G})},re.notStrictEqual=function G(Q,J,ve){if(arguments.length<2)throw new m("actual","expected");N(Q,J)&&O({actual:Q,expected:J,message:ve,operator:"notStrictEqual",stackStartFn:G})};var ge=n(function G(Q,J,ve){var Ae=this;i(this,G),J.forEach(function(V){V in Q&&(ve!==void 0&&typeof ve[V]=="string"&&U(Q[V])&&B(Q[V],ve[V])?Ae[V]=ve[V]:Ae[V]=Q[V])})});function Ee(G,Q,J,ve,Ae,V){if(!(J in G)||!H(G[J],Q[J])){if(!ve){var w=new ge(G,Ae),$=new ge(Q,Ae,G),Y=new v({actual:w,expected:$,operator:"deepStrictEqual",stackStartFn:V});throw Y.actual=G,Y.expected=Q,Y.operator=V.name,Y}O({actual:G,expected:Q,message:ve,operator:V.name,stackStartFn:V})}}function D(G,Q,J,ve){if(typeof Q!="function"){if(U(Q))return B(Q,G);if(arguments.length===2)throw new f("expected",["Function","RegExp"],Q);if(e(G)!=="object"||G===null){var Ae=new v({actual:G,expected:Q,message:J,operator:"deepStrictEqual",stackStartFn:ve});throw Ae.operator=ve.name,Ae}var V=Object.keys(Q);if(Q instanceof Error)V.push("name","message");else if(V.length===0)throw new p("error",Q,"may not be an empty object");return M===void 0&&k(),V.forEach(function(w){typeof G[w]=="string"&&U(Q[w])&&B(Q[w],G[w])||Ee(G,Q,w,J,V,ve)}),!0}return Q.prototype!==void 0&&G instanceof Q?!0:Error.isPrototypeOf(Q)?!1:Q.call({},G)===!0}function fe(G){if(typeof G!="function")throw new f("fn","Function",G);try{G()}catch(Q){return Q}return ie}function be(G){return R(G)||G!==null&&e(G)==="object"&&typeof G.then=="function"&&typeof G.catch=="function"}function te(G){return Promise.resolve().then(function(){var Q;if(typeof G=="function"){if(Q=G(),!be(Q))throw new h("instance of Promise","promiseFn",Q)}else if(be(G))Q=G;else throw new f("promiseFn",["Function","Promise"],G);return Promise.resolve().then(function(){return Q}).then(function(){return ie}).catch(function(J){return J})})}function j(G,Q,J,ve){if(typeof J=="string"){if(arguments.length===4)throw new f("error",["Object","Error","Function","RegExp"],J);if(e(Q)==="object"&&Q!==null){if(Q.message===J)throw new l("error/message",'The error message "'.concat(Q.message,'" is identical to the message.'))}else if(Q===J)throw new l("error/message",'The error "'.concat(Q,'" is identical to the message.'));ve=J,J=void 0}else if(J!=null&&e(J)!=="object"&&typeof J!="function")throw new f("error",["Object","Error","Function","RegExp"],J);if(Q===ie){var Ae="";J&&J.name&&(Ae+=" (".concat(J.name,")")),Ae+=ve?": ".concat(ve):".";var V=G.name==="rejects"?"rejection":"exception";O({actual:void 0,expected:J,operator:G.name,message:"Missing expected ".concat(V).concat(Ae),stackStartFn:G})}if(J&&!D(Q,J,ve,G))throw Q}function ue(G,Q,J,ve){if(Q!==ie){if(typeof J=="string"&&(ve=J,J=void 0),!J||D(Q,J)){var Ae=ve?": ".concat(ve):".",V=G.name==="doesNotReject"?"rejection":"exception";O({actual:Q,expected:J,operator:G.name,message:"Got unwanted ".concat(V).concat(Ae,`
361
- `)+'Actual message: "'.concat(Q&&Q.message,'"'),stackStartFn:G})}throw Q}}re.throws=function G(Q){for(var J=arguments.length,ve=new Array(J>1?J-1:0),Ae=1;Ae<J;Ae++)ve[Ae-1]=arguments[Ae];j.apply(void 0,[G,fe(Q)].concat(ve))},re.rejects=function G(Q){for(var J=arguments.length,ve=new Array(J>1?J-1:0),Ae=1;Ae<J;Ae++)ve[Ae-1]=arguments[Ae];return te(Q).then(function(V){return j.apply(void 0,[G,V].concat(ve))})},re.doesNotThrow=function G(Q){for(var J=arguments.length,ve=new Array(J>1?J-1:0),Ae=1;Ae<J;Ae++)ve[Ae-1]=arguments[Ae];ue.apply(void 0,[G,fe(Q)].concat(ve))},re.doesNotReject=function G(Q){for(var J=arguments.length,ve=new Array(J>1?J-1:0),Ae=1;Ae<J;Ae++)ve[Ae-1]=arguments[Ae];return te(Q).then(function(V){return ue.apply(void 0,[G,V].concat(ve))})},re.ifError=function G(Q){if(Q!=null){var J="ifError got unwanted exception: ";e(Q)==="object"&&typeof Q.message=="string"?Q.message.length===0&&Q.constructor?J+=Q.constructor.name:J+=Q.message:J+=y(Q);var ve=new v({actual:Q,expected:null,operator:"ifError",message:J,stackStartFn:G}),Ae=Q.stack;if(typeof Ae=="string"){var V=Ae.split(`
362
- `);V.shift();for(var w=ve.stack.split(`
363
- `),$=0;$<V.length;$++){var Y=w.indexOf(V[$]);if(Y!==-1){w=w.slice(0,Y);break}}ve.stack="".concat(w.join(`
364
- `),`
365
- `).concat(V.join(`
366
- `))}throw ve}};function me(G,Q,J,ve,Ae){if(!U(Q))throw new f("regexp","RegExp",Q);var V=Ae==="match";if(typeof G!="string"||B(Q,G)!==V){if(J instanceof Error)throw J;var w=!J;J=J||(typeof G!="string"?'The "string" argument must be of type string. Received type '+"".concat(e(G)," (").concat(y(G),")"):(V?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(y(Q),`. Input:
367
-
368
- `).concat(y(G),`
369
- `));var $=new v({actual:G,expected:Q,message:J,operator:Ae,stackStartFn:ve});throw $.generatedMessage=w,$}}re.match=function G(Q,J,ve){me(Q,J,ve,G,"match")},re.doesNotMatch=function G(Q,J,ve){me(Q,J,ve,G,"doesNotMatch")};function ne(){for(var G=arguments.length,Q=new Array(G),J=0;J<G;J++)Q[J]=arguments[J];L.apply(void 0,[ne,Q.length].concat(Q))}return re.strict=F(ne,re,{equal:re.strictEqual,deepEqual:re.deepStrictEqual,notEqual:re.notStrictEqual,notDeepEqual:re.notDeepStrictEqual}),re.strict.strict=re.strict,ZA.exports}var g1,hB;function EZ(){if(hB)return g1;hB=1;function e(n){if(n.length>=255)throw new TypeError("Alphabet too long");for(var i=new Uint8Array(256),a=0;a<i.length;a++)i[a]=255;for(var u=0;u<n.length;u++){var l=n.charAt(u),f=l.charCodeAt(0);if(i[f]!==255)throw new TypeError(l+" is ambiguous");i[f]=u}var p=n.length,h=n.charAt(0),m=Math.log(p)/Math.log(256),v=Math.log(256)/Math.log(p);function A(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,F=0,N=0,B=R.length;N!==B&&R[N]===0;)N++,U++;for(var M=(B-N)*v+1>>>0,H=new Uint8Array(M);N!==B;){for(var k=R[N],X=0,re=M-1;(k!==0||X<F)&&re!==-1;re--,X++)k+=256*H[re]>>>0,H[re]=k%p>>>0,k=k/p>>>0;if(k!==0)throw new Error("Non-zero carry");F=X,N++}for(var ie=M-F;ie!==M&&H[ie]===0;)ie++;for(var O=h.repeat(U);ie<M;++ie)O+=n.charAt(H[ie]);return O}function y(R){if(typeof R!="string")throw new TypeError("Expected String");if(R.length===0)return new Uint8Array;for(var U=0,F=0,N=0;R[U]===h;)F++,U++;for(var B=(R.length-U)*m+1>>>0,M=new Uint8Array(B);R[U];){var H=R.charCodeAt(U);if(H>255)return;var k=i[H];if(k===255)return;for(var X=0,re=B-1;(k!==0||X<N)&&re!==-1;re--,X++)k+=p*M[re]>>>0,M[re]=k%256>>>0,k=k/256>>>0;if(k!==0)throw new Error("Non-zero carry");N=X,U++}for(var ie=B-N;ie!==B&&M[ie]===0;)ie++;for(var O=new Uint8Array(F+(B-ie)),P=F;ie!==B;)O[P++]=M[ie++];return O}function I(R){var U=y(R);if(U)return U;throw new Error("Non-base"+p+" character")}return{encode:A,decodeUnsafe:y,decode:I}}return g1=e,g1}var sr={exports:{}},y1,mB;function Y4(){if(mB)return y1;mB=1,y1=n;class e extends Error{}e.prototype.name="AssertionError";function n(i,a){if(!i){var u=new e(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,n),u}}return y1}var qi={exports:{}},Mm={exports:{}},b1,gB;function wZ(){if(gB)return b1;gB=1;function e(a){return a.length}function n(a){const u=a.byteLength;let l="";for(let f=0;f<u;f++)l+=String.fromCharCode(a[f]);return l}function i(a,u,l=0,f=e(u)){const p=Math.min(f,a.byteLength-l);for(let h=0;h<p;h++)a[l+h]=u.charCodeAt(h);return p}return b1={byteLength:e,toString:n,write:i},b1}var A1,yB;function SZ(){if(yB)return A1;yB=1;const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256);for(let l=0;l<e.length;l++)n[e.charCodeAt(l)]=l;n[45]=62,n[95]=63;function i(l){let f=l.length;return l.charCodeAt(f-1)===61&&f--,f>1&&l.charCodeAt(f-1)===61&&f--,f*3>>>2}function a(l){const f=l.byteLength;let p="";for(let h=0;h<f;h+=3)p+=e[l[h]>>2]+e[(l[h]&3)<<4|l[h+1]>>4]+e[(l[h+1]&15)<<2|l[h+2]>>6]+e[l[h+2]&63];return f%3===2?p=p.substring(0,p.length-1)+"=":f%3===1&&(p=p.substring(0,p.length-2)+"=="),p}function u(l,f,p=0,h=i(f)){const m=Math.min(h,l.byteLength-p);for(let v=0,A=0;A<m;v+=4){const y=n[f.charCodeAt(v)],I=n[f.charCodeAt(v+1)],R=n[f.charCodeAt(v+2)],U=n[f.charCodeAt(v+3)];l[A++]=y<<2|I>>4,l[A++]=(I&15)<<4|R>>2,l[A++]=(R&3)<<6|U&63}return m}return A1={byteLength:i,toString:a,write:u},A1}var v1,bB;function IZ(){if(bB)return v1;bB=1;function e(u){return u.length>>>1}function n(u){const l=u.byteLength;u=new DataView(u.buffer,u.byteOffset,l);let f="",p=0;for(let h=l-l%4;p<h;p+=4)f+=u.getUint32(p).toString(16).padStart(8,"0");for(;p<l;p++)f+=u.getUint8(p).toString(16).padStart(2,"0");return f}function i(u,l,f=0,p=e(l)){const h=Math.min(p,u.byteLength-f);for(let m=0;m<h;m++){const v=a(l.charCodeAt(m*2)),A=a(l.charCodeAt(m*2+1));if(v===void 0||A===void 0)return u.subarray(0,m);u[f+m]=v<<4|A}return h}v1={byteLength:e,toString:n,write:i};function a(u){if(u>=48&&u<=57)return u-48;if(u>=65&&u<=70)return u-65+10;if(u>=97&&u<=102)return u-97+10}return v1}var x1,AB;function CZ(){if(AB)return x1;AB=1;function e(a){let u=0;for(let l=0,f=a.length;l<f;l++){const p=a.charCodeAt(l);if(p>=55296&&p<=56319&&l+1<f){const h=a.charCodeAt(l+1);if(h>=56320&&h<=57343){u+=4,l++;continue}}p<=127?u+=1:p<=2047?u+=2:u+=3}return u}let n;if(typeof TextDecoder<"u"){const a=new TextDecoder;n=function(l){return a.decode(l)}}else n=function(u){const l=u.byteLength;let f="",p=0;for(;p<l;){let h=u[p];if(h<=127){f+=String.fromCharCode(h),p++;continue}let m=0,v=0;if(h<=223?(m=1,v=h&31):h<=239?(m=2,v=h&15):h<=244&&(m=3,v=h&7),l-p-m>0){let A=0;for(;A<m;)h=u[p+A+1],v=v<<6|h&63,A+=1}else v=65533,m=l-p;f+=String.fromCodePoint(v),p+=m+1}return f};let i;if(typeof TextEncoder<"u"){const a=new TextEncoder;i=function(l,f,p=0,h=e(f)){const m=Math.min(h,l.byteLength-p);return a.encodeInto(f,l.subarray(p,p+m)),m}}else i=function(u,l,f=0,p=e(l)){const h=Math.min(p,u.byteLength-f);u=u.subarray(f,f+h);let m=0,v=0;for(;m<l.length;){const A=l.codePointAt(m);if(A<=127){u[v++]=A,m++;continue}let y=0,I=0;for(A<=2047?(y=6,I=192):A<=65535?(y=12,I=224):A<=2097151&&(y=18,I=240),u[v++]=I|A>>y,y-=6;y>=0;)u[v++]=128|A>>y&63,y-=6;m+=A>=65536?2:1}return h};return x1={byteLength:e,toString:n,write:i},x1}var E1,vB;function TZ(){if(vB)return E1;vB=1;function e(a){return a.length*2}function n(a){const u=a.byteLength;let l="";for(let f=0;f<u-1;f+=2)l+=String.fromCharCode(a[f]+a[f+1]*256);return l}function i(a,u,l=0,f=e(u)){const p=Math.min(f,a.byteLength-l);let h=p;for(let m=0;m<u.length&&!((h-=2)<0);++m){const v=u.charCodeAt(m),A=v>>8,y=v%256;a[l+m*2]=y,a[l+m*2+1]=A}return p}return E1={byteLength:e,toString:n,write:i},E1}var xB;function OZ(){return xB||(xB=1,(function(e,n){const i=wZ(),a=SZ(),u=IZ(),l=CZ(),f=TZ(),p=new Uint8Array(Uint16Array.of(255).buffer)[0]===255;function h(E){switch(E){case"ascii":return i;case"base64":return a;case"hex":return u;case"utf8":case"utf-8":case void 0:case null:return l;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f;default:throw new Error(`Unknown encoding: ${E}`)}}function m(E){return E instanceof Uint8Array}function v(E){try{return h(E),!0}catch{return!1}}function A(E,g,b){const C=new Uint8Array(E);return g!==void 0&&n.fill(C,g,0,C.byteLength,b),C}function y(E){return new Uint8Array(E)}function I(E){return new Uint8Array(E)}function R(E,g){return h(g).byteLength(E)}function U(E,g){if(E===g)return 0;const b=Math.min(E.byteLength,g.byteLength);E=new DataView(E.buffer,E.byteOffset,E.byteLength),g=new DataView(g.buffer,g.byteOffset,g.byteLength);let C=0;for(let K=b-b%4;C<K;C+=4){const xe=E.getUint32(C,p),Re=g.getUint32(C,p);if(xe!==Re)break}for(;C<b;C++){const K=E.getUint8(C),xe=g.getUint8(C);if(K<xe)return-1;if(K>xe)return 1}return E.byteLength>g.byteLength?1:E.byteLength<g.byteLength?-1:0}function F(E,g){g===void 0&&(g=E.reduce((K,xe)=>K+xe.byteLength,0));const b=new Uint8Array(g);let C=0;for(const K of E){if(C+K.byteLength>b.byteLength){const xe=K.subarray(0,b.byteLength-C);return b.set(xe,C),b}b.set(K,C),C+=K.byteLength}return b}function N(E,g,b=0,C=0,K=E.byteLength){if(K>0&&K<C||K===C||E.byteLength===0||g.byteLength===0)return 0;if(b<0)throw new RangeError("targetStart is out of range");if(C<0||C>=E.byteLength)throw new RangeError("sourceStart is out of range");if(K<0)throw new RangeError("sourceEnd is out of range");b>=g.byteLength&&(b=g.byteLength),K>E.byteLength&&(K=E.byteLength),g.byteLength-b<K-C&&(K=g.length-b+C);const xe=K-C;return E===g?g.copyWithin(b,C,K):g.set(E.subarray(C,K),b),xe}function B(E,g){if(E===g)return!0;if(E.byteLength!==g.byteLength)return!1;const b=E.byteLength;E=new DataView(E.buffer,E.byteOffset,E.byteLength),g=new DataView(g.buffer,g.byteOffset,g.byteLength);let C=0;for(let K=b-b%4;C<K;C+=4)if(E.getUint32(C,p)!==g.getUint32(C,p))return!1;for(;C<b;C++)if(E.getUint8(C)!==g.getUint8(C))return!1;return!0}function M(E,g,b,C,K){if(typeof g=="string"?typeof b=="string"?(K=b,b=0,C=E.byteLength):typeof C=="string"&&(K=C,C=E.byteLength):typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=+g),b<0||E.byteLength<b||E.byteLength<C)throw new RangeError("Out of range index");if(b===void 0&&(b=0),C===void 0&&(C=E.byteLength),C<=b)return E;if(g||(g=0),typeof g=="number")for(let xe=b;xe<C;++xe)E[xe]=g;else{g=m(g)?g:H(g,K);const xe=g.byteLength;for(let Re=0;Re<C-b;++Re)E[Re+b]=g[Re%xe]}return E}function H(E,g,b){return typeof E=="string"?k(E,g):Array.isArray(E)?X(E):ArrayBuffer.isView(E)?re(E):ie(E,g,b)}function k(E,g){const b=h(g),C=new Uint8Array(b.byteLength(E));return b.write(C,E,0,C.byteLength),C}function X(E){const g=new Uint8Array(E.length);return g.set(E),g}function re(E){const g=new Uint8Array(E.byteLength);return g.set(E),g}function ie(E,g,b){return new Uint8Array(E,g,b)}function O(E,g,b,C){return L(E,g,b,C)!==-1}function P(E,g,b,C,K){if(E.byteLength===0)return-1;if(typeof b=="string"?(C=b,b=0):b===void 0?b=K?0:E.length-1:b<0&&(b+=E.byteLength),b>=E.byteLength){if(K)return-1;b=E.byteLength-1}else if(b<0)if(K)b=0;else return-1;if(typeof g=="string")g=H(g,C);else if(typeof g=="number")return g=g&255,K?E.indexOf(g,b):E.lastIndexOf(g,b);if(g.byteLength===0)return-1;if(K){let xe=-1;for(let Re=b;Re<E.byteLength;Re++)if(E[Re]===g[xe===-1?0:Re-xe]){if(xe===-1&&(xe=Re),Re-xe+1===g.byteLength)return xe}else xe!==-1&&(Re-=Re-xe),xe=-1}else{b+g.byteLength>E.byteLength&&(b=E.byteLength-g.byteLength);for(let xe=b;xe>=0;xe--){let Re=!0;for(let ze=0;ze<g.byteLength;ze++)if(E[xe+ze]!==g[ze]){Re=!1;break}if(Re)return xe}}return-1}function L(E,g,b,C){return P(E,g,b,C,!0)}function q(E,g,b,C){return P(E,g,b,C,!1)}function oe(E,g,b){const C=E[g];E[g]=E[b],E[b]=C}function ge(E){const g=E.byteLength;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<g;b+=2)oe(E,b,b+1);return E}function Ee(E){const g=E.byteLength;if(g%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<g;b+=4)oe(E,b,b+3),oe(E,b+1,b+2);return E}function D(E){const g=E.byteLength;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<g;b+=8)oe(E,b,b+7),oe(E,b+1,b+6),oe(E,b+2,b+5),oe(E,b+3,b+4);return E}function fe(E){return E}function be(E,g,b=0,C=E.byteLength){const K=E.byteLength;return b>=K||C<=b?"":(b<0&&(b=0),C>K&&(C=K),(b!==0||C<K)&&(E=E.subarray(b,C)),h(g).toString(E))}function te(E,g,b,C,K){return b===void 0?K="utf8":C===void 0&&typeof b=="string"?(K=b,b=void 0):K===void 0&&typeof C=="string"&&(K=C,C=void 0),h(K).write(E,g,b,C)}function j(E,g,b){return b===void 0&&(b=0),new DataView(E.buffer,E.byteOffset,E.byteLength).setFloat64(b,g,!0),b+8}function ue(E,g,b){return b===void 0&&(b=0),new DataView(E.buffer,E.byteOffset,E.byteLength).setFloat32(b,g,!0),b+4}function me(E,g,b){return b===void 0&&(b=0),new DataView(E.buffer,E.byteOffset,E.byteLength).setUint32(b,g,!0),b+4}function ne(E,g,b){return b===void 0&&(b=0),new DataView(E.buffer,E.byteOffset,E.byteLength).setInt32(b,g,!0),b+4}function G(E,g){return g===void 0&&(g=0),new DataView(E.buffer,E.byteOffset,E.byteLength).getFloat64(g,!0)}function Q(E,g){return g===void 0&&(g=0),new DataView(E.buffer,E.byteOffset,E.byteLength).getFloat32(g,!0)}function J(E,g){return g===void 0&&(g=0),new DataView(E.buffer,E.byteOffset,E.byteLength).getUint32(g,!0)}function ve(E,g){return g===void 0&&(g=0),new DataView(E.buffer,E.byteOffset,E.byteLength).getInt32(g,!0)}function Ae(E,g,b){return b===void 0&&(b=0),new DataView(E.buffer,E.byteOffset,E.byteLength).setFloat64(b,g,!1),b+8}function V(E,g,b){return b===void 0&&(b=0),new DataView(E.buffer,E.byteOffset,E.byteLength).setFloat32(b,g,!1),b+4}function w(E,g,b){return b===void 0&&(b=0),new DataView(E.buffer,E.byteOffset,E.byteLength).setUint32(b,g,!1),b+4}function $(E,g,b){return b===void 0&&(b=0),new DataView(E.buffer,E.byteOffset,E.byteLength).setInt32(b,g,!1),b+4}function Y(E,g){return g===void 0&&(g=0),new DataView(E.buffer,E.byteOffset,E.byteLength).getFloat64(g,!1)}function W(E,g){return g===void 0&&(g=0),new DataView(E.buffer,E.byteOffset,E.byteLength).getFloat32(g,!1)}function de(E,g){return g===void 0&&(g=0),new DataView(E.buffer,E.byteOffset,E.byteLength).getUint32(g,!1)}function pe(E,g){return g===void 0&&(g=0),new DataView(E.buffer,E.byteOffset,E.byteLength).getInt32(g,!1)}e.exports=n={isBuffer:m,isEncoding:v,alloc:A,allocUnsafe:y,allocUnsafeSlow:I,byteLength:R,compare:U,concat:F,copy:N,equals:B,fill:M,from:H,includes:O,indexOf:L,lastIndexOf:q,swap16:ge,swap32:Ee,swap64:D,toBuffer:fe,toString:be,write:te,writeDoubleLE:j,writeFloatLE:ue,writeUInt32LE:me,writeInt32LE:ne,readDoubleLE:G,readFloatLE:Q,readUInt32LE:J,readInt32LE:ve,writeDoubleBE:Ae,writeFloatBE:V,writeUInt32BE:w,writeInt32BE:$,readDoubleBE:Y,readFloatBE:W,readUInt32BE:de,readInt32BE:pe}})(Mm,Mm.exports)),Mm.exports}var w1,EB;function RZ(){if(EB)return w1;EB=1;var e=(l,f)=>function(){return f||(0,l[Object.keys(l)[0]])((f={exports:{}}).exports,f),f.exports},n=(()=>{for(var l=new Uint8Array(128),f=0;f<64;f++)l[f<26?f+65:f<52?f+71:f<62?f-4:f*4-205]=f;return p=>{for(var h=p.length,m=new Uint8Array((h-(p[h-1]=="=")-(p[h-2]=="="))*3/4|0),v=0,A=0;v<h;){var y=l[p.charCodeAt(v++)],I=l[p.charCodeAt(v++)],R=l[p.charCodeAt(v++)],U=l[p.charCodeAt(v++)];m[A++]=y<<2|I>>4,m[A++]=I<<4|R>>2,m[A++]=R<<6|U}return m}})(),i=e({"wasm-binary:./blake2b.wat"(l,f){f.exports=n("AGFzbQEAAAABEANgAn9/AGADf39/AGABfwADBQQAAQICBQUBAQroBwdNBQZtZW1vcnkCAAxibGFrZTJiX2luaXQAAA5ibGFrZTJiX3VwZGF0ZQABDWJsYWtlMmJfZmluYWwAAhBibGFrZTJiX2NvbXByZXNzAAMKvz8EwAIAIABCADcDACAAQgA3AwggAEIANwMQIABCADcDGCAAQgA3AyAgAEIANwMoIABCADcDMCAAQgA3AzggAEIANwNAIABCADcDSCAAQgA3A1AgAEIANwNYIABCADcDYCAAQgA3A2ggAEIANwNwIABCADcDeCAAQoiS853/zPmE6gBBACkDAIU3A4ABIABCu86qptjQ67O7f0EIKQMAhTcDiAEgAEKr8NP0r+68tzxBECkDAIU3A5ABIABC8e30+KWn/aelf0EYKQMAhTcDmAEgAELRhZrv+s+Uh9EAQSApAwCFNwOgASAAQp/Y+dnCkdqCm39BKCkDAIU3A6gBIABC6/qG2r+19sEfQTApAwCFNwOwASAAQvnC+JuRo7Pw2wBBOCkDAIU3A7gBIABCADcDwAEgAEIANwPIASAAQgA3A9ABC20BA38gAEHAAWohAyAAQcgBaiEEIAQpAwCnIQUCQANAIAEgAkYNASAFQYABRgRAIAMgAykDACAFrXw3AwBBACEFIAAQAwsgACAFaiABLQAAOgAAIAVBAWohBSABQQFqIQEMAAsLIAQgBa03AwALYQEDfyAAQcABaiEBIABByAFqIQIgASABKQMAIAIpAwB8NwMAIABCfzcD0AEgAikDAKchAwJAA0AgA0GAAUYNASAAIANqQQA6AAAgA0EBaiEDDAALCyACIAOtNwMAIAAQAwuqOwIgfgl/IABBgAFqISEgAEGIAWohIiAAQZABaiEjIABBmAFqISQgAEGgAWohJSAAQagBaiEmIABBsAFqIScgAEG4AWohKCAhKQMAIQEgIikDACECICMpAwAhAyAkKQMAIQQgJSkDACEFICYpAwAhBiAnKQMAIQcgKCkDACEIQoiS853/zPmE6gAhCUK7zqqm2NDrs7t/IQpCq/DT9K/uvLc8IQtC8e30+KWn/aelfyEMQtGFmu/6z5SH0QAhDUKf2PnZwpHagpt/IQ5C6/qG2r+19sEfIQ9C+cL4m5Gjs/DbACEQIAApAwAhESAAKQMIIRIgACkDECETIAApAxghFCAAKQMgIRUgACkDKCEWIAApAzAhFyAAKQM4IRggACkDQCEZIAApA0ghGiAAKQNQIRsgACkDWCEcIAApA2AhHSAAKQNoIR4gACkDcCEfIAApA3ghICANIAApA8ABhSENIA8gACkD0AGFIQ8gASAFIBF8fCEBIA0gAYVCIIohDSAJIA18IQkgBSAJhUIYiiEFIAEgBSASfHwhASANIAGFQhCKIQ0gCSANfCEJIAUgCYVCP4ohBSACIAYgE3x8IQIgDiAChUIgiiEOIAogDnwhCiAGIAqFQhiKIQYgAiAGIBR8fCECIA4gAoVCEIohDiAKIA58IQogBiAKhUI/iiEGIAMgByAVfHwhAyAPIAOFQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgFnx8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIIBd8fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAYfHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgGXx8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIBp8fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByAbfHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgHHx8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIIB18fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCAefHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgH3x8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFICB8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFIAEgBSAffHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgG3x8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBV8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiAZfHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgGnx8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHICB8fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCAefHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggF3x8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGIBJ8fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiAdfHwhASAQIAGFQhCKIRAgCyAQfCELIAYgC4VCP4ohBiACIAcgEXx8IQIgDSAChUIgiiENIAwgDXwhDCAHIAyFQhiKIQcgAiAHIBN8fCECIA0gAoVCEIohDSAMIA18IQwgByAMhUI/iiEHIAMgCCAcfHwhAyAOIAOFQiCKIQ4gCSAOfCEJIAggCYVCGIohCCADIAggGHx8IQMgDiADhUIQiiEOIAkgDnwhCSAIIAmFQj+KIQggBCAFIBZ8fCEEIA8gBIVCIIohDyAKIA98IQogBSAKhUIYiiEFIAQgBSAUfHwhBCAPIASFQhCKIQ8gCiAPfCEKIAUgCoVCP4ohBSABIAUgHHx8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFIBl8fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiAdfHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgEXx8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIBZ8fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByATfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggIHx8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIIB58fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiAbfHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgH3x8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHIBR8fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByAXfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggGHx8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIBJ8fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSAafHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgFXx8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgASAFIBh8fCEBIA0gAYVCIIohDSAJIA18IQkgBSAJhUIYiiEFIAEgBSAafHwhASANIAGFQhCKIQ0gCSANfCEJIAUgCYVCP4ohBSACIAYgFHx8IQIgDiAChUIgiiEOIAogDnwhCiAGIAqFQhiKIQYgAiAGIBJ8fCECIA4gAoVCEIohDiAKIA58IQogBiAKhUI/iiEGIAMgByAefHwhAyAPIAOFQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgHXx8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIIBx8fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAffHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgE3x8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIBd8fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByAWfHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgG3x8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIIBV8fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCARfHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgIHx8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFIBl8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFIAEgBSAafHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgEXx8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBZ8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiAYfHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgE3x8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHIBV8fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCAbfHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggIHx8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGIB98fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiASfHwhASAQIAGFQhCKIRAgCyAQfCELIAYgC4VCP4ohBiACIAcgHHx8IQIgDSAChUIgiiENIAwgDXwhDCAHIAyFQhiKIQcgAiAHIB18fCECIA0gAoVCEIohDSAMIA18IQwgByAMhUI/iiEHIAMgCCAXfHwhAyAOIAOFQiCKIQ4gCSAOfCEJIAggCYVCGIohCCADIAggGXx8IQMgDiADhUIQiiEOIAkgDnwhCSAIIAmFQj+KIQggBCAFIBR8fCEEIA8gBIVCIIohDyAKIA98IQogBSAKhUIYiiEFIAQgBSAefHwhBCAPIASFQhCKIQ8gCiAPfCEKIAUgCoVCP4ohBSABIAUgE3x8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFIB18fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiAXfHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgG3x8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIBF8fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByAcfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggGXx8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIIBR8fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiAVfHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgHnx8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHIBh8fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByAWfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggIHx8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIB98fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSASfHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgGnx8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgASAFIB18fCEBIA0gAYVCIIohDSAJIA18IQkgBSAJhUIYiiEFIAEgBSAWfHwhASANIAGFQhCKIQ0gCSANfCEJIAUgCYVCP4ohBSACIAYgEnx8IQIgDiAChUIgiiEOIAogDnwhCiAGIAqFQhiKIQYgAiAGICB8fCECIA4gAoVCEIohDiAKIA58IQogBiAKhUI/iiEGIAMgByAffHwhAyAPIAOFQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgHnx8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIIBV8fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAbfHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgEXx8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIBh8fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByAXfHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgFHx8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIIBp8fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCATfHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgGXx8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFIBx8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFIAEgBSAefHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgHHx8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBh8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiAffHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgHXx8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHIBJ8fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCAUfHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggGnx8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGIBZ8fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiARfHwhASAQIAGFQhCKIRAgCyAQfCELIAYgC4VCP4ohBiACIAcgIHx8IQIgDSAChUIgiiENIAwgDXwhDCAHIAyFQhiKIQcgAiAHIBV8fCECIA0gAoVCEIohDSAMIA18IQwgByAMhUI/iiEHIAMgCCAZfHwhAyAOIAOFQiCKIQ4gCSAOfCEJIAggCYVCGIohCCADIAggF3x8IQMgDiADhUIQiiEOIAkgDnwhCSAIIAmFQj+KIQggBCAFIBN8fCEEIA8gBIVCIIohDyAKIA98IQogBSAKhUIYiiEFIAQgBSAbfHwhBCAPIASFQhCKIQ8gCiAPfCEKIAUgCoVCP4ohBSABIAUgF3x8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFICB8fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiAffHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgGnx8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIBx8fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByAUfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggEXx8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIIBl8fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiAdfHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgE3x8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHIB58fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByAYfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggEnx8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIBV8fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSAbfHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgFnx8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgASAFIBt8fCEBIA0gAYVCIIohDSAJIA18IQkgBSAJhUIYiiEFIAEgBSATfHwhASANIAGFQhCKIQ0gCSANfCEJIAUgCYVCP4ohBSACIAYgGXx8IQIgDiAChUIgiiEOIAogDnwhCiAGIAqFQhiKIQYgAiAGIBV8fCECIA4gAoVCEIohDiAKIA58IQogBiAKhUI/iiEGIAMgByAYfHwhAyAPIAOFQiCKIQ8gCyAPfCELIAcgC4VCGIohByADIAcgF3x8IQMgDyADhUIQiiEPIAsgD3whCyAHIAuFQj+KIQcgBCAIIBJ8fCEEIBAgBIVCIIohECAMIBB8IQwgCCAMhUIYiiEIIAQgCCAWfHwhBCAQIASFQhCKIRAgDCAQfCEMIAggDIVCP4ohCCABIAYgIHx8IQEgECABhUIgiiEQIAsgEHwhCyAGIAuFQhiKIQYgASAGIBx8fCEBIBAgAYVCEIohECALIBB8IQsgBiALhUI/iiEGIAIgByAafHwhAiANIAKFQiCKIQ0gDCANfCEMIAcgDIVCGIohByACIAcgH3x8IQIgDSAChUIQiiENIAwgDXwhDCAHIAyFQj+KIQcgAyAIIBR8fCEDIA4gA4VCIIohDiAJIA58IQkgCCAJhUIYiiEIIAMgCCAdfHwhAyAOIAOFQhCKIQ4gCSAOfCEJIAggCYVCP4ohCCAEIAUgHnx8IQQgDyAEhUIgiiEPIAogD3whCiAFIAqFQhiKIQUgBCAFIBF8fCEEIA8gBIVCEIohDyAKIA98IQogBSAKhUI/iiEFIAEgBSARfHwhASANIAGFQiCKIQ0gCSANfCEJIAUgCYVCGIohBSABIAUgEnx8IQEgDSABhUIQiiENIAkgDXwhCSAFIAmFQj+KIQUgAiAGIBN8fCECIA4gAoVCIIohDiAKIA58IQogBiAKhUIYiiEGIAIgBiAUfHwhAiAOIAKFQhCKIQ4gCiAOfCEKIAYgCoVCP4ohBiADIAcgFXx8IQMgDyADhUIgiiEPIAsgD3whCyAHIAuFQhiKIQcgAyAHIBZ8fCEDIA8gA4VCEIohDyALIA98IQsgByALhUI/iiEHIAQgCCAXfHwhBCAQIASFQiCKIRAgDCAQfCEMIAggDIVCGIohCCAEIAggGHx8IQQgECAEhUIQiiEQIAwgEHwhDCAIIAyFQj+KIQggASAGIBl8fCEBIBAgAYVCIIohECALIBB8IQsgBiALhUIYiiEGIAEgBiAafHwhASAQIAGFQhCKIRAgCyAQfCELIAYgC4VCP4ohBiACIAcgG3x8IQIgDSAChUIgiiENIAwgDXwhDCAHIAyFQhiKIQcgAiAHIBx8fCECIA0gAoVCEIohDSAMIA18IQwgByAMhUI/iiEHIAMgCCAdfHwhAyAOIAOFQiCKIQ4gCSAOfCEJIAggCYVCGIohCCADIAggHnx8IQMgDiADhUIQiiEOIAkgDnwhCSAIIAmFQj+KIQggBCAFIB98fCEEIA8gBIVCIIohDyAKIA98IQogBSAKhUIYiiEFIAQgBSAgfHwhBCAPIASFQhCKIQ8gCiAPfCEKIAUgCoVCP4ohBSABIAUgH3x8IQEgDSABhUIgiiENIAkgDXwhCSAFIAmFQhiKIQUgASAFIBt8fCEBIA0gAYVCEIohDSAJIA18IQkgBSAJhUI/iiEFIAIgBiAVfHwhAiAOIAKFQiCKIQ4gCiAOfCEKIAYgCoVCGIohBiACIAYgGXx8IQIgDiAChUIQiiEOIAogDnwhCiAGIAqFQj+KIQYgAyAHIBp8fCEDIA8gA4VCIIohDyALIA98IQsgByALhUIYiiEHIAMgByAgfHwhAyAPIAOFQhCKIQ8gCyAPfCELIAcgC4VCP4ohByAEIAggHnx8IQQgECAEhUIgiiEQIAwgEHwhDCAIIAyFQhiKIQggBCAIIBd8fCEEIBAgBIVCEIohECAMIBB8IQwgCCAMhUI/iiEIIAEgBiASfHwhASAQIAGFQiCKIRAgCyAQfCELIAYgC4VCGIohBiABIAYgHXx8IQEgECABhUIQiiEQIAsgEHwhCyAGIAuFQj+KIQYgAiAHIBF8fCECIA0gAoVCIIohDSAMIA18IQwgByAMhUIYiiEHIAIgByATfHwhAiANIAKFQhCKIQ0gDCANfCEMIAcgDIVCP4ohByADIAggHHx8IQMgDiADhUIgiiEOIAkgDnwhCSAIIAmFQhiKIQggAyAIIBh8fCEDIA4gA4VCEIohDiAJIA58IQkgCCAJhUI/iiEIIAQgBSAWfHwhBCAPIASFQiCKIQ8gCiAPfCEKIAUgCoVCGIohBSAEIAUgFHx8IQQgDyAEhUIQiiEPIAogD3whCiAFIAqFQj+KIQUgISAhKQMAIAEgCYWFNwMAICIgIikDACACIAqFhTcDACAjICMpAwAgAyALhYU3AwAgJCAkKQMAIAQgDIWFNwMAICUgJSkDACAFIA2FhTcDACAmICYpAwAgBiAOhYU3AwAgJyAnKQMAIAcgD4WFNwMAICggKCkDACAIIBCFhTcDAAs=")}}),a=i(),u=WebAssembly.compile(a);return w1=async l=>(await WebAssembly.instantiate(await u,l)).exports,w1}var wB;function FZ(){if(wB)return qi.exports;wB=1;var e=Y4(),n=OZ(),i=null,a=typeof WebAssembly<"u"&&RZ()().then(R=>{i=R}),u=64,l=[];qi.exports=y;var f=qi.exports.BYTES_MIN=16,p=qi.exports.BYTES_MAX=64;qi.exports.BYTES=32;var h=qi.exports.KEYBYTES_MIN=16,m=qi.exports.KEYBYTES_MAX=64;qi.exports.KEYBYTES=32;var v=qi.exports.SALTBYTES=16,A=qi.exports.PERSONALBYTES=16;function y(R,U,F,N,B){if(!(this instanceof y))return new y(R,U,F,N,B);if(!i)throw new Error("WASM not loaded. Wait for Blake2b.ready(cb)");R||(R=32),B!==!0&&(e(R>=f,"digestLength must be at least "+f+", was given "+R),e(R<=p,"digestLength must be at most "+p+", was given "+R),U!=null&&(e(U instanceof Uint8Array,"key must be Uint8Array or Buffer"),e(U.length>=h,"key must be at least "+h+", was given "+U.length),e(U.length<=m,"key must be at least "+m+", was given "+U.length)),F!=null&&(e(F instanceof Uint8Array,"salt must be Uint8Array or Buffer"),e(F.length===v,"salt must be exactly "+v+", was given "+F.length)),N!=null&&(e(N instanceof Uint8Array,"personal must be Uint8Array or Buffer"),e(N.length===A,"personal must be exactly "+A+", was given "+N.length))),l.length||(l.push(u),u+=216),this.digestLength=R,this.finalized=!1,this.pointer=l.pop(),this._memory=new Uint8Array(i.memory.buffer),this._memory.fill(0,0,64),this._memory[0]=this.digestLength,this._memory[1]=U?U.length:0,this._memory[2]=1,this._memory[3]=1,F&&this._memory.set(F,32),N&&this._memory.set(N,48),this.pointer+216>this._memory.length&&this._realloc(this.pointer+216),i.blake2b_init(this.pointer,this.digestLength),U&&(this.update(U),this._memory.fill(0,u,u+U.length),this._memory[this.pointer+200]=128)}y.prototype._realloc=function(R){i.memory.grow(Math.max(0,Math.ceil(Math.abs(R-this._memory.length)/65536))),this._memory=new Uint8Array(i.memory.buffer)},y.prototype.update=function(R){return e(this.finalized===!1,"Hash instance finalized"),e(R instanceof Uint8Array,"input must be Uint8Array or Buffer"),u+R.length>this._memory.length&&this._realloc(u+R.length),this._memory.set(R,u),i.blake2b_update(this.pointer,u,u+R.length),this},y.prototype.digest=function(R){if(e(this.finalized===!1,"Hash instance finalized"),this.finalized=!0,l.push(this.pointer),i.blake2b_final(this.pointer),!R||R==="binary")return this._memory.slice(this.pointer+128,this.pointer+128+this.digestLength);if(typeof R=="string")return n.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},y.prototype.final=y.prototype.digest,y.WASM=i,y.SUPPORTED=typeof WebAssembly<"u",y.ready=function(R){return R||(R=I),a?a.then(()=>R(),R):R(new Error("WebAssembly not supported"))},y.prototype.ready=y.ready,y.prototype.getPartialHash=function(){return this._memory.slice(this.pointer,this.pointer+216)},y.prototype.setPartialHash=function(R){this._memory.set(R,this.pointer)};function I(){}return qi.exports}var SB;function NZ(){if(SB)return sr.exports;SB=1;var e=Y4(),n=FZ();function i(O,P,L){var q=O[P]+O[L],oe=O[P+1]+O[L+1];q>=4294967296&&oe++,O[P]=q,O[P+1]=oe}function a(O,P,L,q){var oe=O[P]+L;L<0&&(oe+=4294967296);var ge=O[P+1]+q;oe>=4294967296&&ge++,O[P]=oe,O[P+1]=ge}function u(O,P){return O[P]^O[P+1]<<8^O[P+2]<<16^O[P+3]<<24}function l(O,P,L,q,oe,ge){var Ee=v[oe],D=v[oe+1],fe=v[ge],be=v[ge+1];i(m,O,P),a(m,O,Ee,D);var te=m[q]^m[O],j=m[q+1]^m[O+1];m[q]=j,m[q+1]=te,i(m,L,q),te=m[P]^m[L],j=m[P+1]^m[L+1],m[P]=te>>>24^j<<8,m[P+1]=j>>>24^te<<8,i(m,O,P),a(m,O,fe,be),te=m[q]^m[O],j=m[q+1]^m[O+1],m[q]=te>>>16^j<<16,m[q+1]=j>>>16^te<<16,i(m,L,q),te=m[P]^m[L],j=m[P+1]^m[L+1],m[P]=j>>>31^te<<1,m[P+1]=te>>>31^j<<1}var f=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),p=[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],h=new Uint8Array(p.map(function(O){return O*2})),m=new Uint32Array(32),v=new Uint32Array(32);function A(O,P){var L=0;for(L=0;L<16;L++)m[L]=O.h[L],m[L+16]=f[L];for(m[24]=m[24]^O.t,m[25]=m[25]^O.t/4294967296,P&&(m[28]=~m[28],m[29]=~m[29]),L=0;L<32;L++)v[L]=u(O.b,4*L);for(L=0;L<12;L++)l(0,8,16,24,h[L*16+0],h[L*16+1]),l(2,10,18,26,h[L*16+2],h[L*16+3]),l(4,12,20,28,h[L*16+4],h[L*16+5]),l(6,14,22,30,h[L*16+6],h[L*16+7]),l(0,10,20,30,h[L*16+8],h[L*16+9]),l(2,12,22,24,h[L*16+10],h[L*16+11]),l(4,14,16,26,h[L*16+12],h[L*16+13]),l(6,8,18,28,h[L*16+14],h[L*16+15]);for(L=0;L<16;L++)O.h[L]=O.h[L]^m[L]^m[L+16]}var y=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function I(O,P,L,q){y.fill(0),this.b=new Uint8Array(128),this.h=new Uint32Array(16),this.t=0,this.c=0,this.outlen=O,y[0]=O,P&&(y[1]=P.length),y[2]=1,y[3]=1,L&&y.set(L,32),q&&y.set(q,48);for(var oe=0;oe<16;oe++)this.h[oe]=f[oe]^u(y,oe*4);P&&(R(this,P),this.c=128)}I.prototype.update=function(O){return e(O instanceof Uint8Array,"input must be Uint8Array or Buffer"),R(this,O),this},I.prototype.digest=function(O){var P=!O||O==="binary"||O==="hex"?new Uint8Array(this.outlen):O;return e(P instanceof Uint8Array,'out must be "binary", "hex", Uint8Array, or Buffer'),e(P.length>=this.outlen,"out must have at least outlen bytes of space"),U(this,P),O==="hex"?F(P):P},I.prototype.final=I.prototype.digest,I.ready=function(O){n.ready(function(){O()})};function R(O,P){for(var L=0;L<P.length;L++)O.c===128&&(O.t+=O.c,A(O,!1),O.c=0),O.b[O.c++]=P[L]}function U(O,P){for(O.t+=O.c;O.c<128;)O.b[O.c++]=0;A(O,!0);for(var L=0;L<O.outlen;L++)P[L]=O.h[L>>2]>>8*(L&3);return P}function F(O){for(var P="",L=0;L<O.length;L++)P+=N(O[L]);return P}function N(O){return O<16?"0"+O.toString(16):O.toString(16)}var B=I;sr.exports=function(P,L,q,oe,ge){return ge!==!0&&(e(P>=M,"outlen must be at least "+M+", was given "+P),e(P<=H,"outlen must be at most "+H+", was given "+P),L!=null&&(e(L instanceof Uint8Array,"key must be Uint8Array or Buffer"),e(L.length>=k,"key must be at least "+k+", was given "+L.length),e(L.length<=X,"key must be at most "+X+", was given "+L.length)),q!=null&&(e(q instanceof Uint8Array,"salt must be Uint8Array or Buffer"),e(q.length===re,"salt must be exactly "+re+", was given "+q.length)),oe!=null&&(e(oe instanceof Uint8Array,"personal must be Uint8Array or Buffer"),e(oe.length===ie,"personal must be exactly "+ie+", was given "+oe.length))),new B(P,L,q,oe)},sr.exports.ready=function(O){n.ready(function(){O()})},sr.exports.WASM_SUPPORTED=n.SUPPORTED,sr.exports.WASM_LOADED=!1;var M=sr.exports.BYTES_MIN=16,H=sr.exports.BYTES_MAX=64;sr.exports.BYTES=32;var k=sr.exports.KEYBYTES_MIN=16,X=sr.exports.KEYBYTES_MAX=64;sr.exports.KEYBYTES=32;var re=sr.exports.SALTBYTES=16,ie=sr.exports.PERSONALBYTES=16;return n.ready(function(O){O||(sr.exports.WASM_LOADED=!0,sr.exports=n)}),sr.exports}var IB;function DZ(){if(IB)return aa;IB=1;var e=aa&&aa.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(aa,"__esModule",{value:!0}),aa.encode=aa.decode=void 0;const n=e(Jw()),i=e(EZ()),a=e(NZ()),u=(0,i.default)("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),l=dn.Buffer.from("SS58PRE"),f=dn.Buffer.alloc(64);function p(A){let y=u.decodeUnsafe(A);if(y==null||y.length<3)throw v(A);let I=y[0],R,U;if(I<64)U=I,R=1;else if(I<128){let N=y[1],B=(I<<2|N>>6)&255,M=N&63;U=B|M<<8,R=2}else throw v(A);let F;switch(y.length-R){case 34:case 35:F=2;break;case 9:case 5:case 3:case 2:F=1;break;default:throw v(A)}m(y,F);for(let N=0;N<F;N++)if(f[N]!=y[y.length-F+N])throw v(A);return{prefix:U,bytes:y.subarray(R,y.length-F)}}aa.decode=p;function h(A){let y=A.prefix;(0,n.default)(Number.isInteger(y)&&y>=0&&y<16384,"invalid prefix");let I=A.bytes.length,R;switch(I){case 1:case 2:case 4:case 8:R=1;break;case 32:case 33:R=2;break;default:(0,n.default)(!1,"invalid address length")}let U,F;y<64?(U=dn.Buffer.allocUnsafe(1+R+I),U[0]=y,F=1):(U=dn.Buffer.allocUnsafe(2+R+I),U[0]=(y&252)>>2|64,U[1]=y>>8|(y&3)<<6,F=2),U.set(A.bytes,F),m(U,R);for(let N=0;N<R;N++)U[F+I+N]=f[N];return u.encode(U)}aa.encode=h;function m(A,y){let I=(0,a.default)(64);I.update(l),I.update(A.subarray(0,A.length-y)),I.digest(f)}function v(A){return new Error("Invalid ss58 address: "+A)}return aa}var BZ=DZ();function UZ(e){if(e.length>=255)throw new TypeError("Alphabet too long");const n=new Uint8Array(256);for(let m=0;m<n.length;m++)n[m]=255;for(let m=0;m<e.length;m++){const v=e.charAt(m),A=v.charCodeAt(0);if(n[A]!==255)throw new TypeError(v+" is ambiguous");n[A]=m}const i=e.length,a=e.charAt(0),u=Math.log(i)/Math.log(256),l=Math.log(256)/Math.log(i);function f(m){if(m instanceof Uint8Array||(ArrayBuffer.isView(m)?m=new Uint8Array(m.buffer,m.byteOffset,m.byteLength):Array.isArray(m)&&(m=Uint8Array.from(m))),!(m instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(m.length===0)return"";let v=0,A=0,y=0;const I=m.length;for(;y!==I&&m[y]===0;)y++,v++;const R=(I-y)*l+1>>>0,U=new Uint8Array(R);for(;y!==I;){let B=m[y],M=0;for(let H=R-1;(B!==0||M<A)&&H!==-1;H--,M++)B+=256*U[H]>>>0,U[H]=B%i>>>0,B=B/i>>>0;if(B!==0)throw new Error("Non-zero carry");A=M,y++}let F=R-A;for(;F!==R&&U[F]===0;)F++;let N=a.repeat(v);for(;F<R;++F)N+=e.charAt(U[F]);return N}function p(m){if(typeof m!="string")throw new TypeError("Expected String");if(m.length===0)return new Uint8Array;let v=0,A=0,y=0;for(;m[v]===a;)A++,v++;const I=(m.length-v)*u+1>>>0,R=new Uint8Array(I);for(;v<m.length;){const B=m.charCodeAt(v);if(B>255)return;let M=n[B];if(M===255)return;let H=0;for(let k=I-1;(M!==0||H<y)&&k!==-1;k--,H++)M+=i*R[k]>>>0,R[k]=M%256>>>0,M=M/256>>>0;if(M!==0)throw new Error("Non-zero carry");y=H,v++}let U=I-y;for(;U!==I&&R[U]===0;)U++;const F=new Uint8Array(A+(I-U));let N=A;for(;U!==I;)F[N++]=R[U++];return F}function h(m){const v=p(m);if(v)return v;throw new Error("Non-base"+i+" character")}return{encode:f,decodeUnsafe:p,decode:h}}var MZ="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const Vm=UZ(MZ);function _Z(e){function n(l){var f=Uint8Array.from(l),p=e(f),h=f.length+4,m=new Uint8Array(h);return m.set(f,0),m.set(p.subarray(0,4),f.length),Vm.encode(m)}function i(l){var f=l.slice(0,-4),p=l.slice(-4),h=e(f);if(!(p[0]^h[0]|p[1]^h[1]|p[2]^h[2]|p[3]^h[3]))return f}function a(l){var f=Vm.decodeUnsafe(l);if(f!=null)return i(f)}function u(l){var f=Vm.decode(l),p=i(f);if(p==null)throw new Error("Invalid checksum");return p}return{encode:n,decode:u,decodeUnsafe:a}}function jZ(e){return Rw(Rw(e))}const Wg=_Z(jZ);var pu={},CB;function PZ(){if(CB)return pu;CB=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.bech32m=pu.bech32=void 0;const e="qpzry9x8gf2tvdw0s3jn54khce6mua7l",n={};for(let m=0;m<e.length;m++){const v=e.charAt(m);n[v]=m}function i(m){const v=m>>25;return(m&33554431)<<5^-(v>>0&1)&996825010^-(v>>1&1)&642813549^-(v>>2&1)&513874426^-(v>>3&1)&1027748829^-(v>>4&1)&705979059}function a(m){let v=1;for(let A=0;A<m.length;++A){const y=m.charCodeAt(A);if(y<33||y>126)return"Invalid prefix ("+m+")";v=i(v)^y>>5}v=i(v);for(let A=0;A<m.length;++A){const y=m.charCodeAt(A);v=i(v)^y&31}return v}function u(m,v,A,y){let I=0,R=0;const U=(1<<A)-1,F=[];for(let N=0;N<m.length;++N)for(I=I<<v|m[N],R+=v;R>=A;)R-=A,F.push(I>>R&U);if(y)R>0&&F.push(I<<A-R&U);else{if(R>=v)return"Excess padding";if(I<<A-R&U)return"Non-zero padding"}return F}function l(m){return u(m,8,5,!0)}function f(m){const v=u(m,5,8,!1);if(Array.isArray(v))return v}function p(m){const v=u(m,5,8,!1);if(Array.isArray(v))return v;throw new Error(v)}function h(m){let v;m==="bech32"?v=1:v=734539939;function A(U,F,N){if(N=N||90,U.length+7+F.length>N)throw new TypeError("Exceeds length limit");U=U.toLowerCase();let B=a(U);if(typeof B=="string")throw new Error(B);let M=U+"1";for(let H=0;H<F.length;++H){const k=F[H];if(k>>5!==0)throw new Error("Non 5-bit word");B=i(B)^k,M+=e.charAt(k)}for(let H=0;H<6;++H)B=i(B);B^=v;for(let H=0;H<6;++H){const k=B>>(5-H)*5&31;M+=e.charAt(k)}return M}function y(U,F){if(F=F||90,U.length<8)return U+" too short";if(U.length>F)return"Exceeds length limit";const N=U.toLowerCase(),B=U.toUpperCase();if(U!==N&&U!==B)return"Mixed-case string "+U;U=N;const M=U.lastIndexOf("1");if(M===-1)return"No separator character for "+U;if(M===0)return"Missing prefix for "+U;const H=U.slice(0,M),k=U.slice(M+1);if(k.length<6)return"Data too short";let X=a(H);if(typeof X=="string")return X;const re=[];for(let ie=0;ie<k.length;++ie){const O=k.charAt(ie),P=n[O];if(P===void 0)return"Unknown character "+O;X=i(X)^P,!(ie+6>=k.length)&&re.push(P)}return X!==v?"Invalid checksum for "+U:{prefix:H,words:re}}function I(U,F){const N=y(U,F);if(typeof N=="object")return N}function R(U,F){const N=y(U,F);if(typeof N=="object")return N;throw new Error(N)}return{decodeUnsafe:I,decode:R,encode:A,toWords:l,fromWordsUnsafe:f,fromWords:p}}return pu.bech32=h("bech32"),pu.bech32m=h("bech32m"),pu}var Ww=PZ(),S1={exports:{}},TB;function LZ(){return TB||(TB=1,(function(e){(function(){var n=typeof window=="object"?window:{},i=!n.HI_BASE32_NO_NODE_JS&&typeof Dt=="object"&&Dt.versions&&Dt.versions.node;i&&(n=da);var a=!n.HI_BASE32_NO_COMMON_JS&&!0&&e.exports,u="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".split(""),l={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},f=[0,0,0,0,0,0,0,0],p=function(F,N){N.length>10&&(N="..."+N.substr(-10));var B=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+F+" bytes: "+N+" <-");throw B.position=F,B},h=function(F){for(var N="",B=F.length,M=0,H=0,k,X;M<B;){if(k=F[M++],k<=127){N+=String.fromCharCode(k);continue}else k>191&&k<=223?(X=k&31,H=1):k<=239?(X=k&15,H=2):k<=247?(X=k&7,H=3):p(M,N);for(var re=0;re<H;++re)k=F[M++],(k<128||k>191)&&p(M,N),X<<=6,X+=k&63;X>=55296&&X<=57343&&p(M,N),X>1114111&&p(M,N),X<=65535?N+=String.fromCharCode(X):(X-=65536,N+=String.fromCharCode((X>>10)+55296),N+=String.fromCharCode((X&1023)+56320))}return N},m=function(F){if(F==="")return[];if(!/^[A-Z2-7=]+$/.test(F))throw new Error("Invalid base32 characters");F=F.replace(/=/g,"");for(var N,B,M,H,k,X,re,ie,O=[],P=0,L=F.length,q=0,oe=L>>3<<3;q<oe;)N=l[F.charAt(q++)],B=l[F.charAt(q++)],M=l[F.charAt(q++)],H=l[F.charAt(q++)],k=l[F.charAt(q++)],X=l[F.charAt(q++)],re=l[F.charAt(q++)],ie=l[F.charAt(q++)],O[P++]=(N<<3|B>>>2)&255,O[P++]=(B<<6|M<<1|H>>>4)&255,O[P++]=(H<<4|k>>>1)&255,O[P++]=(k<<7|X<<2|re>>>3)&255,O[P++]=(re<<5|ie)&255;var ge=L-oe;return ge===2?(N=l[F.charAt(q++)],B=l[F.charAt(q++)],O[P++]=(N<<3|B>>>2)&255):ge===4?(N=l[F.charAt(q++)],B=l[F.charAt(q++)],M=l[F.charAt(q++)],H=l[F.charAt(q++)],O[P++]=(N<<3|B>>>2)&255,O[P++]=(B<<6|M<<1|H>>>4)&255):ge===5?(N=l[F.charAt(q++)],B=l[F.charAt(q++)],M=l[F.charAt(q++)],H=l[F.charAt(q++)],k=l[F.charAt(q++)],O[P++]=(N<<3|B>>>2)&255,O[P++]=(B<<6|M<<1|H>>>4)&255,O[P++]=(H<<4|k>>>1)&255):ge===7&&(N=l[F.charAt(q++)],B=l[F.charAt(q++)],M=l[F.charAt(q++)],H=l[F.charAt(q++)],k=l[F.charAt(q++)],X=l[F.charAt(q++)],re=l[F.charAt(q++)],O[P++]=(N<<3|B>>>2)&255,O[P++]=(B<<6|M<<1|H>>>4)&255,O[P++]=(H<<4|k>>>1)&255,O[P++]=(k<<7|X<<2|re>>>3)&255),O},v=function(F){for(var N,B,M,H,k,X="",re=F.length,ie=0,O=parseInt(re/5)*5;ie<O;)N=F.charCodeAt(ie++),B=F.charCodeAt(ie++),M=F.charCodeAt(ie++),H=F.charCodeAt(ie++),k=F.charCodeAt(ie++),X+=u[N>>>3]+u[(N<<2|B>>>6)&31]+u[B>>>1&31]+u[(B<<4|M>>>4)&31]+u[(M<<1|H>>>7)&31]+u[H>>>2&31]+u[(H<<3|k>>>5)&31]+u[k&31];var P=re-O;return P===1?(N=F.charCodeAt(ie),X+=u[N>>>3]+u[N<<2&31]+"======"):P===2?(N=F.charCodeAt(ie++),B=F.charCodeAt(ie),X+=u[N>>>3]+u[(N<<2|B>>>6)&31]+u[B>>>1&31]+u[B<<4&31]+"===="):P===3?(N=F.charCodeAt(ie++),B=F.charCodeAt(ie++),M=F.charCodeAt(ie),X+=u[N>>>3]+u[(N<<2|B>>>6)&31]+u[B>>>1&31]+u[(B<<4|M>>>4)&31]+u[M<<1&31]+"==="):P===4&&(N=F.charCodeAt(ie++),B=F.charCodeAt(ie++),M=F.charCodeAt(ie++),H=F.charCodeAt(ie),X+=u[N>>>3]+u[(N<<2|B>>>6)&31]+u[B>>>1&31]+u[(B<<4|M>>>4)&31]+u[(M<<1|H>>>7)&31]+u[H>>>2&31]+u[H<<3&31]+"="),X},A=function(F){var N,B,M,H,k,X,re=!1,ie="",O=0,P,L=0,q=F.length;if(F==="")return ie;do{for(f[0]=f[5],f[1]=f[6],f[2]=f[7],P=L;O<q&&P<5;++O)X=F.charCodeAt(O),X<128?f[P++]=X:X<2048?(f[P++]=192|X>>6,f[P++]=128|X&63):X<55296||X>=57344?(f[P++]=224|X>>12,f[P++]=128|X>>6&63,f[P++]=128|X&63):(X=65536+((X&1023)<<10|F.charCodeAt(++O)&1023),f[P++]=240|X>>18,f[P++]=128|X>>12&63,f[P++]=128|X>>6&63,f[P++]=128|X&63);L=P-5,O===q&&++O,O>q&&P<6&&(re=!0),N=f[0],P>4?(B=f[1],M=f[2],H=f[3],k=f[4],ie+=u[N>>>3]+u[(N<<2|B>>>6)&31]+u[B>>>1&31]+u[(B<<4|M>>>4)&31]+u[(M<<1|H>>>7)&31]+u[H>>>2&31]+u[(H<<3|k>>>5)&31]+u[k&31]):P===1?ie+=u[N>>>3]+u[N<<2&31]+"======":P===2?(B=f[1],ie+=u[N>>>3]+u[(N<<2|B>>>6)&31]+u[B>>>1&31]+u[B<<4&31]+"===="):P===3?(B=f[1],M=f[2],ie+=u[N>>>3]+u[(N<<2|B>>>6)&31]+u[B>>>1&31]+u[(B<<4|M>>>4)&31]+u[M<<1&31]+"==="):(B=f[1],M=f[2],H=f[3],ie+=u[N>>>3]+u[(N<<2|B>>>6)&31]+u[B>>>1&31]+u[(B<<4|M>>>4)&31]+u[(M<<1|H>>>7)&31]+u[H>>>2&31]+u[H<<3&31]+"=")}while(!re);return ie},y=function(F){for(var N,B,M,H,k,X="",re=F.length,ie=0,O=parseInt(re/5)*5;ie<O;)N=F[ie++],B=F[ie++],M=F[ie++],H=F[ie++],k=F[ie++],X+=u[N>>>3]+u[(N<<2|B>>>6)&31]+u[B>>>1&31]+u[(B<<4|M>>>4)&31]+u[(M<<1|H>>>7)&31]+u[H>>>2&31]+u[(H<<3|k>>>5)&31]+u[k&31];var P=re-O;return P===1?(N=F[ie],X+=u[N>>>3]+u[N<<2&31]+"======"):P===2?(N=F[ie++],B=F[ie],X+=u[N>>>3]+u[(N<<2|B>>>6)&31]+u[B>>>1&31]+u[B<<4&31]+"===="):P===3?(N=F[ie++],B=F[ie++],M=F[ie],X+=u[N>>>3]+u[(N<<2|B>>>6)&31]+u[B>>>1&31]+u[(B<<4|M>>>4)&31]+u[M<<1&31]+"==="):P===4&&(N=F[ie++],B=F[ie++],M=F[ie++],H=F[ie],X+=u[N>>>3]+u[(N<<2|B>>>6)&31]+u[B>>>1&31]+u[(B<<4|M>>>4)&31]+u[(M<<1|H>>>7)&31]+u[H>>>2&31]+u[H<<3&31]+"="),X},I=function(F,N){var B=typeof F!="string";return B&&F.constructor===ArrayBuffer&&(F=new Uint8Array(F)),B?y(F):N?v(F):A(F)},R=function(F,N){if(!N)return h(m(F));if(F==="")return"";if(!/^[A-Z2-7=]+$/.test(F))throw new Error("Invalid base32 characters");var B,M,H,k,X,re,ie,O,P="",L=F.indexOf("=");L===-1&&(L=F.length);for(var q=0,oe=L>>3<<3;q<oe;)B=l[F.charAt(q++)],M=l[F.charAt(q++)],H=l[F.charAt(q++)],k=l[F.charAt(q++)],X=l[F.charAt(q++)],re=l[F.charAt(q++)],ie=l[F.charAt(q++)],O=l[F.charAt(q++)],P+=String.fromCharCode((B<<3|M>>>2)&255)+String.fromCharCode((M<<6|H<<1|k>>>4)&255)+String.fromCharCode((k<<4|X>>>1)&255)+String.fromCharCode((X<<7|re<<2|ie>>>3)&255)+String.fromCharCode((ie<<5|O)&255);var ge=L-oe;return ge===2?(B=l[F.charAt(q++)],M=l[F.charAt(q++)],P+=String.fromCharCode((B<<3|M>>>2)&255)):ge===4?(B=l[F.charAt(q++)],M=l[F.charAt(q++)],H=l[F.charAt(q++)],k=l[F.charAt(q++)],P+=String.fromCharCode((B<<3|M>>>2)&255)+String.fromCharCode((M<<6|H<<1|k>>>4)&255)):ge===5?(B=l[F.charAt(q++)],M=l[F.charAt(q++)],H=l[F.charAt(q++)],k=l[F.charAt(q++)],X=l[F.charAt(q++)],P+=String.fromCharCode((B<<3|M>>>2)&255)+String.fromCharCode((M<<6|H<<1|k>>>4)&255)+String.fromCharCode((k<<4|X>>>1)&255)):ge===7&&(B=l[F.charAt(q++)],M=l[F.charAt(q++)],H=l[F.charAt(q++)],k=l[F.charAt(q++)],X=l[F.charAt(q++)],re=l[F.charAt(q++)],ie=l[F.charAt(q++)],P+=String.fromCharCode((B<<3|M>>>2)&255)+String.fromCharCode((M<<6|H<<1|k>>>4)&255)+String.fromCharCode((k<<4|X>>>1)&255)+String.fromCharCode((X<<7|re<<2|ie>>>3)&255)),P},U={encode:I,decode:R};R.asBytes=m,a?e.exports=U:n.base32=U})()})(S1)),S1.exports}var kZ=LZ();const K4=lg(kZ);var I1={exports:{}},OB;function $Z(){return OB||(OB=1,(function(e){(function(){var n="input is invalid type",i="finalize already called",a=typeof window=="object",u=a?window:{};u.JS_SHA512_NO_WINDOW&&(a=!1);var l=!a&&typeof self=="object",f=!u.JS_SHA512_NO_NODE_JS&&typeof Dt=="object"&&Dt.versions&&Dt.versions.node;f?u=da:l&&(u=self);var p=!u.JS_SHA512_NO_COMMON_JS&&!0&&e.exports,h=!u.JS_SHA512_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",m="0123456789abcdef".split(""),v=[-2147483648,8388608,32768,128],A=[24,16,8,0],y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],I=["hex","array","digest","arrayBuffer"],R=[],U=Array.isArray;(u.JS_SHA512_NO_NODE_JS||!U)&&(U=function(O){return Object.prototype.toString.call(O)==="[object Array]"});var F=ArrayBuffer.isView;h&&(u.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW||!F)&&(F=function(O){return typeof O=="object"&&O.buffer&&O.buffer.constructor===ArrayBuffer});var N=function(O){var P=typeof O;if(P==="string")return[O,!0];if(P!=="object"||O===null)throw new Error(n);if(h&&O.constructor===ArrayBuffer)return[new Uint8Array(O),!1];if(!U(O)&&!F(O))throw new Error(n);return[O,!1]},B=function(O,P){return function(L){return new X(P,!0).update(L)[O]()}},M=function(O){var P=B("hex",O);P.create=function(){return new X(O)},P.update=function(oe){return P.create().update(oe)};for(var L=0;L<I.length;++L){var q=I[L];P[q]=B(q,O)}return P},H=function(O,P){return function(L,q){return new re(L,P,!0).update(q)[O]()}},k=function(O){var P=H("hex",O);P.create=function(oe){return new re(oe,O)},P.update=function(oe,ge){return P.create(oe).update(ge)};for(var L=0;L<I.length;++L){var q=I[L];P[q]=H(q,O)}return P};function X(O,P){P?(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],O==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):O==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):O==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=O,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}X.prototype.update=function(O){if(this.finalized)throw new Error(i);var P=N(O);O=P[0];for(var L=P[1],q,oe=0,ge,Ee=O.length,D=this.blocks;oe<Ee;){if(this.hashed&&(this.hashed=!1,D[0]=this.block,this.block=D[1]=D[2]=D[3]=D[4]=D[5]=D[6]=D[7]=D[8]=D[9]=D[10]=D[11]=D[12]=D[13]=D[14]=D[15]=D[16]=D[17]=D[18]=D[19]=D[20]=D[21]=D[22]=D[23]=D[24]=D[25]=D[26]=D[27]=D[28]=D[29]=D[30]=D[31]=D[32]=0),L)for(ge=this.start;oe<Ee&&ge<128;++oe)q=O.charCodeAt(oe),q<128?D[ge>>>2]|=q<<A[ge++&3]:q<2048?(D[ge>>>2]|=(192|q>>>6)<<A[ge++&3],D[ge>>>2]|=(128|q&63)<<A[ge++&3]):q<55296||q>=57344?(D[ge>>>2]|=(224|q>>>12)<<A[ge++&3],D[ge>>>2]|=(128|q>>>6&63)<<A[ge++&3],D[ge>>>2]|=(128|q&63)<<A[ge++&3]):(q=65536+((q&1023)<<10|O.charCodeAt(++oe)&1023),D[ge>>>2]|=(240|q>>>18)<<A[ge++&3],D[ge>>>2]|=(128|q>>>12&63)<<A[ge++&3],D[ge>>>2]|=(128|q>>>6&63)<<A[ge++&3],D[ge>>>2]|=(128|q&63)<<A[ge++&3]);else for(ge=this.start;oe<Ee&&ge<128;++oe)D[ge>>>2]|=O[oe]<<A[ge++&3];this.lastByteIndex=ge,this.bytes+=ge-this.start,ge>=128?(this.block=D[32],this.start=ge-128,this.hash(),this.hashed=!0):this.start=ge}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},X.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var O=this.blocks,P=this.lastByteIndex;O[32]=this.block,O[P>>>2]|=v[P&3],this.block=O[32],P>=112&&(this.hashed||this.hash(),O[0]=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),O[30]=this.hBytes<<3|this.bytes>>>29,O[31]=this.bytes<<3,this.hash()}},X.prototype.hash=function(){var O=this.h0h,P=this.h0l,L=this.h1h,q=this.h1l,oe=this.h2h,ge=this.h2l,Ee=this.h3h,D=this.h3l,fe=this.h4h,be=this.h4l,te=this.h5h,j=this.h5l,ue=this.h6h,me=this.h6l,ne=this.h7h,G=this.h7l,Q=this.blocks,J,ve,Ae,V,w,$,Y,W,de,pe,E,g,b,C,K,xe,Re,ze,ce,le,Ce,Me,Le,tt,Ze;for(J=32;J<160;J+=2)le=Q[J-30],Ce=Q[J-29],ve=(le>>>1|Ce<<31)^(le>>>8|Ce<<24)^le>>>7,Ae=(Ce>>>1|le<<31)^(Ce>>>8|le<<24)^(Ce>>>7|le<<25),le=Q[J-4],Ce=Q[J-3],V=(le>>>19|Ce<<13)^(Ce>>>29|le<<3)^le>>>6,w=(Ce>>>19|le<<13)^(le>>>29|Ce<<3)^(Ce>>>6|le<<26),le=Q[J-32],Ce=Q[J-31],Me=Q[J-14],Le=Q[J-13],$=(Le&65535)+(Ce&65535)+(Ae&65535)+(w&65535),Y=(Le>>>16)+(Ce>>>16)+(Ae>>>16)+(w>>>16)+($>>>16),W=(Me&65535)+(le&65535)+(ve&65535)+(V&65535)+(Y>>>16),de=(Me>>>16)+(le>>>16)+(ve>>>16)+(V>>>16)+(W>>>16),Q[J]=de<<16|W&65535,Q[J+1]=Y<<16|$&65535;var ot=O,at=P,ct=L,ut=q,bt=oe,wt=ge,_=Ee,he=D,_e=fe,Pe=be,He=te,it=j,nt=ue,st=me,rt=ne,At=G;for(xe=ct&bt,Re=ut&wt,J=0;J<160;J+=8)ve=(ot>>>28|at<<4)^(at>>>2|ot<<30)^(at>>>7|ot<<25),Ae=(at>>>28|ot<<4)^(ot>>>2|at<<30)^(ot>>>7|at<<25),V=(_e>>>14|Pe<<18)^(_e>>>18|Pe<<14)^(Pe>>>9|_e<<23),w=(Pe>>>14|_e<<18)^(Pe>>>18|_e<<14)^(_e>>>9|Pe<<23),pe=ot&ct,E=at&ut,ze=pe^ot&bt^xe,ce=E^at&wt^Re,tt=_e&He^~_e&nt,Ze=Pe&it^~Pe&st,le=Q[J],Ce=Q[J+1],Me=y[J],Le=y[J+1],$=(Le&65535)+(Ce&65535)+(Ze&65535)+(w&65535)+(At&65535),Y=(Le>>>16)+(Ce>>>16)+(Ze>>>16)+(w>>>16)+(At>>>16)+($>>>16),W=(Me&65535)+(le&65535)+(tt&65535)+(V&65535)+(rt&65535)+(Y>>>16),de=(Me>>>16)+(le>>>16)+(tt>>>16)+(V>>>16)+(rt>>>16)+(W>>>16),le=de<<16|W&65535,Ce=Y<<16|$&65535,$=(ce&65535)+(Ae&65535),Y=(ce>>>16)+(Ae>>>16)+($>>>16),W=(ze&65535)+(ve&65535)+(Y>>>16),de=(ze>>>16)+(ve>>>16)+(W>>>16),Me=de<<16|W&65535,Le=Y<<16|$&65535,$=(he&65535)+(Ce&65535),Y=(he>>>16)+(Ce>>>16)+($>>>16),W=(_&65535)+(le&65535)+(Y>>>16),de=(_>>>16)+(le>>>16)+(W>>>16),rt=de<<16|W&65535,At=Y<<16|$&65535,$=(Le&65535)+(Ce&65535),Y=(Le>>>16)+(Ce>>>16)+($>>>16),W=(Me&65535)+(le&65535)+(Y>>>16),de=(Me>>>16)+(le>>>16)+(W>>>16),_=de<<16|W&65535,he=Y<<16|$&65535,ve=(_>>>28|he<<4)^(he>>>2|_<<30)^(he>>>7|_<<25),Ae=(he>>>28|_<<4)^(_>>>2|he<<30)^(_>>>7|he<<25),V=(rt>>>14|At<<18)^(rt>>>18|At<<14)^(At>>>9|rt<<23),w=(At>>>14|rt<<18)^(At>>>18|rt<<14)^(rt>>>9|At<<23),g=_&ot,b=he&at,ze=g^_&ct^pe,ce=b^he&ut^E,tt=rt&_e^~rt&He,Ze=At&Pe^~At&it,le=Q[J+2],Ce=Q[J+3],Me=y[J+2],Le=y[J+3],$=(Le&65535)+(Ce&65535)+(Ze&65535)+(w&65535)+(st&65535),Y=(Le>>>16)+(Ce>>>16)+(Ze>>>16)+(w>>>16)+(st>>>16)+($>>>16),W=(Me&65535)+(le&65535)+(tt&65535)+(V&65535)+(nt&65535)+(Y>>>16),de=(Me>>>16)+(le>>>16)+(tt>>>16)+(V>>>16)+(nt>>>16)+(W>>>16),le=de<<16|W&65535,Ce=Y<<16|$&65535,$=(ce&65535)+(Ae&65535),Y=(ce>>>16)+(Ae>>>16)+($>>>16),W=(ze&65535)+(ve&65535)+(Y>>>16),de=(ze>>>16)+(ve>>>16)+(W>>>16),Me=de<<16|W&65535,Le=Y<<16|$&65535,$=(wt&65535)+(Ce&65535),Y=(wt>>>16)+(Ce>>>16)+($>>>16),W=(bt&65535)+(le&65535)+(Y>>>16),de=(bt>>>16)+(le>>>16)+(W>>>16),nt=de<<16|W&65535,st=Y<<16|$&65535,$=(Le&65535)+(Ce&65535),Y=(Le>>>16)+(Ce>>>16)+($>>>16),W=(Me&65535)+(le&65535)+(Y>>>16),de=(Me>>>16)+(le>>>16)+(W>>>16),bt=de<<16|W&65535,wt=Y<<16|$&65535,ve=(bt>>>28|wt<<4)^(wt>>>2|bt<<30)^(wt>>>7|bt<<25),Ae=(wt>>>28|bt<<4)^(bt>>>2|wt<<30)^(bt>>>7|wt<<25),V=(nt>>>14|st<<18)^(nt>>>18|st<<14)^(st>>>9|nt<<23),w=(st>>>14|nt<<18)^(st>>>18|nt<<14)^(nt>>>9|st<<23),C=bt&_,K=wt&he,ze=C^bt&ot^g,ce=K^wt&at^b,tt=nt&rt^~nt&_e,Ze=st&At^~st&Pe,le=Q[J+4],Ce=Q[J+5],Me=y[J+4],Le=y[J+5],$=(Le&65535)+(Ce&65535)+(Ze&65535)+(w&65535)+(it&65535),Y=(Le>>>16)+(Ce>>>16)+(Ze>>>16)+(w>>>16)+(it>>>16)+($>>>16),W=(Me&65535)+(le&65535)+(tt&65535)+(V&65535)+(He&65535)+(Y>>>16),de=(Me>>>16)+(le>>>16)+(tt>>>16)+(V>>>16)+(He>>>16)+(W>>>16),le=de<<16|W&65535,Ce=Y<<16|$&65535,$=(ce&65535)+(Ae&65535),Y=(ce>>>16)+(Ae>>>16)+($>>>16),W=(ze&65535)+(ve&65535)+(Y>>>16),de=(ze>>>16)+(ve>>>16)+(W>>>16),Me=de<<16|W&65535,Le=Y<<16|$&65535,$=(ut&65535)+(Ce&65535),Y=(ut>>>16)+(Ce>>>16)+($>>>16),W=(ct&65535)+(le&65535)+(Y>>>16),de=(ct>>>16)+(le>>>16)+(W>>>16),He=de<<16|W&65535,it=Y<<16|$&65535,$=(Le&65535)+(Ce&65535),Y=(Le>>>16)+(Ce>>>16)+($>>>16),W=(Me&65535)+(le&65535)+(Y>>>16),de=(Me>>>16)+(le>>>16)+(W>>>16),ct=de<<16|W&65535,ut=Y<<16|$&65535,ve=(ct>>>28|ut<<4)^(ut>>>2|ct<<30)^(ut>>>7|ct<<25),Ae=(ut>>>28|ct<<4)^(ct>>>2|ut<<30)^(ct>>>7|ut<<25),V=(He>>>14|it<<18)^(He>>>18|it<<14)^(it>>>9|He<<23),w=(it>>>14|He<<18)^(it>>>18|He<<14)^(He>>>9|it<<23),xe=ct&bt,Re=ut&wt,ze=xe^ct&_^C,ce=Re^ut&he^K,tt=He&nt^~He&rt,Ze=it&st^~it&At,le=Q[J+6],Ce=Q[J+7],Me=y[J+6],Le=y[J+7],$=(Le&65535)+(Ce&65535)+(Ze&65535)+(w&65535)+(Pe&65535),Y=(Le>>>16)+(Ce>>>16)+(Ze>>>16)+(w>>>16)+(Pe>>>16)+($>>>16),W=(Me&65535)+(le&65535)+(tt&65535)+(V&65535)+(_e&65535)+(Y>>>16),de=(Me>>>16)+(le>>>16)+(tt>>>16)+(V>>>16)+(_e>>>16)+(W>>>16),le=de<<16|W&65535,Ce=Y<<16|$&65535,$=(ce&65535)+(Ae&65535),Y=(ce>>>16)+(Ae>>>16)+($>>>16),W=(ze&65535)+(ve&65535)+(Y>>>16),de=(ze>>>16)+(ve>>>16)+(W>>>16),Me=de<<16|W&65535,Le=Y<<16|$&65535,$=(at&65535)+(Ce&65535),Y=(at>>>16)+(Ce>>>16)+($>>>16),W=(ot&65535)+(le&65535)+(Y>>>16),de=(ot>>>16)+(le>>>16)+(W>>>16),_e=de<<16|W&65535,Pe=Y<<16|$&65535,$=(Le&65535)+(Ce&65535),Y=(Le>>>16)+(Ce>>>16)+($>>>16),W=(Me&65535)+(le&65535)+(Y>>>16),de=(Me>>>16)+(le>>>16)+(W>>>16),ot=de<<16|W&65535,at=Y<<16|$&65535;$=(P&65535)+(at&65535),Y=(P>>>16)+(at>>>16)+($>>>16),W=(O&65535)+(ot&65535)+(Y>>>16),de=(O>>>16)+(ot>>>16)+(W>>>16),this.h0h=de<<16|W&65535,this.h0l=Y<<16|$&65535,$=(q&65535)+(ut&65535),Y=(q>>>16)+(ut>>>16)+($>>>16),W=(L&65535)+(ct&65535)+(Y>>>16),de=(L>>>16)+(ct>>>16)+(W>>>16),this.h1h=de<<16|W&65535,this.h1l=Y<<16|$&65535,$=(ge&65535)+(wt&65535),Y=(ge>>>16)+(wt>>>16)+($>>>16),W=(oe&65535)+(bt&65535)+(Y>>>16),de=(oe>>>16)+(bt>>>16)+(W>>>16),this.h2h=de<<16|W&65535,this.h2l=Y<<16|$&65535,$=(D&65535)+(he&65535),Y=(D>>>16)+(he>>>16)+($>>>16),W=(Ee&65535)+(_&65535)+(Y>>>16),de=(Ee>>>16)+(_>>>16)+(W>>>16),this.h3h=de<<16|W&65535,this.h3l=Y<<16|$&65535,$=(be&65535)+(Pe&65535),Y=(be>>>16)+(Pe>>>16)+($>>>16),W=(fe&65535)+(_e&65535)+(Y>>>16),de=(fe>>>16)+(_e>>>16)+(W>>>16),this.h4h=de<<16|W&65535,this.h4l=Y<<16|$&65535,$=(j&65535)+(it&65535),Y=(j>>>16)+(it>>>16)+($>>>16),W=(te&65535)+(He&65535)+(Y>>>16),de=(te>>>16)+(He>>>16)+(W>>>16),this.h5h=de<<16|W&65535,this.h5l=Y<<16|$&65535,$=(me&65535)+(st&65535),Y=(me>>>16)+(st>>>16)+($>>>16),W=(ue&65535)+(nt&65535)+(Y>>>16),de=(ue>>>16)+(nt>>>16)+(W>>>16),this.h6h=de<<16|W&65535,this.h6l=Y<<16|$&65535,$=(G&65535)+(At&65535),Y=(G>>>16)+(At>>>16)+($>>>16),W=(ne&65535)+(rt&65535)+(Y>>>16),de=(ne>>>16)+(rt>>>16)+(W>>>16),this.h7h=de<<16|W&65535,this.h7l=Y<<16|$&65535},X.prototype.hex=function(){this.finalize();var O=this.h0h,P=this.h0l,L=this.h1h,q=this.h1l,oe=this.h2h,ge=this.h2l,Ee=this.h3h,D=this.h3l,fe=this.h4h,be=this.h4l,te=this.h5h,j=this.h5l,ue=this.h6h,me=this.h6l,ne=this.h7h,G=this.h7l,Q=this.bits,J=m[O>>>28&15]+m[O>>>24&15]+m[O>>>20&15]+m[O>>>16&15]+m[O>>>12&15]+m[O>>>8&15]+m[O>>>4&15]+m[O&15]+m[P>>>28&15]+m[P>>>24&15]+m[P>>>20&15]+m[P>>>16&15]+m[P>>>12&15]+m[P>>>8&15]+m[P>>>4&15]+m[P&15]+m[L>>>28&15]+m[L>>>24&15]+m[L>>>20&15]+m[L>>>16&15]+m[L>>>12&15]+m[L>>>8&15]+m[L>>>4&15]+m[L&15]+m[q>>>28&15]+m[q>>>24&15]+m[q>>>20&15]+m[q>>>16&15]+m[q>>>12&15]+m[q>>>8&15]+m[q>>>4&15]+m[q&15]+m[oe>>>28&15]+m[oe>>>24&15]+m[oe>>>20&15]+m[oe>>>16&15]+m[oe>>>12&15]+m[oe>>>8&15]+m[oe>>>4&15]+m[oe&15]+m[ge>>>28&15]+m[ge>>>24&15]+m[ge>>>20&15]+m[ge>>>16&15]+m[ge>>>12&15]+m[ge>>>8&15]+m[ge>>>4&15]+m[ge&15]+m[Ee>>>28&15]+m[Ee>>>24&15]+m[Ee>>>20&15]+m[Ee>>>16&15]+m[Ee>>>12&15]+m[Ee>>>8&15]+m[Ee>>>4&15]+m[Ee&15];return Q>=256&&(J+=m[D>>>28&15]+m[D>>>24&15]+m[D>>>20&15]+m[D>>>16&15]+m[D>>>12&15]+m[D>>>8&15]+m[D>>>4&15]+m[D&15]),Q>=384&&(J+=m[fe>>>28&15]+m[fe>>>24&15]+m[fe>>>20&15]+m[fe>>>16&15]+m[fe>>>12&15]+m[fe>>>8&15]+m[fe>>>4&15]+m[fe&15]+m[be>>>28&15]+m[be>>>24&15]+m[be>>>20&15]+m[be>>>16&15]+m[be>>>12&15]+m[be>>>8&15]+m[be>>>4&15]+m[be&15]+m[te>>>28&15]+m[te>>>24&15]+m[te>>>20&15]+m[te>>>16&15]+m[te>>>12&15]+m[te>>>8&15]+m[te>>>4&15]+m[te&15]+m[j>>>28&15]+m[j>>>24&15]+m[j>>>20&15]+m[j>>>16&15]+m[j>>>12&15]+m[j>>>8&15]+m[j>>>4&15]+m[j&15]),Q==512&&(J+=m[ue>>>28&15]+m[ue>>>24&15]+m[ue>>>20&15]+m[ue>>>16&15]+m[ue>>>12&15]+m[ue>>>8&15]+m[ue>>>4&15]+m[ue&15]+m[me>>>28&15]+m[me>>>24&15]+m[me>>>20&15]+m[me>>>16&15]+m[me>>>12&15]+m[me>>>8&15]+m[me>>>4&15]+m[me&15]+m[ne>>>28&15]+m[ne>>>24&15]+m[ne>>>20&15]+m[ne>>>16&15]+m[ne>>>12&15]+m[ne>>>8&15]+m[ne>>>4&15]+m[ne&15]+m[G>>>28&15]+m[G>>>24&15]+m[G>>>20&15]+m[G>>>16&15]+m[G>>>12&15]+m[G>>>8&15]+m[G>>>4&15]+m[G&15]),J},X.prototype.toString=X.prototype.hex,X.prototype.digest=function(){this.finalize();var O=this.h0h,P=this.h0l,L=this.h1h,q=this.h1l,oe=this.h2h,ge=this.h2l,Ee=this.h3h,D=this.h3l,fe=this.h4h,be=this.h4l,te=this.h5h,j=this.h5l,ue=this.h6h,me=this.h6l,ne=this.h7h,G=this.h7l,Q=this.bits,J=[O>>>24&255,O>>>16&255,O>>>8&255,O&255,P>>>24&255,P>>>16&255,P>>>8&255,P&255,L>>>24&255,L>>>16&255,L>>>8&255,L&255,q>>>24&255,q>>>16&255,q>>>8&255,q&255,oe>>>24&255,oe>>>16&255,oe>>>8&255,oe&255,ge>>>24&255,ge>>>16&255,ge>>>8&255,ge&255,Ee>>>24&255,Ee>>>16&255,Ee>>>8&255,Ee&255];return Q>=256&&J.push(D>>>24&255,D>>>16&255,D>>>8&255,D&255),Q>=384&&J.push(fe>>>24&255,fe>>>16&255,fe>>>8&255,fe&255,be>>>24&255,be>>>16&255,be>>>8&255,be&255,te>>>24&255,te>>>16&255,te>>>8&255,te&255,j>>>24&255,j>>>16&255,j>>>8&255,j&255),Q==512&&J.push(ue>>>24&255,ue>>>16&255,ue>>>8&255,ue&255,me>>>24&255,me>>>16&255,me>>>8&255,me&255,ne>>>24&255,ne>>>16&255,ne>>>8&255,ne&255,G>>>24&255,G>>>16&255,G>>>8&255,G&255),J},X.prototype.array=X.prototype.digest,X.prototype.arrayBuffer=function(){this.finalize();var O=this.bits,P=new ArrayBuffer(O/8),L=new DataView(P);return L.setUint32(0,this.h0h),L.setUint32(4,this.h0l),L.setUint32(8,this.h1h),L.setUint32(12,this.h1l),L.setUint32(16,this.h2h),L.setUint32(20,this.h2l),L.setUint32(24,this.h3h),O>=256&&L.setUint32(28,this.h3l),O>=384&&(L.setUint32(32,this.h4h),L.setUint32(36,this.h4l),L.setUint32(40,this.h5h),L.setUint32(44,this.h5l)),O==512&&(L.setUint32(48,this.h6h),L.setUint32(52,this.h6l),L.setUint32(56,this.h7h),L.setUint32(60,this.h7l)),P},X.prototype.clone=function(){var O=new X(this.bits,!1);return this.copyTo(O),O},X.prototype.copyTo=function(O){var P=0,L=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(P=0;P<L.length;++P)O[L[P]]=this[L[P]];for(P=0;P<this.blocks.length;++P)O.blocks[P]=this.blocks[P]};function re(O,P,L){var q,oe=N(O);if(O=oe[0],oe[1]){for(var ge=[],Ee=O.length,D=0,fe,q=0;q<Ee;++q)fe=O.charCodeAt(q),fe<128?ge[D++]=fe:fe<2048?(ge[D++]=192|fe>>>6,ge[D++]=128|fe&63):fe<55296||fe>=57344?(ge[D++]=224|fe>>>12,ge[D++]=128|fe>>>6&63,ge[D++]=128|fe&63):(fe=65536+((fe&1023)<<10|O.charCodeAt(++q)&1023),ge[D++]=240|fe>>>18,ge[D++]=128|fe>>>12&63,ge[D++]=128|fe>>>6&63,ge[D++]=128|fe&63);O=ge}O.length>128&&(O=new X(P,!0).update(O).array());for(var be=[],te=[],q=0;q<128;++q){var j=O[q]||0;be[q]=92^j,te[q]=54^j}X.call(this,P,L),this.update(te),this.oKeyPad=be,this.inner=!0,this.sharedMemory=L}re.prototype=new X,re.prototype.finalize=function(){if(X.prototype.finalize.call(this),this.inner){this.inner=!1;var O=this.array();X.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(O),X.prototype.finalize.call(this)}},re.prototype.clone=function(){var O=new re([],this.bits,!1);this.copyTo(O),O.inner=this.inner;for(var P=0;P<this.oKeyPad.length;++P)O.oKeyPad[P]=this.oKeyPad[P];return O};var ie=M(512);ie.sha512=ie,ie.sha384=M(384),ie.sha512_256=M(256),ie.sha512_224=M(224),ie.sha512.hmac=k(512),ie.sha384.hmac=k(384),ie.sha512_256.hmac=k(256),ie.sha512_224.hmac=k(224),p?e.exports=ie:(u.sha512=ie.sha512,u.sha384=ie.sha384,u.sha512_256=ie.sha512_256,u.sha512_224=ie.sha512_224)})()})(I1)),I1.exports}var qZ=$Z();const HZ=lg(qZ),X4="3.7.8",zZ=X4,Rc=typeof dn.Buffer=="function",RB=typeof TextDecoder=="function"?new TextDecoder:void 0,FB=typeof TextEncoder=="function"?new TextEncoder:void 0,VZ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",md=Array.prototype.slice.call(VZ),_m=(e=>{let n={};return e.forEach((i,a)=>n[i]=a),n})(md),GZ=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Xn=String.fromCharCode.bind(String),NB=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Z4=e=>e.replace(/=/g,"").replace(/[+\/]/g,n=>n=="+"?"-":"_"),J4=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),W4=e=>{let n,i,a,u,l="";const f=e.length%3;for(let p=0;p<e.length;){if((i=e.charCodeAt(p++))>255||(a=e.charCodeAt(p++))>255||(u=e.charCodeAt(p++))>255)throw new TypeError("invalid character found");n=i<<16|a<<8|u,l+=md[n>>18&63]+md[n>>12&63]+md[n>>6&63]+md[n&63]}return f?l.slice(0,f-3)+"===".substring(f):l},EI=typeof btoa=="function"?e=>btoa(e):Rc?e=>dn.Buffer.from(e,"binary").toString("base64"):W4,eS=Rc?e=>dn.Buffer.from(e).toString("base64"):e=>{let i=[];for(let a=0,u=e.length;a<u;a+=4096)i.push(Xn.apply(null,e.subarray(a,a+4096)));return EI(i.join(""))},Gm=(e,n=!1)=>n?Z4(eS(e)):eS(e),QZ=e=>{if(e.length<2){var n=e.charCodeAt(0);return n<128?e:n<2048?Xn(192|n>>>6)+Xn(128|n&63):Xn(224|n>>>12&15)+Xn(128|n>>>6&63)+Xn(128|n&63)}else{var n=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Xn(240|n>>>18&7)+Xn(128|n>>>12&63)+Xn(128|n>>>6&63)+Xn(128|n&63)}},YZ=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ej=e=>e.replace(YZ,QZ),DB=Rc?e=>dn.Buffer.from(e,"utf8").toString("base64"):FB?e=>eS(FB.encode(e)):e=>EI(ej(e)),ec=(e,n=!1)=>n?Z4(DB(e)):DB(e),BB=e=>ec(e,!0),KZ=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,XZ=e=>{switch(e.length){case 4:var n=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),i=n-65536;return Xn((i>>>10)+55296)+Xn((i&1023)+56320);case 3:return Xn((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Xn((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},tj=e=>e.replace(KZ,XZ),nj=e=>{if(e=e.replace(/\s+/g,""),!GZ.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let n,i,a,u=[];for(let l=0;l<e.length;)n=_m[e.charAt(l++)]<<18|_m[e.charAt(l++)]<<12|(i=_m[e.charAt(l++)])<<6|(a=_m[e.charAt(l++)]),i===64?u.push(Xn(n>>16&255)):a===64?u.push(Xn(n>>16&255,n>>8&255)):u.push(Xn(n>>16&255,n>>8&255,n&255));return u.join("")},wI=typeof atob=="function"?e=>atob(J4(e)):Rc?e=>dn.Buffer.from(e,"base64").toString("binary"):nj,rj=Rc?e=>NB(dn.Buffer.from(e,"base64")):e=>NB(wI(e).split("").map(n=>n.charCodeAt(0))),ij=e=>rj(oj(e)),ZZ=Rc?e=>dn.Buffer.from(e,"base64").toString("utf8"):RB?e=>RB.decode(rj(e)):e=>tj(wI(e)),oj=e=>J4(e.replace(/[-_]/g,n=>n=="-"?"+":"/")),tS=e=>ZZ(oj(e)),JZ=e=>{if(typeof e!="string")return!1;const n=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(n)||!/[^\s0-9a-zA-Z\-_]/.test(n)},aj=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),sj=function(){const e=(n,i)=>Object.defineProperty(String.prototype,n,aj(i));e("fromBase64",function(){return tS(this)}),e("toBase64",function(n){return ec(this,n)}),e("toBase64URI",function(){return ec(this,!0)}),e("toBase64URL",function(){return ec(this,!0)}),e("toUint8Array",function(){return ij(this)})},uj=function(){const e=(n,i)=>Object.defineProperty(Uint8Array.prototype,n,aj(i));e("toBase64",function(n){return Gm(this,n)}),e("toBase64URI",function(){return Gm(this,!0)}),e("toBase64URL",function(){return Gm(this,!0)})},WZ=()=>{sj(),uj()},eJ={version:X4,VERSION:zZ,atob:wI,atobPolyfill:nj,btoa:EI,btoaPolyfill:W4,fromBase64:tS,toBase64:ec,encode:ec,encodeURI:BB,encodeURL:BB,utob:ej,btou:tj,decode:tS,isValid:JZ,fromUint8Array:Gm,toUint8Array:ij,extendString:sj,extendUint8Array:uj,extendBuiltins:WZ},$u=e=>`${e} is malformed`,lj=e=>`${e} checksum is wrong`,tJ=32,UB=32,jm=36,cj=4,MB=58,_B=32,nJ=32,jB=$u("block hash"),rJ=$u("tx id"),C1=$u("address"),iJ=lj("address");function oJ(e){return Uint8Array.from(HZ.sha512_256.array(e).slice(_B-cj,_B))}function aJ(e){if(typeof e!="string")throw new Error(`${C1}: expected string, got ${typeof e}, ${e}`);if(e.length!==MB)throw new Error(`${C1}: expected length ${MB}, got ${e.length}: ${e}`);const n=K4.decode.asBytes(e);if(n.length!==jm)throw new Error(`${C1}: expected byte length ${jm}, got ${n.length}`);const i=new Uint8Array(n.slice(0,jm-cj)),a=new Uint8Array(n.slice(nJ,jm)),u=oJ(i);if(!lJ(u,a))throw new Error(iJ);return!0}function sJ(e){const n=eJ.toUint8Array("3KYSrPgi16Cl3iLu3r+GaeZkBBrgNFbMB60jsrJtTdI=");if(n.length!==UB)throw new Error(`${rJ}: expected byte length ${UB}, got ${n.length}`);return!0}function uJ(e){const n=K4.decode.asBytes(e);if(n.length!==tJ)throw new Error(`${jB}: expected byte length ${jB}, got ${n.length}`);return!0}function lJ(e,n){return e.length!==n.length?!1:Array.from(e).every((i,a)=>i===n[a])}const cJ=34,nS=34,PB=36,fJ=$u("block hash"),dJ=$u("tx id"),pJ=$u("address");function hJ(e){const n=Wg.decode(e);if(n.length!==PB)throw new Error(`${pJ}: expected byte length ${PB}, got ${n.length}`);return!0}function mJ(e){const n=Wg.decode(e);if(n.length!==nS)throw new Error(`${fJ}: expected byte length ${cJ}, got ${n.length}`);return!0}function gJ(e){const n=Wg.decode(e);if(n.length!==nS)throw new Error(`${dJ}: expected byte length ${nS}, got ${n.length}`);return!0}function yJ({polynomial:e,numTables:n}){const i=new Uint32Array(256*n);for(let a=0;a<256;a++){let u=a;u=(u&1)*e^u>>>1,u=(u&1)*e^u>>>1,u=(u&1)*e^u>>>1,u=(u&1)*e^u>>>1,u=(u&1)*e^u>>>1,u=(u&1)*e^u>>>1,u=(u&1)*e^u>>>1,u=(u&1)*e^u>>>1,i[a]=u}for(let a=256;a<i.length;a++){const u=i[a-256];i[a]=i[u&255]^u>>>8}return i}const vo=yJ({polynomial:3988292384,numTables:8});function bJ(){return-1}function AJ(e,n){const i=n.byteLength,a=new DataView(n.buffer,n.byteOffset,i);let u=e,l=0;const f=-a.byteOffset&3;for(;l<f&&l<i;l++)u=vo[(u^a.getUint8(l))&255]^u>>>8;if(l===i)return u;l=f;let p=i-l;for(;p>=8;l+=8,p-=8){u^=a.getUint32(l,!0);const h=a.getUint32(l+4,!0);u=vo[0*256+(h>>>24&255)]^vo[1*256+(h>>>16&255)]^vo[2*256+(h>>>8&255)]^vo[3*256+(h>>>0&255)]^vo[4*256+(u>>>24&255)]^vo[5*256+(u>>>16&255)]^vo[6*256+(u>>>8&255)]^vo[7*256+(u>>>0&255)]}for(let h=l;h<i;h++)u=vo[(u^a.getUint8(h))&255]^u>>>8;return u}function vJ(e){return(e^-1)>>>0}function xJ(e){return vJ(AJ(bJ(),e))}const hu=Error,Pm=Error,T1="Unexpected end of buffer",Xl=class Xl{constructor(n){this.initialByte=n}CborInitialByte(n,i){this.initialByte=n<<5|i}static from(n){return new Xl(n)}getInitialByte(){return this.initialByte}getMajorType(){return this.initialByte>>5}getAdditionalInfo(){return this.initialByte&Xl.AdditionalInformationMask}};Xl.IndefiniteLengthBreakByte=255,Xl.AdditionalInformationMask=31;let cs=Xl;var ca,Hi,sg,tc,on,ug,Ot,fj,dj,pj,Qm,_r,iS,hj,Ym,gd,yd,bu,oS,Au;const Kn=class Kn{constructor(n){ra(this,Ot);ra(this,ca);ra(this,Hi,0);ra(this,sg,new Array);ra(this,tc,!1);ra(this,on);ra(this,ug,0);is(this,ca,new Uint8Array(dn.Buffer.from(n,"hex"))),is(this,on,{currentKeyOffset:null,frameOffset:0,itemsRead:0,type:null})}readStartArray(){var l;const n=Nt(this,Ot,gd).call(this,4);if(n.getAdditionalInfo()===31)return Nt(this,Ot,bu).call(this,1),Nt(this,Ot,oS).call(this,4),null;const i=Nt(this,Ot,Au).call(this),{length:a,bytesRead:u}=Nt(l=Kn,_r,Ym).call(l,n,i);return Nt(this,Ot,bu).call(this,u),Nt(this,Ot,oS).call(this,4,a),a}readTag(){const{tag:n,bytesRead:i}=Nt(this,Ot,hj).call(this);return Nt(this,Ot,bu).call(this,i),is(this,tc,!0),n}readByteString(){var l;const n=Nt(this,Ot,gd).call(this,2);if(n.getAdditionalInfo()===31){const{val:f,encodingLength:p}=Nt(this,Ot,pj).call(this,2);return Nt(this,Ot,bu).call(this,p),Nt(this,Ot,Qm).call(this),f}const i=Nt(this,Ot,Au).call(this),{length:a,bytesRead:u}=Nt(l=Kn,_r,Ym).call(l,n,i);return Nt(this,Ot,dj).call(this,u+a),Nt(this,Ot,bu).call(this,u+a),Nt(this,Ot,Qm).call(this),i.slice(u,u+a)}readInt(){const n=Nt(this,Ot,fj).call(this);return Nt(this,Ot,bu).call(this,n.bytesRead),Nt(this,Ot,Qm).call(this),n.signedInt}static ensureReadCapacityInArray(n,i){if(n.length<i)throw new hu(T1)}};ca=new WeakMap,Hi=new WeakMap,sg=new WeakMap,tc=new WeakMap,on=new WeakMap,ug=new WeakMap,Ot=new WeakSet,fj=function(){var i,a;const n=Nt(this,Ot,gd).call(this);switch(n.getMajorType()){case 0:{const{unsignedInt:u,bytesRead:l}=Nt(i=Kn,_r,yd).call(i,n,Nt(this,Ot,Au).call(this));return{bytesRead:l,signedInt:BigInt(u)}}case 1:{const{unsignedInt:u,bytesRead:l}=Nt(a=Kn,_r,yd).call(a,n,Nt(this,Ot,Au).call(this));return{bytesRead:l,signedInt:BigInt(-1)-u}}default:throw new Pm(`Reader type mismatch, expected 0 or 1 but got ${n.getMajorType()}`)}},dj=function(n){if(Ut(this,ca).length-Ut(this,Hi)<n)throw new hu(T1)},pj=function(n){var p,h,m;const i=Nt(this,Ot,Au).call(this);let a=dn.Buffer.from([]),u=0,l=1,f=Nt(p=Kn,_r,iS).call(p,i.slice(l),n);for(;f.getInitialByte()!==cs.IndefiniteLengthBreakByte;){const{length:v,bytesRead:A}=Nt(h=Kn,_r,Ym).call(h,f,i.slice(l)),y=A+Number(v);a=dn.Buffer.concat([a,i.slice(l+(y-v),l+y)]),l+=y,f=Nt(m=Kn,_r,iS).call(m,i.slice(l),n)}return u=l+1,{encodingLength:u,val:new Uint8Array(a)}},Qm=function(){++Ut(this,on).itemsRead,is(this,tc,!1)},_r=new WeakSet,iS=function(n,i){Kn.ensureReadCapacityInArray(n,1);const a=cs.from(n[0]);if(a.getInitialByte()!==cs.IndefiniteLengthBreakByte&&a.getMajorType()!==i)throw new hu("Indefinite length string contains invalid data item");return a},hj=function(){var u;const n=Nt(this,Ot,gd).call(this,6),{unsignedInt:i,bytesRead:a}=Nt(u=Kn,_r,yd).call(u,n,Nt(this,Ot,Au).call(this));return{bytesRead:a,tag:Number(i)}},Ym=function(n,i){var l;const{unsignedInt:a,bytesRead:u}=Nt(l=Kn,_r,yd).call(l,n,i);return{bytesRead:u,length:Number(a)}},gd=function(n){if(Ut(this,on).definiteLength!==void 0&&Ut(this,on).definiteLength-Ut(this,on).itemsRead===0)throw new Pm("No more data items to read");if(Ut(this,Hi)===Ut(this,ca).length)throw Ut(this,on).type===null&&Ut(this,on).definiteLength===void 0&&Ut(this,Hi)>0?new Pm("End of root-level. No more data items to read"):new hu(T1);const i=cs.from(Ut(this,ca)[Ut(this,Hi)]);switch(Ut(this,on).type){case 2:case 3:if(i.getInitialByte()===cs.IndefiniteLengthBreakByte||i.getMajorType()===Ut(this,on).type&&i.getAdditionalInfo()!==31)break;throw new hu(`Indefinite length string contains invalid data item, ${i.getMajorType()}`)}if(n&&n!==i.getMajorType())throw new Pm(`Major type mismatch, expected type ${n} but got ${i.getMajorType()}`);return i},yd=function(n,i){if((n.getInitialByte()&cs.AdditionalInformationMask)<24)return{bytesRead:1,unsignedInt:BigInt(n.getAdditionalInfo())};switch(n.getAdditionalInfo()){case 24:return Kn.ensureReadCapacityInArray(i,2),{bytesRead:2,unsignedInt:BigInt(i[1])};case 25:{Kn.ensureReadCapacityInArray(i,3);const u=dn.Buffer.from(i.slice(1)).readUInt16BE();return{bytesRead:3,unsignedInt:BigInt(u)}}case 26:{Kn.ensureReadCapacityInArray(i,5);const u=dn.Buffer.from(i.slice(1)).readUInt32BE();return{bytesRead:5,unsignedInt:BigInt(u)}}case 27:{Kn.ensureReadCapacityInArray(i,9);const a=dn.Buffer.from(i.slice(1,9));let u=BigInt(0);for(const l of a)u=(u<<BigInt(8))+BigInt(l);return{bytesRead:9,unsignedInt:u}}default:throw new hu("Invalid integer encoding")}},bu=function(n){if(Ut(this,Hi)+n>Ut(this,ca).length)throw new hu("Buffer offset out of bounds");is(this,Hi,Ut(this,Hi)+n),is(this,ug,0)},oS=function(n,i){const a={currentKeyOffset:Ut(this,on).currentKeyOffset,definiteLength:Ut(this,on).definiteLength,frameOffset:Ut(this,on).frameOffset,itemsRead:Ut(this,on).itemsRead,type:Ut(this,on).type};Ut(this,sg).push(a),Ut(this,on).type=n,Ut(this,on).definiteLength=i,Ut(this,on).itemsRead=0,Ut(this,on).frameOffset=Ut(this,Hi),is(this,tc,!1),Ut(this,on).currentKeyOffset=null},Au=function(){return Ut(this,ca).slice(Ut(this,Hi))},ra(Kn,_r);let rS=Kn;const EJ=lj("address");function wJ(e){return mj(Vm.decode(e))}function mj(e){const n=new rS(dn.Buffer.from(e).toString("hex"));n.readStartArray(),n.readTag();const i=n.readByteString();if(Number(n.readInt())!==xJ(i))throw new Error(EJ);return!0}function SJ(e){const n=Ww.bech32.decode(e,Number.MAX_SAFE_INTEGER/2),i=Ww.bech32.fromWords(n.words);if(!["addr","addr_test","stake","stake_test"].includes(n.prefix))return!1;switch(i[0]>>4){case 0:case 1:case 2:case 3:return i.length===57;case 4:case 5:{if(i.length<=29)return!1;let u=29;const l=dn.Buffer.from(i),{bytesRead:f}=O1(l.subarray(u));u+=f;const{bytesRead:p}=O1(l.subarray(u));return u+=p,O1(l.subarray(u)),!0}case 6:case 7:return i.length===47;case 14:case 15:return i.length===47;case 8:return mj(new Uint8Array(i));default:throw new Error($u("address"))}}const O1=e=>{let n=!0,i=0n,a=0;for(;n&&a<e.length;){const u=e[a];i<<=7n,i|=BigInt(u&127),n=(u&128)!==0,++a}return{bytesRead:a,value:i}};var Nn=(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))(Nn||{});function Zi(e,n,i=()=>!0){try{return i(n(e))}catch{return!1}}Ro("algorand-address",e=>Zi(e,aJ));Ro("algorand-blockhash",e=>Zi(e,sJ));Ro("algorand-txid",e=>Zi(e,uJ));Ro("mina-address",e=>Zi(e,hJ));Ro("mina-blockhash",e=>Zi(e,mJ));Ro("mina-txid",e=>Zi(e,gJ));Ro("cardano-address",e=>Zi(e,wJ)||Zi(e,SJ));Ro("ss58",e=>Zi(e,BZ.decode));Ro("bs58check",e=>Zi(e,Wg.decode));Ro("bech32",e=>Zi(e,n=>Ww.bech32.decode(n,Number.MAX_SAFE_INTEGER/2)));function ur(e){return S.Transform(e).Decode(n=>n.toLowerCase()).Encode(n=>n.toLowerCase())}function LB(e){return S.Transform(e).Decode(n=>n.toUpperCase()).Encode(n=>n.toUpperCase())}const Ie={Uint256:S.Transform(S.BigInt({maximum:115792089237316195423570985008687907853269984665640564039457584007913129639935n,minimum:0n})).Decode(e=>e.toString()).Encode(e=>BigInt(e)),BlockNumber:e=>S.Unsafe(S.Number(e)),AbsoluteSlotNumber:e=>S.Unsafe(S.Number(e)),EpochNumber:e=>S.Unsafe(S.Number(e)),Algorand:{BlockHash:S.Unsafe(S.String({format:"algorand-blockhash"})),TxHash:S.Unsafe(LB(S.String({format:"algorand-txid"}))),Address:S.Unsafe(LB(S.String({format:"algorand-address"})))},Substrate:{Address:S.Unsafe(S.String({format:"ss58"}))},Avail:{BlockHash:S.Unsafe(ur(S.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:S.Unsafe(S.String({format:"ss58"}))},Cardano:{BlockHash:S.Unsafe(ur(S.RegExp(/^[a-fA-F0-9]{64}$/))),TxHash:S.Unsafe(ur(S.RegExp(/^[a-fA-F0-9]{64}$/))),Address:S.Unsafe(S.String({format:"cardano-address"})),Credential:S.Unsafe(ur(S.RegExp(/^[a-fA-F0-9]{64}$/))),PoolId:S.Unsafe(ur(S.String())),PolicyId:S.Unsafe(ur(S.RegExp(/^[a-fA-F0-9]{56}$/))),AssetName:S.Unsafe(ur(S.RegExp(/^[a-fA-F0-9]{64}$/))),Cip14Fingerprint:S.Unsafe(S.String()),AmountLovelace:S.Unsafe(S.RegExp(/^\d+$/))},Evm:{BlockHash:S.Unsafe(ur(S.RegExp(/^0x[a-fA-F0-9]{64}$/))),TxHash:S.Unsafe(ur(S.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:S.Unsafe(ur(S.RegExp(/^0x[a-fA-F0-9]{40}$/))),Selector:S.Unsafe(ur(S.RegExp(/^0x[a-fA-F0-9]{8}$/))),FullSelector:S.Unsafe(ur(S.RegExp(/^0x[a-fA-F0-9]{64}$/))),Signature:S.Unsafe(S.RegExp(/^0x[a-fA-F0-9]{130}$/)),PrivateKey:S.Unsafe(S.RegExp(/^0x[a-fA-F0-9]{64}$/))},Midnight:{BlockHash:S.Unsafe(ur(S.RegExp(/^0x[a-fA-F0-9]{64}$/))),TxHash:S.Unsafe(ur(S.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:S.Unsafe(ur(S.RegExp(/^[a-fA-F0-9]{181}$/)))},Mina:{BlockHash:S.Unsafe(S.String({format:"mina-blockhash"})),TxHash:S.Unsafe(S.String({format:"mina-txid"})),Address:S.Unsafe(S.String({format:"mina-address"}))},Polkadot:{BlockHash:S.Unsafe(S.String({format:"mina-blockhash"})),TxHash:S.Unsafe(S.String({format:"mina-txid"})),Address:S.Unsafe(S.String({format:"mina-address"}))},Caip2:S.Unsafe(S.String()),WalletAddress:()=>S.Union(CJ),IntervalMs:e=>S.Unsafe(S.Number(e)),IntervalSec:e=>S.Unsafe(S.Number(e)),TimestampMs:e=>S.Unsafe(S.Number(e)),TimestampMsStr:S.Unsafe(S.RegExp(/^\d+$/)),HexString0x:e=>S.Unsafe(S.RegExp(/^0x[a-fA-F0-9]+$/,e)),HexStringNo0x:e=>S.Unsafe(S.RegExp(/^[a-fA-F0-9]+$/,e)),UnknownFormat:S.Unsafe(S.String()),Lowercase:ur(S.String()),TrueOrFalse:S.Transform(S.Union([S.Literal("T"),S.Literal("F")])).Decode(e=>e==="T").Encode(e=>e?"T":"F"),Nullable:(e,n)=>S.Union([e,S.Null()],n),SerializeObjAsJson:()=>S.Transform(S.Unsafe(S.Any())).Decode(e=>JSON.stringify(e)).Encode(e=>JSON.parse(e)),SerializeJsonAsObj:e=>S.Transform(e).Decode(n=>JSON.parse(n)).Encode(n=>JSON.stringify(n)),EvmAbiEvent:S.Unsafe(S.Any())},IJ={0:Ie.Evm.Address,1:Ie.Cardano.Address,2:Ie.Substrate.Address,6:Ie.Avail.Address,3:Ie.Algorand.Address,4:Ie.Mina.Address,5:Ie.Midnight.Address,7:Ie.Polkadot.Address},CJ=[S.Object({type:S.Literal(0),address:Ie.Evm.Address}),S.Object({type:S.Literal(1),address:Ie.Cardano.Address}),S.Object({type:S.Literal(2),address:Ie.Substrate.Address}),S.Object({type:S.Literal(6),address:Ie.Avail.Address}),S.Object({type:S.Literal(3),address:Ie.Algorand.Address}),S.Object({type:S.Literal(4),address:Ie.Mina.Address}),S.Object({type:S.Literal(5),address:Ie.Midnight.Address}),S.Object({type:S.Literal(7),address:Ie.Polkadot.Address})];function Km(e){return{from:n=>{const i=[];for(const a of e)i.push([a,n.properties[a]]);return i}}}function Ql(e){return{from:n=>Km(e).from(n)}}const op=e=>({ok:!0,value:e}),ap=e=>({ok:!1,error:e}),TJ={},gj=OJ(globalThis,TJ);function OJ(e,n){return new Proxy(e,{get(i,a,u){return a in n?n[a]:e[a]},set(i,a,u){return a in n&&delete n[a],e[a]=u,!0},deleteProperty(i,a){let u=!1;return a in n&&(delete n[a],u=!0),a in e&&(delete e[a],u=!0),u},ownKeys(i){const a=Reflect.ownKeys(e),u=Reflect.ownKeys(n),l=new Set(u);return[...a.filter(f=>!l.has(f)),...u]},defineProperty(i,a,u){return a in n&&delete n[a],Reflect.defineProperty(e,a,u),!0},getOwnPropertyDescriptor(i,a){return a in n?Reflect.getOwnPropertyDescriptor(n,a):Reflect.getOwnPropertyDescriptor(e,a)},has(i,a){return a in n||a in e}})}const ss=gj.Temporal??new Proxy({},{get:()=>{}});new Set([Intl.Locale,RegExp,ss.Duration,ss.Instant,ss.PlainDate,ss.PlainDateTime,ss.PlainTime,ss.PlainYearMonth,ss.PlainMonthDay,ss.ZonedDateTime,URL,URLSearchParams].filter(e=>e!=null).map(e=>e.prototype));const{Deno:Lm}=gj;typeof(Lm==null?void 0:Lm.noColor)=="boolean"&&Lm.noColor;function*aS(e){return yield{type:"reset",block:e}}function*SI(e){return yield{type:"shift",block:e}}function RJ(){let e=[];return{reducing:!1,push(...n){return e.push(...n)},pop(){return e.pop()}}}function Eu(e){let n=RJ();return n.push({method:"next",iterator:e()[Symbol.iterator]()}),bd(n)}function bd(e){try{e.reducing=!0;for(let n=e.pop();n;n=e.pop())try{let i=FJ(n);if(e.value=i.value,!i.done){let a=i.value;if(a.type==="reset")e.push({...n,method:"next",get value(){return e.value}},{method:"next",iterator:a.block()[Symbol.iterator]()});else{let u=n,l=km(p=>(e.push({method:"next",iterator:u.iterator,value:p}),bd(e)));l.tail=km(p=>{e.push({method:"next",iterator:u.iterator,value:p}),e.reducing||bd(e)});let f=km(p=>(e.push({method:"throw",iterator:u.iterator,value:p}),bd(e)));f.tail=km(p=>{e.push({method:"throw",iterator:u.iterator,value:p}),e.reducing||bd(e)}),e.push({method:"next",iterator:a.block(l,f)[Symbol.iterator](),value:void 0})}}}catch(i){let a=e.pop();if(a)e.push({...a,method:"throw",value:i});else throw i}}finally{e.reducing=!1}return e.value}function FJ(e){let{iterator:n}=e;if(e.method==="next")return n.next(e.value);{let i=e.value;if(n.throw)return n.throw(i);throw i}}function km(e){let n=!1,i,a;return(u=>{if(n){if(i)throw i.error;return a}else{n=!0;try{return a=e(u)}catch(l){throw i={error:l},l}}})}function hc(e){return SI((n,i)=>({[Symbol.iterator]:()=>({next(){return{done:!0,value:e(n,i)}}})}))}function ig(){return II(NJ)}function NJ(e){return hc(n=>{e.aborted&&n.tail(op(void 0))})}function kB(e){return II(function(i){return SI(function*(a){let u=yield*aS(function*(){let h=yield*hc(v=>v.tail),m=yield*p.destroy();m.ok?a.tail(h):a.tail(m)}),l=h=>u(op(h)),f=h=>u(ap(h)),p=i.createChild(function*(){let h=e(l,f);if(typeof h=="function")try{yield*ig()}finally{h()}else yield*h,yield*ig()});yield*aS(function*(){let h=yield*p;h.ok||a.tail(h)}),p.enter()})})}function DJ(){return II(e=>hc(n=>n.tail(op(e))))}function II(e){return{[Symbol.iterator](){let n=!1;return{next(i){return n?{done:!0,value:i}:(n=!0,{done:!1,value:e})},throw(i){throw i}}}}}function sp(e,n,i){let a={};for(let[u,l]of Object.entries(n))a[u]={enumerable:!0,value:l};return Object.create({...i,[Symbol.toStringTag]:e},a)}function BJ(e){let n=()=>{let i=e();return n=()=>i,i};return()=>n()}function*UJ(){let e,n=new Set;return[yield*aS(function*(){let u=yield*hc(l=>l.tail);e={value:u};for(let l of n)n.delete(l),l(u)}),{[Symbol.iterator](){return e?MJ(e.value):hc(u=>{n.add(u.tail)})[Symbol.iterator]()}}]}function MJ(e){return{next(){return{done:!0,value:e}}}}function _J(e){let n,i=(l,f)=>{Eu(function*(){let p=$B(yield*e);p.ok?l(p.value):f(p.error)})},a=()=>(n=new Promise((l,f)=>{i(l,f)}),a=()=>n,n);return sp("Task",{},{*[Symbol.iterator](){let l=Eu(()=>e);if(l){let f=$B(l);if(f.ok)return f.value;throw f.error}else return yield*kB(function*(f,p){i(f,p)})},then:(...l)=>a().then(...l),catch:(...l)=>a().catch(...l),finally:(...l)=>a().finally(...l),halt(){let l,f=()=>(l=new Promise((h,m)=>{p(h,m)}),f=()=>l,e.destroy(),l),p=(h,m)=>{Eu(function*(){let{destruction:v}=yield*e;v.ok?h():m(v.error)})};return sp("Future",{},{*[Symbol.iterator](){let h=Eu(()=>e);if(h){if(!h.ok)throw h.error}else yield*kB(function*(m,v){p(m,v),e.destroy()})},then:(...h)=>f().then(...h),catch:(...h)=>f().catch(...h),finally:(...h)=>f().finally(...h)})}})}function $B(e){return e.ok?e.exit.type==="aborted"?ap(Error("halted")):e.exit.type==="crashed"?ap(e.exit.error):e.exit.result:e}let jJ=0;function yj(e){return Eu(function*(){let{operation:n,parent:i}=e,a=new Set,u=Object.create(i??{}),l=[{done:!1,value:qB(void 0)}],f,p=()=>{},[h,m]=yield*UJ(),v=yield*hc(F=>{let N=sp("Frame",{id:jJ++,context:u},{createChild(M){let H=yj({operation:M,parent:N.context});return a.add(H),Eu(function*(){yield*H,a.delete(H)}),H},getTask(){let M=_J(N);return N.getTask=()=>M,M},enter(){F.tail(N)},crash(M){return B(M),m},destroy(){return B(),m},[Symbol.iterator]:m[Symbol.iterator]}),B=M=>{N.aborted||(N.aborted=!0,f=M,l.unshift({done:!1,value:LJ()}),p())};return N}),A=BJ(()=>n()[Symbol.iterator]()),y=l.pop();for(;!y.done;){let F=y.value;try{let N=F(A());if(N.done)l.unshift({done:!0,value:op(N.value)});else{let B=N.value,M=yield*SI(function*(H){p=()=>H.tail({type:"interrupted"});try{H.tail({type:"settled",result:yield*B(v)})}catch(k){H.tail({type:"settled",result:ap(k)})}});M.type==="settled"&&(M.result.ok?l.unshift({done:!1,value:qB(M.result.value)}):l.unshift({done:!1,value:PJ(M.result.error)}))}}catch(N){l.unshift({done:!0,value:ap(N)})}y=l.pop()}v.exited=!0;let I=y.value,R;I.ok?f?R={type:"crashed",error:f}:v.aborted?R={type:"aborted"}:R={type:"result",result:I}:R={type:"result",result:I};let U=op(void 0);for(;a.size!==0;)for(let F of[...a].reverse()){let N=yield*F.destroy();N.ok||(U=N)}if(!U.ok)h({ok:!1,error:U.error,exit:R,destruction:U});else if(R.type==="aborted")h({ok:!0,value:void 0,exit:R,destruction:U});else if(R.type==="result"){let{result:F}=R;F.ok?h({ok:!0,value:void 0,exit:R,destruction:U}):h({ok:!1,error:F.error,exit:R,destruction:U})}else h({ok:!1,error:R.error,exit:R,destruction:U})})}const qB=e=>function(i){return i.next(e)},PJ=e=>function(i){if(i.throw)return i.throw(e);throw e},LJ=e=>function(i){return i.return?i.return(e):{done:!0,value:e}};function*R1(){let e=yield*DJ(),[n]=kJ(e);return n}function kJ(e){let n=$J(e)?e.frame.createChild(ig):e??yj({operation:ig}),i=sp("Scope",{},{frame:n,run(a){if(n.exited){let l=new Error("cannot call run() on a scope that has already been exited");throw l.name="InactiveScopeError",l}let u=n.createChild(a);return u.enter(),Eu(function*(){let l=yield*u;l.ok||(yield*n.crash(l.error))}),u.getTask()},get spawn(){let a=this;return function(l){return{*[Symbol.iterator](){return a.run(l)}}}},get(a){let{key:u,defaultValue:l}=a;return n.context[u]??l},set(a,u){let{key:l}=a;return n.context[l]=u,u},expect(a){let u=i.get(a);if(typeof u>"u"){let l=new Error(a.key);throw l.name="MissingContextError",l}return u},delete(a){let{key:u}=a;return delete n.context[u]},hasOwn(a){return!!Reflect.getOwnPropertyDescriptor(n.context,a.key)}});return n.enter(),[i,n.getTask().halt]}function $J(e){return!!e&&typeof e.run=="function"}function qJ(e,n){let i=sp("Context",{key:e},{defaultValue:n,*get(){return(yield*R1()).get(i)},*set(u){return(yield*R1()).set(i,u)},expect:a,*with(u,l){let f=yield*R1(),p=f.hasOwn(i)?f.get(i):void 0;try{return yield*l(f.set(i,u))}finally{typeof p>"u"?f.delete(i):f.set(i,p)}},[Symbol.iterator](){return console.warn(`⚠️ using a context (${e}) directly as an operation is deprecated. Use context.expect() instead`),i[Symbol.iterator]=a,a()}});function*a(){let u=yield*i.get();if(typeof u>"u")throw new HJ(`missing required context: '${e}'`);return u}return i}class HJ extends Error{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MissingContextError"})}}function CI(e){return Object.fromEntries(Object.entries(e).map(([i,a])=>{const u=a.map(([f,p])=>p),l=S.Tuple([S.Literal(i),...u]);return[i,l]}))}function us(e){return["userAddress",IJ[e]]}const ls=[["userSignature",S.String()],["conciseInput",S.String()],["millisecondTimestamp",S.String()]],zJ={[`${Nn.EVM}`]:[us(Nn.EVM),...ls],[`${Nn.CARDANO}`]:[us(Nn.CARDANO),...ls],[`${Nn.SUBSTRATE}`]:[us(Nn.SUBSTRATE),...ls],[`${Nn.AVAIL}`]:[us(Nn.AVAIL),...ls],[`${Nn.ALGORAND}`]:[us(Nn.ALGORAND),...ls],[`${Nn.MINA}`]:[us(Nn.MINA),...ls],[`${Nn.MIDNIGHT}`]:[us(Nn.MIDNIGHT),...ls],[`${Nn.POLKADOT}`]:[us(Nn.POLKADOT),...ls]};CI(zJ);const VJ={batcherInput:"&B"},GJ={[VJ.batcherInput]:[["input",S.Array(S.String())]]};CI(GJ);const F1={createAccount:"&createAccount",linkAddress:"&linkAddress",unlinkAddress:"&unlinkAddress"},QJ={[F1.createAccount]:[],[F1.linkAddress]:[["account_id",S.Number()],["signature_from_primary",S.String()],["primary_address_type",S.Number()],["new_address",S.String()],["signature_from_new_address",S.String()],["new_address_type",S.Number()],["is_new_primary",S.Boolean()]],[F1.unlinkAddress]:[["account_id",S.Number()],["signature_from_primary",S.String()],["primary_address_type",S.Number()],["target_address",S.String()],["target_address_type",S.Number()],["new_primary_address",S.String()],["new_primary_address_type",S.Number()]]};CI(QJ);class jn{constructor(n){this.config=n,this.allProperties=i=>S.Intersect([this.config.required,i?this.config.optional:S.Partial(this.config.optional)]),this.defaultProperties=()=>BX(this.config.optional,{}),this.cloneMerge=i=>{const a=i instanceof jn?i.config:i;return new jn({required:S.Object({...this.config.required.properties,...a.required.properties}),optional:S.Object({...this.config.optional.properties,...a.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 HB=S.Object({name:S.String(),url:S.String(),apiUrl:S.Optional(S.String())}),YJ=S.Object({http:S.Array(S.String()),webSocket:S.Optional(S.Array(S.String()))}),zB=S.Unsafe(YJ),KJ=S.Object({name:S.String(),symbol:S.String({minLength:2,maxLength:6}),decimals:S.Number()}),XJ=new jn({required:S.Object({name:S.String(),type:S.Literal(Jt.EVM),chainId:S.Number(),nativeCurrency:KJ,rpcUrls:S.Intersect([S.Record(S.String(),zB),S.Object({default:zB})])}),optional:S.Object({blockExplorers:Ie.Nullable(S.Intersect([S.Record(S.String(),HB),S.Object({default:HB})]),{default:null}),sourceId:Ie.Nullable(S.Number(),{default:null}),testnet:S.Boolean({default:!1})})}),ZJ=S.Union([S.Literal("preview"),S.Literal("preprod"),S.Literal("mainnet"),S.Literal("yaci")]),JJ=new jn({required:S.Object({name:S.String(),type:S.Literal(Jt.CARDANO),network:ZJ}),optional:S.Object({})}),WJ=new jn({required:S.Object({name:S.String(),type:S.Literal(Jt.MINA),networkId:S.String()}),optional:S.Object({})}),TI=Ie.HexString0x({maxLength:66,minLength:66}),eW=new jn({required:S.Object({name:S.String(),type:S.Literal(Jt.SUBSTRATE),genesisHash:TI}),optional:S.Object({})}),tW=new jn({required:S.Object({name:S.String(),type:S.Literal(Jt.AVAIL),genesisHash:TI}),optional:S.Object({})}),nW=new jn({required:S.Object({name:S.String(),type:S.Literal(Jt.MIDNIGHT),networkId:S.Number(),genesisHash:TI}),optional:S.Object({})});var dd={},VB;function rW(){if(VB)return dd;VB=1,Object.defineProperty(dd,"__esModule",{value:!0}),dd.assertNever=e;function e(n,i){if(typeof i=="string")throw new Error(i);if(typeof i=="function")throw new Error(i(n));if(i)return n;throw new Error("Unhandled discriminated union member: ".concat(JSON.stringify(n)))}return dd.default=e,dd}rW();const iW=S.RegExp("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),oW=new jn({required:S.Object({name:S.String(),type:S.Literal(Jt.ALGORAND),genesisHash:iW}),optional:S.Object({})});S.Object({name:S.String(),url:S.String(),apiUrl:S.Optional(S.String())});const aW=S.Object({http:S.Array(S.String()),webSocket:S.Optional(S.Array(S.String()))});S.Unsafe(aW);S.Object({name:S.String(),symbol:S.String({minLength:2,maxLength:6}),decimals:S.Number()});const sW=new jn({required:S.Object({name:S.String(),type:S.Literal(Jt.NTP),startTime:S.Number(),blockTimeMS:S.Number()}),optional:S.Object({servers:S.Array(S.String())})});Jt.NTP+"",Jt.EVM+"",Jt.CARDANO+"",Jt.MINA+"",Jt.AVAIL+"",Jt.ALGORAND+"",Jt.MIDNIGHT+"",Jt.SUBSTRATE+"";var gt=(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))(gt||{});Jt.NTP,Jt.EVM,Jt.CARDANO,Jt.CARDANO,Jt.MINA,Jt.AVAIL,Jt.MIDNIGHT;const fi=new jn({required:S.Object({name:S.String()}),optional:S.Object({})}),Fc=new jn({required:S.Object({pollingInterval:Ie.IntervalMs()}),optional:S.Object({})}),Ea=new jn({required:S.Object({startBlockHeight:Ie.BlockNumber()}),optional:S.Object({stopBlockHeight:Ie.Nullable(Ie.BlockNumber(),{default:null})})}),ey=new jn({required:S.Object({startSlot:Ie.AbsoluteSlotNumber()}),optional:S.Object({stopSlot:Ie.Nullable(Ie.AbsoluteSlotNumber(),{default:null})})});new jn({required:S.Object({startTimestamp:Ie.TimestampMs()}),optional:S.Object({stopTimestamp:Ie.Nullable(Ie.TimestampMs(),{default:null})})});const uW=new jn({required:S.Object({abi:Ie.EvmAbiEvent}),optional:S.Object({})}),lW=e=>S.Number({default:e}),cW=e=>Ie.IntervalMs({default:e});function Np(e,n,i={}){let a=e*n;return i.factor!=null&&(a*=i.factor),i.absolute!=null&&(a+=i.absolute),{confirmationDepth:lW(e),delayMs:cW(a)}}const Nc={internal:{},payload:{mainchain:S.Object({blockNumber:Ie.Nullable(Ie.BlockNumber()),timestamp:Ie.Nullable(Ie.TimestampMs())})}};function qu(...e){return S.Object({internal:S.Object(Object.assign({},...e.map(n=>n.internal))),payload:S.Object(Object.assign({},...e.map(n=>n.payload)))})}const fW=fi.cloneMerge(Fc).cloneMerge(Ea).cloneMerge({required:S.Object({chainUri:S.String()}),optional:S.Object({stepSize:S.Number({default:1e3})})}),dW={internal:{},payload:{primitiveName:S.String(),caip2:Ie.Caip2,ownChain:S.Object({blockNumber:Ie.BlockNumber()}),transactionHash:Ie.Evm.TxHash,transactionIndex:S.Number(),logIndex:S.Number(),contractAddress:Ie.Evm.Address}},pW=fW.cloneMerge({required:S.Object({type:S.Literal(gt.EVM_RPC_PARALLEL),confirmationDepth:S.Number()}),optional:S.Object({delayMs:Ie.IntervalMs({default:2*1e3})})}),hW=qu(Nc,dW);S.Unsafe(S.String());const mW=Ie.SerializeObjAsJson(),gW=fi.cloneMerge(Fc).cloneMerge(ey).cloneMerge({required:S.Object({name:S.String(),carpUrl:S.String()}),optional:S.Object({stepSize:S.Number({default:1e3}),paginationLimit:S.Number({default:50})})}),yW={internal:{cursor:mW},payload:{primitiveName:S.String(),caip2:Ie.Caip2,ownChain:S.Object({absoluteSlotNumber:Ie.AbsoluteSlotNumber()}),transactionHash:Ie.Cardano.TxHash}},bW=20*1e3,AW=5,vW=gW.cloneMerge({required:S.Object({type:S.Literal(gt.CARDANO_CARP_PARALLEL)}),optional:S.Object({...Np(AW,bW,{factor:2,absolute:0})})}),xW=qu(Nc,yW),EW=Ie.Mina.TxHash,wW=fi.cloneMerge(Fc).cloneMerge(Ea).cloneMerge({required:S.Object({name:S.String(),archiveConnectionString:S.String()}),optional:S.Object({stepSize:S.Number({default:1e3}),paginationLimit:S.Number({default:50})})}),SW={internal:{cursor:EW},payload:{primitiveName:S.String(),caip2:Ie.Caip2,ownChain:S.Object({blockNumber:Ie.BlockNumber()}),transactionHash:Ie.Mina.TxHash,contractAddress:Ie.Mina.Address}},IW=180*1e3,CW=2,TW=wW.cloneMerge({required:S.Object({type:S.Literal(gt.MINA_PARALLEL)}),optional:S.Object({...Np(CW,IW,{factor:2,absolute:0})})}),OW=qu(Nc,SW),RW=fi.cloneMerge(Fc).cloneMerge(Ea).cloneMerge({required:S.Object({name:S.String(),rpc:S.String(),lightClient:S.String()}),optional:S.Object({blockGroupSize:S.Number({default:100}),stepSize:S.Number({default:1e3})})}),FW={internal:{},payload:{primitiveName:S.String(),caip2:Ie.Caip2,ownChain:S.Object({blockNumber:Ie.BlockNumber()}),extrinsicIndex:S.Number()}},GB=20*1e3,NW=3,DW=RW.cloneMerge({required:S.Object({type:S.Literal(gt.AVAIL_PARALLEL)}),optional:S.Object({...Np(NW,GB,{absolute:GB})})}),BW=qu(Nc,FW),UW=fi.cloneMerge(Fc).cloneMerge(Ea).cloneMerge({required:S.Object({indexer:S.String()}),optional:S.Object({indexerWS:Ie.Nullable(S.String(),{default:null}),stepSize:S.Number({default:1e3}),paginationLimit:S.Number({default:50})})}),MW={internal:{},payload:{primitiveName:S.String(),caip2:Ie.Caip2,ownChain:S.Object({blockNumber:Ie.BlockNumber()}),transactionHash:Ie.Midnight.TxHash}},_W=6*1e3,jW=3,PW=UW.cloneMerge({required:S.Object({type:S.Literal(gt.MIDNIGHT_PARALLEL)}),optional:S.Object({...Np(jW,_W,{absolute:2*1e3})})}),LW=qu(Nc,MW),kW=fi.cloneMerge(ey).cloneMerge({required:S.Object({name:S.String(),rpcUrl:S.String()}),optional:S.Object({})}),$W={internal:{},payload:{primitiveName:S.String(),caip2:Ie.Caip2,ownChain:S.Object({absoluteSlotNumber:Ie.AbsoluteSlotNumber()}),transactionHash:Ie.Cardano.TxHash}},qW=20*1e3,HW=5,zW=kW.cloneMerge({required:S.Object({type:S.Literal(gt.CARDANO_UTXORPC_PARALLEL)}),optional:S.Object({...Np(HW,qW,{factor:2,absolute:0})})}),VW=qu(Nc,$W);var OI=(e=>(e.EMULATED="emulated",e))(OI||{});const GW=new jn({required:S.Object({name:S.String(),blockTimeMs:Ie.IntervalMs(),type:S.Literal(OI.EMULATED)}),optional:S.Object({})});OI.EMULATED+"";const QW=fi.cloneMerge(Fc).cloneMerge(Ea).cloneMerge({required:S.Object({}),optional:S.Object({stepSize:S.Number({default:1e3})})}),YW={internal:{},payload:{ownChain:S.Object({blockNumber:Ie.BlockNumber()})}},KW=QW.cloneMerge({required:S.Object({type:S.Literal(gt.NTP_MAIN)}),optional:S.Object({})}),XW=qu(YW);gt.NTP_MAIN+"";gt.EVM_RPC_PARALLEL+"",gt.CARDANO_CARP_PARALLEL+"",gt.CARDANO_UTXORPC_PARALLEL+"",gt.MINA_PARALLEL+"",gt.AVAIL_PARALLEL+"",gt.MIDNIGHT_PARALLEL+"";const ZW={[gt.NTP_MAIN]:XW,[gt.EVM_RPC_PARALLEL]:hW,[gt.CARDANO_CARP_PARALLEL]:xW,[gt.CARDANO_UTXORPC_PARALLEL]:VW,[gt.MINA_PARALLEL]:OW,[gt.AVAIL_PARALLEL]:BW,[gt.MIDNIGHT_PARALLEL]:LW};function JW(e,n){return S.Intersect([n,S.Object({name:S.String(),type:S.Literal(e)})])}Object.entries(ZW).map(([e,n])=>JW(e,n));var Qe=(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))(Qe||{});gt.AVAIL_PARALLEL;gt.CARDANO_CARP_PARALLEL,gt.CARDANO_CARP_PARALLEL,gt.CARDANO_CARP_PARALLEL,gt.CARDANO_CARP_PARALLEL,gt.CARDANO_CARP_PARALLEL;gt.CARDANO_UTXORPC_PARALLEL;gt.EVM_RPC_PARALLEL,gt.EVM_RPC_PARALLEL,gt.EVM_RPC_PARALLEL,gt.EVM_RPC_PARALLEL,gt.EVM_RPC_PARALLEL,gt.EVM_RPC_PARALLEL,gt.EVM_RPC_PARALLEL;gt.MINA_PARALLEL,gt.MINA_PARALLEL;gt.MIDNIGHT_PARALLEL;const Hu=fi.cloneMerge(Ea).cloneMerge(uW);Hu.cloneMerge({required:S.Object({type:S.Literal(Qe.EvmRpcPaimaL2),contractAddress:Ie.Evm.Address}),optional:S.Object({})});Hu.cloneMerge({required:S.Object({type:S.Literal(Qe.EvmRpcERC20),contractAddress:Ie.Evm.Address}),optional:S.Object({scheduledPrefix:S.String()})});const WW=Hu.cloneMerge({required:S.Object({type:S.Literal(Qe.EvmRpcERC721),contractAddress:Ie.Evm.Address,scheduledPrefix:S.String(),burnScheduledPrefix:S.Optional(S.String())}),optional:S.Object({})});Hu.cloneMerge({required:S.Object({type:S.Literal(Qe.EvmRpcERC1155),contractAddress:Ie.Evm.Address,scheduledPrefix:S.Optional(S.String()),burnScheduledPrefix:S.Optional(S.String())}),optional:S.Object({})});const eee=Hu.cloneMerge({required:S.Object({type:S.Literal(Qe.EvmRpcGeneric),contractAddress:Ie.Evm.Address,abi:Ie.EvmAbiEvent,scheduledPrefix:S.String()}),optional:S.Object({})});Hu.cloneMerge({required:S.Object({type:S.Literal(Qe.EvmRpcERC6551Registry),contractAddress:S.Optional(Ie.Evm.Address),implementation:S.Optional(Ie.Evm.Address),tokenContract:S.Optional(Ie.Evm.Address),tokenId:S.Optional(Ie.Uint256),salt:S.Optional(Ie.Uint256)}),optional:S.Object({})});Hu.cloneMerge({required:S.Object({type:S.Literal(Qe.EvmRpcDynamicPrimitive),contractAddress:Ie.Evm.Address,abi:Ie.EvmAbiEvent,targetConfig:S.Union([S.Omit(WW.allProperties(!1),["name","startBlockHeight","stopBlockHeight","contractAddress"]),S.Omit(eee.allProperties(!1),["name","startBlockHeight","stopBlockHeight","contractAddress"])]),dynamicFields:S.Object({contractAddress:Ie.Evm.Address})}),optional:S.Object({})});const Dp=fi.cloneMerge(ey);Dp.cloneMerge({required:S.Object({type:S.Literal(Qe.CardanoCarpDelegation),pools:S.Array(Ie.Cardano.PoolId),scheduledPrefix:S.String()}),optional:S.Object({})});Dp.cloneMerge({required:S.Object({type:S.Literal(Qe.CardanoCarpProjectedNFT),scheduledPrefix:S.Optional(S.String())}),optional:S.Object({})});Dp.cloneMerge({required:S.Object({type:S.Literal(Qe.CardanoCarpDelayedAsset),fingerprints:S.Optional(S.Array(Ie.Cardano.Cip14Fingerprint)),policyIds:S.Optional(S.Array(Ie.Cardano.PolicyId))}),optional:S.Object({})});Dp.cloneMerge({required:S.Object({type:S.Literal(Qe.CardanoCarpTransfer),credential:Ie.Cardano.Credential,scheduledPrefix:S.String()}),optional:S.Object({})});Dp.cloneMerge({required:S.Object({type:S.Literal(Qe.CardanoCarpMintBurn),policyIds:S.Array(Ie.Cardano.PolicyId),scheduledPrefix:S.String()}),optional:S.Object({})});const tee=fi.cloneMerge(ey);tee.cloneMerge({required:S.Object({type:S.Literal(Qe.CardanoUtxorpcMatchTx),scheduledPrefix:S.String()}),optional:S.Object({})});const bj=fi.cloneMerge(Ea);bj.cloneMerge({required:S.Object({type:S.Literal(Qe.MinaEventGeneric),address:Ie.Mina.Address,scheduledPrefix:S.String(),name:S.String()}),optional:S.Object({})});bj.cloneMerge({required:S.Object({type:S.Literal(Qe.MinaActionGeneric),address:Ie.Mina.Address,scheduledPrefix:S.String(),name:S.String()}),optional:S.Object({})});const nee=fi.cloneMerge(Ea);nee.cloneMerge({required:S.Object({type:S.Literal(Qe.MidnightContractState),contractAddress:Ie.Midnight.Address,scheduledPrefix:S.String()}),optional:S.Object({})});const ree=fi.cloneMerge(Ea);ree.cloneMerge({required:S.Object({type:S.Literal(Qe.AvailPaimaL2),contractAddress:Ie.Avail.Address,appId:S.Number()}),optional:S.Object({})});var hn=(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))(hn||{});const iee=S.Object({inputData:Ie.UnknownFormat,suppliedValue:Ie.Uint256,inputNonce:Ie.HexString0x()});S.Object({primitive:S.Literal(Qe.AvailPaimaL2),payloadType:S.Literal(hn.Event),payload:iee});var mu={},sa={},$m={exports:{}},N1,QB;function Aj(){return QB||(QB=1,N1=function(n,i){return function(){for(var u=new Array(arguments.length),l=0;l<u.length;l++)u[l]=arguments[l];return n.apply(i,u)}}),N1}var D1,YB;function nr(){if(YB)return D1;YB=1;var e=Aj(),n=Object.prototype.toString,i=(function(D){return function(fe){var be=n.call(fe);return D[be]||(D[be]=be.slice(8,-1).toLowerCase())}})(Object.create(null));function a(D){return D=D.toLowerCase(),function(be){return i(be)===D}}function u(D){return Array.isArray(D)}function l(D){return typeof D>"u"}function f(D){return D!==null&&!l(D)&&D.constructor!==null&&!l(D.constructor)&&typeof D.constructor.isBuffer=="function"&&D.constructor.isBuffer(D)}var p=a("ArrayBuffer");function h(D){var fe;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?fe=ArrayBuffer.isView(D):fe=D&&D.buffer&&p(D.buffer),fe}function m(D){return typeof D=="string"}function v(D){return typeof D=="number"}function A(D){return D!==null&&typeof D=="object"}function y(D){if(i(D)!=="object")return!1;var fe=Object.getPrototypeOf(D);return fe===null||fe===Object.prototype}var I=a("Date"),R=a("File"),U=a("Blob"),F=a("FileList");function N(D){return n.call(D)==="[object Function]"}function B(D){return A(D)&&N(D.pipe)}function M(D){var fe="[object FormData]";return D&&(typeof FormData=="function"&&D instanceof FormData||n.call(D)===fe||N(D.toString)&&D.toString()===fe)}var H=a("URLSearchParams");function k(D){return D.trim?D.trim():D.replace(/^\s+|\s+$/g,"")}function X(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function re(D,fe){if(!(D===null||typeof D>"u"))if(typeof D!="object"&&(D=[D]),u(D))for(var be=0,te=D.length;be<te;be++)fe.call(null,D[be],be,D);else for(var j in D)Object.prototype.hasOwnProperty.call(D,j)&&fe.call(null,D[j],j,D)}function ie(){var D={};function fe(j,ue){y(D[ue])&&y(j)?D[ue]=ie(D[ue],j):y(j)?D[ue]=ie({},j):u(j)?D[ue]=j.slice():D[ue]=j}for(var be=0,te=arguments.length;be<te;be++)re(arguments[be],fe);return D}function O(D,fe,be){return re(fe,function(j,ue){be&&typeof j=="function"?D[ue]=e(j,be):D[ue]=j}),D}function P(D){return D.charCodeAt(0)===65279&&(D=D.slice(1)),D}function L(D,fe,be,te){D.prototype=Object.create(fe.prototype,te),D.prototype.constructor=D,be&&Object.assign(D.prototype,be)}function q(D,fe,be){var te,j,ue,me={};fe=fe||{};do{for(te=Object.getOwnPropertyNames(D),j=te.length;j-- >0;)ue=te[j],me[ue]||(fe[ue]=D[ue],me[ue]=!0);D=Object.getPrototypeOf(D)}while(D&&(!be||be(D,fe))&&D!==Object.prototype);return fe}function oe(D,fe,be){D=String(D),(be===void 0||be>D.length)&&(be=D.length),be-=fe.length;var te=D.indexOf(fe,be);return te!==-1&&te===be}function ge(D){if(!D)return null;var fe=D.length;if(l(fe))return null;for(var be=new Array(fe);fe-- >0;)be[fe]=D[fe];return be}var Ee=(function(D){return function(fe){return D&&fe instanceof D}})(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));return D1={isArray:u,isArrayBuffer:p,isBuffer:f,isFormData:M,isArrayBufferView:h,isString:m,isNumber:v,isObject:A,isPlainObject:y,isUndefined:l,isDate:I,isFile:R,isBlob:U,isFunction:N,isStream:B,isURLSearchParams:H,isStandardBrowserEnv:X,forEach:re,merge:ie,extend:O,trim:k,stripBOM:P,inherits:L,toFlatObject:q,kindOf:i,kindOfTest:a,endsWith:oe,toArray:ge,isTypedArray:Ee,isFileList:F},D1}var B1,KB;function vj(){if(KB)return B1;KB=1;var e=nr();function n(i){return encodeURIComponent(i).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return B1=function(a,u,l){if(!u)return a;var f;if(l)f=l(u);else if(e.isURLSearchParams(u))f=u.toString();else{var p=[];e.forEach(u,function(v,A){v===null||typeof v>"u"||(e.isArray(v)?A=A+"[]":v=[v],e.forEach(v,function(I){e.isDate(I)?I=I.toISOString():e.isObject(I)&&(I=JSON.stringify(I)),p.push(n(A)+"="+n(I))}))}),f=p.join("&")}if(f){var h=a.indexOf("#");h!==-1&&(a=a.slice(0,h)),a+=(a.indexOf("?")===-1?"?":"&")+f}return a},B1}var U1,XB;function oee(){if(XB)return U1;XB=1;var e=nr();function n(){this.handlers=[]}return n.prototype.use=function(a,u,l){return this.handlers.push({fulfilled:a,rejected:u,synchronous:l?l.synchronous:!1,runWhen:l?l.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(a){this.handlers[a]&&(this.handlers[a]=null)},n.prototype.forEach=function(a){e.forEach(this.handlers,function(l){l!==null&&a(l)})},U1=n,U1}var M1,ZB;function aee(){if(ZB)return M1;ZB=1;var e=nr();return M1=function(i,a){e.forEach(i,function(l,f){f!==a&&f.toUpperCase()===a.toUpperCase()&&(i[a]=l,delete i[f])})},M1}var _1,JB;function Dc(){if(JB)return _1;JB=1;var e=nr();function n(u,l,f,p,h){Error.call(this),this.message=u,this.name="AxiosError",l&&(this.code=l),f&&(this.config=f),p&&(this.request=p),h&&(this.response=h)}e.inherits(n,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=n.prototype,a={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(u){a[u]={value:u}}),Object.defineProperties(n,a),Object.defineProperty(i,"isAxiosError",{value:!0}),n.from=function(u,l,f,p,h,m){var v=Object.create(i);return e.toFlatObject(u,v,function(y){return y!==Error.prototype}),n.call(v,u.message,l,f,p,h),v.name=u.name,m&&Object.assign(v,m),v},_1=n,_1}var j1,WB;function xj(){return WB||(WB=1,j1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),j1}var P1,e3;function Ej(){if(e3)return P1;e3=1;var e=nr();function n(i,a){a=a||new FormData;var u=[];function l(p){return p===null?"":e.isDate(p)?p.toISOString():e.isArrayBuffer(p)||e.isTypedArray(p)?typeof Blob=="function"?new Blob([p]):dn.Buffer.from(p):p}function f(p,h){if(e.isPlainObject(p)||e.isArray(p)){if(u.indexOf(p)!==-1)throw Error("Circular reference detected in "+h);u.push(p),e.forEach(p,function(v,A){if(!e.isUndefined(v)){var y=h?h+"."+A:A,I;if(v&&!h&&typeof v=="object"){if(e.endsWith(A,"{}"))v=JSON.stringify(v);else if(e.endsWith(A,"[]")&&(I=e.toArray(v))){I.forEach(function(R){!e.isUndefined(R)&&a.append(y,l(R))});return}}f(v,y)}}),u.pop()}else a.append(h,l(p))}return f(i),a}return P1=n,P1}var L1,t3;function see(){if(t3)return L1;t3=1;var e=Dc();return L1=function(i,a,u){var l=u.config.validateStatus;!u.status||!l||l(u.status)?i(u):a(new e("Request failed with status code "+u.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(u.status/100)-4],u.config,u.request,u))},L1}var k1,n3;function uee(){if(n3)return k1;n3=1;var e=nr();return k1=e.isStandardBrowserEnv()?(function(){return{write:function(a,u,l,f,p,h){var m=[];m.push(a+"="+encodeURIComponent(u)),e.isNumber(l)&&m.push("expires="+new Date(l).toGMTString()),e.isString(f)&&m.push("path="+f),e.isString(p)&&m.push("domain="+p),h===!0&&m.push("secure"),document.cookie=m.join("; ")},read:function(a){var u=document.cookie.match(new RegExp("(^|;\\s*)("+a+")=([^;]*)"));return u?decodeURIComponent(u[3]):null},remove:function(a){this.write(a,"",Date.now()-864e5)}}})():(function(){return{write:function(){},read:function(){return null},remove:function(){}}})(),k1}var $1,r3;function lee(){return r3||(r3=1,$1=function(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}),$1}var q1,i3;function cee(){return i3||(i3=1,q1=function(n,i){return i?n.replace(/\/+$/,"")+"/"+i.replace(/^\/+/,""):n}),q1}var H1,o3;function wj(){if(o3)return H1;o3=1;var e=lee(),n=cee();return H1=function(a,u){return a&&!e(u)?n(a,u):u},H1}var z1,a3;function fee(){if(a3)return z1;a3=1;var e=nr(),n=["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 z1=function(a){var u={},l,f,p;return a&&e.forEach(a.split(`
370
- `),function(m){if(p=m.indexOf(":"),l=e.trim(m.substr(0,p)).toLowerCase(),f=e.trim(m.substr(p+1)),l){if(u[l]&&n.indexOf(l)>=0)return;l==="set-cookie"?u[l]=(u[l]?u[l]:[]).concat([f]):u[l]=u[l]?u[l]+", "+f:f}}),u},z1}var V1,s3;function dee(){if(s3)return V1;s3=1;var e=nr();return V1=e.isStandardBrowserEnv()?(function(){var i=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a"),u;function l(f){var p=f;return i&&(a.setAttribute("href",p),p=a.href),a.setAttribute("href",p),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return u=l(window.location.href),function(p){var h=e.isString(p)?l(p):p;return h.protocol===u.protocol&&h.host===u.host}})():(function(){return function(){return!0}})(),V1}var G1,u3;function ty(){if(u3)return G1;u3=1;var e=Dc(),n=nr();function i(a){e.call(this,a??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return n.inherits(i,e,{__CANCEL__:!0}),G1=i,G1}var Q1,l3;function pee(){return l3||(l3=1,Q1=function(n){var i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return i&&i[1]||""}),Q1}var Y1,c3;function f3(){if(c3)return Y1;c3=1;var e=nr(),n=see(),i=uee(),a=vj(),u=wj(),l=fee(),f=dee(),p=xj(),h=Dc(),m=ty(),v=pee();return Y1=function(y){return new Promise(function(R,U){var F=y.data,N=y.headers,B=y.responseType,M;function H(){y.cancelToken&&y.cancelToken.unsubscribe(M),y.signal&&y.signal.removeEventListener("abort",M)}e.isFormData(F)&&e.isStandardBrowserEnv()&&delete N["Content-Type"];var k=new XMLHttpRequest;if(y.auth){var X=y.auth.username||"",re=y.auth.password?unescape(encodeURIComponent(y.auth.password)):"";N.Authorization="Basic "+btoa(X+":"+re)}var ie=u(y.baseURL,y.url);k.open(y.method.toUpperCase(),a(ie,y.params,y.paramsSerializer),!0),k.timeout=y.timeout;function O(){if(k){var q="getAllResponseHeaders"in k?l(k.getAllResponseHeaders()):null,oe=!B||B==="text"||B==="json"?k.responseText:k.response,ge={data:oe,status:k.status,statusText:k.statusText,headers:q,config:y,request:k};n(function(D){R(D),H()},function(D){U(D),H()},ge),k=null}}if("onloadend"in k?k.onloadend=O:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(O)},k.onabort=function(){k&&(U(new h("Request aborted",h.ECONNABORTED,y,k)),k=null)},k.onerror=function(){U(new h("Network Error",h.ERR_NETWORK,y,k,k)),k=null},k.ontimeout=function(){var oe=y.timeout?"timeout of "+y.timeout+"ms exceeded":"timeout exceeded",ge=y.transitional||p;y.timeoutErrorMessage&&(oe=y.timeoutErrorMessage),U(new h(oe,ge.clarifyTimeoutError?h.ETIMEDOUT:h.ECONNABORTED,y,k)),k=null},e.isStandardBrowserEnv()){var P=(y.withCredentials||f(ie))&&y.xsrfCookieName?i.read(y.xsrfCookieName):void 0;P&&(N[y.xsrfHeaderName]=P)}"setRequestHeader"in k&&e.forEach(N,function(oe,ge){typeof F>"u"&&ge.toLowerCase()==="content-type"?delete N[ge]:k.setRequestHeader(ge,oe)}),e.isUndefined(y.withCredentials)||(k.withCredentials=!!y.withCredentials),B&&B!=="json"&&(k.responseType=y.responseType),typeof y.onDownloadProgress=="function"&&k.addEventListener("progress",y.onDownloadProgress),typeof y.onUploadProgress=="function"&&k.upload&&k.upload.addEventListener("progress",y.onUploadProgress),(y.cancelToken||y.signal)&&(M=function(q){k&&(U(!q||q&&q.type?new m:q),k.abort(),k=null)},y.cancelToken&&y.cancelToken.subscribe(M),y.signal&&(y.signal.aborted?M():y.signal.addEventListener("abort",M))),F||(F=null);var L=v(ie);if(L&&["http","https","file"].indexOf(L)===-1){U(new h("Unsupported protocol "+L+":",h.ERR_BAD_REQUEST,y));return}k.send(F)})},Y1}var K1,d3;function hee(){return d3||(d3=1,K1=null),K1}var X1,p3;function RI(){if(p3)return X1;p3=1;var e=nr(),n=aee(),i=Dc(),a=xj(),u=Ej(),l={"Content-Type":"application/x-www-form-urlencoded"};function f(v,A){!e.isUndefined(v)&&e.isUndefined(v["Content-Type"])&&(v["Content-Type"]=A)}function p(){var v;return(typeof XMLHttpRequest<"u"||typeof Dt<"u"&&Object.prototype.toString.call(Dt)==="[object process]")&&(v=f3()),v}function h(v,A,y){if(e.isString(v))try{return(A||JSON.parse)(v),e.trim(v)}catch(I){if(I.name!=="SyntaxError")throw I}return(y||JSON.stringify)(v)}var m={transitional:a,adapter:p(),transformRequest:[function(A,y){if(n(y,"Accept"),n(y,"Content-Type"),e.isFormData(A)||e.isArrayBuffer(A)||e.isBuffer(A)||e.isStream(A)||e.isFile(A)||e.isBlob(A))return A;if(e.isArrayBufferView(A))return A.buffer;if(e.isURLSearchParams(A))return f(y,"application/x-www-form-urlencoded;charset=utf-8"),A.toString();var I=e.isObject(A),R=y&&y["Content-Type"],U;if((U=e.isFileList(A))||I&&R==="multipart/form-data"){var F=this.env&&this.env.FormData;return u(U?{"files[]":A}:A,F&&new F)}else if(I||R==="application/json")return f(y,"application/json"),h(A);return A}],transformResponse:[function(A){var y=this.transitional||m.transitional,I=y&&y.silentJSONParsing,R=y&&y.forcedJSONParsing,U=!I&&this.responseType==="json";if(U||R&&e.isString(A)&&A.length)try{return JSON.parse(A)}catch(F){if(U)throw F.name==="SyntaxError"?i.from(F,i.ERR_BAD_RESPONSE,this,null,this.response):F}return A}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:hee()},validateStatus:function(A){return A>=200&&A<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(A){m.headers[A]={}}),e.forEach(["post","put","patch"],function(A){m.headers[A]=e.merge(l)}),X1=m,X1}var Z1,h3;function mee(){if(h3)return Z1;h3=1;var e=nr(),n=RI();return Z1=function(a,u,l){var f=this||n;return e.forEach(l,function(h){a=h.call(f,a,u)}),a},Z1}var J1,m3;function Sj(){return m3||(m3=1,J1=function(n){return!!(n&&n.__CANCEL__)}),J1}var W1,g3;function gee(){if(g3)return W1;g3=1;var e=nr(),n=mee(),i=Sj(),a=RI(),u=ty();function l(f){if(f.cancelToken&&f.cancelToken.throwIfRequested(),f.signal&&f.signal.aborted)throw new u}return W1=function(p){l(p),p.headers=p.headers||{},p.data=n.call(p,p.data,p.headers,p.transformRequest),p.headers=e.merge(p.headers.common||{},p.headers[p.method]||{},p.headers),e.forEach(["delete","get","head","post","put","patch","common"],function(v){delete p.headers[v]});var h=p.adapter||a.adapter;return h(p).then(function(v){return l(p),v.data=n.call(p,v.data,v.headers,p.transformResponse),v},function(v){return i(v)||(l(p),v&&v.response&&(v.response.data=n.call(p,v.response.data,v.response.headers,p.transformResponse))),Promise.reject(v)})},W1}var ex,y3;function Ij(){if(y3)return ex;y3=1;var e=nr();return ex=function(i,a){a=a||{};var u={};function l(A,y){return e.isPlainObject(A)&&e.isPlainObject(y)?e.merge(A,y):e.isPlainObject(y)?e.merge({},y):e.isArray(y)?y.slice():y}function f(A){if(e.isUndefined(a[A])){if(!e.isUndefined(i[A]))return l(void 0,i[A])}else return l(i[A],a[A])}function p(A){if(!e.isUndefined(a[A]))return l(void 0,a[A])}function h(A){if(e.isUndefined(a[A])){if(!e.isUndefined(i[A]))return l(void 0,i[A])}else return l(void 0,a[A])}function m(A){if(A in a)return l(i[A],a[A]);if(A in i)return l(void 0,i[A])}var v={url:p,method:p,data:p,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,adapter:h,responseType:h,xsrfCookieName:h,xsrfHeaderName:h,onUploadProgress:h,onDownloadProgress:h,decompress:h,maxContentLength:h,maxBodyLength:h,beforeRedirect:h,transport:h,httpAgent:h,httpsAgent:h,cancelToken:h,socketPath:h,responseEncoding:h,validateStatus:m};return e.forEach(Object.keys(i).concat(Object.keys(a)),function(y){var I=v[y]||f,R=I(y);e.isUndefined(R)&&I!==m||(u[y]=R)}),u},ex}var tx,b3;function Cj(){return b3||(b3=1,tx={version:"0.27.2"}),tx}var nx,A3;function yee(){if(A3)return nx;A3=1;var e=Cj().version,n=Dc(),i={};["object","boolean","number","function","string","symbol"].forEach(function(l,f){i[l]=function(h){return typeof h===l||"a"+(f<1?"n ":" ")+l}});var a={};i.transitional=function(f,p,h){function m(v,A){return"[Axios v"+e+"] Transitional option '"+v+"'"+A+(h?". "+h:"")}return function(v,A,y){if(f===!1)throw new n(m(A," has been removed"+(p?" in "+p:"")),n.ERR_DEPRECATED);return p&&!a[A]&&(a[A]=!0,console.warn(m(A," has been deprecated since v"+p+" and will be removed in the near future"))),f?f(v,A,y):!0}};function u(l,f,p){if(typeof l!="object")throw new n("options must be an object",n.ERR_BAD_OPTION_VALUE);for(var h=Object.keys(l),m=h.length;m-- >0;){var v=h[m],A=f[v];if(A){var y=l[v],I=y===void 0||A(y,v,l);if(I!==!0)throw new n("option "+v+" must be "+I,n.ERR_BAD_OPTION_VALUE);continue}if(p!==!0)throw new n("Unknown option "+v,n.ERR_BAD_OPTION)}}return nx={assertOptions:u,validators:i},nx}var rx,v3;function bee(){if(v3)return rx;v3=1;var e=nr(),n=vj(),i=oee(),a=gee(),u=Ij(),l=wj(),f=yee(),p=f.validators;function h(m){this.defaults=m,this.interceptors={request:new i,response:new i}}return h.prototype.request=function(v,A){typeof v=="string"?(A=A||{},A.url=v):A=v||{},A=u(this.defaults,A),A.method?A.method=A.method.toLowerCase():this.defaults.method?A.method=this.defaults.method.toLowerCase():A.method="get";var y=A.transitional;y!==void 0&&f.assertOptions(y,{silentJSONParsing:p.transitional(p.boolean),forcedJSONParsing:p.transitional(p.boolean),clarifyTimeoutError:p.transitional(p.boolean)},!1);var I=[],R=!0;this.interceptors.request.forEach(function(X){typeof X.runWhen=="function"&&X.runWhen(A)===!1||(R=R&&X.synchronous,I.unshift(X.fulfilled,X.rejected))});var U=[];this.interceptors.response.forEach(function(X){U.push(X.fulfilled,X.rejected)});var F;if(!R){var N=[a,void 0];for(Array.prototype.unshift.apply(N,I),N=N.concat(U),F=Promise.resolve(A);N.length;)F=F.then(N.shift(),N.shift());return F}for(var B=A;I.length;){var M=I.shift(),H=I.shift();try{B=M(B)}catch(k){H(k);break}}try{F=a(B)}catch(k){return Promise.reject(k)}for(;U.length;)F=F.then(U.shift(),U.shift());return F},h.prototype.getUri=function(v){v=u(this.defaults,v);var A=l(v.baseURL,v.url);return n(A,v.params,v.paramsSerializer)},e.forEach(["delete","get","head","options"],function(v){h.prototype[v]=function(A,y){return this.request(u(y||{},{method:v,url:A,data:(y||{}).data}))}}),e.forEach(["post","put","patch"],function(v){function A(y){return function(R,U,F){return this.request(u(F||{},{method:v,headers:y?{"Content-Type":"multipart/form-data"}:{},url:R,data:U}))}}h.prototype[v]=A(),h.prototype[v+"Form"]=A(!0)}),rx=h,rx}var ix,x3;function Aee(){if(x3)return ix;x3=1;var e=ty();function n(i){if(typeof i!="function")throw new TypeError("executor must be a function.");var a;this.promise=new Promise(function(f){a=f});var u=this;this.promise.then(function(l){if(u._listeners){var f,p=u._listeners.length;for(f=0;f<p;f++)u._listeners[f](l);u._listeners=null}}),this.promise.then=function(l){var f,p=new Promise(function(h){u.subscribe(h),f=h}).then(l);return p.cancel=function(){u.unsubscribe(f)},p},i(function(f){u.reason||(u.reason=new e(f),a(u.reason))})}return n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.prototype.subscribe=function(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]},n.prototype.unsubscribe=function(a){if(this._listeners){var u=this._listeners.indexOf(a);u!==-1&&this._listeners.splice(u,1)}},n.source=function(){var a,u=new n(function(f){a=f});return{token:u,cancel:a}},ix=n,ix}var ox,E3;function vee(){return E3||(E3=1,ox=function(n){return function(a){return n.apply(null,a)}}),ox}var ax,w3;function xee(){if(w3)return ax;w3=1;var e=nr();return ax=function(i){return e.isObject(i)&&i.isAxiosError===!0},ax}var S3;function Eee(){if(S3)return $m.exports;S3=1;var e=nr(),n=Aj(),i=bee(),a=Ij(),u=RI();function l(p){var h=new i(p),m=n(i.prototype.request,h);return e.extend(m,i.prototype,h),e.extend(m,h),m.create=function(A){return l(a(p,A))},m}var f=l(u);return f.Axios=i,f.CanceledError=ty(),f.CancelToken=Aee(),f.isCancel=Sj(),f.VERSION=Cj().version,f.toFormData=Ej(),f.AxiosError=Dc(),f.Cancel=f.CanceledError,f.all=function(h){return Promise.all(h)},f.spread=vee(),f.isAxiosError=xee(),$m.exports=f,$m.exports.default=f,$m.exports}var sx,I3;function wee(){return I3||(I3=1,sx=Eee()),sx}var C3;function Tj(){if(C3)return sa;C3=1;var e=sa&&sa.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(sa,"__esModule",{value:!0}),sa.getErrorResponse=sa.query=void 0;const n=e(wee());async function i(u,l,f){return(await n.default.post(`${u}/${l}`,f)).data}sa.query=i;function a(u){if(u.response==null)throw new Error("Unexpected null response");return u.response}return sa.getErrorResponse=a,sa}var Ar={},ux={},T3;function Oj(){return T3||(T3=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Routes=void 0,(function(n){n.transactionHistory="transaction/history",n.transactionOutput="transaction/output",n.addressUsed="address/used",n.credentialAddress="credential/address",n.blockLatest="block/latest",n.metadataNft="metadata/nft",n.dexMeanPrice="dex/mean-price",n.dexSwap="dex/swap",n.dexLastPrice="dex/last-price",n.delegationForAddress="delegation/address",n.delegationForPool="delegation/pool",n.projectedNftEventsRange="projected-nft/range",n.assetUtxos="asset/utxos",n.mintBurnHistory="asset/mint-burn-history",n.drepDelegationForAddress="delegation/drep/address",n.governanceVotesForCredential="governance/credential/votes",n.governanceCredentialVotesByGovActionId="governance/credential/votesByGovId"})(e.Routes||(e.Routes={}))})(ux)),ux}var lx,O3;function See(){if(O3)return lx;O3=1;function e(n,i,a){var u=-1,l=n.length;i<0&&(i=-i>l?0:l+i),a=a>l?l:a,a<0&&(a+=l),l=i>a?0:a-i>>>0,i>>>=0;for(var f=Array(l);++u<l;)f[u]=n[u+i];return f}return lx=e,lx}var cx,R3;function ny(){if(R3)return cx;R3=1;function e(n,i){return n===i||n!==n&&i!==i}return cx=e,cx}var fx,F3;function Rj(){if(F3)return fx;F3=1;var e=typeof da=="object"&&da&&da.Object===Object&&da;return fx=e,fx}var dx,N3;function Bc(){if(N3)return dx;N3=1;var e=Rj(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=e||n||Function("return this")();return dx=i,dx}var px,D3;function Fj(){if(D3)return px;D3=1;var e=Bc(),n=e.Symbol;return px=n,px}var hx,B3;function Iee(){if(B3)return hx;B3=1;var e=Fj(),n=Object.prototype,i=n.hasOwnProperty,a=n.toString,u=e?e.toStringTag:void 0;function l(f){var p=i.call(f,u),h=f[u];try{f[u]=void 0;var m=!0}catch{}var v=a.call(f);return m&&(p?f[u]=h:delete f[u]),v}return hx=l,hx}var mx,U3;function Cee(){if(U3)return mx;U3=1;var e=Object.prototype,n=e.toString;function i(a){return n.call(a)}return mx=i,mx}var gx,M3;function Bp(){if(M3)return gx;M3=1;var e=Fj(),n=Iee(),i=Cee(),a="[object Null]",u="[object Undefined]",l=e?e.toStringTag:void 0;function f(p){return p==null?p===void 0?u:a:l&&l in Object(p)?n(p):i(p)}return gx=f,gx}var yx,_3;function xs(){if(_3)return yx;_3=1;function e(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}return yx=e,yx}var bx,j3;function FI(){if(j3)return bx;j3=1;var e=Bp(),n=xs(),i="[object AsyncFunction]",a="[object Function]",u="[object GeneratorFunction]",l="[object Proxy]";function f(p){if(!n(p))return!1;var h=e(p);return h==a||h==u||h==i||h==l}return bx=f,bx}var Ax,P3;function Nj(){if(P3)return Ax;P3=1;var e=9007199254740991;function n(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=e}return Ax=n,Ax}var vx,L3;function NI(){if(L3)return vx;L3=1;var e=FI(),n=Nj();function i(a){return a!=null&&n(a.length)&&!e(a)}return vx=i,vx}var xx,k3;function Dj(){if(k3)return xx;k3=1;var e=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function i(a,u){var l=typeof a;return u=u??e,!!u&&(l=="number"||l!="symbol"&&n.test(a))&&a>-1&&a%1==0&&a<u}return xx=i,xx}var Ex,$3;function Bj(){if($3)return Ex;$3=1;var e=ny(),n=NI(),i=Dj(),a=xs();function u(l,f,p){if(!a(p))return!1;var h=typeof f;return(h=="number"?n(p)&&i(f,p.length):h=="string"&&f in p)?e(p[f],l):!1}return Ex=u,Ex}var wx,q3;function Tee(){if(q3)return wx;q3=1;var e=/\s/;function n(i){for(var a=i.length;a--&&e.test(i.charAt(a)););return a}return wx=n,wx}var Sx,H3;function Oee(){if(H3)return Sx;H3=1;var e=Tee(),n=/^\s+/;function i(a){return a&&a.slice(0,e(a)+1).replace(n,"")}return Sx=i,Sx}var Ix,z3;function Uc(){if(z3)return Ix;z3=1;function e(n){return n!=null&&typeof n=="object"}return Ix=e,Ix}var Cx,V3;function Ree(){if(V3)return Cx;V3=1;var e=Bp(),n=Uc(),i="[object Symbol]";function a(u){return typeof u=="symbol"||n(u)&&e(u)==i}return Cx=a,Cx}var Tx,G3;function Fee(){if(G3)return Tx;G3=1;var e=Oee(),n=xs(),i=Ree(),a=NaN,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt;function h(m){if(typeof m=="number")return m;if(i(m))return a;if(n(m)){var v=typeof m.valueOf=="function"?m.valueOf():m;m=n(v)?v+"":v}if(typeof m!="string")return m===0?m:+m;m=e(m);var A=l.test(m);return A||f.test(m)?p(m.slice(2),A?2:8):u.test(m)?a:+m}return Tx=h,Tx}var Ox,Q3;function Nee(){if(Q3)return Ox;Q3=1;var e=Fee(),n=1/0,i=17976931348623157e292;function a(u){if(!u)return u===0?u:0;if(u=e(u),u===n||u===-n){var l=u<0?-1:1;return l*i}return u===u?u:0}return Ox=a,Ox}var Rx,Y3;function Dee(){if(Y3)return Rx;Y3=1;var e=Nee();function n(i){var a=e(i),u=a%1;return a===a?u?a-u:a:0}return Rx=n,Rx}var Fx,K3;function Bee(){if(K3)return Fx;K3=1;var e=See(),n=Bj(),i=Dee(),a=Math.ceil,u=Math.max;function l(f,p,h){(h?n(f,p,h):p===void 0)?p=1:p=u(i(p),0);var m=f==null?0:f.length;if(!m||p<1)return[];for(var v=0,A=0,y=Array(a(m/p));v<m;)y[A++]=e(f,v,v+=p);return y}return Fx=l,Fx}var Gt={},X3;function Uj(){return X3||(X3=1,Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.GOVERNANCE_VOTES_BY_GOV_IDS_LIMIT=Gt.GOVERNANCE_VOTES_LIMIT=Gt.MINT_BURN_HISTORY_LIMIT=Gt.ASSET_UTXOS_LIMIT=Gt.POOL_DELEGATION_LIMIT=Gt.PROJECTED_NFT_LIMIT=Gt.DEX_PRICE_LIMIT=Gt.BLOCK_LIMIT=Gt.CREDENTIAL_LIMIT=Gt.ASSET_LIMIT=Gt.UTXO_LIMIT=Gt.ADDRESS_LIMIT=void 0,Gt.ADDRESS_LIMIT={REQUEST:100,RESPONSE:1e3},Gt.UTXO_LIMIT={REQUEST:100,RESPONSE:1e3},Gt.ASSET_LIMIT={REQUEST:1e3,RESPONSE:1e3},Gt.CREDENTIAL_LIMIT={REQUEST:50,RESPONSE:50},Gt.BLOCK_LIMIT={OFFSET:21600},Gt.DEX_PRICE_LIMIT={REQUEST_ADDRESSES:100,REQUEST_ASSET_PAIRS:100,RESPONSE:1e3},Gt.PROJECTED_NFT_LIMIT={DEFAULT_PAGE_SIZE:50},Gt.POOL_DELEGATION_LIMIT={POOLS:50,DEFAULT_PAGE_SIZE:50},Gt.ASSET_UTXOS_LIMIT={ASSETS:50,DEFAULT_PAGE_SIZE:50},Gt.MINT_BURN_HISTORY_LIMIT={DEFAULT_PAGE_SIZE:50},Gt.GOVERNANCE_VOTES_LIMIT={DEFAULT_PAGE_SIZE:50},Gt.GOVERNANCE_VOTES_BY_GOV_IDS_LIMIT={MAX_ACTION_IDS:50}),Gt}var Nx,Z3;function Uee(){if(Z3)return Nx;Z3=1;function e(){this.__data__=[],this.size=0}return Nx=e,Nx}var Dx,J3;function ry(){if(J3)return Dx;J3=1;var e=ny();function n(i,a){for(var u=i.length;u--;)if(e(i[u][0],a))return u;return-1}return Dx=n,Dx}var Bx,W3;function Mee(){if(W3)return Bx;W3=1;var e=ry(),n=Array.prototype,i=n.splice;function a(u){var l=this.__data__,f=e(l,u);if(f<0)return!1;var p=l.length-1;return f==p?l.pop():i.call(l,f,1),--this.size,!0}return Bx=a,Bx}var Ux,eU;function _ee(){if(eU)return Ux;eU=1;var e=ry();function n(i){var a=this.__data__,u=e(a,i);return u<0?void 0:a[u][1]}return Ux=n,Ux}var Mx,tU;function jee(){if(tU)return Mx;tU=1;var e=ry();function n(i){return e(this.__data__,i)>-1}return Mx=n,Mx}var _x,nU;function Pee(){if(nU)return _x;nU=1;var e=ry();function n(i,a){var u=this.__data__,l=e(u,i);return l<0?(++this.size,u.push([i,a])):u[l][1]=a,this}return _x=n,_x}var jx,rU;function iy(){if(rU)return jx;rU=1;var e=Uee(),n=Mee(),i=_ee(),a=jee(),u=Pee();function l(f){var p=-1,h=f==null?0:f.length;for(this.clear();++p<h;){var m=f[p];this.set(m[0],m[1])}}return l.prototype.clear=e,l.prototype.delete=n,l.prototype.get=i,l.prototype.has=a,l.prototype.set=u,jx=l,jx}var Px,iU;function Lee(){if(iU)return Px;iU=1;var e=iy();function n(){this.__data__=new e,this.size=0}return Px=n,Px}var Lx,oU;function kee(){if(oU)return Lx;oU=1;function e(n){var i=this.__data__,a=i.delete(n);return this.size=i.size,a}return Lx=e,Lx}var kx,aU;function $ee(){if(aU)return kx;aU=1;function e(n){return this.__data__.get(n)}return kx=e,kx}var $x,sU;function qee(){if(sU)return $x;sU=1;function e(n){return this.__data__.has(n)}return $x=e,$x}var qx,uU;function Hee(){if(uU)return qx;uU=1;var e=Bc(),n=e["__core-js_shared__"];return qx=n,qx}var Hx,lU;function zee(){if(lU)return Hx;lU=1;var e=Hee(),n=(function(){var a=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})();function i(a){return!!n&&n in a}return Hx=i,Hx}var zx,cU;function Vee(){if(cU)return zx;cU=1;var e=Function.prototype,n=e.toString;function i(a){if(a!=null){try{return n.call(a)}catch{}try{return a+""}catch{}}return""}return zx=i,zx}var Vx,fU;function Gee(){if(fU)return Vx;fU=1;var e=FI(),n=zee(),i=xs(),a=Vee(),u=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,f=Function.prototype,p=Object.prototype,h=f.toString,m=p.hasOwnProperty,v=RegExp("^"+h.call(m).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function A(y){if(!i(y)||n(y))return!1;var I=e(y)?v:l;return I.test(a(y))}return Vx=A,Vx}var Gx,dU;function Qee(){if(dU)return Gx;dU=1;function e(n,i){return n==null?void 0:n[i]}return Gx=e,Gx}var Qx,pU;function DI(){if(pU)return Qx;pU=1;var e=Gee(),n=Qee();function i(a,u){var l=n(a,u);return e(l)?l:void 0}return Qx=i,Qx}var Yx,hU;function Mj(){if(hU)return Yx;hU=1;var e=DI(),n=Bc(),i=e(n,"Map");return Yx=i,Yx}var Kx,mU;function oy(){if(mU)return Kx;mU=1;var e=DI(),n=e(Object,"create");return Kx=n,Kx}var Xx,gU;function Yee(){if(gU)return Xx;gU=1;var e=oy();function n(){this.__data__=e?e(null):{},this.size=0}return Xx=n,Xx}var Zx,yU;function Kee(){if(yU)return Zx;yU=1;function e(n){var i=this.has(n)&&delete this.__data__[n];return this.size-=i?1:0,i}return Zx=e,Zx}var Jx,bU;function Xee(){if(bU)return Jx;bU=1;var e=oy(),n="__lodash_hash_undefined__",i=Object.prototype,a=i.hasOwnProperty;function u(l){var f=this.__data__;if(e){var p=f[l];return p===n?void 0:p}return a.call(f,l)?f[l]:void 0}return Jx=u,Jx}var Wx,AU;function Zee(){if(AU)return Wx;AU=1;var e=oy(),n=Object.prototype,i=n.hasOwnProperty;function a(u){var l=this.__data__;return e?l[u]!==void 0:i.call(l,u)}return Wx=a,Wx}var eE,vU;function Jee(){if(vU)return eE;vU=1;var e=oy(),n="__lodash_hash_undefined__";function i(a,u){var l=this.__data__;return this.size+=this.has(a)?0:1,l[a]=e&&u===void 0?n:u,this}return eE=i,eE}var tE,xU;function Wee(){if(xU)return tE;xU=1;var e=Yee(),n=Kee(),i=Xee(),a=Zee(),u=Jee();function l(f){var p=-1,h=f==null?0:f.length;for(this.clear();++p<h;){var m=f[p];this.set(m[0],m[1])}}return l.prototype.clear=e,l.prototype.delete=n,l.prototype.get=i,l.prototype.has=a,l.prototype.set=u,tE=l,tE}var nE,EU;function ete(){if(EU)return nE;EU=1;var e=Wee(),n=iy(),i=Mj();function a(){this.size=0,this.__data__={hash:new e,map:new(i||n),string:new e}}return nE=a,nE}var rE,wU;function tte(){if(wU)return rE;wU=1;function e(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}return rE=e,rE}var iE,SU;function ay(){if(SU)return iE;SU=1;var e=tte();function n(i,a){var u=i.__data__;return e(a)?u[typeof a=="string"?"string":"hash"]:u.map}return iE=n,iE}var oE,IU;function nte(){if(IU)return oE;IU=1;var e=ay();function n(i){var a=e(this,i).delete(i);return this.size-=a?1:0,a}return oE=n,oE}var aE,CU;function rte(){if(CU)return aE;CU=1;var e=ay();function n(i){return e(this,i).get(i)}return aE=n,aE}var sE,TU;function ite(){if(TU)return sE;TU=1;var e=ay();function n(i){return e(this,i).has(i)}return sE=n,sE}var uE,OU;function ote(){if(OU)return uE;OU=1;var e=ay();function n(i,a){var u=e(this,i),l=u.size;return u.set(i,a),this.size+=u.size==l?0:1,this}return uE=n,uE}var lE,RU;function ate(){if(RU)return lE;RU=1;var e=ete(),n=nte(),i=rte(),a=ite(),u=ote();function l(f){var p=-1,h=f==null?0:f.length;for(this.clear();++p<h;){var m=f[p];this.set(m[0],m[1])}}return l.prototype.clear=e,l.prototype.delete=n,l.prototype.get=i,l.prototype.has=a,l.prototype.set=u,lE=l,lE}var cE,FU;function ste(){if(FU)return cE;FU=1;var e=iy(),n=Mj(),i=ate(),a=200;function u(l,f){var p=this.__data__;if(p instanceof e){var h=p.__data__;if(!n||h.length<a-1)return h.push([l,f]),this.size=++p.size,this;p=this.__data__=new i(h)}return p.set(l,f),this.size=p.size,this}return cE=u,cE}var fE,NU;function ute(){if(NU)return fE;NU=1;var e=iy(),n=Lee(),i=kee(),a=$ee(),u=qee(),l=ste();function f(p){var h=this.__data__=new e(p);this.size=h.size}return f.prototype.clear=n,f.prototype.delete=i,f.prototype.get=a,f.prototype.has=u,f.prototype.set=l,fE=f,fE}var dE,DU;function _j(){if(DU)return dE;DU=1;var e=DI(),n=(function(){try{var i=e(Object,"defineProperty");return i({},"",{}),i}catch{}})();return dE=n,dE}var pE,BU;function BI(){if(BU)return pE;BU=1;var e=_j();function n(i,a,u){a=="__proto__"&&e?e(i,a,{configurable:!0,enumerable:!0,value:u,writable:!0}):i[a]=u}return pE=n,pE}var hE,UU;function jj(){if(UU)return hE;UU=1;var e=BI(),n=ny();function i(a,u,l){(l!==void 0&&!n(a[u],l)||l===void 0&&!(u in a))&&e(a,u,l)}return hE=i,hE}var mE,MU;function lte(){if(MU)return mE;MU=1;function e(n){return function(i,a,u){for(var l=-1,f=Object(i),p=u(i),h=p.length;h--;){var m=p[n?h:++l];if(a(f[m],m,f)===!1)break}return i}}return mE=e,mE}var gE,_U;function cte(){if(_U)return gE;_U=1;var e=lte(),n=e();return gE=n,gE}var Ad={exports:{}};Ad.exports;var jU;function fte(){return jU||(jU=1,(function(e,n){var i=Bc(),a=n&&!n.nodeType&&n,u=a&&!0&&e&&!e.nodeType&&e,l=u&&u.exports===a,f=l?i.Buffer:void 0,p=f?f.allocUnsafe:void 0;function h(m,v){if(v)return m.slice();var A=m.length,y=p?p(A):new m.constructor(A);return m.copy(y),y}e.exports=h})(Ad,Ad.exports)),Ad.exports}var yE,PU;function dte(){if(PU)return yE;PU=1;var e=Bc(),n=e.Uint8Array;return yE=n,yE}var bE,LU;function pte(){if(LU)return bE;LU=1;var e=dte();function n(i){var a=new i.constructor(i.byteLength);return new e(a).set(new e(i)),a}return bE=n,bE}var AE,kU;function hte(){if(kU)return AE;kU=1;var e=pte();function n(i,a){var u=a?e(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.length)}return AE=n,AE}var vE,$U;function mte(){if($U)return vE;$U=1;function e(n,i){var a=-1,u=n.length;for(i||(i=Array(u));++a<u;)i[a]=n[a];return i}return vE=e,vE}var xE,qU;function gte(){if(qU)return xE;qU=1;var e=xs(),n=Object.create,i=(function(){function a(){}return function(u){if(!e(u))return{};if(n)return n(u);a.prototype=u;var l=new a;return a.prototype=void 0,l}})();return xE=i,xE}var EE,HU;function yte(){if(HU)return EE;HU=1;function e(n,i){return function(a){return n(i(a))}}return EE=e,EE}var wE,zU;function Pj(){if(zU)return wE;zU=1;var e=yte(),n=e(Object.getPrototypeOf,Object);return wE=n,wE}var SE,VU;function Lj(){if(VU)return SE;VU=1;var e=Object.prototype;function n(i){var a=i&&i.constructor,u=typeof a=="function"&&a.prototype||e;return i===u}return SE=n,SE}var IE,GU;function bte(){if(GU)return IE;GU=1;var e=gte(),n=Pj(),i=Lj();function a(u){return typeof u.constructor=="function"&&!i(u)?e(n(u)):{}}return IE=a,IE}var CE,QU;function Ate(){if(QU)return CE;QU=1;var e=Bp(),n=Uc(),i="[object Arguments]";function a(u){return n(u)&&e(u)==i}return CE=a,CE}var TE,YU;function kj(){if(YU)return TE;YU=1;var e=Ate(),n=Uc(),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,l=e((function(){return arguments})())?e:function(f){return n(f)&&a.call(f,"callee")&&!u.call(f,"callee")};return TE=l,TE}var OE,KU;function $j(){if(KU)return OE;KU=1;var e=Array.isArray;return OE=e,OE}var RE,XU;function vte(){if(XU)return RE;XU=1;var e=NI(),n=Uc();function i(a){return n(a)&&e(a)}return RE=i,RE}var vd={exports:{}},FE,ZU;function xte(){if(ZU)return FE;ZU=1;function e(){return!1}return FE=e,FE}vd.exports;var JU;function qj(){return JU||(JU=1,(function(e,n){var i=Bc(),a=xte(),u=n&&!n.nodeType&&n,l=u&&!0&&e&&!e.nodeType&&e,f=l&&l.exports===u,p=f?i.Buffer:void 0,h=p?p.isBuffer:void 0,m=h||a;e.exports=m})(vd,vd.exports)),vd.exports}var NE,WU;function Ete(){if(WU)return NE;WU=1;var e=Bp(),n=Pj(),i=Uc(),a="[object Object]",u=Function.prototype,l=Object.prototype,f=u.toString,p=l.hasOwnProperty,h=f.call(Object);function m(v){if(!i(v)||e(v)!=a)return!1;var A=n(v);if(A===null)return!0;var y=p.call(A,"constructor")&&A.constructor;return typeof y=="function"&&y instanceof y&&f.call(y)==h}return NE=m,NE}var DE,eM;function wte(){if(eM)return DE;eM=1;var e=Bp(),n=Nj(),i=Uc(),a="[object Arguments]",u="[object Array]",l="[object Boolean]",f="[object Date]",p="[object Error]",h="[object Function]",m="[object Map]",v="[object Number]",A="[object Object]",y="[object RegExp]",I="[object Set]",R="[object String]",U="[object WeakMap]",F="[object ArrayBuffer]",N="[object DataView]",B="[object Float32Array]",M="[object Float64Array]",H="[object Int8Array]",k="[object Int16Array]",X="[object Int32Array]",re="[object Uint8Array]",ie="[object Uint8ClampedArray]",O="[object Uint16Array]",P="[object Uint32Array]",L={};L[B]=L[M]=L[H]=L[k]=L[X]=L[re]=L[ie]=L[O]=L[P]=!0,L[a]=L[u]=L[F]=L[l]=L[N]=L[f]=L[p]=L[h]=L[m]=L[v]=L[A]=L[y]=L[I]=L[R]=L[U]=!1;function q(oe){return i(oe)&&n(oe.length)&&!!L[e(oe)]}return DE=q,DE}var BE,tM;function Ste(){if(tM)return BE;tM=1;function e(n){return function(i){return n(i)}}return BE=e,BE}var xd={exports:{}};xd.exports;var nM;function Ite(){return nM||(nM=1,(function(e,n){var i=Rj(),a=n&&!n.nodeType&&n,u=a&&!0&&e&&!e.nodeType&&e,l=u&&u.exports===a,f=l&&i.process,p=(function(){try{var h=u&&u.require&&u.require("util").types;return h||f&&f.binding&&f.binding("util")}catch{}})();e.exports=p})(xd,xd.exports)),xd.exports}var UE,rM;function Hj(){if(rM)return UE;rM=1;var e=wte(),n=Ste(),i=Ite(),a=i&&i.isTypedArray,u=a?n(a):e;return UE=u,UE}var ME,iM;function zj(){if(iM)return ME;iM=1;function e(n,i){if(!(i==="constructor"&&typeof n[i]=="function")&&i!="__proto__")return n[i]}return ME=e,ME}var _E,oM;function Cte(){if(oM)return _E;oM=1;var e=BI(),n=ny(),i=Object.prototype,a=i.hasOwnProperty;function u(l,f,p){var h=l[f];(!(a.call(l,f)&&n(h,p))||p===void 0&&!(f in l))&&e(l,f,p)}return _E=u,_E}var jE,aM;function Tte(){if(aM)return jE;aM=1;var e=Cte(),n=BI();function i(a,u,l,f){var p=!l;l||(l={});for(var h=-1,m=u.length;++h<m;){var v=u[h],A=f?f(l[v],a[v],v,l,a):void 0;A===void 0&&(A=a[v]),p?n(l,v,A):e(l,v,A)}return l}return jE=i,jE}var PE,sM;function Ote(){if(sM)return PE;sM=1;function e(n,i){for(var a=-1,u=Array(n);++a<n;)u[a]=i(a);return u}return PE=e,PE}var LE,uM;function Rte(){if(uM)return LE;uM=1;var e=Ote(),n=kj(),i=$j(),a=qj(),u=Dj(),l=Hj(),f=Object.prototype,p=f.hasOwnProperty;function h(m,v){var A=i(m),y=!A&&n(m),I=!A&&!y&&a(m),R=!A&&!y&&!I&&l(m),U=A||y||I||R,F=U?e(m.length,String):[],N=F.length;for(var B in m)(v||p.call(m,B))&&!(U&&(B=="length"||I&&(B=="offset"||B=="parent")||R&&(B=="buffer"||B=="byteLength"||B=="byteOffset")||u(B,N)))&&F.push(B);return F}return LE=h,LE}var kE,lM;function Fte(){if(lM)return kE;lM=1;function e(n){var i=[];if(n!=null)for(var a in Object(n))i.push(a);return i}return kE=e,kE}var $E,cM;function Nte(){if(cM)return $E;cM=1;var e=xs(),n=Lj(),i=Fte(),a=Object.prototype,u=a.hasOwnProperty;function l(f){if(!e(f))return i(f);var p=n(f),h=[];for(var m in f)m=="constructor"&&(p||!u.call(f,m))||h.push(m);return h}return $E=l,$E}var qE,fM;function Vj(){if(fM)return qE;fM=1;var e=Rte(),n=Nte(),i=NI();function a(u){return i(u)?e(u,!0):n(u)}return qE=a,qE}var HE,dM;function Dte(){if(dM)return HE;dM=1;var e=Tte(),n=Vj();function i(a){return e(a,n(a))}return HE=i,HE}var zE,pM;function Bte(){if(pM)return zE;pM=1;var e=jj(),n=fte(),i=hte(),a=mte(),u=bte(),l=kj(),f=$j(),p=vte(),h=qj(),m=FI(),v=xs(),A=Ete(),y=Hj(),I=zj(),R=Dte();function U(F,N,B,M,H,k,X){var re=I(F,B),ie=I(N,B),O=X.get(ie);if(O){e(F,B,O);return}var P=k?k(re,ie,B+"",F,N,X):void 0,L=P===void 0;if(L){var q=f(ie),oe=!q&&h(ie),ge=!q&&!oe&&y(ie);P=ie,q||oe||ge?f(re)?P=re:p(re)?P=a(re):oe?(L=!1,P=n(ie,!0)):ge?(L=!1,P=i(ie,!0)):P=[]:A(ie)||l(ie)?(P=re,l(re)?P=R(re):(!v(re)||m(re))&&(P=u(ie))):L=!1}L&&(X.set(ie,P),H(P,ie,M,k,X),X.delete(ie)),e(F,B,P)}return zE=U,zE}var VE,hM;function Ute(){if(hM)return VE;hM=1;var e=ute(),n=jj(),i=cte(),a=Bte(),u=xs(),l=Vj(),f=zj();function p(h,m,v,A,y){h!==m&&i(m,function(I,R){if(y||(y=new e),u(I))a(h,m,R,v,p,A,y);else{var U=A?A(f(h,R),I,R+"",h,m,y):void 0;U===void 0&&(U=I),n(h,R,U)}},l)}return VE=p,VE}var GE,mM;function Gj(){if(mM)return GE;mM=1;function e(n){return n}return GE=e,GE}var QE,gM;function Mte(){if(gM)return QE;gM=1;function e(n,i,a){switch(a.length){case 0:return n.call(i);case 1:return n.call(i,a[0]);case 2:return n.call(i,a[0],a[1]);case 3:return n.call(i,a[0],a[1],a[2])}return n.apply(i,a)}return QE=e,QE}var YE,yM;function _te(){if(yM)return YE;yM=1;var e=Mte(),n=Math.max;function i(a,u,l){return u=n(u===void 0?a.length-1:u,0),function(){for(var f=arguments,p=-1,h=n(f.length-u,0),m=Array(h);++p<h;)m[p]=f[u+p];p=-1;for(var v=Array(u+1);++p<u;)v[p]=f[p];return v[u]=l(m),e(a,this,v)}}return YE=i,YE}var KE,bM;function jte(){if(bM)return KE;bM=1;function e(n){return function(){return n}}return KE=e,KE}var XE,AM;function Pte(){if(AM)return XE;AM=1;var e=jte(),n=_j(),i=Gj(),a=n?function(u,l){return n(u,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:i;return XE=a,XE}var ZE,vM;function Lte(){if(vM)return ZE;vM=1;var e=800,n=16,i=Date.now;function a(u){var l=0,f=0;return function(){var p=i(),h=n-(p-f);if(f=p,h>0){if(++l>=e)return arguments[0]}else l=0;return u.apply(void 0,arguments)}}return ZE=a,ZE}var JE,xM;function kte(){if(xM)return JE;xM=1;var e=Pte(),n=Lte(),i=n(e);return JE=i,JE}var WE,EM;function $te(){if(EM)return WE;EM=1;var e=Gj(),n=_te(),i=kte();function a(u,l){return i(n(u,l,e),u+"")}return WE=a,WE}var ew,wM;function qte(){if(wM)return ew;wM=1;var e=$te(),n=Bj();function i(a){return e(function(u,l){var f=-1,p=l.length,h=p>1?l[p-1]:void 0,m=p>2?l[2]:void 0;for(h=a.length>3&&typeof h=="function"?(p--,h):void 0,m&&n(l[0],l[1],m)&&(h=p<3?void 0:h,p=1),u=Object(u);++f<p;){var v=l[f];v&&a(u,v,f,h)}return u})}return ew=i,ew}var tw,SM;function Hte(){if(SM)return tw;SM=1;var e=Ute(),n=qte(),i=n(function(a,u,l){e(a,u,l)});return tw=i,tw}var IM;function zte(){if(IM)return Ar;IM=1;var e=Ar&&Ar.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.nftCborToJson=Ar.paginatedMetadataNft=Ar.paginatedProjectedNft=Ar.paginatedTransactionHistory=Ar.paginateQuery=void 0;const n=Tj(),i=Oj(),a=e(Bee()),u=Uj(),l=e(Hte());async function f(y,I,R){let U=y;const F=[];let N=[];do N=await I(U),F.push(...N),U={...U,after:R(N[N.length-1])};while(N.length!==0);return F}Ar.paginateQuery=f;async function p(y,I){return{transactions:await f(I,async U=>(await(0,n.query)(y,i.Routes.transactionHistory,U)).transactions,U=>U!=null?{block:U.block.hash,tx:U.transaction.hash}:void 0)}}Ar.paginatedTransactionHistory=p;async function h(y,I){return await f(I,async U=>await(0,n.query)(y,i.Routes.projectedNftEventsRange,U),U=>U!=null?{block:U.block,tx:U.txId}:void 0)}Ar.paginatedProjectedNft=h;function m(y){var I;const R={};for(const[U,F]of y){const N=(I=R[U])!==null&&I!==void 0?I:[];N.push(F),N.length===1&&(R[U]=N)}return{assets:R}}async function v(y,I){const R=[];for(const[N,B]of Object.entries(I.assets))for(const M of B)R.push([N,M]);let U={cip25:{}};const F=await Promise.all((0,a.default)(R,u.ASSET_LIMIT.REQUEST).map(N=>(0,n.query)(y,i.Routes.metadataNft,m(N))));for(const N of F)U=(0,l.default)(U,N);return U}Ar.paginatedMetadataNft=v;function A(y,I,R,U){const F={};for(const[N,B]of Object.entries(y.cip25)){const M={};for(const[H,k]of Object.entries(B)){const X=I.from_cbor_bytes(dn.Buffer.from(k,"hex")),re=R(X,U);M[H]=re}F[N]=M}return{cip25:F}}return Ar.nftCborToJson=A,Ar}var gu={},nw={},CM;function Vte(){return CM||(CM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.genErrorMessage=e.Errors=e.ErrorCodes=void 0;var n;(function(a){a[a.AddressLimitExceeded=0]="AddressLimitExceeded",a[a.IncorrectAddressFormat=1]="IncorrectAddressFormat",a[a.BlockHashNotFound=2]="BlockHashNotFound",a[a.PageStartNotFound=3]="PageStartNotFound",a[a.UtxoLimitExceeded=4]="UtxoLimitExceeded",a[a.IncorrectFormat=5]="IncorrectFormat",a[a.BlockOffsetLimit=6]="BlockOffsetLimit",a[a.OffsetBlockNotFound=7]="OffsetBlockNotFound",a[a.AssetLimitExceeded=8]="AssetLimitExceeded",a[a.CredentialLimitExceeded=9]="CredentialLimitExceeded",a[a.AssetPairLimitExceeded=10]="AssetPairLimitExceeded",a[a.PoolsLimitExceeded=11]="PoolsLimitExceeded",a[a.SlotRangeLimitExceeded=12]="SlotRangeLimitExceeded",a[a.AssetsLimitExceeded=12]="AssetsLimitExceeded"})(n=e.ErrorCodes||(e.ErrorCodes={})),e.Errors={AddressLimitExceeded:{code:n.AddressLimitExceeded,prefix:"Exceeded request address limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},UtxoLimitExceeded:{code:n.UtxoLimitExceeded,prefix:"Exceeded request utxo limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},IncorrectAddressFormat:{code:n.IncorrectAddressFormat,prefix:"Incorrectly formatted addresses found.",detailsGen:a=>JSON.stringify(a.addresses)},IncorrectFormat:{code:n.IncorrectFormat,prefix:"Incorrectly formatted data found.",detailsGen:a=>JSON.stringify(a)},BlockHashNotFound:{code:n.BlockHashNotFound,prefix:"Block hash not found.",detailsGen:a=>`Searched block hash: ${a.untilBlock}`},PageStartNotFound:{code:n.PageStartNotFound,prefix:"Combination of block and transaction not found.",detailsGen:a=>`Searched block hash ${a.blockHash} and tx hash ${a.txHash}`},BlockOffsetLimit:{code:n.BlockOffsetLimit,prefix:"Block offset exceeded the limit.",detailsGen:a=>`Offset used was ${a.offset}, but limit is ${a.limit}`},OffsetBlockNotFound:{code:n.OffsetBlockNotFound,prefix:"Block not found at offset. Are you sure your database is synchronized?",detailsGen:a=>`Offset used was ${a.offset}`},AssetLimitExceeded:{code:n.AssetLimitExceeded,prefix:"Exceeded request <policy, asset> pair limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},CredentialLimitExceeded:{code:n.CredentialLimitExceeded,prefix:"Exceeded request credential limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},AssetPairLimitExceeded:{code:n.AssetPairLimitExceeded,prefix:"Exceeded request asset pair limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},PoolsLimitExceeded:{code:n.PoolsLimitExceeded,prefix:"Exceeded request pools limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},SlotRangeLimitExceeded:{code:n.SlotRangeLimitExceeded,prefix:"Exceeded request slot range limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},AssetsLimitExceeded:{code:n.AssetLimitExceeded,prefix:"Exceeded request native assets limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`},GovActionIdsLimitExceeded:{code:n.AssetLimitExceeded,prefix:"Exceeded request governance action ids limit.",detailsGen:a=>`Limit of ${a.limit}, found ${a.found}`}};function i(a,u){const l=a.detailsGen(u);return{code:a.code,reason:l.length===0?a.prefix:`${a.prefix} ${l}`}}e.genErrorMessage=i})(nw)),nw}var yu={},rw={},TM;function Gte(){return TM||(TM=1,Object.defineProperty(rw,"__esModule",{value:!0})),rw}var iw={},OM;function Qte(){return OM||(OM=1,Object.defineProperty(iw,"__esModule",{value:!0})),iw}var ow={},RM;function Yte(){return RM||(RM=1,Object.defineProperty(ow,"__esModule",{value:!0})),ow}var aw={},FM;function Kte(){return FM||(FM=1,Object.defineProperty(aw,"__esModule",{value:!0})),aw}var sw={},NM;function Xte(){return NM||(NM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Dex=e.Direction=e.RelationFilterType=void 0,(function(n){n[n.FILTER_ALL=0]="FILTER_ALL",n[n.Witness=1]="Witness",n[n.Input=2]="Input",n[n.Output=4]="Output",n[n.StakeDeregistration=8]="StakeDeregistration",n[n.StakeDelegation=16]="StakeDelegation",n[n.StakeRegistration=32]="StakeRegistration",n[n.DelegationTarget=64]="DelegationTarget",n[n.PoolOwner=128]="PoolOwner",n[n.PoolOperator=256]="PoolOperator",n[n.PoolReward=512]="PoolReward",n[n.MirRecipient=1024]="MirRecipient",n[n.Withdrawal=2048]="Withdrawal",n[n.RequiredSigner=4096]="RequiredSigner",n[n.InNativeScript=8192]="InNativeScript",n[n.UnusedInput=16384]="UnusedInput",n[n.UnusedInputStake=32768]="UnusedInputStake",n[n.InputStake=65536]="InputStake",n[n.OutputStake=131072]="OutputStake",n[n.UnusedOutput=262144]="UnusedOutput",n[n.UnusedOutputStake=524288]="UnusedOutputStake",n[n.ReferenceInput=1048576]="ReferenceInput",n[n.ReferenceInputStake=2097152]="ReferenceInputStake",n[n.DrepStakeDelegation=4194304]="DrepStakeDelegation",n[n.DrepStakeDelegationTarget=8388608]="DrepStakeDelegationTarget",n[n.DrepOperation=16777216]="DrepOperation",n[n.NO_FILTER=255]="NO_FILTER"})(e.RelationFilterType||(e.RelationFilterType={})),(function(n){n.Buy="buy",n.Sell="sell"})(e.Direction||(e.Direction={})),(function(n){n.WingRiders="WingRiders",n.SundaeSwap="SundaeSwap",n.MinSwap="MinSwap"})(e.Dex||(e.Dex={}))})(sw)),sw}var uw={},DM;function Zte(){return DM||(DM=1,Object.defineProperty(uw,"__esModule",{value:!0})),uw}var lw={},BM;function Jte(){return BM||(BM=1,Object.defineProperty(lw,"__esModule",{value:!0})),lw}var cw={},UM;function Wte(){return UM||(UM=1,Object.defineProperty(cw,"__esModule",{value:!0})),cw}var fw={},MM;function ene(){return MM||(MM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PriceType=void 0,(function(n){n.Buy="buy",n.Sell="sell",n.Mean="mean"})(e.PriceType||(e.PriceType={}))})(fw)),fw}var dw={},_M;function tne(){return _M||(_M=1,Object.defineProperty(dw,"__esModule",{value:!0})),dw}var pw={},jM;function nne(){return jM||(jM=1,Object.defineProperty(pw,"__esModule",{value:!0})),pw}var hw={},PM;function rne(){return PM||(PM=1,Object.defineProperty(hw,"__esModule",{value:!0})),hw}var mw={},LM;function ine(){return LM||(LM=1,Object.defineProperty(mw,"__esModule",{value:!0})),mw}var gw={},kM;function one(){return kM||(kM=1,Object.defineProperty(gw,"__esModule",{value:!0})),gw}var yw={},$M;function ane(){return $M||($M=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectedNftStatus=void 0,(function(n){n.Lock="Lock",n.Unlocking="Unlocking",n.Claim="Claim",n.Invalid="Invalid"})(e.ProjectedNftStatus||(e.ProjectedNftStatus={}))})(yw)),yw}var bw={},qM;function sne(){return qM||(qM=1,Object.defineProperty(bw,"__esModule",{value:!0})),bw}var Aw={},HM;function une(){return HM||(HM=1,Object.defineProperty(Aw,"__esModule",{value:!0})),Aw}var zM;function lne(){return zM||(zM=1,(function(e){var n=yu&&yu.__createBinding||(Object.create?(function(a,u,l,f){f===void 0&&(f=l);var p=Object.getOwnPropertyDescriptor(u,l);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[l]}}),Object.defineProperty(a,f,p)}):(function(a,u,l,f){f===void 0&&(f=l),a[f]=u[l]})),i=yu&&yu.__exportStar||function(a,u){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(u,l)&&n(u,a,l)};Object.defineProperty(e,"__esModule",{value:!0}),i(Gte(),e),i(Qte(),e),i(Yte(),e),i(Kte(),e),i(Xte(),e),i(Zte(),e),i(Jte(),e),i(Wte(),e),i(ene(),e),i(tne(),e),i(nne(),e),i(rne(),e),i(ine(),e),i(one(),e),i(ane(),e),i(sne(),e),i(une(),e)})(yu)),yu}var VM;function cne(){return VM||(VM=1,(function(e){var n=gu&&gu.__createBinding||(Object.create?(function(a,u,l,f){f===void 0&&(f=l);var p=Object.getOwnPropertyDescriptor(u,l);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[l]}}),Object.defineProperty(a,f,p)}):(function(a,u,l,f){f===void 0&&(f=l),a[f]=u[l]})),i=gu&&gu.__exportStar||function(a,u){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(u,l)&&n(u,a,l)};Object.defineProperty(e,"__esModule",{value:!0}),i(Uj(),e),i(Vte(),e),i(Oj(),e),i(lne(),e)})(gu)),gu}var GM;function fne(){return GM||(GM=1,(function(e){var n=mu&&mu.__createBinding||(Object.create?(function(a,u,l,f){f===void 0&&(f=l);var p=Object.getOwnPropertyDescriptor(u,l);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[l]}}),Object.defineProperty(a,f,p)}):(function(a,u,l,f){f===void 0&&(f=l),a[f]=u[l]})),i=mu&&mu.__exportStar||function(a,u){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(u,l)&&n(u,a,l)};Object.defineProperty(e,"__esModule",{value:!0}),i(Tj(),e),i(zte(),e),i(cne(),e)})(mu)),mu}var dne=fne();const UI=S.Object({address:Ie.Cardano.Address,pool:Ie.Nullable(Ie.Cardano.PoolId),epoch:Ie.EpochNumber()});S.Object({primitive:S.Literal(Qe.CardanoCarpDelegation),payloadType:S.Literal(hn.Delegate),payload:UI});const Cd=S.Object({ownerAddress:Ie.Cardano.Address,actionTxId:Ie.Cardano.TxHash,actionOutputIndex:Ie.Nullable(S.Number()),previousTxHash:Ie.Nullable(Ie.Cardano.TxHash),previousTxOutputIndex:Ie.Nullable(S.Number()),policyId:Ie.Cardano.PolicyId,assetName:Ie.Cardano.AssetName,amount:Ie.Cardano.AmountLovelace,status:S.Enum(dne.ProjectedNftStatus),plutusDatum:Ie.HexStringNo0x(),forHowLong:Ie.Nullable(Ie.TimestampMsStr)});S.Object({primitive:S.Literal(Qe.CardanoCarpProjectedNFT),payloadType:S.Literal(hn.Projection),payload:Cd});const Qj=S.Object({address:Ie.Cardano.Address,txId:Ie.Cardano.TxHash,outputIndex:S.Number(),amount:Ie.Nullable(Ie.Cardano.AmountLovelace),cip14Fingerprint:Ie.Cardano.Cip14Fingerprint,policyId:Ie.Cardano.PolicyId,assetName:Ie.Cardano.AssetName,spent:S.Boolean()});S.Object({primitive:S.Literal(Qe.CardanoCarpDelayedAsset),payloadType:S.Literal(hn.Transfer),payload:Qj});const MI=S.Object({txId:Ie.Cardano.TxHash,rawTx:S.String(),inputCredentials:S.Array(Ie.Cardano.Credential),outputs:S.Array(S.Object({asset:Ie.Nullable(S.Object({policyId:Ie.Cardano.PolicyId,assetName:Ie.Cardano.AssetName})),amount:Ie.Cardano.AmountLovelace})),metadata:Ie.Nullable(S.String())});S.Object({primitive:S.Literal(Qe.CardanoCarpTransfer),payloadType:S.Literal(hn.Transfer),payload:MI});const pne=S.Unsafe(S.Record(Ie.Cardano.AssetName,S.String())),hne=S.Unsafe(S.Record(Ie.Cardano.PolicyId,pne)),mne=S.Object({policyId:Ie.Cardano.PolicyId,assetName:Ie.Cardano.AssetName}),gne=S.Intersect([mne,S.Object({amount:Ie.Cardano.AmountLovelace})]),QM=S.Unsafe(S.Record(Ie.Cardano.Credential,S.Array(gne))),_I=S.Object({txId:Ie.Cardano.TxHash,metadata:Ie.Nullable(S.String()),assets:hne,inputAddresses:QM,outputAddresses:QM});S.Object({primitive:S.Literal(Qe.CardanoCarpMintBurn),payloadType:S.Literal(hn.MintOrBurn),payload:_I});const yne=S.Object({});S.Object({primitive:S.Literal(Qe.CardanoUtxorpcMatchTx),payloadType:S.Literal(hn.Event),payload:yne});Qe.EvmRpcPaimaL2+"",Qe.EvmRpcERC20+"",Qe.EvmRpcERC721+"",Qe.EvmRpcERC1155+"",Qe.EvmRpcGeneric+"",Qe.EvmRpcERC6551Registry+"",Qe.EvmRpcDynamicPrimitive+"";const Yj=S.Object({userAddress:Ie.Evm.Address,data:Ie.HexString0x(),value:Ie.Uint256});S.Object({primitive:S.Literal(Qe.EvmRpcPaimaL2),payloadType:S.Literal(hn.PaimaL2Event),payload:Yj});const jI=S.Object({from:Ie.Evm.Address,to:Ie.Evm.Address,value:Ie.Uint256});S.Object({primitive:S.Literal(Qe.EvmRpcERC20),payloadType:S.Literal(hn.Transfer),payload:jI});const PI=S.Object({from:Ie.Evm.Address,to:Ie.Evm.Address,tokenId:Ie.Uint256});S.Object({primitive:S.Literal(Qe.EvmRpcERC721),payloadType:S.Literal(hn.Transfer),payload:PI});const og=S.Object({tokenId:Ie.Uint256,mintData:S.String(),from:Ie.Evm.Address});S.Object({primitive:S.Literal(Qe.EvmRpcERC721),payloadType:S.Literal(hn.Mint),payload:og});const ag=S.Object({operator:Ie.Evm.Address,from:Ie.Evm.Address,to:Ie.Evm.Address,ids:S.Array(Ie.Uint256),values:S.Array(Ie.Uint256)});S.Object({primitive:S.Literal(Qe.EvmRpcERC1155),payloadType:S.Literal(hn.Transfer),payload:ag});const bne=S.Any();S.Object({primitive:S.Literal(Qe.EvmRpcGeneric),payloadType:S.Literal(hn.Event),payload:bne});const Kj=S.Object({accountCreated:Ie.Evm.Address,implementation:Ie.Evm.Address,chainId:Ie.Uint256,tokenContract:Ie.Evm.Address,tokenId:Ie.Uint256,salt:Ie.Uint256});S.Object({primitive:S.Literal(Qe.EvmRpcERC6551Registry),payloadType:S.Literal(hn.Registry),payload:Kj});const Ane=S.Union([S.Object({type:S.Literal(Qe.EvmRpcERC721),scheduledPrefix:S.String(),burnScheduledPrefix:S.Optional(S.String())}),S.Object({type:S.Literal(Qe.EvmRpcGeneric),abi:Ie.EvmAbiEvent,scheduledPrefix:S.String()})]),vne=S.Object({contractAddress:Ie.Evm.Address,targetConfig:Ane});S.Object({primitive:S.Literal(Qe.EvmRpcDynamicPrimitive),payloadType:S.Literal(hn.Event),payload:vne});const xne=S.Recursive(e=>S.Union([S.Object({tag:S.Literal("null")}),S.Object({tag:S.Literal("cell"),content:e}),S.Object({tag:S.Literal("array"),content:S.Array(e)}),S.Object({tag:S.Literal("map"),content:S.Any()}),S.Object({tag:S.Literal("some"),value:e}),S.Object({tag:S.Literal("none")})])),Xj=S.Unsafe(xne);S.Object({primitive:S.Literal(Qe.MidnightContractState),payloadType:S.Literal(hn.Event),payload:Xj});const Ene=S.Array(S.Array(Ie.UnknownFormat));S.Object({primitive:S.Literal(Qe.MinaEventGeneric),payloadType:S.Literal(hn.Event),payload:Ene});const wne=S.Array(S.Array(Ie.UnknownFormat));S.Object({primitive:S.Literal(Qe.MinaActionGeneric),payloadType:S.Literal(hn.Event),payload:wne});var di=(e=>(e.Transfer="transfer",e.Delegate="delegate",e.MintOrBurn="mint-or-burn",e.ProjectedNft="projected-nft",e.Registry="registry",e.Event="event",e))(di||{});S.Object({primitive:S.Literal(Qe.CardanoCarpDelayedAsset),payloadType:S.Literal(di.Transfer),payload:Qj});S.Object({primitive:S.Literal(Qe.CardanoCarpDelegation),payloadType:S.Literal(di.Transfer),payload:UI});S.Object({primitive:S.Literal(Qe.CardanoCarpMintBurn),payloadType:S.Literal(di.MintOrBurn),payload:_I});S.Object({primitive:S.Literal(Qe.CardanoCarpProjectedNFT),payloadType:S.Literal(di.ProjectedNft),payload:Cd});S.Object({primitive:S.Literal(Qe.CardanoCarpTransfer),payloadType:S.Literal(di.Transfer),payload:MI});S.Object({primitive:S.Literal(Qe.EvmRpcPaimaL2),payloadType:S.Literal(di.Event),payload:Yj});S.Object({primitive:S.Literal(Qe.EvmRpcERC20),payloadType:S.Literal(di.Transfer),payload:jI});S.Object({primitive:S.Literal(Qe.EvmRpcERC721),payloadType:S.Literal(di.Transfer),payload:PI});S.Object({primitive:S.Literal(Qe.EvmRpcERC721),payloadType:S.Literal(di.MintOrBurn),payload:og});S.Object({primitive:S.Literal(Qe.EvmRpcERC1155),payloadType:S.Literal(di.Transfer),payload:ag});S.Object({primitive:S.Literal(Qe.EvmRpcERC6551Registry),payloadType:S.Literal(di.Registry),payload:Kj});S.Object({primitive:S.Literal(Qe.MidnightContractState),payloadType:S.Literal(di.Event),payload:Xj});qJ("paima:static-config");var vw={exports:{}},YM;function Sne(){return YM||(YM=1,(function(e){(function(){var n="input is invalid type",i="finalize already called",a=typeof window=="object",u=a?window:{};u.JS_SHA3_NO_WINDOW&&(a=!1);var l=!a&&typeof self=="object",f=!u.JS_SHA3_NO_NODE_JS&&typeof Dt=="object"&&Dt.versions&&Dt.versions.node;f?u=da:l&&(u=self);for(var p=!u.JS_SHA3_NO_COMMON_JS&&!0&&e.exports,h=!u.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",m="0123456789abcdef".split(""),v=[31,7936,2031616,520093696],A=[4,1024,262144,67108864],y=[1,256,65536,16777216],I=[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],F=[224,256,384,512],N=[128,256],B=["hex","buffer","arrayBuffer","array","digest"],M={128:168,256:136},H=u.JS_SHA3_NO_NODE_JS||!Array.isArray?function(w){return Object.prototype.toString.call(w)==="[object Array]"}:Array.isArray,k=h&&(u.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)?function(w){return typeof w=="object"&&w.buffer&&w.buffer.constructor===ArrayBuffer}:ArrayBuffer.isView,X=function(w){var $=typeof w;if($==="string")return[w,!0];if($!=="object"||w===null)throw new Error(n);if(h&&w.constructor===ArrayBuffer)return[new Uint8Array(w),!1];if(!H(w)&&!k(w))throw new Error(n);return[w,!1]},re=function(w){return X(w)[0].length===0},ie=function(w){for(var $=[],Y=0;Y<w.length;++Y)$[Y]=w[Y];return $},O=function(w,$,Y){return function(W){return new ve(w,$,w).update(W)[Y]()}},P=function(w,$,Y){return function(W,de){return new ve(w,$,de).update(W)[Y]()}},L=function(w,$,Y){return function(W,de,pe,E){return te["cshake"+w].update(W,de,pe,E)[Y]()}},q=function(w,$,Y){return function(W,de,pe,E){return te["kmac"+w].update(W,de,pe,E)[Y]()}},oe=function(w,$,Y,W){for(var de=0;de<B.length;++de){var pe=B[de];w[pe]=$(Y,W,pe)}return w},ge=function(w,$){var Y=O(w,$,"hex");return Y.create=function(){return new ve(w,$,w)},Y.update=function(W){return Y.create().update(W)},oe(Y,O,w,$)},Ee=function(w,$){var Y=P(w,$,"hex");return Y.create=function(W){return new ve(w,$,W)},Y.update=function(W,de){return Y.create(de).update(W)},oe(Y,P,w,$)},D=function(w,$){var Y=M[w],W=L(w,$,"hex");return W.create=function(de,pe,E){return re(pe)&&re(E)?te["shake"+w].create(de):new ve(w,$,de).bytepad([pe,E],Y)},W.update=function(de,pe,E,g){return W.create(pe,E,g).update(de)},oe(W,L,w,$)},fe=function(w,$){var Y=M[w],W=q(w,$,"hex");return W.create=function(de,pe,E){return new Ae(w,$,pe).bytepad(["KMAC",E],Y).bytepad([de],Y)},W.update=function(de,pe,E,g){return W.create(de,E,g).update(pe)},oe(W,q,w,$)},be=[{name:"keccak",padding:y,bits:F,createMethod:ge},{name:"sha3",padding:I,bits:F,createMethod:ge},{name:"shake",padding:v,bits:N,createMethod:Ee},{name:"cshake",padding:A,bits:N,createMethod:D},{name:"kmac",padding:A,bits:N,createMethod:fe}],te={},j=[],ue=0;ue<be.length;++ue)for(var me=be[ue],ne=me.bits,G=0;G<ne.length;++G){var Q=me.name+"_"+ne[G];if(j.push(Q),te[Q]=me.createMethod(ne[G],me.padding),me.name!=="sha3"){var J=me.name+ne[G];j.push(J),te[J]=te[Q]}}function ve(w,$,Y){this.blocks=[],this.s=[],this.padding=$,this.outputBits=Y,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(w<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=Y>>5,this.extraBytes=(Y&31)>>3;for(var W=0;W<50;++W)this.s[W]=0}ve.prototype.update=function(w){if(this.finalized)throw new Error(i);var $=X(w);w=$[0];for(var Y=$[1],W=this.blocks,de=this.byteCount,pe=w.length,E=this.blockCount,g=0,b=this.s,C,K;g<pe;){if(this.reset)for(this.reset=!1,W[0]=this.block,C=1;C<E+1;++C)W[C]=0;if(Y)for(C=this.start;g<pe&&C<de;++g)K=w.charCodeAt(g),K<128?W[C>>2]|=K<<R[C++&3]:K<2048?(W[C>>2]|=(192|K>>6)<<R[C++&3],W[C>>2]|=(128|K&63)<<R[C++&3]):K<55296||K>=57344?(W[C>>2]|=(224|K>>12)<<R[C++&3],W[C>>2]|=(128|K>>6&63)<<R[C++&3],W[C>>2]|=(128|K&63)<<R[C++&3]):(K=65536+((K&1023)<<10|w.charCodeAt(++g)&1023),W[C>>2]|=(240|K>>18)<<R[C++&3],W[C>>2]|=(128|K>>12&63)<<R[C++&3],W[C>>2]|=(128|K>>6&63)<<R[C++&3],W[C>>2]|=(128|K&63)<<R[C++&3]);else for(C=this.start;g<pe&&C<de;++g)W[C>>2]|=w[g]<<R[C++&3];if(this.lastByteIndex=C,C>=de){for(this.start=C-de,this.block=W[E],C=0;C<E;++C)b[C]^=W[C];V(b),this.reset=!0}else this.start=C}return this},ve.prototype.encode=function(w,$){var Y=w&255,W=1,de=[Y];for(w=w>>8,Y=w&255;Y>0;)de.unshift(Y),w=w>>8,Y=w&255,++W;return $?de.push(W):de.unshift(W),this.update(de),de.length},ve.prototype.encodeString=function(w){var $=X(w);w=$[0];var Y=$[1],W=0,de=w.length;if(Y)for(var pe=0;pe<w.length;++pe){var E=w.charCodeAt(pe);E<128?W+=1:E<2048?W+=2:E<55296||E>=57344?W+=3:(E=65536+((E&1023)<<10|w.charCodeAt(++pe)&1023),W+=4)}else W=de;return W+=this.encode(W*8),this.update(w),W},ve.prototype.bytepad=function(w,$){for(var Y=this.encode($),W=0;W<w.length;++W)Y+=this.encodeString(w[W]);var de=($-Y%$)%$,pe=[];return pe.length=de,this.update(pe),this},ve.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var w=this.blocks,$=this.lastByteIndex,Y=this.blockCount,W=this.s;if(w[$>>2]|=this.padding[$&3],this.lastByteIndex===this.byteCount)for(w[0]=w[Y],$=1;$<Y+1;++$)w[$]=0;for(w[Y-1]|=2147483648,$=0;$<Y;++$)W[$]^=w[$];V(W)}},ve.prototype.toString=ve.prototype.hex=function(){this.finalize();for(var w=this.blockCount,$=this.s,Y=this.outputBlocks,W=this.extraBytes,de=0,pe=0,E="",g;pe<Y;){for(de=0;de<w&&pe<Y;++de,++pe)g=$[de],E+=m[g>>4&15]+m[g&15]+m[g>>12&15]+m[g>>8&15]+m[g>>20&15]+m[g>>16&15]+m[g>>28&15]+m[g>>24&15];pe%w===0&&($=ie($),V($),de=0)}return W&&(g=$[de],E+=m[g>>4&15]+m[g&15],W>1&&(E+=m[g>>12&15]+m[g>>8&15]),W>2&&(E+=m[g>>20&15]+m[g>>16&15])),E},ve.prototype.arrayBuffer=function(){this.finalize();var w=this.blockCount,$=this.s,Y=this.outputBlocks,W=this.extraBytes,de=0,pe=0,E=this.outputBits>>3,g;W?g=new ArrayBuffer(Y+1<<2):g=new ArrayBuffer(E);for(var b=new Uint32Array(g);pe<Y;){for(de=0;de<w&&pe<Y;++de,++pe)b[pe]=$[de];pe%w===0&&($=ie($),V($))}return W&&(b[pe]=$[de],g=g.slice(0,E)),g},ve.prototype.buffer=ve.prototype.arrayBuffer,ve.prototype.digest=ve.prototype.array=function(){this.finalize();for(var w=this.blockCount,$=this.s,Y=this.outputBlocks,W=this.extraBytes,de=0,pe=0,E=[],g,b;pe<Y;){for(de=0;de<w&&pe<Y;++de,++pe)g=pe<<2,b=$[de],E[g]=b&255,E[g+1]=b>>8&255,E[g+2]=b>>16&255,E[g+3]=b>>24&255;pe%w===0&&($=ie($),V($))}return W&&(g=pe<<2,b=$[de],E[g]=b&255,W>1&&(E[g+1]=b>>8&255),W>2&&(E[g+2]=b>>16&255)),E};function Ae(w,$,Y){ve.call(this,w,$,Y)}Ae.prototype=new ve,Ae.prototype.finalize=function(){return this.encode(this.outputBits,!0),ve.prototype.finalize.call(this)};var V=function(w){var $,Y,W,de,pe,E,g,b,C,K,xe,Re,ze,ce,le,Ce,Me,Le,tt,Ze,ot,at,ct,ut,bt,wt,_,he,_e,Pe,He,it,nt,st,rt,At,Sr,wa,Sa,Ln,Ia,Es,zu,ws,Ss,Fo,Vu,et,Ca,kn,Is,Gu,No,Cs,Do,$n,Ts,Ta,Os,Oa,Rs,Fs,Bi;for(W=0;W<48;W+=2)de=w[0]^w[10]^w[20]^w[30]^w[40],pe=w[1]^w[11]^w[21]^w[31]^w[41],E=w[2]^w[12]^w[22]^w[32]^w[42],g=w[3]^w[13]^w[23]^w[33]^w[43],b=w[4]^w[14]^w[24]^w[34]^w[44],C=w[5]^w[15]^w[25]^w[35]^w[45],K=w[6]^w[16]^w[26]^w[36]^w[46],xe=w[7]^w[17]^w[27]^w[37]^w[47],Re=w[8]^w[18]^w[28]^w[38]^w[48],ze=w[9]^w[19]^w[29]^w[39]^w[49],$=Re^(E<<1|g>>>31),Y=ze^(g<<1|E>>>31),w[0]^=$,w[1]^=Y,w[10]^=$,w[11]^=Y,w[20]^=$,w[21]^=Y,w[30]^=$,w[31]^=Y,w[40]^=$,w[41]^=Y,$=de^(b<<1|C>>>31),Y=pe^(C<<1|b>>>31),w[2]^=$,w[3]^=Y,w[12]^=$,w[13]^=Y,w[22]^=$,w[23]^=Y,w[32]^=$,w[33]^=Y,w[42]^=$,w[43]^=Y,$=E^(K<<1|xe>>>31),Y=g^(xe<<1|K>>>31),w[4]^=$,w[5]^=Y,w[14]^=$,w[15]^=Y,w[24]^=$,w[25]^=Y,w[34]^=$,w[35]^=Y,w[44]^=$,w[45]^=Y,$=b^(Re<<1|ze>>>31),Y=C^(ze<<1|Re>>>31),w[6]^=$,w[7]^=Y,w[16]^=$,w[17]^=Y,w[26]^=$,w[27]^=Y,w[36]^=$,w[37]^=Y,w[46]^=$,w[47]^=Y,$=K^(de<<1|pe>>>31),Y=xe^(pe<<1|de>>>31),w[8]^=$,w[9]^=Y,w[18]^=$,w[19]^=Y,w[28]^=$,w[29]^=Y,w[38]^=$,w[39]^=Y,w[48]^=$,w[49]^=Y,ce=w[0],le=w[1],Fo=w[11]<<4|w[10]>>>28,Vu=w[10]<<4|w[11]>>>28,he=w[20]<<3|w[21]>>>29,_e=w[21]<<3|w[20]>>>29,Oa=w[31]<<9|w[30]>>>23,Rs=w[30]<<9|w[31]>>>23,Es=w[40]<<18|w[41]>>>14,zu=w[41]<<18|w[40]>>>14,st=w[2]<<1|w[3]>>>31,rt=w[3]<<1|w[2]>>>31,Ce=w[13]<<12|w[12]>>>20,Me=w[12]<<12|w[13]>>>20,et=w[22]<<10|w[23]>>>22,Ca=w[23]<<10|w[22]>>>22,Pe=w[33]<<13|w[32]>>>19,He=w[32]<<13|w[33]>>>19,Fs=w[42]<<2|w[43]>>>30,Bi=w[43]<<2|w[42]>>>30,Cs=w[5]<<30|w[4]>>>2,Do=w[4]<<30|w[5]>>>2,At=w[14]<<6|w[15]>>>26,Sr=w[15]<<6|w[14]>>>26,Le=w[25]<<11|w[24]>>>21,tt=w[24]<<11|w[25]>>>21,kn=w[34]<<15|w[35]>>>17,Is=w[35]<<15|w[34]>>>17,it=w[45]<<29|w[44]>>>3,nt=w[44]<<29|w[45]>>>3,ut=w[6]<<28|w[7]>>>4,bt=w[7]<<28|w[6]>>>4,$n=w[17]<<23|w[16]>>>9,Ts=w[16]<<23|w[17]>>>9,wa=w[26]<<25|w[27]>>>7,Sa=w[27]<<25|w[26]>>>7,Ze=w[36]<<21|w[37]>>>11,ot=w[37]<<21|w[36]>>>11,Gu=w[47]<<24|w[46]>>>8,No=w[46]<<24|w[47]>>>8,ws=w[8]<<27|w[9]>>>5,Ss=w[9]<<27|w[8]>>>5,wt=w[18]<<20|w[19]>>>12,_=w[19]<<20|w[18]>>>12,Ta=w[29]<<7|w[28]>>>25,Os=w[28]<<7|w[29]>>>25,Ln=w[38]<<8|w[39]>>>24,Ia=w[39]<<8|w[38]>>>24,at=w[48]<<14|w[49]>>>18,ct=w[49]<<14|w[48]>>>18,w[0]=ce^~Ce&Le,w[1]=le^~Me&tt,w[10]=ut^~wt&he,w[11]=bt^~_&_e,w[20]=st^~At&wa,w[21]=rt^~Sr&Sa,w[30]=ws^~Fo&et,w[31]=Ss^~Vu&Ca,w[40]=Cs^~$n&Ta,w[41]=Do^~Ts&Os,w[2]=Ce^~Le&Ze,w[3]=Me^~tt&ot,w[12]=wt^~he&Pe,w[13]=_^~_e&He,w[22]=At^~wa&Ln,w[23]=Sr^~Sa&Ia,w[32]=Fo^~et&kn,w[33]=Vu^~Ca&Is,w[42]=$n^~Ta&Oa,w[43]=Ts^~Os&Rs,w[4]=Le^~Ze&at,w[5]=tt^~ot&ct,w[14]=he^~Pe&it,w[15]=_e^~He&nt,w[24]=wa^~Ln&Es,w[25]=Sa^~Ia&zu,w[34]=et^~kn&Gu,w[35]=Ca^~Is&No,w[44]=Ta^~Oa&Fs,w[45]=Os^~Rs&Bi,w[6]=Ze^~at&ce,w[7]=ot^~ct&le,w[16]=Pe^~it&ut,w[17]=He^~nt&bt,w[26]=Ln^~Es&st,w[27]=Ia^~zu&rt,w[36]=kn^~Gu&ws,w[37]=Is^~No&Ss,w[46]=Oa^~Fs&Cs,w[47]=Rs^~Bi&Do,w[8]=at^~ce&Ce,w[9]=ct^~le&Me,w[18]=it^~ut&wt,w[19]=nt^~bt&_,w[28]=Es^~st&At,w[29]=zu^~rt&Sr,w[38]=Gu^~ws&Fo,w[39]=No^~Ss&Vu,w[48]=Fs^~Cs&$n,w[49]=Bi^~Do&Ts,w[0]^=U[W],w[1]^=U[W+1]};if(p)e.exports=te;else for(ue=0;ue<j.length;++ue)u[j[ue]]=te[j[ue]]})()})(vw)),vw.exports}var Ine=Sne();const Zj=lg(Ine),{keccak_256:Cne}=Zj;function Jj(e){return`0x${Cne(e).slice(0,40)}`}Jj(`${gt.CARDANO_CARP_PARALLEL}-${Qe.CardanoCarpMintBurn}-${hn.MintOrBurn}`);Jj(`${gt.CARDANO_CARP_PARALLEL}-${Qe.CardanoCarpTransfer}-${hn.Transfer}`);Qe.EvmRpcERC20+"",Ql(["from","to","value"]).from(jI),Qe.EvmRpcERC721+"",Ql(["from","tokenId","mintData"]).from(og),[PI.properties.from,...Km(["tokenId"]).from(og)],Qe.EvmRpcERC1155+"",Ql(["operator","from","to","ids","values"]).from(ag),Km(["operator","from","ids","values"]).from(ag),Qe.EvmRpcERC6551Registry+"",Qe.EvmRpcDynamicPrimitive+"",Qe.EvmRpcGeneric+"",Qe.CardanoCarpDelegation+"",Ql(["address","pool","epoch"]).from(UI),Qe.CardanoCarpProjectedNFT+"",[...Km(["ownerAddress","previousTxHash","previousTxOutputIndex","policyId","assetName","amount","status","forHowLong"]).from(Cd),Cd.properties.actionTxId,Cd.properties.actionOutputIndex],Qe.CardanoCarpDelayedAsset+"",Qe.CardanoCarpTransfer+"",Ql(["txId","rawTx","inputCredentials","outputs","metadata"]).from(MI),Qe.CardanoCarpMintBurn+"",Ql(["txId","metadata","assets","inputAddresses","outputAddresses"]).from(_I),Qe.CardanoUtxorpcMatchTx+"",Qe.MinaEventGeneric+"",Qe.MinaActionGeneric+"",Qe.MidnightContractState+"";const{keccak_256:Yne}=Zj;function Wj(e,n,i,a,u){let l;switch(a){case Nn.EVM:l=EX(Ie.Evm.Address,i);break;default:throw new Error("NYI: Unsupported wallet address type: "+a)}return(""+n+l+u).replace(/[^a-zA-Z0-9]/g,"-").toLocaleLowerCase()}const Tne={EVM:0};async function One(e,n){const i=xo(n.privateKey),a=wd({account:i,chain:Id,transport:Sd()}),u=Date.now().toString(),l=i.address,f=Tne.EVM,p=Wj(null,u,l,f,e),h=await a.signMessage({account:i,message:p});return{addressType:f,userAddress:l,userSignature:h,conciseInput:e,millisecondTimestamp:u}}async function Rne(e){const n=await fetch(I_,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:e})});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return await n.json()}async function qm(e,n){console.log("🚀 Creating signed input for:",e);const i=await One(e,n);console.log("✅ Signed input created:",{...i,userSignature:i.userSignature.slice(0,10)+"..."}),console.log("📤 Sending to batcher...");const a=await Rne(i);return console.log("🎉 Batcher response:",a),a}function Fne(){const[e,n]=je.useState([]),[i,a]=je.useState(!0),[u,l]=je.useState(null),[f,p]=je.useState(10),[h,m]=je.useState(0),[v,A]=je.useState([void 0]),[y,I]=je.useState(!1),[R,U]=je.useState([]),[F,N]=je.useState(null),[B,M]=je.useState([]),[H,k]=je.useState(!1),[X,re]=je.useState(!1),[ie,O]=je.useState(!1),[P,L]=je.useState(""),[q,oe]=je.useState(""),[ge,Ee]=je.useState(""),[D,fe]=je.useState(null),[be,te]=je.useState(null),j=(pe,E,g)=>{const b=Date.now(),C={id:b,type:pe,title:E,message:g};M(K=>[...K,C]),setTimeout(()=>{M(K=>K.filter(xe=>xe.id!==b))},5e3)},ue=pe=>{M(E=>E.filter(g=>g.id!==pe))},me=()=>{const pe=O8(),E=xo(pe),g={id:Date.now().toString(),privateKey:pe,address:E.address,name:`Wallet ${R.length+1}`};U(b=>[...b,g]),N(g),j("success","Wallet Generated",`New wallet created: ${E.address.slice(0,6)}...${E.address.slice(-4)}`)},ne=pe=>{U(E=>E.filter(g=>g.id!==pe)),(F==null?void 0:F.id)===pe&&N(null)},G=async()=>{if(!F){j("error","No Wallet","Please select a wallet first");return}O(!0);try{const E=JSON.stringify(["&createAccount"]);await qm(E,F),j("success","Account Created","Successfully created account! Use the refresh button to see updated addresses.")}catch(pe){j("error","Create Account Error",`Error creating account: ${pe instanceof Error?pe.message:"Unknown error"}`)}finally{O(!1)}},Q=async()=>{if(!F){j("error","No Wallet","Please select a wallet first");return}if(!D){j("error","No Account","Please select an account ID");return}O(!0);try{const pe=["&unlinkAddress",D.toString(),"","",""],E=JSON.stringify(pe);await qm(E,F),j("success","Self Unlinked","Successfully unlinked self from account! Use the refresh button to see updated addresses.")}catch(pe){j("error","Unlink Self Error",`Error unlinking self: ${pe instanceof Error?pe.message:"Unknown error"}`)}finally{O(!1)}},J=async()=>{if(!F){j("error","No Wallet","Please select a wallet first");return}if(!D){j("error","No Account","Please select an account ID");return}if(!ge.trim()){j("error","No Address","Please enter an address to unlink");return}const pe=wd({account:xo(F.privateKey),chain:Id,transport:Sd()});O(!0);const E=`unlink:${String(D)}:${ge.toString().toLowerCase().trim()}:`,g=await pe.signMessage({account:xo(F.privateKey),message:E});try{const b=["&unlinkAddress",D.toString(),g,ge.toString().toLowerCase().trim(),""],C=JSON.stringify(b);await qm(C,F),j("success","Address Unlinked","Successfully unlinked address from account! Use the refresh button to see updated addresses."),Ee("")}catch(b){j("error","Unlink Other Error",`Error unlinking address: ${b instanceof Error?b.message:"Unknown error"}`)}finally{O(!1)}},ve=async()=>{if(!F){j("error","No Wallet","Please select a wallet first");return}if(!D){j("error","No Account","Please select an account ID");return}if(!be){j("error","No Link Wallet","Please select a wallet to link");return}O(!0);try{const pe=wd({account:xo(F.privateKey),chain:Id,transport:Sd()}),E=wd({account:xo(be.privateKey),chain:Id,transport:Sd()}),g=`link:${D}:${be.address.toString().toLowerCase().trim()}:false`,b=await pe.signMessage({account:xo(F.privateKey),message:g}),C=`link:${D}:${F.address.toString().toLowerCase().trim()}:false`,K=await E.signMessage({account:xo(be.privateKey),message:C}),xe=["&linkAddress",D.toString(),b,be.address.toString().toLowerCase().trim(),K,"false"],Re=JSON.stringify(xe);await qm(Re,F),j("success","Address Linked","Successfully linked address to account! Use the refresh button to see updated addresses."),te(null)}catch(pe){j("error","Link Address Error",`Error linking address: ${pe instanceof Error?pe.message:"Unknown error"}`)}finally{O(!1)}},Ae=async()=>{try{a(!0),l(null);const pe=new URL(az);pe.searchParams.set("limit",String(f));const E=v[h];E&&pe.searchParams.set("after",E);const g=await fetch(pe.toString());if(!g.ok)throw new Error(`HTTP error! status: ${g.status}`);const b=await g.json(),C=b.data??[];n(C),b.pagination&&(I(b.pagination.hasMore??!1),b.pagination.nextCursor&&v.length===h+1&&A(K=>[...K,b.pagination.nextCursor]))}catch(pe){console.error("Error fetching addresses:",pe),l(pe instanceof Error?pe.message:"Unknown error")}finally{a(!1)}};je.useEffect(()=>{Ae()},[f,h]);const V=e.reduce((pe,E)=>{const g=pe.find(b=>b.account_id===E.account_id);return g?(g.addresses.includes(E.address)||g.addresses.push(E.address),E.primary_address&&(g.hasPrimaryAddress=!0,g.primaryAddress=E.primary_address)):pe.push({account_id:E.account_id,addresses:[E.address],hasPrimaryAddress:!!E.primary_address,primaryAddress:E.primary_address}),pe},[]),w=[...new Set(V.map(pe=>pe.account_id).filter(pe=>pe!==null))],$=pe=>{p(Number(pe.target.value)),m(0),A([void 0])},Y=()=>{y&&m(pe=>pe+1)},W=()=>{m(pe=>Math.max(0,pe-1))},de=()=>{m(0)};return i?ee.jsxDEV("div",{className:"addresses-loading",children:ee.jsxDEV("div",{className:"loading-text",children:"Loading addresses..."},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:504,columnNumber:9},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:503,columnNumber:7},this):u?ee.jsxDEV("div",{className:"addresses-error",children:ee.jsxDEV("div",{className:"error-text",children:["Error loading addresses: ",u]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:512,columnNumber:9},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:511,columnNumber:7},this):ee.jsxDEV("div",{className:"addresses-table-container",children:[ee.jsxDEV("div",{style:{position:"fixed",top:"20px",right:"20px",zIndex:1e3,display:"flex",flexDirection:"column",gap:"10px"},children:B.map(pe=>ee.jsxDEV("div",{style:{background:pe.type==="success"?"#10b981":pe.type==="error"?"#ef4444":"#3b82f6",color:"white",padding:"12px 16px",borderRadius:"8px",minWidth:"300px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",display:"flex",justifyContent:"space-between",alignItems:"flex-start",animation:"slideIn 0.3s ease-out"},children:[ee.jsxDEV("div",{children:[ee.jsxDEV("div",{style:{fontWeight:"600",marginBottom:"4px"},children:pe.title},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:552,columnNumber:15},this),ee.jsxDEV("div",{style:{fontSize:"14px",opacity:.9},children:pe.message},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:555,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:551,columnNumber:13},this),ee.jsxDEV("button",{type:"button",onClick:()=>ue(pe.id),style:{background:"none",border:"none",color:"white",cursor:"pointer",fontSize:"18px",padding:"0",marginLeft:"12px",opacity:.7},children:"×"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:559,columnNumber:13},this)]},pe.id,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:532,columnNumber:11},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:520,columnNumber:7},this),ee.jsxDEV("div",{style:{marginBottom:"20px",padding:"20px",border:"1px solid #ddd",borderRadius:"8px",background:"#f8fafc"},children:[ee.jsxDEV("div",{onClick:()=>k(!H),style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",marginBottom:H?0:"20px"},children:[ee.jsxDEV("h3",{style:{margin:0,color:"#333"},children:"Wallet Management"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:599,columnNumber:11},this),ee.jsxDEV("span",{style:{fontSize:"18px",color:"#666",transform:H?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease-in-out"},children:"▼"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:600,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:589,columnNumber:9},this),!H&&ee.jsxDEV(ee.Fragment,{children:[ee.jsxDEV("div",{style:{marginBottom:"20px"},children:ee.jsxDEV("button",{type:"button",onClick:me,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"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:618,columnNumber:15},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:617,columnNumber:13},this),R.length>0&&ee.jsxDEV("div",{style:{marginBottom:"20px"},children:[ee.jsxDEV("h4",{style:{margin:"0 0 10px 0",color:"#333"},children:"Available Wallets:"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:639,columnNumber:17},this),ee.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:R.map(pe=>ee.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"10px",border:(F==null?void 0:F.id)===pe.id?"2px solid #19b17b":"1px solid #ddd",borderRadius:"6px",background:(F==null?void 0:F.id)===pe.id?"#f0fdf4":"white"},children:[ee.jsxDEV("input",{type:"radio",name:"selectedWallet",checked:(F==null?void 0:F.id)===pe.id,onChange:()=>N(pe),style:{margin:0}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:666,columnNumber:23},this),ee.jsxDEV("span",{style:{fontSize:"14px",fontFamily:"monospace",color:"#666",flex:"1"},children:pe.name},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:673,columnNumber:23},this),ee.jsxDEV("span",{style:{fontSize:"14px",fontFamily:"monospace",color:"#666",flex:"2"},children:pe.address},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:698,columnNumber:23},this),ee.jsxDEV("button",{type:"button",onClick:()=>ne(pe.id),style:{padding:"4px 8px",background:"#ef4444",color:"white",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"12px"},children:"Remove"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:708,columnNumber:23},this)]},pe.id,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:650,columnNumber:21},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:642,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:638,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:615,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:580,columnNumber:7},this),F&&ee.jsxDEV("div",{style:{marginBottom:"20px",padding:"20px",border:"1px solid #ddd",borderRadius:"8px",background:"#fef7ff"},children:[ee.jsxDEV("div",{onClick:()=>re(!X),style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",marginBottom:X?0:"20px"},children:[ee.jsxDEV("h3",{style:{margin:0,color:"#333"},children:"Account Commands"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:754,columnNumber:13},this),ee.jsxDEV("span",{style:{fontSize:"18px",color:"#666",transform:X?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease-in-out"},children:"▼"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:755,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:743,columnNumber:11},this),!X&&ee.jsxDEV(ee.Fragment,{children:[ee.jsxDEV("div",{style:{marginBottom:"20px"},children:[ee.jsxDEV("label",{style:{display:"block",marginBottom:"10px",fontWeight:"600",fontSize:"16px"},children:"What would you like to do?"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:773,columnNumber:17},this),ee.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[ee.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px",border:P==="create"?"2px solid #19b17b":"1px solid #ddd",borderRadius:"6px",background:P==="create"?"#f0fdf4":"white",cursor:"pointer"},onClick:()=>L("create"),children:[ee.jsxDEV("input",{type:"radio",name:"action",checked:P==="create",onChange:()=>L("create"),style:{margin:0}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:807,columnNumber:21},this),ee.jsxDEV("div",{style:{flex:"1"},children:[ee.jsxDEV("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"1. Create new account"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:815,columnNumber:23},this),ee.jsxDEV("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Can only create if not linked to any account"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:818,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:814,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:790,columnNumber:19},this),ee.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px",border:P==="link"?"2px solid #3b82f6":"1px solid #ddd",borderRadius:"6px",background:P==="link"?"#eff6ff":"white",cursor:"pointer"},onClick:()=>L("link"),children:[ee.jsxDEV("input",{type:"radio",name:"action",checked:P==="link",onChange:()=>L("link"),style:{margin:0}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:847,columnNumber:21},this),ee.jsxDEV("div",{style:{flex:"1"},children:[ee.jsxDEV("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"2. Link Account"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:855,columnNumber:23},this),ee.jsxDEV("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Only Account Primary can do this Action"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:858,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:854,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:830,columnNumber:19},this),ee.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px",border:P==="unlink-other"?"2px solid #f59e0b":"1px solid #ddd",borderRadius:"6px",background:P==="unlink-other"?"#fffbeb":"white",cursor:"pointer"},onClick:()=>L("unlink-other"),children:[ee.jsxDEV("input",{type:"radio",name:"action",checked:P==="unlink-other",onChange:()=>L("unlink-other"),style:{margin:0}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:887,columnNumber:21},this),ee.jsxDEV("div",{style:{flex:"1"},children:[ee.jsxDEV("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"3. Unlink Account"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:895,columnNumber:23},this),ee.jsxDEV("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Only Account Primary can do this Action"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:898,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:894,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:870,columnNumber:19},this),ee.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"12px",border:P==="unlink-self"?"2px solid #ef4444":"1px solid #ddd",borderRadius:"6px",background:P==="unlink-self"?"#fef2f2":"white",cursor:"pointer"},onClick:()=>L("unlink-self"),children:[ee.jsxDEV("input",{type:"radio",name:"action",checked:P==="unlink-self",onChange:()=>L("unlink-self"),style:{margin:0}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:927,columnNumber:21},this),ee.jsxDEV("div",{style:{flex:"1"},children:[ee.jsxDEV("div",{style:{fontWeight:"600",marginBottom:"4px"},children:"4. Unlink Self"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:935,columnNumber:23},this),ee.jsxDEV("div",{style:{fontSize:"14px",color:"#666",fontStyle:"italic"},children:"Unlink self from account"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:938,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:934,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:910,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:783,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:772,columnNumber:15},this),P&&ee.jsxDEV("div",{style:{marginTop:"20px",padding:"20px",background:"#f8fafc",borderRadius:"8px",border:"1px solid #e2e8f0"},children:[P==="create"&&ee.jsxDEV("div",{children:[ee.jsxDEV("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Create New Account"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:965,columnNumber:23},this),ee.jsxDEV("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."},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:968,columnNumber:23},this),ee.jsxDEV("button",{type:"button",onClick:G,disabled:ie,style:{padding:"10px 20px",background:ie?"#ccc":"linear-gradient(45deg, #19b17b, #022418)",color:"white",border:"none",borderRadius:"6px",cursor:ie?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:ie?"Creating...":"Create Account"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:978,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:964,columnNumber:21},this),P==="link"&&ee.jsxDEV("div",{children:[ee.jsxDEV("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Link Account"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1002,columnNumber:23},this),ee.jsxDEV("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."},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1005,columnNumber:23},this),ee.jsxDEV("div",{style:{marginBottom:"15px"},children:[ee.jsxDEV("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Account ID:"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1017,columnNumber:25},this),ee.jsxDEV("select",{value:D||"",onChange:pe=>fe(pe.target.value?parseInt(pe.target.value):null),style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"200px"},children:[ee.jsxDEV("option",{value:"",children:"-- Select Account ID --"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1039,columnNumber:27},this),w.map(pe=>ee.jsxDEV("option",{value:pe,children:["Account ",pe]},pe,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1041,columnNumber:29},this))]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1026,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1016,columnNumber:23},this),ee.jsxDEV("div",{style:{marginBottom:"15px"},children:[ee.jsxDEV("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Wallet to Link:"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1048,columnNumber:25},this),ee.jsxDEV("select",{value:(be==null?void 0:be.id)||"",onChange:pe=>{const E=R.find(g=>g.id===pe.target.value);te(E||null)},style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"300px"},children:[ee.jsxDEV("option",{value:"",children:"-- Select a wallet to link --"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1072,columnNumber:27},this),R.filter(pe=>pe.id!==(F==null?void 0:F.id)).map(pe=>ee.jsxDEV("option",{value:pe.id,children:[pe.name," (",pe.address,")"]},pe.id,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1080,columnNumber:31},this))]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1057,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1047,columnNumber:23},this),ee.jsxDEV("button",{type:"button",onClick:ve,disabled:ie||!D||!be,style:{padding:"10px 20px",background:ie||!D||!be?"#ccc":"linear-gradient(45deg, #3b82f6, #1e3a8a)",color:"white",border:"none",borderRadius:"6px",cursor:ie||!D||!be?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:ie?"Linking...":"Link Wallet"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1086,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1001,columnNumber:21},this),P==="unlink-other"&&ee.jsxDEV("div",{children:[ee.jsxDEV("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Unlink Account"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1115,columnNumber:23},this),ee.jsxDEV("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."},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1118,columnNumber:23},this),ee.jsxDEV("div",{style:{marginBottom:"15px"},children:[ee.jsxDEV("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Account ID:"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1129,columnNumber:25},this),ee.jsxDEV("select",{value:D||"",onChange:pe=>fe(pe.target.value?parseInt(pe.target.value):null),style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"200px"},children:[ee.jsxDEV("option",{value:"",children:"-- Select Account ID --"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1151,columnNumber:27},this),w.map(pe=>ee.jsxDEV("option",{value:pe,children:["Account ",pe]},pe,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1153,columnNumber:29},this))]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1138,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1128,columnNumber:23},this),ee.jsxDEV("div",{style:{marginBottom:"15px"},children:[ee.jsxDEV("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Address to Unlink:"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1160,columnNumber:25},this),ee.jsxDEV("input",{type:"text",value:ge,onChange:pe=>Ee(pe.target.value),placeholder:"Enter address to unlink",style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"300px"}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1169,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1159,columnNumber:23},this),ee.jsxDEV("button",{type:"button",onClick:J,disabled:ie||!D||!ge.trim(),style:{padding:"10px 20px",background:ie||!D||!ge.trim()?"#ccc":"linear-gradient(45deg, #f59e0b, #92400e)",color:"white",border:"none",borderRadius:"6px",cursor:ie||!D||!ge.trim()?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:ie?"Unlinking...":"Unlink Address"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1182,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1114,columnNumber:21},this),P==="unlink-self"&&ee.jsxDEV("div",{children:[ee.jsxDEV("h4",{style:{margin:"0 0 15px 0",color:"#333"},children:"Unlink Self"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1211,columnNumber:23},this),ee.jsxDEV("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."},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1214,columnNumber:23},this),ee.jsxDEV("div",{style:{marginBottom:"15px"},children:[ee.jsxDEV("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:"Account ID:"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1225,columnNumber:25},this),ee.jsxDEV("select",{value:D||"",onChange:pe=>fe(pe.target.value?parseInt(pe.target.value):null),style:{padding:"8px",border:"1px solid #ddd",borderRadius:"4px",width:"200px"},children:[ee.jsxDEV("option",{value:"",children:"-- Select Account ID --"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1247,columnNumber:27},this),w.map(pe=>ee.jsxDEV("option",{value:pe,children:["Account ",pe]},pe,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1249,columnNumber:29},this))]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1234,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1224,columnNumber:23},this),ee.jsxDEV("button",{type:"button",onClick:Q,disabled:ie||!D,style:{padding:"10px 20px",background:ie||!D?"#ccc":"linear-gradient(45deg, #ef4444, #7f1d1d)",color:"white",border:"none",borderRadius:"6px",cursor:ie||!D?"not-allowed":"pointer",fontWeight:"600",fontSize:"14px"},children:ie?"Unlinking...":"Unlink Self"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1255,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1210,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:954,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:770,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:734,columnNumber:9},this),ee.jsxDEV("div",{className:"addresses-table-wrapper",children:[ee.jsxDEV("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"15px"},children:[ee.jsxDEV("h3",{style:{margin:0,color:"#333"},children:"Addresses"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1295,columnNumber:11},this),ee.jsxDEV("div",{className:"table-controls",children:ee.jsxDEV("label",{children:["Rows per page:",ee.jsxDEV("select",{value:f,onChange:$,children:[ee.jsxDEV("option",{value:10,children:"10"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1300,columnNumber:17},this),ee.jsxDEV("option",{value:20,children:"20"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1301,columnNumber:17},this),ee.jsxDEV("option",{value:50,children:"50"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1302,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1299,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1297,columnNumber:13},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1296,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1287,columnNumber:9},this),i&&ee.jsxDEV("p",{children:"Loading..."},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1307,columnNumber:21},this),u&&ee.jsxDEV("p",{className:"error",children:u},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1308,columnNumber:19},this),!i&&!u&&ee.jsxDEV(ee.Fragment,{children:[ee.jsxDEV("table",{className:"addresses-table",children:[ee.jsxDEV("thead",{children:ee.jsxDEV("tr",{children:[ee.jsxDEV("th",{children:"Account ID"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1314,columnNumber:19},this),ee.jsxDEV("th",{children:"Addresses"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1315,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1313,columnNumber:17},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1312,columnNumber:15},this),ee.jsxDEV("tbody",{children:V.map((pe,E)=>ee.jsxDEV("tr",{className:pe.hasPrimaryAddress?"has-primary-address":"",children:[ee.jsxDEV("td",{className:"account-id-cell",children:ee.jsxDEV("div",{className:"account-id-content",children:pe.account_id??"No Account ID"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1327,columnNumber:23},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1326,columnNumber:21},this),ee.jsxDEV("td",{className:"addresses-cell",children:pe.addresses.map((g,b)=>ee.jsxDEV("div",{className:`address-item ${g===pe.primaryAddress?"primary-address":""}`,title:g===pe.primaryAddress?`${g} (Primary)`:g,children:[g,g===pe.primaryAddress&&ee.jsxDEV("span",{className:"primary-badge",children:"Primary"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1346,columnNumber:29},this)]},g,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1333,columnNumber:25},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1331,columnNumber:21},this)]},pe.account_id??`null-${E}`,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1320,columnNumber:19},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1318,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1311,columnNumber:13},this),ee.jsxDEV("div",{className:"pagination-controls",children:[ee.jsxDEV("button",{type:"button",onClick:de,disabled:h===0,children:"First"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1356,columnNumber:15},this),ee.jsxDEV("button",{type:"button",onClick:W,disabled:h===0,children:"Previous"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1363,columnNumber:15},this),ee.jsxDEV("button",{type:"button",onClick:Y,disabled:!y||e.length<f,children:"Next"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1370,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1355,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1310,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1286,columnNumber:7},this),V.length===0&&ee.jsxDEV("div",{className:"no-addresses",children:ee.jsxDEV("div",{className:"no-data-text",children:"No addresses found"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1383,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1382,columnNumber:9},this),ee.jsxDEV("style",{children:`
371
- @keyframes slideIn {
372
- from {
373
- transform: translateX(100%);
374
- opacity: 0;
375
- }
376
- to {
377
- transform: translateX(0);
378
- opacity: 1;
379
- }
380
- }
381
- `},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1388,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:518,columnNumber:5},this)}function xw({latestBlock:e,isConnected:n}){const[i,a]=je.useState(!1),[u,l]=je.useState(!1),[f,p]=je.useState(!1),[h,m]=je.useState(!1),v=()=>{a(!0)},A=()=>{a(!1)},y=()=>{l(!0)},I=()=>{l(!1)},R=()=>{p(!0)},U=()=>{p(!1)},F=()=>{m(!0)},N=()=>{m(!1)};return ee.jsxDEV(ee.Fragment,{children:[ee.jsxDEV("header",{className:"header",children:[ee.jsxDEV("h1",{className:"title",children:"Paima Explorer"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:59,columnNumber:9},this),ee.jsxDEV("div",{className:"header-right",children:[ee.jsxDEV("button",{type:"button",className:"batcher-api-button",onClick:v,children:"Batcher API"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:61,columnNumber:11},this),ee.jsxDEV("button",{type:"button",className:"node-api-button",onClick:y,children:"Paima Engine Node API"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:68,columnNumber:11},this),ee.jsxDEV("button",{type:"button",className:"documentation-button",onClick:R,children:"Documentation"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:75,columnNumber:11},this),ee.jsxDEV("button",{type:"button",className:"addresses-button",onClick:F,children:"Addresses"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:82,columnNumber:11},this),ee.jsxDEV("div",{className:"block-info",children:[ee.jsxDEV("span",{children:"Latest Block:"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:90,columnNumber:13},this),ee.jsxDEV("span",{id:"latest-block",style:{backgroundColor:n?"rgba(76, 175, 80, 0.1)":"rgba(244, 67, 54, 0.1)",color:n?"#4caf50":"#f44336"},children:n?e.toLocaleString():"Connection Error"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:91,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:89,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:60,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:58,columnNumber:7},this),ee.jsxDEV(hd,{isOpen:i,onClose:A,title:"Batcher API Documentation",className:"api",url:UD,children:ee.jsxDEV("div",{className:"documentation-content",children:ee.jsxDEV("iframe",{src:UD,className:"documentation-iframe",title:"Batcher API Documentation"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:114,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:113,columnNumber:9},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:106,columnNumber:7},this),ee.jsxDEV(hd,{isOpen:u,onClose:I,title:"Paima Engine Node API Documentation",className:"api",url:MD,children:ee.jsxDEV("div",{className:"documentation-content",children:ee.jsxDEV("iframe",{src:MD,className:"documentation-iframe",title:"Paima Engine Node API Documentation"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:130,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:129,columnNumber:9},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:122,columnNumber:7},this),ee.jsxDEV(hd,{className:"docs",isOpen:f,onClose:U,title:"Documentation",url:_D,children:ee.jsxDEV("div",{className:"documentation-content",children:ee.jsxDEV("iframe",{src:_D,className:"documentation-iframe",title:"Documentation"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:146,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:145,columnNumber:9},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:138,columnNumber:7},this),ee.jsxDEV(hd,{className:"addresses",isOpen:h,onClose:N,title:"Addresses",children:ee.jsxDEV(Fne,{},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:160,columnNumber:9},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:154,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:57,columnNumber:5},this)}function Nne(e){return e.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}function Dne({block:e,isNew:n=!1}){const[i,a]=je.useState(!1),u=async()=>{try{await navigator.clipboard.writeText(e.hash),a(!0),setTimeout(()=>a(!1),300),console.log(`📋 Copied to clipboard: ${e.hash}`)}catch(l){console.error("Failed to copy to clipboard:",l)}};return ee.jsxDEV("div",{className:`block-item ${n?"new-block":""}`,onClick:u,style:{backgroundColor:i?"rgba(76, 175, 80, 0.2)":void 0,cursor:"pointer"},children:[ee.jsxDEV("div",{className:"block-header",children:[ee.jsxDEV("div",{className:"block-number",children:["Block #",e.number.toLocaleString()]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BlockItem.tsx",lineNumber:47,columnNumber:9},this),ee.jsxDEV("div",{className:"block-timestamp",children:Nne(e.timestamp)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BlockItem.tsx",lineNumber:50,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BlockItem.tsx",lineNumber:46,columnNumber:7},this),ee.jsxDEV("div",{className:"block-hash",children:e.hash},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BlockItem.tsx",lineNumber:54,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BlockItem.tsx",lineNumber:38,columnNumber:5},this)}function Bne({title:e,blockTime:n,blocks:i,isMainColumn:a=!1,newBlockIndex:u}){const l=i.filter((f,p,h)=>p===h.findIndex(m=>m.number===f.number&&m.hash===f.hash));return ee.jsxDEV("div",{className:`row ${a?"main-row":""}`,children:[ee.jsxDEV("h2",{className:"row-title",children:[e,n?` - Block Time: ${n}`:""]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BlockRow.tsx",lineNumber:32,columnNumber:7},this),ee.jsxDEV("div",{className:"blocks-list",children:l.length===0?ee.jsxDEV("div",{className:"block-item placeholder",children:"No Blocks Fetched"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BlockRow.tsx",lineNumber:38,columnNumber:13},this):l.map((f,p)=>ee.jsxDEV(Dne,{block:f,isNew:u===p},`${p}-${f.number}-${f.hash}`,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BlockRow.tsx",lineNumber:40,columnNumber:13},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BlockRow.tsx",lineNumber:36,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BlockRow.tsx",lineNumber:31,columnNumber:5},this)}function Une(e,n){if(n.blockTime)return`${n.blockTime/1e3}s`}function KM({chainConfigs:e,newBlockIndices:n}){return ee.jsxDEV("div",{className:"rows-container",children:Object.entries(e).map(([i,a])=>{const l=(a.type||"").toUpperCase()==="CARDANO"?[]:a.blocks;return ee.jsxDEV(Bne,{title:a.name,blockTime:Une(i,a),blocks:l,isMainColumn:i==="paima",newBlockIndex:n[i]},i,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/ColumnsContainer.tsx",lineNumber:50,columnNumber:11},this)})},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/ColumnsContainer.tsx",lineNumber:44,columnNumber:5},this)}function Mne(e,n){if(e==null)return"";if(n==="inputs"&&typeof e=="string")try{const i=JSON.parse(e);return`<code style="font-size: 0.75em; background: rgba(0,0,0,0.1); padding: 4px 6px; border-radius: 3px; display: block; white-space: pre-wrap; max-height: 80px; overflow-y: auto;">${JSON.stringify(i,null,1).replace(/\n/g,"<br>")}</code>`}catch{return e.toString()}if(typeof e=="string"&&e.startsWith("0x")&&e.length===42)return`<span class="address-cell" style="overflow: hidden; text-overflow: ellipsis;" title="${e}">${e}</span>`;if(typeof e=="string"&&/^\d+$/.test(e)&&e.length>10){const i=BigInt(e);return n&&n.toLowerCase().includes("balance")?`${(Number(i)/Math.pow(10,18)).toFixed(6)} ETH`:i.toString()}return e.toString()}function _ne({title:e,data:n,pagination:i,onPrev:a,onNext:u,onFirst:l,onLimitChange:f}){const p=n&&n.rows&&n.fields&&n.rows.length>0,h=(n==null?void 0:n.fields)||[],m=(n==null?void 0:n.rows)||[],v=!!i&&i.hasMore&&m.length>=i.limit,A=!!i&&i.currentPage>0,y=!i||!A&&!v;return ee.jsxDEV("div",{className:`primitive-table-container ${m.length>6?"has-scroll":""}`,children:[ee.jsxDEV("h3",{className:"primitive-table-title",children:e},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:84,columnNumber:7},this),p?ee.jsxDEV("table",{className:"primitive-table",children:[ee.jsxDEV("thead",{children:ee.jsxDEV("tr",{children:h.map(I=>ee.jsxDEV("th",{children:I.name.replace(/_/g," ").toUpperCase()},I.name,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:92,columnNumber:19},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:90,columnNumber:15},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:89,columnNumber:13},this),ee.jsxDEV("tbody",{children:m.slice().reverse().map((I,R)=>ee.jsxDEV("tr",{children:h.map(U=>{const F=I[U.name],N=Mne(F,U.name),B=F?F.toString():"";return ee.jsxDEV("td",{dangerouslySetInnerHTML:{__html:N},title:B.length>30?B:void 0},U.name,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:107,columnNumber:23},this)})},R,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:100,columnNumber:17},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:98,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:88,columnNumber:11},this):ee.jsxDEV("div",{className:"table-error",children:"No data available"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:86,columnNumber:11},this),i&&!y&&ee.jsxDEV("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginTop:8},children:ee.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:8},children:[ee.jsxDEV("button",{type:"button",onClick:l,disabled:!A,style:{padding:"6px 10px",borderRadius:6,border:"1px solid #ddd",background:A?"white":"#f3f4f6",cursor:A?"pointer":"not-allowed"},children:"First"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:132,columnNumber:13},this),ee.jsxDEV("button",{type:"button",onClick:a,disabled:!A,style:{padding:"6px 10px",borderRadius:6,border:"1px solid #ddd",background:A?"white":"#f3f4f6",cursor:A?"pointer":"not-allowed"},children:"Prev"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:146,columnNumber:13},this),ee.jsxDEV("button",{type:"button",onClick:u,disabled:!v,style:{padding:"6px 10px",borderRadius:6,border:"1px solid #ddd",background:v?"white":"#f3f4f6",cursor:v?"pointer":"not-allowed"},children:"Next"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:160,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:131,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:123,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:79,columnNumber:5},this)}function Ew({title:e,tables:n,isLoading:i=!1,children:a,pagination:u,onPrev:l,onNext:f,onFirst:p,onLimitChange:h}){const m=Object.entries(n);return ee.jsxDEV("div",{className:"tables-section",children:[ee.jsxDEV("h2",{className:"section-title",children:e},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/TableSection.tsx",lineNumber:51,columnNumber:7},this),a,ee.jsxDEV("div",{className:"primitive-tables",children:m.length===0?ee.jsxDEV("div",{className:"table-error",children:["No ",e.toLowerCase()," configured"]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/TableSection.tsx",lineNumber:56,columnNumber:13},this):m.map(([v,A])=>ee.jsxDEV(_ne,{title:v,data:A,pagination:u==null?void 0:u[v],onPrev:l?()=>l(v):void 0,onNext:f?()=>f(v):void 0,onFirst:p?()=>p(v):void 0,onLimitChange:h?y=>h(v,y):void 0},v,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/TableSection.tsx",lineNumber:62,columnNumber:15},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/TableSection.tsx",lineNumber:53,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/TableSection.tsx",lineNumber:50,columnNumber:5},this)}const jne={EVM:0};async function Pne(e,n){const i=xo(n.privateKey),a=wd({account:i,chain:Id,transport:Sd()}),u=Date.now().toString(),l=i.address,f=jne.EVM,p=Wj(null,u,l,f,e),h=await a.signMessage({message:p});return{addressType:f,userAddress:l,userSignature:h,conciseInput:e,millisecondTimestamp:u}}async function Lne(e){const n=await fetch(I_,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:e})});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return await n.json()}async function kne(e,n){console.log("🚀 Creating signed input for:",e);const i=await Pne(e,n);console.log("✅ Signed input created:",{...i,userSignature:i.userSignature.slice(0,10)+"..."}),console.log("📤 Sending to batcher...");const a=await Lne(i);return console.log("🎉 Batcher response:",a),a}async function $ne(){try{const e=await fetch(tz);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 qne(){const[e,n]=je.useState(""),[i,a]=je.useState({}),[u,l]=je.useState(!1),[f,p]=je.useState(null),[h,m]=je.useState([]),[v,A]=je.useState(!0),[y,I]=je.useState({}),[R,U]=je.useState(!0),F=(O,P,L)=>{const q=Date.now(),oe={id:q,type:O,title:P,message:L};m(ge=>[...ge,oe]),setTimeout(()=>{m(ge=>ge.filter(Ee=>Ee.id!==q))},5e3)};je.useEffect(()=>{(async()=>{try{U(!0);const P=await $ne();I(P)}catch{F("error","Grammar Error","Failed to load grammar from server")}finally{U(!1)}})()},[]);const N=Object.keys(y),B=()=>{const O=O8(),P=xo(O),L={privateKey:O,address:P.address};p(L),F("success","Wallet Generated",`New wallet created: ${P.address.slice(0,6)}...${P.address.slice(-4)}`)},M=O=>{m(P=>P.filter(L=>L.id!==O))},H=O=>{n(O),a({})},k=(O,P)=>{a(L=>({...L,[O]:P}))},X=()=>{if(!e)return null;const O=[e],P=y[e];for(const[L,q]of P){const oe=i[L];if(oe!==void 0&&oe!=="")if(q.type==="integer")O.push(parseInt(oe)||0);else if(q.type==="object")try{O.push(typeof oe=="string"?JSON.parse(oe):oe)}catch{O.push(oe)}else O.push(oe)}return O},re=(O,P)=>{const L=i[O]||"";return P.type==="integer"?ee.jsxDEV("input",{type:"number",value:L,onChange:q=>k(O,q.target.value),placeholder:`Enter ${O}`,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"200px"}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:219,columnNumber:9},this):P.type==="string"?ee.jsxDEV("input",{type:"text",value:L,onChange:q=>k(O,q.target.value),placeholder:`Enter ${O}`,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"200px"}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:234,columnNumber:9},this):P.type==="object"?ee.jsxDEV("textarea",{value:typeof L=="string"?L:JSON.stringify(L,null,2),onChange:q=>k(O,q.target.value),placeholder:`Enter ${O} as JSON object`,rows:3,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"300px",fontFamily:"monospace"}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:249,columnNumber:9},this):ee.jsxDEV("input",{type:"text",value:L,onChange:q=>k(O,q.target.value),placeholder:`Enter ${O}`,style:{padding:"8px",border:"1px solid #ccc",borderRadius:"4px",width:"200px"}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:268,columnNumber:7},this)},ie=async()=>{if(!e){F("error","Missing Type","Please select a type");return}if(!f){F("error","No Wallet","Please generate a wallet first");return}const O=X();if(!O){F("error","Invalid Input","Failed to build JSON array");return}l(!0);try{const P=JSON.stringify(O);await kne(P,f),F("success","Success!","Successfully sent to batcher! Check console for details."),a({})}catch(P){F("error","Batcher Error",`Error sending to batcher: ${P instanceof Error?P.message:"Unknown error"}`)}finally{l(!1)}};return ee.jsxDEV("div",{style:{marginBottom:"20px",padding:"20px",border:"1px solid #ddd",borderRadius:"8px",position:"relative"},children:[ee.jsxDEV("div",{style:{position:"fixed",top:"20px",right:"20px",zIndex:1e3,display:"flex",flexDirection:"column",gap:"10px"},children:h.map(O=>ee.jsxDEV("div",{style:{background:O.type==="success"?"#10b981":O.type==="error"?"#ef4444":"#3b82f6",color:"white",padding:"12px 16px",borderRadius:"8px",minWidth:"300px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",display:"flex",justifyContent:"space-between",alignItems:"flex-start",animation:"slideIn 0.3s ease-out"},children:[ee.jsxDEV("div",{children:[ee.jsxDEV("div",{style:{fontWeight:"600",marginBottom:"4px"},children:O.title},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:367,columnNumber:15},this),ee.jsxDEV("div",{style:{fontSize:"14px",opacity:.9},children:O.message},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:370,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:366,columnNumber:13},this),ee.jsxDEV("button",{onClick:()=>M(O.id),style:{background:"none",border:"none",color:"white",cursor:"pointer",fontSize:"18px",padding:"0",marginLeft:"12px",opacity:.7},children:"×"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:374,columnNumber:13},this)]},O.id,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:347,columnNumber:11},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:335,columnNumber:7},this),ee.jsxDEV("div",{onClick:()=>A(!v),style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",marginTop:0,marginBottom:v?0:"20px"},children:[ee.jsxDEV("h3",{style:{margin:0,color:"#333"},children:"Batcher Input"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:404,columnNumber:9},this),ee.jsxDEV("span",{style:{fontSize:"18px",color:"#666",transform:v?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease-in-out"},children:"▼"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:405,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:393,columnNumber:7},this),!v&&ee.jsxDEV(ee.Fragment,{children:[R&&ee.jsxDEV("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"40px",color:"#666"},children:ee.jsxDEV("div",{style:{textAlign:"center"},children:[ee.jsxDEV("div",{style:{fontSize:"16px",marginBottom:"10px"},children:"Loading grammar..."},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:432,columnNumber:17},this),ee.jsxDEV("div",{style:{fontSize:"14px",opacity:.8},children:"Fetching available input types from server"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:435,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:431,columnNumber:15},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:422,columnNumber:13},this),!R&&ee.jsxDEV(ee.Fragment,{children:[ee.jsxDEV("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px",padding:"15px",background:"#f8fafc",borderRadius:"6px",border:"1px solid #e2e8f0"},children:[ee.jsxDEV("button",{onClick:B,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"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:458,columnNumber:17},this),ee.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[ee.jsxDEV("span",{style:{fontSize:"14px",color:"#64748b",fontWeight:"500"},children:"Current Address:"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:477,columnNumber:19},this),ee.jsxDEV("span",{style:{fontSize:"14px",fontFamily:"monospace",background:f?"#e0f2fe":"#fef3c7",padding:"4px 8px",borderRadius:"4px",color:f?"#0369a1":"#92400e",border:`1px solid ${f?"#bae6fd":"#fde68a"}`},children:f?`${f.address.slice(0,6)}...${f.address.slice(-4)}`:"No wallet generated"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:486,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:474,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:446,columnNumber:15},this),ee.jsxDEV("div",{style:{display:"flex",gap:"30px",alignItems:"flex-start"},children:[ee.jsxDEV("div",{style:{flex:"0 0 300px"},children:ee.jsxDEV("div",{style:{marginBottom:"15px"},children:[ee.jsxDEV("label",{style:{display:"block",marginBottom:"25px",fontWeight:"600"},children:"Select Type:"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:517,columnNumber:21},this),ee.jsxDEV("select",{value:e,onChange:O=>H(O.target.value),disabled:u,style:{padding:"8px",border:"2px solid #19b17b",borderRadius:"4px",width:"100%"},children:[ee.jsxDEV("option",{value:"",children:"-- Select a type --"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:537,columnNumber:23},this),N.map(O=>ee.jsxDEV("option",{value:O,children:O.charAt(0).toUpperCase()+O.slice(1)},O,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:539,columnNumber:25},this))]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:526,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:516,columnNumber:19},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:515,columnNumber:17},this),e&&ee.jsxDEV("div",{style:{flex:"1",minWidth:"0"},children:ee.jsxDEV("div",{style:{marginBottom:"15px"},children:[ee.jsxDEV("label",{style:{display:"block",marginBottom:"5px",fontWeight:"600"},children:["Parameters for ",e,":"]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:551,columnNumber:23},this),ee.jsxDEV("div",{style:{display:"flex",flexWrap:"wrap",gap:"15px",alignItems:"flex-end"},children:y[e].map(([O,P])=>ee.jsxDEV("div",{style:{display:"flex",flexDirection:"column"},children:[ee.jsxDEV("label",{style:{marginBottom:"5px",fontWeight:"500",fontSize:"14px"},children:[O," (",P.type,"):"]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:575,columnNumber:29},this),re(O,P)]},O,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:571,columnNumber:27},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:560,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:550,columnNumber:21},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:549,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:507,columnNumber:15},this),e&&ee.jsxDEV("div",{style:{marginTop:"20px",marginBottom:"15px"},children:[ee.jsxDEV("label",{style:{display:"block",marginBottom:"5px",fontWeight:"500"},children:"Preview JSON Array:"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:596,columnNumber:19},this),ee.jsxDEV("pre",{style:{background:"#f5f5f5",padding:"10px",borderRadius:"4px",border:"1px solid #ddd",fontSize:"12px",overflow:"auto"},children:JSON.stringify(X(),null,2)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:605,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:595,columnNumber:17},this),ee.jsxDEV("button",{onClick:ie,disabled:u||!e||!f,style:{padding:"10px 20px",background:e&&f?"linear-gradient(45deg, #19b17b, #022418)":"#ccc",color:"white",border:"none",borderRadius:"8px",cursor:u||!e||!f?"not-allowed":"pointer",fontWeight:"600",opacity:u?.6:1},children:u?"Sending...":"Send to Batcher"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:621,columnNumber:15},this),ee.jsxDEV("style",{children:`
382
- @keyframes slideIn {
383
- from {
384
- transform: translateX(100%);
385
- opacity: 0;
386
- }
387
- to {
388
- transform: translateX(0);
389
- opacity: 1;
390
- }
391
- }
392
- `},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:643,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:444,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:419,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:325,columnNumber:5},this)}function XM({isOpen:e,onClose:n,title:i,tableNames:a,selectedNames:u,onApply:l}){const f=je.useMemo(()=>new Set(u),[u]),[p,h]=je.useState(f);je.useEffect(()=>{h(new Set(u))},[u,e]);const m=I=>{h(R=>{const U=new Set(R);return U.has(I)?U.delete(I):U.add(I),U})},v=()=>h(new Set(a)),A=()=>h(new Set),y=()=>{l(Array.from(p)),n()};return ee.jsxDEV(hd,{isOpen:e,onClose:n,title:i,className:"table-selector",children:ee.jsxDEV("div",{className:"table-selector-content",children:[ee.jsxDEV("div",{style:{display:"flex",gap:8,marginBottom:12},children:[ee.jsxDEV("button",{type:"button",className:"batcher-api-button",onClick:v,children:"Select All"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:54,columnNumber:11},this),ee.jsxDEV("button",{type:"button",className:"batcher-api-button",onClick:A,children:"Deselect All"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:61,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:53,columnNumber:9},this),ee.jsxDEV("ul",{children:a.map(I=>ee.jsxDEV("li",{children:ee.jsxDEV("label",{style:{display:"flex",alignItems:"center",gap:8},children:[ee.jsxDEV("input",{type:"checkbox",checked:p.has(I),onChange:()=>m(I)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:73,columnNumber:17},this),I]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:72,columnNumber:15},this)},I,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:71,columnNumber:13},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:69,columnNumber:9},this),ee.jsxDEV("div",{style:{display:"flex",gap:8,marginTop:12},children:[ee.jsxDEV("button",{type:"button",className:"batcher-api-button",onClick:y,children:"Apply"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:84,columnNumber:11},this),ee.jsxDEV("button",{type:"button",className:"documentation-button",onClick:n,children:"Cancel"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:91,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:83,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:52,columnNumber:7},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:46,columnNumber:5},this)}function ww(){return"0x"+Array.from({length:64},()=>Math.floor(Math.random()*16).toString(16)).join("")}let ZM=1e3;function Hne(){const[e,n]=je.useState({}),[i,a]=je.useState(!0),[u,l]=je.useState(null),[f,p]=je.useState({}),h=je.useRef(null),m=je.useRef(!1),v=je.useRef(()=>{}),A=je.useRef(!1),y=je.useRef(!1),I=je.useRef(null),R=je.useCallback(async k=>{if(k!=="Paima")return;const X=e[k];if(X&&X.rpcEndpoint&&X.type==="EVM"&&!m.current){m.current=!0;try{const re=await fetch(X.rpcEndpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",method:"eth_blockNumber",params:[],id:1})});if(!re.ok)throw new Error(`HTTP error! status: ${re.status}`);const ie=await re.json();if(ie.error)throw new Error(ie.error.message);const O=parseInt(ie.result,16);n(P=>{const L={...P},q=L[k];if(O>(q.latestBlockNumber||0)&&(q.previousLatestBlockNumber=q.latestBlockNumber||0,q.latestBlockNumber=O,q.isConnected=!0,q.previousLatestBlockNumber>0)){const oe=ww(),Ee={number:O,hash:oe,timestamp:new Date};q.blocks.some(fe=>fe.number===O&&fe.hash===oe)||(q.blocks.unshift(Ee),q.blocks.length>20&&(q.blocks=q.blocks.slice(0,20)),p(fe=>({...fe,[k]:0})),setTimeout(()=>{p(fe=>({...fe,[k]:void 0}))},500))}return L})}catch(re){console.error(`Error fetching latest block for ${k}:`,re),n(ie=>({...ie,[k]:{...ie[k],isConnected:!1}}))}finally{m.current=!1}}},[e]);je.useEffect(()=>{v.current=R},[R]);const U=je.useCallback((k,X=e)=>{const re=X[k];if(!re)return;const ie=re.rpcEndpoint?re.latestBlockNumber||0:re.currentBlock++,O=ww(),L={number:ie,hash:O,timestamp:new Date};n(q=>{const oe={...q},ge=oe[k];return ge.blocks.some(D=>D.number===ie)||(ge.blocks.unshift(L),ge.blocks.length>20&&(ge.blocks=ge.blocks.slice(0,20))),oe}),p(q=>({...q,[k]:0})),setTimeout(()=>{p(q=>({...q,[k]:void 0}))},250)},[e]),F=je.useCallback(async()=>{a(!0),l(null);try{const k=await JH();ZM=k.Paima.blockTime??1e3,n(k),console.log("✅ Loaded chain configs from API:",k)}catch(k){const X=k instanceof Error?k.message:"Unknown error";l(X),console.error("❌ Failed to load chain configs, using fallback:",X),n(w_)}finally{a(!1)}},[]),N=je.useCallback(k=>{n(X=>{const re={...X};return Object.keys(k).forEach(ie=>{const O=re[ie];if(O&&!O.rpcEndpoint){const P=[];for(let L=-5;L<0;L++){const q=O.currentBlock+L,oe=ww(),ge=new Date(Date.now()+L*(O.blockTime??1e3));P.push({number:q,hash:oe,timestamp:ge})}O.blocks=P.reverse(),O.currentBlock=O.currentBlock+1}}),re})},[]);je.useEffect(()=>{F()},[F]),je.useEffect(()=>{i||A.current||Object.keys(e).length!==0&&(N(e),A.current=!0)},[i]),je.useEffect(()=>{if(i||y.current||Object.keys(e).length===0)return;const k=[];return Object.keys(e).forEach(X=>{const re=e[X];if(!re.rpcEndpoint){const ie=setInterval(()=>{U(X)},re.blockTime);k.push(ie)}}),y.current=!0,()=>{k.forEach(X=>clearInterval(X)),y.current=!1}},[i]),je.useEffect(()=>{if(console.log("🔄 Starting Paima RPC polling"),!i&&h.current==null)return v.current("Paima"),h.current=setInterval(()=>{v.current("Paima")},ZM),()=>{h.current!=null&&(clearInterval(h.current),h.current=null)}},[i]),je.useEffect(()=>{if(i||I.current!=null)return;const k=()=>{const ie=Object.entries(e).filter(([P])=>P!=="Paima");let O=Number.POSITIVE_INFINITY;for(const[,P]of ie)typeof P.blockTime=="number"&&P.blockTime>0&&P.blockTime<O&&(O=P.blockTime);return Number.isFinite(O)?Math.max(1e3,O):1e4},X=async()=>{var ie,O,P,L,q,oe,ge,Ee,D;try{const fe=await fetch(WH);if(!fe.ok)throw new Error(`block-heights HTTP ${fe.status}`);const be=await fe.json(),te=[];for(const[j,ue]of Object.entries(e)){if(j==="Paima")continue;const me=ue.protocolName;if(!me)continue;const ne=be.find(G=>G.protocol_name===me);if(!(!ne||ne.synced_page==null))try{const G=await fetch(`${oz}/${encodeURIComponent(me)}/blocks?page=${ne.synced_page}`);if(!G.ok)throw new Error(`blocks HTTP ${G.status}`);const Q=await G.json(),J=(ie=Q==null?void 0:Q.blocks)==null?void 0:ie[0];if(!J)continue;let ve=null,Ae=null,V=null;if(ue.type==="EVM")ve=Number(J.number),Ae=J.hash,V=J.timestamp!=null?Number(J.timestamp)*1e3:null;else if(ue.type==="MIDNIGHT"){const w=(O=J==null?void 0:J.header)==null?void 0:O.number,$=w?parseInt(w,16):void 0;ve=Number(J.height??($!==void 0?$:void 0)),Ae=J.hash??((P=J.header)==null?void 0:P.parentHash)??"",V=null}else ue.type==="CARDANO"?(ve=Number(((q=(L=J.block)==null?void 0:L.header)==null?void 0:q.height)??((oe=J.header)==null?void 0:oe.height)),Ae=((Ee=(ge=J.block)==null?void 0:ge.header)==null?void 0:Ee.hash)??((D=J.header)==null?void 0:D.hash)??"",V=Number(J.timestamp??0)):(ve=Number(J.blockNumber??ne.synced_page),Ae=J.hash??"",V=J.timestamp!=null?Number(J.timestamp):null);ve!=null&&!Number.isNaN(ve)&&te.push({key:j,block:{number:ve,hash:Ae??"",timestamp:V?new Date(V):new Date}})}catch{}}te.length>0&&n(j=>{const ue={...j};for(const me of te){const ne=ue[me.key];if(!ne||!me.block)continue;ne.blocks.some(Q=>Q.number===me.block.number)||(ne.blocks.unshift(me.block),ne.blocks.length>20&&(ne.blocks=ne.blocks.slice(0,20)))}return ue})}catch{}};X();const re=k();return console.log(`[Explorer] Engine block-heights polling interval resolved to ${re} ms`),I.current=setInterval(X,re),()=>{I.current!=null&&(clearInterval(I.current),I.current=null)}},[i]);const B=e.Paima,M=(B==null?void 0:B.latestBlockNumber)||0,H=(B==null?void 0:B.isConnected)||!1;return{chainConfigs:e,newBlockIndices:f,latestBlock:M,isConnected:H,isLoadingConfig:i,configError:u}}function zne(){const[n,i]=je.useState([]),[a,u]=je.useState([]),[l,f]=je.useState({}),[p,h]=je.useState({}),[m,v]=je.useState({}),[A,y]=je.useState({}),[I,R]=je.useState({}),[U,F]=je.useState({}),[N,B]=je.useState({}),M=je.useRef(!1),H=je.useRef([]),k=je.useRef([]),X=je.useRef({}),re=je.useRef({}),ie=je.useRef({}),O=je.useRef({}),P=je.useRef(new Set),L=je.useRef(new Set);je.useEffect(()=>{H.current=n},[n]),je.useEffect(()=>{k.current=a},[a]),je.useEffect(()=>{X.current=U},[U]),je.useEffect(()=>{re.current=N},[N]),je.useEffect(()=>{ie.current=A},[A]),je.useEffect(()=>{O.current=I},[I]);const q=je.useCallback(V=>V.map(w=>({name:w.column_name,dataTypeID:25})),[]),oe=je.useCallback((V,w,$)=>{const Y=Array.isArray(V)?V:[];let W=[];return $&&$.length>0?W=q($):Y.length>0&&(W=Object.keys(Y[0]).map(de=>({name:de,dataTypeID:25}))),{command:"SELECT",rowCount:Y.length,rows:Y,fields:W}},[q]),ge=je.useCallback((V,w,$)=>{const Y=Array.isArray(V)?V:[];let W=[];return $&&$.length>0?W=q($):Y.length>0&&(W=Object.keys(Y[0]).map(de=>({name:de,dataTypeID:25}))),{command:"SELECT",rowCount:Y.length,rows:Y,fields:W}},[q]),Ee=je.useCallback(async V=>{try{if(P.current.has(V))return null;const w=X.current[V];if(w)return w;const $=await fetch(`${rz}/${V}`);if(!$.ok){if($.status===404)return console.log(`🚫 Schema for primitive ${V} not found (404)`),P.current.add(V),null;throw new Error(`HTTP error! status: ${$.status}`)}const Y=await $.json();return console.log(`📋 Fetched schema for ${V}:`,Y),Y}catch(w){return console.error(`Error fetching schema for primitive ${V}:`,w),null}},[]),D=je.useCallback(async V=>{try{const w=await fetch(`${iz}/${V}`);if(!w.ok){if(w.status===404)return console.log(`🚫 Schema for table ${V} not found (404)`),null;throw new Error(`HTTP error! status: ${w.status}`)}const $=await w.json();return console.log(`📋 Fetched schema for ${V}:`,$),$}catch(w){return console.error(`Error fetching schema for table ${V}:`,w),null}},[]),fe=je.useCallback(async()=>{try{const V=await fetch(S_);if(!V.ok)throw new Error(`HTTP error! status: ${V.status}`);const w=await V.json();return console.log("📋 Fetched config:",w),w}catch(V){return console.error("Error fetching config:",V),null}},[]),be=je.useCallback(async()=>{try{const V=await fetch(BD);if(!V.ok)throw new Error(`HTTP error! status: ${V.status}`);const w=await V.json();return console.log("📋 Fetched user table names:",w),w.map($=>$.table_name)}catch(V){return console.error("Error fetching user table names:",V),[]}},[]),te=je.useCallback(V=>{const w=[];return!V||!Array.isArray(V)?w:(V.forEach($=>{$.primitives&&Array.isArray($.primitives)&&$.primitives.forEach(Y=>{Y.primitive&&Y.primitive.name&&Y.primitive.type!=="evm-rpc-paima-l2"&&w.push(Y.primitive.name)})}),[...new Set(w)])},[]),j=je.useCallback(async(V,w,$)=>{try{if(L.current.has(V))return null;const Y=$??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},W=new URL(`${ez}/${V}`);W.searchParams.set("limit",String(Y.limit));const de=Y.cursors[Y.currentPage];de&&W.searchParams.set("after",de);const pe=await fetch(W.toString());if(!pe.ok){if(pe.status===404)return console.log(`🚫 Primitive ${V} not found (404)`),L.current.add(V),null;throw new Error(`HTTP error! status: ${pe.status}`)}const E=await pe.json(),g=Array.isArray(E)?E:E.data??[],b=E.pagination;return b&&y(C=>{const K=[...C[V].cursors];return b.nextCursor&&K.length===C[V].currentPage+1&&K.push(b.nextCursor),{...C,[V]:{...C[V],hasMore:b.hasMore,cursors:K}}}),console.log(`📊 Fetched data for ${V}:`,g),oe(g,V,w)}catch(Y){return console.error(`Error fetching primitive data for ${V}:`,Y),null}},[oe]),ue=je.useCallback(async(V,w,$)=>{try{const Y=$??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},W=new URL(`${BD}/${V}`);W.searchParams.set("limit",String(Y.limit));const de=Y.cursors[Y.currentPage];de&&W.searchParams.set("after",de);const pe=await fetch(W.toString());if(!pe.ok){if(pe.status===404)return console.log(`🚫 Table ${V} not found (404)`),null;throw new Error(`HTTP error! status: ${pe.status}`)}const E=await pe.json();console.log(`📊 Fetched table data for ${V}:`,E);const g=E.data??[],b=E.pagination;return b&&R(C=>{const K=[...C[V].cursors];return b.nextCursor&&K.length===C[V].currentPage+1&&K.push(b.nextCursor),{...C,[V]:{...C[V],hasMore:b.hasMore,cursors:K}}}),ge(g,V,w)}catch(Y){return console.error(`Error fetching table data for ${V}:`,Y),null}},[ge]),me=je.useCallback(async()=>{try{const V=await fetch(nz);if(!V.ok)throw new Error(`HTTP error! status: ${V.status}`);const $=(await V.json()).data??[];console.log("📊 Fetched scheduled data:",$);const Y=[{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:$.length,rows:$,fields:Y}}catch(V){return console.error("Error fetching scheduled data:",V),null}},[]),ne=je.useCallback(async()=>{if(!(H.current.length===0||!M.current))try{const V=H.current.map(async $=>{const Y=X.current[$],W=ie.current[$],de=await j($,Y,W);return{primitiveName:$,data:de}}),w=await Promise.all(V);w.length>0&&f($=>{const Y={...$};return w.forEach(({primitiveName:W,data:de})=>{de!==null&&(Y[W]=de)}),Y})}catch(V){console.error("Error refreshing primitive data:",V)}},[j]),G=je.useCallback(async()=>{if(!(!M.current||k.current.length===0))try{const V=k.current.map(async $=>{const Y=re.current[$],W=O.current[$],de=await ue($,Y,W);return{tableName:$,data:de}}),w=await Promise.all(V);w.length>0&&h($=>{const Y={...$};return w.forEach(({tableName:W,data:de})=>{de!==null&&(Y[W]=de)}),Y})}catch(V){console.error("Error refreshing user table data:",V)}},[ue]),Q=je.useCallback(async()=>{if(M.current)try{const V=await me();V!==null&&v({scheduled_data:V})}catch(V){console.error("Error refreshing scheduled data:",V)}},[me]),J=je.useCallback(async()=>{console.log("📋 Initializing primitive tables...");try{const V=await fe();if(!V){console.error("Failed to fetch config");return}const w=te(V);if(i(w),console.log("📊 Found primitives:",w),w.length===0){console.log("No primitives found in config");return}const $=w.map(async g=>{const b=await Ee(g);return{primitiveName:g,schema:b}}),Y=await Promise.all($),W={};Y.forEach(({primitiveName:g,schema:b})=>{b&&(W[g]=b)}),F(W),y(g=>{const b={...g};return w.forEach(C=>{b[C]||(b[C]={limit:20,cursors:[void 0],currentPage:0,hasMore:!1})}),b});const de=w.map(async g=>{const b=W[g],C=ie.current[g]??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},K=await j(g,b,C);return{primitiveName:g,data:K}}),pe=await Promise.all(de),E={};pe.forEach(({primitiveName:g,data:b})=>{E[g]=b}),f(E),console.log("✅ Primitive tables initialized")}catch(V){console.error("Error initializing primitive tables:",V)}},[fe,te,Ee,j]),ve=je.useCallback(async()=>{console.log("📋 Initializing state machine tables...");try{const V=await be();if(u(V),V.length===0){console.log("No user tables found");return}const w=V.map(async E=>{const g=await D(E);return{tableName:E,schema:g}}),$=await Promise.all(w),Y={};$.forEach(({tableName:E,schema:g})=>{g&&(Y[E]=g)}),B(Y),R(E=>{const g={...E};return V.forEach(b=>{g[b]||(g[b]={limit:20,cursors:[void 0],currentPage:0,hasMore:!1})}),g});const W=V.map(async E=>{const g=Y[E],b=O.current[E]??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},C=await ue(E,g||void 0,b);return{tableName:E,data:C}}),de=await Promise.all(W),pe={};de.forEach(({tableName:E,data:g})=>{pe[E]=g}),h(pe),console.log("✅ State machine tables initialized")}catch(V){console.error("Error initializing state machine tables:",V)}},[D,ue,be]),Ae=je.useCallback(async()=>{console.log("📋 Initializing scheduled data...");try{const V=await me();v({scheduled_data:V}),console.log("✅ Scheduled data initialized")}catch(V){console.error("Error initializing scheduled data:",V)}},[me]);return je.useEffect(()=>{let V,w,$;return(async()=>{await Promise.all([J(),ve(),Ae()]),M.current=!0,V=setInterval(()=>{ne()},5e3),setTimeout(()=>{G(),w=setInterval(()=>{G()},5e3)},1500),setTimeout(()=>{Q(),$=setInterval(()=>{Q()},5e3)},3e3)})(),()=>{V&&clearInterval(V),w&&clearInterval(w),$&&clearInterval($)}},[]),{primitiveData:l,userTableData:p,scheduledData:m,primitiveNames:n,userTableNames:a,refreshPrimitiveData:ne,refreshUserTableData:G,refreshScheduledData:Q,primitivePagination:A,userTablePagination:I,setPrimitiveLimit:async(V,w)=>{const $={limit:w,cursors:[void 0],currentPage:0,hasMore:!1};y(de=>({...de,[V]:$}));const Y=X.current[V],W=await j(V,Y,$);f(de=>({...de,[V]:W}))},nextPrimitivePage:async V=>{const w=ie.current[V];if(!w||!w.hasMore)return;const $={...w,currentPage:w.currentPage+1};y(de=>({...de,[V]:$}));const Y=X.current[V],W=await j(V,Y,$);f(de=>({...de,[V]:W}))},prevPrimitivePage:async V=>{const w=ie.current[V];if(!w||w.currentPage===0)return;const $={...w,currentPage:w.currentPage-1};y(de=>({...de,[V]:$}));const Y=X.current[V],W=await j(V,Y,$);f(de=>({...de,[V]:W}))},firstPrimitivePage:async V=>{const w=ie.current[V];if(!w)return;const $={...w,cursors:[void 0],currentPage:0};y(de=>({...de,[V]:$}));const Y=X.current[V],W=await j(V,Y,$);f(de=>({...de,[V]:W}))},setUserTableLimit:async(V,w)=>{const $={limit:w,cursors:[void 0],currentPage:0,hasMore:!1};R(de=>({...de,[V]:$}));const Y=re.current[V],W=await ue(V,Y,$);h(de=>({...de,[V]:W}))},nextUserTablePage:async V=>{const w=O.current[V];if(!w||!w.hasMore)return;const $={...w,currentPage:w.currentPage+1};R(de=>({...de,[V]:$}));const Y=re.current[V],W=await ue(V,Y,$);h(de=>({...de,[V]:W}))},prevUserTablePage:async V=>{const w=O.current[V];if(!w||w.currentPage===0)return;const $={...w,currentPage:w.currentPage-1};R(de=>({...de,[V]:$}));const Y=re.current[V],W=await ue(V,Y,$);h(de=>({...de,[V]:W}))},firstUserTablePage:async V=>{const w=O.current[V];if(!w)return;const $={...w,cursors:[void 0],currentPage:0};R(de=>({...de,[V]:$}));const Y=re.current[V],W=await ue(V,Y,$);h(de=>({...de,[V]:W}))}}}function Vne(){const[e,n]=je.useState([]),[i,a]=je.useState([]),[u,l]=je.useState(!1),[f,p]=je.useState(!1),{chainConfigs:h,newBlockIndices:m,latestBlock:v,isConnected:A,isLoadingConfig:y,configError:I}=Hne(),{primitiveData:R,userTableData:U,scheduledData:F,primitiveNames:N,userTableNames:B,primitivePagination:M,userTablePagination:H,nextPrimitivePage:k,prevPrimitivePage:X,firstPrimitivePage:re,setPrimitiveLimit:ie,nextUserTablePage:O,prevUserTablePage:P,firstUserTablePage:L,setUserTableLimit:q}=zne();return je.useEffect(()=>{N.length>0&&e.length===0&&n(N)},[N,e]),je.useEffect(()=>{B.length>0&&i.length===0&&a([B[0]])},[B,i]),je.useEffect(()=>{const oe=ge=>{console.error("Unhandled promise rejection:",ge.reason)};return globalThis.addEventListener("unhandledrejection",oe),()=>{globalThis.removeEventListener("unhandledrejection",oe)}},[]),je.useEffect(()=>{const oe=ge=>{ge.key==="r"&&ge.ctrlKey&&(ge.preventDefault(),console.log("🔄 Manually refreshed (keyboard shortcut)"))};return document.addEventListener("keydown",oe),()=>{document.removeEventListener("keydown",oe)}},[]),y?ee.jsxDEV("div",{className:"container",children:[ee.jsxDEV(xw,{latestBlock:v,isConnected:A},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:97,columnNumber:9},this),ee.jsxDEV("div",{style:{padding:"20px",textAlign:"center",fontSize:"18px",color:"#667eea"},children:"🔄 Loading chain configurations..."},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:101,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:96,columnNumber:7},this):I?ee.jsxDEV("div",{className:"container",children:[ee.jsxDEV(xw,{latestBlock:v,isConnected:A},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:119,columnNumber:9},this),ee.jsxDEV("div",{style:{padding:"20px",textAlign:"center",fontSize:"16px",color:"#f44336",backgroundColor:"rgba(244, 67, 54, 0.1)",border:"1px solid rgba(244, 67, 54, 0.3)",borderRadius:"8px",margin:"20px"},children:["⚠️ Failed to load chain configurations: ",I,ee.jsxDEV("br",{},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:136,columnNumber:11},this),ee.jsxDEV("small",{style:{color:"#666",marginTop:"8px",display:"block"},children:"Using fallback configuration. Some features may not work correctly."},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:137,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:123,columnNumber:9},this),ee.jsxDEV(KM,{chainConfigs:h,newBlockIndices:m},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:141,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:118,columnNumber:7},this):ee.jsxDEV("div",{className:"container",children:[ee.jsxDEV(xw,{latestBlock:v,isConnected:A},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:151,columnNumber:7},this),ee.jsxDEV(KM,{chainConfigs:h,newBlockIndices:m},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:156,columnNumber:7},this),ee.jsxDEV(Ew,{title:"Primitive Data",tables:Object.fromEntries(Object.entries(R).filter(([oe])=>e.includes(oe))),pagination:M,onPrev:oe=>X(oe),onNext:oe=>k(oe),onFirst:oe=>re(oe),onLimitChange:(oe,ge)=>ie(oe,ge),children:[ee.jsxDEV("div",{style:{display:"flex",gap:8,marginBottom:12},children:ee.jsxDEV("button",{type:"button",className:"batcher-api-button",onClick:()=>l(!0),children:"Select Primitives"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:175,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:174,columnNumber:9},this),ee.jsxDEV(XM,{isOpen:u,onClose:()=>l(!1),title:"Select Primitives",tableNames:N,selectedNames:e,onApply:oe=>n(oe.length?oe:[N[0]].filter(Boolean))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:183,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:161,columnNumber:7},this),ee.jsxDEV(Ew,{title:"State Machine Tables",tables:Object.fromEntries(Object.entries(U).filter(([oe])=>i.includes(oe))),pagination:H,onPrev:oe=>P(oe),onNext:oe=>O(oe),onFirst:oe=>L(oe),onLimitChange:(oe,ge)=>q(oe,ge),children:[ee.jsxDEV("div",{style:{display:"flex",gap:8,marginBottom:12},children:ee.jsxDEV("button",{type:"button",className:"batcher-api-button",onClick:()=>p(!0),children:"Select Tables"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:210,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:209,columnNumber:9},this),ee.jsxDEV(XM,{isOpen:f,onClose:()=>p(!1),title:"Select Custom Tables",tableNames:B,selectedNames:i,onApply:oe=>a(oe.length?oe:[B[0]].filter(Boolean))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:218,columnNumber:9},this),ee.jsxDEV(qne,{},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:229,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:196,columnNumber:7},this),ee.jsxDEV(Ew,{title:"Scheduled Data",tables:F},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:232,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/App.tsx",lineNumber:150,columnNumber:5},this)}B5.createRoot(document.getElementById("root")).render(ee.jsxDEV(je.StrictMode,{children:ee.jsxDEV(Vne,{},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/main.tsx",lineNumber:8,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-6/packages/build-tools/explorer/client/src/main.tsx",lineNumber:7,columnNumber:3},void 0));