@paimaexample/explorer 0.3.37 → 0.3.39
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 qF=e=>{throw TypeError(e)};var TA=(e,n,i)=>n.has(e)||qF("Cannot "+i);var Mt=(e,n,i)=>(TA(e,n,"read from private field"),i?i.call(e):n.get(e)),ia=(e,n,i)=>n.has(e)?qF("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,i),os=(e,n,i,a)=>(TA(e,n,"write to private field"),a?a.call(e,i):n.set(e,i),i),Bt=(e,n,i)=>(TA(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 pa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var OA={exports:{}},Cm={},RA={exports:{}},FA={},od={},HF;function x5(){if(HF)return od;HF=1,od.byteLength=p,od.toByteArray=m,od.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 od}var Tm={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var zF;function E5(){return zF||(zF=1,Tm.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)},Tm.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}),Tm}/*!
|
|
2
|
-
* The buffer module from node.js, for the browser.
|
|
3
|
-
*
|
|
4
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/var VF;function w5(){return VF||(VF=1,(function(e){var n=x5(),i=E5(),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 P(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 j(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 j(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 P(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})()})(FA)),FA}var hn=w5(),Om={exports:{}},GF;function S5(){return GF||(GF=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 P=v.length;P;){for(y=v,v=[];++I<P;)y&&y[I].run();I=-1,P=v.length}y=null,A=!1,m(te)}}a.nextTick=function(te){var P=new Array(arguments.length-1);if(arguments.length>1)for(var ue=1;ue<arguments.length;ue++)P[ue-1]=arguments[ue];v.push(new F(te,P)),v.length===1&&!A&&h(U)};function F(te,P){this.fun=te,this.array=P}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,j=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:j,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=j,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})(Om,Om.exports)),Om.exports}var I5=S5();const Rt=cg(I5);(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 hd={exports:{}};hd.exports;var QF;function C5(){return QF||(QF=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,je=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.",je),h(_)}}function v(_){if(_==null)return null;if(typeof _=="function")return _.$$typeof===C?null:_.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case P: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(_===P)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,je,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,je,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,je,He)}}if(nt){nt=_,He=He(nt);var st=je===""?"."+k(nt,0):je;return b(He)?(_e="",st!=null&&(_e=st.replace(tt,"$&/")+"/"),ie(He,he,_e,"",function(vt){return vt})):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),je!==""&&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=je===""?".":je+":",b(_))for(var rt=0;rt<_.length;rt++)je=_[rt],it=st+k(je,rt),nt+=ie(je,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;!(je=_.next()).done;)je=je.value,it=st+k(je,rt++),nt+=ie(je,he,_e,it,He);else if(it==="object"){if(typeof _.then=="function")return ie(re(_),he,_e,je,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 je=[],He=0;return ie(_,je,"","",function(it){return he.call(_e,it,He++)}),je}function j(_){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(je){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=je,He.port2.postMessage(void 0)}}return at(_)}function ge(_){return 1<_.length&&typeof AggregateError=="function"?new AggregateError(_):_[0]}function Ee(_,he){he!==ft-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. "),ft=he}function D(_,he,_e){var je=K.actQueue;if(je!==null)if(je.length!==0)try{fe(je),oe(function(){return D(_,he,_e)});return}catch(He){K.thrownErrors.push(He)}else K.actQueue=null;0<K.thrownErrors.length?(je=ge(K.thrownErrors),K.thrownErrors.length=0,_e(je)):he(_)}function fe(_){if(!At){At=!0;var he=0;try{for(;he<_.length;he++){var _e=_[he];do{K.didUsePromise=!1;var je=_e(!1);if(je!==null){if(K.didUsePromise){_[he]=_e,_.splice(0,he);return}_e=je}else break}while(!0)}_.length=0}catch(He){_.splice(0,he+1),K.thrownErrors.push(He)}finally{At=!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"),P=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 Rt=="object"&&typeof Rt.emit=="function"){Rt.emit("uncaughtException",_);return}console.error(_)},ot=!1,at=null,ft=0,lt=!1,At=!1,St=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=P,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=ft;ft++;var je=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 St(function(){He||lt||(lt=!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,vt){He=!0,nt.then(function(Ir){if(Ee(he,_e),_e===0){try{fe(je),oe(function(){return D(Ir,rt,vt)})}catch(Ia){K.thrownErrors.push(Ia)}if(0<K.thrownErrors.length){var Sa=ge(K.thrownErrors);K.thrownErrors.length=0,vt(Sa)}}else rt(Ir)},function(Ir){Ee(he,_e),0<K.thrownErrors.length&&(Ir=ge(K.thrownErrors),K.thrownErrors.length=0),vt(Ir)})}}}var st=it;if(Ee(he,_e),_e===0&&(fe(je),je.length!==0&&St(function(){He||lt||(lt=!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,vt){He=!0,_e===0?(K.actQueue=je,oe(function(){return D(st,rt,vt)})):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 je=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||(je[st]=he[st])}var st=arguments.length-2;if(st===1)je.children=_e;else if(1<st){nt=Array(st);for(var rt=0;rt<st;rt++)nt[rt]=arguments[rt+2];je.children=nt}for(je=N(_.type,He,void 0,void 0,it,je,_._debugStack,_._debugTask),He=2;He<arguments.length;He++)it=arguments[He],M(it)&&it._store&&(it._store.validated=1);return je},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 je=2;je<arguments.length;je++){var He=arguments[je];M(He)&&He._store&&(He._store.validated=1)}if(je={},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"&&(je[rt]=he[rt]);var it=arguments.length-2;if(it===1)je.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),je.children=nt}if(_&&_.defaultProps)for(rt in it=_.defaultProps,it)je[rt]===void 0&&(je[rt]=it[rt]);He&&U(je,typeof _=="function"?_.displayName||_.name||"Unknown":_);var rt=1e4>K.recentlyCreatedOwnerStacks++;return N(_,He,void 0,void 0,y(),je,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(je){_e=je,_.name||_.displayName||(Object.defineProperty(_,"name",{value:je}),_.displayName=je)}}),he},n.isValidElement=M,n.lazy=function(_){return{$$typeof:V,_payload:{_status:-1,_result:_},_init:j}},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(je){_e=je,_.name||_.displayName||(Object.defineProperty(_,"name",{value:je}),_.displayName=je)}}),he},n.startTransition=function(_){var he=K.T,_e={};K.T=_e,_e._updatedFibers=new Set;try{var je=_(),He=K.S;He!==null&&He(_e,je),typeof je=="object"&&je!==null&&typeof je.then=="function"&&je.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 je=L();if(typeof _e=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return je.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())})()})(hd,hd.exports)),hd.exports}var YF;function fg(){return YF||(YF=1,RA.exports=C5()),RA.exports}var KF;function T5(){if(KF)return Cm;KF=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(P){if(P==null)return null;if(typeof P=="function")return P.$$typeof===j?null:P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){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 P=="object")switch(typeof P.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case R:return"Portal";case M:return(P.displayName||"Context")+".Provider";case B:return(P._context.displayName||"Context")+".Consumer";case H:var ue=P.render;return P=P.displayName,P||(P=ue.displayName||ue.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case re:return ue=P.displayName||null,ue!==null?ue:e(P.type)||"Memo";case ie:ue=P._payload,P=P._init;try{return e(P(ue))}catch{}}return null}function n(P){return""+P}function i(P){try{n(P);var ue=!1}catch{ue=!0}if(ue){ue=console;var me=ue.error,ne=typeof Symbol=="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.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(P)}}function a(P){if(P===U)return"<>";if(typeof P=="object"&&P!==null&&P.$$typeof===ie)return"<...>";try{var ue=e(P);return ue?"<"+ue+">":"<...>"}catch{return"<...>"}}function u(){var P=L.A;return P===null?null:P.getOwner()}function l(){return Error("react-stack-top-frame")}function f(P){if(q.call(P,"key")){var ue=Object.getOwnPropertyDescriptor(P,"key").get;if(ue&&ue.isReactWarning)return!1}return P.key!==void 0}function p(P,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(P,"key",{get:me,configurable:!0})}function h(){var P=e(this.type);return D[P]||(D[P]=!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.")),P=this.props.ref,P!==void 0?P:null}function m(P,ue,me,ne,G,Q,J,ve){return me=Q.ref,P={$$typeof:I,type:P,key:ue,props:Q,_owner:G},(me!==void 0?me:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:h}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:J}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ve}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function v(P,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(P);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 P=="function"?P.displayName||P.name||"Unknown":P),m(P,Ae,Q,G,u(),me,J,ve)}function A(P){typeof P=="object"&&P!==null&&P.$$typeof===I&&P._store&&(P._store.validated=1)}var y=fg(),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"),j=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(P){return P()}};var Ee,D={},fe=y.react_stack_bottom_frame.bind(y,l)(),be=ge(a(l)),te={};Cm.Fragment=U,Cm.jsxDEV=function(P,ue,me,ne,G,Q){var J=1e4>L.recentlyCreatedOwnerStacks++;return v(P,ue,me,ne,G,Q,J?Error("react-stack-top-frame"):fe,J?ge(a(P)):be)}})(),Cm}var XF;function O5(){return XF||(XF=1,OA.exports=T5()),OA.exports}var ee=O5(),Pe=fg(),NA={exports:{}},ad={},DA={exports:{}},BA={},ZF;function R5(){return ZF||(ZF=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(j),j=-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 P=te(F.expirationTime<=D);if(D=e.unstable_now(),typeof P=="function"){F.callback=P,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,P=D[te];if(0<l(P,fe))D[te]=fe,D[be]=P,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,P=D.length,ue=P>>>1;te<ue;){var me=2*(te+1)-1,ne=D[me],G=me+1,Q=D[G];if(0>l(ne,be))G<P&&0>l(Q,ne)?(D[te]=Q,D[G]=be,te=G):(D[te]=ne,D[me]=be,te=me);else if(G<P&&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){j=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,j=-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 P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=be+P,D={id:U++,callback:fe,priorityLevel:D,startTime:be,expirationTime:P,sortIndex:-1},be>te?(D.sortIndex=be,i(R,D),a(I)===null&&D===a(R)&&(H?(re(j),j=-1):H=!0,m(p,be-te))):(D.sortIndex=P,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())})()})(BA)),BA}var JF;function F5(){return JF||(JF=1,DA.exports=R5()),DA.exports}var UA={exports:{}},ur={},WF;function N5(){if(WF)return ur;WF=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=fg(),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"),ur.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=h,ur.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)},ur.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.")}},ur.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))},ur.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)},ur.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})}},ur.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))},ur.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})}},ur.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))},ur.requestFormReset=function(A){h.d.r(A)},ur.unstable_batchedUpdates=function(A,y){return A(y)},ur.useFormState=function(A,y,I){return f().useFormState(A,y,I)},ur.useFormStatus=function(){return f().useHostTransitionStatus()},ur.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),ur}var eN;function W_(){return eN||(eN=1,UA.exports=N5()),UA.exports}var tN;function D5(){if(tN)return ad;tN=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=Qn(t)?t.slice():bt({},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=Qn(t)?t.slice():bt({},t);return s+1===r.length?(d[o[s]]=d[c],Qn(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=Qn(t)?t.slice():bt({},t);return o+1===r.length?(Qn(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 Aj(t,r,o,s)}function I(t,r){t.context===Va&&(W0(t.current,2,r,t,null,null),rl())}function R(t,r){if(bi!==null){var o=r.staleFamilies;r=r.updatedFamilies,uf(),by(t.current,r,o),rl()}}function U(t){bi=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=cR&&t[cR]||t["@@iterator"],typeof t=="function"?t:null)}function re(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ML?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case cl:return"Fragment";case ab:return"Profiler";case Dh:return"StrictMode";case ub:return"Suspense";case lb:return"SuspenseList";case cb: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 ll:return"Portal";case lo:return(t.displayName||"Context")+".Provider";case sb:return(t._context.displayName||"Context")+".Consumer";case yf:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Bh:return r=t.displayName||null,r!==null?r:re(t.type)||"Memo";case Kr: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===Dh?"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 j(t){return{current:t}}function L(t,r){0>Ho?console.error("Unexpected pop."):(r!==db[Ho]&&console.error("Unexpected Fiber popped."),t.current=fb[Ho],fb[Ho]=null,db[Ho]=null,Ho--)}function q(t,r,o){Ho++,fb[Ho]=t.current,db[Ho]=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($a,r,t),q(bf,t,t),q(ka,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):ta;break;default:if(o=r.tagName,r=r.namespaceURI)r=jO(r),r=LO(r,o);else switch(o){case"svg":r=Vl;break;case"math":r=Am;break;default:r=ta}}o=o.toLowerCase(),o=YI(null,o),o={context:r,ancestorInfo:o},L(ka,t),q(ka,o,t)}function Ee(t){L(ka,t),L(bf,t),L($a,t)}function D(){return oe(ka.current)}function fe(t){t.memoizedState!==null&&q(Uh,t,t);var r=oe(ka.current),o=t.type,s=LO(r.context,o);o=YI(r.ancestorInfo,o),s={context:s,ancestorInfo:o},r!==s&&(q(bf,t,t),q(ka,s,t))}function be(t){bf.current===t&&(L(ka,t),L(bf,t)),Uh.current===t&&(L(Uh,t),nd._currentValue=pu)}function te(t){return typeof Symbol=="function"&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"}function P(t){try{return ue(t),!1}catch{return!0}}function ue(t){return""+t}function me(t,r){if(P(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(P(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(P(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{dl=r.inject(t),or=r}catch(o){console.error("React instrumentation encountered an error: %s.",o)}return!!r.checkDCE}function J(t){if(typeof qL=="function"&&HL(t),or&&typeof or.setStrictMode=="function")try{or.setStrictMode(dl,t)}catch(r){fo||(fo=!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-(zL(t)/VL|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=Mh;return Mh<<=1,(Mh&4194048)===0&&(Mh=256),t}function xe(){var t=_h;return _h<<=1,(_h&62914560)===0&&(_h=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-hr(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-hr(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-hr(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(Pi)for(t=t.pendingUpdatersLaneMap;0<o;){var s=31-hr(o),c=1<<s;t[s].add(r),o&=~c}}function tt(t,r){if(Pi)for(var o=t.pendingUpdatersLaneMap,s=t.memoizedUpdaters;0<r;){var c=31-hr(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,gi<t?po<t?(t&134217727)!==0?Vo:Ph:po:gi}function ot(){var t=_t.p;return t!==0?t:(t=window.event,t===void 0?Vo:iR(t.type))}function at(t,r){var o=_t.p;try{return _t.p=t,r()}finally{_t.p=o}}function ft(t){delete t[ar],delete t[Fr],delete t[yb],delete t[GL],delete t[QL]}function lt(t){var r=t[ar];if(r)return r;for(var o=t.parentNode;o;){if(r=o[Ha]||o[ar]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(t=VO(t);t!==null;){if(o=t[ar])return o;t=VO(t)}return r}t=o,o=t.parentNode}return null}function At(t){if(t=t[ar]||t[Ha]){var r=t.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return t}return null}function St(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[fR];return r||(r=t[fR]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function he(t){t[Af]=!0}function _e(t,r){je(t,r),je(t+"Capture",r)}function je(t,r){Ys[t]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",t),Ys[t]=r;var o=t.toLowerCase();for(bb[o]=t,t==="onDoubleClick"&&(bb.ondblclick=t),t=0;t<r.length;t++)dR.add(r[t])}function He(t,r){YL[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 zo.call(hR,t)?!0:zo.call(pR,t)?!1:KL.test(t)?hR[t]=!0:(pR[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 vt(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 Ir(){}function Sa(){if(vf===0){mR=console.log,gR=console.info,yR=console.warn,bR=console.error,AR=console.group,vR=console.groupCollapsed,xR=console.groupEnd;var t={configurable:!0,enumerable:!0,value:Ir,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}vf++}function Ia(){if(vf--,vf===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:bt({},t,{value:mR}),info:bt({},t,{value:gR}),warn:bt({},t,{value:yR}),error:bt({},t,{value:bR}),group:bt({},t,{value:AR}),groupCollapsed:bt({},t,{value:vR}),groupEnd:bt({},t,{value:xR})})}0>vf&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function $n(t){if(Ab===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);Ab=r&&r[1]||"",ER=-1<o.stack.indexOf(`
|
|
68
|
-
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
69
|
-
`+Ab+t+ER}function Ca(t,r){if(!t||vb)return"";var o=xb.get(t);if(o!==void 0)return o;vb=!0,o=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var s=null;s=Fe.H,Fe.H=null,Sa();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"&&xb.set(t,Ne),Ne}while(1<=d&&0<=x);break}}}finally{vb=!1,Fe.H=s,Ia(),Error.prepareStackTrace=o}return Z=(Z=t?t.displayName||t.name:"")?$n(Z):"",typeof t=="function"&&xb.set(t,Z),Z}function ws(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 Vu(t){switch(t.tag){case 26:case 27:case 5:return $n(t.type);case 16:return $n("Lazy");case 13:return $n("Suspense");case 19:return $n("SuspenseList");case 0:case 15:return Ca(t.type,!1);case 11:return Ca(t.type.render,!1);case 1:return Ca(t.type,!0);case 31:return $n("Activity");default:return""}}function Ss(t){try{var r="";do{r+=Vu(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=$n(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 Is(t){return(t=t?t.displayName||t.name:"")?$n(t):""}function No(){if(Xr===null)return null;var t=Xr._debugOwner;return t!=null?ie(t):null}function Gu(){if(Xr===null)return"";var t=Xr;try{var r="";switch(t.tag===6&&(t=t.return),t.tag){case 26:case 27:case 5:r+=$n(t.type);break;case 13:r+=$n("Suspense");break;case 19:r+=$n("SuspenseList");break;case 31:r+=$n("Activity");break;case 30:case 0:case 15:case 1:t._debugOwner||r!==""||(r+=Is(t.type));break;case 11:t._debugOwner||r!==""||(r+=Is(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=ws(s)),s!==""&&(r+=`
|
|
78
|
-
`+s))}else if(t.debugStack!=null){var c=t.debugStack;(t=t.owner)&&c&&(r+=`
|
|
79
|
-
`+ws(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=Xr;Ta(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{Ta(T)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Ta(t){Fe.getCurrentStack=t===null?null:Gu,ho=!1,Xr=t}function qn(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 Cs(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Qu(t){var r=Cs(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 Do(t){t._valueTracker||(t._valueTracker=Qu(t))}function Ts(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var o=r.getValue(),s="";return t&&(s=Cs(t)?t.checked?"true":"false":t.value),t=s,t!==o?(r.setValue(t),!0):!1}function Bo(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 Hn(t){return t.replace(XL,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Os(t,r){r.checked===void 0||r.defaultChecked===void 0||SR||(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",No()||"A component",r.type),SR=!0),r.value===void 0||r.defaultValue===void 0||wR||(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",No()||"A component",r.type),wR=!0)}function Oa(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=""+qn(r)):t.value!==""+qn(r)&&(t.value=""+qn(r)):x!=="submit"&&x!=="reset"||t.removeAttribute("value"),r!=null?Ra(t,x,qn(r)):o!=null?Ra(t,x,qn(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=""+qn(T)):t.removeAttribute("name")}function Rs(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?""+qn(o):"",r=r!=null?""+qn(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 Ra(t,r,o){r==="number"&&Bo(t.ownerDocument)===t||t.defaultValue===""+o||(t.defaultValue=""+o)}function Fs(t,r){r.value==null&&(typeof r.children=="object"&&r.children!==null?ob.Children.forEach(r.children,function(o){o==null||typeof o=="string"||typeof o=="number"||typeof o=="bigint"||CR||(CR=!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||TR||(TR=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),r.selected==null||IR||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),IR=!0)}function Ns(){var t=No();return t?`
|
|
82
|
-
|
|
83
|
-
Check the render method of \``+t+"`.":""}function Ui(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=""+qn(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 kI(t,r){for(t=0;t<RR.length;t++){var o=RR[t];if(r[o]!=null){var s=Qn(r[o]);r.multiple&&!s?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",o,Ns()):!r.multiple&&s&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",o,Ns())}}r.value===void 0||r.defaultValue===void 0||OR||(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"),OR=!0)}function $I(t,r){r.value===void 0||r.defaultValue===void 0||FR||(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",No()||"A component"),FR=!0),r.children!=null&&r.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function qI(t,r,o){if(r!=null&&(r=""+qn(r),r!==t.value&&(t.value=r),o==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=o!=null?""+qn(o):""}function HI(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(Qn(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=qn(r),t.defaultValue=o,s=t.textContent,s===o&&s!==""&&s!==null&&(t.value=s)}function zI(t,r){return t.serverProps===void 0&&t.serverTail.length===0&&t.children.length===1&&3<t.distanceFromLeaf&&t.distanceFromLeaf>15-r?zI(t.children[0],r):t}function zr(t){return" "+" ".repeat(t)}function Yu(t){return"+ "+" ".repeat(t)}function Ds(t){return"- "+" ".repeat(t)}function VI(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 _c(t,r){return NR.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 Mp(t,r,o){var s=120-2*o;if(r===null)return Yu(o)+_c(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)),Yu(o)+_c(t,s)+`
|
|
85
|
-
`+Ds(o)+_c(r,s)+`
|
|
86
|
-
`}return zr(o)+_c(t,s)+`
|
|
87
|
-
`}function uy(t){return Object.prototype.toString.call(t).replace(/^\[object (.*)\]$/,function(r,o){return o})}function Pc(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(Qn(t))return"[...]";if(t.$$typeof===La)return(r=re(t.type))?"<"+r+">":"<...>";var o=uy(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=Pc(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 Ku(t,r){return typeof t!="string"||NR.test(t)?"{"+Pc(t,r-2)+"}":t.length>r-2?5>r?'"..."':'"'+t.slice(0,r-5)+'..."':'"'+t+'"'}function ly(t,r,o){var s=120-o.length-t.length,c=[],d;for(d in r)if(r.hasOwnProperty(d)&&d!=="children"){var x=Ku(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 tj(t,r,o){var s="",c=bt({},r),d;for(d in t)if(t.hasOwnProperty(d)){delete c[d];var x=120-2*o-d.length-2,T=Pc(t[d],x);r.hasOwnProperty(d)?(x=Pc(r[d],x),s+=Yu(o)+d+": "+T+`
|
|
94
|
-
`,s+=Ds(o)+d+": "+x+`
|
|
95
|
-
`):s+=Yu(o)+d+": "+T+`
|
|
96
|
-
`}for(var z in c)c.hasOwnProperty(z)&&(t=Pc(c[z],120-2*o-z.length-2),s+=Ds(o)+z+": "+t+`
|
|
97
|
-
`);return s}function nj(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+=ly(t,r,zr(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=Ku(Z,T);T=Ku(z,T),typeof Z=="object"&&Z!==null&&typeof z=="object"&&z!==null&&uy(Z)==="Object"&&uy(z)==="Object"&&(2<Object.keys(Z).length||2<Object.keys(z).length||-1<Se.indexOf("...")||-1<T.indexOf("..."))?c+=zr(s+1)+x+`={{
|
|
98
|
-
`+tj(Z,z,s+2)+zr(s+1)+`}}
|
|
99
|
-
`:(c+=Yu(s+1)+x+"="+Se+`
|
|
100
|
-
`,c+=Ds(s+1)+x+"="+T+`
|
|
101
|
-
`)}else c+=zr(s+1)+x+"="+Ku(r[x],T)+`
|
|
102
|
-
`}d.forEach(function(Ne){if(Ne!=="children"){var we=120-2*(s+1)-Ne.length-1;c+=Ds(s+1)+Ne+"="+Ku(o[Ne],we)+`
|
|
103
|
-
`}}),c=c===""?zr(s)+"<"+t+`>
|
|
104
|
-
`:zr(s)+"<"+t+`
|
|
105
|
-
`+c+zr(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+=Mp(d,""+t,s+1)):(typeof r=="string"||typeof r=="number"||typeof r=="bigint")&&(c=t==null?c+Mp(""+r,null,s+1):c+Mp(""+r,void 0,s+1)),c}function GI(t,r){var o=VI(t);if(o===null){for(o="",t=t.child;t;)o+=GI(t,r),t=t.sibling;return o}return zr(r)+"<"+o+`>
|
|
107
|
-
`}function cy(t,r){var o=zI(t,r);if(o!==t&&(t.children.length!==1||t.children[0]!==o))return zr(r)+`...
|
|
108
|
-
`+cy(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+=zr(r)+"<"+d+`>
|
|
109
|
-
`,r++)}if(s="",c=t.fiber.pendingProps,t.fiber.tag===6)s=Mp(c,t.serverProps,r),r++;else if(d=VI(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=Ku(c[Z],15);if(x-=Z.length+z.length+2,0>x){T+=" ...";break}T+=" "+Z+"="+z}s=zr(s)+"<"+d+T+`>
|
|
110
|
-
`,r++}else t.serverProps===null?(s=ly(d,c,Yu(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=nj(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+=cy(x,r),d++):Z+=GI(c,r),c=c.sibling;for(c&&0<t.children.length&&(Z+=zr(r)+`...
|
|
111
|
-
`),c=t.serverTail,t.serverProps===null&&r--,t=0;t<c.length;t++)d=c[t],Z=typeof d=="string"?Z+(Ds(r)+_c(d,120-2*r)+`
|
|
112
|
-
`):Z+ly(d.type,d.props,Ds(r));return o+s+Z}function fy(t){try{return`
|
|
113
|
-
|
|
114
|
-
`+cy(t,0)}catch{return""}}function QI(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?fy(c).replaceAll(/^[+-]/gm,">"):""}function YI(t,r){var o=bt({},t||BR),s={tag:r};return DR.indexOf(r)!==-1&&(o.aTagInScope=null,o.buttonTagInScope=null,o.nobrTagInScope=null),JL.indexOf(r)!==-1&&(o.pTagInButtonScope=null),ZL.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 KI(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 WL.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 rj(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 XI(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 dy(t,r){r=r||BR;var o=r.current;if(r=(o=KI(t,o&&o.tag,r.implicitRootScope)?null:o)?null:rj(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=Xr)?XI(r.return,s):null,d=r!==null&&c!==null?QI(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 _p(t,r,o){if(o||KI("#text",r,!1))return!0;if(o="#text|"+r,jh[o])return!1;jh[o]=!0;var s=(o=Xr)?XI(o,r):null;return o=o!==null&&s!==null?QI(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 ij(t){return t.replace(nk,function(r,o){return o.toUpperCase()})}function ZI(t,r,o){var s=r.indexOf("--")===0;s||(-1<r.indexOf("-")?pl.hasOwnProperty(r)&&pl[r]||(pl[r]=!0,console.error("Unsupported style property %s. Did you mean %s?",r,ij(r.replace(tk,"ms-")))):ek.test(r)?pl.hasOwnProperty(r)&&pl[r]||(pl[r]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",r,r.charAt(0).toUpperCase()+r.slice(1))):!_R.test(o)||wb.hasOwnProperty(o)&&wb[o]||(wb[o]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,r,o.replace(_R,""))),typeof o=="number"&&(isNaN(o)?PR||(PR=!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||LR.has(r)?r==="float"?t.cssFloat=o:(ne(o,r),t[r]=(""+o).trim()):t[r]=o+"px"}function JI(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=Eb[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=Eb[T]||[T],d=0;d<c.length;d++)s[c[d]]=T;T={};for(var z in r)for(c=Eb[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&&ZI(t,we,Z)}else for(s in r)r.hasOwnProperty(s)&&ZI(t,s,r[s])}function Lc(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 WI(t){return rk.get(t)||t}function oj(t,r){if(zo.call(ml,r)&&ml[r])return!0;if(ok.test(r)){if(t="aria-"+r.slice(4).toLowerCase(),t=kR.hasOwnProperty(t)?t:null,t==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",r),ml[r]=!0;if(r!==t)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",r,t),ml[r]=!0}if(ik.test(r)){if(t=r.toLowerCase(),t=kR.hasOwnProperty(t)?t:null,t==null)return ml[r]=!0,!1;r!==t&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",r,t),ml[r]=!0)}return!0}function aj(t,r){var o=[],s;for(s in r)oj(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 sj(t,r,o,s){if(zo.call(mr,r)&&mr[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."),mr[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),mr[r]=!0;if(qR.test(r))return console.error("Unknown event handler property `%s`. It will be ignored.",r),mr[r]=!0}else if(qR.test(r))return ak.test(r)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",r),mr[r]=!0;if(sk.test(r)||uk.test(r))return!0;if(c==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),mr[r]=!0;if(c==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),mr[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),mr[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),mr[r]=!0;if(kh.hasOwnProperty(c)){if(c=kh[c],c!==r)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",r,c),mr[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),mr[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),mr[r]=!0)}case"function":case"symbol":return mr[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),mr[r]=!0}}return!0}function uj(t,r,o){var s=[],c;for(c in r)sj(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 kc(t){return lk.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function py(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}function eC(t){var r=At(t);if(r&&(t=r.stateNode)){var o=t[Fr]||null;e:switch(t=r.stateNode,r.type){case"input":if(Oa(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="'+Hn(""+r)+'"][type="radio"]'),r=0;r<o.length;r++){var s=o[r];if(s!==t&&s.form===t.form){var c=s[Fr]||null;if(!c)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Oa(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&&Ts(s)}break e;case"textarea":qI(t,o.value,o.defaultValue);break e;case"select":r=o.value,r!=null&&Ui(t,!!o.multiple,r,!1)}}}function tC(t,r,o){if(Sb)return t(r,o);Sb=!0;try{var s=t(r);return s}finally{if(Sb=!1,(gl!==null||yl!==null)&&(rl(),gl&&(r=gl,t=yl,yl=gl=null,eC(r),t)))for(r=0;r<t.length;r++)eC(t[r])}}function $c(t,r){var o=t.stateNode;if(o===null)return null;var s=o[Fr]||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 nC(){if($h)return $h;var t,r=Cb,o=r.length,s,c="value"in za?za.value:za.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 $h=c.slice(t,1<s?1-s:void 0)}function Pp(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 rC(){return!1}function Cr(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:rC,this.isPropagationStopped=rC,this}return bt(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 lj(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=Ek[t])?!!r[t]:!1}function hy(){return lj}function iC(t,r){switch(t){case"keyup":return Uk.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==GR;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oC(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}function cj(t,r){switch(t){case"compositionend":return oC(r);case"keypress":return r.which!==YR?null:(XR=!0,KR);case"textInput":return t=r.data,t===KR&&XR?null:t;default:return null}}function fj(t,r){if(bl)return t==="compositionend"||!Fb&&iC(t,r)?(t=nC(),$h=Cb=za=null,bl=!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 QR&&r.locale!=="ko"?null:r.data;default:return null}}function aC(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!_k[t.type]:r==="textarea"}function dj(t){if(!mo)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 sC(t,r,o,s){gl?yl?yl.push(s):yl=[s]:gl=s,r=Eh(r,"onChange"),0<r.length&&(o=new qh("onChange","change",null,o,s),t.push({event:o,listeners:r}))}function pj(t){OO(t,0)}function Lp(t){var r=St(t);if(Ts(r))return t}function uC(t,r){if(t==="change")return r}function lC(){Cf&&(Cf.detachEvent("onpropertychange",cC),Tf=Cf=null)}function cC(t){if(t.propertyName==="value"&&Lp(Tf)){var r=[];sC(r,Tf,t,py(t)),tC(pj,r)}}function hj(t,r,o){t==="focusin"?(lC(),Cf=r,Tf=o,Cf.attachEvent("onpropertychange",cC)):t==="focusout"&&lC()}function mj(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Lp(Tf)}function gj(t,r){if(t==="click")return Lp(r)}function yj(t,r){if(t==="input"||t==="change")return Lp(r)}function bj(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}function qc(t,r){if(gr(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(!zo.call(r,c)||!gr(t[c],r[c]))return!1}return!0}function fC(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function dC(t,r){var o=fC(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=fC(o)}}function pC(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?pC(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function hC(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=Bo(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=Bo(t.document)}return r}function my(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 mC(t,r,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Db||Al==null||Al!==Bo(s)||(s=Al,"selectionStart"in s&&my(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}),Of&&qc(Of,s)||(Of=s,s=Eh(Nb,"onSelect"),0<s.length&&(r=new qh("onSelect","select",null,r,o),t.push({event:r,listeners:s}),r.target=Al)))}function Bs(t,r){var o={};return o[t.toLowerCase()]=r.toLowerCase(),o["Webkit"+t]="webkit"+r,o["Moz"+t]="moz"+r,o}function Us(t){if(Bb[t])return Bb[t];if(!vl[t])return t;var r=vl[t],o;for(o in r)if(r.hasOwnProperty(o)&&o in JR)return Bb[t]=r[o];return t}function Mi(t,r){r3.set(t,r),_e(r,[t])}function Vr(t,r){if(typeof t=="object"&&t!==null){var o=Mb.get(t);return o!==void 0?o:(r={value:t,source:r,stack:Ss(r)},Mb.set(t,r),r)}return{value:t,source:r,stack:Ss(r)}}function kp(){for(var t=xl,r=_b=xl=0;r<t;){var o=yi[r];yi[r++]=null;var s=yi[r];yi[r++]=null;var c=yi[r];yi[r++]=null;var d=yi[r];if(yi[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&&gC(o,c,d)}}function $p(t,r,o,s){yi[xl++]=t,yi[xl++]=r,yi[xl++]=o,yi[xl++]=s,_b|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function gy(t,r,o,s){return $p(t,r,o,s),qp(t)}function Tr(t,r){return $p(t,null,null,r),qp(t)}function gC(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&zh||(c=!0)),t=d,d=d.return;return t.tag===3?(d=t.stateNode,c&&r!==null&&(c=31-hr(o),t=d.hiddenUpdates,s=t[c],s===null?t[c]=[r]:s.push(r),r.lane=o|536870912),d):null}function qp(t){if(Xf>o5)throw uu=Xf=0,Zf=dA=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.");uu>a5&&(uu=0,Zf=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&&xO(t);for(var r=t,o=r.return;o!==null;)r.alternate===null&&(r.flags&4098)!==0&&xO(t),r=o,o=r.return;return r.tag===3?r.stateNode:null}function Ms(t){if(bi===null)return t;var r=bi(t);return r===void 0?t:r.current}function yy(t){if(bi===null)return t;var r=bi(t);return r===void 0?t!=null&&typeof t.render=="function"&&(r=Ms(t.render),t.render!==r)?(r={$$typeof:yf,render:r},t.displayName!==void 0&&(r.displayName=t.displayName),r):t:r.current}function yC(t,r){if(bi===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===Kr)&&(s=!0);break;case 11:(c===yf||c===Kr)&&(s=!0);break;case 14:case 15:(c===Bh||c===Kr)&&(s=!0);break;default:return!1}return!!(s&&(t=bi(o),t!==void 0&&t===bi(r)))}function bC(t){bi!==null&&typeof WeakSet=="function"&&(El===null&&(El=new WeakSet),El.add(t))}function by(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(bi===null)throw Error("Expected resolveFamily to be set during hot reload.");var Z=!1;T=!1,z!==null&&(z=bi(z),z!==void 0&&(o.has(z)?T=!0:r.has(z)&&(x===1?T=!0:Z=!0))),El!==null&&(El.has(t)||s!==null&&El.has(s))&&(T=!0),T&&(t._debugNeedsRemount=!0),(T||Z)&&(s=Tr(t,2),s!==null&&fn(s,t,2)),c===null||T||by(c,r,o),d!==null&&by(d,r,o)}function Aj(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,o3||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function Ay(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Uo(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=Ms(t.type);break;case 1:o.type=Ms(t.type);break;case 11:o.type=yy(t.type)}return o}function AC(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 vy(t,r,o,s,c,d){var x=0,T=t;if(typeof t=="function")Ay(t)&&(x=1),T=Ms(T);else if(typeof t=="string")x=D(),x=AL(t,o,x)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case cb:return r=y(31,o,r,c),r.elementType=cb,r.lanes=d,r;case cl:return _s(o.children,c,d,r);case Dh:x=8,c|=sr,c|=ji;break;case ab: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|Yn),r.elementType=ab,r.lanes=d,r.stateNode={effectDuration:0,passiveEffectDuration:0},r;case ub:return r=y(13,o,r,c),r.elementType=ub,r.lanes=d,r;case lb:return r=y(19,o,r,c),r.elementType=lb,r.lanes=d,r;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case BL:case lo:x=10;break e;case sb:x=9;break e;case yf:x=11,T=yy(T);break e;case Bh:x=14;break e;case Kr: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":Qn(t)?o="array":t!==void 0&&t.$$typeof===La?(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 Hp(t,r,o){return r=vy(t.type,t.key,t.props,t._owner,r,o),r._debugOwner=t._owner,r._debugStack=t._debugStack,r._debugTask=t._debugTask,r}function _s(t,r,o,s){return t=y(7,t,s,r),t.lanes=o,t}function xy(t,r,o){return t=y(6,t,null,r),t.lanes=o,t}function Ey(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 Ps(t,r){js(),wl[Sl++]=Gh,wl[Sl++]=Vh,Vh=t,Gh=r}function vC(t,r,o){js(),Ai[vi++]=Qo,Ai[vi++]=Yo,Ai[vi++]=Xs,Xs=t;var s=Qo;t=Yo;var c=32-hr(s)-1;s&=~(1<<c),o+=1;var d=32-hr(r)+c;if(30<d){var x=c-c%5;d=(s&(1<<x)-1).toString(32),s>>=x,c-=x,Qo=1<<32-hr(r)+c|o<<c|s,Yo=d+t}else Qo=1<<d|o<<c|s,Yo=t}function wy(t){js(),t.return!==null&&(Ps(t,1),vC(t,1,0))}function Sy(t){for(;t===Vh;)Vh=wl[--Sl],wl[Sl]=null,Gh=wl[--Sl],wl[Sl]=null;for(;t===Xs;)Xs=Ai[--vi],Ai[vi]=null,Yo=Ai[--vi],Ai[vi]=null,Qo=Ai[--vi],Ai[vi]=null}function js(){Ut||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Ls(t,r){if(t.return===null){if(xi===null)xi={fiber:t,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:r};else{if(xi.fiber!==t)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");xi.distanceFromLeaf>r&&(xi.distanceFromLeaf=r)}return xi}var o=Ls(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 Iy(t,r){Ko||(t=Ls(t,0),t.serverProps=null,r!==null&&(r=qO(r),t.serverTail.push(r)))}function ks(t){var r="",o=xi;throw o!==null&&(xi=null,r=fy(o)),Vc(Vr(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)),Pb}function xC(t){var r=t.stateNode,o=t.type,s=t.memoizedProps;switch(r[ar]=t,r[Fr]=s,q0(o,s),o){case"dialog":It("cancel",r),It("close",r);break;case"iframe":case"object":case"embed":It("load",r);break;case"video":case"audio":for(o=0;o<Jf.length;o++)It(Jf[o],r);break;case"source":It("error",r);break;case"img":case"image":case"link":It("error",r),It("load",r);break;case"details":It("toggle",r);break;case"input":He("input",s),It("invalid",r),Os(r,s),Rs(r,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),Do(r);break;case"option":Fs(r,s);break;case"select":He("select",s),It("invalid",r),kI(r,s);break;case"textarea":He("textarea",s),It("invalid",r),$I(r,s),HI(r,s.value,s.defaultValue,s.children),Do(r)}o=s.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||r.textContent===""+o||s.suppressHydrationWarning===!0||DO(r.textContent,o)?(s.popover!=null&&(It("beforetoggle",r),It("toggle",r)),s.onScroll!=null&&It("scroll",r),s.onScrollEnd!=null&&It("scrollend",r),s.onClick!=null&&(r.onclick=wh),r=!0):r=!1,r||ks(t)}function EC(t){for(yr=t.return;yr;)switch(yr.tag){case 5:case 13:go=!1;return;case 27:case 3:go=!0;return;default:yr=yr.return}}function Hc(t){if(t!==yr)return!1;if(!Ut)return EC(t),Ut=!0,!1;var r=t.tag,o;if((o=r!==3&&r!==27)&&((o=r===5)&&(o=t.type,o=!(o!=="form"&&o!=="button")||Q0(t.type,t.memoizedProps)),o=!o),o&&on){for(o=on;o;){var s=Ls(t,0),c=qO(o);s.serverTail.push(c),o=c.type==="Suspense"?zO(o):mi(o.nextSibling)}ks(t)}if(EC(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.");on=zO(t)}else r===27?(r=on,ja(t.type)?(t=SA,SA=null,on=t):on=r):on=yr?mi(t.stateNode.nextSibling):null;return!0}function zc(){on=yr=null,Ko=Ut=!1}function wC(){var t=Zs;return t!==null&&(vr===null?vr=t:vr.push.apply(vr,t),Zs=null),t}function Vc(t){Zs===null?Zs=[t]:Zs.push(t)}function SC(){var t=xi;if(t!==null){xi=null;for(var r=fy(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 zp(){Il=Qh=null,Cl=!1}function Fa(t,r,o){q(jb,r._currentValue,t),r._currentValue=o,q(Lb,r._currentRenderer,t),r._currentRenderer!==void 0&&r._currentRenderer!==null&&r._currentRenderer!==l3&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),r._currentRenderer=l3}function Mo(t,r){t._currentValue=jb.current;var o=Lb.current;L(Lb,r),t._currentRenderer=o,L(jb,r)}function Cy(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 Ty(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),Cy(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),Cy(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 Gc(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;gr(c.pendingProps.value,x.value)||(t!==null?t.push(T):t=[T])}}else if(c===Uh.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(nd):t=[nd])}c=c.return}t!==null&&Ty(r,t,o,s),r.flags|=262144}function Vp(t){for(t=t.firstContext;t!==null;){if(!gr(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function $s(t){Qh=t,Il=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Jt(t){return Cl&&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()."),IC(Qh,t)}function Gp(t,r){return Qh===null&&$s(t),IC(t,r)}function IC(t,r){var o=r._currentValue;if(r={context:r,memoizedValue:o,next:null},Il===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().");Il=r,t.dependencies={lanes:0,firstContext:r,_debugThenableState:null},t.flags|=524288}else Il=Il.next=r;return o}function Oy(){return{controller:new zk,data:new Map,refCount:0}}function qs(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 Qc(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&&Vk(Gk,function(){t.controller.abort()})}function _o(){var t=Js;return Js=0,t}function Qp(t){var r=Js;return Js=t,r}function Yc(t){var r=Js;return Js+=t,r}function Ry(t){Nr=Tl(),0>t.actualStartTime&&(t.actualStartTime=Nr)}function Fy(t){if(0<=Nr){var r=Tl()-Nr;t.actualDuration+=r,t.selfBaseDuration=r,Nr=-1}}function CC(t){if(0<=Nr){var r=Tl()-Nr;t.actualDuration+=r,Nr=-1}}function no(){if(0<=Nr){var t=Tl()-Nr;Nr=-1,Js+=t}}function ro(){Nr=Tl()}function Yp(t){for(var r=t.child;r;)t.actualDuration+=r.actualDuration,r=r.sibling}function vj(t,r){if(Rf===null){var o=Rf=[];kb=0,Ws=j0(),Ol={status:"pending",value:void 0,then:function(s){o.push(s)}}}return kb++,r.then(TC,TC),r}function TC(){if(--kb===0&&Rf!==null){Ol!==null&&(Ol.status="fulfilled");var t=Rf;Rf=null,Ws=0,Ol=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function xj(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 Ny(){var t=eu.current;return t!==null?t:Gt.pooledCache}function Kp(t,r){r===null?q(eu,eu.current,t):q(eu,r.pool,t)}function OC(){var t=Ny();return t===null?null:{parent:In._currentValue,pool:t}}function RC(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function FC(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Xp(){}function NC(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(Xp,Xp),r=o),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,BC(t),t;default:if(typeof r.status=="string")r.then(Xp,Xp);else{if(t=Gt,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,BC(t),t}throw Pf=r,Wh=!0,_f}}function DC(){if(Pf===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var t=Pf;return Pf=null,Wh=!1,t}function BC(t){if(t===_f||t===Jh)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 Dy(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function By(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 Na(t){return{lane:t,tag:h3,payload:null,callback:null,next:null}}function Da(t,r,o){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,Hb===s&&!y3){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),y3=!0}return(Pt&Ar)!==Zr?(c=s.pending,c===null?r.next=r:(r.next=c.next,c.next=r),s.pending=r,r=qp(t),gC(t,null,o),r):($p(t,s,r,o),qp(t))}function Kc(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 Zp(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 Xc(){if(zb){var t=Ol;if(t!==null)throw t}}function Zc(t,r,o,s){zb=!1;var c=t.updateQueue;Ga=!1,Hb=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?(wt&we)===we:(s&we)===we){we!==0&&we===Ws&&(zb=!0),Se!==null&&(Se=Se.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{we=t;var Je=T,ct=r,Qt=o;switch(Je.tag){case m3:if(Je=Je.payload,typeof Je=="function"){Cl=!0;var Ct=Je.call(Qt,Ne,ct);if(we.mode&sr){J(!0);try{Je.call(Qt,Ne,ct)}finally{J(!1)}}Cl=!1,Ne=Ct;break e}Ne=Je;break e;case qb:we.flags=we.flags&-65537|128;case h3:if(Ct=Je.payload,typeof Ct=="function"){if(Cl=!0,Je=Ct.call(Qt,Ne,ct),we.mode&sr){J(!0);try{Ct.call(Qt,Ne,ct)}finally{J(!1)}}Cl=!1}else Je=Ct;if(Je==null)break e;Ne=bt({},Ne,Je);break e;case g3:Ga=!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),Xa|=x,t.lanes=x,t.memoizedState=Ne}Hb=null}function UC(t,r){if(typeof t!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+t);t.call(r)}function Ej(t,r){var o=t.shared.hiddenCallbacks;if(o!==null)for(t.shared.hiddenCallbacks=null,t=0;t<o.length;t++)UC(o[t],r)}function MC(t,r){var o=t.callbacks;if(o!==null)for(t.callbacks=null,t=0;t<o.length;t++)UC(o[t],r)}function _C(t,r){var o=Ao;q(em,o,t),q(Rl,r,t),Ao=o|r.baseLanes}function Uy(t){q(em,Ao,t),q(Rl,Rl.current,t)}function My(t){Ao=em.current,L(Rl,t),L(em,t)}function Et(){var t=Oe;Si===null?Si=[t]:Si.push(t)}function ke(){var t=Oe;if(Si!==null&&(Zo++,Si[Zo]!==t)){var r=O(dt);if(!b3.has(r)&&(b3.add(r),Si!==null)){for(var o="",s=0;s<=Zo;s++){var c=Si[s],d=s===Zo?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 Xu(t){t==null||Qn(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 Jp(){var t=O(dt);v3.has(t)||(v3.add(t),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",t))}function cn(){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 _y(t,r){if(Lf)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(!gr(t[o],r[o]))return!1;return!0}function Py(t,r,o,s,c,d){Qa=d,dt=r,Si=t!==null?t._debugHookTypes:null,Zo=-1,Lf=t!==null&&t.type!==r.type,(Object.prototype.toString.call(o)==="[object AsyncFunction]"||Object.prototype.toString.call(o)==="[object AsyncGeneratorFunction]")&&(d=O(dt),Vb.has(d)||(Vb.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?Qb:Si!==null?x3:Gb,nu=d=(r.mode&sr)!==Xt;var x=Yb(o,s,c);if(nu=!1,Nl&&(x=jy(r,o,s,c)),d){J(!0);try{x=jy(r,o,s,c)}finally{J(!1)}}return PC(t,r),x}function PC(t,r){r._debugHookTypes=Si,r.dependencies===null?Xo!==null&&(r.dependencies={lanes:0,firstContext:null,_debugThenableState:Xo}):r.dependencies._debugThenableState=Xo,Fe.H=rm;var o=zt!==null&&zt.next!==null;if(Qa=0,Si=Oe=bn=zt=dt=null,Zo=-1,t!==null&&(t.flags&65011712)!==(r.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),tm=!1,jf=0,Xo=null,o)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");t===null||Nn||(t=t.dependencies,t!==null&&Vp(t)&&(Nn=!0)),Wh?(Wh=!1,t=!0):t=!1,t&&(r=O(r)||"Unknown",A3.has(r)||Vb.has(r)||(A3.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){dt=t;var c=0;do{if(Nl&&(Xo=null),jf=0,Nl=!1,c>=Yk)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(c+=1,Lf=!1,bn=zt=null,t.updateQueue!=null){var d=t.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}Zo=-1,Fe.H=E3,d=Yb(r,o,s)}while(Nl);return d}function wj(){var t=Fe.H,r=t.useState()[0];return r=typeof r.then=="function"?Jc(r):r,t=t.useState()[0],(zt!==null?zt.memoizedState:null)!==t&&(dt.flags|=1024),r}function Ly(){var t=nm!==0;return nm=0,t}function ky(t,r,o){r.updateQueue=t.updateQueue,r.flags=(r.mode&ji)!==Xt?r.flags&-402655237:r.flags&-2053,t.lanes&=~o}function $y(t){if(tm){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}tm=!1}Qa=0,Si=bn=zt=dt=null,Zo=-1,Oe=null,Nl=!1,jf=nm=0,Xo=null}function Or(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bn===null?dt.memoizedState=bn=t:bn=bn.next=t,bn}function Lt(){if(zt===null){var t=dt.alternate;t=t!==null?t.memoizedState:null}else t=zt.next;var r=bn===null?dt.memoizedState:bn.next;if(r!==null)bn=r,zt=t;else{if(t===null)throw dt.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.");zt=t,t={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},bn===null?dt.memoizedState=bn=t:bn=bn.next=t}return bn}function qy(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Jc(t){var r=jf;return jf+=1,Xo===null&&(Xo=RC()),t=NC(Xo,t,r),r=dt,(bn===null?r.memoizedState:bn.next)===null&&(r=r.alternate,Fe.H=r!==null&&r.memoizedState!==null?Qb:Gb),t}function Ba(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Jc(t);if(t.$$typeof===lo)return Jt(t)}throw Error("An unsupported type was passed to use(): "+String(t))}function Hs(t){var r=null,o=dt.updateQueue;if(o!==null&&(r=o.memoCache),r==null){var s=dt.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=qy(),dt.updateQueue=o),o.memoCache=r,o=r.data[r.index],o===void 0||Lf)for(o=r.data[r.index]=Array(t),s=0;s<t;s++)o[s]=UL;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 _i(t,r){return typeof r=="function"?r(t):r}function Hy(t,r,o){var s=Or();if(o!==void 0){var c=o(r);if(nu){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=Tj.bind(null,dt,t),[s.memoizedState,t]}function Zu(t){var r=Lt();return zy(r,zt,t)}function zy(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?(wt&Ne)===Ne:(Qa&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===Ws&&(Se=!0);else if((Qa&we)===we){Z=Z.next,we===Ws&&(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,dt.lanes|=we,Xa|=we;Ne=Z.action,nu&&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,dt.lanes|=Ne,Xa|=Ne;Z=Z.next}while(Z!==null&&Z!==r);if(z===null?x=d:z.next=T,!gr(d,t.memoizedState)&&(Nn=!0,Se&&(o=Ol,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 Wc(t){var r=Lt(),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);gr(d,r.memoizedState)||(Nn=!0),r.memoizedState=d,r.baseQueue===null&&(r.baseState=d),o.lastRenderedState=d}return[d,s]}function Vy(t,r,o){var s=dt,c=Or();if(Ut){if(o===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var d=o();Fl||d===o()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Fl=!0)}else{if(d=r(),Fl||(o=r(),gr(d,o)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Fl=!0)),Gt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(wt&124)!==0||jC(s,r,d)}return c.memoizedState=d,o={value:d,getSnapshot:r},c.queue=o,rh(kC.bind(null,s,o,t),[t]),s.flags|=2048,Wu(wi|Cn,nh(),LC.bind(null,s,o,d,r),null),d}function Wp(t,r,o){var s=dt,c=Lt(),d=Ut;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(),!Fl){var x=r();gr(o,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Fl=!0)}(x=!gr((zt||c).memoizedState,o))&&(c.memoizedState=o,Nn=!0),c=c.queue;var T=kC.bind(null,s,c,t);if(Rr(2048,Cn,T,[t]),c.getSnapshot!==r||x||bn!==null&&bn.memoizedState.tag&wi){if(s.flags|=2048,Wu(wi|Cn,nh(),LC.bind(null,s,c,o,r),null),Gt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");d||(Qa&124)!==0||jC(s,r,o)}return o}function jC(t,r,o){t.flags|=16384,t={getSnapshot:r,value:o},r=dt.updateQueue,r===null?(r=qy(),dt.updateQueue=r,r.stores=[t]):(o=r.stores,o===null?r.stores=[t]:o.push(t))}function LC(t,r,o,s){r.value=o,r.getSnapshot=s,$C(r)&&qC(t)}function kC(t,r,o){return o(function(){$C(r)&&qC(t)})}function $C(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!gr(t,o)}catch{return!0}}function qC(t){var r=Tr(t,2);r!==null&&fn(r,t,2)}function Gy(t){var r=Or();if(typeof t=="function"){var o=t;if(t=o(),nu){J(!0);try{o()}finally{J(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_i,lastRenderedState:t},r}function Qy(t){t=Gy(t);var r=t.queue,o=sT.bind(null,dt,r);return r.dispatch=o,[t.memoizedState,o]}function Yy(t){var r=Or();r.memoizedState=r.baseState=t;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=o,r=s0.bind(null,dt,!0,o),o.dispatch=r,[t,r]}function HC(t,r){var o=Lt();return zC(o,zt,t,r)}function zC(t,r,o,s){return t.baseState=o,zy(t,zt,typeof s=="function"?s:_i)}function VC(t,r){var o=Lt();return zt!==null?zC(o,zt,t,r):(o.baseState=t,[t,o.queue.dispatch])}function Sj(t,r,o,s,c){if(sh(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,GC(r,d)):(d.next=o.next,r.pending=o.next=d)}}function GC(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),QC(t,r,T)}catch(Z){Ky(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),QC(t,r,x)}catch(Z){Ky(t,r,Z)}}function QC(t,r,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?(o.then(function(s){YC(t,r,s)},function(s){return Ky(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.")):YC(t,r,o)}function YC(t,r,o){r.status="fulfilled",r.value=o,KC(r),t.state=o,r=t.pending,r!==null&&(o=r.next,o===r?t.pending=null:(o=o.next,r.next=o,GC(t,o)))}function Ky(t,r,o){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do r.status="rejected",r.reason=o,KC(r),r=r.next;while(r!==s)}t.action=null}function KC(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function XC(t,r){return r}function Ju(t,r){if(Ut){var o=Gt.formState;if(o!==null){e:{var s=dt;if(Ut){if(on){t:{for(var c=on,d=go;c.nodeType!==8;){if(!d){c=null;break t}if(c=mi(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d===vA||d===vF?c:null}if(c){on=mi(c.nextSibling),s=c.data===vA;break e}}ks(s)}s=!1}s&&(r=o[0])}}return o=Or(),o.memoizedState=o.baseState=r,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:XC,lastRenderedState:r},o.queue=s,o=sT.bind(null,dt,s),s.dispatch=o,s=Gy(!1),d=s0.bind(null,dt,!1,s.queue),s=Or(),c={state:r,dispatch:null,action:t,pending:null},s.queue=c,o=Sj.bind(null,dt,c,d,o),c.dispatch=o,s.memoizedState=t,[r,o,!1]}function eh(t){var r=Lt();return ZC(r,zt,t)}function ZC(t,r,o){if(r=zy(t,r,XC)[0],t=Zu(_i)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var s=Jc(r)}catch(x){throw x===_f?Jh:x}else s=r;r=Lt();var c=r.queue,d=c.dispatch;return o!==r.memoizedState&&(dt.flags|=2048,Wu(wi|Cn,nh(),Ij.bind(null,c,o),null)),[s,d,t]}function Ij(t,r){t.action=r}function th(t){var r=Lt(),o=zt;if(o!==null)return ZC(r,o,t);Lt(),r=r.memoizedState,o=Lt();var s=o.queue.dispatch;return o.memoizedState=t,[r,s,!1]}function Wu(t,r,o,s){return t={tag:t,create:o,deps:s,inst:r,next:null},r=dt.updateQueue,r===null&&(r=qy(),dt.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 nh(){return{destroy:void 0,resource:void 0}}function Xy(t){var r=Or();return t={current:t},r.memoizedState=t}function zs(t,r,o,s){var c=Or();s=s===void 0?null:s,dt.flags|=t,c.memoizedState=Wu(wi|r,nh(),o,s)}function Rr(t,r,o,s){var c=Lt();s=s===void 0?null:s;var d=c.memoizedState.inst;zt!==null&&s!==null&&_y(s,zt.memoizedState.deps)?c.memoizedState=Wu(r,d,o,s):(dt.flags|=t,c.memoizedState=Wu(wi|r,d,o,s))}function rh(t,r){(dt.mode&ji)!==Xt&&(dt.mode&i3)===Xt?zs(276826112,Cn,t,r):zs(8390656,Cn,t,r)}function Zy(t,r){var o=4194308;return(dt.mode&ji)!==Xt&&(o|=134217728),zs(o,Kn,t,r)}function JC(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 Jy(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;(dt.mode&ji)!==Xt&&(s|=134217728),zs(s,Kn,JC.bind(null,r,t),o)}function ih(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,Rr(4,Kn,JC.bind(null,r,t),o)}function Wy(t,r){return Or().memoizedState=[t,r===void 0?null:r],t}function oh(t,r){var o=Lt();r=r===void 0?null:r;var s=o.memoizedState;return r!==null&&_y(r,s[1])?s[0]:(o.memoizedState=[t,r],t)}function e0(t,r){var o=Or();r=r===void 0?null:r;var s=t();if(nu){J(!0);try{t()}finally{J(!1)}}return o.memoizedState=[s,r],s}function ah(t,r){var o=Lt();r=r===void 0?null:r;var s=o.memoizedState;if(r!==null&&_y(r,s[1]))return s[0];if(s=t(),nu){J(!0);try{t()}finally{J(!1)}}return o.memoizedState=[s,r],s}function t0(t,r){var o=Or();return n0(o,t,r)}function WC(t,r){var o=Lt();return tT(o,zt.memoizedState,t,r)}function eT(t,r){var o=Lt();return zt===null?n0(o,t,r):tT(o,zt.memoizedState,t,r)}function n0(t,r,o){return o===void 0||(Qa&1073741824)!==0?t.memoizedState=r:(t.memoizedState=o,t=nO(),dt.lanes|=t,Xa|=t,o)}function tT(t,r,o,s){return gr(o,r)?o:Rl.current!==null?(t=n0(t,o,s),gr(t,r)||(Nn=!0),t):(Qa&42)===0?(Nn=!0,t.memoizedState=o):(t=nO(),dt.lanes|=t,Xa|=t,r)}function nT(t,r,o,s,c){var d=_t.p;_t.p=d!==0&&d<po?d:po;var x=Fe.T,T={};Fe.T=T,s0(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=xj(z,s);ef(t,r,Se,Yr(t))}else ef(t,r,s,Yr(t))}catch(Ne){ef(t,r,{then:function(){},status:"rejected",reason:Ne},Yr(t))}finally{_t.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 r0(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=rT(t).queue;nT(t,c,r,pu,o===null?v:function(){return iT(t),o(s)})}function rT(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:pu,baseState:pu,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_i,lastRenderedState:pu},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_i,lastRenderedState:o},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function iT(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=rT(t).next.queue;ef(t,r,{},Yr(t))}function i0(){var t=Gy(!1);return t=nT.bind(null,dt,t.queue,!0,!1),Or().memoizedState=t,[!1,t]}function oT(){var t=Zu(_i)[0],r=Lt().memoizedState;return[typeof t=="boolean"?t:Jc(t),r]}function aT(){var t=Wc(_i)[0],r=Lt().memoizedState;return[typeof t=="boolean"?t:Jc(t),r]}function Vs(){return Jt(nd)}function o0(){var t=Or(),r=Gt.identifierPrefix;if(Ut){var o=Yo,s=Qo;o=(s&~(1<<32-hr(s)-1)).toString(32)+o,r="«"+r+"R"+o,o=nm++,0<o&&(r+="H"+o.toString(32)),r+="»"}else o=Qk++,r="«"+r+"r"+o.toString(32)+"»";return t.memoizedState=r}function a0(){return Or().memoizedState=Cj.bind(null,dt)}function Cj(t,r){for(var o=t.return;o!==null;){switch(o.tag){case 24:case 3:var s=Yr(o);t=Na(s);var c=Da(o,t,s);c!==null&&(fn(c,o,s),Kc(c,o,s)),o=Oy(),r!=null&&c!==null&&console.error("The seed argument is not enabled outside experimental channels."),t.payload={cache:o};return}o=o.return}}function Tj(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=Yr(t);var c={lane:s,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};sh(t)?uT(r,c):(c=gy(t,r,c,s),c!==null&&(fn(c,t,s),lT(c,r,s))),W(t,s)}function sT(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=Yr(t),ef(t,r,o,s),W(t,s)}function ef(t,r,o,s){var c={lane:s,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(sh(t))uT(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=ki;try{var T=r.lastRenderedState,z=d(T,o);if(c.hasEagerState=!0,c.eagerState=z,gr(z,T))return $p(t,r,c,0),Gt===null&&kp(),!1}catch{}finally{Fe.H=x}}if(o=gy(t,r,c,s),o!==null)return fn(o,t,s),lT(o,r,s),!0}return!1}function s0(t,r,o,s){if(Fe.T===null&&Ws===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},sh(t)){if(r)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else r=gy(t,o,s,2),r!==null&&fn(r,t,2);W(t,2)}function sh(t){var r=t.alternate;return t===dt||r!==null&&r===dt}function uT(t,r){Nl=tm=!0;var o=t.pending;o===null?r.next=r:(r.next=o.next,o.next=r),t.pending=r}function lT(t,r,o){if((o&4194048)!==0){var s=r.lanes;s&=t.pendingLanes,o|=s,r.lanes=o,Ce(t,o)}}function zn(t){var r=gt;return t!=null&&(gt=r===null?t:r.concat(t)),r}function uh(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=Hp(t,o.mode,0),r._debugInfo=gt,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 lh(t){var r=kf;return kf+=1,Dl===null&&(Dl=RC()),NC(Dl,t,r)}function tf(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function ch(t,r){throw r.$$typeof===DL?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 fh(t,r){var o=O(t)||"Component";P3[o]||(P3[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 dh(t,r){var o=O(t)||"Component";j3[o]||(j3[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 cT(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=Uo(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=xy(ye,ae.mode,Be),se.return=ae,se._debugOwner=ae,se._debugTask=ae._debugTask,se._debugInfo=gt,se):(se=c(se,ye),se.return=ae,se._debugInfo=gt,se)}function z(ae,se,ye,Be){var qe=ye.type;return qe===cl?(se=Se(ae,se,ye.props.children,Be,ye.key),uh(ye,se,ae),se):se!==null&&(se.elementType===qe||yC(se,ye)||typeof qe=="object"&&qe!==null&&qe.$$typeof===Kr&&Ya(qe)===se.type)?(se=c(se,ye.props),tf(se,ye),se.return=ae,se._debugOwner=ye._owner,se._debugInfo=gt,se):(se=Hp(ye,ae.mode,Be),tf(se,ye),se.return=ae,se._debugInfo=gt,se)}function Z(ae,se,ye,Be){return se===null||se.tag!==4||se.stateNode.containerInfo!==ye.containerInfo||se.stateNode.implementation!==ye.implementation?(se=Ey(ye,ae.mode,Be),se.return=ae,se._debugInfo=gt,se):(se=c(se,ye.children||[]),se.return=ae,se._debugInfo=gt,se)}function Se(ae,se,ye,Be,qe){return se===null||se.tag!==7?(se=_s(ye,ae.mode,Be,qe),se.return=ae,se._debugOwner=ae,se._debugTask=ae._debugTask,se._debugInfo=gt,se):(se=c(se,ye),se.return=ae,se._debugInfo=gt,se)}function Ne(ae,se,ye){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return se=xy(""+se,ae.mode,ye),se.return=ae,se._debugOwner=ae,se._debugTask=ae._debugTask,se._debugInfo=gt,se;if(typeof se=="object"&&se!==null){switch(se.$$typeof){case La:return ye=Hp(se,ae.mode,ye),tf(ye,se),ye.return=ae,ae=zn(se._debugInfo),ye._debugInfo=gt,gt=ae,ye;case ll:return se=Ey(se,ae.mode,ye),se.return=ae,se._debugInfo=gt,se;case Kr:var Be=zn(se._debugInfo);return se=Ya(se),ae=Ne(ae,se,ye),gt=Be,ae}if(Qn(se)||X(se))return ye=_s(se,ae.mode,ye,null),ye.return=ae,ye._debugOwner=ae,ye._debugTask=ae._debugTask,ae=zn(se._debugInfo),ye._debugInfo=gt,gt=ae,ye;if(typeof se.then=="function")return Be=zn(se._debugInfo),ae=Ne(ae,lh(se),ye),gt=Be,ae;if(se.$$typeof===lo)return Ne(ae,Gp(ae,se),ye);ch(ae,se)}return typeof se=="function"&&fh(ae,se),typeof se=="symbol"&&dh(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 La:return ye.key===qe?(qe=zn(ye._debugInfo),ae=z(ae,se,ye,Be),gt=qe,ae):null;case ll:return ye.key===qe?Z(ae,se,ye,Be):null;case Kr:return qe=zn(ye._debugInfo),ye=Ya(ye),ae=we(ae,se,ye,Be),gt=qe,ae}if(Qn(ye)||X(ye))return qe!==null?null:(qe=zn(ye._debugInfo),ae=Se(ae,se,ye,Be,null),gt=qe,ae);if(typeof ye.then=="function")return qe=zn(ye._debugInfo),ae=we(ae,se,lh(ye),Be),gt=qe,ae;if(ye.$$typeof===lo)return we(ae,se,Gp(ae,ye),Be);ch(ae,ye)}return typeof ye=="function"&&fh(ae,ye),typeof ye=="symbol"&&dh(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 La:return ye=ae.get(Be.key===null?ye:Be.key)||null,ae=zn(Be._debugInfo),se=z(se,ye,Be,qe),gt=ae,se;case ll:return ae=ae.get(Be.key===null?ye:Be.key)||null,Z(se,ae,Be,qe);case Kr:var pt=zn(Be._debugInfo);return Be=Ya(Be),se=De(ae,se,ye,Be,qe),gt=pt,se}if(Qn(Be)||X(Be))return ye=ae.get(ye)||null,ae=zn(Be._debugInfo),se=Se(se,ye,Be,qe,null),gt=ae,se;if(typeof Be.then=="function")return pt=zn(Be._debugInfo),se=De(ae,se,ye,lh(Be),qe),gt=pt,se;if(Be.$$typeof===lo)return De(ae,se,ye,Gp(se,Be),qe);ch(se,Be)}return typeof Be=="function"&&fh(se,Be),typeof Be=="symbol"&&dh(se,Be),null}function Je(ae,se,ye,Be){if(typeof ye!="object"||ye===null)return Be;switch(ye.$$typeof){case La:case ll: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 Kr:ye=Ya(ye),Je(ae,se,ye,Be)}return Be}function ct(ae,se,ye,Be){for(var qe=null,pt=null,We=null,ht=se,mt=se=0,Zt=null;ht!==null&&mt<ye.length;mt++){ht.index>mt?(Zt=ht,ht=null):Zt=ht.sibling;var pn=we(ae,ht,ye[mt],Be);if(pn===null){ht===null&&(ht=Zt);break}qe=Je(ae,pn,ye[mt],qe),t&&ht&&pn.alternate===null&&r(ae,ht),se=d(pn,se,mt),We===null?pt=pn:We.sibling=pn,We=pn,ht=Zt}if(mt===ye.length)return o(ae,ht),Ut&&Ps(ae,mt),pt;if(ht===null){for(;mt<ye.length;mt++)ht=Ne(ae,ye[mt],Be),ht!==null&&(qe=Je(ae,ht,ye[mt],qe),se=d(ht,se,mt),We===null?pt=ht:We.sibling=ht,We=ht);return Ut&&Ps(ae,mt),pt}for(ht=s(ht);mt<ye.length;mt++)Zt=De(ht,ae,mt,ye[mt],Be),Zt!==null&&(qe=Je(ae,Zt,ye[mt],qe),t&&Zt.alternate!==null&&ht.delete(Zt.key===null?mt:Zt.key),se=d(Zt,se,mt),We===null?pt=Zt:We.sibling=Zt,We=Zt);return t&&ht.forEach(function(ra){return r(ae,ra)}),Ut&&Ps(ae,mt),pt}function Qt(ae,se,ye,Be){if(ye==null)throw Error("An iterable object provided no iterator.");for(var qe=null,pt=null,We=se,ht=se=0,mt=null,Zt=null,pn=ye.next();We!==null&&!pn.done;ht++,pn=ye.next()){We.index>ht?(mt=We,We=null):mt=We.sibling;var ra=we(ae,We,pn.value,Be);if(ra===null){We===null&&(We=mt);break}Zt=Je(ae,ra,pn.value,Zt),t&&We&&ra.alternate===null&&r(ae,We),se=d(ra,se,ht),pt===null?qe=ra:pt.sibling=ra,pt=ra,We=mt}if(pn.done)return o(ae,We),Ut&&Ps(ae,ht),qe;if(We===null){for(;!pn.done;ht++,pn=ye.next())We=Ne(ae,pn.value,Be),We!==null&&(Zt=Je(ae,We,pn.value,Zt),se=d(We,se,ht),pt===null?qe=We:pt.sibling=We,pt=We);return Ut&&Ps(ae,ht),qe}for(We=s(We);!pn.done;ht++,pn=ye.next())mt=De(We,ae,ht,pn.value,Be),mt!==null&&(Zt=Je(ae,mt,pn.value,Zt),t&&mt.alternate!==null&&We.delete(mt.key===null?ht:mt.key),se=d(mt,se,ht),pt===null?qe=mt:pt.sibling=mt,pt=mt);return t&&We.forEach(function(v5){return r(ae,v5)}),Ut&&Ps(ae,ht),qe}function Ct(ae,se,ye,Be){if(typeof ye=="object"&&ye!==null&&ye.type===cl&&ye.key===null&&(uh(ye,null,ae),ye=ye.props.children),typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case La:var qe=zn(ye._debugInfo);e:{for(var pt=ye.key;se!==null;){if(se.key===pt){if(pt=ye.type,pt===cl){if(se.tag===7){o(ae,se.sibling),Be=c(se,ye.props.children),Be.return=ae,Be._debugOwner=ye._owner,Be._debugInfo=gt,uh(ye,Be,ae),ae=Be;break e}}else if(se.elementType===pt||yC(se,ye)||typeof pt=="object"&&pt!==null&&pt.$$typeof===Kr&&Ya(pt)===se.type){o(ae,se.sibling),Be=c(se,ye.props),tf(Be,ye),Be.return=ae,Be._debugOwner=ye._owner,Be._debugInfo=gt,ae=Be;break e}o(ae,se);break}else r(ae,se);se=se.sibling}ye.type===cl?(Be=_s(ye.props.children,ae.mode,Be,ye.key),Be.return=ae,Be._debugOwner=ae,Be._debugTask=ae._debugTask,Be._debugInfo=gt,uh(ye,Be,ae),ae=Be):(Be=Hp(ye,ae.mode,Be),tf(Be,ye),Be.return=ae,Be._debugInfo=gt,ae=Be)}return ae=x(ae),gt=qe,ae;case ll: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=Ey(qe,ae.mode,Be),Be.return=ae,ae=Be}return x(ae);case Kr:return qe=zn(ye._debugInfo),ye=Ya(ye),ae=Ct(ae,se,ye,Be),gt=qe,ae}if(Qn(ye))return qe=zn(ye._debugInfo),ae=ct(ae,se,ye,Be),gt=qe,ae;if(X(ye)){if(qe=zn(ye._debugInfo),pt=X(ye),typeof pt!="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=pt.call(ye);return We===ye?(ae.tag!==0||Object.prototype.toString.call(ae.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(We)!=="[object Generator]")&&(M3||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."),M3=!0):ye.entries!==pt||Xb||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Xb=!0),ae=Qt(ae,se,We,Be),gt=qe,ae}if(typeof ye.then=="function")return qe=zn(ye._debugInfo),ae=Ct(ae,se,lh(ye),Be),gt=qe,ae;if(ye.$$typeof===lo)return Ct(ae,se,Gp(ae,ye),Be);ch(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=xy(qe,ae.mode,Be),Be.return=ae,Be._debugOwner=ae,Be._debugTask=ae._debugTask,Be._debugInfo=gt,ae=Be),x(ae)):(typeof ye=="function"&&fh(ae,ye),typeof ye=="symbol"&&dh(ae,ye),o(ae,se))}return function(ae,se,ye,Be){var qe=gt;gt=null;try{kf=0;var pt=Ct(ae,se,ye,Be);return Dl=null,pt}catch(Zt){if(Zt===_f||Zt===Jh)throw Zt;var We=y(29,Zt,null,ae.mode);We.lanes=Be,We.return=ae;var ht=We._debugInfo=gt;if(We._debugOwner=ae._debugOwner,We._debugTask=ae._debugTask,ht!=null){for(var mt=ht.length-1;0<=mt;mt--)if(typeof ht[mt].stack=="string"){We._debugOwner=ht[mt],We._debugTask=ht[mt].debugTask;break}}return We}finally{gt=qe}}}function Ua(t){var r=t.alternate;q(Tn,Tn.current&Ul,t),q(Ii,t,t),bo===null&&(r===null||Rl.current!==null||r.memoizedState!==null)&&(bo=t)}function fT(t){if(t.tag===22){if(q(Tn,Tn.current,t),q(Ii,t,t),bo===null){var r=t.alternate;r!==null&&r.memoizedState!==null&&(bo=t)}}else Ma(t)}function Ma(t){q(Tn,Tn.current,t),q(Ii,Ii.current,t)}function Po(t){L(Ii,t),bo===t&&(bo=null),L(Tn,t)}function ph(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===ea||K0(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 u0(t){if(t!==null&&typeof t!="function"){var r=String(t);X3.has(r)||(X3.add(r),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",t))}}function l0(t,r,o,s){var c=t.memoizedState,d=o(s,c);if(t.mode&sr){J(!0);try{d=o(s,c)}finally{J(!1)}}d===void 0&&(r=re(r)||"Component",G3.has(r)||(G3.add(r),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",r))),c=d==null?c:bt({},c,d),t.memoizedState=c,t.lanes===0&&(t.updateQueue.baseState=c)}function dT(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&sr){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?!qc(o,s)||!qc(c,d):!0}function pT(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",$3.has(t)||($3.add(t),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",t)),Zb.enqueueReplaceState(r,r.state,null))}function Gs(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=bt({},o));for(var c in t)o[c]===void 0&&(o[c]=t[c])}return o}function hT(t){Jb(t),console.warn(`%s
|
|
164
|
-
|
|
165
|
-
%s
|
|
166
|
-
`,Ml?"An error occurred in the <"+Ml+"> 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 mT(t){var r=Ml?"The above error occurred in the <"+Ml+"> 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, "+((Wb||"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,OF+t[0],RF,Em+s+Em,FF):t.splice(0,0,OF,RF,Em+s+Em,FF),t.unshift(console),s=b5.apply(console.error,t),s()}else console.error(`%o
|
|
173
|
-
|
|
174
|
-
%s
|
|
175
|
-
|
|
176
|
-
%s
|
|
177
|
-
`,t,r,o)}function gT(t){Jb(t)}function hh(t,r){try{Ml=r.source?O(r.source):null,Wb=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 yT(t,r,o){try{Ml=o.source?O(o.source):null,Wb=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 c0(t,r,o){return o=Na(o),o.tag=qb,o.payload={element:null},o.callback=function(){et(r.source,hh,t,r)},o}function f0(t){return t=Na(t),t.tag=qb,t}function d0(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(){bC(o),et(s.source,yT,r,o,s)}}var x=o.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(t.callback=function(){bC(o),et(s.source,yT,r,o,s),typeof c!="function"&&(Ja===null?Ja=new Set([this]):Ja.add(this)),Kk(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 Oj(t,r,o,s,c){if(o.flags|=32768,Pi&&lf(t,c),s!==null&&typeof s=="object"&&typeof s.then=="function"){if(r=o.alternate,r!==null&&Gc(r,o,c,!0),Ut&&(Ko=!0),o=Ii.current,o!==null){switch(o.tag){case 13:return bo===null?N0():o.alternate===null&&an===Wo&&(an=rA),o.flags&=-257,o.flags|=65536,o.lanes=c,s===$b?o.flags|=16384:(r=o.updateQueue,r===null?o.updateQueue=new Set([s]):r.add(s),U0(t,s,c)),!1;case 22:return o.flags|=65536,s===$b?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)),U0(t,s,c)),!1}throw Error("Unexpected Suspense handler tag ("+o.tag+"). This is a bug in React.")}return U0(t,s,c),N0(),!1}if(Ut)return Ko=!0,r=Ii.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=c,s!==Pb&&Vc(Vr(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!==Pb&&Vc(Vr(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=Vr(s,o),c=c0(t.stateNode,s,c),Zp(t,c),an!==ru&&(an=Ll)),!1;var d=Vr(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(Yf===null?Yf=[d]:Yf.push(d),an!==ru&&(an=Ll),r===null)return!0;s=Vr(s,o),o=r;do{switch(o.tag){case 3:return o.flags|=65536,t=c&-c,o.lanes|=t,t=c0(o.stateNode,s,t),Zp(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"&&(Ja===null||!Ja.has(d))))return o.flags|=65536,c&=-c,o.lanes|=c,c=f0(c),d0(c,t,o,s),Zp(o,c),!1}o=o.return}while(o!==null);return!1}function Vn(t,r,o,s){r.child=t===null?L3(r,null,o,s):Bl(r,t.child,o,s)}function bT(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 $s(r),V(r),s=Py(t,r,o,x,d,c),T=Ly(),w(),t!==null&&!Nn?(ky(t,r,c),jo(t,r,c)):(Ut&&T&&wy(r),r.flags|=1,Vn(t,r,s,c),r.child)}function AT(t,r,o,s,c){if(t===null){var d=o.type;return typeof d=="function"&&!Ay(d)&&d.defaultProps===void 0&&o.compare===null?(o=Ms(d),r.tag=15,r.type=o,h0(r,d),vT(t,r,o,s,c)):(t=vy(o.type,null,s,r,r.mode,c),t.ref=r.ref,t.return=r,r.child=t)}if(d=t.child,!v0(t,c)){var x=d.memoizedProps;if(o=o.compare,o=o!==null?o:qc,o(x,s)&&t.ref===r.ref)return jo(t,r,c)}return r.flags|=1,t=Uo(d,s),t.ref=r.ref,t.return=r,r.child=t}function vT(t,r,o,s,c){if(t!==null){var d=t.memoizedProps;if(qc(d,s)&&t.ref===r.ref&&r.type===t.type)if(Nn=!1,r.pendingProps=s=d,v0(t,c))(t.flags&131072)!==0&&(Nn=!0);else return r.lanes=t.lanes,jo(t,r,c)}return p0(t,r,o,s,c)}function xT(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 ET(t,r,s,o)}if((o&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&Kp(r,d!==null?d.cachePool:null),d!==null?_C(r,d):Uy(r),fT(r);else return r.lanes=r.childLanes=536870912,ET(t,r,d!==null?d.baseLanes|o:o,o)}else d!==null?(Kp(r,d.cachePool),_C(r,d),Ma(r),r.memoizedState=null):(t!==null&&Kp(r,null),Uy(r),Ma(r));return Vn(t,r,c,o),r.child}function ET(t,r,o,s){var c=Ny();return c=c===null?null:{parent:In._currentValue,pool:c},r.memoizedState={baseLanes:o,cachePool:c},t!==null&&Kp(r,null),Uy(r),fT(r),t!==null&&Gc(t,r,s,!0),null}function mh(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 p0(t,r,o,s,c){if(o.prototype&&typeof o.prototype.render=="function"){var d=re(o)||"Unknown";J3[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),J3[d]=!0)}return r.mode&sr&&Li.recordLegacyContextWarning(r,null),t===null&&(h0(r,r.type),o.contextTypes&&(d=re(o)||"Unknown",eF[d]||(eF[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)))),$s(r),V(r),o=Py(t,r,o,s,void 0,c),s=Ly(),w(),t!==null&&!Nn?(ky(t,r,c),jo(t,r,c)):(Ut&&s&&wy(r),r.flags|=1,Vn(t,r,o,c),r.child)}function wT(t,r,o,s,c,d){return $s(r),V(r),Zo=-1,Lf=t!==null&&t.type!==r.type,r.updateQueue=null,o=jy(r,s,o,c),PC(t,r),s=Ly(),w(),t!==null&&!Nn?(ky(t,r,d),jo(t,r,d)):(Ut&&s&&wy(r),r.flags|=1,Vn(t,r,o,d),r.child)}function ST(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=Gt,x===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");T=f0(T),d0(T,x,r,Vr(d,r)),Zp(r,T)}if($s(r),r.stateNode===null){if(x=Va,d=o.contextType,"contextType"in o&&d!==null&&(d===void 0||d.$$typeof!==lo)&&!K3.has(o)&&(K3.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===sb?" 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=Jt(d)),d=new o(s,x),r.mode&sr){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=Zb,r.stateNode=d,d._reactInternals=r,d._reactInternalInstance=k3,typeof o.getDerivedStateFromProps=="function"&&x===null&&(x=re(o)||"Component",q3.has(x)||(q3.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()";z3.has(d)||(z3.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&&!Y3.has(o)&&(Y3.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&&!Q3.has(o)&&(Q3.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"||H3.has(o)||(H3.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"||Qn(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={},Dy(r),x=o.contextType,d.context=typeof x=="object"&&x!==null?Jt(x):Va,d.state===s&&(x=re(o)||"Component",V3.has(x)||(V3.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&sr&&Li.recordLegacyContextWarning(r,d),Li.recordUnsafeLifecycleWarnings(r,d),d.state=r.memoizedState,x=o.getDerivedStateFromProps,typeof x=="function"&&(l0(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"),Zb.enqueueReplaceState(d,d.state,null)),Zc(r,s,d,c),Xc(),d.state=r.memoizedState),typeof d.componentDidMount=="function"&&(r.flags|=4194308),(r.mode&ji)!==Xt&&(r.flags|=134217728),d=!0}else if(t===null){d=r.stateNode;var Se=r.memoizedProps;T=Gs(o,Se),d.props=T;var Ne=d.context;z=o.contextType,x=Va,typeof z=="object"&&z!==null&&(x=Jt(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)&&pT(r,d,s,x),Ga=!1;var we=r.memoizedState;d.state=we,Zc(r,s,d,c),Xc(),Ne=r.memoizedState,Se||we!==Ne||Ga?(typeof Z=="function"&&(l0(r,o,Z,s),Ne=r.memoizedState),(T=Ga||dT(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)!==Xt&&(r.flags|=134217728)):(typeof d.componentDidMount=="function"&&(r.flags|=4194308),(r.mode&ji)!==Xt&&(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)!==Xt&&(r.flags|=134217728),d=!1)}else{d=r.stateNode,By(t,r),x=r.memoizedProps,z=Gs(o,x),d.props=z,Z=r.pendingProps,we=d.context,Ne=o.contextType,T=Va,typeof Ne=="object"&&Ne!==null&&(T=Jt(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)&&pT(r,d,s,T),Ga=!1,we=r.memoizedState,d.state=we,Zc(r,s,d,c),Xc();var De=r.memoizedState;x!==Z||we!==De||Ga||t!==null&&t.dependencies!==null&&Vp(t.dependencies)?(typeof Se=="function"&&(l0(r,o,Se,s),De=r.memoizedState),(z=Ga||dT(r,o,z,s,we,De,T)||t!==null&&t.dependencies!==null&&Vp(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,mh(t,r),x=(r.flags&128)!==0,T||x){if(T=r.stateNode,Ta(r),x&&typeof o.getDerivedStateFromError!="function")o=null,Nr=-1;else{if(V(r),o=I3(T),r.mode&sr){J(!0);try{I3(T)}finally{J(!1)}}w()}r.flags|=1,t!==null&&x?(r.child=Bl(r,t.child,null,c),r.child=Bl(r,null,o,c)):Vn(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&&(_l||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"),_l=!0),t}function IT(t,r,o,s){return zc(),r.flags|=256,Vn(t,r,o,s),r.child}function h0(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",tF[t]||(console.error("%s: Function components do not support getDerivedStateFromProps.",t),tF[t]=!0)),typeof r.contextType=="object"&&r.contextType!==null&&(r=re(r)||"Unknown",W3[r]||(console.error("%s: Function components do not support contextType.",r),W3[r]=!0))}function m0(t){return{baseLanes:t,cachePool:OC()}}function g0(t,r,o){return t=t!==null?t.childLanes&~o:0,r&&(t|=Wr),t}function CT(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:(Tn.current&$f)!==0),s&&(d=!0,r.flags&=-129),s=(r.flags&32)!==0,r.flags&=-33,t===null){if(Ut){if(d?Ua(r):Ma(r),Ut){var T=on,z;if(!(z=!T)){e:{var Z=T;for(z=go;Z.nodeType!==8;){if(!z){z=null;break e}if(Z=mi(Z.nextSibling),Z===null){z=null;break e}}z=Z}z!==null?(js(),r.memoizedState={dehydrated:z,treeContext:Xs!==null?{id:Qo,overflow:Yo}:null,retryLane:536870912,hydrationErrors:null},Z=y(18,null,null,Xt),Z.stateNode=z,Z.return=r,r.child=Z,yr=r,on=null,z=!0):z=!1,z=!z}z&&(Iy(r,T),ks(r))}if(T=r.memoizedState,T!==null&&(T=T.dehydrated,T!==null))return K0(T)?r.lanes=32:r.lanes=536870912,null;Po(r)}return T=c.children,c=c.fallback,d?(Ma(r),d=r.mode,T=gh({mode:"hidden",children:T},d),c=_s(c,d,o,null),T.return=r,c.return=r,T.sibling=c,r.child=T,d=r.child,d.memoizedState=m0(o),d.childLanes=g0(t,s,o),r.memoizedState=tA,c):(Ua(r),y0(r,T))}var Se=t.memoizedState;if(Se!==null&&(T=Se.dehydrated,T!==null)){if(x)r.flags&256?(Ua(r),r.flags&=-257,r=b0(t,r,o)):r.memoizedState!==null?(Ma(r),r.child=t.child,r.flags|=128,r=null):(Ma(r),d=c.fallback,T=r.mode,c=gh({mode:"visible",children:c.children},T),d=_s(d,T,o,null),d.flags|=2,c.return=r,d.return=r,c.sibling=d,r.child=c,Bl(r,t.child,null,o),c=r.child,c.memoizedState=m0(o),c.childLanes=g0(t,s,o),r.memoizedState=tA,r=d);else if(Ua(r),Ut&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),K0(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"&&Mb.set(d,c),Vc(c),r=b0(t,r,o)}else if(Nn||Gc(t,r,o,!1),s=(o&t.childLanes)!==0,Nn||s){if(s=Gt,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,Tr(t,c),fn(s,t,c),Z3;T.data===ea||N0(),r=b0(t,r,o)}else T.data===ea?(r.flags|=192,r.child=t.child,r=null):(t=Se.treeContext,on=mi(T.nextSibling),yr=r,Ut=!0,Zs=null,Ko=!1,xi=null,go=!1,t!==null&&(js(),Ai[vi++]=Qo,Ai[vi++]=Yo,Ai[vi++]=Xs,Qo=t.id,Yo=t.overflow,Xs=r),r=y0(r,c.children),r.flags|=4096);return r}return d?(Ma(r),d=c.fallback,T=r.mode,z=t.child,Z=z.sibling,c=Uo(z,{mode:"hidden",children:c.children}),c.subtreeFlags=z.subtreeFlags&65011712,Z!==null?d=Uo(Z,d):(d=_s(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=m0(o):(z=T.cachePool,z!==null?(Z=In._currentValue,z=z.parent!==Z?{parent:Z,pool:Z}:z):z=OC(),T={baseLanes:T.baseLanes|o,cachePool:z}),d.memoizedState=T,d.childLanes=g0(t,s,o),r.memoizedState=tA,c):(Ua(r),o=t.child,t=o.sibling,o=Uo(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 y0(t,r){return r=gh({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function gh(t,r){return t=y(22,t,null,r),t.lanes=0,t.stateNode={_visibility:zh,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function b0(t,r,o){return Bl(r,t.child,null,o),t=y0(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function TT(t,r,o){t.lanes|=r;var s=t.alternate;s!==null&&(s.lanes|=r),Cy(t.return,r,o)}function OT(t,r){var o=Qn(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 A0(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 RT(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"&&!nF[c])if(nF[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||eA[d]||(d!=="collapsed"&&d!=="hidden"?(eA[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"&&(eA[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(Qn(s)){for(var x=0;x<s.length;x++)if(!OT(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(!OT(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(Vn(t,r,s,o),s=Tn.current,(s&$f)!==0)s=s&Ul|$f,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&&TT(t,o,r);else if(t.tag===19)TT(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&=Ul}switch(q(Tn,s,r),c){case"forwards":for(o=r.child,c=null;o!==null;)t=o.alternate,t!==null&&ph(t)===null&&(c=o),o=o.sibling;o=c,o===null?(c=r.child,r.child=null):(c=o.sibling,o.sibling=null),A0(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&&ph(t)===null){r.child=c;break}t=c.sibling,c.sibling=o,o=c,c=t}A0(r,!0,o,null,d);break;case"together":A0(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),Nr=-1,Xa|=r.lanes,(o&r.childLanes)===0)if(t!==null){if(Gc(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=Uo(t,t.pendingProps),r.child=o,o.return=r;t.sibling!==null;)t=t.sibling,o=o.sibling=Uo(t,t.pendingProps),o.return=r;o.sibling=null}return r.child}function v0(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&Vp(t)))}function Rj(t,r,o){switch(r.tag){case 3:ge(r,r.stateNode.containerInfo),Fa(r,In,t.memoizedState.cache),zc();break;case 27:case 5:fe(r);break;case 4:ge(r,r.stateNode.containerInfo);break;case 10:Fa(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?(Ua(r),r.flags|=128,null):(o&r.child.childLanes)!==0?CT(t,r,o):(Ua(r),t=jo(t,r,o),t!==null?t.sibling:null);Ua(r);break;case 19:var c=(t.flags&128)!==0;if(s=(o&r.childLanes)!==0,s||(Gc(t,r,o,!1),s=(o&r.childLanes)!==0),c){if(s)return RT(t,r,o);r.flags|=128}if(c=r.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),q(Tn,Tn.current,r),s)break;return null;case 22:case 23:return r.lanes=0,xT(t,r,o);case 24:Fa(r,In,t.memoizedState.cache)}return jo(t,r,o)}function x0(t,r,o){if(r._debugNeedsRemount&&t!==null){o=vy(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)Nn=!0;else{if(!v0(t,o)&&(r.flags&128)===0)return Nn=!1,Rj(t,r,o);Nn=(t.flags&131072)!==0}else Nn=!1,(s=Ut)&&(js(),s=(r.flags&1048576)!==0),s&&(s=r.index,js(),vC(r,Gh,s));switch(r.lanes=0,r.tag){case 16:e:if(s=r.pendingProps,t=Ya(r.elementType),r.type=t,typeof t=="function")Ay(t)?(s=Gs(t,s),r.tag=1,r.type=t=Ms(t),r=ST(null,r,t,s,o)):(r.tag=0,h0(r,t),r.type=t=Ms(t),r=p0(null,r,t,s,o));else{if(t!=null){if(c=t.$$typeof,c===yf){r.tag=11,r.type=t=yy(t),r=bT(null,r,t,s,o);break e}else if(c===Bh){r.tag=14,r=AT(null,r,t,s,o);break e}}throw r="",t!==null&&typeof t=="object"&&t.$$typeof===Kr&&(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 p0(t,r,r.type,r.pendingProps,o);case 1:return s=r.type,c=Gs(s,r.pendingProps),ST(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,By(t,r),Zc(r,s,null,o);var x=r.memoizedState;if(s=x.cache,Fa(r,In,s),s!==d.cache&&Ty(r,[In],o,!0),Xc(),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=IT(t,r,s,o);break e}else if(s!==c){c=Vr(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),r),Vc(c),r=IT(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(on=mi(t.firstChild),yr=r,Ut=!0,Zs=null,Ko=!1,xi=null,go=!0,t=L3(r,null,s,o),r.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling}else{if(zc(),s===c){r=jo(t,r,o);break e}Vn(t,r,s,o)}r=r.child}return r;case 26:return mh(t,r),t===null?(t=YO(r.type,null,r.pendingProps,null))?r.memoizedState=t:Ut||(t=r.type,o=r.pendingProps,s=oe($a.current),s=Sh(s).createElement(t),s[ar]=r,s[Fr]=o,Gn(s,t,o),he(s),r.stateNode=s):r.memoizedState=YO(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return fe(r),t===null&&Ut&&(s=oe($a.current),c=D(),s=r.stateNode=GO(r.type,r.pendingProps,s,c,!1),Ko||(c=PO(s,r.type,r.pendingProps,c),c!==null&&(Ls(r,0).serverProps=c)),yr=r,go=!0,c=on,ja(r.type)?(SA=c,on=mi(s.firstChild)):on=c),Vn(t,r,r.pendingProps.children,o),mh(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&Ut&&(d=D(),s=dy(r.type,d.ancestorInfo),c=on,(x=!c)||(x=dL(c,r.type,r.pendingProps,go),x!==null?(r.stateNode=x,Ko||(d=PO(x,r.type,r.pendingProps,d),d!==null&&(Ls(r,0).serverProps=d)),yr=r,on=mi(x.firstChild),go=!1,d=!0):d=!1,x=!d),x&&(s&&Iy(r,c),ks(r))),fe(r),c=r.type,d=r.pendingProps,x=t!==null?t.memoizedProps:null,s=d.children,Q0(c,d)?s=null:x!==null&&Q0(c,x)&&(r.flags|=32),r.memoizedState!==null&&(c=Py(t,r,wj,null,null,o),nd._currentValue=c),mh(t,r),Vn(t,r,s,o),r.child;case 6:return t===null&&Ut&&(t=r.pendingProps,o=D(),s=o.ancestorInfo.current,t=s!=null?_p(t,s.tag,o.ancestorInfo.implicitRootScope):!0,o=on,(s=!o)||(s=pL(o,r.pendingProps,go),s!==null?(r.stateNode=s,yr=r,on=null,s=!0):s=!1,s=!s),s&&(t&&Iy(r,o),ks(r))),null;case 13:return CT(t,r,o);case 4:return ge(r,r.stateNode.containerInfo),s=r.pendingProps,t===null?r.child=Bl(r,null,s,o):Vn(t,r,s,o),r.child;case 11:return bT(t,r,r.type,r.pendingProps,o);case 7:return Vn(t,r,r.pendingProps,o),r.child;case 8:return Vn(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,Vn(t,r,r.pendingProps.children,o),r.child;case 10:return s=r.type,c=r.pendingProps,d=c.value,"value"in c||rF||(rF=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Fa(r,s,d),Vn(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."),$s(r),c=Jt(c),V(r),s=Yb(s,c,void 0),w(),r.flags|=1,Vn(t,r,s,o),r.child;case 14:return AT(t,r,r.type,r.pendingProps,o);case 15:return vT(t,r,r.type,r.pendingProps,o);case 19:return RT(t,r,o);case 31:return s=r.pendingProps,o=r.mode,s={mode:s.mode,children:s.children},t===null?(t=gh(s,o),t.ref=r.ref,r.child=t,t.return=r,r=t):(t=Uo(t.child,s),t.ref=r.ref,r.child=t,t.return=r,r=t),r;case 22:return xT(t,r,o);case 24:return $s(r),s=Jt(In),t===null?(c=Ny(),c===null&&(c=Gt,d=Oy(),c.pooledCache=d,qs(d),d!==null&&(c.pooledCacheLanes|=o),c=d),r.memoizedState={parent:s,cache:c},Dy(r),Fa(r,In,c)):((t.lanes&o)!==0&&(By(t,r),Zc(r,null,null,o),Xc()),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),Fa(r,In,s)):(s=d.cache,Fa(r,In,s),s!==c.cache&&Ty(r,[In],o,!0))),Vn(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 Lo(t){t.flags|=4}function FT(t,r){if(r.type!=="stylesheet"||(r.state.loading&Ci)!==du)t.flags&=-16777217;else if(t.flags|=16777216,!WO(r)){if(r=Ii.current,r!==null&&((wt&4194048)===wt?bo!==null:(wt&62914560)!==wt&&(wt&536870912)===0||r!==bo))throw Pf=$b,p3;t.flags|=8192}}function yh(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?xe():536870912,t.lanes|=r,au|=r)}function nf(t,r){if(!Ut)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 Wt(t){var r=t.alternate!==null&&t.alternate.child===t.child,o=0,s=0;if(r)if((t.mode&Yn)!==Xt){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&Yn)!==Xt){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 Fj(t,r,o){var s=r.pendingProps;switch(Sy(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wt(r),null;case 1:return Wt(r),null;case 3:return o=r.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),r.memoizedState.cache!==s&&(r.flags|=2048),Mo(In,r),Ee(r),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(Hc(r)?(SC(),Lo(r)):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,wC())),Wt(r),null;case 26:return o=r.memoizedState,t===null?(Lo(r),o!==null?(Wt(r),FT(r,o)):(Wt(r),r.flags&=-16777217)):o?o!==t.memoizedState?(Lo(r),Wt(r),FT(r,o)):(Wt(r),r.flags&=-16777217):(t.memoizedProps!==s&&Lo(r),Wt(r),r.flags&=-16777217),null;case 27:be(r),o=oe($a.current);var c=r.type;if(t!==null&&r.stateNode!=null)t.memoizedProps!==s&&Lo(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 Wt(r),null}t=D(),Hc(r)?xC(r):(t=GO(c,s,o,t,!0),r.stateNode=t,Lo(r))}return Wt(r),null;case 5:if(be(r),o=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==s&&Lo(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 Wt(r),null}if(c=D(),Hc(r))xC(r);else{switch(t=oe($a.current),dy(o,c.ancestorInfo),c=c.context,t=Sh(t),c){case Vl:t=t.createElementNS(hl,o);break;case Am:t=t.createElementNS(Lh,o);break;default:switch(o){case"svg":t=t.createElementNS(hl,o);break;case"math":t=t.createElementNS(Lh,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]"||zo.call(EF,o)||(EF[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[ar]=r,t[Fr]=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(Gn(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&&Lo(r)}}return Wt(r),r.flags&=-16777217,null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==s&&Lo(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($a.current),o=D(),Hc(r)){t=r.stateNode,o=r.memoizedProps,c=!Ko,s=null;var d=yr;if(d!==null)switch(d.tag){case 3:c&&(c=HO(t,o,s),c!==null&&(Ls(r,0).serverProps=c));break;case 27:case 5:s=d.memoizedProps,c&&(c=HO(t,o,s),c!==null&&(Ls(r,0).serverProps=c))}t[ar]=r,t=!!(t.nodeValue===o||s!==null&&s.suppressHydrationWarning===!0||DO(t.nodeValue,o)),t||ks(r)}else c=o.ancestorInfo.current,c!=null&&_p(s,c.tag,o.ancestorInfo.implicitRootScope),t=Sh(t).createTextNode(s),t[ar]=r,r.stateNode=t}return Wt(r),null;case 13:if(s=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(c=Hc(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[ar]=r,Wt(r),(r.mode&Yn)!==Xt&&s!==null&&(c=r.child,c!==null&&(r.treeBaseDuration-=c.treeBaseDuration))}else SC(),zc(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4,Wt(r),(r.mode&Yn)!==Xt&&s!==null&&(c=r.child,c!==null&&(r.treeBaseDuration-=c.treeBaseDuration));c=!1}else c=wC(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=c),c=!0;if(!c)return r.flags&256?(Po(r),r):(Po(r),null)}return Po(r),(r.flags&128)!==0?(r.lanes=o,(r.mode&Yn)!==Xt&&Yp(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),yh(r,r.updateQueue),Wt(r),(r.mode&Yn)!==Xt&&o&&(t=r.child,t!==null&&(r.treeBaseDuration-=t.treeBaseDuration)),null);case 4:return Ee(r),t===null&&k0(r.stateNode.containerInfo),Wt(r),null;case 10:return Mo(r.type,r),Wt(r),null;case 19:if(L(Tn,r),c=r.memoizedState,c===null)return Wt(r),null;if(s=(r.flags&128)!==0,d=c.rendering,d===null)if(s)nf(c,!1);else{if(an!==Wo||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(d=ph(t),d!==null){for(r.flags|=128,nf(c,!1),t=d.updateQueue,r.updateQueue=t,yh(r,t),r.subtreeFlags=0,t=o,o=r.child;o!==null;)AC(o,t),o=o.sibling;return q(Tn,Tn.current&Ul|$f,r),r.child}t=t.sibling}c.tail!==null&&co()>sm&&(r.flags|=128,s=!0,nf(c,!1),r.lanes=4194304)}else{if(!s)if(t=ph(d),t!==null){if(r.flags|=128,s=!0,t=t.updateQueue,r.updateQueue=t,yh(r,t),nf(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!Ut)return Wt(r),null}else 2*co()-c.renderingStartTime>sm&&o!==536870912&&(r.flags|=128,s=!0,nf(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=co(),t.sibling=null,o=Tn.current,o=s?o&Ul|$f:o&Ul,q(Tn,o,r),t):(Wt(r),null);case 22:case 23:return Po(r),My(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&&(Wt(r),r.subtreeFlags&6&&(r.flags|=8192)):Wt(r),o=r.updateQueue,o!==null&&yh(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(eu,r),null;case 24:return o=null,t!==null&&(o=t.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),Mo(In,r),Wt(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 Nj(t,r){switch(Sy(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,(r.mode&Yn)!==Xt&&Yp(r),r):null;case 3:return Mo(In,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(Po(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.");zc()}return t=r.flags,t&65536?(r.flags=t&-65537|128,(r.mode&Yn)!==Xt&&Yp(r),r):null;case 19:return L(Tn,r),null;case 4:return Ee(r),null;case 10:return Mo(r.type,r),null;case 22:case 23:return Po(r),My(r),t!==null&&L(eu,r),t=r.flags,t&65536?(r.flags=t&-65537|128,(r.mode&Yn)!==Xt&&Yp(r),r):null;case 24:return Mo(In,r),null;case 25:return null;default:return null}}function NT(t,r){switch(Sy(r),r.tag){case 3:Mo(In,r),Ee(r);break;case 26:case 27:case 5:be(r);break;case 4:Ee(r);break;case 13:Po(r);break;case 19:L(Tn,r);break;case 10:Mo(r.type,r);break;case 22:case 23:Po(r),My(r),t!==null&&L(eu,r);break;case 24:Mo(In,r)}}function io(t){return(t.mode&Yn)!==Xt}function DT(t,r){io(t)?(ro(),rf(r,t),no()):rf(r,t)}function E0(t,r,o){io(t)?(ro(),el(o,t,r),no()):el(o,t,r)}function rf(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&Cn)!==Ei?Ye!==null&&typeof Ye.markComponentPassiveEffectMountStarted=="function"&&Ye.markComponentPassiveEffectMountStarted(r):(t&Kn)!==Ei&&Ye!==null&&typeof Ye.markComponentLayoutEffectMountStarted=="function"&&Ye.markComponentLayoutEffectMountStarted(r),s=void 0,(t&br)!==Ei&&(Hl=!0),s=et(r,Xk,o),(t&br)!==Ei&&(Hl=!1),(t&Cn)!==Ei?Ye!==null&&typeof Ye.markComponentPassiveEffectMountStopped=="function"&&Ye.markComponentPassiveEffectMountStopped():(t&Kn)!==Ei&&Ye!==null&&typeof Ye.markComponentLayoutEffectMountStopped=="function"&&Ye.markComponentLayoutEffectMountStopped(),s!==void 0&&typeof s!="function")){var d=void 0;d=(o.tag&Kn)!==0?"useLayoutEffect":(o.tag&br)!==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){qt(r,r.return,T)}}function el(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&Cn)!==Ei?Ye!==null&&typeof Ye.markComponentPassiveEffectUnmountStarted=="function"&&Ye.markComponentPassiveEffectUnmountStarted(r):(t&Kn)!==Ei&&Ye!==null&&typeof Ye.markComponentLayoutEffectUnmountStarted=="function"&&Ye.markComponentLayoutEffectUnmountStarted(r),(t&br)!==Ei&&(Hl=!0),c=r,et(c,Zk,c,o,T),(t&br)!==Ei&&(Hl=!1),(t&Cn)!==Ei?Ye!==null&&typeof Ye.markComponentPassiveEffectUnmountStopped=="function"&&Ye.markComponentPassiveEffectUnmountStopped():(t&Kn)!==Ei&&Ye!==null&&typeof Ye.markComponentLayoutEffectUnmountStopped=="function"&&Ye.markComponentLayoutEffectUnmountStopped())}s=s.next}while(s!==d)}}catch(z){qt(r,r.return,z)}}function BT(t,r){io(t)?(ro(),rf(r,t),no()):rf(r,t)}function w0(t,r,o){io(t)?(ro(),el(o,t,r),no()):el(o,t,r)}function UT(t){var r=t.updateQueue;if(r!==null){var o=t.stateNode;t.type.defaultProps||"ref"in t.memoizedProps||_l||(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,MC,r,o)}catch(s){qt(t,t.return,s)}}}function Dj(t,r,o){return t.getSnapshotBeforeUpdate(r,o)}function Bj(t,r){var o=r.memoizedProps,s=r.memoizedState;r=t.stateNode,t.type.defaultProps||"ref"in t.memoizedProps||_l||(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=Gs(t.type,o,t.elementType===t.type),d=et(t,Dj,r,c,s);o=iF,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){qt(t,t.return,x)}}function MT(t,r,o){o.props=Gs(t.type,t.memoizedProps),o.state=t.memoizedState,io(t)?(ro(),et(t,N3,t,r,o),no()):et(t,N3,t,r,o)}function Uj(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(io(t))try{ro(),t.refCleanup=r(o)}finally{no()}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 of(t,r){try{et(t,Uj,t)}catch(o){qt(t,r,o)}}function oo(t,r){var o=t.ref,s=t.refCleanup;if(o!==null)if(typeof s=="function")try{if(io(t))try{ro(),et(t,s)}finally{no(t)}else et(t,s)}catch(c){qt(t,r,c)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof o=="function")try{if(io(t))try{ro(),et(t,o,null)}finally{no(t)}else et(t,o,null)}catch(c){qt(t,r,c)}else o.current=null}function _T(t,r,o,s){var c=t.memoizedProps,d=c.id,x=c.onCommit;c=c.onRender,r=r===null?"mount":"update",Kh&&(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 Mj(t,r,o,s){var c=t.memoizedProps;t=c.id,c=c.onPostCommit,r=r===null?"mount":"update",Kh&&(r="nested-update"),typeof c=="function"&&c(t,r,s,o)}function PT(t){var r=t.type,o=t.memoizedProps,s=t.stateNode;try{et(t,rL,s,r,o,t)}catch(c){qt(t,t.return,c)}}function S0(t,r,o){try{et(t,iL,t.stateNode,t.type,o,r,t)}catch(s){qt(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 I0(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 C0(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=wh));else if(s!==4&&(s===27&&ja(t.type)&&(o=t.stateNode,r=null),t=t.child,t!==null))for(C0(t,r,o),t=t.sibling;t!==null;)C0(t,r,o),t=t.sibling}function bh(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(bh(t,r,o),t=t.sibling;t!==null;)bh(t,r,o),t=t.sibling}function _j(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=I0(t),bh(t,o,r);break;case 5:o=r.stateNode,r.flags&32&&(kO(o),r.flags&=-33),r=I0(t),bh(t,r,o);break;case 3:case 4:r=r.stateNode.containerInfo,o=I0(t),C0(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 LT(t){var r=t.stateNode,o=t.memoizedProps;try{et(t,yL,t.type,o,r,t)}catch(s){qt(t,t.return,s)}}function Pj(t,r){if(t=t.containerInfo,xA=wm,t=hC(t),my(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(EA={focusedElem:t,selectionRange:o},wm=!1,Dn=r;Dn!==null;)if(r=Dn,t=r.child,(r.subtreeFlags&1024)!==0&&t!==null)t.return=r,Dn=t;else for(;Dn!==null;){switch(t=r=Dn,o=t.alternate,c=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:(c&1024)!==0&&o!==null&&Bj(t,o);break;case 3:if((c&1024)!==0){if(t=t.stateNode.containerInfo,o=t.nodeType,o===9)Y0(t);else if(o===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Y0(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,Dn=t;break}Dn=r.return}}function kT(t,r,o){var s=o.flags;switch(o.tag){case 0:case 11:case 15:$o(t,o),s&4&&DT(o,Kn|wi);break;case 1:if($o(t,o),s&4)if(t=o.stateNode,r===null)o.type.defaultProps||"ref"in o.memoizedProps||_l||(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")),io(o)?(ro(),et(o,Kb,o,t),no()):et(o,Kb,o,t);else{var c=Gs(o.type,r.memoizedProps);r=r.memoizedState,o.type.defaultProps||"ref"in o.memoizedProps||_l||(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")),io(o)?(ro(),et(o,O3,o,t,c,r,t.__reactInternalSnapshotBeforeUpdate),no()):et(o,O3,o,t,c,r,t.__reactInternalSnapshotBeforeUpdate)}s&64&&UT(o),s&512&&of(o,o.return);break;case 3:if(r=_o(),$o(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,MC,s,c)}catch(x){qt(o,o.return,x)}}t.effectDuration+=Qp(r);break;case 27:r===null&&s&4&<(o);case 26:case 5:$o(t,o),r===null&&s&4&&PT(o),s&512&&of(o,o.return);break;case 12:if(s&4){s=_o(),$o(t,o),t=o.stateNode,t.effectDuration+=Yc(s);try{et(o,_T,o,r,Yh,t.effectDuration)}catch(x){qt(o,o.return,x)}}else $o(t,o);break;case 13:$o(t,o),s&4&&HT(t,o),s&64&&(t=o.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(o=Gj.bind(null,o),hL(t,o))));break;case 22:if(s=o.memoizedState!==null||Jo,!s){r=r!==null&&r.memoizedState!==null||dn,c=Jo;var d=dn;Jo=s,(dn=r)&&!d?qo(t,o,(o.subtreeFlags&8772)!==0):$o(t,o),Jo=c,dn=d}break;case 30:break;default:$o(t,o)}}function $T(t){var r=t.alternate;r!==null&&(t.alternate=null,$T(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&ft(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 ko(t,r,o){for(o=o.child;o!==null;)qT(t,r,o),o=o.sibling}function qT(t,r,o){if(or&&typeof or.onCommitFiberUnmount=="function")try{or.onCommitFiberUnmount(dl,o)}catch(d){fo||(fo=!0,console.error("React instrumentation encountered an error: %s",d))}switch(o.tag){case 26:dn||oo(o,r),ko(t,r,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:dn||oo(o,r);var s=An,c=Dr;ja(o.type)&&(An=o.stateNode,Dr=!1),ko(t,r,o),et(o,df,o.stateNode),An=s,Dr=c;break;case 5:dn||oo(o,r);case 6:if(s=An,c=Dr,An=null,ko(t,r,o),An=s,Dr=c,An!==null)if(Dr)try{et(o,sL,An,o.stateNode)}catch(d){qt(o,r,d)}else try{et(o,aL,An,o.stateNode)}catch(d){qt(o,r,d)}break;case 18:An!==null&&(Dr?(t=An,$O(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,o.stateNode),gf(t)):$O(An,o.stateNode));break;case 4:s=An,c=Dr,An=o.stateNode.containerInfo,Dr=!0,ko(t,r,o),An=s,Dr=c;break;case 0:case 11:case 14:case 15:dn||el(br,o,r),dn||E0(o,r,Kn),ko(t,r,o);break;case 1:dn||(oo(o,r),s=o.stateNode,typeof s.componentWillUnmount=="function"&&MT(o,r,s)),ko(t,r,o);break;case 21:ko(t,r,o);break;case 22:dn=(s=dn)||o.memoizedState!==null,ko(t,r,o),dn=s;break;default:ko(t,r,o)}}function HT(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{et(r,gL,t)}catch(o){qt(r,r.return,o)}}function jj(t){switch(t.tag){case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new oF),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new oF),r;default:throw Error("Unexpected Suspense handler tag ("+t.tag+"). This is a bug in React.")}}function T0(t,r){var o=jj(t);r.forEach(function(s){var c=Qj.bind(null,t,s);if(!o.has(s)){if(o.add(s),Pi)if(Pl!==null&&jl!==null)lf(jl,Pl);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");s.then(c,c)}})}function Gr(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)){An=T.stateNode,Dr=!1;break e}break;case 5:An=T.stateNode,Dr=!1;break e;case 3:case 4:An=T.stateNode.containerInfo,Dr=!0;break e}T=T.return}if(An===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");qT(c,d,x),An=null,Dr=!1,c=x,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)zT(r,t),r=r.sibling}function zT(t,r){var o=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Gr(r,t),Qr(t),s&4&&(el(br|wi,t,t.return),rf(br|wi,t),E0(t,t.return,Kn|wi));break;case 1:Gr(r,t),Qr(t),s&512&&(dn||o===null||oo(o,o.return)),s&64&&Jo&&(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=$i;if(Gr(r,t),Qr(t),s&512&&(dn||o===null||oo(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[Af]||c[ar]||c.namespaceURI===hl||c.hasAttribute("itemprop"))&&(c=r.createElement(s),r.head.insertBefore(c,r.querySelector("head > title"))),Gn(c,s,o),c[ar]=t,he(c),s=c;break e;case"link":var d=ZO("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),Gn(c,s,o),r.head.appendChild(c);break;case"meta":if(d=ZO("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),Gn(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[ar]=t,he(c),s=c}t.stateNode=s}else JO(c,t.type,t.stateNode);else t.stateNode=XO(c,s,t.memoizedProps);else r!==s?(r===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):r.count--,s===null?JO(c,t.type,t.stateNode):XO(c,s,t.memoizedProps)):s===null&&t.stateNode!==null&&S0(t,t.memoizedProps,o.memoizedProps);break;case 27:Gr(r,t),Qr(t),s&512&&(dn||o===null||oo(o,o.return)),o!==null&&s&4&&S0(t,t.memoizedProps,o.memoizedProps);break;case 5:if(Gr(r,t),Qr(t),s&512&&(dn||o===null||oo(o,o.return)),t.flags&32){r=t.stateNode;try{et(t,kO,r)}catch(Se){qt(t,t.return,Se)}}s&4&&t.stateNode!=null&&(r=t.memoizedProps,S0(t,r,o!==null?o.memoizedProps:r)),s&1024&&(nA=!0,t.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Gr(r,t),Qr(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,oL,r,o,s)}catch(Se){qt(t,t.return,Se)}}break;case 3:if(c=_o(),vm=null,d=$i,$i=Ih(r.containerInfo),Gr(r,t),$i=d,Qr(t),s&4&&o!==null&&o.memoizedState.isDehydrated)try{et(t,mL,r.containerInfo)}catch(Se){qt(t,t.return,Se)}nA&&(nA=!1,VT(t)),r.effectDuration+=Qp(c);break;case 4:s=$i,$i=Ih(t.stateNode.containerInfo),Gr(r,t),Qr(t),$i=s;break;case 12:s=_o(),Gr(r,t),Qr(t),t.stateNode.effectDuration+=Yc(s);break;case 13:Gr(r,t),Qr(t),t.child.flags&8192&&t.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(uA=co()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,T0(t,s)));break;case 22:c=t.memoizedState!==null;var T=o!==null&&o.memoizedState!==null,z=Jo,Z=dn;if(Jo=z||c,dn=Z||T,Gr(r,t),dn=Z,Jo=z,Qr(t),s&8192)e:for(r=t.stateNode,r._visibility=c?r._visibility&~zh:r._visibility|zh,c&&(o===null||T||Jo||dn||Qs(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,uL,d):et(T,cL,T.stateNode,T.memoizedProps)}catch(Se){qt(T,T.return,Se)}}}else if(r.tag===6){if(o===null){T=r;try{x=T.stateNode,c?et(T,lL,x):et(T,fL,x,T.memoizedProps)}catch(Se){qt(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,T0(t,o))));break;case 19:Gr(r,t),Qr(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,T0(t,s)));break;case 30:break;case 21:break;default:Gr(r,t),Qr(t)}}function Qr(t){var r=t.flags;if(r&2){try{et(t,_j,t)}catch(o){qt(t,t.return,o)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function VT(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;VT(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function $o(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)kT(t,r.alternate,r),r=r.sibling}function GT(t){switch(t.tag){case 0:case 11:case 14:case 15:E0(t,t.return,Kn),Qs(t);break;case 1:oo(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&MT(t,t.return,r),Qs(t);break;case 27:et(t,df,t.stateNode);case 26:case 5:oo(t,t.return),Qs(t);break;case 22:t.memoizedState===null&&Qs(t);break;case 30:Qs(t);break;default:Qs(t)}}function Qs(t){for(t=t.child;t!==null;)GT(t),t=t.sibling}function QT(t,r,o,s){var c=o.flags;switch(o.tag){case 0:case 11:case 15:qo(t,o,s),DT(o,Kn);break;case 1:if(qo(t,o,s),r=o.stateNode,typeof r.componentDidMount=="function"&&et(o,Kb,o,r),r=o.updateQueue,r!==null){t=o.stateNode;try{et(o,Ej,r,t)}catch(d){qt(o,o.return,d)}}s&&c&64&&UT(o),of(o,o.return);break;case 27:LT(o);case 26:case 5:qo(t,o,s),s&&r===null&&c&4&&PT(o),of(o,o.return);break;case 12:if(s&&c&4){c=_o(),qo(t,o,s),s=o.stateNode,s.effectDuration+=Yc(c);try{et(o,_T,o,r,Yh,s.effectDuration)}catch(d){qt(o,o.return,d)}}else qo(t,o,s);break;case 13:qo(t,o,s),s&&c&4&&HT(t,o);break;case 22:o.memoizedState===null&&qo(t,o,s),of(o,o.return);break;case 30:break;default:qo(t,o,s)}}function qo(t,r,o){for(o=o&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;)QT(t,r.alternate,r,o),r=r.sibling}function O0(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&&qs(t),o!=null&&Qc(o))}function R0(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(qs(r),t!=null&&Qc(t))}function ao(t,r,o,s){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)YT(t,r,o,s),r=r.sibling}function YT(t,r,o,s){var c=r.flags;switch(r.tag){case 0:case 11:case 15:ao(t,r,o,s),c&2048&&BT(r,Cn|wi);break;case 1:ao(t,r,o,s);break;case 3:var d=_o();ao(t,r,o,s),c&2048&&(o=null,r.alternate!==null&&(o=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==o&&(qs(r),o!=null&&Qc(o))),t.passiveEffectDuration+=Qp(d);break;case 12:if(c&2048){c=_o(),ao(t,r,o,s),t=r.stateNode,t.passiveEffectDuration+=Yc(c);try{et(r,Mj,r,r.alternate,Yh,t.passiveEffectDuration)}catch(T){qt(r,r.return,T)}}else ao(t,r,o,s);break;case 13:ao(t,r,o,s);break;case 23:break;case 22:d=r.stateNode;var x=r.alternate;r.memoizedState!==null?d._visibility&Go?ao(t,r,o,s):af(t,r):d._visibility&Go?ao(t,r,o,s):(d._visibility|=Go,tl(t,r,o,s,(r.subtreeFlags&10256)!==0)),c&2048&&O0(x,r);break;case 24:ao(t,r,o,s),c&2048&&R0(r.alternate,r);break;default:ao(t,r,o,s)}}function tl(t,r,o,s,c){for(c=c&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;)KT(t,r,o,s,c),r=r.sibling}function KT(t,r,o,s,c){var d=r.flags;switch(r.tag){case 0:case 11:case 15:tl(t,r,o,s,c),BT(r,Cn);break;case 23:break;case 22:var x=r.stateNode;r.memoizedState!==null?x._visibility&Go?tl(t,r,o,s,c):af(t,r):(x._visibility|=Go,tl(t,r,o,s,c)),c&&d&2048&&O0(r.alternate,r);break;case 24:tl(t,r,o,s,c),c&&d&2048&&R0(r.alternate,r);break;default:tl(t,r,o,s,c)}}function af(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:af(o,s),c&2048&&O0(s.alternate,s);break;case 24:af(o,s),c&2048&&R0(s.alternate,s);break;default:af(o,s)}r=r.sibling}}function nl(t){if(t.subtreeFlags&qf)for(t=t.child;t!==null;)XT(t),t=t.sibling}function XT(t){switch(t.tag){case 26:nl(t),t.flags&qf&&t.memoizedState!==null&&xL($i,t.memoizedState,t.memoizedProps);break;case 5:nl(t);break;case 3:case 4:var r=$i;$i=Ih(t.stateNode.containerInfo),nl(t),$i=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=qf,qf=16777216,nl(t),qf=r):nl(t));break;default:nl(t)}}function ZT(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 sf(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];Dn=s,eO(s,t)}ZT(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)JT(t),t=t.sibling}function JT(t){switch(t.tag){case 0:case 11:case 15:sf(t),t.flags&2048&&w0(t,t.return,Cn|wi);break;case 3:var r=_o();sf(t),t.stateNode.passiveEffectDuration+=Qp(r);break;case 12:r=_o(),sf(t),t.stateNode.passiveEffectDuration+=Yc(r);break;case 22:r=t.stateNode,t.memoizedState!==null&&r._visibility&Go&&(t.return===null||t.return.tag!==13)?(r._visibility&=~Go,Ah(t)):sf(t);break;default:sf(t)}}function Ah(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];Dn=s,eO(s,t)}ZT(t)}for(t=t.child;t!==null;)WT(t),t=t.sibling}function WT(t){switch(t.tag){case 0:case 11:case 15:w0(t,t.return,Cn),Ah(t);break;case 22:var r=t.stateNode;r._visibility&Go&&(r._visibility&=~Go,Ah(t));break;default:Ah(t)}}function eO(t,r){for(;Dn!==null;){var o=Dn,s=o;switch(s.tag){case 0:case 11:case 15:w0(s,r,Cn);break;case 23:case 22:s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(s=s.memoizedState.cachePool.pool,s!=null&&qs(s));break;case 24:Qc(s.memoizedState.cache)}if(s=o.child,s!==null)s.return=o,Dn=s;else e:for(o=t;Dn!==null;){s=Dn;var c=s.sibling,d=s.return;if($T(s),s===o){Dn=null;break e}if(c!==null){c.return=d,Dn=c;break e}Dn=d}}}function Lj(){Wk.forEach(function(t){return t()})}function tO(){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 Yr(t){if((Pt&Ar)!==Zr&&wt!==0)return wt&-wt;var r=Fe.T;return r!==null?(r._updatedFibers||(r._updatedFibers=new Set),r._updatedFibers.add(t),t=Ws,t!==0?t:j0()):ot()}function nO(){Wr===0&&(Wr=(wt&536870912)===0||Ut?K():536870912);var t=Ii.current;return t!==null&&(t.flags|=32),Wr}function fn(t,r,o){if(Hl&&console.error("useInsertionEffect must not schedule updates."),pA&&(um=!0),(t===Gt&&(jt===iu||jt===ou)||t.cancelPendingCommit!==null)&&(il(t,0),_a(t,wt,Wr,!1)),ze(t,o),(Pt&Ar)!==0&&t===Gt){if(ho)switch(r.tag){case 0:case 11:case 15:t=xt&&O(xt)||"Unknown",mF.has(t)||(mF.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:hF||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),hF=!0)}}else Pi&&Le(t,r,o),Kj(r),t===Gt&&((Pt&Ar)===Zr&&(Za|=o),an===ru&&_a(t,wt,Wr,!1)),so(t)}function rO(t,r,o){if((Pt&(Ar|qi))!==Zr)throw Error("Should not already be working.");var s=!o&&(r&124)===0&&(r&t.expiredLanes)===0||b(t,r),c=s?$j(t,r):D0(t,r,!0),d=s;do{if(c===Wo){$l&&!s&&_a(t,r,0,!1);break}else{if(o=t.current.alternate,d&&!kj(o)){c=D0(t,r,!1),d=!1;continue}if(c===Ll){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=Yf;var z=c.current.memoizedState.isDehydrated;if(z&&(il(c,T).flags|=256),T=D0(c,T,!1),T!==Ll){if(aA&&!z){c.errorRecoveryDisabledLanes|=d,Za|=d,c=ru;break e}c=vr,vr=x,c!==null&&(vr===null?vr=c:vr.push.apply(vr,c))}c=T}if(d=!1,c!==Ll)continue}}if(c===zf){il(t,0),_a(t,r,0,!0);break}e:{switch(s=t,c){case Wo:case zf:throw Error("Root did not complete. This is a bug in React.");case ru:if((r&4194048)!==r)break;case om:_a(s,r,Wr,!Ka);break e;case Ll:vr=null;break;case rA:case aF:break;default:throw Error("Unknown root exit status.")}if(Fe.actQueue!==null)B0(s,o,r,vr,Kf,am,Wr,Za,au);else{if((r&62914560)===r&&(d=uA+uF-co(),10<d)){if(_a(s,r,Wr,!Ka),g(s,0,!0)!==0)break e;s.timeoutHandle=wF(iO.bind(null,s,o,vr,Kf,am,r,Wr,Za,au,Ka,c,r5,c3,0),d);break e}iO(s,o,vr,Kf,am,r,Wr,Za,au,Ka,c,t5,c3,0)}}}break}while(!0);so(t)}function iO(t,r,o,s,c,d,x,T,z,Z,Se,Ne,we,De){if(t.timeoutHandle=fu,Ne=r.subtreeFlags,(Ne&8192||(Ne&16785408)===16785408)&&(td={stylesheets:null,count:0,unsuspend:vL},XT(r),Ne=EL(),Ne!==null)){t.cancelPendingCommit=Ne(B0.bind(null,t,r,d,o,s,c,x,T,z,Se,n5,we,De)),_a(t,d,x,!Z);return}B0(t,r,d,o,s,c,x,T,z)}function kj(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(!gr(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 _a(t,r,o,s){r&=~sA,r&=~Za,t.suspendedLanes|=r,t.pingedLanes&=~r,s&&(t.warmLanes|=r),s=t.expirationTimes;for(var c=r;0<c;){var d=31-hr(c),x=1<<d;s[d]=-1,c&=~x}o!==0&&le(t,o,r)}function rl(){return(Pt&(Ar|qi))===Zr?(cf(0),!1):!0}function F0(){if(xt!==null){if(jt===Br)var t=xt.return;else t=xt,zp(),$y(t),Dl=null,kf=0,t=xt;for(;t!==null;)NT(t.alternate,t),t=t.return;xt=null}}function il(t,r){var o=t.timeoutHandle;o!==fu&&(t.timeoutHandle=fu,g5(o)),o=t.cancelPendingCommit,o!==null&&(t.cancelPendingCommit=null,o()),F0(),Gt=t,xt=o=Uo(t.current,null),wt=r,jt=Br,Jr=null,Ka=!1,$l=b(t,r),aA=!1,an=Wo,au=Wr=sA=Za=Xa=0,vr=Yf=null,am=!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-hr(s),d=1<<c;r|=t[c],s&=~d}return Ao=r,kp(),r=u3(),1e3<r-s3&&(Fe.recentlyCreatedOwnerStacks=0,s3=r),Li.discardPendingWarnings(),o}function oO(t,r){dt=null,Fe.H=rm,Fe.getCurrentStack=null,ho=!1,Xr=null,r===_f||r===Jh?(r=DC(),jt=Gf):r===p3?(r=DC(),jt=sF):jt=r===Z3?oA:r!==null&&typeof r=="object"&&typeof r.then=="function"?kl:Vf,Jr=r;var o=xt;if(o===null)an=zf,hh(t,Vr(r,t.current));else switch(o.mode&Yn&&Fy(o),w(),jt){case Vf:Ye!==null&&typeof Ye.markComponentErrored=="function"&&Ye.markComponentErrored(o,r,wt);break;case iu:case ou:case Gf:case kl:case Qf:Ye!==null&&typeof Ye.markComponentSuspended=="function"&&Ye.markComponentSuspended(o,r,wt)}}function aO(){var t=Fe.H;return Fe.H=rm,t===null?rm:t}function sO(){var t=Fe.A;return Fe.A=Jk,t}function N0(){an=ru,Ka||(wt&4194048)!==wt&&Ii.current!==null||($l=!0),(Xa&134217727)===0&&(Za&134217727)===0||Gt===null||_a(Gt,wt,Wr,!1)}function D0(t,r,o){var s=Pt;Pt|=Ar;var c=aO(),d=sO();if(Gt!==t||wt!==r){if(Pi){var x=t.memoizedUpdaters;0<x.size&&(lf(t,wt),x.clear()),tt(t,r)}Kf=null,il(t,r)}$(r),r=!1,x=an;e:do try{if(jt!==Br&&xt!==null){var T=xt,z=Jr;switch(jt){case oA:F0(),x=om;break e;case Gf:case iu:case ou:case kl:Ii.current===null&&(r=!0);var Z=jt;if(jt=Br,Jr=null,ol(t,T,z,Z),o&&$l){x=Wo;break e}break;default:Z=jt,jt=Br,Jr=null,ol(t,T,z,Z)}}uO(),x=an;break}catch(Se){oO(t,Se)}while(!0);return r&&t.shellSuspendCounter++,zp(),Pt=s,Fe.H=c,Fe.A=d,Y(),xt===null&&(Gt=null,wt=0,kp()),x}function uO(){for(;xt!==null;)lO(xt)}function $j(t,r){var o=Pt;Pt|=Ar;var s=aO(),c=sO();if(Gt!==t||wt!==r){if(Pi){var d=t.memoizedUpdaters;0<d.size&&(lf(t,wt),d.clear()),tt(t,r)}Kf=null,sm=co()+lF,il(t,r)}else $l=b(t,r);$(r);e:do try{if(jt!==Br&&xt!==null)t:switch(r=xt,d=Jr,jt){case Vf:jt=Br,Jr=null,ol(t,r,d,Vf);break;case iu:case ou:if(FC(d)){jt=Br,Jr=null,cO(r);break}r=function(){jt!==iu&&jt!==ou||Gt!==t||(jt=Qf),so(t)},d.then(r,r);break e;case Gf:jt=Qf;break e;case sF:jt=iA;break e;case Qf:FC(d)?(jt=Br,Jr=null,cO(r)):(jt=Br,Jr=null,ol(t,r,d,Qf));break;case iA:var x=null;switch(xt.tag){case 26:x=xt.memoizedState;case 5:case 27:var T=xt;if(!x||WO(x)){jt=Br,Jr=null;var z=T.sibling;if(z!==null)xt=z;else{var Z=T.return;Z!==null?(xt=Z,vh(Z)):xt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}jt=Br,Jr=null,ol(t,r,d,iA);break;case kl:jt=Br,Jr=null,ol(t,r,d,kl);break;case oA:F0(),an=om;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Fe.actQueue!==null?uO():qj();break}catch(Se){oO(t,Se)}while(!0);return zp(),Fe.H=s,Fe.A=c,Pt=o,xt!==null?(Ye!==null&&typeof Ye.markRenderYielded=="function"&&Ye.markRenderYielded(),Wo):(Y(),Gt=null,wt=0,kp(),an)}function qj(){for(;xt!==null&&!jL();)lO(xt)}function lO(t){var r=t.alternate;(t.mode&Yn)!==Xt?(Ry(t),r=et(t,x0,r,t,Ao),Fy(t)):r=et(t,x0,r,t,Ao),t.memoizedProps=t.pendingProps,r===null?vh(t):xt=r}function cO(t){var r=et(t,Hj,t);t.memoizedProps=t.pendingProps,r===null?vh(t):xt=r}function Hj(t){var r=t.alternate,o=(t.mode&Yn)!==Xt;switch(o&&Ry(t),t.tag){case 15:case 0:r=wT(r,t,t.pendingProps,t.type,void 0,wt);break;case 11:r=wT(r,t,t.pendingProps,t.type.render,t.ref,wt);break;case 5:$y(t);default:NT(r,t),t=xt=AC(t,Ao),r=x0(r,t,Ao)}return o&&Fy(t),r}function ol(t,r,o,s){zp(),$y(r),Dl=null,kf=0;var c=r.return;try{if(Oj(t,c,r,o,wt)){an=zf,hh(t,Vr(o,t.current)),xt=null;return}}catch(d){if(c!==null)throw xt=c,d;an=zf,hh(t,Vr(o,t.current)),xt=null;return}r.flags&32768?(Ut||s===Vf?t=!0:$l||(wt&536870912)!==0?t=!1:(Ka=t=!0,(s===iu||s===ou||s===Gf||s===kl)&&(s=Ii.current,s!==null&&s.tag===13&&(s.flags|=16384))),fO(r,t)):vh(r)}function vh(t){var r=t;do{if((r.flags&32768)!==0){fO(r,Ka);return}var o=r.alternate;if(t=r.return,Ry(r),o=et(r,Fj,o,r,Ao),(r.mode&Yn)!==Xt&&CC(r),o!==null){xt=o;return}if(r=r.sibling,r!==null){xt=r;return}xt=r=t}while(r!==null);an===Wo&&(an=aF)}function fO(t,r){do{var o=Nj(t.alternate,t);if(o!==null){o.flags&=32767,xt=o;return}if((t.mode&Yn)!==Xt){CC(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)){xt=t;return}xt=t=o}while(t!==null);an=om,xt=null}function B0(t,r,o,s,c,d,x,T,z){t.cancelPendingCommit=null;do uf();while(Xn!==su);if(Li.flushLegacyContextWarning(),Li.flushPendingUnsafeLifecycleWarnings(),(Pt&(Ar|qi))!==Zr)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|=_b,ce(t,o,d,x,T,z),t===Gt&&(xt=Gt=null,wt=0),ql=r,Wa=t,es=o,cA=d,fA=c,pF=s,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Yj(fl,function(){return gO(),null})):(t.callbackNode=null,t.callbackPriority=0),Yh=Tl(),s=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||s){s=Fe.T,Fe.T=null,c=_t.p,_t.p=gi,x=Pt,Pt|=qi;try{Pj(t,r,o)}finally{Pt=x,_t.p=c,Fe.T=s}}Xn=cF,dO(),pO(),hO()}}function dO(){if(Xn===cF){Xn=su;var t=Wa,r=ql,o=es,s=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||s){s=Fe.T,Fe.T=null;var c=_t.p;_t.p=gi;var d=Pt;Pt|=qi;try{Pl=o,jl=t,zT(r,t),jl=Pl=null,o=EA;var x=hC(t.containerInfo),T=o.focusedElem,z=o.selectionRange;if(x!==T&&T&&T.ownerDocument&&pC(T.ownerDocument.documentElement,T)){if(z!==null&&my(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,ct=Math.min(z.start,Je),Qt=z.end===void 0?ct:Math.min(z.end,Je);!De.extend&&ct>Qt&&(x=Qt,Qt=ct,ct=x);var Ct=dC(T,ct),ae=dC(T,Qt);if(Ct&&ae&&(De.rangeCount!==1||De.anchorNode!==Ct.node||De.anchorOffset!==Ct.offset||De.focusNode!==ae.node||De.focusOffset!==ae.offset)){var se=Ne.createRange();se.setStart(Ct.node,Ct.offset),De.removeAllRanges(),ct>Qt?(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}}wm=!!xA,EA=xA=null}finally{Pt=d,_t.p=c,Fe.T=s}}t.current=r,Xn=fF}}function pO(){if(Xn===fF){Xn=su;var t=Wa,r=ql,o=es,s=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||s){s=Fe.T,Fe.T=null;var c=_t.p;_t.p=gi;var d=Pt;Pt|=qi;try{Ye!==null&&typeof Ye.markLayoutEffectsStarted=="function"&&Ye.markLayoutEffectsStarted(o),Pl=o,jl=t,kT(t,r.alternate,r),jl=Pl=null,Ye!==null&&typeof Ye.markLayoutEffectsStopped=="function"&&Ye.markLayoutEffectsStopped()}finally{Pt=d,_t.p=c,Fe.T=s}}Xn=dF}}function hO(){if(Xn===i5||Xn===dF){Xn=su,LL();var t=Wa,r=ql,o=es,s=pF,c=(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0;c?Xn=lA:(Xn=su,ql=Wa=null,mO(t,t.pendingLanes),uu=0,Zf=null);var d=t.pendingLanes;if(d===0&&(Ja=null),c||vO(t),c=Ze(o),r=r.stateNode,or&&typeof or.onCommitFiberRoot=="function")try{var x=(r.current.flags&128)===128;switch(c){case gi:var T=hb;break;case po:T=mb;break;case Vo:T=fl;break;case Ph:T=gb;break;default:T=fl}or.onCommitFiberRoot(dl,r,T,x)}catch(Ne){fo||(fo=!0,console.error("React instrumentation encountered an error: %s",Ne))}if(Pi&&t.memoizedUpdaters.clear(),Lj(),s!==null){x=Fe.T,T=_t.p,_t.p=gi,Fe.T=null;try{var z=t.onRecoverableError;for(r=0;r<s.length;r++){var Z=s[r],Se=zj(Z.stack);et(Z.source,z,Z.value,Se)}}finally{Fe.T=x,_t.p=T}}(es&3)!==0&&uf(),so(t),d=t.pendingLanes,(o&4194090)!==0&&(d&42)!==0?(Xh=!0,t===dA?Xf++:(Xf=0,dA=t)):Xf=0,cf(0),Ae()}}function zj(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 mO(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,Qc(r)))}function uf(t){return dO(),pO(),hO(),gO()}function gO(){if(Xn!==lA)return!1;var t=Wa,r=cA;cA=0;var o=Ze(es),s=Vo>o?Vo:o;o=Fe.T;var c=_t.p;try{_t.p=s,Fe.T=null,s=fA,fA=null;var d=Wa,x=es;if(Xn=su,ql=Wa=null,es=0,(Pt&(Ar|qi))!==Zr)throw Error("Cannot flush passive effects while already rendering.");pA=!0,um=!1,Ye!==null&&typeof Ye.markPassiveEffectsStarted=="function"&&Ye.markPassiveEffectsStarted(x);var T=Pt;if(Pt|=qi,JT(d.current),YT(d,d.current,x,s),Ye!==null&&typeof Ye.markPassiveEffectsStopped=="function"&&Ye.markPassiveEffectsStopped(),vO(d),Pt=T,cf(0,!1),um?d===Zf?uu++:(uu=0,Zf=d):uu=0,um=pA=!1,or&&typeof or.onPostCommitFiberRoot=="function")try{or.onPostCommitFiberRoot(dl,d)}catch(Z){fo||(fo=!0,console.error("React instrumentation encountered an error: %s",Z))}var z=d.current.stateNode;return z.effectDuration=0,z.passiveEffectDuration=0,!0}finally{_t.p=c,Fe.T=o,mO(t,r)}}function yO(t,r,o){r=Vr(o,r),r=c0(t.stateNode,r,2),t=Da(t,r,2),t!==null&&(ze(t,2),so(t))}function qt(t,r,o){if(Hl=!1,t.tag===3)yO(t,t,o);else{for(;r!==null;){if(r.tag===3){yO(r,t,o);return}if(r.tag===1){var s=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Ja===null||!Ja.has(s))){t=Vr(o,t),o=f0(2),s=Da(r,o,2),s!==null&&(d0(o,s,r,t),ze(s,2),so(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 U0(t,r,o){var s=t.pingCache;if(s===null){s=t.pingCache=new e5;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)||(aA=!0,c.add(o),s=Vj.bind(null,t,r,o),Pi&&lf(t,o),r.then(s,s))}function Vj(t,r,o){var s=t.pingCache;s!==null&&s.delete(r),t.pingedLanes|=t.suspendedLanes&o,t.warmLanes&=~o,tO()&&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`),Gt===t&&(wt&o)===o&&(an===ru||an===rA&&(wt&62914560)===wt&&co()-uA<uF?(Pt&Ar)===Zr&&il(t,0):sA|=o,au===wt&&(au=0)),so(t)}function bO(t,r){r===0&&(r=xe()),t=Tr(t,r),t!==null&&(ze(t,r),so(t))}function Gj(t){var r=t.memoizedState,o=0;r!==null&&(o=r.retryLane),bO(t,o)}function Qj(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),bO(t,o)}function M0(t,r,o){if((r.subtreeFlags&67117056)!==0)for(r=r.child;r!==null;){var s=t,c=r,d=c.type===Dh;d=o||d,c.tag!==22?c.flags&67108864?d&&et(c,AO,s,c,(c.mode&i3)===Xt):M0(s,c,d):c.memoizedState===null&&(d&&c.flags&8192?et(c,AO,s,c):c.subtreeFlags&67108864&&et(c,M0,s,c,d)),r=r.sibling}}function AO(t,r){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:!0;J(!0);try{GT(r),o&&WT(r),QT(t,r.alternate,r,!1),o&&KT(t,r,0,null,!1,0)}finally{J(!1)}}function vO(t){var r=!0;t.current.mode&(sr|ji)||(r=!1),M0(t,t.current,r)}function xO(t){if((Pt&Ar)===Zr){var r=t.tag;if(r===3||r===1||r===0||r===11||r===14||r===15){if(r=O(t)||"ReactComponent",lm!==null){if(lm.has(r))return;lm.add(r)}else lm=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 lf(t,r){Pi&&t.memoizedUpdaters.forEach(function(o){Le(t,o,r)})}function Yj(t,r){var o=Fe.actQueue;return o!==null?(o.push(r),s5):pb(t,r)}function Kj(t){tO()&&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 so(t){t!==zl&&t.next===null&&(zl===null?cm=zl=t:zl=zl.next=t),fm=!0,Fe.actQueue!==null?mA||(mA=!0,IO()):hA||(hA=!0,IO())}function cf(t,r){if(!gA&&fm){gA=!0;do for(var o=!1,s=cm;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-hr(42|t)+1)-1,d&=c&~(x&~T),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(o=!0,SO(s,d))}else d=wt,d=g(s,s===Gt?d:0,s.cancelPendingCommit!==null||s.timeoutHandle!==fu),(d&3)===0||b(s,d)||(o=!0,SO(s,d));s=s.next}while(o);gA=!1}}function Xj(){_0()}function _0(){fm=mA=hA=!1;var t=0;lu!==0&&(tL()&&(t=lu),lu=0);for(var r=co(),o=null,s=cm;s!==null;){var c=s.next,d=EO(s,r);d===0?(s.next=null,o===null?cm=c:o.next=c,c===null&&(zl=o)):(o=s,(t!==0||(d&3)!==0)&&(fm=!0)),s=c}cf(t)}function EO(t,r){for(var o=t.suspendedLanes,s=t.pingedLanes,c=t.expirationTimes,d=t.pendingLanes&-62914561;0<d;){var x=31-hr(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=Gt,o=wt,o=g(t,t===r?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==fu),s=t.callbackNode,o===0||t===r&&(jt===iu||jt===ou)||t.cancelPendingCommit!==null)return s!==null&&P0(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!==yA)P0(s);else return r;switch(Ze(o)){case gi:case po:o=mb;break;case Vo:o=fl;break;case Ph:o=gb;break;default:o=fl}return s=wO.bind(null,t),Fe.actQueue!==null?(Fe.actQueue.push(s),o=yA):o=pb(o,s),t.callbackPriority=r,t.callbackNode=o,r}return s!==null&&P0(s),t.callbackPriority=2,t.callbackNode=null,2}function wO(t,r){if(Xh=Kh=!1,Xn!==su&&Xn!==lA)return t.callbackNode=null,t.callbackPriority=0,null;var o=t.callbackNode;if(uf()&&t.callbackNode!==o)return null;var s=wt;return s=g(t,t===Gt?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==fu),s===0?null:(rO(t,s,r),EO(t,co()),t.callbackNode!=null&&t.callbackNode===o?wO.bind(null,t):null)}function SO(t,r){if(uf())return null;Kh=Xh,Xh=!1,rO(t,r,!0)}function P0(t){t!==yA&&t!==null&&PL(t)}function IO(){Fe.actQueue!==null&&Fe.actQueue.push(function(){return _0(),null}),y5(function(){(Pt&(Ar|qi))!==Zr?pb(hb,Xj):_0()})}function j0(){return lu===0&&(lu=K()),lu}function CO(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:(me(t,"action"),kc(""+t))}function TO(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 Zj(t,r,o,s,c){if(r==="submit"&&o&&o.stateNode===c){var d=CO((c[Fr]||null).action),x=s.submitter;x&&(r=(r=x[Fr]||null)?CO(r.formAction):x.getAttribute("formAction"),r!==null&&(d=r,x=null));var T=new qh("action","action",null,s,c);t.push({event:T,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(lu!==0){var z=x?TO(c,x):new FormData(c),Z={pending:!0,data:z,method:c.method,action:d};Object.freeze(Z),r0(o,Z,null,z)}}else typeof d=="function"&&(T.preventDefault(),z=x?TO(c,x):new FormData(c),Z={pending:!0,data:z,method:c.method,action:d},Object.freeze(Z),r0(o,Z,d,z))},currentTarget:c}]})}}function xh(t,r,o){t.currentTarget=o;try{r(t)}catch(s){Jb(s)}t.currentTarget=null}function OO(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,xh,d,T,Z):xh(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,xh,d,T,Z):xh(d,T,Z),c=z}}}}function It(t,r){bA.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[yb];o===void 0&&(o=r[yb]=new Set);var s=t+"__bubble";o.has(s)||(RO(r,t,2,!1),o.add(s))}function L0(t,r,o){bA.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),RO(o,t,s,r)}function k0(t){if(!t[dm]){t[dm]=!0,dR.forEach(function(o){o!=="selectionchange"&&(bA.has(o)||L0(o,!1,t),L0(o,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[dm]||(r[dm]=!0,L0("selectionchange",!1,r))}}function RO(t,r,o,s){switch(iR(r)){case gi:var c=TL;break;case po:c=OL;break;default:c=tb}o=c.bind(null,r,o,t),c=void 0,!Ib||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 $0(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=lt(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}tC(function(){var Z=d,Se=py(o),Ne=[];e:{var we=r3.get(t);if(we!==void 0){var De=qh,Je=t;switch(t){case"keypress":if(Pp(o)===0)break e;case"keydown":case"keyup":De=Sk;break;case"focusin":Je="focus",De=Rb;break;case"focusout":Je="blur",De=Rb;break;case"beforeblur":case"afterblur":De=Rb;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=HR;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":De=dk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":De=Tk;break;case WR:case e3:case t3:De=mk;break;case n3:De=Rk;break;case"scroll":case"scrollend":De=ck;break;case"wheel":De=Nk;break;case"copy":case"cut":case"paste":De=yk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":De=VR;break;case"toggle":case"beforetoggle":De=Bk}var ct=(r&4)!==0,Qt=!ct&&(t==="scroll"||t==="scrollend"),Ct=ct?we!==null?we+"Capture":null:we;ct=[];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||Ct===null||(ye=$c(ae,Ct),ye!=null&&ct.push(ff(ae,ye,se))),Qt)break;ae=ae.return}0<ct.length&&(we=new De(we,Je,null,o,Se),Ne.push({event:we,listeners:ct}))}}if((r&7)===0){e:{if(we=t==="mouseover"||t==="pointerover",De=t==="mouseout"||t==="pointerout",we&&o!==xf&&(Je=o.relatedTarget||o.fromElement)&&(lt(Je)||Je[Ha]))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?lt(Je):null,Je!==null&&(Qt=N(Je),ct=Je.tag,Je!==Qt||ct!==5&&ct!==27&&ct!==6)&&(Je=null)):(De=null,Je=Z),De!==Je)){if(ct=HR,ye="onMouseLeave",Ct="onMouseEnter",ae="mouse",(t==="pointerout"||t==="pointerover")&&(ct=VR,ye="onPointerLeave",Ct="onPointerEnter",ae="pointer"),Qt=De==null?we:St(De),se=Je==null?we:St(Je),we=new ct(ye,ae+"leave",De,o,Se),we.target=Qt,we.relatedTarget=se,ye=null,lt(Se)===Z&&(ct=new ct(Ct,ae+"enter",Je,o,Se),ct.target=se,ct.relatedTarget=Qt,ye=ct),Qt=ye,De&&Je)t:{for(ct=De,Ct=Je,ae=0,se=ct;se;se=al(se))ae++;for(se=0,ye=Ct;ye;ye=al(ye))se++;for(;0<ae-se;)ct=al(ct),ae--;for(;0<se-ae;)Ct=al(Ct),se--;for(;ae--;){if(ct===Ct||Ct!==null&&ct===Ct.alternate)break t;ct=al(ct),Ct=al(Ct)}ct=null}else ct=null;De!==null&&FO(Ne,we,De,ct,!1),Je!==null&&Qt!==null&&FO(Ne,Qt,Je,ct,!0)}}e:{if(we=Z?St(Z):window,De=we.nodeName&&we.nodeName.toLowerCase(),De==="select"||De==="input"&&we.type==="file")var Be=uC;else if(aC(we))if(ZR)Be=yj;else{Be=mj;var qe=hj}else De=we.nodeName,!De||De.toLowerCase()!=="input"||we.type!=="checkbox"&&we.type!=="radio"?Z&&Lc(Z.elementType)&&(Be=uC):Be=gj;if(Be&&(Be=Be(t,Z))){sC(Ne,Be,o,Se);break e}qe&&qe(t,we,Z),t==="focusout"&&Z&&we.type==="number"&&Z.memoizedProps.value!=null&&Ra(we,"number",we.value)}switch(qe=Z?St(Z):window,t){case"focusin":(aC(qe)||qe.contentEditable==="true")&&(Al=qe,Nb=Z,Of=null);break;case"focusout":Of=Nb=Al=null;break;case"mousedown":Db=!0;break;case"contextmenu":case"mouseup":case"dragend":Db=!1,mC(Ne,o,Se);break;case"selectionchange":if(Pk)break;case"keydown":case"keyup":mC(Ne,o,Se)}var pt;if(Fb)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 bl?iC(t,o)&&(We="onCompositionEnd"):t==="keydown"&&o.keyCode===GR&&(We="onCompositionStart");We&&(QR&&o.locale!=="ko"&&(bl||We!=="onCompositionStart"?We==="onCompositionEnd"&&bl&&(pt=nC()):(za=Se,Cb="value"in za?za.value:za.textContent,bl=!0)),qe=Eh(Z,We),0<qe.length&&(We=new zR(We,t,null,o,Se),Ne.push({event:We,listeners:qe}),pt?We.data=pt:(pt=oC(o),pt!==null&&(We.data=pt)))),(pt=Mk?cj(t,o):fj(t,o))&&(We=Eh(Z,"onBeforeInput"),0<We.length&&(qe=new Ak("onBeforeInput","beforeinput",null,o,Se),Ne.push({event:qe,listeners:We}),qe.data=pt)),Zj(Ne,t,Z,o,Se)}OO(Ne,r)})}function ff(t,r,o){return{instance:t,listener:r,currentTarget:o}}function Eh(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=$c(t,o),c!=null&&s.unshift(ff(t,c,d)),c=$c(t,r),c!=null&&s.push(ff(t,c,d))),t.tag===3)return s;t=t.return}return[]}function al(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function FO(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=$c(o,d),Z!=null&&x.unshift(ff(o,Z,z))):c||(Z=$c(o,d),Z!=null&&x.push(ff(o,Z,z)))),o=o.return}x.length!==0&&t.push({event:r,listeners:x})}function q0(t,r){aj(t,r),t!=="input"&&t!=="textarea"&&t!=="select"||r==null||r.value!==null||$R||($R=!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:Ys,possibleRegistrationNames:bb};Lc(t)||typeof r.is=="string"||uj(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 Fn(t,r,o,s){r!==o&&(o=Pa(o),Pa(r)!==o&&(s[t]=r))}function Jj(t,r,o){r.forEach(function(s){o[BO(s)]=s==="style"?z0(t):t.getAttribute(s)})}function uo(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 NO(t,r){return t=t.namespaceURI===Lh||t.namespaceURI===hl?t.ownerDocument.createElementNS(t.namespaceURI,t.tagName):t.ownerDocument.createElement(t.tagName),t.innerHTML=r,t.innerHTML}function Pa(t){return P(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(u5,`
|
|
222
|
-
`).replace(l5,"")}function DO(t,r){return r=Pa(r),Pa(t)===r}function wh(){}function Ht(t,r,o,s,c,d){switch(o){case"children":typeof s=="string"?(_p(s,r,!1),r==="body"||r==="textarea"&&s===""||jc(t,s)):(typeof s=="number"||typeof s=="bigint")&&(_p(""+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":JI(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=kc(""+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||mm||(mm=!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||hm||(hm=!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"||pm?r!=="button"||c.type==null||c.type==="submit"||pm?typeof s=="function"&&(c.name==null||bF||(bF=!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||mm||(mm=!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||hm||(hm=!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."))):(pm=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(pm=!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"&&Ht(t,r,"name",c.name,c,null),Ht(t,r,"formEncType",c.formEncType,c,null),Ht(t,r,"formMethod",c.formMethod,c,null),Ht(t,r,"formTarget",c.formTarget,c,null)):(Ht(t,r,"encType",c.encType,c,null),Ht(t,r,"method",c.method,c,null),Ht(t,r,"target",c.target,c,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(o);break}me(s,o),s=kc(""+s),t.setAttribute(o,s);break;case"onClick":s!=null&&(typeof s!="function"&&uo(o,s),t.onclick=wh);break;case"onScroll":s!=null&&(typeof s!="function"&&uo(o,s),It("scroll",t));break;case"onScrollEnd":s!=null&&(typeof s!="function"&&uo(o,s),It("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=kc(""+s),t.setAttributeNS(cu,"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!==""||gm[o]||(gm[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":It("beforetoggle",t),It("toggle",t),st(t,"popover",s);break;case"xlinkActuate":vt(t,cu,"xlink:actuate",s);break;case"xlinkArcrole":vt(t,cu,"xlink:arcrole",s);break;case"xlinkRole":vt(t,cu,"xlink:role",s);break;case"xlinkShow":vt(t,cu,"xlink:show",s);break;case"xlinkTitle":vt(t,cu,"xlink:title",s);break;case"xlinkType":vt(t,cu,"xlink:type",s);break;case"xmlBase":vt(t,AA,"xml:base",s);break;case"xmlLang":vt(t,AA,"xml:lang",s);break;case"xmlSpace":vt(t,AA,"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":AF||s==null||typeof s!="object"||(AF=!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=WI(o),st(t,o,s)):Ys.hasOwnProperty(o)&&s!=null&&typeof s!="function"&&uo(o,s)}}function H0(t,r,o,s,c,d){switch(o){case"style":JI(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"&&uo(o,s),It("scroll",t));break;case"onScrollEnd":s!=null&&(typeof s!="function"&&uo(o,s),It("scrollend",t));break;case"onClick":s!=null&&(typeof s!="function"&&uo(o,s),t.onclick=wh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Ys.hasOwnProperty(o))s!=null&&typeof s!="function"&&uo(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[Fr]||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 Gn(t,r,o){switch(q0(r,o),r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":It("error",t),It("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:Ht(t,r,d,x,o,null)}}c&&Ht(t,r,"srcSet",o.srcSet,o,null),s&&Ht(t,r,"src",o.src,o,null);return;case"input":He("input",o),It("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:Ht(t,r,s,Se,o,null)}}Os(t,o),Rs(t,d,T,z,Z,x,c,!1),Do(t);return;case"select":He("select",o),It("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:Ht(t,r,c,T,o,null)}kI(t,o),r=d,o=x,t.multiple=!!s,r!=null?Ui(t,!!s,r,!1):o!=null&&Ui(t,!!s,o,!0);return;case"textarea":He("textarea",o),It("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:Ht(t,r,x,T,o,null)}$I(t,o),HI(t,s,c,d),Do(t);return;case"option":Fs(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:Ht(t,r,z,s,o,null)}return;case"dialog":It("beforetoggle",t),It("toggle",t),It("cancel",t),It("close",t);break;case"iframe":case"object":It("load",t);break;case"video":case"audio":for(s=0;s<Jf.length;s++)It(Jf[s],t);break;case"image":It("error",t),It("load",t);break;case"details":It("toggle",t);break;case"embed":case"source":case"link":It("error",t),It("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:Ht(t,r,Z,s,o,null)}return;default:if(Lc(r)){for(Se in o)o.hasOwnProperty(Se)&&(s=o[Se],s!==void 0&&H0(t,r,Se,s,o,void 0));return}}for(T in o)o.hasOwnProperty(T)&&(s=o[T],s!=null&&Ht(t,r,T,s,o,null))}function Wj(t,r,o,s){switch(q0(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)||Ht(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&&Ht(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||yF||(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"),yF=!0),!r||s||gF||(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"),gF=!0),Oa(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)||Ht(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&&Ht(t,r,c,d,s,z)}s=T,r=x,o=De,we!=null?Ui(t,!!r,we,!1):!!o!=!!r&&(s!=null?Ui(t,!!r,s,!0):Ui(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:Ht(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&&Ht(t,r,x,c,s,d)}qI(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:Ht(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:Ht(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 ct in o)we=o[ct],o.hasOwnProperty(ct)&&we!=null&&!s.hasOwnProperty(ct)&&Ht(t,r,ct,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:Ht(t,r,Z,we,s,De)}return;default:if(Lc(r)){for(var Qt in o)we=o[Qt],o.hasOwnProperty(Qt)&&we!==void 0&&!s.hasOwnProperty(Qt)&&H0(t,r,Qt,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||H0(t,r,Se,we,s,De);return}}for(var Ct in o)we=o[Ct],o.hasOwnProperty(Ct)&&we!=null&&!s.hasOwnProperty(Ct)&&Ht(t,r,Ct,null,s,we);for(Ne in s)we=s[Ne],De=o[Ne],!s.hasOwnProperty(Ne)||we===De||we==null&&De==null||Ht(t,r,Ne,we,s,De)}function BO(t){switch(t){case"class":return"className";case"for":return"htmlFor";default:return t}}function z0(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 UO(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||LR.has(d)?(ne(x,d),s+=c+d.replace(UR,"-$1").toLowerCase().replace(MR,"-ms-")+":"+(""+x).trim()):s+=c+d.replace(UR,"-$1").toLowerCase().replace(MR,"-ms-")+":"+x+"px",c=";")}s=s||null,r=t.getAttribute("style"),r!==s&&(s=Pa(s),Pa(r)!==s&&(o.style=z0(t)))}}function hi(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}Fn(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"function":case"symbol":return}if(!s)return}else switch(typeof s){case"function":case"symbol":break;default:if(s)return}Fn(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":return}else if(s!=null)switch(typeof s){case"function":case"symbol":break;default:if(me(s,o),t===""+s)return}Fn(r,t,s,d)}function _O(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}Fn(r,t,s,d)}function G0(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=kc(""+s),t===o)return}Fn(r,t,s,d)}function PO(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(Lc(r)){for(var z in o)if(o.hasOwnProperty(z)){var Z=o[z];if(Z!=null){if(Ys.hasOwnProperty(z))typeof Z!="function"&&uo(z,Z);else if(o.suppressHydrationWarning!==!0)switch(z){case"children":typeof Z!="string"&&typeof Z!="number"||Fn("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=NO(t,Z),Fn(z,x,Z,c));continue;case"style":d.delete(z),UO(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),Fn("className",x,Z,c);continue;default:s.context===ta&&r!=="svg"&&r!=="math"?d.delete(z.toLowerCase()):d.delete(z),x=nt(t,z,Z),Fn(z,x,Z,c)}}}}else for(Z in o)if(o.hasOwnProperty(Z)&&(z=o[Z],z!=null)){if(Ys.hasOwnProperty(Z))typeof z!="function"&&uo(Z,z);else if(o.suppressHydrationWarning!==!0)switch(Z){case"children":typeof z!="string"&&typeof z!="number"||Fn("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=NO(t,z),x!==z&&(c[Z]={__html:x}));continue;case"className":hi(t,Z,"class",z,d,c);continue;case"tabIndex":hi(t,Z,"tabindex",z,d,c);continue;case"style":d.delete(Z),UO(t,z,c);continue;case"multiple":d.delete(Z),Fn(Z,t.multiple,z,c);continue;case"muted":d.delete(Z),Fn(Z,t.muted,z,c);continue;case"autoFocus":d.delete("autofocus"),Fn(Z,t.autofocus,z,c);continue;case"data":if(r!=="object"){d.delete(Z),x=t.getAttribute("data"),Fn(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}G0(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===c5){d.delete(Z.toLowerCase()),Fn(Z,"function",z,c);continue}G0(t,Z,Z.toLowerCase(),z,d,c);continue;case"xlinkHref":G0(t,Z,"xlink:href",z,d,c);continue;case"contentEditable":V0(t,Z,"contenteditable",z,d,c);continue;case"spellCheck":V0(t,Z,"spellcheck",z,d,c);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":V0(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":MO(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}Fn(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}Fn(x,T,z,Ne)}continue;case"rowSpan":_O(t,Z,"rowspan",z,d,c);continue;case"start":_O(t,Z,Z,z,d,c);continue;case"xHeight":hi(t,Z,"x-height",z,d,c);continue;case"xlinkActuate":hi(t,Z,"xlink:actuate",z,d,c);continue;case"xlinkArcrole":hi(t,Z,"xlink:arcrole",z,d,c);continue;case"xlinkRole":hi(t,Z,"xlink:role",z,d,c);continue;case"xlinkShow":hi(t,Z,"xlink:show",z,d,c);continue;case"xlinkTitle":hi(t,Z,"xlink:title",z,d,c);continue;case"xlinkType":hi(t,Z,"xlink:type",z,d,c);continue;case"xmlBase":hi(t,Z,"xml:base",z,d,c);continue;case"xmlLang":hi(t,Z,"xml:lang",z,d,c);continue;case"xmlSpace":hi(t,Z,"xml:space",z,d,c);continue;case"inert":z!==""||gm[Z]||(gm[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)),MO(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=WI(Z),x=!1,s.context===ta&&r!=="svg"&&r!=="math"?d.delete(T.toLowerCase()):(Se=Z.toLowerCase(),Se=kh.hasOwnProperty(Se)&&kh[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||Fn(Z,T,z,c)}}}return 0<d.size&&o.suppressHydrationWarning!==!0&&Jj(t,d,c),Object.keys(c).length===0?null:c}function eL(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 Sh(t){return t.nodeType===9?t:t.ownerDocument}function jO(t){switch(t){case hl:return Vl;case Lh:return Am;default:return ta}}function LO(t,r){if(t===ta)switch(r){case"svg":return Vl;case"math":return Am;default:return ta}return t===Vl&&r==="foreignObject"?ta:t}function Q0(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 tL(){var t=window.event;return t&&t.type==="popstate"?t===wA?!1:(wA=t,!0):(wA=null,!1)}function nL(t){setTimeout(function(){throw t})}function rL(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 iL(t,r,o,s){Wj(t,r,o,s),t[Fr]=s}function kO(t){jc(t,"")}function oL(t,r,o){t.nodeValue=o}function ja(t){return t==="head"}function aL(t,r){t.removeChild(r)}function sL(t,r){(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t).removeChild(r)}function $O(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===bm){if(0<s&&8>s){o=s;var x=t.ownerDocument;if(o&d5&&df(x.documentElement),o&p5&&df(x.body),o&h5)for(o=x.head,df(o),x=o.firstChild;x;){var T=x.nextSibling,z=x.nodeName;x[Af]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&x.rel.toLowerCase()==="stylesheet"||o.removeChild(x),x=T}}if(c===0){t.removeChild(d),gf(r);return}c--}else o===ym||o===ea||o===Wf?c++:s=o.charCodeAt(0)-48;else s=0;o=d}while(o);gf(r)}function uL(t){t=t.style,typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function lL(t){t.nodeValue=""}function cL(t,r){r=r[m5],r=r!=null&&r.hasOwnProperty("display")?r.display:null,t.style.display=r==null||typeof r=="boolean"?"":(""+r).trim()}function fL(t,r){t.nodeValue=r}function Y0(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":Y0(o),ft(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}t.removeChild(o)}}function dL(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[Af])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=mi(t.nextSibling),t===null)break}return null}function pL(t,r,o){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!o||(t=mi(t.nextSibling),t===null))return null;return t}function K0(t){return t.data===Wf||t.data===ea&&t.ownerDocument.readyState===xF}function hL(t,r){var o=t.ownerDocument;if(t.data!==ea||o.readyState===xF)r();else{var s=function(){r(),o.removeEventListener("DOMContentLoaded",s)};o.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function mi(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===ym||r===Wf||r===ea||r===vA||r===vF)break;if(r===bm)return null}}return t}function qO(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[BO(d.name)]=d.name.toLowerCase()==="style"?z0(t):d.value}return{type:r,props:o}}return t.nodeType===8?{type:"Suspense",props:{}}:t.nodeValue}function HO(t,r,o){return o===null||o[f5]!==!0?(t.nodeValue===r?t=null:(r=Pa(r),t=Pa(t.nodeValue)===r?null:t.nodeValue),t):null}function zO(t){t=t.nextSibling;for(var r=0;t;){if(t.nodeType===8){var o=t.data;if(o===bm){if(r===0)return mi(t.nextSibling);r--}else o!==ym&&o!==Wf&&o!==ea||r++}t=t.nextSibling}return null}function VO(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var o=t.data;if(o===ym||o===Wf||o===ea){if(r===0)return t;r--}else o===bm&&r++}t=t.previousSibling}return null}function mL(t){gf(t)}function gL(t){gf(t)}function GO(t,r,o,s,c){switch(c&&dy(t,s.ancestorInfo),r=Sh(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 yL(t,r,o,s){if(!o[Ha]&&At(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]);Gn(o,t,r),o[ar]=s,o[Fr]=r}function df(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);ft(t)}function Ih(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}function QO(t,r,o){var s=Gl;if(s&&typeof r=="string"&&r){var c=Hn(r);c='link[rel="'+t+'"][href="'+c+'"]',typeof o=="string"&&(c+='[crossorigin="'+o+'"]'),TF.has(c)||(TF.add(c),t={rel:t,crossOrigin:o,href:r},s.querySelector(c)===null&&(r=s.createElement("link"),Gn(r,"link",t),he(r),s.head.appendChild(r)))}}function YO(t,r,o,s){var c=(c=$a.current)?Ih(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=sl(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=sl(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:du,preload:null}},d.set(t,x),(d=c.querySelector(pf(t)))&&!d._p&&(x.instance=d,x.state.loading=ed|Ci),!Ti.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};Ti.set(t,T),d||bL(c,t,T,x.state)}if(r&&s===null)throw o=`
|
|
223
|
-
|
|
224
|
-
- `+Ch(r)+`
|
|
225
|
-
+ `+Ch(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
|
-
- `+Ch(r)+`
|
|
228
|
-
+ `+Ch(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=ul(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 Ch(t){var r=0,o="<link";return typeof t.rel=="string"?(r++,o+=' rel="'+t.rel+'"'):zo.call(t,"rel")&&(r++,o+=' rel="'+(t.rel===null?"null":"invalid type "+typeof t.rel)+'"'),typeof t.href=="string"?(r++,o+=' href="'+t.href+'"'):zo.call(t,"href")&&(r++,o+=' href="'+(t.href===null?"null":"invalid type "+typeof t.href)+'"'),typeof t.precedence=="string"?(r++,o+=' precedence="'+t.precedence+'"'):zo.call(t,"precedence")&&(r++,o+=" precedence={"+(t.precedence===null?"null":"invalid type "+typeof t.precedence)+"}"),Object.getOwnPropertyNames(t).length>r&&(o+=" ..."),o+" />"}function sl(t){return'href="'+Hn(t)+'"'}function pf(t){return'link[rel="stylesheet"]['+t+"]"}function KO(t){return bt({},t,{"data-precedence":t.precedence,precedence:null})}function bL(t,r,o,s){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?s.loading=ed:(r=t.createElement("link"),s.preload=r,r.addEventListener("load",function(){return s.loading|=ed}),r.addEventListener("error",function(){return s.loading|=IF}),Gn(r,"link",o),he(r),t.head.appendChild(r))}function ul(t){return'[src="'+Hn(t)+'"]'}function hf(t){return"script[async]"+t}function XO(t,r,o){if(r.count++,r.instance===null)switch(r.type){case"style":var s=t.querySelector('style[data-href~="'+Hn(o.href)+'"]');if(s)return r.instance=s,he(s),s;var c=bt({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),he(s),Gn(s,"style",c),Th(s,o.precedence,t),r.instance=s;case"stylesheet":c=sl(o.href);var d=t.querySelector(pf(c));if(d)return r.state.loading|=Ci,r.instance=d,he(d),d;s=KO(o),(c=Ti.get(c))&&X0(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}),Gn(d,"link",s),r.state.loading|=Ci,Th(d,o.precedence,t),r.instance=d;case"script":return d=ul(o.src),(c=t.querySelector(hf(d)))?(r.instance=c,he(c),c):(s=o,(c=Ti.get(d))&&(s=bt({},o),Z0(s,c)),t=t.ownerDocument||t,c=t.createElement("script"),he(c),Gn(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&Ci)===du&&(s=r.instance,r.state.loading|=Ci,Th(s,o.precedence,t));return r.instance}function Th(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 X0(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function Z0(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}function ZO(t,r,o){if(vm===null){var s=new Map,c=vm=new Map;c.set(o,s)}else c=vm,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[Af]||d[ar]||t==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!==hl){var x=d.getAttribute(r)||"";x=t+x;var T=s.get(x);T?T.push(d):s.set(x,[d])}}return s}function JO(t,r,o){t=t.ownerDocument||t,t.head.insertBefore(o,r==="title"?t.querySelector("head > title"):null)}function AL(t,r,o){var s=!o.ancestorInfo.containerTagInScope;if(o.context===Vl||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=eL(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 WO(t){return!(t.type==="stylesheet"&&(t.state.loading&CF)===du)}function vL(){}function xL(t,r,o){if(td===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var s=td;if(r.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(r.state.loading&Ci)===du){if(r.instance===null){var c=sl(o.href),d=t.querySelector(pf(c));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(s.count++,s=Oh.bind(s),t.then(s,s)),r.state.loading|=Ci,r.instance=d,he(d);return}d=t.ownerDocument||t,o=KO(o),(c=Ti.get(c))&&X0(o,c),d=d.createElement("link"),he(d);var x=d;x._p=new Promise(function(T,z){x.onload=T,x.onerror=z}),Gn(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&CF)===du&&(s.count++,r=Oh.bind(s),t.addEventListener("load",r),t.addEventListener("error",r))}}function EL(){if(td===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var t=td;return t.stylesheets&&t.count===0&&J0(t,t.stylesheets),0<t.count?function(r){var o=setTimeout(function(){if(t.stylesheets&&J0(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 Oh(){if(this.count--,this.count===0){if(this.stylesheets)J0(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}function J0(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,xm=new Map,r.forEach(wL,t),xm=null,Oh.call(t))}function wL(t,r){if(!(r.state.loading&Ci)){var o=xm.get(t);if(o)var s=o.get(IA);else{o=new Map,xm.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(IA,s)}c=r.instance,x=c.getAttribute("data-precedence"),d=o.get(x)||s,d===s&&o.set(IA,c),o.set(x,c),this.count++,s=Oh.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|=Ci}}function SL(t,r,o,s,c,d,x,T){for(this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=fu,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 eR(t,r,o,s,c,d,x,T,z,Z,Se,Ne){return t=new SL(t,r,o,x,T,z,Z,Ne),r=$k,d===!0&&(r|=sr|ji),Pi&&(r|=Yn),d=y(3,null,null,r),t.current=d,d.stateNode=t,r=Oy(),qs(r),t.pooledCache=r,qs(r),d.memoizedState={element:s,isDehydrated:o,cache:r},Dy(d),t}function tR(t){return t?(t=Va,t):Va}function W0(t,r,o,s,c,d){if(or&&typeof or.onScheduleFiberRoot=="function")try{or.onScheduleFiberRoot(dl,s,o)}catch(x){fo||(fo=!0,console.error("React instrumentation encountered an error: %s",x))}Ye!==null&&typeof Ye.markRenderScheduled=="function"&&Ye.markRenderScheduled(r),c=tR(c),s.context===null?s.context=c:s.pendingContext=c,ho&&Xr!==null&&!NF&&(NF=!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(Xr)||"Unknown")),s=Na(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=Da(t,s,r),o!==null&&(fn(o,t,r),Kc(o,t,r))}function nR(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<r?o:r}}function eb(t,r){nR(t,r),(t=t.alternate)&&nR(t,r)}function rR(t){if(t.tag===13){var r=Tr(t,67108864);r!==null&&fn(r,t,67108864),eb(t,67108864)}}function IL(){return Xr}function CL(){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 TL(t,r,o,s){var c=Fe.T;Fe.T=null;var d=_t.p;try{_t.p=gi,tb(t,r,o,s)}finally{_t.p=d,Fe.T=c}}function OL(t,r,o,s){var c=Fe.T;Fe.T=null;var d=_t.p;try{_t.p=po,tb(t,r,o,s)}finally{_t.p=d,Fe.T=c}}function tb(t,r,o,s){if(wm){var c=nb(s);if(c===null)$0(t,r,s,Sm,o),oR(t,s);else if(RL(c,t,r,o,s))s.stopPropagation();else if(oR(t,s),r&4&&-1<A5.indexOf(t)){for(;c!==null;){var d=At(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-hr(x);T.entanglements[1]|=z,x&=~z}so(d),(Pt&(Ar|qi))===Zr&&(sm=co()+lF,cf(0))}}break;case 13:T=Tr(d,2),T!==null&&fn(T,d,2),rl(),eb(d,2)}if(d=nb(s),d===null&&$0(t,r,s,Sm,o),d===c)break;c=d}c!==null&&s.stopPropagation()}else $0(t,r,s,null,o)}}function nb(t){return t=py(t),rb(t)}function rb(t){if(Sm=null,t=lt(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 Sm=t,null}function iR(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 gi;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 po;case"message":switch(kL()){case hb:return gi;case mb:return po;case fl:case $L:return Vo;case gb:return Ph;default:return Vo}default:return Vo}}function oR(t,r){switch(t){case"focusin":case"focusout":ts=null;break;case"dragenter":case"dragleave":ns=null;break;case"mouseover":case"mouseout":rs=null;break;case"pointerover":case"pointerout":rd.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":id.delete(r.pointerId)}}function mf(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=At(r),r!==null&&rR(r)),t):(t.eventSystemFlags|=s,r=t.targetContainers,c!==null&&r.indexOf(c)===-1&&r.push(c),t)}function RL(t,r,o,s,c){switch(r){case"focusin":return ts=mf(ts,t,r,o,s,c),!0;case"dragenter":return ns=mf(ns,t,r,o,s,c),!0;case"mouseover":return rs=mf(rs,t,r,o,s,c),!0;case"pointerover":var d=c.pointerId;return rd.set(d,mf(rd.get(d)||null,t,r,o,s,c)),!0;case"gotpointercapture":return d=c.pointerId,id.set(d,mf(id.get(d)||null,t,r,o,s,c)),!0}return!1}function aR(t){var r=lt(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=Yr(o);s=Me(s);var c=Tr(o,s);c!==null&&fn(c,o,s),eb(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 Rh(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var o=nb(t.nativeEvent);if(o===null){o=t.nativeEvent;var s=new o.constructor(o.type,o),c=s;xf!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),xf=c,o.target.dispatchEvent(s),xf===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."),xf=null}else return r=At(o),r!==null&&rR(r),t.blockedOn=o,!1;r.shift()}return!0}function sR(t,r,o){Rh(t)&&o.delete(r)}function FL(){CA=!1,ts!==null&&Rh(ts)&&(ts=null),ns!==null&&Rh(ns)&&(ns=null),rs!==null&&Rh(rs)&&(rs=null),rd.forEach(sR),id.forEach(sR)}function Fh(t,r){t.blockedOn===r&&(t.blockedOn=null,CA||(CA=!0,yn.unstable_scheduleCallback(yn.unstable_NormalPriority,FL)))}function uR(t){Im!==t&&(Im=t,yn.unstable_scheduleCallback(yn.unstable_NormalPriority,function(){Im===t&&(Im=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(rb(s||o)===null)continue;break}var d=At(o);d!==null&&(t.splice(r,3),r-=3,o={pending:!0,data:c,method:o.method,action:s},Object.freeze(o),r0(d,o,s,c))}}))}function gf(t){function r(z){return Fh(z,t)}ts!==null&&Fh(ts,t),ns!==null&&Fh(ns,t),rs!==null&&Fh(rs,t),rd.forEach(r),id.forEach(r);for(var o=0;o<is.length;o++){var s=is[o];s.blockedOn===t&&(s.blockedOn=null)}for(;0<is.length&&(o=is[0],o.blockedOn===null);)aR(o),o.blockedOn===null&&is.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[Fr]||null;if(typeof d=="function")x||uR(o);else if(x){var T=null;if(d&&d.hasAttribute("formAction")){if(c=d,x=d[Fr]||null)T=x.formAction;else if(rb(c)!==null)continue}else T=x.action;typeof T=="function"?o[s+1]=T:(o.splice(s,3),s-=3),uR(o)}}}function ib(t){this._internalRoot=t}function Nh(t){this._internalRoot=t}function lR(t){t[Ha]&&(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 yn=F5(),ob=fg(),NL=W_(),bt=Object.assign,DL=Symbol.for("react.element"),La=Symbol.for("react.transitional.element"),ll=Symbol.for("react.portal"),cl=Symbol.for("react.fragment"),Dh=Symbol.for("react.strict_mode"),ab=Symbol.for("react.profiler"),BL=Symbol.for("react.provider"),sb=Symbol.for("react.consumer"),lo=Symbol.for("react.context"),yf=Symbol.for("react.forward_ref"),ub=Symbol.for("react.suspense"),lb=Symbol.for("react.suspense_list"),Bh=Symbol.for("react.memo"),Kr=Symbol.for("react.lazy"),cb=Symbol.for("react.activity"),UL=Symbol.for("react.memo_cache_sentinel"),cR=Symbol.iterator,ML=Symbol.for("react.client.reference"),Qn=Array.isArray,Fe=ob.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_t=NL.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_L=Object.freeze({pending:!1,data:null,method:null,action:null}),fb=[],db=[],Ho=-1,ka=j(null),bf=j(null),$a=j(null),Uh=j(null),zo=Object.prototype.hasOwnProperty,pb=yn.unstable_scheduleCallback,PL=yn.unstable_cancelCallback,jL=yn.unstable_shouldYield,LL=yn.unstable_requestPaint,co=yn.unstable_now,kL=yn.unstable_getCurrentPriorityLevel,hb=yn.unstable_ImmediatePriority,mb=yn.unstable_UserBlockingPriority,fl=yn.unstable_NormalPriority,$L=yn.unstable_LowPriority,gb=yn.unstable_IdlePriority,qL=yn.log,HL=yn.unstable_setDisableYieldValue,dl=null,or=null,Ye=null,fo=!1,Pi=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",hr=Math.clz32?Math.clz32:de,zL=Math.log,VL=Math.LN2,Mh=256,_h=4194304,gi=2,po=8,Vo=32,Ph=268435456,qa=Math.random().toString(36).slice(2),ar="__reactFiber$"+qa,Fr="__reactProps$"+qa,Ha="__reactContainer$"+qa,yb="__reactEvents$"+qa,GL="__reactListeners$"+qa,QL="__reactHandles$"+qa,fR="__reactResources$"+qa,Af="__reactMarker$"+qa,dR=new Set,Ys={},bb={},YL={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},KL=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]*$"),pR={},hR={},vf=0,mR,gR,yR,bR,AR,vR,xR;Ir.__reactDisabledLog=!0;var Ab,ER,vb=!1,xb=new(typeof WeakMap=="function"?WeakMap:Map),Xr=null,ho=!1,XL=/[\n"\\]/g,wR=!1,SR=!1,IR=!1,CR=!1,TR=!1,OR=!1,RR=["value","defaultValue"],FR=!1,NR=/["'&<>\n\t]|^\s|\s$/,ZL="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(" "),DR="applet caption html table td th marquee object template foreignObject desc title".split(" "),JL=DR.concat(["button"]),WL="dd dt li option optgroup p rp rt".split(" "),BR={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},jh={},Eb={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"]},UR=/([A-Z])/g,MR=/^ms-/,ek=/^(?:webkit|moz|o)[A-Z]/,tk=/^-ms-/,nk=/-(.)/g,_R=/;\s*$/,pl={},wb={},PR=!1,jR=!1,LR=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(" ")),Lh="http://www.w3.org/1998/Math/MathML",hl="http://www.w3.org/2000/svg",rk=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"]]),kh={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"},kR={"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},ml={},ik=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]*$"),ok=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]*$"),$R=!1,mr={},qR=/^on./,ak=/^on[^A-Z]/,sk=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]*$"),uk=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]*$"),lk=/^[\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,xf=null,gl=null,yl=null,Sb=!1,mo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ib=!1;if(mo)try{var Ef={};Object.defineProperty(Ef,"passive",{get:function(){Ib=!0}}),window.addEventListener("test",Ef,Ef),window.removeEventListener("test",Ef,Ef)}catch{Ib=!1}var za=null,Cb=null,$h=null,Ks={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qh=Cr(Ks),wf=bt({},Ks,{view:0,detail:0}),ck=Cr(wf),Tb,Ob,Sf,Hh=bt({},wf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hy,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!==Sf&&(Sf&&t.type==="mousemove"?(Tb=t.screenX-Sf.screenX,Ob=t.screenY-Sf.screenY):Ob=Tb=0,Sf=t),Tb)},movementY:function(t){return"movementY"in t?t.movementY:Ob}}),HR=Cr(Hh),fk=bt({},Hh,{dataTransfer:0}),dk=Cr(fk),pk=bt({},wf,{relatedTarget:0}),Rb=Cr(pk),hk=bt({},Ks,{animationName:0,elapsedTime:0,pseudoElement:0}),mk=Cr(hk),gk=bt({},Ks,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),yk=Cr(gk),bk=bt({},Ks,{data:0}),zR=Cr(bk),Ak=zR,vk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xk={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"},Ek={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},wk=bt({},wf,{key:function(t){if(t.key){var r=vk[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Pp(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?xk[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hy,charCode:function(t){return t.type==="keypress"?Pp(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Pp(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Sk=Cr(wk),Ik=bt({},Hh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),VR=Cr(Ik),Ck=bt({},wf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hy}),Tk=Cr(Ck),Ok=bt({},Ks,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rk=Cr(Ok),Fk=bt({},Hh,{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}),Nk=Cr(Fk),Dk=bt({},Ks,{newState:0,oldState:0}),Bk=Cr(Dk),Uk=[9,13,27,32],GR=229,Fb=mo&&"CompositionEvent"in window,If=null;mo&&"documentMode"in document&&(If=document.documentMode);var Mk=mo&&"TextEvent"in window&&!If,QR=mo&&(!Fb||If&&8<If&&11>=If),YR=32,KR=String.fromCharCode(YR),XR=!1,bl=!1,_k={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},Cf=null,Tf=null,ZR=!1;mo&&(ZR=dj("input")&&(!document.documentMode||9<document.documentMode));var gr=typeof Object.is=="function"?Object.is:bj,Pk=mo&&"documentMode"in document&&11>=document.documentMode,Al=null,Nb=null,Of=null,Db=!1,vl={animationend:Bs("Animation","AnimationEnd"),animationiteration:Bs("Animation","AnimationIteration"),animationstart:Bs("Animation","AnimationStart"),transitionrun:Bs("Transition","TransitionRun"),transitionstart:Bs("Transition","TransitionStart"),transitioncancel:Bs("Transition","TransitionCancel"),transitionend:Bs("Transition","TransitionEnd")},Bb={},JR={};mo&&(JR=document.createElement("div").style,"AnimationEvent"in window||(delete vl.animationend.animation,delete vl.animationiteration.animation,delete vl.animationstart.animation),"TransitionEvent"in window||delete vl.transitionend.transition);var WR=Us("animationend"),e3=Us("animationiteration"),t3=Us("animationstart"),jk=Us("transitionrun"),Lk=Us("transitionstart"),kk=Us("transitioncancel"),n3=Us("transitionend"),r3=new Map,Ub="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(" ");Ub.push("scrollEnd");var Mb=new WeakMap,zh=1,Go=2,yi=[],xl=0,_b=0,Va={};Object.freeze(Va);var bi=null,El=null,Xt=0,$k=1,Yn=2,sr=8,ji=16,i3=64,o3=!1;try{var a3=Object.preventExtensions({})}catch{o3=!0}var wl=[],Sl=0,Vh=null,Gh=0,Ai=[],vi=0,Xs=null,Qo=1,Yo="",yr=null,on=null,Ut=!1,Ko=!1,xi=null,Zs=null,go=!1,Pb=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."),s3=0;if(typeof performance=="object"&&typeof performance.now=="function")var qk=performance,u3=function(){return qk.now()};else{var Hk=Date;u3=function(){return Hk.now()}}var jb=j(null),Lb=j(null),l3={},Qh=null,Il=null,Cl=!1,zk=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()})}},Vk=yn.unstable_scheduleCallback,Gk=yn.unstable_NormalPriority,In={$$typeof:lo,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Tl=yn.unstable_now,c3=-0,Yh=-0,Nr=-1.1,Js=-0,Kh=!1,Xh=!1,Rf=null,kb=0,Ws=0,Ol=null,f3=Fe.S;Fe.S=function(t,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&vj(t,r),f3!==null&&f3(t,r)};var eu=j(null),Li={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Ff=[],Nf=[],Df=[],Bf=[],Uf=[],Mf=[],tu=new Set;Li.recordUnsafeLifecycleWarnings=function(t,r){tu.has(t.type)||(typeof r.componentWillMount=="function"&&r.componentWillMount.__suppressDeprecationWarning!==!0&&Ff.push(t),t.mode&sr&&typeof r.UNSAFE_componentWillMount=="function"&&Nf.push(t),typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Df.push(t),t.mode&sr&&typeof r.UNSAFE_componentWillReceiveProps=="function"&&Bf.push(t),typeof r.componentWillUpdate=="function"&&r.componentWillUpdate.__suppressDeprecationWarning!==!0&&Uf.push(t),t.mode&sr&&typeof r.UNSAFE_componentWillUpdate=="function"&&Mf.push(t))},Li.flushPendingUnsafeLifecycleWarnings=function(){var t=new Set;0<Ff.length&&(Ff.forEach(function(T){t.add(O(T)||"Component"),tu.add(T.type)}),Ff=[]);var r=new Set;0<Nf.length&&(Nf.forEach(function(T){r.add(O(T)||"Component"),tu.add(T.type)}),Nf=[]);var o=new Set;0<Df.length&&(Df.forEach(function(T){o.add(O(T)||"Component"),tu.add(T.type)}),Df=[]);var s=new Set;0<Bf.length&&(Bf.forEach(function(T){s.add(O(T)||"Component"),tu.add(T.type)}),Bf=[]);var c=new Set;0<Uf.length&&(Uf.forEach(function(T){c.add(O(T)||"Component"),tu.add(T.type)}),Uf=[]);var d=new Set;if(0<Mf.length&&(Mf.forEach(function(T){d.add(O(T)||"Component"),tu.add(T.type)}),Mf=[]),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 Zh=new Map,d3=new Set;Li.recordLegacyContextWarning=function(t,r){for(var o=null,s=t;s!==null;)s.mode&sr&&(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."):!d3.has(t.type)&&(s=Zh.get(o),t.type.contextTypes!=null||t.type.childContextTypes!=null||r!==null&&typeof r.getChildContext=="function")&&(s===void 0&&(s=[],Zh.set(o,s)),s.push(t))},Li.flushLegacyContextWarning=function(){Zh.forEach(function(t){if(t.length!==0){var r=t[0],o=new Set;t.forEach(function(c){o.add(O(c)||"Component"),d3.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)})}})},Li.discardPendingWarnings=function(){Ff=[],Nf=[],Df=[],Bf=[],Uf=[],Mf=[],Zh=new Map};var _f=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`."),p3=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."),Jh=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."),$b={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.')}},Pf=null,Wh=!1,Ei=0,wi=1,br=2,Kn=4,Cn=8,h3=0,m3=1,g3=2,qb=3,Ga=!1,y3=!1,Hb=null,zb=!1,Rl=j(null),em=j(0),Fl,b3=new Set,A3=new Set,Vb=new Set,v3=new Set,Qa=0,dt=null,zt=null,bn=null,tm=!1,Nl=!1,nu=!1,nm=0,jf=0,Xo=null,Qk=0,Yk=25,Oe=null,Si=null,Zo=-1,Lf=!1,rm={readContext:Jt,use:Ba,useCallback:cn,useContext:cn,useEffect:cn,useImperativeHandle:cn,useLayoutEffect:cn,useInsertionEffect:cn,useMemo:cn,useReducer:cn,useRef:cn,useState:cn,useDebugValue:cn,useDeferredValue:cn,useTransition:cn,useSyncExternalStore:cn,useId:cn,useHostTransitionStatus:cn,useFormState:cn,useActionState:cn,useOptimistic:cn,useMemoCache:cn,useCacheRefresh:cn},Gb=null,x3=null,Qb=null,E3=null,yo=null,ki=null,im=null;Gb={readContext:function(t){return Jt(t)},use:Ba,useCallback:function(t,r){return Oe="useCallback",Et(),Xu(r),Wy(t,r)},useContext:function(t){return Oe="useContext",Et(),Jt(t)},useEffect:function(t,r){return Oe="useEffect",Et(),Xu(r),rh(t,r)},useImperativeHandle:function(t,r,o){return Oe="useImperativeHandle",Et(),Xu(o),Jy(t,r,o)},useInsertionEffect:function(t,r){Oe="useInsertionEffect",Et(),Xu(r),zs(4,br,t,r)},useLayoutEffect:function(t,r){return Oe="useLayoutEffect",Et(),Xu(r),Zy(t,r)},useMemo:function(t,r){Oe="useMemo",Et(),Xu(r);var o=Fe.H;Fe.H=yo;try{return e0(t,r)}finally{Fe.H=o}},useReducer:function(t,r,o){Oe="useReducer",Et();var s=Fe.H;Fe.H=yo;try{return Hy(t,r,o)}finally{Fe.H=s}},useRef:function(t){return Oe="useRef",Et(),Xy(t)},useState:function(t){Oe="useState",Et();var r=Fe.H;Fe.H=yo;try{return Qy(t)}finally{Fe.H=r}},useDebugValue:function(){Oe="useDebugValue",Et()},useDeferredValue:function(t,r){return Oe="useDeferredValue",Et(),t0(t,r)},useTransition:function(){return Oe="useTransition",Et(),i0()},useSyncExternalStore:function(t,r,o){return Oe="useSyncExternalStore",Et(),Vy(t,r,o)},useId:function(){return Oe="useId",Et(),o0()},useFormState:function(t,r){return Oe="useFormState",Et(),Jp(),Ju(t,r)},useActionState:function(t,r){return Oe="useActionState",Et(),Ju(t,r)},useOptimistic:function(t){return Oe="useOptimistic",Et(),Yy(t)},useHostTransitionStatus:Vs,useMemoCache:Hs,useCacheRefresh:function(){return Oe="useCacheRefresh",Et(),a0()}},x3={readContext:function(t){return Jt(t)},use:Ba,useCallback:function(t,r){return Oe="useCallback",ke(),Wy(t,r)},useContext:function(t){return Oe="useContext",ke(),Jt(t)},useEffect:function(t,r){return Oe="useEffect",ke(),rh(t,r)},useImperativeHandle:function(t,r,o){return Oe="useImperativeHandle",ke(),Jy(t,r,o)},useInsertionEffect:function(t,r){Oe="useInsertionEffect",ke(),zs(4,br,t,r)},useLayoutEffect:function(t,r){return Oe="useLayoutEffect",ke(),Zy(t,r)},useMemo:function(t,r){Oe="useMemo",ke();var o=Fe.H;Fe.H=yo;try{return e0(t,r)}finally{Fe.H=o}},useReducer:function(t,r,o){Oe="useReducer",ke();var s=Fe.H;Fe.H=yo;try{return Hy(t,r,o)}finally{Fe.H=s}},useRef:function(t){return Oe="useRef",ke(),Xy(t)},useState:function(t){Oe="useState",ke();var r=Fe.H;Fe.H=yo;try{return Qy(t)}finally{Fe.H=r}},useDebugValue:function(){Oe="useDebugValue",ke()},useDeferredValue:function(t,r){return Oe="useDeferredValue",ke(),t0(t,r)},useTransition:function(){return Oe="useTransition",ke(),i0()},useSyncExternalStore:function(t,r,o){return Oe="useSyncExternalStore",ke(),Vy(t,r,o)},useId:function(){return Oe="useId",ke(),o0()},useActionState:function(t,r){return Oe="useActionState",ke(),Ju(t,r)},useFormState:function(t,r){return Oe="useFormState",ke(),Jp(),Ju(t,r)},useOptimistic:function(t){return Oe="useOptimistic",ke(),Yy(t)},useHostTransitionStatus:Vs,useMemoCache:Hs,useCacheRefresh:function(){return Oe="useCacheRefresh",ke(),a0()}},Qb={readContext:function(t){return Jt(t)},use:Ba,useCallback:function(t,r){return Oe="useCallback",ke(),oh(t,r)},useContext:function(t){return Oe="useContext",ke(),Jt(t)},useEffect:function(t,r){Oe="useEffect",ke(),Rr(2048,Cn,t,r)},useImperativeHandle:function(t,r,o){return Oe="useImperativeHandle",ke(),ih(t,r,o)},useInsertionEffect:function(t,r){return Oe="useInsertionEffect",ke(),Rr(4,br,t,r)},useLayoutEffect:function(t,r){return Oe="useLayoutEffect",ke(),Rr(4,Kn,t,r)},useMemo:function(t,r){Oe="useMemo",ke();var o=Fe.H;Fe.H=ki;try{return ah(t,r)}finally{Fe.H=o}},useReducer:function(t,r,o){Oe="useReducer",ke();var s=Fe.H;Fe.H=ki;try{return Zu(t,r,o)}finally{Fe.H=s}},useRef:function(){return Oe="useRef",ke(),Lt().memoizedState},useState:function(){Oe="useState",ke();var t=Fe.H;Fe.H=ki;try{return Zu(_i)}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(),Wp(t,r,o)},useId:function(){return Oe="useId",ke(),Lt().memoizedState},useFormState:function(t){return Oe="useFormState",ke(),Jp(),eh(t)},useActionState:function(t){return Oe="useActionState",ke(),eh(t)},useOptimistic:function(t,r){return Oe="useOptimistic",ke(),HC(t,r)},useHostTransitionStatus:Vs,useMemoCache:Hs,useCacheRefresh:function(){return Oe="useCacheRefresh",ke(),Lt().memoizedState}},E3={readContext:function(t){return Jt(t)},use:Ba,useCallback:function(t,r){return Oe="useCallback",ke(),oh(t,r)},useContext:function(t){return Oe="useContext",ke(),Jt(t)},useEffect:function(t,r){Oe="useEffect",ke(),Rr(2048,Cn,t,r)},useImperativeHandle:function(t,r,o){return Oe="useImperativeHandle",ke(),ih(t,r,o)},useInsertionEffect:function(t,r){return Oe="useInsertionEffect",ke(),Rr(4,br,t,r)},useLayoutEffect:function(t,r){return Oe="useLayoutEffect",ke(),Rr(4,Kn,t,r)},useMemo:function(t,r){Oe="useMemo",ke();var o=Fe.H;Fe.H=im;try{return ah(t,r)}finally{Fe.H=o}},useReducer:function(t,r,o){Oe="useReducer",ke();var s=Fe.H;Fe.H=im;try{return Wc(t,r,o)}finally{Fe.H=s}},useRef:function(){return Oe="useRef",ke(),Lt().memoizedState},useState:function(){Oe="useState",ke();var t=Fe.H;Fe.H=im;try{return Wc(_i)}finally{Fe.H=t}},useDebugValue:function(){Oe="useDebugValue",ke()},useDeferredValue:function(t,r){return Oe="useDeferredValue",ke(),eT(t,r)},useTransition:function(){return Oe="useTransition",ke(),aT()},useSyncExternalStore:function(t,r,o){return Oe="useSyncExternalStore",ke(),Wp(t,r,o)},useId:function(){return Oe="useId",ke(),Lt().memoizedState},useFormState:function(t){return Oe="useFormState",ke(),Jp(),th(t)},useActionState:function(t){return Oe="useActionState",ke(),th(t)},useOptimistic:function(t,r){return Oe="useOptimistic",ke(),VC(t,r)},useHostTransitionStatus:Vs,useMemoCache:Hs,useCacheRefresh:function(){return Oe="useCacheRefresh",ke(),Lt().memoizedState}},yo={readContext:function(t){return m(),Jt(t)},use:function(t){return h(),Ba(t)},useCallback:function(t,r){return Oe="useCallback",h(),Et(),Wy(t,r)},useContext:function(t){return Oe="useContext",h(),Et(),Jt(t)},useEffect:function(t,r){return Oe="useEffect",h(),Et(),rh(t,r)},useImperativeHandle:function(t,r,o){return Oe="useImperativeHandle",h(),Et(),Jy(t,r,o)},useInsertionEffect:function(t,r){Oe="useInsertionEffect",h(),Et(),zs(4,br,t,r)},useLayoutEffect:function(t,r){return Oe="useLayoutEffect",h(),Et(),Zy(t,r)},useMemo:function(t,r){Oe="useMemo",h(),Et();var o=Fe.H;Fe.H=yo;try{return e0(t,r)}finally{Fe.H=o}},useReducer:function(t,r,o){Oe="useReducer",h(),Et();var s=Fe.H;Fe.H=yo;try{return Hy(t,r,o)}finally{Fe.H=s}},useRef:function(t){return Oe="useRef",h(),Et(),Xy(t)},useState:function(t){Oe="useState",h(),Et();var r=Fe.H;Fe.H=yo;try{return Qy(t)}finally{Fe.H=r}},useDebugValue:function(){Oe="useDebugValue",h(),Et()},useDeferredValue:function(t,r){return Oe="useDeferredValue",h(),Et(),t0(t,r)},useTransition:function(){return Oe="useTransition",h(),Et(),i0()},useSyncExternalStore:function(t,r,o){return Oe="useSyncExternalStore",h(),Et(),Vy(t,r,o)},useId:function(){return Oe="useId",h(),Et(),o0()},useFormState:function(t,r){return Oe="useFormState",h(),Et(),Ju(t,r)},useActionState:function(t,r){return Oe="useActionState",h(),Et(),Ju(t,r)},useOptimistic:function(t){return Oe="useOptimistic",h(),Et(),Yy(t)},useMemoCache:function(t){return h(),Hs(t)},useHostTransitionStatus:Vs,useCacheRefresh:function(){return Oe="useCacheRefresh",Et(),a0()}},ki={readContext:function(t){return m(),Jt(t)},use:function(t){return h(),Ba(t)},useCallback:function(t,r){return Oe="useCallback",h(),ke(),oh(t,r)},useContext:function(t){return Oe="useContext",h(),ke(),Jt(t)},useEffect:function(t,r){Oe="useEffect",h(),ke(),Rr(2048,Cn,t,r)},useImperativeHandle:function(t,r,o){return Oe="useImperativeHandle",h(),ke(),ih(t,r,o)},useInsertionEffect:function(t,r){return Oe="useInsertionEffect",h(),ke(),Rr(4,br,t,r)},useLayoutEffect:function(t,r){return Oe="useLayoutEffect",h(),ke(),Rr(4,Kn,t,r)},useMemo:function(t,r){Oe="useMemo",h(),ke();var o=Fe.H;Fe.H=ki;try{return ah(t,r)}finally{Fe.H=o}},useReducer:function(t,r,o){Oe="useReducer",h(),ke();var s=Fe.H;Fe.H=ki;try{return Zu(t,r,o)}finally{Fe.H=s}},useRef:function(){return Oe="useRef",h(),ke(),Lt().memoizedState},useState:function(){Oe="useState",h(),ke();var t=Fe.H;Fe.H=ki;try{return Zu(_i)}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(),Wp(t,r,o)},useId:function(){return Oe="useId",h(),ke(),Lt().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(),HC(t,r)},useMemoCache:function(t){return h(),Hs(t)},useHostTransitionStatus:Vs,useCacheRefresh:function(){return Oe="useCacheRefresh",ke(),Lt().memoizedState}},im={readContext:function(t){return m(),Jt(t)},use:function(t){return h(),Ba(t)},useCallback:function(t,r){return Oe="useCallback",h(),ke(),oh(t,r)},useContext:function(t){return Oe="useContext",h(),ke(),Jt(t)},useEffect:function(t,r){Oe="useEffect",h(),ke(),Rr(2048,Cn,t,r)},useImperativeHandle:function(t,r,o){return Oe="useImperativeHandle",h(),ke(),ih(t,r,o)},useInsertionEffect:function(t,r){return Oe="useInsertionEffect",h(),ke(),Rr(4,br,t,r)},useLayoutEffect:function(t,r){return Oe="useLayoutEffect",h(),ke(),Rr(4,Kn,t,r)},useMemo:function(t,r){Oe="useMemo",h(),ke();var o=Fe.H;Fe.H=ki;try{return ah(t,r)}finally{Fe.H=o}},useReducer:function(t,r,o){Oe="useReducer",h(),ke();var s=Fe.H;Fe.H=ki;try{return Wc(t,r,o)}finally{Fe.H=s}},useRef:function(){return Oe="useRef",h(),ke(),Lt().memoizedState},useState:function(){Oe="useState",h(),ke();var t=Fe.H;Fe.H=ki;try{return Wc(_i)}finally{Fe.H=t}},useDebugValue:function(){Oe="useDebugValue",h(),ke()},useDeferredValue:function(t,r){return Oe="useDeferredValue",h(),ke(),eT(t,r)},useTransition:function(){return Oe="useTransition",h(),ke(),aT()},useSyncExternalStore:function(t,r,o){return Oe="useSyncExternalStore",h(),ke(),Wp(t,r,o)},useId:function(){return Oe="useId",h(),ke(),Lt().memoizedState},useFormState:function(t){return Oe="useFormState",h(),ke(),th(t)},useActionState:function(t){return Oe="useActionState",h(),ke(),th(t)},useOptimistic:function(t,r){return Oe="useOptimistic",h(),ke(),VC(t,r)},useMemoCache:function(t){return h(),Hs(t)},useHostTransitionStatus:Vs,useCacheRefresh:function(){return Oe="useCacheRefresh",ke(),Lt().memoizedState}};var w3={react_stack_bottom_frame:function(t,r,o){var s=ho;ho=!0;try{return t(r,o)}finally{ho=s}}},Yb=w3.react_stack_bottom_frame.bind(w3),S3={react_stack_bottom_frame:function(t){var r=ho;ho=!0;try{return t.render()}finally{ho=r}}},I3=S3.react_stack_bottom_frame.bind(S3),C3={react_stack_bottom_frame:function(t,r){try{r.componentDidMount()}catch(o){qt(t,t.return,o)}}},Kb=C3.react_stack_bottom_frame.bind(C3),T3={react_stack_bottom_frame:function(t,r,o,s,c){try{r.componentDidUpdate(o,s,c)}catch(d){qt(t,t.return,d)}}},O3=T3.react_stack_bottom_frame.bind(T3),R3={react_stack_bottom_frame:function(t,r){var o=r.stack;t.componentDidCatch(r.value,{componentStack:o!==null?o:""})}},Kk=R3.react_stack_bottom_frame.bind(R3),F3={react_stack_bottom_frame:function(t,r,o){try{o.componentWillUnmount()}catch(s){qt(t,r,s)}}},N3=F3.react_stack_bottom_frame.bind(F3),D3={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}},Xk=D3.react_stack_bottom_frame.bind(D3),B3={react_stack_bottom_frame:function(t,r,o){try{o()}catch(s){qt(t,r,s)}}},Zk=B3.react_stack_bottom_frame.bind(B3),U3={react_stack_bottom_frame:function(t){var r=t._init;return r(t._payload)}},Ya=U3.react_stack_bottom_frame.bind(U3),Dl=null,kf=0,gt=null,Xb,M3=Xb=!1,_3={},P3={},j3={};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(!_3[c]){_3[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 Bl=cT(!0),L3=cT(!1),Ii=j(null),bo=null,Ul=1,$f=2,Tn=j(0),k3={},$3=new Set,q3=new Set,H3=new Set,z3=new Set,V3=new Set,G3=new Set,Q3=new Set,Y3=new Set,K3=new Set,X3=new Set;Object.freeze(k3);var Zb={enqueueSetState:function(t,r,o){t=t._reactInternals;var s=Yr(t),c=Na(s);c.payload=r,o!=null&&(u0(o),c.callback=o),r=Da(t,c,s),r!==null&&(fn(r,t,s),Kc(r,t,s)),W(t,s)},enqueueReplaceState:function(t,r,o){t=t._reactInternals;var s=Yr(t),c=Na(s);c.tag=m3,c.payload=r,o!=null&&(u0(o),c.callback=o),r=Da(t,c,s),r!==null&&(fn(r,t,s),Kc(r,t,s)),W(t,s)},enqueueForceUpdate:function(t,r){t=t._reactInternals;var o=Yr(t),s=Na(o);s.tag=g3,r!=null&&(u0(r),s.callback=r),r=Da(t,s,o),r!==null&&(fn(r,t,o),Kc(r,t,o)),Ye!==null&&typeof Ye.markForceUpdateScheduled=="function"&&Ye.markForceUpdateScheduled(t,o)}},Jb=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 Rt=="object"&&typeof Rt.emit=="function"){Rt.emit("uncaughtException",t);return}console.error(t)},Ml=null,Wb=null,Z3=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."),Nn=!1,J3={},W3={},eF={},tF={},_l=!1,nF={},eA={},tA={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},rF=!1,iF=null;iF=new Set;var Jo=!1,dn=!1,nA=!1,oF=typeof WeakSet=="function"?WeakSet:Set,Dn=null,Pl=null,jl=null,An=null,Dr=!1,$i=null,qf=8192,Jk={getCacheForType:function(t){var r=Jt(In),o=r.data.get(t);return o===void 0&&(o=t(),r.data.set(t,o)),o},getOwner:function(){return Xr}};if(typeof Symbol=="function"&&Symbol.for){var Hf=Symbol.for;Hf("selector.component"),Hf("selector.has_pseudo_class"),Hf("selector.role"),Hf("selector.test_id"),Hf("selector.text")}var Wk=[],e5=typeof WeakMap=="function"?WeakMap:Map,Zr=0,Ar=2,qi=4,Wo=0,zf=1,Ll=2,rA=3,ru=4,om=6,aF=5,Pt=Zr,Gt=null,xt=null,wt=0,Br=0,Vf=1,iu=2,Gf=3,sF=4,iA=5,kl=6,Qf=7,oA=8,ou=9,jt=Br,Jr=null,Ka=!1,$l=!1,aA=!1,Ao=0,an=Wo,Xa=0,Za=0,sA=0,Wr=0,au=0,Yf=null,vr=null,am=!1,uA=0,uF=300,sm=1/0,lF=500,Kf=null,Ja=null,t5=0,n5=1,r5=2,su=0,cF=1,fF=2,dF=3,i5=4,lA=5,Xn=0,Wa=null,ql=null,es=0,cA=0,fA=null,pF=null,o5=50,Xf=0,dA=null,pA=!1,um=!1,a5=50,uu=0,Zf=null,Hl=!1,lm=null,hF=!1,mF=new Set,s5={},cm=null,zl=null,hA=!1,mA=!1,fm=!1,gA=!1,lu=0,yA={};(function(){for(var t=0;t<Ub.length;t++){var r=Ub[t],o=r.toLowerCase();r=r[0].toUpperCase()+r.slice(1),Mi(o,"on"+r)}Mi(WR,"onAnimationEnd"),Mi(e3,"onAnimationIteration"),Mi(t3,"onAnimationStart"),Mi("dblclick","onDoubleClick"),Mi("focusin","onFocus"),Mi("focusout","onBlur"),Mi(jk,"onTransitionRun"),Mi(Lk,"onTransitionStart"),Mi(kk,"onTransitionCancel"),Mi(n3,"onTransitionEnd")})(),je("onMouseEnter",["mouseout","mouseover"]),je("onMouseLeave",["mouseout","mouseover"]),je("onPointerEnter",["pointerout","pointerover"]),je("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 Jf="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(" "),bA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jf)),dm="_reactListening"+Math.random().toString(36).slice(2),gF=!1,yF=!1,pm=!1,bF=!1,hm=!1,mm=!1,AF=!1,gm={},u5=/\r\n?/g,l5=/\u0000|\uFFFD/g,cu="http://www.w3.org/1999/xlink",AA="http://www.w3.org/XML/1998/namespace",c5="javascript:throw new Error('React form unexpectedly submitted.')",f5="suppressHydrationWarning",ym="$",bm="/$",ea="$?",Wf="$!",d5=1,p5=2,h5=4,vA="F!",vF="F",xF="complete",m5="style",ta=0,Vl=1,Am=2,xA=null,EA=null,EF={dialog:!0,webview:!0},wA=null,wF=typeof setTimeout=="function"?setTimeout:void 0,g5=typeof clearTimeout=="function"?clearTimeout:void 0,fu=-1,SF=typeof Promise=="function"?Promise:void 0,y5=typeof queueMicrotask=="function"?queueMicrotask:typeof SF<"u"?function(t){return SF.resolve(null).then(t).catch(nL)}:wF,SA=null,du=0,ed=1,IF=2,CF=3,Ci=4,Ti=new Map,TF=new Set,na=_t.d;_t.d={f:function(){var t=na.f(),r=rl();return t||r},r:function(t){var r=At(t);r!==null&&r.tag===5&&r.type==="form"?iT(r):na.r(t)},D:function(t){na.D(t),QO("dns-prefetch",t,null)},C:function(t,r){na.C(t,r),QO("preconnect",t,r)},L:function(t,r,o){na.L(t,r,o);var s=Gl;if(s&&t&&r){var c='link[rel="preload"][as="'+Hn(r)+'"]';r==="image"&&o&&o.imageSrcSet?(c+='[imagesrcset="'+Hn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(c+='[imagesizes="'+Hn(o.imageSizes)+'"]')):c+='[href="'+Hn(t)+'"]';var d=c;switch(r){case"style":d=sl(t);break;case"script":d=ul(t)}Ti.has(d)||(t=bt({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:t,as:r},o),Ti.set(d,t),s.querySelector(c)!==null||r==="style"&&s.querySelector(pf(d))||r==="script"&&s.querySelector(hf(d))||(r=s.createElement("link"),Gn(r,"link",t),he(r),s.head.appendChild(r)))}},m:function(t,r){na.m(t,r);var o=Gl;if(o&&t){var s=r&&typeof r.as=="string"?r.as:"script",c='link[rel="modulepreload"][as="'+Hn(s)+'"][href="'+Hn(t)+'"]',d=c;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=ul(t)}if(!Ti.has(d)&&(t=bt({rel:"modulepreload",href:t},r),Ti.set(d,t),o.querySelector(c)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(hf(d)))return}s=o.createElement("link"),Gn(s,"link",t),he(s),o.head.appendChild(s)}}},X:function(t,r){na.X(t,r);var o=Gl;if(o&&t){var s=_(o).hoistableScripts,c=ul(t),d=s.get(c);d||(d=o.querySelector(hf(c)),d||(t=bt({src:t,async:!0},r),(r=Ti.get(c))&&Z0(t,r),d=o.createElement("script"),he(d),Gn(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){na.S(t,r,o);var s=Gl;if(s&&t){var c=_(s).hoistableStyles,d=sl(t);r=r||"default";var x=c.get(d);if(!x){var T={loading:du,preload:null};if(x=s.querySelector(pf(d)))T.loading=ed|Ci;else{t=bt({rel:"stylesheet",href:t,"data-precedence":r},o),(o=Ti.get(d))&&X0(t,o);var z=x=s.createElement("link");he(z),Gn(z,"link",t),z._p=new Promise(function(Z,Se){z.onload=Z,z.onerror=Se}),z.addEventListener("load",function(){T.loading|=ed}),z.addEventListener("error",function(){T.loading|=IF}),T.loading|=Ci,Th(x,r,s)}x={type:"stylesheet",instance:x,count:1,state:T},c.set(d,x)}}},M:function(t,r){na.M(t,r);var o=Gl;if(o&&t){var s=_(o).hoistableScripts,c=ul(t),d=s.get(c);d||(d=o.querySelector(hf(c)),d||(t=bt({src:t,async:!0,type:"module"},r),(r=Ti.get(c))&&Z0(t,r),d=o.createElement("script"),he(d),Gn(d,"link",t),o.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(c,d))}}};var Gl=typeof document>"u"?null:document,vm=null,td=null,IA=null,xm=null,pu=_L,nd={$$typeof:lo,Provider:null,Consumer:null,_currentValue:pu,_currentValue2:pu,_threadCount:0},OF="%c%s%c ",RF="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",FF="",Em=" ",b5=Function.prototype.bind,NF=!1,DF=null,BF=null,UF=null,MF=null,_F=null,PF=null,jF=null,LF=null,kF=null;DF=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=bt({},t.memoizedProps),o=Tr(t,2),o!==null&&fn(o,t,2))},BF=function(t,r,o){r=e(t,r),r!==null&&(o=u(r.memoizedState,o,0),r.memoizedState=o,r.baseState=o,t.memoizedProps=bt({},t.memoizedProps),o=Tr(t,2),o!==null&&fn(o,t,2))},UF=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=bt({},t.memoizedProps),o=Tr(t,2),o!==null&&fn(o,t,2))},MF=function(t,r,o){t.pendingProps=n(t.memoizedProps,r,0,o),t.alternate&&(t.alternate.pendingProps=t.pendingProps),r=Tr(t,2),r!==null&&fn(r,t,2)},_F=function(t,r){t.pendingProps=u(t.memoizedProps,r,0),t.alternate&&(t.alternate.pendingProps=t.pendingProps),r=Tr(t,2),r!==null&&fn(r,t,2)},PF=function(t,r,o){t.pendingProps=i(t.memoizedProps,r,o),t.alternate&&(t.alternate.pendingProps=t.pendingProps),r=Tr(t,2),r!==null&&fn(r,t,2)},jF=function(t){var r=Tr(t,2);r!==null&&fn(r,t,2)},LF=function(t){f=t},kF=function(t){l=t};var wm=!0,Sm=null,CA=!1,ts=null,ns=null,rs=null,rd=new Map,id=new Map,is=[],A5="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(" "),Im=null;if(Nh.prototype.render=ib.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=Yr(s);W0(s,c,o,r,null,null)},Nh.prototype.unmount=ib.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;(Pt&(Ar|qi))!==Zr&&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."),W0(t.current,2,null,t,null,null),rl(),r[Ha]=null}},Nh.prototype.unstable_scheduleHydration=function(t){if(t){var r=ot();t={blockedOn:null,target:t,priority:r};for(var o=0;o<is.length&&r!==0&&r<is[o].priority;o++);is.splice(o,0,t),o===0&&aR(t)}},(function(){var t=ob.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"),_t.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=DF,t.overrideHookStateDeletePath=BF,t.overrideHookStateRenamePath=UF,t.overrideProps=MF,t.overridePropsDeletePath=_F,t.overridePropsRenamePath=PF,t.scheduleUpdate=jF,t.setErrorHandler=LF,t.setSuspenseHandler=kF,t.scheduleRefresh=R,t.scheduleRoot=I,t.setRefreshHandler=U,t.getCurrentFiber=IL,t.getLaneLabelMap=CL,t.injectProfilingHooks=ve,Q(t)})()&&mo&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var $F=window.location.protocol;/^(https?|file):$/.test($F)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+($F==="file:"?`
|
|
273
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}ad.createRoot=function(t,r){if(!F(t))throw Error("Target container is not a DOM element.");lR(t);var o=!1,s="",c=hT,d=mT,x=gT,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===La&&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=eR(t,1,!1,null,null,o,s,c,d,x,T,null),t[Ha]=r.current,k0(t),new ib(r)},ad.hydrateRoot=function(t,r,o){if(!F(t))throw Error("Target container is not a DOM element.");lR(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=hT,x=mT,T=gT,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=eR(t,1,!0,r,o??null,s,c,d,x,T,z,Z),r.context=tR(null),o=r.current,s=Yr(o),s=Me(s),c=Na(s),c.callback=null,Da(o,c,s),o=s,r.current.lanes=o,ze(r,o),so(r),t[Ha]=r.current,k0(t),new Nh(r)},ad.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),ad}var nN;function B5(){return nN||(nN=1,NA.exports=D5()),NA.exports}var U5=B5(),M5=W_();function md({isOpen:e,onClose:n,title:i,children:a,className:u,url:l}){Pe.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-3/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-3/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-3/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-3/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:69,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:56,columnNumber:17},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:73,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:47,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:78,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:41,columnNumber:7},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Modal.tsx",lineNumber:40,columnNumber:5},this);return typeof document<"u"&&document.body?M5.createPortal(p,document.body):p}const Ql=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function _5(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Od(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Iu(e,...n){if(!_5(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 P5(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Od(e.outputLen),Od(e.blockLen)}function rc(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 e6(e,n){Iu(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 ic(...e){for(let n=0;n<e.length;n++)e[n].fill(0)}function MA(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function vo(e,n){return e<<32-n|e>>>n}const L5=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function k5(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function $5(e){for(let n=0;n<e.length;n++)e[n]=k5(e[n]);return e}const rN=L5?e=>e:$5;function q5(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function dg(e){return typeof e=="string"&&(e=q5(e)),Iu(e),e}function H5(...e){let n=0;for(let a=0;a<e.length;a++){const u=e[a];Iu(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 uS=class{};function t6(e){const n=a=>e().update(dg(a)).digest(),i=e();return n.outputLen=i.outputLen,n.blockLen=i.blockLen,n.create=()=>e(),n}function z5(e=32){if(Ql&&typeof Ql.getRandomValues=="function")return Ql.getRandomValues(new Uint8Array(e));if(Ql&&typeof Ql.randomBytes=="function")return Uint8Array.from(Ql.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const lS=BigInt(0),Iw=BigInt(1);function lp(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function cS(e){if(!lp(e))throw new Error("Uint8Array expected")}function Rd(e,n){if(typeof n!="boolean")throw new Error(e+" boolean expected, got "+n)}function Rm(e){const n=e.toString(16);return n.length&1?"0"+n:n}function n6(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?lS:BigInt("0x"+e)}const r6=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",V5=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function Fd(e){if(cS(e),r6)return e.toHex();let n="";for(let i=0;i<e.length;i++)n+=V5[e[i]];return n}const oa={_0:48,_9:57,A:65,F:70,a:97,f:102};function iN(e){if(e>=oa._0&&e<=oa._9)return e-oa._0;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 Zm(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(r6)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=iN(e.charCodeAt(l)),p=iN(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 Su(e){return n6(Fd(e))}function i6(e){return cS(e),n6(Fd(Uint8Array.from(e).reverse()))}function cp(e,n){return Zm(e.toString(16).padStart(n*2,"0"))}function o6(e,n){return cp(e,n).reverse()}function Ri(e,n,i){let a;if(typeof n=="string")try{a=Zm(n)}catch(l){throw new Error(e+" must be hex string or Uint8Array, cause: "+l)}else if(lp(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 Jm(...e){let n=0;for(let a=0;a<e.length;a++){const u=e[a];cS(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 _A=e=>typeof e=="bigint"&&lS<=e;function fS(e,n,i){return _A(e)&&_A(n)&&_A(i)&&n<=e&&e<i}function Jl(e,n,i,a){if(!fS(n,i,a))throw new Error("expected valid "+e+": "+i+" <= n < "+a+", got "+n)}function G5(e){let n;for(n=0;e>lS;e>>=Iw,n+=1);return n}const pg=e=>(Iw<<BigInt(e))-Iw,PA=e=>new Uint8Array(e),oN=e=>Uint8Array.from(e);function Q5(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=PA(e),u=PA(e),l=0;const f=()=>{a.fill(1),u.fill(0),l=0},p=(...A)=>i(u,a,...A),h=(A=PA(0))=>{u=p(oN([0]),A),a=p(),A.length!==0&&(u=p(oN([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 Jm(...y)};return(A,y)=>{f(),h(A);let I;for(;!(I=y(m()));)h();return f(),I}}const Y5={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"||lp(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 hg(e,n,i={}){const a=(u,l,f)=>{const p=Y5[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 aN(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 Mr=BigInt(0),Er=BigInt(1),xu=BigInt(2),K5=BigInt(3),a6=BigInt(4),s6=BigInt(5),u6=BigInt(8);function Ur(e,n){const i=e%n;return i>=Mr?i:n+i}function Oi(e,n,i){let a=e;for(;n-- >Mr;)a*=a,a%=i;return a}function Cw(e,n){if(e===Mr)throw new Error("invert: expected non-zero number");if(n<=Mr)throw new Error("invert: expected positive modulus, got "+n);let i=Ur(e,n),a=n,u=Mr,l=Er;for(;i!==Mr;){const p=a/i,h=a%i,m=u-l*p;a=i,i=h,u=l,l=m}if(a!==Er)throw new Error("invert: does not exist");return Ur(u,n)}function l6(e,n){const i=(e.ORDER+Er)/a6,a=e.pow(n,i);if(!e.eql(e.sqr(a),n))throw new Error("Cannot find square root");return a}function X5(e,n){const i=(e.ORDER-s6)/u6,a=e.mul(n,xu),u=e.pow(a,i),l=e.mul(n,u),f=e.mul(e.mul(l,xu),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 Z5(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let n=e-Er,i=0;for(;n%xu===Mr;)n/=xu,i++;let a=xu;const u=dS(e);for(;sN(u,a)===1;)if(a++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(i===1)return l6;let l=u.pow(a,n);const f=(n+Er)/xu;return function(h,m){if(h.is0(m))return m;if(sN(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=Er<<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 J5(e){return e%a6===K5?l6:e%u6===s6?X5:Z5(e)}const W5=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function e$(e){const n={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},i=W5.reduce((a,u)=>(a[u]="function",a),n);return hg(e,i)}function t$(e,n,i){if(i<Mr)throw new Error("invalid exponent, negatives unsupported");if(i===Mr)return e.ONE;if(i===Er)return n;let a=e.ONE,u=n;for(;i>Mr;)i&Er&&(a=e.mul(a,u)),u=e.sqr(u),i>>=Er;return a}function c6(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 sN(e,n){const i=(e.ORDER-Er)/xu,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 f6(e,n){n!==void 0&&Od(n);const i=n!==void 0?n:e.toString(2).length,a=Math.ceil(i/8);return{nBitLength:i,nByteLength:a}}function dS(e,n,i=!1,a={}){if(e<=Mr)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:u,nByteLength:l}=f6(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:pg(u),ZERO:Mr,ONE:Er,create:h=>Ur(h,e),isValid:h=>{if(typeof h!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof h);return Mr<=h&&h<e},is0:h=>h===Mr,isOdd:h=>(h&Er)===Er,neg:h=>Ur(-h,e),eql:(h,m)=>h===m,sqr:h=>Ur(h*h,e),add:(h,m)=>Ur(h+m,e),sub:(h,m)=>Ur(h-m,e),mul:(h,m)=>Ur(h*m,e),pow:(h,m)=>t$(p,h,m),div:(h,m)=>Ur(h*Cw(m,e),e),sqrN:h=>h*h,addN:(h,m)=>h+m,subN:(h,m)=>h-m,mulN:(h,m)=>h*m,inv:h=>Cw(h,e),sqrt:a.sqrt||(h=>(f||(f=J5(e)),f(p,h))),toBytes:h=>i?o6(h,l):cp(h,l),fromBytes:h=>{if(h.length!==l)throw new Error("Field.fromBytes: expected "+l+" bytes, got "+h.length);return i?i6(h):Su(h)},invertBatch:h=>c6(p,h),cmov:(h,m,v)=>v?m:h});return Object.freeze(p)}function d6(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 p6(e){const n=d6(e);return n+Math.ceil(n/2)}function n$(e,n,i=!1){const a=e.length,u=d6(n),l=p6(n);if(a<16||a<l||a>1024)throw new Error("expected "+l+"-1024 bytes of input, got "+a);const f=i?i6(e):Su(e),p=Ur(f,n-Er)+Er;return i?o6(p,u):cp(p,u)}function r$(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 i$(e,n,i){return e&n^~e&i}function o$(e,n,i){return e&n^e&i^n&i}class a$ extends uS{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=MA(this.buffer)}update(n){rc(this),n=dg(n),Iu(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=MA(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){rc(this),e6(n,this),this.finished=!0;const{buffer:i,view:a,blockLen:u,isLE:l}=this;let{pos:f}=this;i[f++]=128,ic(this.buffer.subarray(f)),this.padOffset>u-f&&(this.process(a,0),f=0);for(let A=f;A<u;A++)i[A]=0;r$(a,u-8,BigInt(this.length*8),l),this.process(a,0);const p=MA(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 as=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Fm=BigInt(2**32-1),uN=BigInt(32);function s$(e,n=!1){return n?{h:Number(e&Fm),l:Number(e>>uN&Fm)}:{h:Number(e>>uN&Fm)|0,l:Number(e&Fm)|0}}function u$(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}=s$(e[l],n);[a[l],u[l]]=[f,p]}return[a,u]}const l$=(e,n,i)=>e<<i|n>>>32-i,c$=(e,n,i)=>n<<i|e>>>32-i,f$=(e,n,i)=>n<<i-32|e>>>64-i,d$=(e,n,i)=>e<<i-32|n>>>64-i,p$=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]),ss=new Uint32Array(64);class h$ extends a${constructor(n=32){super(64,n,8,!1),this.A=as[0]|0,this.B=as[1]|0,this.C=as[2]|0,this.D=as[3]|0,this.E=as[4]|0,this.F=as[5]|0,this.G=as[6]|0,this.H=as[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)ss[A]=n.getUint32(i,!1);for(let A=16;A<64;A++){const y=ss[A-15],I=ss[A-2],R=vo(y,7)^vo(y,18)^y>>>3,U=vo(I,17)^vo(I,19)^I>>>10;ss[A]=U+ss[A-7]+R+ss[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=vo(p,6)^vo(p,11)^vo(p,25),I=v+y+i$(p,h,m)+p$[A]+ss[A]|0,U=(vo(a,2)^vo(a,13)^vo(a,22))+o$(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(){ic(ss)}destroy(){this.set(0,0,0,0,0,0,0,0),ic(this.buffer)}}const h6=t6(()=>new h$);class m6 extends uS{constructor(n,i){super(),this.finished=!1,this.destroyed=!1,P5(n);const a=dg(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),ic(l)}update(n){return rc(this),this.iHash.update(n),this}digestInto(n){rc(this),Iu(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 g6=(e,n,i)=>new m6(e,n).update(i).digest();g6.create=(e,n)=>new m6(e,n);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const lN=BigInt(0),Tw=BigInt(1);function jA(e,n){const i=n.negate();return e?i:n}function y6(e,n){if(!Number.isSafeInteger(e)||e<=0||e>n)throw new Error("invalid window size, expected [1.."+n+"], got W="+e)}function LA(e,n){y6(e,n);const i=Math.ceil(n/e)+1,a=2**(e-1),u=2**e,l=pg(e),f=BigInt(e);return{windows:i,windowSize:a,mask:l,maxNumber:u,shiftBy:f}}function cN(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+=Tw);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 m$(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 g$(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 kA=new WeakMap,b6=new WeakMap;function $A(e){return b6.get(e)||1}function y$(e,n){return{constTimeNegate:jA,hasPrecomputes(i){return $A(i)!==1},unsafeLadder(i,a,u=e.ZERO){let l=i;for(;a>lN;)a&Tw&&(u=u.add(l)),l=l.double(),a>>=Tw;return u},precomputeWindow(i,a){const{windows:u,windowSize:l}=LA(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=LA(i,n);for(let h=0;h<p.windows;h++){const{nextN:m,offset:v,isZero:A,isNeg:y,isNegF:I,offsetF:R}=cN(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=LA(i,n);for(let p=0;p<f.windows&&u!==lN;p++){const{nextN:h,offset:m,isZero:v,isNeg:A}=cN(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=kA.get(a);return l||(l=this.precomputeWindow(a,i),i!==1&&kA.set(a,u(l))),l},wNAFCached(i,a,u){const l=$A(i);return this.wNAF(l,this.getPrecomputes(l,i,u),a)},wNAFCachedUnsafe(i,a,u,l){const f=$A(i);return f===1?this.unsafeLadder(i,a,l):this.wNAFUnsafe(f,this.getPrecomputes(f,i,u),a,l)},setWindowSize(i,a){y6(a,n),b6.set(i,a),kA.delete(i)}}}function b$(e,n,i,a){m$(i,e),g$(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=G5(BigInt(u));let h=1;p>12?h=p-3:p>4?h=p-2:p>0&&(h=2);const m=pg(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 A6(e){return e$(e.Fp),hg(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...f6(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function fN(e){e.lowS!==void 0&&Rd("lowS",e.lowS),e.prehash!==void 0&&Rd("prehash",e.prehash)}function A$(e){const n=A6(e);hg(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 v$ extends Error{constructor(n=""){super(n)}}const la={Err:v$,_tlv:{encode:(e,n)=>{const{Err:i}=la;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=Rm(a);if(u.length/2&128)throw new i("tlv.encode: long form length too big");const l=a>127?Rm(u.length/2|128):"";return Rm(e)+l+u+n},decode(e,n){const{Err:i}=la;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}=la;if(e<da)throw new n("integer: negative integers are not allowed");let i=Rm(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}=la;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 Su(e)}},toSig(e){const{Err:n,_int:i,_tlv:a}=la,u=Ri("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}=la,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 qA(e,n){return Fd(cp(e,n))}const da=BigInt(0),Un=BigInt(1);BigInt(2);const HA=BigInt(3),x$=BigInt(4);function E$(e){const n=A$(e),{Fp:i}=n,a=dS(n.n,n.nBitLength),u=n.toBytes||((M,H,k)=>{const X=H.toAffine();return Jm(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,HA),x$),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 fS(M,Un,n.n)}function A(M){const{allowedPrivateKeyLengths:H,nByteLength:k,wrapPrivateKey:X,n:re}=n;if(H&&typeof M!="bigint"){if(lp(M)&&(M=Fd(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:Su(Ri("private key",M,k))}catch{throw new Error("invalid private key, expected hex or "+k+" bytes, got "+typeof M)}return X&&(ie=Ur(ie,re)),Jl("private key",ie,Un,re),ie}function y(M){if(!(M instanceof U))throw new Error("ProjectivePoint expected")}const I=aN((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),j=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:j}}),R=aN(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=c6(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(Ri("pointHex",H)));return k.assertValidity(),k}static fromPrivateKey(H){return U.BASE.multiply(A(H))}static msm(H,k){return b$(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:j}=H,L=i.eql(i.mul(k,j),i.mul(ie,re)),q=i.eql(i.mul(X,j),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,HA),{px:re,py:ie,pz:O}=this;let j=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),j=i.mul(H,q),L=i.mul(X,Ee),L=i.add(j,L),j=i.sub(ge,L),L=i.add(ge,L),L=i.mul(j,L),j=i.mul(D,j),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),j=i.sub(j,oe),q=i.mul(Ee,ge),q=i.add(q,q),q=i.add(q,q),new U(j,L,q)}add(H){y(H);const{px:k,py:X,pz:re}=this,{px:ie,py:O,pz:j}=H;let L=i.ZERO,q=i.ZERO,oe=i.ZERO;const ge=n.a,Ee=i.mul(n.b,HA);let D=i.mul(k,ie),fe=i.mul(X,O),be=i.mul(re,j),te=i.add(k,X),P=i.add(ie,O);te=i.mul(te,P),P=i.add(D,fe),te=i.sub(te,P),P=i.add(k,re);let ue=i.add(ie,j);return P=i.mul(P,ue),ue=i.add(D,be),P=i.sub(P,ue),ue=i.add(X,re),L=i.add(O,j),ue=i.mul(ue,L),L=i.add(fe,be),ue=i.sub(ue,L),oe=i.mul(ge,P),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),P=i.mul(Ee,P),fe=i.add(fe,be),be=i.sub(D,be),be=i.mul(ge,be),P=i.add(P,be),D=i.mul(fe,P),q=i.add(q,D),D=i.mul(ue,P),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;Jl("scalar",H,da,X);const re=U.ZERO;if(H===da)return re;if(this.is0()||H===Un)return this;if(!k||B.hasPrecomputes(this))return B.wNAFCachedUnsafe(this,H,U.normalizeZ);let{k1neg:ie,k1:O,k2neg:j,k2:L}=k.splitScalar(H),q=re,oe=re,ge=this;for(;O>da||L>da;)O&Un&&(q=q.add(ge)),L&Un&&(oe=oe.add(ge)),ge=ge.double(),O>>=Un,L>>=Un;return ie&&(q=q.negate()),j&&(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;Jl("scalar",H,Un,X);let re,ie;if(k){const{k1neg:O,k1:j,k2neg:L,k2:q}=k.splitScalar(H);let{p:oe,f:ge}=this.wNAF(j),{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:j}=this.wNAF(H);re=O,ie=j}return U.normalizeZ([re,ie])[0]}multiplyAndAddUnsafe(H,k,X){const re=U.BASE,ie=(j,L)=>L===da||L===Un||!j.equals(re)?j.multiplyUnsafe(L):j.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===Un)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===Un?this:k?k(U,this):this.multiplyUnsafe(n.h)}toRawBytes(H=!0){return Rd("isCompressed",H),this.assertValidity(),u(U,this,H)}toHex(H=!0){return Rd("isCompressed",H),Fd(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=y$(U,F?Math.ceil(N/2):N);return{CURVE:n,ProjectivePoint:U,normPrivateKeyToScalar:A,weierstrassEquation:f,isWithinCurveOrder:v}}function w$(e){const n=A6(e);return hg(n,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...n})}function S$(e){const n=w$(e),{Fp:i,n:a,nByteLength:u,nBitLength:l}=n,f=i.BYTES+1,p=2*i.BYTES+1;function h(Ee){return Ur(Ee,a)}function m(Ee){return Cw(Ee,a)}const{ProjectivePoint:v,normPrivateKeyToScalar:A,weierstrassEquation:y,isWithinCurveOrder:I}=E$({...n,toBytes(Ee,D,fe){const be=D.toAffine(),te=i.toBytes(be.x),P=Jm;return Rd("isCompressed",fe),fe?P(Uint8Array.from([D.hasEvenY()?2:3]),te):P(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=Su(be);if(!fS(te,Un,i.ORDER))throw new Error("Point is not on curve");const P=y(te);let ue;try{ue=i.sqrt(P)}catch(G){const Q=G instanceof Error?": "+G.message:"";throw new Error("Point is not on curve"+Q)}const me=(ue&Un)===Un;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)),P=i.fromBytes(be.subarray(i.BYTES,2*i.BYTES));return{x:te,y:P}}else{const te=f,P=p;throw new Error("invalid Point, expected length of "+te+", or uncompressed "+P+", got "+D)}}});function R(Ee){const D=a>>Un;return Ee>D}function U(Ee){return R(Ee)?h(-Ee):Ee}const F=(Ee,D,fe)=>Su(Ee.slice(D,fe));class N{constructor(D,fe,be){Jl("r",D,Un,a),Jl("s",fe,Un,a),this.r=D,this.s=fe,be!=null&&(this.recovery=be),Object.freeze(this)}static fromCompact(D){const fe=u;return D=Ri("compactSignature",D,fe*2),new N(F(D,0,fe),F(D,fe,2*fe))}static fromDER(D){const{r:fe,s:be}=la.toSig(Ri("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,P=re(Ri("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+qA(ue,i.BYTES)),G=m(ue),Q=h(-P*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 Zm(this.toDERHex())}toDERHex(){return la.hexFromSig(this)}toCompactRawBytes(){return Zm(this.toCompactHex())}toCompactHex(){const D=u;return qA(this.r,D)+qA(this.s,D)}}const B={isValidPrivateKey(Ee){try{return A(Ee),!0}catch{return!1}},normPrivateKeyToScalar:A,randomPrivateKey:()=>{const Ee=p6(n.n);return n$(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=Ri("key",Ee).length,be=i.BYTES,te=be+1,P=2*be+1;if(!(n.allowedPrivateKeyLengths||u===te))return fe===te||fe===P}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=Su(Ee),fe=Ee.length*8-l;return fe>0?D>>BigInt(fe):D},re=n.bits2int_modN||function(Ee){return h(X(Ee))},ie=pg(l);function O(Ee){return Jl("num < 2^"+l,Ee,da,ie),cp(Ee,u)}function j(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:P,prehash:ue,extraEntropy:me}=fe;P==null&&(P=!0),Ee=Ri("msgHash",Ee),fN(fe),ue&&(Ee=Ri("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(Ri("extraEntropy",V))}const J=Jm(...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===da)return;const de=h($*h(ve+W*G));if(de===da)return;let pe=(Y.x===W?0:2)|Number(Y.y&Un),E=de;return P&&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}=j(Ee,D,fe),P=n;return Q5(P.hash.outputLen,P.nByteLength,P.hmac)(be,te)}v.BASE._setWindowSize(8);function ge(Ee,D,fe,be=q){var pe;const te=Ee;D=Ri("msgHash",D),fe=Ri("publicKey",fe);const{lowS:P,prehash:ue,format:me}=be;if(fN(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"||lp(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 la.Err))throw E}!Q&&me!=="der"&&(Q=N.fromCompact(te))}J=v.fromHex(fe)}catch{return!1}if(!Q||P&&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 I$(e){return{hash:e,hmac:(n,...i)=>g6(e,n,H5(...i)),randomBytes:z5}}function C$(e,n){const i=a=>S$({...e,...I$(a)});return{...i(n),create:i}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const v6=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),dN=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),T$=BigInt(0),O$=BigInt(1),Ow=BigInt(2),pN=(e,n)=>(e+n/Ow)/n;function R$(e){const n=v6,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=Oi(v,i,n)*v%n,y=Oi(A,i,n)*v%n,I=Oi(y,Ow,n)*m%n,R=Oi(I,u,n)*I%n,U=Oi(R,l,n)*R%n,F=Oi(U,p,n)*U%n,N=Oi(F,h,n)*F%n,B=Oi(N,p,n)*U%n,M=Oi(B,i,n)*v%n,H=Oi(M,f,n)*R%n,k=Oi(H,a,n)*m%n,X=Oi(k,Ow,n);if(!Rw.eql(Rw.sqr(X),e))throw new Error("Cannot find square root");return X}const Rw=dS(v6,void 0,void 0,{sqrt:R$}),fp=C$({a:T$,b:BigInt(7),Fp:Rw,n:dN,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const n=dN,i=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),a=-O$*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),u=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),l=i,f=BigInt("0x100000000000000000000000000000000"),p=pN(l*e,n),h=pN(-a*e,n);let m=Ur(e-p*i-h*u,n),v=Ur(-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}}}},h6),F$=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:fp},Symbol.toStringTag,{value:"Module"})),x6="2.37.3";let sd={getDocsUrl:({docsBaseUrl:e,docsPath:n="",docsSlug:i})=>n?`${e??"https://viem.sh"}${n}${i?`#${i}`:""}`:void 0,version:`viem@${x6}`};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=sd.getDocsUrl)==null?void 0:p.call(sd,{...i,docsPath:u}),f=[n||"An error occurred.","",...i.metaMessages?[...i.metaMessages,""]:[],...l?[`Docs: ${l}`]:[],...a?[`Details: ${a}`]:[],...sd.version?[`Version: ${sd.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=x6}walk(n){return E6(this,n)}}function E6(e,n){return n!=null&&n(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?E6(e.cause,n):n?null:e}class w6 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 N$ 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 D$ extends $e{constructor({givenSize:n,maxSize:i}){super(`Size cannot exceed ${i} bytes. Given size: ${n} bytes.`,{name:"SizeOverflowError"})}}function ya(e,{strict:n=!0}={}){return!e||typeof e!="string"?!1:n?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function un(e){return ya(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}function ps(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 S6 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 I6 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 hN 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 gc(e,{dir:n,size:i=32}={}){return typeof e=="string"?ds(e,{dir:n,size:i}):B$(e,{dir:n,size:i})}function ds(e,{dir:n,size:i=32}={}){if(i===null)return e;const a=e.replace("0x","");if(a.length>i*2)throw new I6({size:Math.ceil(a.length/2),targetSize:i,type:"hex"});return`0x${a[n==="right"?"padEnd":"padStart"](i*2,"0")}`}function B$(e,{dir:n,size:i=32}={}){if(i===null)return e;if(e.length>i)throw new I6({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 U$=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function So(e,n={}){return typeof e=="number"||typeof e=="bigint"?Ke(e,n):typeof e=="string"?oc(e,n):typeof e=="boolean"?C6(e,n):fr(e,n)}function C6(e,n={}){const i=`0x${Number(e)}`;return typeof n.size=="number"?(Oo(i,{size:n.size}),gc(i,{size:n.size})):i}function fr(e,n={}){let i="";for(let u=0;u<e.length;u++)i+=U$[e[u]];const a=`0x${i}`;return typeof n.size=="number"?(Oo(a,{size:n.size}),gc(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 w6({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?gc(p,{size:a}):p}const M$=new TextEncoder;function oc(e,n={}){const i=M$.encode(e);return fr(i,n)}const _$=new TextEncoder;function pS(e,n={}){return typeof e=="number"||typeof e=="bigint"?j$(e,n):typeof e=="boolean"?P$(e,n):ya(e)?Qi(e,n):T6(e,n)}function P$(e,n={}){const i=new Uint8Array(1);return i[0]=Number(e),typeof n.size=="number"?(Oo(i,{size:n.size}),gc(i,{size:n.size})):i}const aa={zero:48,nine:57,A:65,F:70,a:97,f:102};function mN(e){if(e>=aa.zero&&e<=aa.nine)return e-aa.zero;if(e>=aa.A&&e<=aa.F)return e-(aa.A-10);if(e>=aa.a&&e<=aa.f)return e-(aa.a-10)}function Qi(e,n={}){let i=e;n.size&&(Oo(i,{size:n.size}),i=gc(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=mN(a.charCodeAt(p++)),m=mN(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 Qi(i)}function T6(e,n={}){const i=_$.encode(e);return typeof n.size=="number"?(Oo(i,{size:n.size}),gc(i,{dir:"right",size:n.size})):i}function Oo(e,{size:n}){if(un(e)>n)throw new D$({givenSize:un(e),maxSize:n})}function Io(e,n={}){const{signed:i}=n;n.size&&Oo(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 ba(e,n={}){return Number(Io(e,n))}async function O6(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 ba(u)}class mg 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 L$({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 fp.Signature(Io(e),Io(n)).toCompactHex()}${l===0?"1b":"1c"}`;return i==="hex"?f:Qi(f)}function R6(){return So(fp.utils.randomPrivateKey())}class Sr 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 k$=BigInt(0),ud=BigInt(1),$$=BigInt(2),q$=BigInt(7),H$=BigInt(256),z$=BigInt(113),F6=[],N6=[],D6=[];for(let e=0,n=ud,i=1,a=0;e<24;e++){[i,a]=[a,(2*i+3*a)%5],F6.push(2*(5*a+i)),N6.push((e+1)*(e+2)/2%64);let u=k$;for(let l=0;l<7;l++)n=(n<<ud^(n>>q$)*z$)%H$,n&$$&&(u^=ud<<(ud<<BigInt(l))-ud);D6.push(u)}const B6=u$(D6,!0),V$=B6[0],G$=B6[1],gN=(e,n,i)=>i>32?f$(e,n,i):l$(e,n,i),yN=(e,n,i)=>i>32?d$(e,n,i):c$(e,n,i);function Q$(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=gN(m,v,1)^i[p],y=yN(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=N6[f],h=gN(u,l,p),m=yN(u,l,p),v=F6[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]^=V$[a],e[1]^=G$[a]}ic(i)}class hS extends uS{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,Od(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(){rN(this.state32),Q$(this.state32,this.rounds),rN(this.state32),this.posOut=0,this.pos=0}update(n){rc(this),n=dg(n),Iu(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){rc(this,!1),Iu(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 Od(n),this.xofInto(new Uint8Array(n))}digestInto(n){if(e6(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,ic(this.state)}_cloneInto(n){const{blockLen:i,suffix:a,outputLen:u,rounds:l,enableXOF:f}=this;return n||(n=new hS(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 Y$=(e,n,i)=>t6(()=>new hS(n,e,i)),K$=Y$(1,136,256/8);function ei(e,n){const i=n||"hex",a=K$(ya(e,{strict:!1})?pS(e):e);return i==="bytes"?a:So(a)}const zA=new mg(8192);function dp(e,n){if(zA.has(`${e}.${n}`))return zA.get(`${e}.${n}`);const i=e.substring(2).toLowerCase(),a=ei(T6(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 zA.set(`${e}.${n}`,l),l}function X$(e,n){if(!Pn(e,{strict:!1}))throw new Sr({address:e});return dp(e,n)}const Z$=/^0x[a-fA-F0-9]{40}$/,VA=new mg(8192);function Pn(e,n){const{strict:i=!0}=n??{},a=`${e}.${i}`;if(VA.has(a))return VA.get(a);const u=Z$.test(e)?e.toLowerCase()===e?!0:i?dp(e)===e:!0:!1;return VA.set(a,u),u}function J$(e){if(typeof e=="string"){if(!Pn(e,{strict:!1}))throw new Sr({address:e});return{address:e,type:"json-rpc"}}if(!Pn(e.address,{strict:!1}))throw new Sr({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 U6(e){const n=ei(`0x${e.substring(4)}`).substring(26);return dp(`0x${n}`)}let GA=!1;async function pp({hash:e,privateKey:n,to:i="object"}){const{r:a,s:u,recovery:l}=fp.sign(e.slice(2),n.slice(2),{lowS:!0,extraEntropy:ya(GA,{strict:!1})?Qi(GA):GA}),f={r:Ke(a,{size:32}),s:Ke(u,{size:32}),v:l?28n:27n,yParity:l};return i==="bytes"||i==="hex"?L$({...f,to:i}):f}function Co(e){return typeof e[0]=="string"?hs(e):W$(e)}function W$(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 hs(e){return`0x${e.reduce((n,i)=>n+i.replace("0x",""),"")}`}class bN extends $e{constructor({offset:n}){super(`Offset \`${n}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class eq extends $e{constructor({length:n,position:i}){super(`Position \`${i}\` is out of bounds (\`0 < position < ${n}\`).`,{name:"PositionOutOfBoundsError"})}}class tq extends $e{constructor({count:n,limit:i}){super(`Recursive read limit of \`${i}\` exceeded (recursive read count: \`${n}\`).`,{name:"RecursiveReadLimitExceededError"})}}const nq={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 tq({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new eq({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new bN({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 bN({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 mS(e,{recursiveReadLimit:n=8192}={}){const i=Object.create(nq);return i.bytes=e,i.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),i.positionReadCount=new Map,i.recursiveReadLimit=n,i}function Cu(e,n="hex"){const i=M6(e),a=mS(new Uint8Array(i.length));return i.encode(a),n==="hex"?fr(a.bytes):a.bytes}function M6(e){return Array.isArray(e)?rq(e.map(n=>M6(n))):iq(e)}function rq(e){const n=e.reduce((u,l)=>u+l.length,0),i=_6(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 iq(e){const n=typeof e=="string"?Qi(e):e,i=_6(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 _6(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 P6(e){const{chainId:n,nonce:i,to:a}=e,u=e.contractAddress??e.address,l=ei(hs(["0x05",Cu([n?Ke(n):"0x",u,i?Ke(i):"0x"])]));return a==="bytes"?Qi(l):l}async function oq(e){const{chainId:n,nonce:i,privateKey:a,to:u="object"}=e,l=e.contractAddress??e.address,f=await pp({hash:P6({address:l,chainId:n,nonce:i}),privateKey:a,to:u});return u==="object"?{address:l,chainId:n,nonce:i,...f}:f}const aq=`Ethereum Signed Message:
|
|
278
|
-
`;function sq(e){const n=typeof e=="string"?oc(e):typeof e.raw=="string"?e.raw:fr(e.raw),i=oc(`${aq}${un(n)}`);return Co([i,n])}function uq(e,n){return ei(sq(e),n)}async function lq({message:e,privateKey:n}){return await pp({hash:uq(e),privateKey:n,to:"hex"})}const cq={gwei:9,wei:18},fq={ether:-9,wei:9};function j6(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 L6(e,n="wei"){return j6(e,cq[n])}function Vi(e,n="wei"){return j6(e,fq[n])}function gg(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 dq 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 pq extends $e{constructor({v:n}){super(`Invalid \`v\` value "${n}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class hq extends $e{constructor({transaction:n}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",gg(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 mq 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 gq 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=gg({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"&&`${L6(y)} ${((R=u==null?void 0:u.nativeCurrency)==null?void 0:R.symbol)||"ETH"}`,data:l,gas:f,gasPrice:typeof p<"u"&&`${Vi(p)} gwei`,maxFeePerGas:typeof h<"u"&&`${Vi(h)} gwei`,maxPriorityFeePerGas:typeof m<"u"&&`${Vi(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 yq(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?So(a):"0x",f,u?So(u):"0x",...hp({},l)])}return n}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(l=>Qi(l)):e.blobs,u=[];for(const l of a)u.push(Uint8Array.from(n.blobToKzgCommitment(l)));return i==="bytes"?u:u.map(l=>fr(l))}function yS(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=>Qi(f)):e.blobs,u=typeof e.commitments[0]=="string"?e.commitments.map(f=>Qi(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=>fr(f))}const Fw=h6;function bq(e,n){return Fw(ya(e,{strict:!1})?pS(e):e)}function Aq(e){const{commitment:n,version:i=1}=e,a=e.to??(typeof n=="string"?"hex":"bytes"),u=bq(n);return u.set([i],0),a==="bytes"?u:fr(u)}function k6(e){const{commitments:n,version:i}=e,a=e.to??(typeof n[0]=="string"?"hex":"bytes"),u=[];for(const l of n)u.push(Aq({commitment:l,to:a,version:i}));return u}const AN=6,$6=32,bS=4096,q6=$6*bS,vN=q6*AN-1-1*bS*AN,H6=1;class vq extends $e{constructor({maxSize:n,size:i}){super("Blob size is too large.",{metaMessages:[`Max: ${n} bytes`,`Given: ${i} bytes`],name:"BlobSizeTooLargeError"})}}class z6 extends $e{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class xq extends $e{constructor({hash:n,size:i}){super(`Versioned hash "${n}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${i}`],name:"InvalidVersionedHashSizeError"})}}class Eq extends $e{constructor({hash:n,version:i}){super(`Versioned hash "${n}" version is invalid.`,{metaMessages:[`Expected: ${H6}`,`Received: ${i}`],name:"InvalidVersionedHashVersionError"})}}function wq(e){const n=e.to??(typeof e.data=="string"?"hex":"bytes"),i=typeof e.data=="string"?Qi(e.data):e.data,a=un(i);if(!a)throw new z6;if(a>vN)throw new vq({maxSize:vN,size:a});const u=[];let l=!0,f=0;for(;l;){const p=mS(new Uint8Array(q6));let h=0;for(;h<bS;){const m=i.slice(f,f+($6-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=>fr(p.bytes))}function V6(e){const{data:n,kzg:i,to:a}=e,u=e.blobs??wq({data:n,to:a}),l=e.commitments??gS({blobs:u,kzg:i,to:a}),f=e.proofs??yS({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 yg=2n**256n-1n;class Sq 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 Iq 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 bg extends $e{constructor({chainId:n}){super(typeof n=="number"?`Chain ID "${n}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}class Kl 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(Kl,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(Kl,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class Tu extends $e{constructor({cause:n,maxFeePerGas:i}={}){super(`The fee cap (\`maxFeePerGas\`${i?` = ${Vi(i)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:n,name:"FeeCapTooHighError"})}}Object.defineProperty(Tu,"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 Nw extends $e{constructor({cause:n,maxFeePerGas:i}={}){super(`The fee cap (\`maxFeePerGas\`${i?` = ${Vi(i)}`:""} gwei) cannot be lower than the block base fee.`,{cause:n,name:"FeeCapTooLowError"})}}Object.defineProperty(Nw,"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 Dw 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(Dw,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class Bw 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(Bw,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Uw 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(Uw,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Mw 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(Mw,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class _w 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(_w,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class Pw 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(Pw,"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 Nd extends $e{constructor({cause:n,maxPriorityFeePerGas:i,maxFeePerGas:a}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${i?` = ${Vi(i)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${a?` = ${Vi(a)} gwei`:""}).`].join(`
|
|
284
|
-
`),{cause:n,name:"TipAboveFeeCapError"})}}Object.defineProperty(Nd,"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 AS extends $e{constructor({cause:n}){super(`An error occurred while executing: ${n==null?void 0:n.shortMessage}`,{cause:n,name:"UnknownNodeError"})}}function Dd(e,n,i,{strict:a}={}){return ya(e,{strict:!1})?Lw(e,n,i,{strict:a}):Y6(e,n,i,{strict:a})}function G6(e,n){if(typeof n=="number"&&n>0&&n>un(e)-1)throw new S6({offset:n,position:"start",size:un(e)})}function Q6(e,n,i){if(typeof n=="number"&&typeof i=="number"&&un(e)!==i-n)throw new S6({offset:i,position:"end",size:un(e)})}function Y6(e,n,i,{strict:a}={}){G6(e,n);const u=e.slice(n,i);return a&&Q6(u,n,i),u}function Lw(e,n,i,{strict:a}={}){G6(e,n);const u=`0x${e.replace("0x","").slice((n??0)*2,(i??e.length)*2)}`;return a&&Q6(u,n,i),u}function Cq(e){const{authorizationList:n}=e;if(n)for(const i of n){const{chainId:a}=i,u=i.address;if(!Pn(u))throw new Sr({address:u});if(a<0)throw new bg({chainId:a})}vS(e)}function Tq(e){const{blobVersionedHashes:n}=e;if(n){if(n.length===0)throw new z6;for(const i of n){const a=un(i),u=ba(Dd(i,0,1));if(a!==32)throw new xq({hash:i,size:a});if(u!==H6)throw new Eq({hash:i,version:u})}}vS(e)}function vS(e){const{chainId:n,maxPriorityFeePerGas:i,maxFeePerGas:a,to:u}=e;if(n<=0)throw new bg({chainId:n});if(u&&!Pn(u))throw new Sr({address:u});if(a&&a>yg)throw new Tu({maxFeePerGas:a});if(i&&a&&i>a)throw new Nd({maxFeePerGas:a,maxPriorityFeePerGas:i})}function Oq(e){const{chainId:n,maxPriorityFeePerGas:i,gasPrice:a,maxFeePerGas:u,to:l}=e;if(n<=0)throw new bg({chainId:n});if(l&&!Pn(l))throw new Sr({address:l});if(i||u)throw new $e("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(a&&a>yg)throw new Tu({maxFeePerGas:a})}function Rq(e){const{chainId:n,maxPriorityFeePerGas:i,gasPrice:a,maxFeePerGas:u,to:l}=e;if(l&&!Pn(l))throw new Sr({address:l});if(typeof n<"u"&&n<=0)throw new bg({chainId:n});if(i||u)throw new $e("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(a&&a>yg)throw new Tu({maxFeePerGas:a})}function K6(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 hq({transaction:e})}function Ag(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 mq({storageKey:u[l]});if(!Pn(a,{strict:!1}))throw new Sr({address:a});n.push([a,u])}return n}function Fq(e,n){const i=K6(e);return i==="eip1559"?Bq(e,n):i==="eip2930"?Uq(e,n):i==="eip4844"?Dq(e,n):i==="eip7702"?Nq(e,n):Mq(e,n)}function Nq(e,n){const{authorizationList:i,chainId:a,gas:u,nonce:l,to:f,value:p,maxFeePerGas:h,maxPriorityFeePerGas:m,accessList:v,data:A}=e;Cq(e);const y=Ag(v),I=yq(i);return hs(["0x04",Cu([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,...hp(e,n)])])}function Dq(e,n){const{chainId:i,gas:a,nonce:u,to:l,value:f,maxFeePerBlobGas:p,maxFeePerGas:h,maxPriorityFeePerGas:m,accessList:v,data:A}=e;Tq(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=>fr(X)),H=e.kzg,k=gS({blobs:M,kzg:H});if(typeof y>"u"&&(y=k6({commitments:k})),typeof I>"u"){const X=yS({blobs:M,commitments:k,kzg:H});I=V6({blobs:M,commitments:k,proofs:X})}}const R=Ag(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??[],...hp(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 hs(["0x03",Cu(I?[U,F,N,B]:U)])}function Bq(e,n){const{chainId:i,gas:a,nonce:u,to:l,value:f,maxFeePerGas:p,maxPriorityFeePerGas:h,accessList:m,data:v}=e;vS(e);const A=Ag(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,...hp(e,n)];return hs(["0x02",Cu(y)])}function Uq(e,n){const{chainId:i,gas:a,data:u,nonce:l,to:f,value:p,accessList:h,gasPrice:m}=e;Oq(e);const v=Ag(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,...hp(e,n)];return hs(["0x01",Cu(A)])}function Mq(e,n){const{chainId:i=0,gas:a,data:u,nonce:l,to:f,value:p,gasPrice:h}=e;Rq(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 pq({v:n.v});return I})(),A=ps(n.r),y=ps(n.s);m=[...m,Ke(v),A==="0x00"?"0x":A,y==="0x00"?"0x":y]}else i>0&&(m=[...m,Ke(i),"0x","0x"]);return Cu(m)}function hp(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=ps(i.r),f=ps(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 _q(e){const{privateKey:n,transaction:i,serializer:a=Fq}=e,u=i.type==="eip4844"?{...i,sidecars:!1}:i,l=await pp({hash:ei(a(u)),privateKey:n});return a(i,l)}function ac(e,{includeName:n=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new Yq(e.type);return`${e.name}(${xS(e.inputs,{includeName:n})})`}function xS(e,{includeName:n=!1}={}){return e?e.map(i=>Pq(i,{includeName:n})).join(n?", ":","):""}function Pq(e,{includeName:n}){return e.type.startsWith("tuple")?`(${xS(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 xN 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 Lq 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: (${xS(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 ES extends $e{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class kq 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 $q extends $e{constructor({expectedSize:n,value:i}){super(`Size of bytes "${i}" (bytes${un(i)}) does not match expected size (bytes${n}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class qq 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 X6 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 EN 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 Hq extends $e{constructor(n,i){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${n.type}\` in \`${ac(n.abiItem)}\`, and`,`\`${i.type}\` in \`${ac(i.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class zq extends $e{constructor({expectedSize:n,givenSize:i}){super(`Expected bytes${n}, got bytes${i}.`,{name:"BytesSizeMismatchError"})}}class Vq 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 Gq 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 Qq extends $e{constructor(n){super([`Value "${n}" is not a valid array.`].join(`
|
|
294
|
-
`),{name:"InvalidArrayError"})}}class Yq extends $e{constructor(n){super([`"${n}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
|
|
295
|
-
`),{name:"InvalidDefinitionTypeError"})}}const Kq=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Z6=/^(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 vg(e,n){if(e.length!==n.length)throw new qq({expectedLength:e.length,givenLength:n.length});const i=Xq({params:e,values:n}),a=SS(i);return a.length===0?"0x":a}function Xq({params:e,values:n}){const i=[];for(let a=0;a<e.length;a++)i.push(wS({param:e[a],value:n[a]}));return i}function wS({param:e,value:n}){const i=IS(e.type);if(i){const[a,u]=i;return Jq(n,{length:a,param:{...e,type:u}})}if(e.type==="tuple")return rH(n,{param:e});if(e.type==="address")return Zq(n);if(e.type==="bool")return eH(n);if(e.type.startsWith("uint")||e.type.startsWith("int")){const a=e.type.startsWith("int"),[,,u="256"]=Z6.exec(e.type)??[];return tH(n,{signed:a,size:Number(u)})}if(e.type.startsWith("bytes"))return Wq(n,{param:e});if(e.type==="string")return nH(n);throw new Vq(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function SS(e){let n=0;for(let l=0;l<e.length;l++){const{dynamic:f,encoded:p}=e[l];f?n+=32:n+=un(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+=un(p)):i.push(p)}return Co([...i,...a])}function Zq(e){if(!Pn(e))throw new Sr({address:e});return{dynamic:!1,encoded:ds(e.toLowerCase())}}function Jq(e,{length:n,param:i}){const a=n===null;if(!Array.isArray(e))throw new Qq(e);if(!a&&e.length!==n)throw new kq({expectedLength:n,givenLength:e.length,type:`${i.type}[${n}]`});let u=!1;const l=[];for(let f=0;f<e.length;f++){const p=wS({param:i,value:e[f]});p.dynamic&&(u=!0),l.push(p)}if(a||u){const f=SS(l);if(a){const p=Ke(l.length,{size:32});return{dynamic:!0,encoded:l.length>0?Co([p,f]):p}}if(u)return{dynamic:!0,encoded:f}}return{dynamic:!1,encoded:Co(l.map(({encoded:f})=>f))}}function Wq(e,{param:n}){const[,i]=n.type.split("bytes"),a=un(e);if(!i){let u=e;return a%32!==0&&(u=ds(u,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:Co([ds(Ke(a,{size:32})),u])}}if(a!==Number.parseInt(i,10))throw new $q({expectedSize:Number.parseInt(i,10),value:e});return{dynamic:!1,encoded:ds(e,{dir:"right"})}}function eH(e){if(typeof e!="boolean")throw new $e(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:ds(C6(e))}}function tH(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 w6({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 nH(e){const n=oc(e),i=Math.ceil(un(n)/32),a=[];for(let u=0;u<i;u++)a.push(ds(Dd(n,u*32,(u+1)*32),{dir:"right"}));return{dynamic:!0,encoded:Co([ds(Ke(un(n),{size:32})),...a])}}function rH(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=wS({param:l,value:e[f]});a.push(p),p.dynamic&&(i=!0)}return{dynamic:i,encoded:i?SS(a):Co(a.map(({encoded:u})=>u))}}function IS(e){const n=e.match(/^(.*)\[(\d+)?\]$/);return n?[n[2]?Number(n[2]):null,n[1]]:void 0}const Gi=(e,n,i)=>JSON.stringify(e,(a,u)=>typeof u=="bigint"?u.toString():u,i);class iH extends $e{constructor({domain:n}){super(`Invalid domain "${Gi(n)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class oH 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 aH extends $e{constructor({type:n}){super(`Struct type "${n}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function sH(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 Gi({domain:f,message:p,primaryType:a,types:u})}function J6(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(Z6);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"&&!Pn(A))throw new Sr({address:A});const I=v.match(Kq);if(I){const[U,F]=I;if(F&&un(A)!==Number.parseInt(F,10))throw new zq({expectedSize:Number.parseInt(F,10),givenSize:un(A)})}const R=u[v];R&&(uH(v),l(R,A))}};if(u.EIP712Domain&&n){if(typeof n!="object")throw new iH({domain:n});l(u.EIP712Domain,n)}if(a!=="EIP712Domain")if(u[a])l(u[a],i);else throw new oH({primaryType:a,types:u})}function W6({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 uH(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new aH({type:e})}function lH(e){const{domain:n={},message:i,primaryType:a}=e,u={EIP712Domain:W6({domain:n}),...e.types};J6({domain:n,message:i,primaryType:a,types:u});const l=["0x1901"];return n&&l.push(cH({domain:n,types:u})),a!=="EIP712Domain"&&l.push(e8({data:i,primaryType:a,types:u})),ei(Co(l))}function cH({domain:e,types:n}){return e8({data:e,primaryType:"EIP712Domain",types:n})}function e8({data:e,primaryType:n,types:i}){const a=t8({data:e,primaryType:n,types:i});return ei(a)}function t8({data:e,primaryType:n,types:i}){const a=[{type:"bytes32"}],u=[fH({primaryType:n,types:i})];for(const l of i[n]){const[f,p]=r8({types:i,name:l.name,type:l.type,value:e[l.name]});a.push(f),u.push(p)}return vg(a,u)}function fH({primaryType:e,types:n}){const i=So(dH({primaryType:e,types:n}));return ei(i)}function dH({primaryType:e,types:n}){let i="";const a=n8({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 n8({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])n8({primaryType:l.type,types:n},i);return i}function r8({types:e,name:n,type:i,value:a}){if(e[i]!==void 0)return[{type:"bytes32"},ei(t8({data:a,primaryType:i,types:e}))];if(i==="bytes")return a=`0x${(a.length%2?"0":"")+a.slice(2)}`,[{type:"bytes32"},ei(a)];if(i==="string")return[{type:"bytes32"},ei(So(a))];if(i.lastIndexOf("]")===i.length-1){const u=i.slice(0,i.lastIndexOf("[")),l=a.map(f=>r8({name:n,type:u,types:e,value:f}));return[{type:"bytes32"},ei(vg(l.map(([f])=>f),l.map(([,f])=>f)))]}return[{type:i},a]}async function pH(e){const{privateKey:n,...i}=e;return await pp({hash:lH(i),privateKey:n,to:"hex"})}function Eo(e,n={}){const{nonceManager:i}=n,a=So(fp.getPublicKey(e.slice(2),!1)),u=U6(a);return{...J$({address:u,nonceManager:i,async sign({hash:f}){return pp({hash:f,privateKey:e,to:"hex"})},async signAuthorization(f){return oq({...f,privateKey:e})},async signMessage({message:f}){return lq({message:f,privateKey:e})},async signTransaction(f,{serializer:p}={}){return _q({privateKey:e,transaction:f,serializer:p})},async signTypedData(f){return pH({...f,privateKey:e})}}),publicKey:a,source:"privateKey"}}function jr(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}function hH(e,n){const i=e.exec(n);return i==null?void 0:i.groups}const wN=/^tuple(?<array>(\[(\d*)\])*)$/;function kw(e){let n=e.type;if(wN.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+=kw(l),u<i-1&&(n+=", ")}const a=hH(wN,e.type);return n+=`)${(a==null?void 0:a.array)??""}`,kw({...e,type:n})}return"indexed"in e&&e.indexed&&(n=`${n} indexed`),e.name?`${n} ${e.name}`:n}function ld(e){let n="";const i=e.length;for(let a=0;a<i;a++){const u=e[a];n+=kw(u),a!==i-1&&(n+=", ")}return n}function mH(e){var n;return e.type==="function"?`function ${e.name}(${ld(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${(n=e.outputs)!=null&&n.length?` returns (${ld(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${ld(e.inputs)})`:e.type==="error"?`error ${e.name}(${ld(e.inputs)})`:e.type==="constructor"?`constructor(${ld(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}function Wn(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 gH=e=>ei(pS(e));function yH(e){return gH(e)}function bH(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 AH=e=>{const n=typeof e=="string"?e:mH(e);return bH(n)};function i8(e){return yH(AH(e))}const vH=i8,CS=e=>Dd(i8(e),0,4);function o8(e){const{abi:n,args:i=[],name:a}=e,u=ya(a,{strict:!1}),l=n.filter(p=>u?p.type==="function"?CS(p)===a:p.type==="event"?vH(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?$w(m,A):!1})){if(f&&"inputs"in f&&f.inputs){const m=a8(p.inputs,f.inputs,i);if(m)throw new Hq({abiItem:p,type:m[0]},{abiItem:f,type:m[1]})}f=p}}return f||l[0]}function $w(e,n){const i=typeof e,a=n.type;switch(a){case"address":return Pn(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)=>$w(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=>$w(u,{...n,type:a.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function a8(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 a8(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")?Pn(i[a],{strict:!1}):f.includes("address")&&f.includes("bytes")?Pn(i[a],{strict:!1}):!1)return f}}const SN="/docs/contract/encodeFunctionData";function xH(e){const{abi:n,args:i,functionName:a}=e;let u=n[0];if(a){const l=o8({abi:n,args:i,name:a});if(!l)throw new EN(a,{docsPath:SN});u=l}if(u.type!=="function")throw new EN(void 0,{docsPath:SN});return{abi:[u],functionName:CS(ac(u))}}function s8(e){const{args:n}=e,{abi:i,functionName:a}=(()=>{var p;return e.abi.length===1&&((p=e.functionName)!=null&&p.startsWith("0x"))?e:xH(e)})(),u=i[0],l=a,f="inputs"in u&&u.inputs?vg(u.inputs,n??[]):void 0;return hs([l,f??"0x"])}const EH={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."},wH={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},SH={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function IH(e,n={}){typeof n.size<"u"&&Oo(e,{size:n.size});const i=fr(e,n);return Io(i,n)}function CH(e,n={}){let i=e;if(typeof n.size<"u"&&(Oo(i,{size:n.size}),i=ps(i)),i.length>1||i[0]>1)throw new N$(i);return!!i[0]}function ga(e,n={}){typeof n.size<"u"&&Oo(e,{size:n.size});const i=fr(e,n);return ba(i,n)}function TH(e,n={}){let i=e;return typeof n.size<"u"&&(Oo(i,{size:n.size}),i=ps(i,{dir:"right"})),new TextDecoder().decode(i)}function OH(e,n){const i=typeof n=="string"?Qi(n):n,a=mS(i);if(un(i)===0&&e.length>0)throw new ES;if(un(n)&&un(n)<32)throw new Lq({data:typeof n=="string"?n:fr(n),params:e,size:un(n)});let u=0;const l=[];for(let f=0;f<e.length;++f){const p=e[f];a.setPosition(u);const[h,m]=Wl(a,p,{staticPosition:0});u+=m,l.push(h)}return l}function Wl(e,n,{staticPosition:i}){const a=IS(n.type);if(a){const[u,l]=a;return FH(e,{...n,type:l},{length:u,staticPosition:i})}if(n.type==="tuple")return UH(e,n,{staticPosition:i});if(n.type==="address")return RH(e);if(n.type==="bool")return NH(e);if(n.type.startsWith("bytes"))return DH(e,n,{staticPosition:i});if(n.type.startsWith("uint")||n.type.startsWith("int"))return BH(e,n);if(n.type==="string")return MH(e,{staticPosition:i});throw new Gq(n.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const IN=32,qw=32;function RH(e){const n=e.readBytes(32);return[dp(fr(Y6(n,-20))),32]}function FH(e,n,{length:i,staticPosition:a}){if(!i){const f=ga(e.readBytes(qw)),p=a+f,h=p+IN;e.setPosition(p);const m=ga(e.readBytes(IN)),v=Bd(n);let A=0;const y=[];for(let I=0;I<m;++I){e.setPosition(h+(v?I*32:A));const[R,U]=Wl(e,n,{staticPosition:h});A+=U,y.push(R)}return e.setPosition(a+32),[y,32]}if(Bd(n)){const f=ga(e.readBytes(qw)),p=a+f,h=[];for(let m=0;m<i;++m){e.setPosition(p+m*32);const[v]=Wl(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]=Wl(e,n,{staticPosition:a+u});u+=h,l.push(p)}return[l,u]}function NH(e){return[CH(e.readBytes(32),{size:32}),32]}function DH(e,n,{staticPosition:i}){const[a,u]=n.type.split("bytes");if(!u){const f=ga(e.readBytes(32));e.setPosition(i+f);const p=ga(e.readBytes(32));if(p===0)return e.setPosition(i+32),["0x",32];const h=e.readBytes(p);return e.setPosition(i+32),[fr(h),32]}return[fr(e.readBytes(Number.parseInt(u,10),32)),32]}function BH(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?IH(u,{signed:i}):ga(u,{signed:i}),32]}function UH(e,n,{staticPosition:i}){const a=n.components.length===0||n.components.some(({name:f})=>!f),u=a?[]:{};let l=0;if(Bd(n)){const f=ga(e.readBytes(qw)),p=i+f;for(let h=0;h<n.components.length;++h){const m=n.components[h];e.setPosition(p+l);const[v,A]=Wl(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]=Wl(e,p,{staticPosition:i});u[a?f:p==null?void 0:p.name]=h,l+=m}return[u,l]}function MH(e,{staticPosition:n}){const i=ga(e.readBytes(32)),a=n+i;e.setPosition(a);const u=ga(e.readBytes(32));if(u===0)return e.setPosition(n+32),["",32];const l=e.readBytes(u,32),f=TH(ps(l));return e.setPosition(n+32),[f,32]}function Bd(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(Bd);const i=IS(e.type);return!!(i&&Bd({...e,type:i[1]}))}function _H(e){const{abi:n,data:i}=e,a=Dd(i,0,4);if(a==="0x")throw new ES;const l=[...n||[],wH,SH].find(f=>f.type==="error"&&a===CS(ac(f)));if(!l)throw new X6(a,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?OH(l.inputs,Dd(i,4)):void 0,errorName:l.name}}function u8({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"?Gi(n[l]):n[l]}`).join(", ")})`}class PH extends $e{constructor({address:n}){super(`State for account "${n}" is set multiple times.`,{name:"AccountStateConflictError"})}}class jH extends $e{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}const LH=e=>e,TS=e=>e;class kH extends $e{constructor(n,{abi:i,args:a,contractAddress:u,docsPath:l,functionName:f,sender:p}){const h=o8({abi:i,args:a,name:f}),m=h?u8({abiItem:h,args:a,includeFunctionName:!1,includeName:!1}):void 0,v=h?ac(h,{includeName:!0}):void 0,A=gg({address:u&&LH(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 $H extends $e{constructor({abi:n,data:i,functionName:a,message:u}){let l,f,p,h;if(i&&i!=="0x")try{f=_H({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=EH[I]}else{const I=v?ac(v,{includeName:!0}):void 0,R=v&&y?u8({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 X6&&(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 qH 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 HH 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 wd 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: ${TS(f)}`,n&&`Request body: ${Gi(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 OS extends $e{constructor({body:n,error:i,url:a}){super("RPC Request failed.",{cause:i,details:i.message,metaMessages:[`URL: ${TS(a)}`,`Request body: ${Gi(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 CN extends $e{constructor({body:n,url:i}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${TS(i)}`,`Request body: ${Gi(n)}`],name:"TimeoutError"})}}const zH=-1;class qr 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 OS?n.code:i??zH}}class li extends qr{constructor(n,i){super(n,i),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=i.data}}class Ud extends qr{constructor(n){super(n,{code:Ud.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(Ud,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class Md extends qr{constructor(n){super(n,{code:Md.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(Md,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class _d extends qr{constructor(n,{method:i}={}){super(n,{code:_d.code,name:"MethodNotFoundRpcError",shortMessage:`The method${i?` "${i}"`:""} does not exist / is not available.`})}}Object.defineProperty(_d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class Pd extends qr{constructor(n){super(n,{code:Pd.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
|
|
297
|
-
`)})}}Object.defineProperty(Pd,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Ou extends qr{constructor(n){super(n,{code:Ou.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(Ou,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class jd extends qr{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 Ld extends qr{constructor(n){super(n,{code:Ld.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(Ld,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class kd extends qr{constructor(n){super(n,{code:kd.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(kd,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class $d extends qr{constructor(n){super(n,{code:$d.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty($d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class Eu extends qr{constructor(n,{method:i}={}){super(n,{code:Eu.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${i?` "${i}"`:""} is not supported.`})}}Object.defineProperty(Eu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class sc extends qr{constructor(n){super(n,{code:sc.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(sc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class qd extends qr{constructor(n){super(n,{code:qd.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(qd,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class ec extends li{constructor(n){super(n,{code:ec.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(ec,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class Hd extends li{constructor(n){super(n,{code:Hd.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(Hd,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class zd extends li{constructor(n,{method:i}={}){super(n,{code:zd.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${i?` " ${i}"`:""}.`})}}Object.defineProperty(zd,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class Vd extends li{constructor(n){super(n,{code:Vd.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(Vd,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class Gd extends li{constructor(n){super(n,{code:Gd.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(Gd,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class Qd extends li{constructor(n){super(n,{code:Qd.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(Qd,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class uc extends li{constructor(n){super(n,{code:uc.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(uc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class Yd extends li{constructor(n){super(n,{code:Yd.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(Yd,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class Kd extends li{constructor(n){super(n,{code:Kd.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(Kd,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class Xd extends li{constructor(n){super(n,{code:Xd.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(Xd,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class Zd extends li{constructor(n){super(n,{code:Zd.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(Zd,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class Jd extends li{constructor(n){super(n,{code:Jd.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(Jd,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class lc extends li{constructor(n){super(n,{code:lc.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(lc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class VH extends qr{constructor(n){super(n,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const GH=3;function QH(e,{abi:n,address:i,args:a,docsPath:u,functionName:l,sender:f}){const p=e instanceof HH?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 ES?new qH({functionName:l}):[GH,Ou.code].includes(h)&&(m||v||A||y)?new $H({abi:n,data:typeof m=="object"?m.data:m,functionName:l,message:p instanceof OS?v:y??A}):e;return new kH(I,{abi:n,args:a,contractAddress:i,docsPath:u,functionName:l,sender:f})}const YH="modulepreload",KH=function(e){return"/"+e},TN={},XH=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=KH(m),m in TN)return;TN[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":YH,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 ZH({hash:e,signature:n}){const i=ya(e)?e:So(e),{secp256k1:a}=await XH(async()=>{const{secp256k1:f}=await Promise.resolve().then(()=>F$);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=ON(I);return new a.Signature(Io(m),Io(v)).addRecoveryBit(R)}const f=ya(n)?n:So(n);if(un(f)!==65)throw new Error("invalid signature length");const p=ba(`0x${f.slice(130)}`),h=ON(p);return a.Signature.fromCompact(f.substring(2,130)).addRecoveryBit(h)})().recoverPublicKey(i.substring(2)).toHex(!1)}`}function ON(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 JH({hash:e,signature:n}){return U6(await ZH({hash:e,signature:n}))}async function l8(e){const{authorization:n,signature:i}=e;return JH({hash:P6(n),signature:i??n})}class WH 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=gg({from:i==null?void 0:i.address,to:A,value:typeof y<"u"&&`${L6(y)} ${((R=u==null?void 0:u.nativeCurrency)==null?void 0:R.symbol)||"ETH"}`,data:l,gas:f,gasPrice:typeof p<"u"&&`${Vi(p)} gwei`,maxFeePerGas:typeof h<"u"&&`${Vi(h)} gwei`,maxPriorityFeePerGas:typeof m<"u"&&`${Vi(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 c8(e,n){const i=(e.details||"").toLowerCase(),a=e instanceof $e?e.walk(u=>(u==null?void 0:u.code)===Kl.code):e;return a instanceof $e?new Kl({cause:e,message:a.details}):Kl.nodeMessage.test(i)?new Kl({cause:e,message:e.details}):Tu.nodeMessage.test(i)?new Tu({cause:e,maxFeePerGas:n==null?void 0:n.maxFeePerGas}):Nw.nodeMessage.test(i)?new Nw({cause:e,maxFeePerGas:n==null?void 0:n.maxFeePerGas}):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,nonce:n==null?void 0:n.nonce}):Mw.nodeMessage.test(i)?new Mw({cause:e}):_w.nodeMessage.test(i)?new _w({cause:e,gas:n==null?void 0:n.gas}):Pw.nodeMessage.test(i)?new Pw({cause:e,gas:n==null?void 0:n.gas}):jw.nodeMessage.test(i)?new jw({cause:e}):Nd.nodeMessage.test(i)?new Nd({cause:e,maxFeePerGas:n==null?void 0:n.maxFeePerGas,maxPriorityFeePerGas:n==null?void 0:n.maxPriorityFeePerGas}):new AS({cause:e})}function e7(e,{docsPath:n,...i}){const a=(()=>{const u=c8(e,i);return u instanceof AS?e:u})();return new WH(a,{docsPath:n,...i})}function f8(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 t7={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function RS(e){const n={};return typeof e.authorizationList<"u"&&(n.authorizationList=n7(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=>fr(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=t7[e.type]),typeof e.value<"u"&&(n.value=Ke(e.value)),n}function n7(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 RN(e){if(!(!e||e.length===0))return e.reduce((n,{slot:i,value:a})=>{if(i.length!==66)throw new hN({size:i.length,targetSize:66,type:"hex"});if(a.length!==66)throw new hN({size:a.length,targetSize:66,type:"hex"});return n[i]=a,n},{})}function r7(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=RN(a)),u!==void 0){if(f.state)throw new jH;f.stateDiff=RN(u)}return f}function i7(e){if(!e)return;const n={};for(const{address:i,...a}of e){if(!Pn(i,{strict:!1}))throw new Sr({address:i});if(n[i])throw new PH({address:i});n[i]=r7(a)}return n}function xg(e){const{account:n,gasPrice:i,maxFeePerGas:a,maxPriorityFeePerGas:u,to:l}=e,f=n?jr(n):void 0;if(f&&!Pn(f.address))throw new Sr({address:f.address});if(l&&!Pn(l))throw new Sr({address:l});if(typeof i<"u"&&(typeof a<"u"||typeof u<"u"))throw new dq;if(a&&a>yg)throw new Tu({maxFeePerGas:a});if(u&&a&&u>a)throw new Nd({maxFeePerGas:a,maxPriorityFeePerGas:u})}class o7 extends $e{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class FS extends $e{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class a7 extends $e{constructor({maxPriorityFeePerGas:n}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${Vi(n)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class s7 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 u7={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function l7(e){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?ba(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?ba(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?u7[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=c7(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 c7(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 f7(e){const n=(e.transactions??[]).map(i=>typeof i=="string"?i:l7(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 Wm(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 s7({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)||f7)(p)}async function d8(e){const n=await e.request({method:"eth_gasPrice"});return BigInt(n)}async function d7(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 Wn(e,Wm,"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 Io(h)}catch{const[p,h]=await Promise.all([i?Promise.resolve(i):Wn(e,Wm,"getBlock")({}),Wn(e,d8,"getGasPrice")({})]);if(typeof p.baseFeePerGas!="bigint")throw new FS;const m=h-p.baseFeePerGas;return m<0n?0n:m}}async function FN(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 o7;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 Wn(e,Wm,"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 FS;const R=typeof(u==null?void 0:u.maxPriorityFeePerGas)=="bigint"?u.maxPriorityFeePerGas:await d7(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 Wn(e,d8,"getGasPrice")({}))}}async function mp(e){const n=await e.request({method:"eth_chainId"},{dedupe:!0});return ba(n)}const p8=["blobVersionedHashes","chainId","fees","gas","nonce","type"],NN=new Map;async function NS(e,n){const{account:i=e.account,blobs:a,chain:u,gas:l,kzg:f,nonce:p,nonceManager:h,parameters:m=p8,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 Wn(e,Wm,"getBlock")({blockTag:"latest"}),I)}let U;async function F(){return U||(u?u.id:typeof n.chainId<"u"?n.chainId:(U=await Wn(e,mp,"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 Wn(e,O6,"getTransactionCount")({address:A.address,blockTag:"pending"});if((m.includes("blobVersionedHashes")||m.includes("sidecars"))&&a&&f){const N=gS({blobs:a,kzg:f});if(m.includes("blobVersionedHashes")){const B=k6({commitments:N,to:"hex"});y.blobVersionedHashes=B}if(m.includes("sidecars")){const B=yS({blobs:a,commitments:N,kzg:f}),M=V6({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=K6(y)}catch{let N=NN.get(e.uid);if(typeof N>"u"){const B=await R();N=typeof(B==null?void 0:B.baseFeePerGas)=="bigint",NN.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 FN(e,{block:N,chain:u,request:y});if(typeof n.maxPriorityFeePerGas>"u"&&n.maxFeePerGas&&n.maxFeePerGas<M)throw new a7({maxPriorityFeePerGas:M});y.maxPriorityFeePerGas=M,y.maxFeePerGas=B}}else{if(typeof n.maxFeePerGas<"u"||typeof n.maxPriorityFeePerGas<"u")throw new FS;if(typeof n.gasPrice>"u"){const N=await R(),{gasPrice:B}=await FN(e,{block:N,chain:u,request:y,type:"legacy"});y.gasPrice=B}}return m.includes("gas")&&typeof l>"u"&&(y.gas=await Wn(e,h7,"estimateGas")({...y,account:A&&{address:A.address,type:"json-rpc"}})),xg(y),delete y.parameters,y}async function p7(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 h7(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:P}=fe;return e.request({method:"eth_estimateGas",params:P?[te,be??e.experimental_blockTag??"latest",P]: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 NS(e,{...n,parameters:(a==null?void 0:a.type)==="local"?void 0:["blobVersionedHashes"]}),O=(typeof y=="bigint"?Ke(y):void 0)||I,j=i7(X),L=await(async()=>{if(re.to)return re.to;if(m&&m.length>0)return await l8({authorization:m[0]}).catch(()=>{throw new $e("`to` is required. Could not infer from `authorizationList`")})})();xg(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||RS)({...f8(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:j}));if(m){const fe=await p7(e,{address:ge.from}),be=await Promise.all(m.map(async te=>{const{address:P}=te,ue=await Ee({block:O,request:{authorizationList:void 0,data:R,from:a==null?void 0:a.address,to:P,value:Ke(fe)},rpcStateOverride:j}).catch(()=>100000n);return 2n*BigInt(ue)}));D+=be.reduce((te,P)=>te+P,0n)}return D}catch(h){throw e7(h,{...n,account:a,chain:e.chain})}}function m7(e,n){if(!Pn(e,{strict:!1}))throw new Sr({address:e});if(!Pn(n,{strict:!1}))throw new Sr({address:n});return e.toLowerCase()===n.toLowerCase()}const QA="/docs/contract/encodeDeployData";function g7(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:QA});if(!("inputs"in u))throw new xN({docsPath:QA});if(!u.inputs||u.inputs.length===0)throw new xN({docsPath:QA});const l=vg(u.inputs,i);return hs([a,l])}function h8(){let e=()=>{},n=()=>{};return{promise:new Promise((a,u)=>{e=a,n=u}),resolve:e,reject:n}}const YA=new Map;function y7({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=()=>YA.delete(n),p=()=>h().map(({args:v})=>v),h=()=>YA.get(n)||[],m=v=>YA.set(n,[...h(),v]);return{flush:f,async schedule(v){const{promise:A,resolve:y,reject:I}=h8();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 KA=new Map,DN=new Map;let b7=0;function A7(e,n,i){const a=++b7,u=()=>KA.get(e)||[],l=()=>{const v=u();KA.set(e,v.filter(A=>A.id!==a))},f=()=>{const v=u();if(!v.some(y=>y.id===a))return;const A=DN.get(e);if(v.length===1&&A){const y=A();y instanceof Promise&&y.catch(()=>{})}l()},p=u();if(KA.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"&&DN.set(e,m),f}async function Hw(e){return new Promise(n=>setTimeout(n,e))}function v7(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 Hw(h);const m=async()=>{u&&(await e({unpoll:l}),await Hw(a),m())};m()})(),l}class Du 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 zm extends $e{constructor({docsPath:n,metaMessages:i,type:a}){super(`Account type "${a}" is not supported.`,{docsPath:n,metaMessages:i,name:"AccountTypeNotSupportedError"})}}function m8({chain:e,currentChainId:n}){if(!e)throw new Iq;if(n!==e.id)throw new Sq({chain:e,currentChainId:n})}function g8(e,{docsPath:n,...i}){const a=(()=>{const u=c8(e,i);return u instanceof AS?e:u})();return new gq(a,{docsPath:n,...i})}async function y8(e,{serializedTransaction:n}){return e.request({method:"eth_sendRawTransaction",params:[n]},{retryCount:0})}const XA=new mg(128);async function Eg(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 Du({docsPath:"/docs/actions/wallet/sendTransaction"});const N=i?jr(i):null;try{xg(n);const X=await(async()=>{if(n.to)return n.to;if(n.to!==null&&l&&l.length>0)return await l8({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 Wn(e,mp,"getChainId")({}),m8({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,j=(ie||RS)({...f8(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=XA.get(e.uid),q=L?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:q,params:[j]},{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:[j]},{retryCount:0}).then(Ee=>(XA.set(e.uid,!0),Ee)).catch(Ee=>{const D=Ee;throw D.name==="MethodNotFoundRpcError"||D.name==="MethodNotSupportedRpcError"?(XA.set(e.uid,!1),ge):D});throw ge}}if((N==null?void 0:N.type)==="local"){const re=await Wn(e,NS,"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:[...p8,"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 Wn(e,y8,"sendRawTransaction")({serializedTransaction:O})}throw(N==null?void 0:N.type)==="smart"?new zm({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new zm({docsPath:"/docs/actions/wallet/sendTransaction",type:N==null?void 0:N.type})}catch(X){throw X instanceof zm?X:g8(X,{...n,account:N,chain:n.chain||void 0})}}async function x7(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 Du({docsPath:"/docs/contract/writeContract"});const m=a?jr(a):null,v=s8({abi:i,args:l,functionName:p});try{return await Wn(e,Eg,"sendTransaction")({data:`${v}${f?f.replace("0x",""):""}`,to:u,account:m,...h})}catch(A){throw QH(A,{abi:i,address:u,args:l,docsPath:"/docs/contract/writeContract",functionName:p,sender:m==null?void 0:m.address})}}class E7 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 b8(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 Hw(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 w7={"0x0":"reverted","0x1":"success"},A8="0x5792579257925792579257925792579257925792579257925792579257925792",v8=Ke(0,{size:32});async function S7(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?s8({abi:I.abi,functionName:I.functionName,args:I.args}):I.data;return{data:I.dataSuffix&&R?Co([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 uc(new $e(B,{details:B}))}if(p&&A.length>1){const N="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new lc(new $e(N,{details:N}))}const R=[];for(const N of A){const B=Eg(e,{account:v,chain:u,data:N.data,to:N.to,value:N.value?Io(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:v8);return{id:Co([...F,Ke(u.id,{size:32}),A8])}}throw g8(y,{...n,account:v,chain:n.chain})}}async function x8(e,n){async function i(v){if(v.endsWith(A8.slice(2))){const y=ps(Lw(v,-64,-32)),I=Lw(v,0,-64).slice(2).match(/.{1,64}/g),R=await Promise.all(I.map(F=>v8.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:ba(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?ba(u):void 0,receipts:(l==null?void 0:l.map(v=>({...v,blockNumber:Io(v.blockNumber),gasUsed:Io(v.gasUsed),status:w7[v.status]})))??[],statusCode:m,status:h,version:f}}async function I7(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=Gi(["waitForCallsStatus",e.uid,i]),{promise:v,resolve:A,reject:y}=h8();let I;const R=A7(m,{resolve:A,reject:y},U=>{const F=v7(async()=>{const N=B=>{clearTimeout(I),F(),B(),R()};try{const B=await b8(async()=>{const M=await Wn(e,x8,"getCallsStatus")({id:i});if(h&&M.status==="failure")throw new E7(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 C7({id:i}))},p):void 0,await v}class C7 extends $e{constructor({id:n}){super(`Timed out while waiting for call bundle with id "${n}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}const zw=256;let Nm=zw,Dm;function E8(e=11){if(!Dm||Nm+e>zw*2){Dm="",Nm=0;for(let n=0;n<zw;n++)Dm+=(256+Math.random()*256|0).toString(16).substring(1)}return Dm.substring(Nm,Nm+++e)}function T7(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:E8(),...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 Bm=new mg(8192);function O7(e,{enabled:n=!0,id:i}){if(!n||!i)return e();if(Bm.get(i))return Bm.get(i);const a=e().finally(()=>Bm.delete(i));return Bm.set(i,a),a}function R7(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 Eu(new Error("method not supported"),{method:m});if(l!=null&&l.include&&!l.include.includes(m))throw new Eu(new Error("method not supported"),{method:m});const v=u?oc(`${h}.${Gi(i)}`):void 0;return O7(()=>b8(async()=>{try{return await e(i)}catch(y){const I=y;switch(I.code){case Ud.code:throw new Ud(I);case Md.code:throw new Md(I);case _d.code:throw new _d(I,{method:i.method});case Pd.code:throw new Pd(I);case Ou.code:throw new Ou(I);case jd.code:throw new jd(I);case Ld.code:throw new Ld(I);case kd.code:throw new kd(I);case $d.code:throw new $d(I);case Eu.code:throw new Eu(I,{method:i.method});case sc.code:throw new sc(I);case qd.code:throw new qd(I);case ec.code:throw new ec(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 Qd.code:throw new Qd(I);case uc.code:throw new uc(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 Jd.code:throw new Jd(I);case lc.code:throw new lc(I);case 5e3:throw new ec(I);default:throw y instanceof $e?y:new VH(I)}}},{delay:({count:y,error:I})=>{var R;if(I&&I instanceof wd){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})=>F7(y)}),{enabled:u,id:v})}}function F7(e){return"code"in e&&typeof e.code=="number"?e.code===-1||e.code===sc.code||e.code===Ou.code:e instanceof wd&&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 N7(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}function D7(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 B7(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const BN=B7();function U7(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 D7(async({signal:U})=>{const F={...h,body:Array.isArray(a)?Gi(a.map(H=>({jsonrpc:"2.0",id:H.id??BN.take(),...H}))):Gi({jsonrpc:"2.0",id:a.id??BN.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 CN({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 wd({body:a,details:Gi(R.error)||I.statusText,headers:I.headers,status:I.status,url:e});return R}catch(I){throw I instanceof wd||I instanceof CN?I:new wd({body:a,cause:I,url:e})}}}}async function M7(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 _7(e,n){const{abi:i,args:a,bytecode:u,...l}=n,f=g7({abi:i,args:a,bytecode:u});return Eg(e,{...l,...l.authorizationList?{to:null}:{},data:f})}async function P7(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=>dp(a))}async function j7(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 L7(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}async function w8(e,n){var h;const{account:i=e.account,chainId:a,nonce:u}=n;if(!i)throw new Du({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 Wn(e,mp,"getChainId")({})),typeof p.nonce>"u"&&(p.nonce=await Wn(e,O6,"getTransactionCount")({address:l.address,blockTag:"pending"}),(f==="self"||f!=null&&f.address&&m7(f.address,l.address))&&(p.nonce+=1)),p}async function k7(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(i=>X$(i))}async function $7(e,n){return e.request({method:"wallet_requestPermissions",params:[n]},{retryCount:0})}async function q7(e,n){const{id:i}=n;await e.request({method:"wallet_showCallsStatus",params:[i]})}async function H7(e,n){const{account:i=e.account}=n;if(!i)throw new Du({docsPath:"/docs/eip7702/signAuthorization"});const a=jr(i);if(!a.signAuthorization)throw new zm({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:a.type});const u=await w8(e,n);return a.signAuthorization(u)}async function z7(e,{account:n=e.account,message:i}){if(!n)throw new Du({docsPath:"/docs/actions/wallet/signMessage"});const a=jr(n);if(a.signMessage)return a.signMessage({message:i});const u=typeof i=="string"?oc(i):i.raw instanceof Uint8Array?So(i.raw):i.raw;return e.request({method:"personal_sign",params:[u,a.address]},{retryCount:0})}async function V7(e,n){var m,v,A,y;const{account:i=e.account,chain:a=e.chain,...u}=n;if(!i)throw new Du({docsPath:"/docs/actions/wallet/signTransaction"});const l=jr(i);xg({account:l,...n});const f=await Wn(e,mp,"getChainId")({});a!==null&&m8({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)||RS;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 G7(e,n){const{account:i=e.account,domain:a,message:u,primaryType:l}=n;if(!i)throw new Du({docsPath:"/docs/actions/wallet/signTypedData"});const f=jr(i),p={EIP712Domain:W6({domain:a}),...n.types};if(J6({domain:a,message:u,primaryType:l,types:p}),f.signTypedData)return f.signTypedData({domain:a,message:u,primaryType:l,types:p});const h=sH({domain:a,message:u,primaryType:l,types:p});return e.request({method:"eth_signTypedData_v4",params:[f.address,h]},{retryCount:0})}async function Q7(e,{id:n}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:Ke(n)}]},{retryCount:0})}async function Y7(e,n){return await e.request({method:"wallet_watchAsset",params:n},{retryCount:0})}function K7(e){return{addChain:n=>M7(e,n),deployContract:n=>_7(e,n),getAddresses:()=>P7(e),getCallsStatus:n=>x8(e,n),getCapabilities:n=>j7(e,n),getChainId:()=>mp(e),getPermissions:()=>L7(e),prepareAuthorization:n=>w8(e,n),prepareTransactionRequest:n=>NS(e,n),requestAddresses:()=>k7(e),requestPermissions:n=>$7(e,n),sendCalls:n=>S7(e,n),sendRawTransaction:n=>y8(e,n),sendTransaction:n=>Eg(e,n),showCallsStatus:n=>q7(e,n),signAuthorization:n=>H7(e,n),signMessage:n=>z7(e,n),signTransaction:n=>V7(e,n),signTypedData:n=>G7(e,n),switchChain:n=>Q7(e,n),waitForCallsStatus:n=>I7(e,n),watchAsset:n=>Y7(e,n),writeContract:n=>x7(e,n)}}function Sd(e){const{key:n="wallet",name:i="Wallet Client",transport:a}=e;return T7({...e,key:n,name:i,transport:a,type:"walletClient"}).extend(K7)}function X7({key:e,methods:n,name:i,request:a,retryCount:u=3,retryDelay:l=150,timeout:f,type:p},h){const m=E8();return{config:{key:e,methods:n,name:i,request:a,retryCount:u,retryDelay:l,timeout:f,type:p},request:R7(a,{methods:n,retryCount:u,retryDelay:l,uid:m}),value:h}}class Z7 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 Id(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 Z7;const H=U7(M,{fetchFn:a,fetchOptions:u,onRequest:h,onResponse:m,timeout:B});return X7({key:l,methods:f,name:p,async request({method:k,params:X}){const re={method:k,params:X},{schedule:ie}=y7({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:j,result:L}]=await O(re);if(A)return{error:j,result:L};if(j)throw new OS({body:re,error:j,url:M});return L},retryCount:N,retryDelay:v,timeout:B,type:"http"},{fetchOptions:u,url:M})}}const Cd=N7({id:31337,name:"Hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),Vt={DB_HOST:{key:"DB_HOST",isSecret:!1,type:"string",defaultValue:"localhost",description:"Paima Engine Postgres Host URL. Example: 'localhost'"},DB_NAME:{key:"DB_NAME",isSecret:!1,type:"string",defaultValue:"postgres",description:"Paima Engine Postgres Database Name. Example: 'postgres'"},DB_PORT:{key:"DB_PORT",isSecret:!1,type:"number",defaultValue:5432,description:"Paima Engine Postgres Port. Example: '5432'"},DB_PW:{key:"DB_PW",isSecret:!0,type:"string",defaultValue:"postgres",description:"Paima Engine Postgres Password. Example: 'password'"},DB_USER:{key:"DB_USER",isSecret:!1,type:"string",defaultValue:"postgres",description:"Paima Engine Postgres User. Example: 'postgres'"},NODE_ENV:{key:"NODE_ENV",isSecret:!1,type:"string",defaultValue:void 0,description:"Node Environment. Example: 'development' or 'production'"},ORCHESTRATOR_URL:{key:"ORCHESTRATOR_URL",isSecret:!1,type:"string",defaultValue:"http://localhost",description:"Paima Engine Orchestrator URL. Example: 'http://localhost'"},ORCHESTRATOR_PORT:{key:"ORCHESTRATOR_PORT",isSecret:!1,type:"number",defaultValue:3e3,description:"Paima Engine Orchestrator Port. Used by the TUI to monitor processes. Example: '3000'"},TUI_LOG_URL:{key:"TUI_LOG_URL",isSecret:!1,type:"string",defaultValue:"http://localhost",description:"TUI Log URL. Example: 'http://localhost'"},TUI_LOG_PORT:{key:"TUI_LOG_PORT",isSecret:!1,type:"number",defaultValue:11033,description:"TUI Log Port. Example: '11033'"},SHELL:{isSystem:!0,key:"SHELL",isSecret:!1,type:"string",defaultValue:void 0,description:"System shell path. This is set by the OS. Used to run TUI/tmux commands"},TMUX:{isSystem:!0,key:"TMUX",isSecret:!1,type:"string",defaultValue:void 0,description:"System tmux path. This is set by Tmux itself. Used to check if the process is running in a tmux session"},RECAPTCHA_V3_FRONTEND:{key:"RECAPTCHA_V3_FRONTEND",isSecret:!1,type:"string",defaultValue:void 0,description:"ReCaptcha V3 Frontend Key. Used by the Batcher to verify requests. Leave empty to disable. Example: '6Lc123456789012345678901234567890'"},BATCHER_PORT:{key:"BATCHER_PORT",isSecret:!1,type:"number",defaultValue:3334,description:"Batcher Port. Example: '3334'"},STORE_HISTORICAL_GAME_INPUTS:{key:"STORE_HISTORICAL_GAME_INPUTS",isSecret:!1,type:"boolean",defaultValue:!0,description:"Store Historical Game Inputs. Example: 'true' or 'false'"},MQTT_BROKER:{key:"MQTT_BROKER",isSecret:!1,type:"boolean",defaultValue:!0,description:"MQTT Broker. Example: 'true' or 'false'"},MQTT_ENGINE_BROKER_URL:{key:"MQTT_ENGINE_BROKER_URL",isSecret:!1,type:"string",defaultValue:"ws://127.0.0.1:8883",description:"MQTT Engine Broker URL. Example: 'ws://127.0.0.1:8883'"},MQTT_ENGINE_BROKER_PORT:{key:"MQTT_ENGINE_BROKER_PORT",isSecret:!1,type:"number",defaultValue:8883,description:"MQTT Engine Broker Port. Example: '8883'"},MQTT_BATCHER_BROKER_URL:{key:"MQTT_BATCHER_BROKER_URL",isSecret:!1,type:"string",defaultValue:"ws://127.0.0.1:8884",description:"MQTT Batcher Broker URL. Example: 'ws://127.0.0.1:8884'"},MQTT_BATCHER_BROKER_PORT:{key:"MQTT_BATCHER_BROKER_PORT",isSecret:!1,type:"number",defaultValue:8884,description:"MQTT Batcher Broker Port. Example: '8884'"},PAIMA_API_PORT:{key:"PAIMA_API_PORT",isSecret:!1,type:"number",defaultValue:9999,description:"Main Paima API Port. Used by developers custom endpoints and RPC endpoints. Example: '9999'"},PAIMA_EXPLORER_PORT:{key:"PAIMA_EXPLORER_PORT",isSecret:!1,type:"number",defaultValue:10590,description:"Explorer Port. Example: '10590'"},PAIMA_CHAIN_ID:{key:"PAIMA_CHAIN_ID",isSecret:!1,type:"number",defaultValue:87401284021,description:"Paima Chain ID. Example: '87401284021'"},PGLITE:{key:"PGLITE",isSecret:!1,type:"boolean",defaultValue:!0,description:"Enable single connection mode and other specific PGLite features. IMPORTANT enable only for development. ('true' or 'false')"},DEBUG_PGLITE:{key:"DEBUG_PGLITE",isSecret:!1,type:"number",defaultValue:void 0,description:"Enable PGLite Debug/Verbose mode. Example: '1'"},OTEL_COLLECTOR_PORT:{key:"OTEL_COLLECTOR_PORT",isSecret:!1,type:"number",defaultValue:4318,description:"OTEL Collector Port. Example: '4318'"},DOCS_PORT:{key:"DOCS_PORT",isSecret:!1,type:"number",defaultValue:10600,description:"Docs Port. Example: '10600'"}};class ut{static get MQTT_BROKER(){return ut.getConfig(Vt.MQTT_BROKER)}static get MQTT_ENGINE_BROKER_PORT(){return ut.getConfig(Vt.MQTT_ENGINE_BROKER_PORT)}static get MQTT_BATCHER_BROKER_PORT(){return ut.getConfig(Vt.MQTT_BATCHER_BROKER_PORT)}static get MQTT_ENGINE_BROKER_URL(){return ut.getConfig(Vt.MQTT_ENGINE_BROKER_URL)}static get MQTT_BATCHER_BROKER_URL(){return ut.getConfig(Vt.MQTT_BATCHER_BROKER_URL)}static get DB_HOST(){return ut.getConfig(Vt.DB_HOST)}static get DB_NAME(){return ut.getConfig(Vt.DB_NAME)}static get DB_PORT(){return ut.getConfig(Vt.DB_PORT)}static get DB_PW(){return ut.getConfig(Vt.DB_PW)}static get DB_USER(){return ut.getConfig(Vt.DB_USER)}static get NODE_ENV(){return ut.getConfig(Vt.NODE_ENV)}static get ORCHESTRATOR_URL(){return ut.getConfig(Vt.ORCHESTRATOR_URL)}static get ORCHESTRATOR_PORT(){return ut.getConfig(Vt.ORCHESTRATOR_PORT)}static get TUI_LOG_URL(){return ut.getConfig(Vt.TUI_LOG_URL)}static get TUI_LOG_PORT(){return ut.getConfig(Vt.TUI_LOG_PORT)}static get SHELL(){return ut.getConfig(Vt.SHELL)}static get TMUX(){return ut.getConfig(Vt.TMUX)}static get PAIMA_API_PORT(){return ut.getConfig(Vt.PAIMA_API_PORT)}static get RECAPTCHA_V3_FRONTEND(){return ut.getConfig(Vt.RECAPTCHA_V3_FRONTEND)}static get BATCHER_PORT(){return ut.getConfig(Vt.BATCHER_PORT)}static get PAIMA_EXPLORER_PORT(){return ut.getConfig(Vt.PAIMA_EXPLORER_PORT)}static get PAIMA_CHAIN_ID(){return ut.getConfig(Vt.PAIMA_CHAIN_ID)}static get PGLITE(){return ut.getConfig(Vt.PGLITE)}static get DEBUG_PGLITE(){return ut.getConfig(Vt.DEBUG_PGLITE)}static get OTEL_COLLECTOR_PORT(){return ut.getConfig(Vt.OTEL_COLLECTOR_PORT)}static get DOCS_PORT(){return ut.getConfig(Vt.DOCS_PORT)}static getConfig(n){switch(n.type){case"string":return ut.getString(n.key,n.defaultValue);case"number":return ut.getNumber(n.key,n.defaultValue);case"boolean":return ut.getBoolean(n.key,n.defaultValue);default:throw new Error(`Invalid config type: ${n}`)}}static getCurrentConfig(n=!1){const i="********",a={};return Object.entries(Vt).forEach(([u,l])=>{l.isSecret?a[u]=n?ut[u]:i:a[u]=ut[u]}),a}static getDocumentation(){return Object.fromEntries(Object.entries(Vt).map(([n,i])=>[n,{defaultValue:i.defaultValue,description:i.description}]))}static getBoolean(n,i=!1){const a=ut.getEnv(n);return a==null||a===""?i:["true","1","yes"].includes(a.toLowerCase())}static getNumber(n,i=0){const a=ut.getEnv(n);return a==null||a===""?i:parseInt(a,10)}static getString(n,i=""){return ut.getEnv(n)??i}static getEnv(n){try{return Deno.env.get(n)}catch{return Rt.env[n]}}}function J7(e){return En(e)&&!Hr(e)&&!yp(e)&&Symbol.asyncIterator in e}function Hr(e){return Array.isArray(e)}function S8(e){return typeof e=="bigint"}function gp(e){return typeof e=="boolean"}function DS(e){return e instanceof globalThis.Date}function W7(e){return typeof e=="function"}function ez(e){return En(e)&&!Hr(e)&&!yp(e)&&Symbol.iterator in e}function tz(e){return e===null}function To(e){return typeof e=="number"}function En(e){return typeof e=="object"&&e!==null}function I8(e){return e instanceof globalThis.RegExp}function mn(e){return typeof e=="string"}function nz(e){return typeof e=="symbol"}function yp(e){return e instanceof globalThis.Uint8Array}function vn(e){return e===void 0}function rz(e){return e.map(n=>eg(n))}function iz(e){return new Date(e.getTime())}function oz(e){return new Uint8Array(e)}function az(e){return new RegExp(e.source,e.flags)}function sz(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 n}function eg(e){return Hr(e)?rz(e):DS(e)?iz(e):yp(e)?oz(e):I8(e)?az(e):En(e)?sz(e):e}function ri(e){return eg(e)}function BS(e,n){return ri(n===void 0?e:{...n,...e})}function C8(e){return ii(e)&&globalThis.Symbol.asyncIterator in e}function T8(e){return ii(e)&&globalThis.Symbol.iterator in e}function O8(e){return e instanceof globalThis.Promise}function bp(e){return e instanceof Date&&globalThis.Number.isFinite(e.getTime())}function uz(e){return e instanceof globalThis.Map}function lz(e){return e instanceof globalThis.Set}function cz(e){return globalThis.ArrayBuffer.isView(e)}function US(e){return e instanceof globalThis.Uint8Array}function R8(e,n){return n in e}function ii(e){return e!==null&&typeof e=="object"}function oi(e){return globalThis.Array.isArray(e)&&!globalThis.ArrayBuffer.isView(e)}function Ro(e){return e===void 0}function wg(e){return e===null}function Sg(e){return typeof e=="boolean"}function ha(e){return typeof e=="number"}function F8(e){return globalThis.Number.isInteger(e)}function Ig(e){return typeof e=="bigint"}function wo(e){return typeof e=="string"}function MS(e){return typeof e=="function"}function Cg(e){return typeof e=="symbol"}function N8(e){return Ig(e)||Sg(e)||wg(e)||ha(e)||wo(e)||Cg(e)||Ro(e)}var Lr;(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=ii(f);return e.AllowArrayObject?p:p&&!oi(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?ha(f):Number.isFinite(f)}e.IsNumberLike=u;function l(f){const p=Ro(f);return e.AllowNullVoid?p||f===null:p}e.IsVoidLike=l})(Lr||(Lr={}));function fz(e){return globalThis.Object.freeze(e).map(n=>tg(n))}function dz(e){const n={};for(const i of Object.getOwnPropertyNames(e))n[i]=tg(e[i]);for(const i of Object.getOwnPropertySymbols(e))n[i]=tg(e[i]);return globalThis.Object.freeze(n)}function tg(e){return Hr(e)?fz(e):DS(e)?e:yp(e)?e:I8(e)?e:En(e)?dz(e):e}function Ve(e,n){const i=n!==void 0?{...n,...e}:e;switch(Lr.InstanceMode){case"freeze":return tg(i);case"clone":return ri(i);default:return i}}class ci extends Error{constructor(n){super(n)}}const ti=Symbol.for("TypeBox.Transform"),Ap=Symbol.for("TypeBox.Readonly"),va=Symbol.for("TypeBox.Optional"),Tg=Symbol.for("TypeBox.Hint"),Xe=Symbol.for("TypeBox.Kind");function _S(e){return En(e)&&e[Ap]==="Readonly"}function ms(e){return En(e)&&e[va]==="Optional"}function D8(e){return Nt(e,"Any")}function B8(e){return Nt(e,"Argument")}function yc(e){return Nt(e,"Array")}function Og(e){return Nt(e,"AsyncIterator")}function Rg(e){return Nt(e,"BigInt")}function vp(e){return Nt(e,"Boolean")}function bc(e){return Nt(e,"Computed")}function Ac(e){return Nt(e,"Constructor")}function pz(e){return Nt(e,"Date")}function vc(e){return Nt(e,"Function")}function xc(e){return Nt(e,"Integer")}function Di(e){return Nt(e,"Intersect")}function Fg(e){return Nt(e,"Iterator")}function Nt(e,n){return En(e)&&Xe in e&&e[Xe]===n}function U8(e){return gp(e)||To(e)||mn(e)}function Bu(e){return Nt(e,"Literal")}function Uu(e){return Nt(e,"MappedKey")}function fi(e){return Nt(e,"MappedResult")}function xp(e){return Nt(e,"Never")}function hz(e){return Nt(e,"Not")}function PS(e){return Nt(e,"Null")}function Ec(e){return Nt(e,"Number")}function Wi(e){return Nt(e,"Object")}function Ng(e){return Nt(e,"Promise")}function Dg(e){return Nt(e,"Record")}function kr(e){return Nt(e,"Ref")}function M8(e){return Nt(e,"RegExp")}function Ep(e){return Nt(e,"String")}function jS(e){return Nt(e,"Symbol")}function Mu(e){return Nt(e,"TemplateLiteral")}function mz(e){return Nt(e,"This")}function nn(e){return En(e)&&ti in e}function _u(e){return Nt(e,"Tuple")}function Bg(e){return Nt(e,"Undefined")}function kn(e){return Nt(e,"Union")}function gz(e){return Nt(e,"Uint8Array")}function yz(e){return Nt(e,"Unknown")}function bz(e){return Nt(e,"Unsafe")}function Az(e){return Nt(e,"Void")}function _8(e){return En(e)&&Xe in e&&mn(e[Xe])}function ni(e){return D8(e)||B8(e)||yc(e)||vp(e)||Rg(e)||Og(e)||bc(e)||Ac(e)||pz(e)||vc(e)||xc(e)||Di(e)||Fg(e)||Bu(e)||Uu(e)||fi(e)||xp(e)||hz(e)||PS(e)||Ec(e)||Wi(e)||Ng(e)||Dg(e)||kr(e)||M8(e)||Ep(e)||jS(e)||Mu(e)||mz(e)||_u(e)||Bg(e)||kn(e)||gz(e)||yz(e)||bz(e)||Az(e)||_8(e)}const vz=["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 P8(e){try{return new RegExp(e),!0}catch{return!1}}function LS(e){if(!mn(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 j8(e){return kS(e)||tr(e)}function cd(e){return vn(e)||S8(e)}function Kt(e){return vn(e)||To(e)}function kS(e){return vn(e)||gp(e)}function $t(e){return vn(e)||mn(e)}function xz(e){return vn(e)||mn(e)&&LS(e)&&P8(e)}function Ez(e){return vn(e)||mn(e)&&LS(e)}function L8(e){return vn(e)||tr(e)}function ng(e){return En(e)&&e[va]==="Optional"}function Yi(e){return Dt(e,"Any")&&$t(e.$id)}function wz(e){return Dt(e,"Argument")&&To(e.index)}function Pu(e){return Dt(e,"Array")&&e.type==="array"&&$t(e.$id)&&tr(e.items)&&Kt(e.minItems)&&Kt(e.maxItems)&&kS(e.uniqueItems)&&L8(e.contains)&&Kt(e.minContains)&&Kt(e.maxContains)}function $S(e){return Dt(e,"AsyncIterator")&&e.type==="AsyncIterator"&&$t(e.$id)&&tr(e.items)}function Ug(e){return Dt(e,"BigInt")&&e.type==="bigint"&&$t(e.$id)&&cd(e.exclusiveMaximum)&&cd(e.exclusiveMinimum)&&cd(e.maximum)&&cd(e.minimum)&&cd(e.multipleOf)}function ju(e){return Dt(e,"Boolean")&&e.type==="boolean"&&$t(e.$id)}function Sz(e){return Dt(e,"Computed")&&mn(e.target)&&Hr(e.parameters)&&e.parameters.every(n=>tr(n))}function Mg(e){return Dt(e,"Constructor")&&e.type==="Constructor"&&$t(e.$id)&&Hr(e.parameters)&&e.parameters.every(n=>tr(n))&&tr(e.returns)}function _g(e){return Dt(e,"Date")&&e.type==="Date"&&$t(e.$id)&&Kt(e.exclusiveMaximumTimestamp)&&Kt(e.exclusiveMinimumTimestamp)&&Kt(e.maximumTimestamp)&&Kt(e.minimumTimestamp)&&Kt(e.multipleOfTimestamp)}function Pg(e){return Dt(e,"Function")&&e.type==="Function"&&$t(e.$id)&&Hr(e.parameters)&&e.parameters.every(n=>tr(n))&&tr(e.returns)}function xa(e){return Dt(e,"Integer")&&e.type==="integer"&&$t(e.$id)&&Kt(e.exclusiveMaximum)&&Kt(e.exclusiveMinimum)&&Kt(e.maximum)&&Kt(e.minimum)&&Kt(e.multipleOf)}function k8(e){return En(e)&&Object.entries(e).every(([n,i])=>LS(n)&&tr(i))}function Lu(e){return Dt(e,"Intersect")&&!(mn(e.type)&&e.type!=="object")&&Hr(e.allOf)&&e.allOf.every(n=>tr(n)&&!Fz(n))&&$t(e.type)&&(kS(e.unevaluatedProperties)||L8(e.unevaluatedProperties))&&$t(e.$id)}function qS(e){return Dt(e,"Iterator")&&e.type==="Iterator"&&$t(e.$id)&&tr(e.items)}function Dt(e,n){return En(e)&&Xe in e&&e[Xe]===n}function $8(e){return gs(e)&&mn(e.const)}function q8(e){return gs(e)&&To(e.const)}function H8(e){return gs(e)&&gp(e.const)}function gs(e){return Dt(e,"Literal")&&$t(e.$id)&&Iz(e.const)}function Iz(e){return gp(e)||To(e)||mn(e)}function Cz(e){return Dt(e,"MappedKey")&&Hr(e.keys)&&e.keys.every(n=>To(n)||mn(n))}function Tz(e){return Dt(e,"MappedResult")&&k8(e.properties)}function ys(e){return Dt(e,"Never")&&En(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function cc(e){return Dt(e,"Not")&&tr(e.not)}function HS(e){return Dt(e,"Null")&&e.type==="null"&&$t(e.$id)}function _r(e){return Dt(e,"Number")&&e.type==="number"&&$t(e.$id)&&Kt(e.exclusiveMaximum)&&Kt(e.exclusiveMinimum)&&Kt(e.maximum)&&Kt(e.minimum)&&Kt(e.multipleOf)}function rn(e){return Dt(e,"Object")&&e.type==="object"&&$t(e.$id)&&k8(e.properties)&&j8(e.additionalProperties)&&Kt(e.minProperties)&&Kt(e.maxProperties)}function zS(e){return Dt(e,"Promise")&&e.type==="Promise"&&$t(e.$id)&&tr(e.item)}function er(e){return Dt(e,"Record")&&e.type==="object"&&$t(e.$id)&&j8(e.additionalProperties)&&En(e.patternProperties)&&(n=>{const i=Object.getOwnPropertyNames(n.patternProperties);return i.length===1&&P8(i[0])&&En(n.patternProperties)&&tr(n.patternProperties[i[0]])})(e)}function Oz(e){return Dt(e,"Ref")&&$t(e.$id)&&mn(e.$ref)}function Wd(e){return Dt(e,"RegExp")&&$t(e.$id)&&mn(e.source)&&mn(e.flags)&&Kt(e.maxLength)&&Kt(e.minLength)}function Ki(e){return Dt(e,"String")&&e.type==="string"&&$t(e.$id)&&Kt(e.minLength)&&Kt(e.maxLength)&&xz(e.pattern)&&Ez(e.format)}function ep(e){return Dt(e,"Symbol")&&e.type==="symbol"&&$t(e.$id)}function tp(e){return Dt(e,"TemplateLiteral")&&e.type==="string"&&mn(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function Rz(e){return Dt(e,"This")&&$t(e.$id)&&mn(e.$ref)}function Fz(e){return En(e)&&ti in e}function jg(e){return Dt(e,"Tuple")&&e.type==="array"&&$t(e.$id)&&To(e.minItems)&&To(e.maxItems)&&e.minItems===e.maxItems&&(vn(e.items)&&vn(e.additionalItems)&&e.minItems===0||Hr(e.items)&&e.items.every(n=>tr(n)))}function Ru(e){return Dt(e,"Undefined")&&e.type==="undefined"&&$t(e.$id)}function Aa(e){return Dt(e,"Union")&&$t(e.$id)&&En(e)&&Hr(e.anyOf)&&e.anyOf.every(n=>tr(n))}function wp(e){return Dt(e,"Uint8Array")&&e.type==="Uint8Array"&&$t(e.$id)&&Kt(e.minByteLength)&&Kt(e.maxByteLength)}function Xi(e){return Dt(e,"Unknown")&&$t(e.$id)}function Nz(e){return Dt(e,"Unsafe")}function Lg(e){return Dt(e,"Void")&&e.type==="void"&&$t(e.$id)}function Dz(e){return En(e)&&Xe in e&&mn(e[Xe])&&!vz.includes(e[Xe])}function tr(e){return En(e)&&(Yi(e)||wz(e)||Pu(e)||ju(e)||Ug(e)||$S(e)||Sz(e)||Mg(e)||_g(e)||Pg(e)||xa(e)||Lu(e)||qS(e)||gs(e)||Cz(e)||Tz(e)||ys(e)||cc(e)||HS(e)||_r(e)||rn(e)||zS(e)||er(e)||Oz(e)||Wd(e)||Ki(e)||ep(e)||tp(e)||Rz(e)||jg(e)||Ru(e)||Aa(e)||wp(e)||Xi(e)||Nz(e)||Lg(e)||Dz(e))}const Bz="(true|false)",Vm="(0|[1-9][0-9]*)",z8="(.*)",Uz="(?!.*)",fc=`^${Vm}$`,dc=`^${z8}$`,Mz=`^${Uz}$`,VS=new Map;function V8(e){return VS.has(e)}function Fo(e,n){VS.set(e,n)}function G8(e){return VS.get(e)}const Q8=new Map;function GS(e){return Q8.has(e)}function Y8(e){return Q8.get(e)}function _z(e,n){return e.includes(n)}function Pz(e){return[...new Set(e)]}function jz(e,n){return e.filter(i=>n.includes(i))}function Lz(e,n){return e.reduce((i,a)=>jz(i,a),n)}function kz(e){return e.length===1?e[0]:e.length>1?Lz(e.slice(1),e[0]):[]}function $z(e){const n=[];for(const i of e)n.push(...i);return n}function np(e){return Ve({[Xe]:"Any"},e)}function QS(e,n){return Ve({[Xe]:"Array",type:"array",items:e},n)}function qz(e){return Ve({[Xe]:"Argument",index:e})}function YS(e,n){return Ve({[Xe]:"AsyncIterator",type:"AsyncIterator",items:e},n)}function On(e,n,i){return Ve({[Xe]:"Computed",target:e,parameters:n},i)}function Hz(e,n){const{[n]:i,...a}=e;return a}function ai(e,n){return n.reduce((i,a)=>Hz(i,a),e)}function ln(e){return Ve({[Xe]:"Never",not:{}},e)}function nr(e){return Ve({[Xe]:"MappedResult",properties:e})}function KS(e,n,i){return Ve({[Xe]:"Constructor",type:"Constructor",parameters:e,returns:n},i)}function Sp(e,n,i){return Ve({[Xe]:"Function",type:"Function",parameters:e,returns:n},i)}function Vw(e,n){return Ve({[Xe]:"Union",anyOf:e},n)}function zz(e){return e.some(n=>ms(n))}function UN(e){return e.map(n=>ms(n)?Vz(n):n)}function Vz(e){return ai(e,[va])}function Gz(e,n){return zz(e)?vs(Vw(UN(e),n)):Vw(UN(e),n)}function wc(e,n){return e.length===1?Ve(e[0],n):e.length===0?ln(n):Gz(e,n)}function rr(e,n){return e.length===0?ln(n):e.length===1?Ve(e[0],n):Vw(e,n)}class MN extends ci{}function Qz(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function XS(e,n,i){return e[n]===i&&e.charCodeAt(n-1)!==92}function ma(e,n){return XS(e,n,"(")}function rp(e,n){return XS(e,n,")")}function K8(e,n){return XS(e,n,"|")}function Yz(e){if(!(ma(e,0)&&rp(e,e.length-1)))return!1;let n=0;for(let i=0;i<e.length;i++)if(ma(e,i)&&(n+=1),rp(e,i)&&(n-=1),n===0&&i!==e.length-1)return!1;return!0}function Kz(e){return e.slice(1,e.length-1)}function Xz(e){let n=0;for(let i=0;i<e.length;i++)if(ma(e,i)&&(n+=1),rp(e,i)&&(n-=1),K8(e,i)&&n===0)return!0;return!1}function Zz(e){for(let n=0;n<e.length;n++)if(ma(e,n))return!0;return!1}function Jz(e){let[n,i]=[0,0];const a=[];for(let l=0;l<e.length;l++)if(ma(e,l)&&(n+=1),rp(e,l)&&(n-=1),K8(e,l)&&n===0){const f=e.slice(i,l);f.length>0&&a.push(pc(f)),i=l+1}const u=e.slice(i);return u.length>0&&a.push(pc(u)),a.length===0?{type:"const",const:""}:a.length===1?a[0]:{type:"or",expr:a}}function Wz(e){function n(u,l){if(!ma(u,l))throw new MN("TemplateLiteralParser: Index must point to open parens");let f=0;for(let p=l;p<u.length;p++)if(ma(u,p)&&(f+=1),rp(u,p)&&(f-=1),f===0)return[l,p];throw new MN("TemplateLiteralParser: Unclosed group parens in expression")}function i(u,l){for(let f=l;f<u.length;f++)if(ma(u,f))return[l,f];return[l,u.length]}const a=[];for(let u=0;u<e.length;u++)if(ma(e,u)){const[l,f]=n(e,u),p=e.slice(l,f+1);a.push(pc(p)),u=f}else{const[l,f]=i(e,u),p=e.slice(l,f);p.length>0&&a.push(pc(p)),u=f-1}return a.length===0?{type:"const",const:""}:a.length===1?a[0]:{type:"and",expr:a}}function pc(e){return Yz(e)?pc(Kz(e)):Xz(e)?Jz(e):Zz(e)?Wz(e):{type:"const",const:Qz(e)}}function ZS(e){return pc(e.slice(1,e.length-1))}class e2 extends ci{}function t2(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 n2(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 r2(e){return e.type==="const"&&e.const===".*"}function ip(e){return t2(e)||r2(e)?!1:n2(e)?!0:e.type==="and"?e.expr.every(n=>ip(n)):e.type==="or"?e.expr.every(n=>ip(n)):e.type==="const"?!0:(()=>{throw new e2("Unknown expression type")})()}function i2(e){const n=ZS(e.pattern);return ip(n)}class o2 extends ci{}function*X8(e){if(e.length===1)return yield*e[0];for(const n of e[0])for(const i of X8(e.slice(1)))yield`${n}${i}`}function*a2(e){return yield*X8(e.expr.map(n=>[...kg(n)]))}function*s2(e){for(const n of e.expr)yield*kg(n)}function*u2(e){return yield e.const}function*kg(e){return e.type==="and"?yield*a2(e):e.type==="or"?yield*s2(e):e.type==="const"?yield*u2(e):(()=>{throw new o2("Unknown expression")})()}function Z8(e){const n=ZS(e.pattern);return ip(n)?[...kg(n)]:[]}function xn(e,n){return Ve({[Xe]:"Literal",const:e,type:typeof e},n)}function J8(e){return Ve({[Xe]:"Boolean",type:"boolean"},e)}function JS(e){return Ve({[Xe]:"BigInt",type:"bigint"},e)}function ku(e){return Ve({[Xe]:"Number",type:"number"},e)}function Fu(e){return Ve({[Xe]:"String",type:"string"},e)}function*l2(e){const n=e.trim().replace(/"|'/g,"");return n==="boolean"?yield J8():n==="number"?yield ku():n==="bigint"?yield JS():n==="string"?yield Fu():yield(()=>{const i=n.split("|").map(a=>xn(a.trim()));return i.length===0?ln():i.length===1?i[0]:wc(i)})()}function*c2(e){if(e[1]!=="{"){const n=xn("$"),i=Gw(e.slice(1));return yield*[n,...i]}for(let n=2;n<e.length;n++)if(e[n]==="}"){const i=l2(e.slice(2,n)),a=Gw(e.slice(n+1));return yield*[...i,...a]}yield xn(e)}function*Gw(e){for(let n=0;n<e.length;n++)if(e[n]==="$"){const i=xn(e.slice(0,n)),a=c2(e.slice(n));return yield*[i,...a]}yield xn(e)}function f2(e){return[...Gw(e)]}class d2 extends ci{}function p2(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function W8(e,n){return Mu(e)?e.pattern.slice(1,e.pattern.length-1):kn(e)?`(${e.anyOf.map(i=>W8(i,n)).join("|")})`:Ec(e)?`${n}${Vm}`:xc(e)?`${n}${Vm}`:Rg(e)?`${n}${Vm}`:Ep(e)?`${n}${z8}`:Bu(e)?`${n}${p2(e.const.toString())}`:vp(e)?`${n}${Bz}`:(()=>{throw new d2(`Unexpected Kind '${e[Xe]}'`)})()}function _N(e){return`^${e.map(n=>W8(n,"")).join("")}$`}function rg(e){const i=Z8(e).map(a=>xn(a));return wc(i)}function e4(e,n){const i=mn(e)?_N(f2(e)):_N(e);return Ve({[Xe]:"TemplateLiteral",type:"string",pattern:i},n)}function h2(e){return Z8(e).map(i=>i.toString())}function m2(e){const n=[];for(const i of e)n.push(...bs(i));return n}function g2(e){return[e.toString()]}function bs(e){return[...new Set(Mu(e)?h2(e):kn(e)?m2(e.anyOf):Bu(e)?g2(e.const):Ec(e)?["[number]"]:xc(e)?["[number]"]:[])]}function y2(e,n,i){const a={};for(const u of Object.getOwnPropertyNames(n))a[u]=$g(e,bs(n[u]),i);return a}function b2(e,n,i){return y2(e,n.properties,i)}function A2(e,n,i){const a=b2(e,n,i);return nr(a)}function t4(e,n){return e.map(i=>n4(i,n))}function v2(e){return e.filter(n=>!xp(n))}function x2(e,n){return o4(v2(t4(e,n)))}function E2(e){return e.some(n=>xp(n))?[]:e}function w2(e,n){return wc(E2(t4(e,n)))}function S2(e,n){return n in e?e[n]:n==="[number]"?wc(e):ln()}function I2(e,n){return n==="[number]"?e:ln()}function C2(e,n){return n in e?e[n]:ln()}function n4(e,n){return Di(e)?x2(e.allOf,n):kn(e)?w2(e.anyOf,n):_u(e)?S2(e.items??[],n):yc(e)?I2(e.items,n):Wi(e)?C2(e.properties,n):ln()}function WS(e,n){return n.map(i=>n4(e,i))}function PN(e,n){return wc(WS(e,n))}function $g(e,n,i){if(kr(e)||kr(n)){const a="Index types using Ref parameters require both Type and Key to be of TSchema";if(!ni(e)||!ni(n))throw new ci(a);return On("Index",[e,n])}return fi(n)?A2(e,n,i):Uu(n)?F2(e,n,i):Ve(ni(n)?PN(e,bs(n)):PN(e,n),i)}function T2(e,n,i){return{[n]:$g(e,[n],ri(i))}}function O2(e,n,i){return n.reduce((a,u)=>({...a,...T2(e,u,i)}),{})}function R2(e,n,i){return O2(e,n.keys,i)}function F2(e,n,i){const a=R2(e,n,i);return nr(a)}function eI(e,n){return Ve({[Xe]:"Iterator",type:"Iterator",items:e},n)}function N2(e){const n=[];for(let i in e)ms(e[i])||n.push(i);return n}function D2(e,n){const i=N2(e),a=i.length>0?{[Xe]:"Object",type:"object",properties:e,required:i}:{[Xe]:"Object",type:"object",properties:e};return Ve(a,n)}var jn=D2;function r4(e,n){return Ve({[Xe]:"Promise",type:"Promise",item:e},n)}function B2(e){return Ve(ai(e,[Ap]))}function U2(e){return Ve({...e,[Ap]:"Readonly"})}function M2(e,n){return n===!1?B2(e):U2(e)}function As(e,n){const i=n??!0;return fi(e)?j2(e,i):M2(e,i)}function _2(e,n){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=As(e[a],n);return i}function P2(e,n){return _2(e.properties,n)}function j2(e,n){const i=P2(e,n);return nr(i)}function Sc(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 i4(e,n){return e in n?Fi(e,n[e]):nr(n)}function L2(e){return{[e]:xn(e)}}function k2(e){const n={};for(const i of e)n[i]=xn(i);return n}function $2(e,n){return _z(n,e)?L2(e):k2(n)}function q2(e,n){const i=$2(e,n);return i4(e,i)}function fd(e,n){return n.map(i=>Fi(e,i))}function H2(e,n){const i={};for(const a of globalThis.Object.getOwnPropertyNames(n))i[a]=Fi(e,n[a]);return i}function Fi(e,n){const i={...n};return ms(n)?vs(Fi(e,ai(n,[va]))):_S(n)?As(Fi(e,ai(n,[Ap]))):fi(n)?i4(e,n.properties):Uu(n)?q2(e,n.keys):Ac(n)?KS(fd(e,n.parameters),Fi(e,n.returns),i):vc(n)?Sp(fd(e,n.parameters),Fi(e,n.returns),i):Og(n)?YS(Fi(e,n.items),i):Fg(n)?eI(Fi(e,n.items),i):Di(n)?xs(fd(e,n.allOf),i):kn(n)?rr(fd(e,n.anyOf),i):_u(n)?Sc(fd(e,n.items??[]),i):Wi(n)?jn(H2(e,n.properties),i):yc(n)?QS(Fi(e,n.items),i):Ng(n)?r4(Fi(e,n.item),i):n}function z2(e,n){const i={};for(const a of e)i[a]=Fi(a,n);return i}function V2(e,n,i){const a=ni(e)?bs(e):e,u=n({[Xe]:"MappedKey",keys:a}),l=z2(a,u);return jn(l,i)}function G2(e){return Ve(ai(e,[va]))}function Q2(e){return Ve({...e,[va]:"Optional"})}function Y2(e,n){return n===!1?G2(e):Q2(e)}function vs(e,n){const i=n??!0;return fi(e)?Z2(e,i):Y2(e,i)}function K2(e,n){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=vs(e[a],n);return i}function X2(e,n){return K2(e.properties,n)}function Z2(e,n){const i=X2(e,n);return nr(i)}function Qw(e,n={}){const i=e.every(u=>Wi(u)),a=ni(n.unevaluatedProperties)?{unevaluatedProperties:n.unevaluatedProperties}:{};return Ve(n.unevaluatedProperties===!1||ni(n.unevaluatedProperties)||i?{...a,[Xe]:"Intersect",type:"object",allOf:e}:{...a,[Xe]:"Intersect",allOf:e},n)}function J2(e){return e.every(n=>ms(n))}function W2(e){return ai(e,[va])}function jN(e){return e.map(n=>ms(n)?W2(n):n)}function e9(e,n){return J2(e)?vs(Qw(jN(e),n)):Qw(jN(e),n)}function o4(e,n={}){if(e.length===1)return Ve(e[0],n);if(e.length===0)return ln(n);if(e.some(i=>nn(i)))throw new Error("Cannot intersect transform types");return e9(e,n)}function xs(e,n){if(e.length===1)return Ve(e[0],n);if(e.length===0)return ln(n);if(e.some(i=>nn(i)))throw new Error("Cannot intersect transform types");return Qw(e,n)}function Ip(...e){const[n,i]=typeof e[0]=="string"?[e[0],e[1]]:[e[0].$id,e[1]];if(typeof n!="string")throw new ci("Ref: $ref must be a string");return Ve({[Xe]:"Ref",$ref:n},i)}function t9(e,n){return On("Awaited",[On(e,n)])}function n9(e){return On("Awaited",[Ip(e)])}function r9(e){return xs(a4(e))}function i9(e){return rr(a4(e))}function o9(e){return qg(e)}function a4(e){return e.map(n=>qg(n))}function qg(e,n){return Ve(bc(e)?t9(e.target,e.parameters):Di(e)?r9(e.allOf):kn(e)?i9(e.anyOf):Ng(e)?o9(e.item):kr(e)?n9(e.$ref):e,n)}function s4(e){const n=[];for(const i of e)n.push(Ic(i));return n}function a9(e){const n=s4(e);return $z(n)}function s9(e){const n=s4(e);return kz(n)}function u9(e){return e.map((n,i)=>i.toString())}function l9(e){return["[number]"]}function c9(e){return globalThis.Object.getOwnPropertyNames(e)}function f9(e){return Yw?globalThis.Object.getOwnPropertyNames(e).map(i=>i[0]==="^"&&i[i.length-1]==="$"?i.slice(1,i.length-1):i):[]}function Ic(e){return Di(e)?a9(e.allOf):kn(e)?s9(e.anyOf):_u(e)?u9(e.items??[]):yc(e)?l9(e.items):Wi(e)?c9(e.properties):Dg(e)?f9(e.patternProperties):[]}let Yw=!1;function ig(e){Yw=!0;const n=Ic(e);return Yw=!1,`^(${n.map(a=>`(${a})`).join("|")})$`}function d9(e,n){return On("KeyOf",[On(e,n)])}function p9(e){return On("KeyOf",[Ip(e)])}function h9(e,n){const i=Ic(e),a=m9(i),u=wc(a);return Ve(u,n)}function m9(e){return e.map(n=>n==="[number]"?ku():xn(n))}function tI(e,n){return bc(e)?d9(e.target,e.parameters):kr(e)?p9(e.$ref):fi(e)?b9(e,n):h9(e,n)}function g9(e,n){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=tI(e[a],ri(n));return i}function y9(e,n){return g9(e.properties,n)}function b9(e,n){const i=y9(e,n);return nr(i)}function A9(e){const n=Ic(e),i=WS(e,n);return n.map((a,u)=>[n[u],i[u]])}function v9(e){const n=[];for(const i of e)n.push(...Ic(i));return Pz(n)}function x9(e){return e.filter(n=>!xp(n))}function E9(e,n){const i=[];for(const a of e)i.push(...WS(a,[n]));return x9(i)}function w9(e,n){const i={};for(const a of n)i[a]=o4(E9(e,a));return i}function S9(e,n){const i=v9(e),a=w9(e,i);return jn(a,n)}function u4(e){return Ve({[Xe]:"Date",type:"Date"},e)}function l4(e){return Ve({[Xe]:"Null",type:"null"},e)}function c4(e){return Ve({[Xe]:"Symbol",type:"symbol"},e)}function f4(e){return Ve({[Xe]:"Undefined",type:"undefined"},e)}function d4(e){return Ve({[Xe]:"Uint8Array",type:"Uint8Array"},e)}function Hg(e){return Ve({[Xe]:"Unknown"},e)}function I9(e){return e.map(n=>nI(n,!1))}function C9(e){const n={};for(const i of globalThis.Object.getOwnPropertyNames(e))n[i]=As(nI(e[i],!1));return n}function Um(e,n){return n===!0?e:As(e)}function nI(e,n){return J7(e)||ez(e)?Um(np(),n):Hr(e)?As(Sc(I9(e))):yp(e)?d4():DS(e)?u4():En(e)?Um(jn(C9(e)),n):W7(e)?Um(Sp([],Hg()),n):vn(e)?f4():tz(e)?l4():nz(e)?c4():S8(e)?JS():To(e)||gp(e)||mn(e)?xn(e):jn({})}function T9(e,n){return Ve(nI(e,!0),n)}function O9(e,n){return Ac(e)?Sc(e.parameters,n):ln(n)}function R9(e,n){if(vn(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=>xn(l));return rr(u,{...n,[Tg]:"Enum"})}class F9 extends ci{}var Ue;(function(e){e[e.Union=0]="Union",e[e.True=1]="True",e[e.False=2]="False"})(Ue||(Ue={}));function Ni(e){return e===Ue.False?e:Ue.True}function Cc(e){throw new F9(e)}function wn(e){return ys(e)||Lu(e)||Aa(e)||Xi(e)||Yi(e)}function Sn(e,n){return ys(n)?m4():Lu(n)?zg(e,n):Aa(n)?iI(e,n):Xi(n)?A4():Yi(n)?rI():Cc("StructuralRight")}function rI(e,n){return Ue.True}function N9(e,n){return Lu(n)?zg(e,n):Aa(n)&&n.anyOf.some(i=>Yi(i)||Xi(i))?Ue.True:Aa(n)?Ue.Union:Xi(n)||Yi(n)?Ue.True:Ue.Union}function D9(e,n){return Xi(e)?Ue.False:Yi(e)?Ue.Union:ys(e)?Ue.True:Ue.False}function B9(e,n){return rn(n)&&Vg(n)?Ue.True:wn(n)?Sn(e,n):Pu(n)?Ni(kt(e.items,n.items)):Ue.False}function U9(e,n){return wn(n)?Sn(e,n):$S(n)?Ni(kt(e.items,n.items)):Ue.False}function M9(e,n){return wn(n)?Sn(e,n):rn(n)?pr(e,n):er(n)?Bi(e,n):Ug(n)?Ue.True:Ue.False}function p4(e,n){return H8(e)||ju(e)?Ue.True:Ue.False}function _9(e,n){return wn(n)?Sn(e,n):rn(n)?pr(e,n):er(n)?Bi(e,n):ju(n)?Ue.True:Ue.False}function P9(e,n){return wn(n)?Sn(e,n):rn(n)?pr(e,n):Mg(n)?e.parameters.length>n.parameters.length?Ue.False:e.parameters.every((i,a)=>Ni(kt(n.parameters[a],i))===Ue.True)?Ni(kt(e.returns,n.returns)):Ue.False:Ue.False}function j9(e,n){return wn(n)?Sn(e,n):rn(n)?pr(e,n):er(n)?Bi(e,n):_g(n)?Ue.True:Ue.False}function L9(e,n){return wn(n)?Sn(e,n):rn(n)?pr(e,n):Pg(n)?e.parameters.length>n.parameters.length?Ue.False:e.parameters.every((i,a)=>Ni(kt(n.parameters[a],i))===Ue.True)?Ni(kt(e.returns,n.returns)):Ue.False:Ue.False}function h4(e,n){return gs(e)&&To(e.const)||_r(e)||xa(e)?Ue.True:Ue.False}function k9(e,n){return xa(n)||_r(n)?Ue.True:wn(n)?Sn(e,n):rn(n)?pr(e,n):er(n)?Bi(e,n):Ue.False}function zg(e,n){return n.allOf.every(i=>kt(e,i)===Ue.True)?Ue.True:Ue.False}function $9(e,n){return e.allOf.some(i=>kt(i,n)===Ue.True)?Ue.True:Ue.False}function q9(e,n){return wn(n)?Sn(e,n):qS(n)?Ni(kt(e.items,n.items)):Ue.False}function H9(e,n){return gs(n)&&n.const===e.const?Ue.True:wn(n)?Sn(e,n):rn(n)?pr(e,n):er(n)?Bi(e,n):Ki(n)?b4(e):_r(n)?g4(e):xa(n)?h4(e):ju(n)?p4(e):Ue.False}function m4(e,n){return Ue.False}function z9(e,n){return Ue.True}function LN(e){let[n,i]=[e,0];for(;cc(n);)n=n.not,i+=1;return i%2===0?n:Hg()}function V9(e,n){return cc(e)?kt(LN(e),n):cc(n)?kt(e,LN(n)):Cc("Invalid fallthrough for Not")}function G9(e,n){return wn(n)?Sn(e,n):rn(n)?pr(e,n):er(n)?Bi(e,n):HS(n)?Ue.True:Ue.False}function g4(e,n){return q8(e)||_r(e)||xa(e)?Ue.True:Ue.False}function Q9(e,n){return wn(n)?Sn(e,n):rn(n)?pr(e,n):er(n)?Bi(e,n):xa(n)||_r(n)?Ue.True:Ue.False}function $r(e,n){return Object.getOwnPropertyNames(e.properties).length===n}function kN(e){return Vg(e)}function $N(e){return $r(e,0)||$r(e,1)&&"description"in e.properties&&Aa(e.properties.description)&&e.properties.description.anyOf.length===2&&(Ki(e.properties.description.anyOf[0])&&Ru(e.properties.description.anyOf[1])||Ki(e.properties.description.anyOf[1])&&Ru(e.properties.description.anyOf[0]))}function ZA(e){return $r(e,0)}function qN(e){return $r(e,0)}function Y9(e){return $r(e,0)}function K9(e){return $r(e,0)}function X9(e){return Vg(e)}function Z9(e){const n=ku();return $r(e,0)||$r(e,1)&&"length"in e.properties&&Ni(kt(e.properties.length,n))===Ue.True}function J9(e){return $r(e,0)}function Vg(e){const n=ku();return $r(e,0)||$r(e,1)&&"length"in e.properties&&Ni(kt(e.properties.length,n))===Ue.True}function W9(e){const n=Sp([np()],np());return $r(e,0)||$r(e,1)&&"then"in e.properties&&Ni(kt(e.properties.then,n))===Ue.True}function y4(e,n){return kt(e,n)===Ue.False||ng(e)&&!ng(n)?Ue.False:Ue.True}function pr(e,n){return Xi(e)?Ue.False:Yi(e)?Ue.Union:ys(e)||$8(e)&&kN(n)||q8(e)&&ZA(n)||H8(e)&&qN(n)||ep(e)&&$N(n)||Ug(e)&&Y9(n)||Ki(e)&&kN(n)||ep(e)&&$N(n)||_r(e)&&ZA(n)||xa(e)&&ZA(n)||ju(e)&&qN(n)||wp(e)&&X9(n)||_g(e)&&K9(n)||Mg(e)&&J9(n)||Pg(e)&&Z9(n)?Ue.True:er(e)&&Ki(Kw(e))?n[Tg]==="Record"?Ue.True:Ue.False:er(e)&&_r(Kw(e))?$r(n,0)?Ue.True:Ue.False:Ue.False}function eV(e,n){return wn(n)?Sn(e,n):er(n)?Bi(e,n):rn(n)?(()=>{for(const i of Object.getOwnPropertyNames(n.properties)){if(!(i in e.properties)&&!ng(n.properties[i]))return Ue.False;if(ng(n.properties[i]))return Ue.True;if(y4(e.properties[i],n.properties[i])===Ue.False)return Ue.False}return Ue.True})():Ue.False}function tV(e,n){return wn(n)?Sn(e,n):rn(n)&&W9(n)?Ue.True:zS(n)?Ni(kt(e.item,n.item)):Ue.False}function Kw(e){return fc in e.patternProperties?ku():dc in e.patternProperties?Fu():Cc("Unknown record key pattern")}function Xw(e){return fc in e.patternProperties?e.patternProperties[fc]:dc in e.patternProperties?e.patternProperties[dc]:Cc("Unable to get record value schema")}function Bi(e,n){const[i,a]=[Kw(n),Xw(n)];return $8(e)&&_r(i)&&Ni(kt(e,a))===Ue.True?Ue.True:wp(e)&&_r(i)||Ki(e)&&_r(i)||Pu(e)&&_r(i)?kt(e,a):rn(e)?(()=>{for(const u of Object.getOwnPropertyNames(e.properties))if(y4(a,e.properties[u])===Ue.False)return Ue.False;return Ue.True})():Ue.False}function nV(e,n){return wn(n)?Sn(e,n):rn(n)?pr(e,n):er(n)?kt(Xw(e),Xw(n)):Ue.False}function rV(e,n){const i=Wd(e)?Fu():e,a=Wd(n)?Fu():n;return kt(i,a)}function b4(e,n){return gs(e)&&mn(e.const)||Ki(e)?Ue.True:Ue.False}function iV(e,n){return wn(n)?Sn(e,n):rn(n)?pr(e,n):er(n)?Bi(e,n):Ki(n)?Ue.True:Ue.False}function oV(e,n){return wn(n)?Sn(e,n):rn(n)?pr(e,n):er(n)?Bi(e,n):ep(n)?Ue.True:Ue.False}function aV(e,n){return tp(e)?kt(rg(e),n):tp(n)?kt(e,rg(n)):Cc("Invalid fallthrough for TemplateLiteral")}function sV(e,n){return Pu(n)&&e.items!==void 0&&e.items.every(i=>kt(i,n.items)===Ue.True)}function uV(e,n){return ys(e)?Ue.True:Xi(e)?Ue.False:Yi(e)?Ue.Union:Ue.False}function lV(e,n){return wn(n)?Sn(e,n):rn(n)&&Vg(n)||Pu(n)&&sV(e,n)?Ue.True:jg(n)?vn(e.items)&&!vn(n.items)||!vn(e.items)&&vn(n.items)?Ue.False:vn(e.items)&&!vn(n.items)||e.items.every((i,a)=>kt(i,n.items[a])===Ue.True)?Ue.True:Ue.False:Ue.False}function cV(e,n){return wn(n)?Sn(e,n):rn(n)?pr(e,n):er(n)?Bi(e,n):wp(n)?Ue.True:Ue.False}function fV(e,n){return wn(n)?Sn(e,n):rn(n)?pr(e,n):er(n)?Bi(e,n):Lg(n)?hV(e):Ru(n)?Ue.True:Ue.False}function iI(e,n){return n.anyOf.some(i=>kt(e,i)===Ue.True)?Ue.True:Ue.False}function dV(e,n){return e.anyOf.every(i=>kt(i,n)===Ue.True)?Ue.True:Ue.False}function A4(e,n){return Ue.True}function pV(e,n){return ys(n)?m4():Lu(n)?zg(e,n):Aa(n)?iI(e,n):Yi(n)?rI():Ki(n)?b4(e):_r(n)?g4(e):xa(n)?h4(e):ju(n)?p4(e):Pu(n)?D9(e):jg(n)?uV(e):rn(n)?pr(e,n):Xi(n)?Ue.True:Ue.False}function hV(e,n){return Ru(e)||Ru(e)?Ue.True:Ue.False}function mV(e,n){return Lu(n)?zg(e,n):Aa(n)?iI(e,n):Xi(n)?A4():Yi(n)?rI():rn(n)?pr(e,n):Lg(n)?Ue.True:Ue.False}function kt(e,n){return tp(e)||tp(n)?aV(e,n):Wd(e)||Wd(n)?rV(e,n):cc(e)||cc(n)?V9(e,n):Yi(e)?N9(e,n):Pu(e)?B9(e,n):Ug(e)?M9(e,n):ju(e)?_9(e,n):$S(e)?U9(e,n):Mg(e)?P9(e,n):_g(e)?j9(e,n):Pg(e)?L9(e,n):xa(e)?k9(e,n):Lu(e)?$9(e,n):qS(e)?q9(e,n):gs(e)?H9(e,n):ys(e)?z9():HS(e)?G9(e,n):_r(e)?Q9(e,n):rn(e)?eV(e,n):er(e)?nV(e,n):Ki(e)?iV(e,n):ep(e)?oV(e,n):jg(e)?lV(e,n):zS(e)?tV(e,n):wp(e)?cV(e,n):Ru(e)?fV(e,n):Aa(e)?dV(e,n):Xi(e)?pV(e,n):Lg(e)?mV(e,n):Cc(`Unknown left type operand '${e[Xe]}'`)}function Cp(e,n){return kt(e,n)}function gV(e,n,i,a,u){const l={};for(const f of globalThis.Object.getOwnPropertyNames(e))l[f]=oI(e[f],n,i,a,ri(u));return l}function yV(e,n,i,a,u){return gV(e.properties,n,i,a,u)}function bV(e,n,i,a,u){const l=yV(e,n,i,a,u);return nr(l)}function AV(e,n,i,a){const u=Cp(e,n);return u===Ue.Union?rr([i,a]):u===Ue.True?i:a}function oI(e,n,i,a,u){return fi(e)?bV(e,n,i,a,u):Uu(e)?Ve(wV(e,n,i,a,u)):Ve(AV(e,n,i,a),u)}function vV(e,n,i,a,u){return{[e]:oI(xn(e),n,i,a,ri(u))}}function xV(e,n,i,a,u){return e.reduce((l,f)=>({...l,...vV(f,n,i,a,u)}),{})}function EV(e,n,i,a,u){return xV(e.keys,n,i,a,u)}function wV(e,n,i,a,u){const l=EV(e,n,i,a,u);return nr(l)}function SV(e){return e.allOf.every(n=>Tp(n))}function IV(e){return e.anyOf.some(n=>Tp(n))}function CV(e){return!Tp(e.not)}function Tp(e){return e[Xe]==="Intersect"?SV(e):e[Xe]==="Union"?IV(e):e[Xe]==="Not"?CV(e):e[Xe]==="Undefined"}function TV(e,n){return aI(rg(e),n)}function OV(e,n){const i=e.filter(a=>Cp(a,n)===Ue.False);return i.length===1?i[0]:rr(i)}function aI(e,n,i={}){return Mu(e)?Ve(TV(e,n),i):fi(e)?Ve(NV(e,n),i):Ve(kn(e)?OV(e.anyOf,n):Cp(e,n)!==Ue.False?ln():e,i)}function RV(e,n){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=aI(e[a],n);return i}function FV(e,n){return RV(e.properties,n)}function NV(e,n){const i=FV(e,n);return nr(i)}function DV(e,n){return sI(rg(e),n)}function BV(e,n){const i=e.filter(a=>Cp(a,n)!==Ue.False);return i.length===1?i[0]:rr(i)}function sI(e,n,i){return Mu(e)?Ve(DV(e,n),i):fi(e)?Ve(_V(e,n),i):Ve(kn(e)?BV(e.anyOf,n):Cp(e,n)!==Ue.False?e:ln(),i)}function UV(e,n){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=sI(e[a],n);return i}function MV(e,n){return UV(e.properties,n)}function _V(e,n){const i=MV(e,n);return nr(i)}function PV(e,n){return Ac(e)?Ve(e.returns,n):ln(n)}function v4(e){return As(vs(e))}function $u(e,n,i){return Ve({[Xe]:"Record",type:"object",patternProperties:{[e]:n}},i)}function uI(e,n,i){const a={};for(const u of e)a[u]=n;return jn(a,{...i,[Tg]:"Record"})}function jV(e,n,i){return i2(e)?uI(bs(e),n,i):$u(e.pattern,n,i)}function LV(e,n,i){return uI(bs(rr(e)),n,i)}function kV(e,n,i){return uI([e.toString()],n,i)}function $V(e,n,i){return $u(e.source,n,i)}function qV(e,n,i){const a=vn(e.pattern)?dc:e.pattern;return $u(a,n,i)}function HV(e,n,i){return $u(dc,n,i)}function zV(e,n,i){return $u(Mz,n,i)}function VV(e,n,i){return jn({true:n,false:n},i)}function GV(e,n,i){return $u(fc,n,i)}function QV(e,n,i){return $u(fc,n,i)}function x4(e,n,i={}){return kn(e)?LV(e.anyOf,n,i):Mu(e)?jV(e,n,i):Bu(e)?kV(e.const,n,i):vp(e)?VV(e,n,i):xc(e)?GV(e,n,i):Ec(e)?QV(e,n,i):M8(e)?$V(e,n,i):Ep(e)?qV(e,n,i):D8(e)?HV(e,n,i):xp(e)?zV(e,n,i):ln(i)}function lI(e){return globalThis.Object.getOwnPropertyNames(e.patternProperties)[0]}function YV(e){const n=lI(e);return n===dc?Fu():n===fc?ku():Fu({pattern:n})}function E4(e){return e.patternProperties[lI(e)]}function KV(e,n){return n.parameters=Op(e,n.parameters),n.returns=Zi(e,n.returns),n}function XV(e,n){return n.parameters=Op(e,n.parameters),n.returns=Zi(e,n.returns),n}function ZV(e,n){return n.allOf=Op(e,n.allOf),n}function JV(e,n){return n.anyOf=Op(e,n.anyOf),n}function WV(e,n){return vn(n.items)||(n.items=Op(e,n.items)),n}function eG(e,n){return n.items=Zi(e,n.items),n}function tG(e,n){return n.items=Zi(e,n.items),n}function nG(e,n){return n.items=Zi(e,n.items),n}function rG(e,n){return n.item=Zi(e,n.item),n}function iG(e,n){const i=uG(e,n.properties);return{...n,...jn(i)}}function oG(e,n){const i=Zi(e,YV(n)),a=Zi(e,E4(n)),u=x4(i,a);return{...n,...u}}function aG(e,n){return n.index in e?e[n.index]:Hg()}function sG(e,n){const i=_S(n),a=ms(n),u=Zi(e,n);return i&&a?v4(u):i&&!a?As(u):!i&&a?vs(u):u}function uG(e,n){return globalThis.Object.getOwnPropertyNames(n).reduce((i,a)=>({...i,[a]:sG(e,n[a])}),{})}function Op(e,n){return n.map(i=>Zi(e,i))}function Zi(e,n){return Ac(n)?KV(e,n):vc(n)?XV(e,n):Di(n)?ZV(e,n):kn(n)?JV(e,n):_u(n)?WV(e,n):yc(n)?eG(e,n):Og(n)?tG(e,n):Fg(n)?nG(e,n):Ng(n)?rG(e,n):Wi(n)?iG(e,n):Dg(n)?oG(e,n):B8(n)?aG(e,n):n}function lG(e,n){return Zi(n,BS(e))}function cG(e){return Ve({[Xe]:"Integer",type:"integer"},e)}function fG(e,n,i){return{[e]:Tc(xn(e),n,ri(i))}}function dG(e,n,i){return e.reduce((u,l)=>({...u,...fG(l,n,i)}),{})}function pG(e,n,i){return dG(e.keys,n,i)}function hG(e,n,i){const a=pG(e,n,i);return nr(a)}function mG(e){const[n,i]=[e.slice(0,1),e.slice(1)];return[n.toLowerCase(),i].join("")}function gG(e){const[n,i]=[e.slice(0,1),e.slice(1)];return[n.toUpperCase(),i].join("")}function yG(e){return e.toUpperCase()}function bG(e){return e.toLowerCase()}function AG(e,n,i){const a=ZS(e.pattern);if(!ip(a))return{...e,pattern:w4(e.pattern,n)};const f=[...kg(a)].map(m=>xn(m)),p=S4(f,n),h=rr(p);return e4([h],i)}function w4(e,n){return typeof e=="string"?n==="Uncapitalize"?mG(e):n==="Capitalize"?gG(e):n==="Uppercase"?yG(e):n==="Lowercase"?bG(e):e:e.toString()}function S4(e,n){return e.map(i=>Tc(i,n))}function Tc(e,n,i={}){return Uu(e)?hG(e,n,i):Mu(e)?AG(e,n,i):kn(e)?rr(S4(e.anyOf,n),i):Bu(e)?xn(w4(e.const,n),i):Ve(e,i)}function vG(e,n={}){return Tc(e,"Capitalize",n)}function xG(e,n={}){return Tc(e,"Lowercase",n)}function EG(e,n={}){return Tc(e,"Uncapitalize",n)}function wG(e,n={}){return Tc(e,"Uppercase",n)}function SG(e,n,i){const a={};for(const u of globalThis.Object.getOwnPropertyNames(e))a[u]=Gg(e[u],n,ri(i));return a}function IG(e,n,i){return SG(e.properties,n,i)}function CG(e,n,i){const a=IG(e,n,i);return nr(a)}function TG(e,n){return e.map(i=>cI(i,n))}function OG(e,n){return e.map(i=>cI(i,n))}function RG(e,n){const{[n]:i,...a}=e;return a}function FG(e,n){return n.reduce((i,a)=>RG(i,a),e)}function NG(e,n){const i=ai(e,[ti,"$id","required","properties"]),a=FG(e.properties,n);return jn(a,i)}function DG(e){const n=e.reduce((i,a)=>U8(a)?[...i,xn(a)]:i,[]);return rr(n)}function cI(e,n){return Di(e)?xs(TG(e.allOf,n)):kn(e)?rr(OG(e.anyOf,n)):Wi(e)?NG(e,n):jn({})}function Gg(e,n,i){const a=Hr(n)?DG(n):n,u=ni(n)?bs(n):n,l=kr(e),f=kr(n);return fi(e)?CG(e,u,i):Uu(n)?_G(e,n,i):l&&f?On("Omit",[e,a],i):!l&&f?On("Omit",[e,a],i):l&&!f?On("Omit",[e,a],i):Ve({...cI(e,u),...i})}function BG(e,n,i){return{[n]:Gg(e,[n],ri(i))}}function UG(e,n,i){return n.reduce((a,u)=>({...a,...BG(e,u,i)}),{})}function MG(e,n,i){return UG(e,n.keys,i)}function _G(e,n,i){const a=MG(e,n,i);return nr(a)}function PG(e,n,i){const a={};for(const u of globalThis.Object.getOwnPropertyNames(e))a[u]=Qg(e[u],n,ri(i));return a}function jG(e,n,i){return PG(e.properties,n,i)}function LG(e,n,i){const a=jG(e,n,i);return nr(a)}function kG(e,n){return e.map(i=>fI(i,n))}function $G(e,n){return e.map(i=>fI(i,n))}function qG(e,n){const i={};for(const a of n)a in e&&(i[a]=e[a]);return i}function HG(e,n){const i=ai(e,[ti,"$id","required","properties"]),a=qG(e.properties,n);return jn(a,i)}function zG(e){const n=e.reduce((i,a)=>U8(a)?[...i,xn(a)]:i,[]);return rr(n)}function fI(e,n){return Di(e)?xs(kG(e.allOf,n)):kn(e)?rr($G(e.anyOf,n)):Wi(e)?HG(e,n):jn({})}function Qg(e,n,i){const a=Hr(n)?zG(n):n,u=ni(n)?bs(n):n,l=kr(e),f=kr(n);return fi(e)?LG(e,u,i):Uu(n)?YG(e,n,i):l&&f?On("Pick",[e,a],i):!l&&f?On("Pick",[e,a],i):l&&!f?On("Pick",[e,a],i):Ve({...fI(e,u),...i})}function VG(e,n,i){return{[n]:Qg(e,[n],ri(i))}}function GG(e,n,i){return n.reduce((a,u)=>({...a,...VG(e,u,i)}),{})}function QG(e,n,i){return GG(e,n.keys,i)}function YG(e,n,i){const a=QG(e,n,i);return nr(a)}function KG(e,n){return On("Partial",[On(e,n)])}function XG(e){return On("Partial",[Ip(e)])}function ZG(e){const n={};for(const i of globalThis.Object.getOwnPropertyNames(e))n[i]=vs(e[i]);return n}function JG(e){const n=ai(e,[ti,"$id","required","properties"]),i=ZG(e.properties);return jn(i,n)}function HN(e){return e.map(n=>I4(n))}function I4(e){return bc(e)?KG(e.target,e.parameters):kr(e)?XG(e.$ref):Di(e)?xs(HN(e.allOf)):kn(e)?rr(HN(e.anyOf)):Wi(e)?JG(e):Rg(e)||vp(e)||xc(e)||Bu(e)||PS(e)||Ec(e)||Ep(e)||jS(e)||Bg(e)?e:jn({})}function dI(e,n){return fi(e)?tQ(e,n):Ve({...I4(e),...n})}function WG(e,n){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=dI(e[a],ri(n));return i}function eQ(e,n){return WG(e.properties,n)}function tQ(e,n){const i=eQ(e,n);return nr(i)}function nQ(e,n){return On("Required",[On(e,n)])}function rQ(e){return On("Required",[Ip(e)])}function iQ(e){const n={};for(const i of globalThis.Object.getOwnPropertyNames(e))n[i]=ai(e[i],[va]);return n}function oQ(e){const n=ai(e,[ti,"$id","required","properties"]),i=iQ(e.properties);return jn(i,n)}function zN(e){return e.map(n=>C4(n))}function C4(e){return bc(e)?nQ(e.target,e.parameters):kr(e)?rQ(e.$ref):Di(e)?xs(zN(e.allOf)):kn(e)?rr(zN(e.anyOf)):Wi(e)?oQ(e):Rg(e)||vp(e)||xc(e)||Bu(e)||PS(e)||Ec(e)||Ep(e)||jS(e)||Bg(e)?e:jn({})}function pI(e,n){return fi(e)?uQ(e,n):Ve({...C4(e),...n})}function aQ(e,n){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=pI(e[a],n);return i}function sQ(e,n){return aQ(e.properties,n)}function uQ(e,n){const i=sQ(e,n);return nr(i)}function lQ(e,n){return n.map(i=>kr(i)?hI(e,i.$ref):si(e,i))}function hI(e,n){return n in e?kr(e[n])?hI(e,e[n].$ref):si(e,e[n]):ln()}function cQ(e){return qg(e[0])}function fQ(e){return $g(e[0],e[1])}function dQ(e){return tI(e[0])}function pQ(e){return dI(e[0])}function hQ(e){return Gg(e[0],e[1])}function mQ(e){return Qg(e[0],e[1])}function gQ(e){return pI(e[0])}function yQ(e,n,i){const a=lQ(e,i);return n==="Awaited"?cQ(a):n==="Index"?fQ(a):n==="KeyOf"?dQ(a):n==="Partial"?pQ(a):n==="Omit"?hQ(a):n==="Pick"?mQ(a):n==="Required"?gQ(a):ln()}function bQ(e,n){return QS(si(e,n))}function AQ(e,n){return YS(si(e,n))}function vQ(e,n,i){return KS(Rp(e,n),si(e,i))}function xQ(e,n,i){return Sp(Rp(e,n),si(e,i))}function EQ(e,n){return xs(Rp(e,n))}function wQ(e,n){return eI(si(e,n))}function SQ(e,n){return jn(globalThis.Object.keys(n).reduce((i,a)=>({...i,[a]:si(e,n[a])}),{}))}function IQ(e,n){const[i,a]=[si(e,E4(n)),lI(n)],u=BS(n);return u.patternProperties[a]=i,u}function CQ(e,n){return kr(n)?{...hI(e,n.$ref),[ti]:n[ti]}:n}function TQ(e,n){return Sc(Rp(e,n))}function OQ(e,n){return rr(Rp(e,n))}function Rp(e,n){return n.map(i=>si(e,i))}function si(e,n){return ms(n)?Ve(si(e,ai(n,[va])),n):_S(n)?Ve(si(e,ai(n,[Ap])),n):nn(n)?Ve(CQ(e,n),n):yc(n)?Ve(bQ(e,n.items),n):Og(n)?Ve(AQ(e,n.items),n):bc(n)?Ve(yQ(e,n.target,n.parameters)):Ac(n)?Ve(vQ(e,n.parameters,n.returns),n):vc(n)?Ve(xQ(e,n.parameters,n.returns),n):Di(n)?Ve(EQ(e,n.allOf),n):Fg(n)?Ve(wQ(e,n.items),n):Wi(n)?Ve(SQ(e,n.properties),n):Dg(n)?Ve(IQ(e,n)):_u(n)?Ve(TQ(e,n.items||[]),n):kn(n)?Ve(OQ(e,n.anyOf),n):n}function RQ(e,n){return n in e?si(e,e[n]):ln()}function FQ(e){return globalThis.Object.getOwnPropertyNames(e).reduce((n,i)=>({...n,[i]:RQ(e,i)}),{})}class NQ{constructor(n){const i=FQ(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 DQ(e){return new NQ(e)}function BQ(e,n){return Ve({[Xe]:"Not",not:e},n)}function UQ(e,n){return vc(e)?Sc(e.parameters,n):ln()}let MQ=0;function _Q(e,n={}){vn(n.$id)&&(n.$id=`T${MQ++}`);const i=BS(e({[Xe]:"This",$ref:`${n.$id}`}));return i.$id=n.$id,Ve({[Tg]:"Recursive",...i},n)}function PQ(e,n){const i=mn(e)?new globalThis.RegExp(e):e;return Ve({[Xe]:"RegExp",type:"RegExp",source:i.source,flags:i.flags},n)}function jQ(e){return Di(e)?e.allOf:kn(e)?e.anyOf:_u(e)?e.items??[]:[]}function LQ(e){return jQ(e)}function kQ(e,n){return vc(e)?Ve(e.returns,n):ln(n)}class $Q{constructor(n){this.schema=n}Decode(n){return new qQ(this.schema,n)}}class qQ{constructor(n,i){this.schema=n,this.decode=i}EncodeTransform(n,i){const l={Encode:f=>i[ti].Encode(n(f)),Decode:f=>this.decode(i[ti].Decode(f))};return{...i,[ti]:l}}EncodeSchema(n,i){const a={Decode:this.decode,Encode:n};return{...i,[ti]:a}}Encode(n){return nn(this.schema)?this.EncodeTransform(n,this.schema):this.EncodeSchema(n,this.schema)}}function HQ(e){return new $Q(e)}function zQ(e={}){return Ve({[Xe]:e[Xe]??"Unsafe"},e)}function VQ(e){return Ve({[Xe]:"Void",type:"void"},e)}const GQ=Object.freeze(Object.defineProperty({__proto__:null,Any:np,Argument:qz,Array:QS,AsyncIterator:YS,Awaited:qg,BigInt:JS,Boolean:J8,Capitalize:vG,Composite:S9,Const:T9,Constructor:KS,ConstructorParameters:O9,Date:u4,Enum:R9,Exclude:aI,Extends:oI,Extract:sI,Function:Sp,Index:$g,InstanceType:PV,Instantiate:lG,Integer:cG,Intersect:xs,Iterator:eI,KeyOf:tI,Literal:xn,Lowercase:xG,Mapped:V2,Module:DQ,Never:ln,Not:BQ,Null:l4,Number:ku,Object:jn,Omit:Gg,Optional:vs,Parameters:UQ,Partial:dI,Pick:Qg,Promise:r4,Readonly:As,ReadonlyOptional:v4,Record:x4,Recursive:_Q,Ref:Ip,RegExp:PQ,Required:pI,Rest:LQ,ReturnType:kQ,String:Fu,Symbol:c4,TemplateLiteral:e4,Transform:HQ,Tuple:Sc,Uint8Array:d4,Uncapitalize:EG,Undefined:f4,Union:rr,Unknown:Hg,Unsafe:zQ,Uppercase:wG,Void:VQ},Symbol.toStringTag,{value:"Module"})),S=GQ;function QQ(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 YQ=QQ;function KQ(){return YQ}class XQ extends ci{constructor(n){super(`Unable to dereference schema with $id '${n.$ref}'`),this.schema=n}}function ZQ(e,n){const i=n.find(a=>a.$id===e.$ref);if(i===void 0)throw new XQ(e);return eo(i,n)}function Yg(e,n){return!wo(e.$id)||n.some(i=>i.$id===e.$id)||n.push(e),n}function eo(e,n){return e[Xe]==="This"||e[Xe]==="Ref"?ZQ(e,n):e}class JQ extends ci{constructor(n){super("Unable to hash value"),this.value=n}}var ui;(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"})(ui||(ui={}));let Xl=BigInt("14695981039346656037");const[WQ,eY]=[BigInt("1099511628211"),BigInt("18446744073709551616")],tY=Array.from({length:256}).map((e,n)=>BigInt(n)),T4=new Float64Array(1),O4=new DataView(T4.buffer),R4=new Uint8Array(T4.buffer);function*nY(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 rY(e){dr(ui.Array);for(const n of e)hc(n)}function iY(e){dr(ui.Boolean),dr(e?1:0)}function oY(e){dr(ui.BigInt),O4.setBigInt64(0,e);for(const n of R4)dr(n)}function aY(e){dr(ui.Date),hc(e.getTime())}function sY(e){dr(ui.Null)}function uY(e){dr(ui.Number),O4.setFloat64(0,e);for(const n of R4)dr(n)}function lY(e){dr(ui.Object);for(const n of globalThis.Object.getOwnPropertyNames(e).sort())hc(n),hc(e[n])}function cY(e){dr(ui.String);for(let n=0;n<e.length;n++)for(const i of nY(e.charCodeAt(n)))dr(i)}function fY(e){dr(ui.Symbol),hc(e.description)}function dY(e){dr(ui.Uint8Array);for(let n=0;n<e.length;n++)dr(e[n])}function pY(e){return dr(ui.Undefined)}function hc(e){if(oi(e))return rY(e);if(Sg(e))return iY(e);if(Ig(e))return oY(e);if(bp(e))return aY(e);if(wg(e))return sY();if(ha(e))return uY(e);if(ii(e))return lY(e);if(wo(e))return cY(e);if(Cg(e))return fY(e);if(US(e))return dY(e);if(Ro(e))return pY();throw new JQ(e)}function dr(e){Xl=Xl^tY[e],Xl=Xl*WQ%eY}function F4(e){return Xl=BigInt("14695981039346656037"),hc(e),Xl}class hY extends ci{constructor(n){super("Unknown type"),this.schema=n}}function mY(e){return e[Xe]==="Any"||e[Xe]==="Unknown"}function Ot(e){return e!==void 0}function gY(e,n,i){return!0}function yY(e,n,i){return!0}function bY(e,n,i){if(!oi(i)||Ot(e.minItems)&&!(i.length>=e.minItems)||Ot(e.maxItems)&&!(i.length<=e.maxItems)||!i.every(l=>Mn(e.items,n,l))||e.uniqueItems===!0&&!(function(){const l=new Set;for(const f of i){const p=F4(f);if(l.has(p))return!1;l.add(p)}return!0})())return!1;if(!(Ot(e.contains)||ha(e.minContains)||ha(e.maxContains)))return!0;const a=Ot(e.contains)?e.contains:ln(),u=i.reduce((l,f)=>Mn(a,n,f)?l+1:l,0);return!(u===0||ha(e.minContains)&&u<e.minContains||ha(e.maxContains)&&u>e.maxContains)}function AY(e,n,i){return C8(i)}function vY(e,n,i){return!(!Ig(i)||Ot(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)||Ot(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)||Ot(e.maximum)&&!(i<=e.maximum)||Ot(e.minimum)&&!(i>=e.minimum)||Ot(e.multipleOf)&&i%e.multipleOf!==BigInt(0))}function xY(e,n,i){return Sg(i)}function EY(e,n,i){return Mn(e.returns,n,i.prototype)}function wY(e,n,i){return!(!bp(i)||Ot(e.exclusiveMaximumTimestamp)&&!(i.getTime()<e.exclusiveMaximumTimestamp)||Ot(e.exclusiveMinimumTimestamp)&&!(i.getTime()>e.exclusiveMinimumTimestamp)||Ot(e.maximumTimestamp)&&!(i.getTime()<=e.maximumTimestamp)||Ot(e.minimumTimestamp)&&!(i.getTime()>=e.minimumTimestamp)||Ot(e.multipleOfTimestamp)&&i.getTime()%e.multipleOfTimestamp!==0)}function SY(e,n,i){return MS(i)}function IY(e,n,i){const a=globalThis.Object.values(e.$defs),u=e.$defs[e.$ref];return Mn(u,[...n,...a],i)}function CY(e,n,i){return!(!F8(i)||Ot(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)||Ot(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)||Ot(e.maximum)&&!(i<=e.maximum)||Ot(e.minimum)&&!(i>=e.minimum)||Ot(e.multipleOf)&&i%e.multipleOf!==0)}function TY(e,n,i){const a=e.allOf.every(u=>Mn(u,n,i));if(e.unevaluatedProperties===!1){const u=new RegExp(ig(e)),l=Object.getOwnPropertyNames(i).every(f=>u.test(f));return a&&l}else if(ni(e.unevaluatedProperties)){const u=new RegExp(ig(e)),l=Object.getOwnPropertyNames(i).every(f=>u.test(f)||Mn(e.unevaluatedProperties,n,i[f]));return a&&l}else return a}function OY(e,n,i){return T8(i)}function RY(e,n,i){return i===e.const}function FY(e,n,i){return!1}function NY(e,n,i){return!Mn(e.not,n,i)}function DY(e,n,i){return wg(i)}function BY(e,n,i){return!(!Lr.IsNumberLike(i)||Ot(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)||Ot(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)||Ot(e.minimum)&&!(i>=e.minimum)||Ot(e.maximum)&&!(i<=e.maximum)||Ot(e.multipleOf)&&i%e.multipleOf!==0)}function UY(e,n,i){if(!Lr.IsObjectLike(i)||Ot(e.minProperties)&&!(Object.getOwnPropertyNames(i).length>=e.minProperties)||Ot(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(!Mn(l,n,i[u])||(Tp(l)||mY(l))&&!(u in i))return!1}else if(Lr.IsExactOptionalProperty(i,u)&&!Mn(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)||Mn(e.additionalProperties,n,i[l])):!0}function MY(e,n,i){return O8(i)}function _Y(e,n,i){if(!Lr.IsRecordLike(i)||Ot(e.minProperties)&&!(Object.getOwnPropertyNames(i).length>=e.minProperties)||Ot(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)?Mn(u,n,v):!0),p=typeof e.additionalProperties=="object"?Object.entries(i).every(([m,v])=>l.test(m)?!0:Mn(e.additionalProperties,n,v)):!0,h=e.additionalProperties===!1?Object.getOwnPropertyNames(i).every(m=>l.test(m)):!0;return f&&p&&h}function PY(e,n,i){return Mn(eo(e,n),n,i)}function jY(e,n,i){const a=new RegExp(e.source,e.flags);return Ot(e.minLength)&&!(i.length>=e.minLength)||Ot(e.maxLength)&&!(i.length<=e.maxLength)?!1:a.test(i)}function LY(e,n,i){return!wo(i)||Ot(e.minLength)&&!(i.length>=e.minLength)||Ot(e.maxLength)&&!(i.length<=e.maxLength)||Ot(e.pattern)&&!new RegExp(e.pattern).test(i)?!1:Ot(e.format)?V8(e.format)?G8(e.format)(i):!1:!0}function kY(e,n,i){return Cg(i)}function $Y(e,n,i){return wo(i)&&new RegExp(e.pattern).test(i)}function qY(e,n,i){return Mn(eo(e,n),n,i)}function HY(e,n,i){if(!oi(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(!Mn(e.items[a],n,i[a]))return!1;return!0}function zY(e,n,i){return Ro(i)}function VY(e,n,i){return e.anyOf.some(a=>Mn(a,n,i))}function GY(e,n,i){return!(!US(i)||Ot(e.maxByteLength)&&!(i.length<=e.maxByteLength)||Ot(e.minByteLength)&&!(i.length>=e.minByteLength))}function QY(e,n,i){return!0}function YY(e,n,i){return Lr.IsVoidLike(i)}function KY(e,n,i){return GS(e[Xe])?Y8(e[Xe])(e,i):!1}function Mn(e,n,i){const a=Ot(e.$id)?Yg(e,n):n,u=e;switch(u[Xe]){case"Any":return gY();case"Argument":return yY();case"Array":return bY(u,a,i);case"AsyncIterator":return AY(u,a,i);case"BigInt":return vY(u,a,i);case"Boolean":return xY(u,a,i);case"Constructor":return EY(u,a,i);case"Date":return wY(u,a,i);case"Function":return SY(u,a,i);case"Import":return IY(u,a,i);case"Integer":return CY(u,a,i);case"Intersect":return TY(u,a,i);case"Iterator":return OY(u,a,i);case"Literal":return RY(u,a,i);case"Never":return FY();case"Not":return NY(u,a,i);case"Null":return DY(u,a,i);case"Number":return BY(u,a,i);case"Object":return UY(u,a,i);case"Promise":return MY(u,a,i);case"Record":return _Y(u,a,i);case"Ref":return PY(u,a,i);case"RegExp":return jY(u,a,i);case"String":return LY(u,a,i);case"Symbol":return kY(u,a,i);case"TemplateLiteral":return $Y(u,a,i);case"This":return qY(u,a,i);case"Tuple":return HY(u,a,i);case"Undefined":return zY(u,a,i);case"Union":return VY(u,a,i);case"Uint8Array":return GY(u,a,i);case"Unknown":return QY();case"Void":return YY(u,a,i);default:if(!GS(u[Xe]))throw new hY(u);return KY(u,a,i)}}function Kg(...e){return e.length===3?Mn(e[0],e[1],e[2]):Mn(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 XY extends ci{constructor(n){super("Unknown type"),this.schema=n}}function ca(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Tt(e){return e!==void 0}class N4{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:KQ()({errorType:e,path:i,schema:n,value:a,errors:u}),errors:u}}function*ZY(e,n,i,a){}function*JY(e,n,i,a){}function*WY(e,n,i,a){if(!oi(a))return yield Ge(Te.Array,e,i,a);Tt(e.minItems)&&!(a.length>=e.minItems)&&(yield Ge(Te.ArrayMinItems,e,i,a)),Tt(e.maxItems)&&!(a.length<=e.maxItems)&&(yield Ge(Te.ArrayMaxItems,e,i,a));for(let f=0;f<a.length;f++)yield*_n(e.items,n,`${i}/${f}`,a[f]);if(e.uniqueItems===!0&&!(function(){const f=new Set;for(const p of a){const h=F4(p);if(f.has(h))return!1;f.add(h)}return!0})()&&(yield Ge(Te.ArrayUniqueItems,e,i,a)),!(Tt(e.contains)||Tt(e.minContains)||Tt(e.maxContains)))return;const u=Tt(e.contains)?e.contains:ln(),l=a.reduce((f,p,h)=>_n(u,n,`${i}${h}`,p).next().done===!0?f+1:f,0);l===0&&(yield Ge(Te.ArrayContains,e,i,a)),ha(e.minContains)&&l<e.minContains&&(yield Ge(Te.ArrayMinContains,e,i,a)),ha(e.maxContains)&&l>e.maxContains&&(yield Ge(Te.ArrayMaxContains,e,i,a))}function*eK(e,n,i,a){C8(a)||(yield Ge(Te.AsyncIterator,e,i,a))}function*tK(e,n,i,a){if(!Ig(a))return yield Ge(Te.BigInt,e,i,a);Tt(e.exclusiveMaximum)&&!(a<e.exclusiveMaximum)&&(yield Ge(Te.BigIntExclusiveMaximum,e,i,a)),Tt(e.exclusiveMinimum)&&!(a>e.exclusiveMinimum)&&(yield Ge(Te.BigIntExclusiveMinimum,e,i,a)),Tt(e.maximum)&&!(a<=e.maximum)&&(yield Ge(Te.BigIntMaximum,e,i,a)),Tt(e.minimum)&&!(a>=e.minimum)&&(yield Ge(Te.BigIntMinimum,e,i,a)),Tt(e.multipleOf)&&a%e.multipleOf!==BigInt(0)&&(yield Ge(Te.BigIntMultipleOf,e,i,a))}function*nK(e,n,i,a){Sg(a)||(yield Ge(Te.Boolean,e,i,a))}function*rK(e,n,i,a){yield*_n(e.returns,n,i,a.prototype)}function*iK(e,n,i,a){if(!bp(a))return yield Ge(Te.Date,e,i,a);Tt(e.exclusiveMaximumTimestamp)&&!(a.getTime()<e.exclusiveMaximumTimestamp)&&(yield Ge(Te.DateExclusiveMaximumTimestamp,e,i,a)),Tt(e.exclusiveMinimumTimestamp)&&!(a.getTime()>e.exclusiveMinimumTimestamp)&&(yield Ge(Te.DateExclusiveMinimumTimestamp,e,i,a)),Tt(e.maximumTimestamp)&&!(a.getTime()<=e.maximumTimestamp)&&(yield Ge(Te.DateMaximumTimestamp,e,i,a)),Tt(e.minimumTimestamp)&&!(a.getTime()>=e.minimumTimestamp)&&(yield Ge(Te.DateMinimumTimestamp,e,i,a)),Tt(e.multipleOfTimestamp)&&a.getTime()%e.multipleOfTimestamp!==0&&(yield Ge(Te.DateMultipleOfTimestamp,e,i,a))}function*oK(e,n,i,a){MS(a)||(yield Ge(Te.Function,e,i,a))}function*aK(e,n,i,a){const u=globalThis.Object.values(e.$defs),l=e.$defs[e.$ref];yield*_n(l,[...n,...u],i,a)}function*sK(e,n,i,a){if(!F8(a))return yield Ge(Te.Integer,e,i,a);Tt(e.exclusiveMaximum)&&!(a<e.exclusiveMaximum)&&(yield Ge(Te.IntegerExclusiveMaximum,e,i,a)),Tt(e.exclusiveMinimum)&&!(a>e.exclusiveMinimum)&&(yield Ge(Te.IntegerExclusiveMinimum,e,i,a)),Tt(e.maximum)&&!(a<=e.maximum)&&(yield Ge(Te.IntegerMaximum,e,i,a)),Tt(e.minimum)&&!(a>=e.minimum)&&(yield Ge(Te.IntegerMinimum,e,i,a)),Tt(e.multipleOf)&&a%e.multipleOf!==0&&(yield Ge(Te.IntegerMultipleOf,e,i,a))}function*uK(e,n,i,a){let u=!1;for(const l of e.allOf)for(const f of _n(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(ig(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(ig(e));for(const f of Object.getOwnPropertyNames(a))if(!l.test(f)){const p=_n(e.unevaluatedProperties,n,`${i}/${f}`,a[f]).next();p.done||(yield p.value)}}}function*lK(e,n,i,a){T8(a)||(yield Ge(Te.Iterator,e,i,a))}function*cK(e,n,i,a){a!==e.const&&(yield Ge(Te.Literal,e,i,a))}function*fK(e,n,i,a){yield Ge(Te.Never,e,i,a)}function*dK(e,n,i,a){_n(e.not,n,i,a).next().done===!0&&(yield Ge(Te.Not,e,i,a))}function*pK(e,n,i,a){wg(a)||(yield Ge(Te.Null,e,i,a))}function*hK(e,n,i,a){if(!Lr.IsNumberLike(a))return yield Ge(Te.Number,e,i,a);Tt(e.exclusiveMaximum)&&!(a<e.exclusiveMaximum)&&(yield Ge(Te.NumberExclusiveMaximum,e,i,a)),Tt(e.exclusiveMinimum)&&!(a>e.exclusiveMinimum)&&(yield Ge(Te.NumberExclusiveMinimum,e,i,a)),Tt(e.maximum)&&!(a<=e.maximum)&&(yield Ge(Te.NumberMaximum,e,i,a)),Tt(e.minimum)&&!(a>=e.minimum)&&(yield Ge(Te.NumberMinimum,e,i,a)),Tt(e.multipleOf)&&a%e.multipleOf!==0&&(yield Ge(Te.NumberMultipleOf,e,i,a))}function*mK(e,n,i,a){if(!Lr.IsObjectLike(a))return yield Ge(Te.Object,e,i,a);Tt(e.minProperties)&&!(Object.getOwnPropertyNames(a).length>=e.minProperties)&&(yield Ge(Te.ObjectMinProperties,e,i,a)),Tt(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}/${ca(p)}`,void 0));if(e.additionalProperties===!1)for(const p of f)l.includes(p)||(yield Ge(Te.ObjectAdditionalProperties,e,`${i}/${ca(p)}`,a[p]));if(typeof e.additionalProperties=="object")for(const p of f)l.includes(p)||(yield*_n(e.additionalProperties,n,`${i}/${ca(p)}`,a[p]));for(const p of l){const h=e.properties[p];e.required&&e.required.includes(p)?(yield*_n(h,n,`${i}/${ca(p)}`,a[p]),Tp(e)&&!(p in a)&&(yield Ge(Te.ObjectRequiredProperty,h,`${i}/${ca(p)}`,void 0))):Lr.IsExactOptionalProperty(a,p)&&(yield*_n(h,n,`${i}/${ca(p)}`,a[p]))}}function*gK(e,n,i,a){O8(a)||(yield Ge(Te.Promise,e,i,a))}function*yK(e,n,i,a){if(!Lr.IsRecordLike(a))return yield Ge(Te.Object,e,i,a);Tt(e.minProperties)&&!(Object.getOwnPropertyNames(a).length>=e.minProperties)&&(yield Ge(Te.ObjectMinProperties,e,i,a)),Tt(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*_n(l,n,`${i}/${ca(p)}`,h));if(typeof e.additionalProperties=="object")for(const[p,h]of Object.entries(a))f.test(p)||(yield*_n(e.additionalProperties,n,`${i}/${ca(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}/${ca(p)}`,h)}}function*bK(e,n,i,a){yield*_n(eo(e,n),n,i,a)}function*AK(e,n,i,a){if(!wo(a))return yield Ge(Te.String,e,i,a);if(Tt(e.minLength)&&!(a.length>=e.minLength)&&(yield Ge(Te.StringMinLength,e,i,a)),Tt(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*vK(e,n,i,a){if(!wo(a))return yield Ge(Te.String,e,i,a);Tt(e.minLength)&&!(a.length>=e.minLength)&&(yield Ge(Te.StringMinLength,e,i,a)),Tt(e.maxLength)&&!(a.length<=e.maxLength)&&(yield Ge(Te.StringMaxLength,e,i,a)),wo(e.pattern)&&(new RegExp(e.pattern).test(a)||(yield Ge(Te.StringPattern,e,i,a))),wo(e.format)&&(V8(e.format)?G8(e.format)(a)||(yield Ge(Te.StringFormat,e,i,a)):yield Ge(Te.StringFormatUnknown,e,i,a))}function*xK(e,n,i,a){Cg(a)||(yield Ge(Te.Symbol,e,i,a))}function*EK(e,n,i,a){if(!wo(a))return yield Ge(Te.String,e,i,a);new RegExp(e.pattern).test(a)||(yield Ge(Te.StringPattern,e,i,a))}function*wK(e,n,i,a){yield*_n(eo(e,n),n,i,a)}function*SK(e,n,i,a){if(!oi(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*_n(e.items[u],n,`${i}/${u}`,a[u])}function*IK(e,n,i,a){Ro(a)||(yield Ge(Te.Undefined,e,i,a))}function*CK(e,n,i,a){if(Kg(e,n,a))return;const u=e.anyOf.map(l=>new N4(_n(l,n,i,a)));yield Ge(Te.Union,e,i,a,u)}function*TK(e,n,i,a){if(!US(a))return yield Ge(Te.Uint8Array,e,i,a);Tt(e.maxByteLength)&&!(a.length<=e.maxByteLength)&&(yield Ge(Te.Uint8ArrayMaxByteLength,e,i,a)),Tt(e.minByteLength)&&!(a.length>=e.minByteLength)&&(yield Ge(Te.Uint8ArrayMinByteLength,e,i,a))}function*OK(e,n,i,a){}function*RK(e,n,i,a){Lr.IsVoidLike(a)||(yield Ge(Te.Void,e,i,a))}function*FK(e,n,i,a){Y8(e[Xe])(e,a)||(yield Ge(Te.Kind,e,i,a))}function*_n(e,n,i,a){const u=Tt(e.$id)?[...n,e]:n,l=e;switch(l[Xe]){case"Any":return yield*ZY();case"Argument":return yield*JY();case"Array":return yield*WY(l,u,i,a);case"AsyncIterator":return yield*eK(l,u,i,a);case"BigInt":return yield*tK(l,u,i,a);case"Boolean":return yield*nK(l,u,i,a);case"Constructor":return yield*rK(l,u,i,a);case"Date":return yield*iK(l,u,i,a);case"Function":return yield*oK(l,u,i,a);case"Import":return yield*aK(l,u,i,a);case"Integer":return yield*sK(l,u,i,a);case"Intersect":return yield*uK(l,u,i,a);case"Iterator":return yield*lK(l,u,i,a);case"Literal":return yield*cK(l,u,i,a);case"Never":return yield*fK(l,u,i,a);case"Not":return yield*dK(l,u,i,a);case"Null":return yield*pK(l,u,i,a);case"Number":return yield*hK(l,u,i,a);case"Object":return yield*mK(l,u,i,a);case"Promise":return yield*gK(l,u,i,a);case"Record":return yield*yK(l,u,i,a);case"Ref":return yield*bK(l,u,i,a);case"RegExp":return yield*AK(l,u,i,a);case"String":return yield*vK(l,u,i,a);case"Symbol":return yield*xK(l,u,i,a);case"TemplateLiteral":return yield*EK(l,u,i,a);case"This":return yield*wK(l,u,i,a);case"Tuple":return yield*SK(l,u,i,a);case"Undefined":return yield*IK(l,u,i,a);case"Union":return yield*CK(l,u,i,a);case"Uint8Array":return yield*TK(l,u,i,a);case"Unknown":return yield*OK();case"Void":return yield*RK(l,u,i,a);default:if(!GS(l[Xe]))throw new XY(e);return yield*FK(l,u,i,a)}}function NK(...e){const n=e.length===3?_n(e[0],e[1],"",e[2]):_n(e[0],[],"",e[1]);return new N4(n)}function DK(e){const n={};for(const i of Object.getOwnPropertyNames(e))n[i]=Nu(e[i]);for(const i of Object.getOwnPropertySymbols(e))n[i]=Nu(e[i]);return n}function BK(e){return e.map(n=>Nu(n))}function UK(e){return e.slice()}function MK(e){return new Map(Nu([...e.entries()]))}function _K(e){return new Set(Nu([...e.entries()]))}function PK(e){return new Date(e.toISOString())}function Nu(e){if(oi(e))return BK(e);if(bp(e))return PK(e);if(cz(e))return UK(e);if(uz(e))return MK(e);if(lz(e))return _K(e);if(ii(e))return DK(e);if(N8(e))return e;throw new Error("ValueClone: Unable to clone value")}class jK extends ci{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 LK extends ci{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 tn(e,n,i){try{return nn(e)?e[ti].Decode(i):i}catch(a){throw new LK(e,n,i,a)}}function kK(e,n,i,a){return oi(a)?tn(e,i,a.map((u,l)=>to(e.items,n,`${i}/${l}`,u))):tn(e,i,a)}function $K(e,n,i,a){if(!ii(a)||N8(a))return tn(e,i,a);const u=A9(e),l=u.map(v=>v[0]),f={...a};for(const[v,A]of u)v in f&&(f[v]=to(A,n,`${i}/${v}`,f[v]));if(!nn(e.unevaluatedProperties))return tn(e,i,f);const p=Object.getOwnPropertyNames(f),h=e.unevaluatedProperties,m={...f};for(const v of p)l.includes(v)||(m[v]=tn(h,`${i}/${v}`,m[v]));return tn(e,i,m)}function qK(e,n,i,a){const u=globalThis.Object.values(e.$defs),l=e.$defs[e.$ref],f=to(l,[...n,...u],i,a);return tn(e,i,f)}function HK(e,n,i,a){return tn(e,i,to(e.not,n,i,a))}function zK(e,n,i,a){if(!ii(a))return tn(e,i,a);const u=Ic(e),l={...a};for(const m of u)R8(l,m)&&(Ro(l[m])&&(!Bg(e.properties[m])||Lr.IsExactOptionalProperty(l,m))||(l[m]=to(e.properties[m],n,`${i}/${m}`,l[m])));if(!ni(e.additionalProperties))return tn(e,i,l);const f=Object.getOwnPropertyNames(l),p=e.additionalProperties,h={...l};for(const m of f)u.includes(m)||(h[m]=tn(p,`${i}/${m}`,h[m]));return tn(e,i,h)}function VK(e,n,i,a){if(!ii(a))return tn(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]=to(e.patternProperties[u],n,`${i}/${v}`,f[v]));if(!ni(e.additionalProperties))return tn(e,i,f);const p=Object.getOwnPropertyNames(f),h=e.additionalProperties,m={...f};for(const v of p)l.test(v)||(m[v]=tn(h,`${i}/${v}`,m[v]));return tn(e,i,m)}function GK(e,n,i,a){const u=eo(e,n);return tn(e,i,to(u,n,i,a))}function QK(e,n,i,a){const u=eo(e,n);return tn(e,i,to(u,n,i,a))}function YK(e,n,i,a){return oi(a)&&oi(e.items)?tn(e,i,e.items.map((u,l)=>to(u,n,`${i}/${l}`,a[l]))):tn(e,i,a)}function KK(e,n,i,a){for(const u of e.anyOf){if(!Kg(u,n,a))continue;const l=to(u,n,i,a);return tn(e,i,l)}return tn(e,i,a)}function to(e,n,i,a){const u=Yg(e,n),l=e;switch(e[Xe]){case"Array":return kK(l,u,i,a);case"Import":return qK(l,u,i,a);case"Intersect":return $K(l,u,i,a);case"Not":return HK(l,u,i,a);case"Object":return zK(l,u,i,a);case"Record":return VK(l,u,i,a);case"Ref":return GK(l,u,i,a);case"Symbol":return tn(l,i,a);case"This":return QK(l,u,i,a);case"Tuple":return YK(l,u,i,a);case"Union":return KK(l,u,i,a);default:return tn(l,i,a)}}function XK(e,n,i){return to(e,n,"",i)}function ZK(e,n){return nn(e)||Rn(e.items,n)}function JK(e,n){return nn(e)||Rn(e.items,n)}function WK(e,n){return nn(e)||Rn(e.returns,n)||e.parameters.some(i=>Rn(i,n))}function eX(e,n){return nn(e)||Rn(e.returns,n)||e.parameters.some(i=>Rn(i,n))}function tX(e,n){return nn(e)||nn(e.unevaluatedProperties)||e.allOf.some(i=>Rn(i,n))}function nX(e,n){const i=globalThis.Object.getOwnPropertyNames(e.$defs).reduce((u,l)=>[...u,e.$defs[l]],[]),a=e.$defs[e.$ref];return nn(e)||Rn(a,[...i,...n])}function rX(e,n){return nn(e)||Rn(e.items,n)}function iX(e,n){return nn(e)||Rn(e.not,n)}function oX(e,n){return nn(e)||Object.values(e.properties).some(i=>Rn(i,n))||ni(e.additionalProperties)&&Rn(e.additionalProperties,n)}function aX(e,n){return nn(e)||Rn(e.item,n)}function sX(e,n){const i=Object.getOwnPropertyNames(e.patternProperties)[0],a=e.patternProperties[i];return nn(e)||Rn(a,n)||ni(e.additionalProperties)&&nn(e.additionalProperties)}function uX(e,n){return nn(e)?!0:Rn(eo(e,n),n)}function lX(e,n){return nn(e)?!0:Rn(eo(e,n),n)}function cX(e,n){return nn(e)||!Ro(e.items)&&e.items.some(i=>Rn(i,n))}function fX(e,n){return nn(e)||e.anyOf.some(i=>Rn(i,n))}function Rn(e,n){const i=Yg(e,n),a=e;if(e.$id&&Zw.has(e.$id))return!1;switch(e.$id&&Zw.add(e.$id),e[Xe]){case"Array":return ZK(a,i);case"AsyncIterator":return JK(a,i);case"Constructor":return WK(a,i);case"Function":return eX(a,i);case"Import":return nX(a,i);case"Intersect":return tX(a,i);case"Iterator":return rX(a,i);case"Not":return iX(a,i);case"Object":return oX(a,i);case"Promise":return aX(a,i);case"Record":return sX(a,i);case"Ref":return uX(a,i);case"This":return lX(a,i);case"Tuple":return cX(a,i);case"Union":return fX(a,i);default:return nn(e)}}const Zw=new Set;function dX(e,n){return Zw.clear(),Rn(e,n)}function pX(...e){const[n,i,a]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!Kg(n,i,a))throw new jK(n,a,NK(n,i,a).First());return dX(n,i)?XK(n,i,a):a}function Ea(e,n){const i=R8(e,"default")?e.default:void 0,a=MS(i)?i():Nu(i);return Ro(n)?a:ii(n)&&ii(a)?Object.assign(a,n):n}function Jw(e){return _8(e)&&"default"in e}function hX(e,n,i){if(oi(i)){for(let u=0;u<i.length;u++)i[u]=wr(e.items,n,i[u]);return i}const a=Ea(e,i);if(!oi(a))return a;for(let u=0;u<a.length;u++)a[u]=wr(e.items,n,a[u]);return a}function mX(e,n,i){return bp(i)?i:Ea(e,i)}function gX(e,n,i){const a=globalThis.Object.values(e.$defs),u=e.$defs[e.$ref];return wr(u,[...n,...a],i)}function yX(e,n,i){const a=Ea(e,i);return e.allOf.reduce((u,l)=>{const f=wr(l,n,a);return ii(f)?{...u,...f}:f},{})}function bX(e,n,i){const a=Ea(e,i);if(!ii(a))return a;const u=Object.getOwnPropertyNames(e.properties);for(const l of u){const f=wr(e.properties[l],n,a[l]);Ro(f)||(a[l]=wr(e.properties[l],n,a[l]))}if(!Jw(e.additionalProperties))return a;for(const l of Object.getOwnPropertyNames(a))u.includes(l)||(a[l]=wr(e.additionalProperties,n,a[l]));return a}function AX(e,n,i){const a=Ea(e,i);if(!ii(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)&&Jw(f)&&(a[h]=wr(f,n,a[h]));if(!Jw(u))return a;for(const h of Object.getOwnPropertyNames(a))p.test(h)||(a[h]=wr(u,n,a[h]));return a}function vX(e,n,i){return wr(eo(e,n),n,Ea(e,i))}function xX(e,n,i){return wr(eo(e,n),n,i)}function EX(e,n,i){const a=Ea(e,i);if(!oi(a)||Ro(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]=wr(u[f],n,a[f]));return a}function wX(e,n,i){const a=Ea(e,i);for(const u of e.anyOf){const l=wr(u,n,Nu(a));if(Kg(u,n,l))return l}return a}function wr(e,n,i){const a=Yg(e,n),u=e;switch(u[Xe]){case"Array":return hX(u,a,i);case"Date":return mX(u,a,i);case"Import":return gX(u,a,i);case"Intersect":return yX(u,a,i);case"Object":return bX(u,a,i);case"Record":return AX(u,a,i);case"Ref":return vX(u,a,i);case"This":return xX(u,a,i);case"Tuple":return EX(u,a,i);case"Union":return wX(u,a,i);default:return Ea(u,i)}}function SX(...e){return e.length===3?wr(e[0],e[1],e[2]):wr(e[0],[],e[1])}var sa={},JA={exports:{}},WA={},ev={},tv={},nv,VN;function mI(){return VN||(VN=1,nv=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}),nv}var rv,GN;function Xg(){if(GN)return rv;GN=1;var e=mI();return rv=function(){return e()&&!!Symbol.toStringTag},rv}var iv,QN;function gI(){return QN||(QN=1,iv=Object),iv}var ov,YN;function IX(){return YN||(YN=1,ov=Error),ov}var av,KN;function CX(){return KN||(KN=1,av=EvalError),av}var sv,XN;function TX(){return XN||(XN=1,sv=RangeError),sv}var uv,ZN;function OX(){return ZN||(ZN=1,uv=ReferenceError),uv}var lv,JN;function D4(){return JN||(JN=1,lv=SyntaxError),lv}var cv,WN;function Fp(){return WN||(WN=1,cv=TypeError),cv}var fv,eD;function RX(){return eD||(eD=1,fv=URIError),fv}var dv,tD;function FX(){return tD||(tD=1,dv=Math.abs),dv}var pv,nD;function NX(){return nD||(nD=1,pv=Math.floor),pv}var hv,rD;function DX(){return rD||(rD=1,hv=Math.max),hv}var mv,iD;function BX(){return iD||(iD=1,mv=Math.min),mv}var gv,oD;function UX(){return oD||(oD=1,gv=Math.pow),gv}var yv,aD;function MX(){return aD||(aD=1,yv=Math.round),yv}var bv,sD;function _X(){return sD||(sD=1,bv=Number.isNaN||function(n){return n!==n}),bv}var Av,uD;function PX(){if(uD)return Av;uD=1;var e=_X();return Av=function(i){return e(i)||i===0?i:i<0?-1:1},Av}var vv,lD;function jX(){return lD||(lD=1,vv=Object.getOwnPropertyDescriptor),vv}var xv,cD;function Oc(){if(cD)return xv;cD=1;var e=jX();if(e)try{e([],"length")}catch{e=null}return xv=e,xv}var Ev,fD;function Zg(){if(fD)return Ev;fD=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Ev=e,Ev}var wv,dD;function LX(){if(dD)return wv;dD=1;var e=typeof Symbol<"u"&&Symbol,n=mI();return wv=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()},wv}var Sv,pD;function B4(){return pD||(pD=1,Sv=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Sv}var Iv,hD;function U4(){if(hD)return Iv;hD=1;var e=gI();return Iv=e.getPrototypeOf||null,Iv}var Cv,mD;function kX(){if(mD)return Cv;mD=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 Cv=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},Cv}var Tv,gD;function Np(){if(gD)return Tv;gD=1;var e=kX();return Tv=Function.prototype.bind||e,Tv}var Ov,yD;function yI(){return yD||(yD=1,Ov=Function.prototype.call),Ov}var Rv,bD;function bI(){return bD||(bD=1,Rv=Function.prototype.apply),Rv}var Fv,AD;function $X(){return AD||(AD=1,Fv=typeof Reflect<"u"&&Reflect&&Reflect.apply),Fv}var Nv,vD;function M4(){if(vD)return Nv;vD=1;var e=Np(),n=bI(),i=yI(),a=$X();return Nv=a||e.call(i,n),Nv}var Dv,xD;function AI(){if(xD)return Dv;xD=1;var e=Np(),n=Fp(),i=yI(),a=M4();return Dv=function(l){if(l.length<1||typeof l[0]!="function")throw new n("a function is required");return a(e,i,l)},Dv}var Bv,ED;function qX(){if(ED)return Bv;ED=1;var e=AI(),n=Oc(),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 Bv=a&&typeof a.get=="function"?e([a.get]):typeof l=="function"?function(p){return l(p==null?p:u(p))}:!1,Bv}var Uv,wD;function vI(){if(wD)return Uv;wD=1;var e=B4(),n=U4(),i=qX();return Uv=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,Uv}var Mv,SD;function _4(){if(SD)return Mv;SD=1;var e=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=Np();return Mv=i.call(e,n),Mv}var _v,ID;function xI(){if(ID)return _v;ID=1;var e,n=gI(),i=IX(),a=CX(),u=TX(),l=OX(),f=D4(),p=Fp(),h=RX(),m=FX(),v=NX(),A=DX(),y=BX(),I=UX(),R=MX(),U=PX(),F=Function,N=function(V){try{return F('"use strict"; return ('+V+").constructor;")()}catch{}},B=Oc(),M=Zg(),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=LX()(),re=vI(),ie=U4(),O=B4(),j=bI(),L=yI(),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%":j,"%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=Np(),te=_4(),P=be.call(L,Array.prototype.concat),ue=be.call(j,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 _v=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,P([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},_v}var Pv,CD;function Rc(){if(CD)return Pv;CD=1;var e=xI(),n=AI(),i=n([e("%String.prototype.indexOf%")]);return Pv=function(u,l){var f=e(u,!!l);return typeof f=="function"&&i(u,".prototype.")>-1?n([f]):f},Pv}var jv,TD;function HX(){if(TD)return jv;TD=1;var e=Xg()(),n=Rc(),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 Lv,OD;function zX(){if(OD)return Lv;OD=1;var e=Rc(),n=Xg()(),i=_4(),a=Oc(),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 Lv=u,Lv}var kv,RD;function VX(){if(RD)return kv;RD=1;var e=Rc(),n=zX(),i=e("RegExp.prototype.exec"),a=Fp();return kv=function(l){if(!n(l))throw new a("`regex` must be a RegExp");return function(p){return i(l,p)!==null}},kv}var $v,FD;function GX(){if(FD)return $v;FD=1;var e=Rc(),n=VX(),i=n(/^\s*(?:function)?\*/),a=Xg()(),u=vI(),l=e("Object.prototype.toString"),f=e("Function.prototype.toString"),p=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch{}},h;return $v=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},$v}var qv,ND;function QX(){if(ND)return qv;ND=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 qv=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)},qv}var Hv,DD;function YX(){if(DD)return Hv;DD=1;var e=QX(),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 Hv=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)},Hv}var zv,BD;function KX(){return BD||(BD=1,zv=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),zv}var Vv,UD;function XX(){if(UD)return Vv;UD=1;var e=KX(),n=typeof globalThis>"u"?pa:globalThis;return Vv=function(){for(var a=[],u=0;u<e.length;u++)typeof n[e[u]]=="function"&&(a[a.length]=e[u]);return a},Vv}var Gv={exports:{}},Qv,MD;function P4(){if(MD)return Qv;MD=1;var e=Zg(),n=D4(),i=Fp(),a=Oc();return Qv=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.")},Qv}var Yv,_D;function j4(){if(_D)return Yv;_D=1;var e=Zg(),n=function(){return!!e};return n.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Yv=n,Yv}var Kv,PD;function ZX(){if(PD)return Kv;PD=1;var e=xI(),n=P4(),i=j4()(),a=Oc(),u=Fp(),l=e("%Math.floor%");return Kv=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},Kv}var Xv,jD;function JX(){if(jD)return Xv;jD=1;var e=Np(),n=bI(),i=M4();return Xv=function(){return i(e,n,arguments)},Xv}var LD;function Jg(){return LD||(LD=1,(function(e){var n=ZX(),i=Zg(),a=AI(),u=JX();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})(Gv)),Gv.exports}var Zv,kD;function L4(){if(kD)return Zv;kD=1;var e=YX(),n=XX(),i=Jg(),a=Rc(),u=Oc(),l=vI(),f=a("Object.prototype.toString"),p=Xg()(),h=typeof globalThis>"u"?pa: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 Zv=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},Zv}var Jv,$D;function WX(){if($D)return Jv;$D=1;var e=L4();return Jv=function(i){return!!e(i)},Jv}var qD;function eZ(){return qD||(qD=1,(function(e){var n=HX(),i=GX(),a=L4(),u=WX();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 j(C){return a(C)==="BigInt64Array"}e.isBigInt64Array=j;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 P(C){return h(C)==="[object ArrayBuffer]"}P.working=typeof ArrayBuffer<"u"&&P(new ArrayBuffer);function ue(C){return typeof ArrayBuffer>"u"?!1:P.working?P(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")}})})})(tv)),tv}var Wv,HD;function tZ(){return HD||(HD=1,Wv=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"}),Wv}var Mm={exports:{}},zD;function nZ(){return zD||(zD=1,typeof Object.create=="function"?Mm.exports=function(n,i){i&&(n.super_=i,n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:Mm.exports=function(n,i){if(i){n.super_=i;var a=function(){};a.prototype=i.prototype,n.prototype=new a,n.prototype.constructor=n}}),Mm.exports}var VD;function op(){return VD||(VD=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)||!j(V)?Ae+=" "+V:Ae+=" "+p(V);return Ae},e.deprecate=function(ne,G){if(typeof Rt<"u"&&Rt.noDeprecation===!0)return ne;if(typeof Rt>"u")return function(){return e.deprecate(ne,G).apply(this,arguments)};var Q=!1;function J(){if(!Q){if(Rt.throwDeprecation)throw new Error(G);Rt.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=Rt.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=eZ();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 j(ne)&&Ee(ne)==="[object RegExp]"}e.isRegExp=O,e.types.isRegExp=O;function j(ne){return typeof ne=="object"&&ne!==null}e.isObject=j;function L(ne){return j(ne)&&Ee(ne)==="[object Date]"}e.isDate=L,e.types.isDate=L;function q(ne){return j(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=tZ();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=nZ(),e._extend=function(ne,G){if(!G||!j(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 P=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(P&&G[P]){var Q=G[P];if(typeof Q!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Q,P,{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)),P&&Object.defineProperty(Q,P,{value:Q,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Q,i(G))},e.promisify.custom=P;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){Rt.nextTick(V.bind(null,null,w))},function(w){Rt.nextTick(ue.bind(null,w,V))})}return Object.setPrototypeOf(G,Object.getPrototypeOf(ne)),Object.defineProperties(G,i(ne)),G}e.callbackify=me})(ev)),ev}var GD;function k4(){if(GD)return WA;GD=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(j,L,q){var oe;return i(this,O),oe=ie.call(this,k(j,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=Ww()),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=op());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=Ww()),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),WA.codes=v,WA}var e1,QD;function rZ(){if(QD)return e1;QD=1;function e(te,P){var ue=Object.keys(te);if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(te);P&&(me=me.filter(function(ne){return Object.getOwnPropertyDescriptor(te,ne).enumerable})),ue.push.apply(ue,me)}return ue}function n(te){for(var P=1;P<arguments.length;P++){var ue=arguments[P]!=null?arguments[P]:{};P%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,P,ue){return P=f(P),P in te?Object.defineProperty(te,P,{value:ue,enumerable:!0,configurable:!0,writable:!0}):te[P]=ue,te}function a(te,P){if(!(te instanceof P))throw new TypeError("Cannot call a class as a function")}function u(te,P){for(var ue=0;ue<P.length;ue++){var me=P[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,P,ue){return P&&u(te.prototype,P),Object.defineProperty(te,"prototype",{writable:!1}),te}function f(te){var P=p(te,"string");return B(P)==="symbol"?P:String(P)}function p(te,P){if(B(te)!=="object"||te===null)return te;var ue=te[Symbol.toPrimitive];if(ue!==void 0){var me=ue.call(te,P);if(B(me)!=="object")return me;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(te)}function h(te,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");te.prototype=Object.create(P&&P.prototype,{constructor:{value:te,writable:!0,configurable:!0}}),Object.defineProperty(te,"prototype",{writable:!1}),P&&F(te,P)}function m(te){var P=R();return function(){var me=N(te),ne;if(P){var G=N(this).constructor;ne=Reflect.construct(me,arguments,G)}else ne=me.apply(this,arguments);return v(this,ne)}}function v(te,P){if(P&&(B(P)==="object"||typeof P=="function"))return P;if(P!==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 P=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 P<"u"){if(P.has(me))return P.get(me);P.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,P,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,P){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(me,ne){return me.__proto__=ne,me},F(te,P)}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(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},B(te)}var M=op(),H=M.inspect,k=k4(),X=k.codes.ERR_INVALID_ARG_TYPE;function re(te,P,ue){return(ue===void 0||ue>te.length)&&(ue=te.length),te.substring(ue-P.length,ue)===P}function ie(te,P){if(P=Math.floor(P),te.length==0||P==0)return"";var ue=te.length*P;for(P=Math.floor(Math.log(P)/Math.log(2));P;)te+=te,P--;return te+=te.substring(0,ue-te.length),te}var O="",j="",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 P=Object.keys(te),ue=Object.create(Object.getPrototypeOf(te));return P.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,P,ue){var me="",ne="",G=0,Q="",J=!1,ve=D(te),Ae=ve.split(`
|
|
309
|
-
`),V=D(P).split(`
|
|
310
|
-
`),w=0,$="";if(ue==="strictEqual"&&B(te)==="object"&&B(P)==="object"&&te!==null&&P!==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(P)!=="object"||P===null)&&(te!==0||P!==0))return"".concat(oe[ue],`
|
|
311
|
-
|
|
312
|
-
`)+"".concat(Ae[0]," !== ").concat(V[0],`
|
|
313
|
-
`)}else if(ue!=="strictEqualObject"){var W=Rt.stderr&&Rt.stderr.isTTY?Rt.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(j,"+ 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(j,"+").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(j,"+").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,P){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(Rt.stderr&&Rt.stderr.isTTY&&(Rt.stderr&&Rt.stderr.getColorDepth&&Rt.stderr.getColorDepth()!==1?(O="\x1B[34m",j="\x1B[32m",q="\x1B[39m",L="\x1B[31m"):(O="",j="",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:P,value:function(G,Q){return H(this,n(n({},Q),{},{customInspect:!1,depth:0}))}}]),me})(y(Error),H.custom);return e1=be,e1}var t1,YD;function $4(){if(YD)return t1;YD=1;var e=Object.prototype.toString;return t1=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},t1}var n1,KD;function iZ(){if(KD)return n1;KD=1;var e;if(!Object.keys){var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=$4(),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 n1=e,n1}var r1,XD;function q4(){if(XD)return r1;XD=1;var e=Array.prototype.slice,n=$4(),i=Object.keys,a=i?function(f){return i(f)}:iZ(),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},r1=a,r1}var i1,ZD;function oZ(){if(ZD)return i1;ZD=1;var e=q4(),n=mI()(),i=Rc(),a=gI(),u=i("Array.prototype.push"),l=i("Object.prototype.propertyIsEnumerable"),f=n?a.getOwnPropertySymbols:null;return i1=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},i1}var o1,JD;function aZ(){if(JD)return o1;JD=1;var e=oZ(),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 o1=function(){return!Object.assign||n()||i()?e:Object.assign},o1}var a1,WD;function H4(){if(WD)return a1;WD=1;var e=function(n){return n!==n};return a1=function(i,a){return i===0&&a===0?1/i===1/a:!!(i===a||e(i)&&e(a))},a1}var s1,eB;function EI(){if(eB)return s1;eB=1;var e=H4();return s1=function(){return typeof Object.is=="function"?Object.is:e},s1}var u1,tB;function sZ(){if(tB)return u1;tB=1;var e=xI(),n=Jg(),i=n(e("String.prototype.indexOf"));return u1=function(u,l){var f=e(u,!!l);return typeof f=="function"&&i(u,".prototype.")>-1?n(f):f},u1}var l1,nB;function Wg(){if(nB)return l1;nB=1;var e=q4(),n=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",i=Object.prototype.toString,a=Array.prototype.concat,u=P4(),l=function(m){return typeof m=="function"&&i.call(m)==="[object Function]"},f=j4()(),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,l1=h,l1}var c1,rB;function uZ(){if(rB)return c1;rB=1;var e=EI(),n=Wg();return c1=function(){var a=e();return n(Object,{is:a},{is:function(){return Object.is!==a}}),a},c1}var f1,iB;function lZ(){if(iB)return f1;iB=1;var e=Wg(),n=Jg(),i=H4(),a=EI(),u=uZ(),l=n(a(),Object);return e(l,{getPolyfill:a,implementation:i,shim:u}),f1=l,f1}var d1,oB;function z4(){return oB||(oB=1,d1=function(n){return n!==n}),d1}var p1,aB;function V4(){if(aB)return p1;aB=1;var e=z4();return p1=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:e},p1}var h1,sB;function cZ(){if(sB)return h1;sB=1;var e=Wg(),n=V4();return h1=function(){var a=n();return e(Number,{isNaN:a},{isNaN:function(){return Number.isNaN!==a}}),a},h1}var m1,uB;function fZ(){if(uB)return m1;uB=1;var e=Jg(),n=Wg(),i=z4(),a=V4(),u=cZ(),l=e(a(),Number);return n(l,{getPolyfill:a,implementation:i,shim:u}),m1=l,m1}var g1,lB;function dZ(){if(lB)return g1;lB=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,ft=!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(lt){ft=!0,Le=lt}finally{try{if(!at&&Ce.return!=null&&(Ze=Ce.return(),Object(Ze)!==Ze))return}finally{if(ft)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:lZ(),A=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},y=Number.isNaN?Number.isNaN:fZ();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=op().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,j=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 P=!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 j(ce)?j(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),ft=be(le);return at.length!==ft.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 ft=0;for(ot=0;ot<at.length;ot++){var lt=at[ot];if(U(ce,lt)){if(!U(le,lt))return!1;tt.push(lt),ft++}else if(U(le,lt))return!1}var At=A(le);if(at.length!==At.length&&Y(le,At).length!==ft)return!1}else{var St=A(le);if(St.length!==0&&Y(le,St).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),ft=0;ft<at.length;ft++){var lt=at[ft];if(f(lt)==="object"&<!==null){if(!de(Le,lt,Ce,Me))return!1}else if(!Ce&&!ce.has(lt)&&!de(Le,lt,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],ft=ot[1];if(f(at)==="object"&&at!==null)Le===null&&(Le=new Set),Le.add(at);else{var lt=le.get(at);if(lt===void 0&&!le.has(at)||!$(ft,lt,Ce,Me)){if(Ce||!g(ce,le,at,ft,Me))return!1;Le===null&&(Le=new Set),Le.add(at)}}}if(Le!==null){for(var At=m(le),St=0;St<At.length;St++){var _=e(At[St],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 ft=Me[Ze];if(!$(ce[ft],le[ft],Ce,Le))return!1}return!0}function Re(ce,le){return $(ce,le,ue)}function ze(ce,le){return $(ce,le,P)}return g1={isDeepEqual:Re,isDeepStrictEqual:ze},g1}var cB;function Ww(){if(cB)return JA.exports;cB=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=k4(),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=rZ(),A=op(),y=A.inspect,I=op().types,R=I.isPromise,U=I.isRegExp,F=aZ()(),N=EI()(),B=sZ()("RegExp.prototype.test"),M,H;function k(){var G=dZ();M=G.isDeepEqual,H=G.isDeepStrictEqual}var X=!1,re=JA.exports=q,ie={};function O(G){throw G.message instanceof Error?G.message:new v(G)}function j(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 $=Rt.emitWarning?Rt.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||j};J!==void 0&&(Y.message=J);var W=new v(Y);throw w&&(W.message=w,W.generatedMessage=!0),W}re.fail=j,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 P(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];P.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 P.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,JA.exports}var y1,fB;function pZ(){if(fB)return y1;fB=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)),j=F;ie!==B;)O[j++]=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 y1=e,y1}var lr={exports:{}},b1,dB;function G4(){if(dB)return b1;dB=1,b1=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 b1}var Hi={exports:{}},_m={exports:{}},A1,pB;function hZ(){if(pB)return A1;pB=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 A1={byteLength:e,toString:n,write:i},A1}var v1,hB;function mZ(){if(hB)return v1;hB=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 v1={byteLength:i,toString:a,write:u},v1}var x1,mB;function gZ(){if(mB)return x1;mB=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}x1={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 x1}var E1,gB;function yZ(){if(gB)return E1;gB=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 E1={byteLength:e,toString:n,write:i},E1}var w1,yB;function bZ(){if(yB)return w1;yB=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 w1={byteLength:e,toString:n,write:i},w1}var bB;function AZ(){return bB||(bB=1,(function(e,n){const i=hZ(),a=mZ(),u=gZ(),l=yZ(),f=bZ(),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 j(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 j(E,g,b,C,!0)}function q(E,g,b,C){return j(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 P(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:P,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}})(_m,_m.exports)),_m.exports}var S1,AB;function vZ(){if(AB)return S1;AB=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 S1=async l=>(await WebAssembly.instantiate(await u,l)).exports,S1}var vB;function xZ(){if(vB)return Hi.exports;vB=1;var e=G4(),n=AZ(),i=null,a=typeof WebAssembly<"u"&&vZ()().then(R=>{i=R}),u=64,l=[];Hi.exports=y;var f=Hi.exports.BYTES_MIN=16,p=Hi.exports.BYTES_MAX=64;Hi.exports.BYTES=32;var h=Hi.exports.KEYBYTES_MIN=16,m=Hi.exports.KEYBYTES_MAX=64;Hi.exports.KEYBYTES=32;var v=Hi.exports.SALTBYTES=16,A=Hi.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 Hi.exports}var xB;function EZ(){if(xB)return lr.exports;xB=1;var e=G4(),n=xZ();function i(O,j,L){var q=O[j]+O[L],oe=O[j+1]+O[L+1];q>=4294967296&&oe++,O[j]=q,O[j+1]=oe}function a(O,j,L,q){var oe=O[j]+L;L<0&&(oe+=4294967296);var ge=O[j+1]+q;oe>=4294967296&&ge++,O[j]=oe,O[j+1]=ge}function u(O,j){return O[j]^O[j+1]<<8^O[j+2]<<16^O[j+3]<<24}function l(O,j,L,q,oe,ge){var Ee=v[oe],D=v[oe+1],fe=v[ge],be=v[ge+1];i(m,O,j),a(m,O,Ee,D);var te=m[q]^m[O],P=m[q+1]^m[O+1];m[q]=P,m[q+1]=te,i(m,L,q),te=m[j]^m[L],P=m[j+1]^m[L+1],m[j]=te>>>24^P<<8,m[j+1]=P>>>24^te<<8,i(m,O,j),a(m,O,fe,be),te=m[q]^m[O],P=m[q+1]^m[O+1],m[q]=te>>>16^P<<16,m[q+1]=P>>>16^te<<16,i(m,L,q),te=m[j]^m[L],P=m[j+1]^m[L+1],m[j]=P>>>31^te<<1,m[j+1]=te>>>31^P<<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,j){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,j&&(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,j,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,j&&(y[1]=j.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);j&&(R(this,j),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 j=!O||O==="binary"||O==="hex"?new Uint8Array(this.outlen):O;return e(j instanceof Uint8Array,'out must be "binary", "hex", Uint8Array, or Buffer'),e(j.length>=this.outlen,"out must have at least outlen bytes of space"),U(this,j),O==="hex"?F(j):j},I.prototype.final=I.prototype.digest,I.ready=function(O){n.ready(function(){O()})};function R(O,j){for(var L=0;L<j.length;L++)O.c===128&&(O.t+=O.c,A(O,!1),O.c=0),O.b[O.c++]=j[L]}function U(O,j){for(O.t+=O.c;O.c<128;)O.b[O.c++]=0;A(O,!0);for(var L=0;L<O.outlen;L++)j[L]=O.h[L>>2]>>8*(L&3);return j}function F(O){for(var j="",L=0;L<O.length;L++)j+=N(O[L]);return j}function N(O){return O<16?"0"+O.toString(16):O.toString(16)}var B=I;lr.exports=function(j,L,q,oe,ge){return ge!==!0&&(e(j>=M,"outlen must be at least "+M+", was given "+j),e(j<=H,"outlen must be at most "+H+", was given "+j),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(j,L,q,oe)},lr.exports.ready=function(O){n.ready(function(){O()})},lr.exports.WASM_SUPPORTED=n.SUPPORTED,lr.exports.WASM_LOADED=!1;var M=lr.exports.BYTES_MIN=16,H=lr.exports.BYTES_MAX=64;lr.exports.BYTES=32;var k=lr.exports.KEYBYTES_MIN=16,X=lr.exports.KEYBYTES_MAX=64;lr.exports.KEYBYTES=32;var re=lr.exports.SALTBYTES=16,ie=lr.exports.PERSONALBYTES=16;return n.ready(function(O){O||(lr.exports.WASM_LOADED=!0,lr.exports=n)}),lr.exports}var EB;function wZ(){if(EB)return sa;EB=1;var e=sa&&sa.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(sa,"__esModule",{value:!0}),sa.encode=sa.decode=void 0;const n=e(Ww()),i=e(pZ()),a=e(EZ()),u=(0,i.default)("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),l=hn.Buffer.from("SS58PRE"),f=hn.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)}}sa.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=hn.Buffer.allocUnsafe(1+R+I),U[0]=y,F=1):(U=hn.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)}sa.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 sa}var SZ=wZ();function IZ(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 CZ="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const Gm=IZ(CZ);function TZ(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),Gm.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=Gm.decodeUnsafe(l);if(f!=null)return i(f)}function u(l){var f=Gm.decode(l),p=i(f);if(p==null)throw new Error("Invalid checksum");return p}return{encode:n,decode:u,decodeUnsafe:a}}function OZ(e){return Fw(Fw(e))}const ey=TZ(OZ);var hu={},wB;function RZ(){if(wB)return hu;wB=1,Object.defineProperty(hu,"__esModule",{value:!0}),hu.bech32m=hu.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),j=n[O];if(j===void 0)return"Unknown character "+O;X=i(X)^j,!(ie+6>=k.length)&&re.push(j)}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 hu.bech32=h("bech32"),hu.bech32m=h("bech32m"),hu}var eS=RZ(),I1={exports:{}},SB;function FZ(){return SB||(SB=1,(function(e){(function(){var n=typeof window=="object"?window:{},i=!n.HI_BASE32_NO_NODE_JS&&typeof Rt=="object"&&Rt.versions&&Rt.versions.node;i&&(n=pa);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=[],j=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[j++]=(N<<3|B>>>2)&255,O[j++]=(B<<6|M<<1|H>>>4)&255,O[j++]=(H<<4|k>>>1)&255,O[j++]=(k<<7|X<<2|re>>>3)&255,O[j++]=(re<<5|ie)&255;var ge=L-oe;return ge===2?(N=l[F.charAt(q++)],B=l[F.charAt(q++)],O[j++]=(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[j++]=(N<<3|B>>>2)&255,O[j++]=(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[j++]=(N<<3|B>>>2)&255,O[j++]=(B<<6|M<<1|H>>>4)&255,O[j++]=(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[j++]=(N<<3|B>>>2)&255,O[j++]=(B<<6|M<<1|H>>>4)&255,O[j++]=(H<<4|k>>>1)&255,O[j++]=(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 j=re-O;return j===1?(N=F.charCodeAt(ie),X+=u[N>>>3]+u[N<<2&31]+"======"):j===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]+"===="):j===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]+"==="):j===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,j,L=0,q=F.length;if(F==="")return ie;do{for(f[0]=f[5],f[1]=f[6],f[2]=f[7],j=L;O<q&&j<5;++O)X=F.charCodeAt(O),X<128?f[j++]=X:X<2048?(f[j++]=192|X>>6,f[j++]=128|X&63):X<55296||X>=57344?(f[j++]=224|X>>12,f[j++]=128|X>>6&63,f[j++]=128|X&63):(X=65536+((X&1023)<<10|F.charCodeAt(++O)&1023),f[j++]=240|X>>18,f[j++]=128|X>>12&63,f[j++]=128|X>>6&63,f[j++]=128|X&63);L=j-5,O===q&&++O,O>q&&j<6&&(re=!0),N=f[0],j>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]):j===1?ie+=u[N>>>3]+u[N<<2&31]+"======":j===2?(B=f[1],ie+=u[N>>>3]+u[(N<<2|B>>>6)&31]+u[B>>>1&31]+u[B<<4&31]+"===="):j===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 j=re-O;return j===1?(N=F[ie],X+=u[N>>>3]+u[N<<2&31]+"======"):j===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]+"===="):j===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]+"==="):j===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,j="",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++)],j+=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++)],j+=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++)],j+=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++)],j+=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++)],j+=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)),j},U={encode:I,decode:R};R.asBytes=m,a?e.exports=U:n.base32=U})()})(I1)),I1.exports}var NZ=FZ();const Q4=cg(NZ);var C1={exports:{}},IB;function DZ(){return IB||(IB=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 Rt=="object"&&Rt.versions&&Rt.versions.node;f?u=pa: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 j=typeof O;if(j==="string")return[O,!0];if(j!=="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,j){return function(L){return new X(j,!0).update(L)[O]()}},M=function(O){var j=B("hex",O);j.create=function(){return new X(O)},j.update=function(oe){return j.create().update(oe)};for(var L=0;L<I.length;++L){var q=I[L];j[q]=B(q,O)}return j},H=function(O,j){return function(L,q){return new re(L,j,!0).update(q)[O]()}},k=function(O){var j=H("hex",O);j.create=function(oe){return new re(oe,O)},j.update=function(oe,ge){return j.create(oe).update(ge)};for(var L=0;L<I.length;++L){var q=I[L];j[q]=H(q,O)}return j};function X(O,j){j?(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 j=N(O);O=j[0];for(var L=j[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,j=this.lastByteIndex;O[32]=this.block,O[j>>>2]|=v[j&3],this.block=O[32],j>=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,j=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,P=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=j,ft=L,lt=q,At=oe,St=ge,_=Ee,he=D,_e=fe,je=be,He=te,it=P,nt=ue,st=me,rt=ne,vt=G;for(xe=ft&At,Re=lt&St,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|je<<18)^(_e>>>18|je<<14)^(je>>>9|_e<<23),w=(je>>>14|_e<<18)^(je>>>18|_e<<14)^(_e>>>9|je<<23),pe=ot&ft,E=at<,ze=pe^ot&At^xe,ce=E^at&St^Re,tt=_e&He^~_e&nt,Ze=je&it^~je&st,le=Q[J],Ce=Q[J+1],Me=y[J],Le=y[J+1],$=(Le&65535)+(Ce&65535)+(Ze&65535)+(w&65535)+(vt&65535),Y=(Le>>>16)+(Ce>>>16)+(Ze>>>16)+(w>>>16)+(vt>>>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,vt=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|vt<<18)^(rt>>>18|vt<<14)^(vt>>>9|rt<<23),w=(vt>>>14|rt<<18)^(vt>>>18|rt<<14)^(rt>>>9|vt<<23),g=_&ot,b=he&at,ze=g^_&ft^pe,ce=b^he<^E,tt=rt&_e^~rt&He,Ze=vt&je^~vt&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,$=(St&65535)+(Ce&65535),Y=(St>>>16)+(Ce>>>16)+($>>>16),W=(At&65535)+(le&65535)+(Y>>>16),de=(At>>>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),At=de<<16|W&65535,St=Y<<16|$&65535,ve=(At>>>28|St<<4)^(St>>>2|At<<30)^(St>>>7|At<<25),Ae=(St>>>28|At<<4)^(At>>>2|St<<30)^(At>>>7|St<<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=At&_,K=St&he,ze=C^At&ot^g,ce=K^St&at^b,tt=nt&rt^~nt&_e,Ze=st&vt^~st&je,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,$=(lt&65535)+(Ce&65535),Y=(lt>>>16)+(Ce>>>16)+($>>>16),W=(ft&65535)+(le&65535)+(Y>>>16),de=(ft>>>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),ft=de<<16|W&65535,lt=Y<<16|$&65535,ve=(ft>>>28|lt<<4)^(lt>>>2|ft<<30)^(lt>>>7|ft<<25),Ae=(lt>>>28|ft<<4)^(ft>>>2|lt<<30)^(ft>>>7|lt<<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=ft&At,Re=lt&St,ze=xe^ft&_^C,ce=Re^lt&he^K,tt=He&nt^~He&rt,Ze=it&st^~it&vt,le=Q[J+6],Ce=Q[J+7],Me=y[J+6],Le=y[J+7],$=(Le&65535)+(Ce&65535)+(Ze&65535)+(w&65535)+(je&65535),Y=(Le>>>16)+(Ce>>>16)+(Ze>>>16)+(w>>>16)+(je>>>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,je=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;$=(j&65535)+(at&65535),Y=(j>>>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)+(lt&65535),Y=(q>>>16)+(lt>>>16)+($>>>16),W=(L&65535)+(ft&65535)+(Y>>>16),de=(L>>>16)+(ft>>>16)+(W>>>16),this.h1h=de<<16|W&65535,this.h1l=Y<<16|$&65535,$=(ge&65535)+(St&65535),Y=(ge>>>16)+(St>>>16)+($>>>16),W=(oe&65535)+(At&65535)+(Y>>>16),de=(oe>>>16)+(At>>>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)+(je&65535),Y=(be>>>16)+(je>>>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,$=(P&65535)+(it&65535),Y=(P>>>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)+(vt&65535),Y=(G>>>16)+(vt>>>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,j=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,P=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[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]+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[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]),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,j=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,P=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,j>>>24&255,j>>>16&255,j>>>8&255,j&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,P>>>24&255,P>>>16&255,P>>>8&255,P&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,j=new ArrayBuffer(O/8),L=new DataView(j);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)),j},X.prototype.clone=function(){var O=new X(this.bits,!1);return this.copyTo(O),O},X.prototype.copyTo=function(O){var j=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(j=0;j<L.length;++j)O[L[j]]=this[L[j]];for(j=0;j<this.blocks.length;++j)O.blocks[j]=this.blocks[j]};function re(O,j,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(j,!0).update(O).array());for(var be=[],te=[],q=0;q<128;++q){var P=O[q]||0;be[q]=92^P,te[q]=54^P}X.call(this,j,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 j=0;j<this.oKeyPad.length;++j)O.oKeyPad[j]=this.oKeyPad[j];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)})()})(C1)),C1.exports}var BZ=DZ();const UZ=cg(BZ),Y4="3.7.8",MZ=Y4,Fc=typeof hn.Buffer=="function",CB=typeof TextDecoder=="function"?new TextDecoder:void 0,TB=typeof TextEncoder=="function"?new TextEncoder:void 0,_Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",gd=Array.prototype.slice.call(_Z),Pm=(e=>{let n={};return e.forEach((i,a)=>n[i]=a),n})(gd),PZ=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Jn=String.fromCharCode.bind(String),OB=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),K4=e=>e.replace(/=/g,"").replace(/[+\/]/g,n=>n=="+"?"-":"_"),X4=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Z4=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+=gd[n>>18&63]+gd[n>>12&63]+gd[n>>6&63]+gd[n&63]}return f?l.slice(0,f-3)+"===".substring(f):l},wI=typeof btoa=="function"?e=>btoa(e):Fc?e=>hn.Buffer.from(e,"binary").toString("base64"):Z4,tS=Fc?e=>hn.Buffer.from(e).toString("base64"):e=>{let i=[];for(let a=0,u=e.length;a<u;a+=4096)i.push(Jn.apply(null,e.subarray(a,a+4096)));return wI(i.join(""))},Qm=(e,n=!1)=>n?K4(tS(e)):tS(e),jZ=e=>{if(e.length<2){var n=e.charCodeAt(0);return n<128?e:n<2048?Jn(192|n>>>6)+Jn(128|n&63):Jn(224|n>>>12&15)+Jn(128|n>>>6&63)+Jn(128|n&63)}else{var n=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Jn(240|n>>>18&7)+Jn(128|n>>>12&63)+Jn(128|n>>>6&63)+Jn(128|n&63)}},LZ=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,J4=e=>e.replace(LZ,jZ),RB=Fc?e=>hn.Buffer.from(e,"utf8").toString("base64"):TB?e=>tS(TB.encode(e)):e=>wI(J4(e)),tc=(e,n=!1)=>n?K4(RB(e)):RB(e),FB=e=>tc(e,!0),kZ=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,$Z=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 Jn((i>>>10)+55296)+Jn((i&1023)+56320);case 3:return Jn((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Jn((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},W4=e=>e.replace(kZ,$Z),eP=e=>{if(e=e.replace(/\s+/g,""),!PZ.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=Pm[e.charAt(l++)]<<18|Pm[e.charAt(l++)]<<12|(i=Pm[e.charAt(l++)])<<6|(a=Pm[e.charAt(l++)]),i===64?u.push(Jn(n>>16&255)):a===64?u.push(Jn(n>>16&255,n>>8&255)):u.push(Jn(n>>16&255,n>>8&255,n&255));return u.join("")},SI=typeof atob=="function"?e=>atob(X4(e)):Fc?e=>hn.Buffer.from(e,"base64").toString("binary"):eP,tP=Fc?e=>OB(hn.Buffer.from(e,"base64")):e=>OB(SI(e).split("").map(n=>n.charCodeAt(0))),nP=e=>tP(rP(e)),qZ=Fc?e=>hn.Buffer.from(e,"base64").toString("utf8"):CB?e=>CB.decode(tP(e)):e=>W4(SI(e)),rP=e=>X4(e.replace(/[-_]/g,n=>n=="-"?"+":"/")),nS=e=>qZ(rP(e)),HZ=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)},iP=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),oP=function(){const e=(n,i)=>Object.defineProperty(String.prototype,n,iP(i));e("fromBase64",function(){return nS(this)}),e("toBase64",function(n){return tc(this,n)}),e("toBase64URI",function(){return tc(this,!0)}),e("toBase64URL",function(){return tc(this,!0)}),e("toUint8Array",function(){return nP(this)})},aP=function(){const e=(n,i)=>Object.defineProperty(Uint8Array.prototype,n,iP(i));e("toBase64",function(n){return Qm(this,n)}),e("toBase64URI",function(){return Qm(this,!0)}),e("toBase64URL",function(){return Qm(this,!0)})},zZ=()=>{oP(),aP()},VZ={version:Y4,VERSION:MZ,atob:SI,atobPolyfill:eP,btoa:wI,btoaPolyfill:Z4,fromBase64:nS,toBase64:tc,encode:tc,encodeURI:FB,encodeURL:FB,utob:J4,btou:W4,decode:nS,isValid:HZ,fromUint8Array:Qm,toUint8Array:nP,extendString:oP,extendUint8Array:aP,extendBuiltins:zZ},qu=e=>`${e} is malformed`,sP=e=>`${e} checksum is wrong`,GZ=32,NB=32,jm=36,uP=4,DB=58,BB=32,QZ=32,UB=qu("block hash"),YZ=qu("tx id"),T1=qu("address"),KZ=sP("address");function XZ(e){return Uint8Array.from(UZ.sha512_256.array(e).slice(BB-uP,BB))}function ZZ(e){if(typeof e!="string")throw new Error(`${T1}: expected string, got ${typeof e}, ${e}`);if(e.length!==DB)throw new Error(`${T1}: expected length ${DB}, got ${e.length}: ${e}`);const n=Q4.decode.asBytes(e);if(n.length!==jm)throw new Error(`${T1}: expected byte length ${jm}, got ${n.length}`);const i=new Uint8Array(n.slice(0,jm-uP)),a=new Uint8Array(n.slice(QZ,jm)),u=XZ(i);if(!eJ(u,a))throw new Error(KZ);return!0}function JZ(e){const n=VZ.toUint8Array("3KYSrPgi16Cl3iLu3r+GaeZkBBrgNFbMB60jsrJtTdI=");if(n.length!==NB)throw new Error(`${YZ}: expected byte length ${NB}, got ${n.length}`);return!0}function WZ(e){const n=Q4.decode.asBytes(e);if(n.length!==GZ)throw new Error(`${UB}: expected byte length ${UB}, got ${n.length}`);return!0}function eJ(e,n){return e.length!==n.length?!1:Array.from(e).every((i,a)=>i===n[a])}const tJ=34,rS=34,MB=36,nJ=qu("block hash"),rJ=qu("tx id"),iJ=qu("address");function oJ(e){const n=ey.decode(e);if(n.length!==MB)throw new Error(`${iJ}: expected byte length ${MB}, got ${n.length}`);return!0}function aJ(e){const n=ey.decode(e);if(n.length!==rS)throw new Error(`${nJ}: expected byte length ${tJ}, got ${n.length}`);return!0}function sJ(e){const n=ey.decode(e);if(n.length!==rS)throw new Error(`${rJ}: expected byte length ${rS}, got ${n.length}`);return!0}function uJ({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 xo=uJ({polynomial:3988292384,numTables:8});function lJ(){return-1}function cJ(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=xo[(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=xo[0*256+(h>>>24&255)]^xo[1*256+(h>>>16&255)]^xo[2*256+(h>>>8&255)]^xo[3*256+(h>>>0&255)]^xo[4*256+(u>>>24&255)]^xo[5*256+(u>>>16&255)]^xo[6*256+(u>>>8&255)]^xo[7*256+(u>>>0&255)]}for(let h=l;h<i;h++)u=xo[(u^a.getUint8(h))&255]^u>>>8;return u}function fJ(e){return(e^-1)>>>0}function dJ(e){return fJ(cJ(lJ(),e))}const mu=Error,Lm=Error,O1="Unexpected end of buffer",Zl=class Zl{constructor(n){this.initialByte=n}CborInitialByte(n,i){this.initialByte=n<<5|i}static from(n){return new Zl(n)}getInitialByte(){return this.initialByte}getMajorType(){return this.initialByte>>5}getAdditionalInfo(){return this.initialByte&Zl.AdditionalInformationMask}};Zl.IndefiniteLengthBreakByte=255,Zl.AdditionalInformationMask=31;let fs=Zl;var fa,zi,ug,nc,sn,lg,Ft,lP,cP,fP,Ym,Pr,oS,dP,Km,yd,bd,Au,aS,vu;const Zn=class Zn{constructor(n){ia(this,Ft);ia(this,fa);ia(this,zi,0);ia(this,ug,new Array);ia(this,nc,!1);ia(this,sn);ia(this,lg,0);os(this,fa,new Uint8Array(hn.Buffer.from(n,"hex"))),os(this,sn,{currentKeyOffset:null,frameOffset:0,itemsRead:0,type:null})}readStartArray(){var l;const n=Bt(this,Ft,yd).call(this,4);if(n.getAdditionalInfo()===31)return Bt(this,Ft,Au).call(this,1),Bt(this,Ft,aS).call(this,4),null;const i=Bt(this,Ft,vu).call(this),{length:a,bytesRead:u}=Bt(l=Zn,Pr,Km).call(l,n,i);return Bt(this,Ft,Au).call(this,u),Bt(this,Ft,aS).call(this,4,a),a}readTag(){const{tag:n,bytesRead:i}=Bt(this,Ft,dP).call(this);return Bt(this,Ft,Au).call(this,i),os(this,nc,!0),n}readByteString(){var l;const n=Bt(this,Ft,yd).call(this,2);if(n.getAdditionalInfo()===31){const{val:f,encodingLength:p}=Bt(this,Ft,fP).call(this,2);return Bt(this,Ft,Au).call(this,p),Bt(this,Ft,Ym).call(this),f}const i=Bt(this,Ft,vu).call(this),{length:a,bytesRead:u}=Bt(l=Zn,Pr,Km).call(l,n,i);return Bt(this,Ft,cP).call(this,u+a),Bt(this,Ft,Au).call(this,u+a),Bt(this,Ft,Ym).call(this),i.slice(u,u+a)}readInt(){const n=Bt(this,Ft,lP).call(this);return Bt(this,Ft,Au).call(this,n.bytesRead),Bt(this,Ft,Ym).call(this),n.signedInt}static ensureReadCapacityInArray(n,i){if(n.length<i)throw new mu(O1)}};fa=new WeakMap,zi=new WeakMap,ug=new WeakMap,nc=new WeakMap,sn=new WeakMap,lg=new WeakMap,Ft=new WeakSet,lP=function(){var i,a;const n=Bt(this,Ft,yd).call(this);switch(n.getMajorType()){case 0:{const{unsignedInt:u,bytesRead:l}=Bt(i=Zn,Pr,bd).call(i,n,Bt(this,Ft,vu).call(this));return{bytesRead:l,signedInt:BigInt(u)}}case 1:{const{unsignedInt:u,bytesRead:l}=Bt(a=Zn,Pr,bd).call(a,n,Bt(this,Ft,vu).call(this));return{bytesRead:l,signedInt:BigInt(-1)-u}}default:throw new Lm(`Reader type mismatch, expected 0 or 1 but got ${n.getMajorType()}`)}},cP=function(n){if(Mt(this,fa).length-Mt(this,zi)<n)throw new mu(O1)},fP=function(n){var p,h,m;const i=Bt(this,Ft,vu).call(this);let a=hn.Buffer.from([]),u=0,l=1,f=Bt(p=Zn,Pr,oS).call(p,i.slice(l),n);for(;f.getInitialByte()!==fs.IndefiniteLengthBreakByte;){const{length:v,bytesRead:A}=Bt(h=Zn,Pr,Km).call(h,f,i.slice(l)),y=A+Number(v);a=hn.Buffer.concat([a,i.slice(l+(y-v),l+y)]),l+=y,f=Bt(m=Zn,Pr,oS).call(m,i.slice(l),n)}return u=l+1,{encodingLength:u,val:new Uint8Array(a)}},Ym=function(){++Mt(this,sn).itemsRead,os(this,nc,!1)},Pr=new WeakSet,oS=function(n,i){Zn.ensureReadCapacityInArray(n,1);const a=fs.from(n[0]);if(a.getInitialByte()!==fs.IndefiniteLengthBreakByte&&a.getMajorType()!==i)throw new mu("Indefinite length string contains invalid data item");return a},dP=function(){var u;const n=Bt(this,Ft,yd).call(this,6),{unsignedInt:i,bytesRead:a}=Bt(u=Zn,Pr,bd).call(u,n,Bt(this,Ft,vu).call(this));return{bytesRead:a,tag:Number(i)}},Km=function(n,i){var l;const{unsignedInt:a,bytesRead:u}=Bt(l=Zn,Pr,bd).call(l,n,i);return{bytesRead:u,length:Number(a)}},yd=function(n){if(Mt(this,sn).definiteLength!==void 0&&Mt(this,sn).definiteLength-Mt(this,sn).itemsRead===0)throw new Lm("No more data items to read");if(Mt(this,zi)===Mt(this,fa).length)throw Mt(this,sn).type===null&&Mt(this,sn).definiteLength===void 0&&Mt(this,zi)>0?new Lm("End of root-level. No more data items to read"):new mu(O1);const i=fs.from(Mt(this,fa)[Mt(this,zi)]);switch(Mt(this,sn).type){case 2:case 3:if(i.getInitialByte()===fs.IndefiniteLengthBreakByte||i.getMajorType()===Mt(this,sn).type&&i.getAdditionalInfo()!==31)break;throw new mu(`Indefinite length string contains invalid data item, ${i.getMajorType()}`)}if(n&&n!==i.getMajorType())throw new Lm(`Major type mismatch, expected type ${n} but got ${i.getMajorType()}`);return i},bd=function(n,i){if((n.getInitialByte()&fs.AdditionalInformationMask)<24)return{bytesRead:1,unsignedInt:BigInt(n.getAdditionalInfo())};switch(n.getAdditionalInfo()){case 24:return Zn.ensureReadCapacityInArray(i,2),{bytesRead:2,unsignedInt:BigInt(i[1])};case 25:{Zn.ensureReadCapacityInArray(i,3);const u=hn.Buffer.from(i.slice(1)).readUInt16BE();return{bytesRead:3,unsignedInt:BigInt(u)}}case 26:{Zn.ensureReadCapacityInArray(i,5);const u=hn.Buffer.from(i.slice(1)).readUInt32BE();return{bytesRead:5,unsignedInt:BigInt(u)}}case 27:{Zn.ensureReadCapacityInArray(i,9);const a=hn.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 mu("Invalid integer encoding")}},Au=function(n){if(Mt(this,zi)+n>Mt(this,fa).length)throw new mu("Buffer offset out of bounds");os(this,zi,Mt(this,zi)+n),os(this,lg,0)},aS=function(n,i){const a={currentKeyOffset:Mt(this,sn).currentKeyOffset,definiteLength:Mt(this,sn).definiteLength,frameOffset:Mt(this,sn).frameOffset,itemsRead:Mt(this,sn).itemsRead,type:Mt(this,sn).type};Mt(this,ug).push(a),Mt(this,sn).type=n,Mt(this,sn).definiteLength=i,Mt(this,sn).itemsRead=0,Mt(this,sn).frameOffset=Mt(this,zi),os(this,nc,!1),Mt(this,sn).currentKeyOffset=null},vu=function(){return Mt(this,fa).slice(Mt(this,zi))},ia(Zn,Pr);let iS=Zn;const pJ=sP("address");function hJ(e){return pP(Gm.decode(e))}function pP(e){const n=new iS(hn.Buffer.from(e).toString("hex"));n.readStartArray(),n.readTag();const i=n.readByteString();if(Number(n.readInt())!==dJ(i))throw new Error(pJ);return!0}function mJ(e){const n=eS.bech32.decode(e,Number.MAX_SAFE_INTEGER/2),i=eS.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=hn.Buffer.from(i),{bytesRead:f}=R1(l.subarray(u));u+=f;const{bytesRead:p}=R1(l.subarray(u));return u+=p,R1(l.subarray(u)),!0}case 6:case 7:return i.length===47;case 14:case 15:return i.length===47;case 8:return pP(new Uint8Array(i));default:throw new Error(qu("address"))}}const R1=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 Bn=(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))(Bn||{});function Ji(e,n,i=()=>!0){try{return i(n(e))}catch{return!1}}Fo("algorand-address",e=>Ji(e,ZZ));Fo("algorand-blockhash",e=>Ji(e,JZ));Fo("algorand-txid",e=>Ji(e,WZ));Fo("mina-address",e=>Ji(e,oJ));Fo("mina-blockhash",e=>Ji(e,aJ));Fo("mina-txid",e=>Ji(e,sJ));Fo("cardano-address",e=>Ji(e,hJ)||Ji(e,mJ));Fo("ss58",e=>Ji(e,SZ.decode));Fo("bs58check",e=>Ji(e,ey.decode));Fo("bech32",e=>Ji(e,n=>eS.bech32.decode(n,Number.MAX_SAFE_INTEGER/2)));function cr(e){return S.Transform(e).Decode(n=>n.toLowerCase()).Encode(n=>n.toLowerCase())}function _B(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(_B(S.String({format:"algorand-txid"}))),Address:S.Unsafe(_B(S.String({format:"algorand-address"})))},Substrate:{Address:S.Unsafe(S.String({format:"ss58"}))},Avail:{BlockHash:S.Unsafe(cr(S.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:S.Unsafe(S.String({format:"ss58"}))},Cardano:{BlockHash:S.Unsafe(cr(S.RegExp(/^[a-fA-F0-9]{64}$/))),TxHash:S.Unsafe(cr(S.RegExp(/^[a-fA-F0-9]{64}$/))),Address:S.Unsafe(S.String({format:"cardano-address"})),Credential:S.Unsafe(cr(S.RegExp(/^[a-fA-F0-9]{64}$/))),PoolId:S.Unsafe(cr(S.String())),PolicyId:S.Unsafe(cr(S.RegExp(/^[a-fA-F0-9]{56}$/))),AssetName:S.Unsafe(cr(S.RegExp(/^[a-fA-F0-9]{64}$/))),Cip14Fingerprint:S.Unsafe(S.String()),AmountLovelace:S.Unsafe(S.RegExp(/^\d+$/))},Evm:{BlockHash:S.Unsafe(cr(S.RegExp(/^0x[a-fA-F0-9]{64}$/))),TxHash:S.Unsafe(cr(S.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:S.Unsafe(cr(S.RegExp(/^0x[a-fA-F0-9]{40}$/))),Selector:S.Unsafe(cr(S.RegExp(/^0x[a-fA-F0-9]{8}$/))),FullSelector:S.Unsafe(cr(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(cr(S.RegExp(/^0x[a-fA-F0-9]{64}$/))),TxHash:S.Unsafe(cr(S.RegExp(/^0x[a-fA-F0-9]{64}$/))),Address:S.Unsafe(cr(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(yJ),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:cr(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())},gJ={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},yJ=[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 Xm(e){return{from:n=>{const i=[];for(const a of e)i.push([a,n.properties[a]]);return i}}}function Yl(e){return{from:n=>Xm(e).from(n)}}const ap=e=>({ok:!0,value:e}),sp=e=>({ok:!1,error:e}),bJ={},hP=AJ(globalThis,bJ);function AJ(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 us=hP.Temporal??new Proxy({},{get:()=>{}});new Set([Intl.Locale,RegExp,us.Duration,us.Instant,us.PlainDate,us.PlainDateTime,us.PlainTime,us.PlainYearMonth,us.PlainMonthDay,us.ZonedDateTime,URL,URLSearchParams].filter(e=>e!=null).map(e=>e.prototype));const{Deno:km}=hP;typeof(km==null?void 0:km.noColor)=="boolean"&&km.noColor;function*sS(e){return yield{type:"reset",block:e}}function*II(e){return yield{type:"shift",block:e}}function vJ(){let e=[];return{reducing:!1,push(...n){return e.push(...n)},pop(){return e.pop()}}}function wu(e){let n=vJ();return n.push({method:"next",iterator:e()[Symbol.iterator]()}),Ad(n)}function Ad(e){try{e.reducing=!0;for(let n=e.pop();n;n=e.pop())try{let i=xJ(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=$m(p=>(e.push({method:"next",iterator:u.iterator,value:p}),Ad(e)));l.tail=$m(p=>{e.push({method:"next",iterator:u.iterator,value:p}),e.reducing||Ad(e)});let f=$m(p=>(e.push({method:"throw",iterator:u.iterator,value:p}),Ad(e)));f.tail=$m(p=>{e.push({method:"throw",iterator:u.iterator,value:p}),e.reducing||Ad(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 xJ(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 $m(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 mc(e){return II((n,i)=>({[Symbol.iterator]:()=>({next(){return{done:!0,value:e(n,i)}}})}))}function og(){return CI(EJ)}function EJ(e){return mc(n=>{e.aborted&&n.tail(ap(void 0))})}function PB(e){return CI(function(i){return II(function*(a){let u=yield*sS(function*(){let h=yield*mc(v=>v.tail),m=yield*p.destroy();m.ok?a.tail(h):a.tail(m)}),l=h=>u(ap(h)),f=h=>u(sp(h)),p=i.createChild(function*(){let h=e(l,f);if(typeof h=="function")try{yield*og()}finally{h()}else yield*h,yield*og()});yield*sS(function*(){let h=yield*p;h.ok||a.tail(h)}),p.enter()})})}function wJ(){return CI(e=>mc(n=>n.tail(ap(e))))}function CI(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 up(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 SJ(e){let n=()=>{let i=e();return n=()=>i,i};return()=>n()}function*IJ(){let e,n=new Set;return[yield*sS(function*(){let u=yield*mc(l=>l.tail);e={value:u};for(let l of n)n.delete(l),l(u)}),{[Symbol.iterator](){return e?CJ(e.value):mc(u=>{n.add(u.tail)})[Symbol.iterator]()}}]}function CJ(e){return{next(){return{done:!0,value:e}}}}function TJ(e){let n,i=(l,f)=>{wu(function*(){let p=jB(yield*e);p.ok?l(p.value):f(p.error)})},a=()=>(n=new Promise((l,f)=>{i(l,f)}),a=()=>n,n);return up("Task",{},{*[Symbol.iterator](){let l=wu(()=>e);if(l){let f=jB(l);if(f.ok)return f.value;throw f.error}else return yield*PB(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)=>{wu(function*(){let{destruction:v}=yield*e;v.ok?h():m(v.error)})};return up("Future",{},{*[Symbol.iterator](){let h=wu(()=>e);if(h){if(!h.ok)throw h.error}else yield*PB(function*(m,v){p(m,v),e.destroy()})},then:(...h)=>f().then(...h),catch:(...h)=>f().catch(...h),finally:(...h)=>f().finally(...h)})}})}function jB(e){return e.ok?e.exit.type==="aborted"?sp(Error("halted")):e.exit.type==="crashed"?sp(e.exit.error):e.exit.result:e}let OJ=0;function mP(e){return wu(function*(){let{operation:n,parent:i}=e,a=new Set,u=Object.create(i??{}),l=[{done:!1,value:LB(void 0)}],f,p=()=>{},[h,m]=yield*IJ(),v=yield*mc(F=>{let N=up("Frame",{id:OJ++,context:u},{createChild(M){let H=mP({operation:M,parent:N.context});return a.add(H),wu(function*(){yield*H,a.delete(H)}),H},getTask(){let M=TJ(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:FJ()}),p())};return N}),A=SJ(()=>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:ap(N.value)});else{let B=N.value,M=yield*II(function*(H){p=()=>H.tail({type:"interrupted"});try{H.tail({type:"settled",result:yield*B(v)})}catch(k){H.tail({type:"settled",result:sp(k)})}});M.type==="settled"&&(M.result.ok?l.unshift({done:!1,value:LB(M.result.value)}):l.unshift({done:!1,value:RJ(M.result.error)}))}}catch(N){l.unshift({done:!0,value:sp(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=ap(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 LB=e=>function(i){return i.next(e)},RJ=e=>function(i){if(i.throw)return i.throw(e);throw e},FJ=e=>function(i){return i.return?i.return(e):{done:!0,value:e}};function*F1(){let e=yield*wJ(),[n]=NJ(e);return n}function NJ(e){let n=DJ(e)?e.frame.createChild(og):e??mP({operation:og}),i=up("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(),wu(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 DJ(e){return!!e&&typeof e.run=="function"}function BJ(e,n){let i=up("Context",{key:e},{defaultValue:n,*get(){return(yield*F1()).get(i)},*set(u){return(yield*F1()).set(i,u)},expect:a,*with(u,l){let f=yield*F1(),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 UJ(`missing required context: '${e}'`);return u}return i}class UJ extends Error{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MissingContextError"})}}const dd={evm:"#4caf50",evmParallel:"#ff9800",cardano:"#2196f3",midnight:"#9c27b0"};function MJ(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=dd.evm;l.type==="cardano"?m=dd.cardano:l.type==="midnight"?m=dd.midnight:l.name.toLowerCase().includes("arbitrum")?m=dd.evm:(l.name.toLowerCase().includes("ethereum")||l.name.toLowerCase().includes("l1"))&&(m=dd.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 _J(){var e;try{const n=await fetch(yP);if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const i=await n.json(),a=MJ(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:${ut.PAIMA_API_PORT}/rpc/evm`,latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1},...a}}catch(n){return console.error("Error fetching chain configs:",n),gP}}const gP={Paima:{type:"EVM",name:"Paima Engine",blockTime:1e3,color:"#667eea",blocks:[],currentBlock:1e6,rpcEndpoint:`http://127.0.0.1:${ut.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}},yP=`http://127.0.0.1:${ut.PAIMA_API_PORT}/config`,PJ=`http://127.0.0.1:${ut.PAIMA_API_PORT}/block-heights`,jJ=`http://127.0.0.1:${ut.PAIMA_API_PORT}/primitives`,kB=`http://127.0.0.1:${ut.PAIMA_API_PORT}/tables`,LJ=`http://127.0.0.1:${ut.PAIMA_API_PORT}/grammar`,kJ=`http://127.0.0.1:${ut.PAIMA_API_PORT}/scheduled-data`,$J=`http://127.0.0.1:${ut.PAIMA_API_PORT}/primitives-schema`,qJ=`http://127.0.0.1:${ut.PAIMA_API_PORT}/table-schema`,HJ=`http://127.0.0.1:${ut.PAIMA_API_PORT}/sync-protocols`,bP=`http://localhost:${ut.BATCHER_PORT}/send-input`,$B=`http://localhost:${ut.BATCHER_PORT}/documentation`,qB=`http://localhost:${ut.PAIMA_API_PORT}/documentation`,HB="https://acedward.github.io/paima-v-next-docs/",zJ=`http://127.0.0.1:${ut.PAIMA_API_PORT}/addresses`;function TI(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 ls(e){return["userAddress",gJ[e]]}const cs=[["userSignature",S.String()],["conciseInput",S.String()],["millisecondTimestamp",S.String()]],VJ={[`${Bn.EVM}`]:[ls(Bn.EVM),...cs],[`${Bn.CARDANO}`]:[ls(Bn.CARDANO),...cs],[`${Bn.SUBSTRATE}`]:[ls(Bn.SUBSTRATE),...cs],[`${Bn.AVAIL}`]:[ls(Bn.AVAIL),...cs],[`${Bn.ALGORAND}`]:[ls(Bn.ALGORAND),...cs],[`${Bn.MINA}`]:[ls(Bn.MINA),...cs],[`${Bn.MIDNIGHT}`]:[ls(Bn.MIDNIGHT),...cs],[`${Bn.POLKADOT}`]:[ls(Bn.POLKADOT),...cs]};TI(VJ);const GJ={batcherInput:"&B"},QJ={[GJ.batcherInput]:[["input",S.Array(S.String())]]};TI(QJ);const N1={createAccount:"&createAccount",linkAddress:"&linkAddress",unlinkAddress:"&unlinkAddress"},YJ={[N1.createAccount]:[],[N1.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()]],[N1.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()]]};TI(YJ);class Ln{constructor(n){this.config=n,this.allProperties=i=>S.Intersect([this.config.required,i?this.config.optional:S.Partial(this.config.optional)]),this.defaultProperties=()=>SX(this.config.optional,{}),this.cloneMerge=i=>{const a=i instanceof Ln?i.config:i;return new Ln({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 en=(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))(en||{});const zB=S.Object({name:S.String(),url:S.String(),apiUrl:S.Optional(S.String())}),KJ=S.Object({http:S.Array(S.String()),webSocket:S.Optional(S.Array(S.String()))}),VB=S.Unsafe(KJ),XJ=S.Object({name:S.String(),symbol:S.String({minLength:2,maxLength:6}),decimals:S.Number()}),ZJ=new Ln({required:S.Object({name:S.String(),type:S.Literal(en.EVM),chainId:S.Number(),nativeCurrency:XJ,rpcUrls:S.Intersect([S.Record(S.String(),VB),S.Object({default:VB})])}),optional:S.Object({blockExplorers:Ie.Nullable(S.Intersect([S.Record(S.String(),zB),S.Object({default:zB})]),{default:null}),sourceId:Ie.Nullable(S.Number(),{default:null}),testnet:S.Boolean({default:!1})})}),JJ=S.Union([S.Literal("preview"),S.Literal("preprod"),S.Literal("mainnet"),S.Literal("yaci")]),WJ=new Ln({required:S.Object({name:S.String(),type:S.Literal(en.CARDANO),network:JJ}),optional:S.Object({})}),eW=new Ln({required:S.Object({name:S.String(),type:S.Literal(en.MINA),networkId:S.String()}),optional:S.Object({})}),OI=Ie.HexString0x({maxLength:66,minLength:66}),tW=new Ln({required:S.Object({name:S.String(),type:S.Literal(en.SUBSTRATE),genesisHash:OI}),optional:S.Object({})}),nW=new Ln({required:S.Object({name:S.String(),type:S.Literal(en.AVAIL),genesisHash:OI}),optional:S.Object({})}),rW=new Ln({required:S.Object({name:S.String(),type:S.Literal(en.MIDNIGHT),networkId:S.Number(),genesisHash:OI}),optional:S.Object({})});var pd={},GB;function iW(){if(GB)return pd;GB=1,Object.defineProperty(pd,"__esModule",{value:!0}),pd.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 pd.default=e,pd}iW();const oW=S.RegExp("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),aW=new Ln({required:S.Object({name:S.String(),type:S.Literal(en.ALGORAND),genesisHash:oW}),optional:S.Object({})});S.Object({name:S.String(),url:S.String(),apiUrl:S.Optional(S.String())});const sW=S.Object({http:S.Array(S.String()),webSocket:S.Optional(S.Array(S.String()))});S.Unsafe(sW);S.Object({name:S.String(),symbol:S.String({minLength:2,maxLength:6}),decimals:S.Number()});const uW=new Ln({required:S.Object({name:S.String(),type:S.Literal(en.NTP),startTime:S.Number(),blockTimeMS:S.Number()}),optional:S.Object({servers:S.Array(S.String())})});en.NTP+"",en.EVM+"",en.CARDANO+"",en.MINA+"",en.AVAIL+"",en.ALGORAND+"",en.MIDNIGHT+"",en.SUBSTRATE+"";var yt=(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))(yt||{});en.NTP,en.EVM,en.CARDANO,en.CARDANO,en.MINA,en.AVAIL,en.MIDNIGHT;const di=new Ln({required:S.Object({name:S.String()}),optional:S.Object({})}),Nc=new Ln({required:S.Object({pollingInterval:Ie.IntervalMs()}),optional:S.Object({})}),wa=new Ln({required:S.Object({startBlockHeight:Ie.BlockNumber()}),optional:S.Object({stopBlockHeight:Ie.Nullable(Ie.BlockNumber(),{default:null})})}),ty=new Ln({required:S.Object({startSlot:Ie.AbsoluteSlotNumber()}),optional:S.Object({stopSlot:Ie.Nullable(Ie.AbsoluteSlotNumber(),{default:null})})});new Ln({required:S.Object({startTimestamp:Ie.TimestampMs()}),optional:S.Object({stopTimestamp:Ie.Nullable(Ie.TimestampMs(),{default:null})})});const lW=new Ln({required:S.Object({abi:Ie.EvmAbiEvent}),optional:S.Object({})}),cW=e=>S.Number({default:e}),fW=e=>Ie.IntervalMs({default:e});function Dp(e,n,i={}){let a=e*n;return i.factor!=null&&(a*=i.factor),i.absolute!=null&&(a+=i.absolute),{confirmationDepth:cW(e),delayMs:fW(a)}}const Dc={internal:{},payload:{mainchain:S.Object({blockNumber:Ie.Nullable(Ie.BlockNumber()),timestamp:Ie.Nullable(Ie.TimestampMs())})}};function Hu(...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 dW=di.cloneMerge(Nc).cloneMerge(wa).cloneMerge({required:S.Object({chainUri:S.String()}),optional:S.Object({stepSize:S.Number({default:1e3})})}),pW={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}},hW=dW.cloneMerge({required:S.Object({type:S.Literal(yt.EVM_RPC_PARALLEL),confirmationDepth:S.Number()}),optional:S.Object({delayMs:Ie.IntervalMs({default:2*1e3})})}),mW=Hu(Dc,pW);S.Unsafe(S.String());const gW=Ie.SerializeObjAsJson(),yW=di.cloneMerge(Nc).cloneMerge(ty).cloneMerge({required:S.Object({name:S.String(),carpUrl:S.String()}),optional:S.Object({stepSize:S.Number({default:1e3}),paginationLimit:S.Number({default:50})})}),bW={internal:{cursor:gW},payload:{primitiveName:S.String(),caip2:Ie.Caip2,ownChain:S.Object({absoluteSlotNumber:Ie.AbsoluteSlotNumber()}),transactionHash:Ie.Cardano.TxHash}},AW=20*1e3,vW=5,xW=yW.cloneMerge({required:S.Object({type:S.Literal(yt.CARDANO_CARP_PARALLEL)}),optional:S.Object({...Dp(vW,AW,{factor:2,absolute:0})})}),EW=Hu(Dc,bW),wW=Ie.Mina.TxHash,SW=di.cloneMerge(Nc).cloneMerge(wa).cloneMerge({required:S.Object({name:S.String(),archiveConnectionString:S.String()}),optional:S.Object({stepSize:S.Number({default:1e3}),paginationLimit:S.Number({default:50})})}),IW={internal:{cursor:wW},payload:{primitiveName:S.String(),caip2:Ie.Caip2,ownChain:S.Object({blockNumber:Ie.BlockNumber()}),transactionHash:Ie.Mina.TxHash,contractAddress:Ie.Mina.Address}},CW=180*1e3,TW=2,OW=SW.cloneMerge({required:S.Object({type:S.Literal(yt.MINA_PARALLEL)}),optional:S.Object({...Dp(TW,CW,{factor:2,absolute:0})})}),RW=Hu(Dc,IW),FW=di.cloneMerge(Nc).cloneMerge(wa).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})})}),NW={internal:{},payload:{primitiveName:S.String(),caip2:Ie.Caip2,ownChain:S.Object({blockNumber:Ie.BlockNumber()}),extrinsicIndex:S.Number()}},QB=20*1e3,DW=3,BW=FW.cloneMerge({required:S.Object({type:S.Literal(yt.AVAIL_PARALLEL)}),optional:S.Object({...Dp(DW,QB,{absolute:QB})})}),UW=Hu(Dc,NW),MW=di.cloneMerge(Nc).cloneMerge(wa).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})})}),_W={internal:{},payload:{primitiveName:S.String(),caip2:Ie.Caip2,ownChain:S.Object({blockNumber:Ie.BlockNumber()}),transactionHash:Ie.Midnight.TxHash}},PW=6*1e3,jW=3,LW=MW.cloneMerge({required:S.Object({type:S.Literal(yt.MIDNIGHT_PARALLEL)}),optional:S.Object({...Dp(jW,PW,{absolute:2*1e3})})}),kW=Hu(Dc,_W),$W=di.cloneMerge(ty).cloneMerge({required:S.Object({name:S.String(),rpcUrl:S.String()}),optional:S.Object({})}),qW={internal:{},payload:{primitiveName:S.String(),caip2:Ie.Caip2,ownChain:S.Object({absoluteSlotNumber:Ie.AbsoluteSlotNumber()}),transactionHash:Ie.Cardano.TxHash}},HW=20*1e3,zW=5,VW=$W.cloneMerge({required:S.Object({type:S.Literal(yt.CARDANO_UTXORPC_PARALLEL)}),optional:S.Object({...Dp(zW,HW,{factor:2,absolute:0})})}),GW=Hu(Dc,qW);var RI=(e=>(e.EMULATED="emulated",e))(RI||{});const QW=new Ln({required:S.Object({name:S.String(),blockTimeMs:Ie.IntervalMs(),type:S.Literal(RI.EMULATED)}),optional:S.Object({})});RI.EMULATED+"";const YW=di.cloneMerge(Nc).cloneMerge(wa).cloneMerge({required:S.Object({}),optional:S.Object({stepSize:S.Number({default:1e3})})}),KW={internal:{},payload:{ownChain:S.Object({blockNumber:Ie.BlockNumber()})}},XW=YW.cloneMerge({required:S.Object({type:S.Literal(yt.NTP_MAIN)}),optional:S.Object({})}),ZW=Hu(KW);yt.NTP_MAIN+"";yt.EVM_RPC_PARALLEL+"",yt.CARDANO_CARP_PARALLEL+"",yt.CARDANO_UTXORPC_PARALLEL+"",yt.MINA_PARALLEL+"",yt.AVAIL_PARALLEL+"",yt.MIDNIGHT_PARALLEL+"";const JW={[yt.NTP_MAIN]:ZW,[yt.EVM_RPC_PARALLEL]:mW,[yt.CARDANO_CARP_PARALLEL]:EW,[yt.CARDANO_UTXORPC_PARALLEL]:GW,[yt.MINA_PARALLEL]:RW,[yt.AVAIL_PARALLEL]:UW,[yt.MIDNIGHT_PARALLEL]:kW};function WW(e,n){return S.Intersect([n,S.Object({name:S.String(),type:S.Literal(e)})])}Object.entries(JW).map(([e,n])=>WW(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||{});yt.AVAIL_PARALLEL;yt.CARDANO_CARP_PARALLEL,yt.CARDANO_CARP_PARALLEL,yt.CARDANO_CARP_PARALLEL,yt.CARDANO_CARP_PARALLEL,yt.CARDANO_CARP_PARALLEL;yt.CARDANO_UTXORPC_PARALLEL;yt.EVM_RPC_PARALLEL,yt.EVM_RPC_PARALLEL,yt.EVM_RPC_PARALLEL,yt.EVM_RPC_PARALLEL,yt.EVM_RPC_PARALLEL,yt.EVM_RPC_PARALLEL,yt.EVM_RPC_PARALLEL;yt.MINA_PARALLEL,yt.MINA_PARALLEL;yt.MIDNIGHT_PARALLEL;const zu=di.cloneMerge(wa).cloneMerge(lW);zu.cloneMerge({required:S.Object({type:S.Literal(Qe.EvmRpcPaimaL2),contractAddress:Ie.Evm.Address}),optional:S.Object({})});zu.cloneMerge({required:S.Object({type:S.Literal(Qe.EvmRpcERC20),contractAddress:Ie.Evm.Address}),optional:S.Object({scheduledPrefix:S.String()})});const eee=zu.cloneMerge({required:S.Object({type:S.Literal(Qe.EvmRpcERC721),contractAddress:Ie.Evm.Address,scheduledPrefix:S.String(),burnScheduledPrefix:S.Optional(S.String())}),optional:S.Object({})});zu.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 tee=zu.cloneMerge({required:S.Object({type:S.Literal(Qe.EvmRpcGeneric),contractAddress:Ie.Evm.Address,abi:Ie.EvmAbiEvent,scheduledPrefix:S.String()}),optional:S.Object({})});zu.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({})});zu.cloneMerge({required:S.Object({type:S.Literal(Qe.EvmRpcDynamicPrimitive),contractAddress:Ie.Evm.Address,abi:Ie.EvmAbiEvent,targetConfig:S.Union([S.Omit(eee.allProperties(!1),["name","startBlockHeight","stopBlockHeight","contractAddress"]),S.Omit(tee.allProperties(!1),["name","startBlockHeight","stopBlockHeight","contractAddress"])]),dynamicFields:S.Object({contractAddress:Ie.Evm.Address})}),optional:S.Object({})});const Bp=di.cloneMerge(ty);Bp.cloneMerge({required:S.Object({type:S.Literal(Qe.CardanoCarpDelegation),pools:S.Array(Ie.Cardano.PoolId),scheduledPrefix:S.String()}),optional:S.Object({})});Bp.cloneMerge({required:S.Object({type:S.Literal(Qe.CardanoCarpProjectedNFT),scheduledPrefix:S.Optional(S.String())}),optional:S.Object({})});Bp.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({})});Bp.cloneMerge({required:S.Object({type:S.Literal(Qe.CardanoCarpTransfer),credential:Ie.Cardano.Credential,scheduledPrefix:S.String()}),optional:S.Object({})});Bp.cloneMerge({required:S.Object({type:S.Literal(Qe.CardanoCarpMintBurn),policyIds:S.Array(Ie.Cardano.PolicyId),scheduledPrefix:S.String()}),optional:S.Object({})});const nee=di.cloneMerge(ty);nee.cloneMerge({required:S.Object({type:S.Literal(Qe.CardanoUtxorpcMatchTx),scheduledPrefix:S.String()}),optional:S.Object({})});const AP=di.cloneMerge(wa);AP.cloneMerge({required:S.Object({type:S.Literal(Qe.MinaEventGeneric),address:Ie.Mina.Address,scheduledPrefix:S.String(),name:S.String()}),optional:S.Object({})});AP.cloneMerge({required:S.Object({type:S.Literal(Qe.MinaActionGeneric),address:Ie.Mina.Address,scheduledPrefix:S.String(),name:S.String()}),optional:S.Object({})});const ree=di.cloneMerge(wa);ree.cloneMerge({required:S.Object({type:S.Literal(Qe.MidnightContractState),contractAddress:Ie.Midnight.Address,scheduledPrefix:S.String()}),optional:S.Object({})});const iee=di.cloneMerge(wa);iee.cloneMerge({required:S.Object({type:S.Literal(Qe.AvailPaimaL2),contractAddress:Ie.Avail.Address,appId:S.Number()}),optional:S.Object({})});var gn=(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))(gn||{});const oee=S.Object({inputData:Ie.UnknownFormat,suppliedValue:Ie.Uint256,inputNonce:Ie.HexString0x()});S.Object({primitive:S.Literal(Qe.AvailPaimaL2),payloadType:S.Literal(gn.Event),payload:oee});var gu={},ua={},qm={exports:{}},D1,YB;function vP(){return YB||(YB=1,D1=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)}}),D1}var B1,KB;function ir(){if(KB)return B1;KB=1;var e=vP(),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 P in D)Object.prototype.hasOwnProperty.call(D,P)&&fe.call(null,D[P],P,D)}function ie(){var D={};function fe(P,ue){y(D[ue])&&y(P)?D[ue]=ie(D[ue],P):y(P)?D[ue]=ie({},P):u(P)?D[ue]=P.slice():D[ue]=P}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(P,ue){be&&typeof P=="function"?D[ue]=e(P,be):D[ue]=P}),D}function j(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,P,ue,me={};fe=fe||{};do{for(te=Object.getOwnPropertyNames(D),P=te.length;P-- >0;)ue=te[P],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 B1={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:j,inherits:L,toFlatObject:q,kindOf:i,kindOfTest:a,endsWith:oe,toArray:ge,isTypedArray:Ee,isFileList:F},B1}var U1,XB;function xP(){if(XB)return U1;XB=1;var e=ir();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 U1=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},U1}var M1,ZB;function aee(){if(ZB)return M1;ZB=1;var e=ir();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)})},M1=n,M1}var _1,JB;function see(){if(JB)return _1;JB=1;var e=ir();return _1=function(i,a){e.forEach(i,function(l,f){f!==a&&f.toUpperCase()===a.toUpperCase()&&(i[a]=l,delete i[f])})},_1}var P1,WB;function Bc(){if(WB)return P1;WB=1;var e=ir();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},P1=n,P1}var j1,eU;function EP(){return eU||(eU=1,j1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),j1}var L1,tU;function wP(){if(tU)return L1;tU=1;var e=ir();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]):hn.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 L1=n,L1}var k1,nU;function uee(){if(nU)return k1;nU=1;var e=Bc();return k1=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))},k1}var $1,rU;function lee(){if(rU)return $1;rU=1;var e=ir();return $1=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(){}}})(),$1}var q1,iU;function cee(){return iU||(iU=1,q1=function(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}),q1}var H1,oU;function fee(){return oU||(oU=1,H1=function(n,i){return i?n.replace(/\/+$/,"")+"/"+i.replace(/^\/+/,""):n}),H1}var z1,aU;function SP(){if(aU)return z1;aU=1;var e=cee(),n=fee();return z1=function(a,u){return a&&!e(u)?n(a,u):u},z1}var V1,sU;function dee(){if(sU)return V1;sU=1;var e=ir(),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 V1=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},V1}var G1,uU;function pee(){if(uU)return G1;uU=1;var e=ir();return G1=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}})(),G1}var Q1,lU;function ny(){if(lU)return Q1;lU=1;var e=Bc(),n=ir();function i(a){e.call(this,a??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return n.inherits(i,e,{__CANCEL__:!0}),Q1=i,Q1}var Y1,cU;function hee(){return cU||(cU=1,Y1=function(n){var i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return i&&i[1]||""}),Y1}var K1,fU;function dU(){if(fU)return K1;fU=1;var e=ir(),n=uee(),i=lee(),a=xP(),u=SP(),l=dee(),f=pee(),p=EP(),h=Bc(),m=ny(),v=hee();return K1=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 j=(y.withCredentials||f(ie))&&y.xsrfCookieName?i.read(y.xsrfCookieName):void 0;j&&(N[y.xsrfHeaderName]=j)}"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)})},K1}var X1,pU;function mee(){return pU||(pU=1,X1=null),X1}var Z1,hU;function FI(){if(hU)return Z1;hU=1;var e=ir(),n=see(),i=Bc(),a=EP(),u=wP(),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 Rt<"u"&&Object.prototype.toString.call(Rt)==="[object process]")&&(v=dU()),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:mee()},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)}),Z1=m,Z1}var J1,mU;function gee(){if(mU)return J1;mU=1;var e=ir(),n=FI();return J1=function(a,u,l){var f=this||n;return e.forEach(l,function(h){a=h.call(f,a,u)}),a},J1}var W1,gU;function IP(){return gU||(gU=1,W1=function(n){return!!(n&&n.__CANCEL__)}),W1}var ex,yU;function yee(){if(yU)return ex;yU=1;var e=ir(),n=gee(),i=IP(),a=FI(),u=ny();function l(f){if(f.cancelToken&&f.cancelToken.throwIfRequested(),f.signal&&f.signal.aborted)throw new u}return ex=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)})},ex}var tx,bU;function CP(){if(bU)return tx;bU=1;var e=ir();return tx=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},tx}var nx,AU;function TP(){return AU||(AU=1,nx={version:"0.27.2"}),nx}var rx,vU;function bee(){if(vU)return rx;vU=1;var e=TP().version,n=Bc(),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 rx={assertOptions:u,validators:i},rx}var ix,xU;function Aee(){if(xU)return ix;xU=1;var e=ir(),n=xP(),i=aee(),a=yee(),u=CP(),l=SP(),f=bee(),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)}),ix=h,ix}var ox,EU;function vee(){if(EU)return ox;EU=1;var e=ny();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}},ox=n,ox}var ax,wU;function xee(){return wU||(wU=1,ax=function(n){return function(a){return n.apply(null,a)}}),ax}var sx,SU;function Eee(){if(SU)return sx;SU=1;var e=ir();return sx=function(i){return e.isObject(i)&&i.isAxiosError===!0},sx}var IU;function wee(){if(IU)return qm.exports;IU=1;var e=ir(),n=vP(),i=Aee(),a=CP(),u=FI();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=ny(),f.CancelToken=vee(),f.isCancel=IP(),f.VERSION=TP().version,f.toFormData=wP(),f.AxiosError=Bc(),f.Cancel=f.CanceledError,f.all=function(h){return Promise.all(h)},f.spread=xee(),f.isAxiosError=Eee(),qm.exports=f,qm.exports.default=f,qm.exports}var ux,CU;function See(){return CU||(CU=1,ux=wee()),ux}var TU;function OP(){if(TU)return ua;TU=1;var e=ua&&ua.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(ua,"__esModule",{value:!0}),ua.getErrorResponse=ua.query=void 0;const n=e(See());async function i(u,l,f){return(await n.default.post(`${u}/${l}`,f)).data}ua.query=i;function a(u){if(u.response==null)throw new Error("Unexpected null response");return u.response}return ua.getErrorResponse=a,ua}var xr={},lx={},OU;function RP(){return OU||(OU=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={}))})(lx)),lx}var cx,RU;function Iee(){if(RU)return cx;RU=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 cx=e,cx}var fx,FU;function ry(){if(FU)return fx;FU=1;function e(n,i){return n===i||n!==n&&i!==i}return fx=e,fx}var dx,NU;function FP(){if(NU)return dx;NU=1;var e=typeof pa=="object"&&pa&&pa.Object===Object&&pa;return dx=e,dx}var px,DU;function Uc(){if(DU)return px;DU=1;var e=FP(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=e||n||Function("return this")();return px=i,px}var hx,BU;function NP(){if(BU)return hx;BU=1;var e=Uc(),n=e.Symbol;return hx=n,hx}var mx,UU;function Cee(){if(UU)return mx;UU=1;var e=NP(),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 mx=l,mx}var gx,MU;function Tee(){if(MU)return gx;MU=1;var e=Object.prototype,n=e.toString;function i(a){return n.call(a)}return gx=i,gx}var yx,_U;function Up(){if(_U)return yx;_U=1;var e=NP(),n=Cee(),i=Tee(),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 yx=f,yx}var bx,PU;function Es(){if(PU)return bx;PU=1;function e(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}return bx=e,bx}var Ax,jU;function NI(){if(jU)return Ax;jU=1;var e=Up(),n=Es(),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 Ax=f,Ax}var vx,LU;function DP(){if(LU)return vx;LU=1;var e=9007199254740991;function n(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=e}return vx=n,vx}var xx,kU;function DI(){if(kU)return xx;kU=1;var e=NI(),n=DP();function i(a){return a!=null&&n(a.length)&&!e(a)}return xx=i,xx}var Ex,$U;function BP(){if($U)return Ex;$U=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 Ex=i,Ex}var wx,qU;function UP(){if(qU)return wx;qU=1;var e=ry(),n=DI(),i=BP(),a=Es();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 wx=u,wx}var Sx,HU;function Oee(){if(HU)return Sx;HU=1;var e=/\s/;function n(i){for(var a=i.length;a--&&e.test(i.charAt(a)););return a}return Sx=n,Sx}var Ix,zU;function Ree(){if(zU)return Ix;zU=1;var e=Oee(),n=/^\s+/;function i(a){return a&&a.slice(0,e(a)+1).replace(n,"")}return Ix=i,Ix}var Cx,VU;function Mc(){if(VU)return Cx;VU=1;function e(n){return n!=null&&typeof n=="object"}return Cx=e,Cx}var Tx,GU;function Fee(){if(GU)return Tx;GU=1;var e=Up(),n=Mc(),i="[object Symbol]";function a(u){return typeof u=="symbol"||n(u)&&e(u)==i}return Tx=a,Tx}var Ox,QU;function Nee(){if(QU)return Ox;QU=1;var e=Ree(),n=Es(),i=Fee(),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 Ox=h,Ox}var Rx,YU;function Dee(){if(YU)return Rx;YU=1;var e=Nee(),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 Rx=a,Rx}var Fx,KU;function Bee(){if(KU)return Fx;KU=1;var e=Dee();function n(i){var a=e(i),u=a%1;return a===a?u?a-u:a:0}return Fx=n,Fx}var Nx,XU;function Uee(){if(XU)return Nx;XU=1;var e=Iee(),n=UP(),i=Bee(),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 Nx=l,Nx}var Yt={},ZU;function MP(){return ZU||(ZU=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.GOVERNANCE_VOTES_BY_GOV_IDS_LIMIT=Yt.GOVERNANCE_VOTES_LIMIT=Yt.MINT_BURN_HISTORY_LIMIT=Yt.ASSET_UTXOS_LIMIT=Yt.POOL_DELEGATION_LIMIT=Yt.PROJECTED_NFT_LIMIT=Yt.DEX_PRICE_LIMIT=Yt.BLOCK_LIMIT=Yt.CREDENTIAL_LIMIT=Yt.ASSET_LIMIT=Yt.UTXO_LIMIT=Yt.ADDRESS_LIMIT=void 0,Yt.ADDRESS_LIMIT={REQUEST:100,RESPONSE:1e3},Yt.UTXO_LIMIT={REQUEST:100,RESPONSE:1e3},Yt.ASSET_LIMIT={REQUEST:1e3,RESPONSE:1e3},Yt.CREDENTIAL_LIMIT={REQUEST:50,RESPONSE:50},Yt.BLOCK_LIMIT={OFFSET:21600},Yt.DEX_PRICE_LIMIT={REQUEST_ADDRESSES:100,REQUEST_ASSET_PAIRS:100,RESPONSE:1e3},Yt.PROJECTED_NFT_LIMIT={DEFAULT_PAGE_SIZE:50},Yt.POOL_DELEGATION_LIMIT={POOLS:50,DEFAULT_PAGE_SIZE:50},Yt.ASSET_UTXOS_LIMIT={ASSETS:50,DEFAULT_PAGE_SIZE:50},Yt.MINT_BURN_HISTORY_LIMIT={DEFAULT_PAGE_SIZE:50},Yt.GOVERNANCE_VOTES_LIMIT={DEFAULT_PAGE_SIZE:50},Yt.GOVERNANCE_VOTES_BY_GOV_IDS_LIMIT={MAX_ACTION_IDS:50}),Yt}var Dx,JU;function Mee(){if(JU)return Dx;JU=1;function e(){this.__data__=[],this.size=0}return Dx=e,Dx}var Bx,WU;function iy(){if(WU)return Bx;WU=1;var e=ry();function n(i,a){for(var u=i.length;u--;)if(e(i[u][0],a))return u;return-1}return Bx=n,Bx}var Ux,eM;function _ee(){if(eM)return Ux;eM=1;var e=iy(),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 Ux=a,Ux}var Mx,tM;function Pee(){if(tM)return Mx;tM=1;var e=iy();function n(i){var a=this.__data__,u=e(a,i);return u<0?void 0:a[u][1]}return Mx=n,Mx}var _x,nM;function jee(){if(nM)return _x;nM=1;var e=iy();function n(i){return e(this.__data__,i)>-1}return _x=n,_x}var Px,rM;function Lee(){if(rM)return Px;rM=1;var e=iy();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 Px=n,Px}var jx,iM;function oy(){if(iM)return jx;iM=1;var e=Mee(),n=_ee(),i=Pee(),a=jee(),u=Lee();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 Lx,oM;function kee(){if(oM)return Lx;oM=1;var e=oy();function n(){this.__data__=new e,this.size=0}return Lx=n,Lx}var kx,aM;function $ee(){if(aM)return kx;aM=1;function e(n){var i=this.__data__,a=i.delete(n);return this.size=i.size,a}return kx=e,kx}var $x,sM;function qee(){if(sM)return $x;sM=1;function e(n){return this.__data__.get(n)}return $x=e,$x}var qx,uM;function Hee(){if(uM)return qx;uM=1;function e(n){return this.__data__.has(n)}return qx=e,qx}var Hx,lM;function zee(){if(lM)return Hx;lM=1;var e=Uc(),n=e["__core-js_shared__"];return Hx=n,Hx}var zx,cM;function Vee(){if(cM)return zx;cM=1;var e=zee(),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 zx=i,zx}var Vx,fM;function Gee(){if(fM)return Vx;fM=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 Vx=i,Vx}var Gx,dM;function Qee(){if(dM)return Gx;dM=1;var e=NI(),n=Vee(),i=Es(),a=Gee(),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 Gx=A,Gx}var Qx,pM;function Yee(){if(pM)return Qx;pM=1;function e(n,i){return n==null?void 0:n[i]}return Qx=e,Qx}var Yx,hM;function BI(){if(hM)return Yx;hM=1;var e=Qee(),n=Yee();function i(a,u){var l=n(a,u);return e(l)?l:void 0}return Yx=i,Yx}var Kx,mM;function _P(){if(mM)return Kx;mM=1;var e=BI(),n=Uc(),i=e(n,"Map");return Kx=i,Kx}var Xx,gM;function ay(){if(gM)return Xx;gM=1;var e=BI(),n=e(Object,"create");return Xx=n,Xx}var Zx,yM;function Kee(){if(yM)return Zx;yM=1;var e=ay();function n(){this.__data__=e?e(null):{},this.size=0}return Zx=n,Zx}var Jx,bM;function Xee(){if(bM)return Jx;bM=1;function e(n){var i=this.has(n)&&delete this.__data__[n];return this.size-=i?1:0,i}return Jx=e,Jx}var Wx,AM;function Zee(){if(AM)return Wx;AM=1;var e=ay(),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 Wx=u,Wx}var eE,vM;function Jee(){if(vM)return eE;vM=1;var e=ay(),n=Object.prototype,i=n.hasOwnProperty;function a(u){var l=this.__data__;return e?l[u]!==void 0:i.call(l,u)}return eE=a,eE}var tE,xM;function Wee(){if(xM)return tE;xM=1;var e=ay(),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 tE=i,tE}var nE,EM;function ete(){if(EM)return nE;EM=1;var e=Kee(),n=Xee(),i=Zee(),a=Jee(),u=Wee();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,nE=l,nE}var rE,wM;function tte(){if(wM)return rE;wM=1;var e=ete(),n=oy(),i=_P();function a(){this.size=0,this.__data__={hash:new e,map:new(i||n),string:new e}}return rE=a,rE}var iE,SM;function nte(){if(SM)return iE;SM=1;function e(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}return iE=e,iE}var oE,IM;function sy(){if(IM)return oE;IM=1;var e=nte();function n(i,a){var u=i.__data__;return e(a)?u[typeof a=="string"?"string":"hash"]:u.map}return oE=n,oE}var aE,CM;function rte(){if(CM)return aE;CM=1;var e=sy();function n(i){var a=e(this,i).delete(i);return this.size-=a?1:0,a}return aE=n,aE}var sE,TM;function ite(){if(TM)return sE;TM=1;var e=sy();function n(i){return e(this,i).get(i)}return sE=n,sE}var uE,OM;function ote(){if(OM)return uE;OM=1;var e=sy();function n(i){return e(this,i).has(i)}return uE=n,uE}var lE,RM;function ate(){if(RM)return lE;RM=1;var e=sy();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 lE=n,lE}var cE,FM;function ste(){if(FM)return cE;FM=1;var e=tte(),n=rte(),i=ite(),a=ote(),u=ate();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,cE=l,cE}var fE,NM;function ute(){if(NM)return fE;NM=1;var e=oy(),n=_P(),i=ste(),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 fE=u,fE}var dE,DM;function lte(){if(DM)return dE;DM=1;var e=oy(),n=kee(),i=$ee(),a=qee(),u=Hee(),l=ute();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,dE=f,dE}var pE,BM;function PP(){if(BM)return pE;BM=1;var e=BI(),n=(function(){try{var i=e(Object,"defineProperty");return i({},"",{}),i}catch{}})();return pE=n,pE}var hE,UM;function UI(){if(UM)return hE;UM=1;var e=PP();function n(i,a,u){a=="__proto__"&&e?e(i,a,{configurable:!0,enumerable:!0,value:u,writable:!0}):i[a]=u}return hE=n,hE}var mE,MM;function jP(){if(MM)return mE;MM=1;var e=UI(),n=ry();function i(a,u,l){(l!==void 0&&!n(a[u],l)||l===void 0&&!(u in a))&&e(a,u,l)}return mE=i,mE}var gE,_M;function cte(){if(_M)return gE;_M=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 gE=e,gE}var yE,PM;function fte(){if(PM)return yE;PM=1;var e=cte(),n=e();return yE=n,yE}var vd={exports:{}};vd.exports;var jM;function dte(){return jM||(jM=1,(function(e,n){var i=Uc(),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})(vd,vd.exports)),vd.exports}var bE,LM;function pte(){if(LM)return bE;LM=1;var e=Uc(),n=e.Uint8Array;return bE=n,bE}var AE,kM;function hte(){if(kM)return AE;kM=1;var e=pte();function n(i){var a=new i.constructor(i.byteLength);return new e(a).set(new e(i)),a}return AE=n,AE}var vE,$M;function mte(){if($M)return vE;$M=1;var e=hte();function n(i,a){var u=a?e(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.length)}return vE=n,vE}var xE,qM;function gte(){if(qM)return xE;qM=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 xE=e,xE}var EE,HM;function yte(){if(HM)return EE;HM=1;var e=Es(),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 EE=i,EE}var wE,zM;function bte(){if(zM)return wE;zM=1;function e(n,i){return function(a){return n(i(a))}}return wE=e,wE}var SE,VM;function LP(){if(VM)return SE;VM=1;var e=bte(),n=e(Object.getPrototypeOf,Object);return SE=n,SE}var IE,GM;function kP(){if(GM)return IE;GM=1;var e=Object.prototype;function n(i){var a=i&&i.constructor,u=typeof a=="function"&&a.prototype||e;return i===u}return IE=n,IE}var CE,QM;function Ate(){if(QM)return CE;QM=1;var e=yte(),n=LP(),i=kP();function a(u){return typeof u.constructor=="function"&&!i(u)?e(n(u)):{}}return CE=a,CE}var TE,YM;function vte(){if(YM)return TE;YM=1;var e=Up(),n=Mc(),i="[object Arguments]";function a(u){return n(u)&&e(u)==i}return TE=a,TE}var OE,KM;function $P(){if(KM)return OE;KM=1;var e=vte(),n=Mc(),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 OE=l,OE}var RE,XM;function qP(){if(XM)return RE;XM=1;var e=Array.isArray;return RE=e,RE}var FE,ZM;function xte(){if(ZM)return FE;ZM=1;var e=DI(),n=Mc();function i(a){return n(a)&&e(a)}return FE=i,FE}var xd={exports:{}},NE,JM;function Ete(){if(JM)return NE;JM=1;function e(){return!1}return NE=e,NE}xd.exports;var WM;function HP(){return WM||(WM=1,(function(e,n){var i=Uc(),a=Ete(),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})(xd,xd.exports)),xd.exports}var DE,e_;function wte(){if(e_)return DE;e_=1;var e=Up(),n=LP(),i=Mc(),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 DE=m,DE}var BE,t_;function Ste(){if(t_)return BE;t_=1;var e=Up(),n=DP(),i=Mc(),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]",j="[object Uint32Array]",L={};L[B]=L[M]=L[H]=L[k]=L[X]=L[re]=L[ie]=L[O]=L[j]=!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 BE=q,BE}var UE,n_;function Ite(){if(n_)return UE;n_=1;function e(n){return function(i){return n(i)}}return UE=e,UE}var Ed={exports:{}};Ed.exports;var r_;function Cte(){return r_||(r_=1,(function(e,n){var i=FP(),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})(Ed,Ed.exports)),Ed.exports}var ME,i_;function zP(){if(i_)return ME;i_=1;var e=Ste(),n=Ite(),i=Cte(),a=i&&i.isTypedArray,u=a?n(a):e;return ME=u,ME}var _E,o_;function VP(){if(o_)return _E;o_=1;function e(n,i){if(!(i==="constructor"&&typeof n[i]=="function")&&i!="__proto__")return n[i]}return _E=e,_E}var PE,a_;function Tte(){if(a_)return PE;a_=1;var e=UI(),n=ry(),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 PE=u,PE}var jE,s_;function Ote(){if(s_)return jE;s_=1;var e=Tte(),n=UI();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 LE,u_;function Rte(){if(u_)return LE;u_=1;function e(n,i){for(var a=-1,u=Array(n);++a<n;)u[a]=i(a);return u}return LE=e,LE}var kE,l_;function Fte(){if(l_)return kE;l_=1;var e=Rte(),n=$P(),i=qP(),a=HP(),u=BP(),l=zP(),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 kE=h,kE}var $E,c_;function Nte(){if(c_)return $E;c_=1;function e(n){var i=[];if(n!=null)for(var a in Object(n))i.push(a);return i}return $E=e,$E}var qE,f_;function Dte(){if(f_)return qE;f_=1;var e=Es(),n=kP(),i=Nte(),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 qE=l,qE}var HE,d_;function GP(){if(d_)return HE;d_=1;var e=Fte(),n=Dte(),i=DI();function a(u){return i(u)?e(u,!0):n(u)}return HE=a,HE}var zE,p_;function Bte(){if(p_)return zE;p_=1;var e=Ote(),n=GP();function i(a){return e(a,n(a))}return zE=i,zE}var VE,h_;function Ute(){if(h_)return VE;h_=1;var e=jP(),n=dte(),i=mte(),a=gte(),u=Ate(),l=$P(),f=qP(),p=xte(),h=HP(),m=NI(),v=Es(),A=wte(),y=zP(),I=VP(),R=Bte();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 j=k?k(re,ie,B+"",F,N,X):void 0,L=j===void 0;if(L){var q=f(ie),oe=!q&&h(ie),ge=!q&&!oe&&y(ie);j=ie,q||oe||ge?f(re)?j=re:p(re)?j=a(re):oe?(L=!1,j=n(ie,!0)):ge?(L=!1,j=i(ie,!0)):j=[]:A(ie)||l(ie)?(j=re,l(re)?j=R(re):(!v(re)||m(re))&&(j=u(ie))):L=!1}L&&(X.set(ie,j),H(j,ie,M,k,X),X.delete(ie)),e(F,B,j)}return VE=U,VE}var GE,m_;function Mte(){if(m_)return GE;m_=1;var e=lte(),n=jP(),i=fte(),a=Ute(),u=Es(),l=GP(),f=VP();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 GE=p,GE}var QE,g_;function QP(){if(g_)return QE;g_=1;function e(n){return n}return QE=e,QE}var YE,y_;function _te(){if(y_)return YE;y_=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 YE=e,YE}var KE,b_;function Pte(){if(b_)return KE;b_=1;var e=_te(),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 KE=i,KE}var XE,A_;function jte(){if(A_)return XE;A_=1;function e(n){return function(){return n}}return XE=e,XE}var ZE,v_;function Lte(){if(v_)return ZE;v_=1;var e=jte(),n=PP(),i=QP(),a=n?function(u,l){return n(u,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:i;return ZE=a,ZE}var JE,x_;function kte(){if(x_)return JE;x_=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 JE=a,JE}var WE,E_;function $te(){if(E_)return WE;E_=1;var e=Lte(),n=kte(),i=n(e);return WE=i,WE}var ew,w_;function qte(){if(w_)return ew;w_=1;var e=QP(),n=Pte(),i=$te();function a(u,l){return i(n(u,l,e),u+"")}return ew=a,ew}var tw,S_;function Hte(){if(S_)return tw;S_=1;var e=qte(),n=UP();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 tw=i,tw}var nw,I_;function zte(){if(I_)return nw;I_=1;var e=Mte(),n=Hte(),i=n(function(a,u,l){e(a,u,l)});return nw=i,nw}var C_;function Vte(){if(C_)return xr;C_=1;var e=xr&&xr.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(xr,"__esModule",{value:!0}),xr.nftCborToJson=xr.paginatedMetadataNft=xr.paginatedProjectedNft=xr.paginatedTransactionHistory=xr.paginateQuery=void 0;const n=OP(),i=RP(),a=e(Uee()),u=MP(),l=e(zte());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}xr.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)}}xr.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)}xr.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}xr.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(hn.Buffer.from(k,"hex")),re=R(X,U);M[H]=re}F[N]=M}return{cip25:F}}return xr.nftCborToJson=A,xr}var yu={},rw={},T_;function Gte(){return T_||(T_=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})(rw)),rw}var bu={},iw={},O_;function Qte(){return O_||(O_=1,Object.defineProperty(iw,"__esModule",{value:!0})),iw}var ow={},R_;function Yte(){return R_||(R_=1,Object.defineProperty(ow,"__esModule",{value:!0})),ow}var aw={},F_;function Kte(){return F_||(F_=1,Object.defineProperty(aw,"__esModule",{value:!0})),aw}var sw={},N_;function Xte(){return N_||(N_=1,Object.defineProperty(sw,"__esModule",{value:!0})),sw}var uw={},D_;function Zte(){return D_||(D_=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={}))})(uw)),uw}var lw={},B_;function Jte(){return B_||(B_=1,Object.defineProperty(lw,"__esModule",{value:!0})),lw}var cw={},U_;function Wte(){return U_||(U_=1,Object.defineProperty(cw,"__esModule",{value:!0})),cw}var fw={},M_;function ene(){return M_||(M_=1,Object.defineProperty(fw,"__esModule",{value:!0})),fw}var dw={},__;function tne(){return __||(__=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={}))})(dw)),dw}var pw={},P_;function nne(){return P_||(P_=1,Object.defineProperty(pw,"__esModule",{value:!0})),pw}var hw={},j_;function rne(){return j_||(j_=1,Object.defineProperty(hw,"__esModule",{value:!0})),hw}var mw={},L_;function ine(){return L_||(L_=1,Object.defineProperty(mw,"__esModule",{value:!0})),mw}var gw={},k_;function one(){return k_||(k_=1,Object.defineProperty(gw,"__esModule",{value:!0})),gw}var yw={},$_;function ane(){return $_||($_=1,Object.defineProperty(yw,"__esModule",{value:!0})),yw}var bw={},q_;function sne(){return q_||(q_=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={}))})(bw)),bw}var Aw={},H_;function une(){return H_||(H_=1,Object.defineProperty(Aw,"__esModule",{value:!0})),Aw}var vw={},z_;function lne(){return z_||(z_=1,Object.defineProperty(vw,"__esModule",{value:!0})),vw}var V_;function cne(){return V_||(V_=1,(function(e){var n=bu&&bu.__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=bu&&bu.__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(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),i(lne(),e)})(bu)),bu}var G_;function fne(){return G_||(G_=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(MP(),e),i(Gte(),e),i(RP(),e),i(cne(),e)})(yu)),yu}var Q_;function dne(){return Q_||(Q_=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(OP(),e),i(Vte(),e),i(fne(),e)})(gu)),gu}var pne=dne();const MI=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(gn.Delegate),payload:MI});const Td=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(pne.ProjectedNftStatus),plutusDatum:Ie.HexStringNo0x(),forHowLong:Ie.Nullable(Ie.TimestampMsStr)});S.Object({primitive:S.Literal(Qe.CardanoCarpProjectedNFT),payloadType:S.Literal(gn.Projection),payload:Td});const YP=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(gn.Transfer),payload:YP});const _I=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(gn.Transfer),payload:_I});const hne=S.Unsafe(S.Record(Ie.Cardano.AssetName,S.String())),mne=S.Unsafe(S.Record(Ie.Cardano.PolicyId,hne)),gne=S.Object({policyId:Ie.Cardano.PolicyId,assetName:Ie.Cardano.AssetName}),yne=S.Intersect([gne,S.Object({amount:Ie.Cardano.AmountLovelace})]),Y_=S.Unsafe(S.Record(Ie.Cardano.Credential,S.Array(yne))),PI=S.Object({txId:Ie.Cardano.TxHash,metadata:Ie.Nullable(S.String()),assets:mne,inputAddresses:Y_,outputAddresses:Y_});S.Object({primitive:S.Literal(Qe.CardanoCarpMintBurn),payloadType:S.Literal(gn.MintOrBurn),payload:PI});const bne=S.Object({});S.Object({primitive:S.Literal(Qe.CardanoUtxorpcMatchTx),payloadType:S.Literal(gn.Event),payload:bne});Qe.EvmRpcPaimaL2+"",Qe.EvmRpcERC20+"",Qe.EvmRpcERC721+"",Qe.EvmRpcERC1155+"",Qe.EvmRpcGeneric+"",Qe.EvmRpcERC6551Registry+"",Qe.EvmRpcDynamicPrimitive+"";const KP=S.Object({userAddress:Ie.Evm.Address,data:Ie.HexString0x(),value:Ie.Uint256});S.Object({primitive:S.Literal(Qe.EvmRpcPaimaL2),payloadType:S.Literal(gn.PaimaL2Event),payload:KP});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(gn.Transfer),payload:jI});const LI=S.Object({from:Ie.Evm.Address,to:Ie.Evm.Address,tokenId:Ie.Uint256});S.Object({primitive:S.Literal(Qe.EvmRpcERC721),payloadType:S.Literal(gn.Transfer),payload:LI});const ag=S.Object({tokenId:Ie.Uint256,mintData:S.String(),from:Ie.Evm.Address});S.Object({primitive:S.Literal(Qe.EvmRpcERC721),payloadType:S.Literal(gn.Mint),payload:ag});const sg=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(gn.Transfer),payload:sg});const Ane=S.Any();S.Object({primitive:S.Literal(Qe.EvmRpcGeneric),payloadType:S.Literal(gn.Event),payload:Ane});const XP=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(gn.Registry),payload:XP});const vne=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()})]),xne=S.Object({contractAddress:Ie.Evm.Address,targetConfig:vne});S.Object({primitive:S.Literal(Qe.EvmRpcDynamicPrimitive),payloadType:S.Literal(gn.Event),payload:xne});const Ene=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")})])),ZP=S.Unsafe(Ene);S.Object({primitive:S.Literal(Qe.MidnightContractState),payloadType:S.Literal(gn.Event),payload:ZP});const wne=S.Array(S.Array(Ie.UnknownFormat));S.Object({primitive:S.Literal(Qe.MinaEventGeneric),payloadType:S.Literal(gn.Event),payload:wne});const Sne=S.Array(S.Array(Ie.UnknownFormat));S.Object({primitive:S.Literal(Qe.MinaActionGeneric),payloadType:S.Literal(gn.Event),payload:Sne});var pi=(e=>(e.Transfer="transfer",e.Delegate="delegate",e.MintOrBurn="mint-or-burn",e.ProjectedNft="projected-nft",e.Registry="registry",e.Event="event",e))(pi||{});S.Object({primitive:S.Literal(Qe.CardanoCarpDelayedAsset),payloadType:S.Literal(pi.Transfer),payload:YP});S.Object({primitive:S.Literal(Qe.CardanoCarpDelegation),payloadType:S.Literal(pi.Transfer),payload:MI});S.Object({primitive:S.Literal(Qe.CardanoCarpMintBurn),payloadType:S.Literal(pi.MintOrBurn),payload:PI});S.Object({primitive:S.Literal(Qe.CardanoCarpProjectedNFT),payloadType:S.Literal(pi.ProjectedNft),payload:Td});S.Object({primitive:S.Literal(Qe.CardanoCarpTransfer),payloadType:S.Literal(pi.Transfer),payload:_I});S.Object({primitive:S.Literal(Qe.EvmRpcPaimaL2),payloadType:S.Literal(pi.Event),payload:KP});S.Object({primitive:S.Literal(Qe.EvmRpcERC20),payloadType:S.Literal(pi.Transfer),payload:jI});S.Object({primitive:S.Literal(Qe.EvmRpcERC721),payloadType:S.Literal(pi.Transfer),payload:LI});S.Object({primitive:S.Literal(Qe.EvmRpcERC721),payloadType:S.Literal(pi.MintOrBurn),payload:ag});S.Object({primitive:S.Literal(Qe.EvmRpcERC1155),payloadType:S.Literal(pi.Transfer),payload:sg});S.Object({primitive:S.Literal(Qe.EvmRpcERC6551Registry),payloadType:S.Literal(pi.Registry),payload:XP});S.Object({primitive:S.Literal(Qe.MidnightContractState),payloadType:S.Literal(pi.Event),payload:ZP});BJ("paima:static-config");var xw={exports:{}},K_;function Ine(){return K_||(K_=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 Rt=="object"&&Rt.versions&&Rt.versions.node;f?u=pa: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]()}},j=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=j(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,j,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={},P=[],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(P.push(Q),te[Q]=me.createMethod(ne[G],me.padding),me.name!=="sha3"){var J=me.name+ne[G];P.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,ft,lt,At,St,_,he,_e,je,He,it,nt,st,rt,vt,Ir,Sa,Ia,$n,Ca,ws,Vu,Ss,Is,No,Gu,et,Ta,qn,Cs,Qu,Do,Ts,Bo,Hn,Os,Oa,Rs,Ra,Fs,Ns,Ui;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],No=w[11]<<4|w[10]>>>28,Gu=w[10]<<4|w[11]>>>28,he=w[20]<<3|w[21]>>>29,_e=w[21]<<3|w[20]>>>29,Ra=w[31]<<9|w[30]>>>23,Fs=w[30]<<9|w[31]>>>23,ws=w[40]<<18|w[41]>>>14,Vu=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,Ta=w[23]<<10|w[22]>>>22,je=w[33]<<13|w[32]>>>19,He=w[32]<<13|w[33]>>>19,Ns=w[42]<<2|w[43]>>>30,Ui=w[43]<<2|w[42]>>>30,Ts=w[5]<<30|w[4]>>>2,Bo=w[4]<<30|w[5]>>>2,vt=w[14]<<6|w[15]>>>26,Ir=w[15]<<6|w[14]>>>26,Le=w[25]<<11|w[24]>>>21,tt=w[24]<<11|w[25]>>>21,qn=w[34]<<15|w[35]>>>17,Cs=w[35]<<15|w[34]>>>17,it=w[45]<<29|w[44]>>>3,nt=w[44]<<29|w[45]>>>3,lt=w[6]<<28|w[7]>>>4,At=w[7]<<28|w[6]>>>4,Hn=w[17]<<23|w[16]>>>9,Os=w[16]<<23|w[17]>>>9,Sa=w[26]<<25|w[27]>>>7,Ia=w[27]<<25|w[26]>>>7,Ze=w[36]<<21|w[37]>>>11,ot=w[37]<<21|w[36]>>>11,Qu=w[47]<<24|w[46]>>>8,Do=w[46]<<24|w[47]>>>8,Ss=w[8]<<27|w[9]>>>5,Is=w[9]<<27|w[8]>>>5,St=w[18]<<20|w[19]>>>12,_=w[19]<<20|w[18]>>>12,Oa=w[29]<<7|w[28]>>>25,Rs=w[28]<<7|w[29]>>>25,$n=w[38]<<8|w[39]>>>24,Ca=w[39]<<8|w[38]>>>24,at=w[48]<<14|w[49]>>>18,ft=w[49]<<14|w[48]>>>18,w[0]=ce^~Ce&Le,w[1]=le^~Me&tt,w[10]=lt^~St&he,w[11]=At^~_&_e,w[20]=st^~vt&Sa,w[21]=rt^~Ir&Ia,w[30]=Ss^~No&et,w[31]=Is^~Gu&Ta,w[40]=Ts^~Hn&Oa,w[41]=Bo^~Os&Rs,w[2]=Ce^~Le&Ze,w[3]=Me^~tt&ot,w[12]=St^~he&je,w[13]=_^~_e&He,w[22]=vt^~Sa&$n,w[23]=Ir^~Ia&Ca,w[32]=No^~et&qn,w[33]=Gu^~Ta&Cs,w[42]=Hn^~Oa&Ra,w[43]=Os^~Rs&Fs,w[4]=Le^~Ze&at,w[5]=tt^~ot&ft,w[14]=he^~je&it,w[15]=_e^~He&nt,w[24]=Sa^~$n&ws,w[25]=Ia^~Ca&Vu,w[34]=et^~qn&Qu,w[35]=Ta^~Cs&Do,w[44]=Oa^~Ra&Ns,w[45]=Rs^~Fs&Ui,w[6]=Ze^~at&ce,w[7]=ot^~ft&le,w[16]=je^~it<,w[17]=He^~nt&At,w[26]=$n^~ws&st,w[27]=Ca^~Vu&rt,w[36]=qn^~Qu&Ss,w[37]=Cs^~Do&Is,w[46]=Ra^~Ns&Ts,w[47]=Fs^~Ui&Bo,w[8]=at^~ce&Ce,w[9]=ft^~le&Me,w[18]=it^~lt&St,w[19]=nt^~At&_,w[28]=ws^~st&vt,w[29]=Vu^~rt&Ir,w[38]=Qu^~Ss&No,w[39]=Do^~Is&Gu,w[48]=Ns^~Ts&Hn,w[49]=Ui^~Bo&Os,w[0]^=U[W],w[1]^=U[W+1]};if(p)e.exports=te;else for(ue=0;ue<P.length;++ue)u[P[ue]]=te[P[ue]]})()})(xw)),xw.exports}var Cne=Ine();const JP=cg(Cne),{keccak_256:Tne}=JP;function WP(e){return`0x${Tne(e).slice(0,40)}`}WP(`${yt.CARDANO_CARP_PARALLEL}-${Qe.CardanoCarpMintBurn}-${gn.MintOrBurn}`);WP(`${yt.CARDANO_CARP_PARALLEL}-${Qe.CardanoCarpTransfer}-${gn.Transfer}`);Qe.EvmRpcERC20+"",Yl(["from","to","value"]).from(jI),Qe.EvmRpcERC721+"",Yl(["from","tokenId","mintData"]).from(ag),[LI.properties.from,...Xm(["tokenId"]).from(ag)],Qe.EvmRpcERC1155+"",Yl(["operator","from","to","ids","values"]).from(sg),Xm(["operator","from","ids","values"]).from(sg),Qe.EvmRpcERC6551Registry+"",Qe.EvmRpcDynamicPrimitive+"",Qe.EvmRpcGeneric+"",Qe.CardanoCarpDelegation+"",Yl(["address","pool","epoch"]).from(MI),Qe.CardanoCarpProjectedNFT+"",[...Xm(["ownerAddress","previousTxHash","previousTxOutputIndex","policyId","assetName","amount","status","forHowLong"]).from(Td),Td.properties.actionTxId,Td.properties.actionOutputIndex],Qe.CardanoCarpDelayedAsset+"",Qe.CardanoCarpTransfer+"",Yl(["txId","rawTx","inputCredentials","outputs","metadata"]).from(_I),Qe.CardanoCarpMintBurn+"",Yl(["txId","metadata","assets","inputAddresses","outputAddresses"]).from(PI),Qe.CardanoUtxorpcMatchTx+"",Qe.MinaEventGeneric+"",Qe.MinaActionGeneric+"",Qe.MidnightContractState+"";const{keccak_256:Kne}=JP;function ej(e,n,i,a,u){let l;switch(a){case Bn.EVM:l=pX(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 One={EVM:0};async function Rne(e,n){const i=Eo(n.privateKey),a=Sd({account:i,chain:Cd,transport:Id()}),u=Date.now().toString(),l=i.address,f=One.EVM,p=ej(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 Fne(e){const n=await fetch(bP,{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 Hm(e,n){console.log("🚀 Creating signed input for:",e);const i=await Rne(e,n);console.log("✅ Signed input created:",{...i,userSignature:i.userSignature.slice(0,10)+"..."}),console.log("📤 Sending to batcher...");const a=await Fne(i);return console.log("🎉 Batcher response:",a),a}function Nne(){const[e,n]=Pe.useState([]),[i,a]=Pe.useState(!0),[u,l]=Pe.useState(null),[f,p]=Pe.useState(10),[h,m]=Pe.useState(0),[v,A]=Pe.useState([void 0]),[y,I]=Pe.useState(!1),[R,U]=Pe.useState([]),[F,N]=Pe.useState(null),[B,M]=Pe.useState([]),[H,k]=Pe.useState(!1),[X,re]=Pe.useState(!1),[ie,O]=Pe.useState(!1),[j,L]=Pe.useState(""),[q,oe]=Pe.useState(""),[ge,Ee]=Pe.useState(""),[D,fe]=Pe.useState(null),[be,te]=Pe.useState(null),P=(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=R6(),E=Eo(pe),g={id:Date.now().toString(),privateKey:pe,address:E.address,name:`Wallet ${R.length+1}`};U(b=>[...b,g]),N(g),P("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){P("error","No Wallet","Please select a wallet first");return}O(!0);try{const E=JSON.stringify(["&createAccount"]);await Hm(E,F),P("success","Account Created","Successfully created account! Use the refresh button to see updated addresses.")}catch(pe){P("error","Create Account Error",`Error creating account: ${pe instanceof Error?pe.message:"Unknown error"}`)}finally{O(!1)}},Q=async()=>{if(!F){P("error","No Wallet","Please select a wallet first");return}if(!D){P("error","No Account","Please select an account ID");return}O(!0);try{const pe=["&unlinkAddress",D.toString(),"","",""],E=JSON.stringify(pe);await Hm(E,F),P("success","Self Unlinked","Successfully unlinked self from account! Use the refresh button to see updated addresses.")}catch(pe){P("error","Unlink Self Error",`Error unlinking self: ${pe instanceof Error?pe.message:"Unknown error"}`)}finally{O(!1)}},J=async()=>{if(!F){P("error","No Wallet","Please select a wallet first");return}if(!D){P("error","No Account","Please select an account ID");return}if(!ge.trim()){P("error","No Address","Please enter an address to unlink");return}const pe=Sd({account:Eo(F.privateKey),chain:Cd,transport:Id()});O(!0);const E=`unlink:${String(D)}:${ge.toString().toLowerCase().trim()}:`,g=await pe.signMessage({account:Eo(F.privateKey),message:E});try{const b=["&unlinkAddress",D.toString(),g,ge.toString().toLowerCase().trim(),""],C=JSON.stringify(b);await Hm(C,F),P("success","Address Unlinked","Successfully unlinked address from account! Use the refresh button to see updated addresses."),Ee("")}catch(b){P("error","Unlink Other Error",`Error unlinking address: ${b instanceof Error?b.message:"Unknown error"}`)}finally{O(!1)}},ve=async()=>{if(!F){P("error","No Wallet","Please select a wallet first");return}if(!D){P("error","No Account","Please select an account ID");return}if(!be){P("error","No Link Wallet","Please select a wallet to link");return}O(!0);try{const pe=Sd({account:Eo(F.privateKey),chain:Cd,transport:Id()}),E=Sd({account:Eo(be.privateKey),chain:Cd,transport:Id()}),g=`link:${D}:${be.address.toString().toLowerCase().trim()}:false`,b=await pe.signMessage({account:Eo(F.privateKey),message:g}),C=`link:${D}:${F.address.toString().toLowerCase().trim()}:false`,K=await E.signMessage({account:Eo(be.privateKey),message:C}),xe=["&linkAddress",D.toString(),b,be.address.toString().toLowerCase().trim(),K,"false"],Re=JSON.stringify(xe);await Hm(Re,F),P("success","Address Linked","Successfully linked address to account! Use the refresh button to see updated addresses."),te(null)}catch(pe){P("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(zJ);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)}};Pe.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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:504,columnNumber:9},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:512,columnNumber:9},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:555,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:559,columnNumber:13},this)]},pe.id,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:532,columnNumber:11},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:600,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:618,columnNumber:15},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/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-3/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-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:708,columnNumber:23},this)]},pe.id,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:650,columnNumber:21},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:642,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:638,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:615,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:755,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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:j==="create"?"2px solid #19b17b":"1px solid #ddd",borderRadius:"6px",background:j==="create"?"#f0fdf4":"white",cursor:"pointer"},onClick:()=>L("create"),children:[ee.jsxDEV("input",{type:"radio",name:"action",checked:j==="create",onChange:()=>L("create"),style:{margin:0}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:818,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:814,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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:j==="link"?"2px solid #3b82f6":"1px solid #ddd",borderRadius:"6px",background:j==="link"?"#eff6ff":"white",cursor:"pointer"},onClick:()=>L("link"),children:[ee.jsxDEV("input",{type:"radio",name:"action",checked:j==="link",onChange:()=>L("link"),style:{margin:0}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:858,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:854,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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:j==="unlink-other"?"2px solid #f59e0b":"1px solid #ddd",borderRadius:"6px",background:j==="unlink-other"?"#fffbeb":"white",cursor:"pointer"},onClick:()=>L("unlink-other"),children:[ee.jsxDEV("input",{type:"radio",name:"action",checked:j==="unlink-other",onChange:()=>L("unlink-other"),style:{margin:0}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:898,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:894,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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:j==="unlink-self"?"2px solid #ef4444":"1px solid #ddd",borderRadius:"6px",background:j==="unlink-self"?"#fef2f2":"white",cursor:"pointer"},onClick:()=>L("unlink-self"),children:[ee.jsxDEV("input",{type:"radio",name:"action",checked:j==="unlink-self",onChange:()=>L("unlink-self"),style:{margin:0}},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:938,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:934,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:910,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:783,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:772,columnNumber:15},this),j&&ee.jsxDEV("div",{style:{marginTop:"20px",padding:"20px",background:"#f8fafc",borderRadius:"8px",border:"1px solid #e2e8f0"},children:[j==="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-3/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-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:978,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:964,columnNumber:21},this),j==="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-3/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-3/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-3/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-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1041,columnNumber:29},this))]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1026,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1080,columnNumber:31},this))]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1057,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1086,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1001,columnNumber:21},this),j==="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-3/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-3/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-3/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-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1153,columnNumber:29},this))]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1138,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1169,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1182,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1114,columnNumber:21},this),j==="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-3/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-3/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-3/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-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1249,columnNumber:29},this))]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1234,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1255,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1210,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:954,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:770,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/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-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1302,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1299,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1297,columnNumber:13},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1296,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/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-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1315,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1313,columnNumber:17},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1327,columnNumber:23},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1346,columnNumber:29},this)]},g,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1333,columnNumber:25},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1320,columnNumber:19},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1318,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1370,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1355,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1310,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1383,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:1388,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/AddressesTable.tsx",lineNumber:518,columnNumber:5},this)}function Ew({latestBlock:e,isConnected:n}){const[i,a]=Pe.useState(!1),[u,l]=Pe.useState(!1),[f,p]=Pe.useState(!1),[h,m]=Pe.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-3/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-3/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-3/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-3/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-3/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-3/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-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:91,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:89,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:60,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:58,columnNumber:7},this),ee.jsxDEV(md,{isOpen:i,onClose:A,title:"Batcher API Documentation",className:"api",url:$B,children:ee.jsxDEV("div",{className:"documentation-content",children:ee.jsxDEV("iframe",{src:$B,className:"documentation-iframe",title:"Batcher API Documentation"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:114,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:113,columnNumber:9},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:106,columnNumber:7},this),ee.jsxDEV(md,{isOpen:u,onClose:I,title:"Paima Engine Node API Documentation",className:"api",url:qB,children:ee.jsxDEV("div",{className:"documentation-content",children:ee.jsxDEV("iframe",{src:qB,className:"documentation-iframe",title:"Paima Engine Node API Documentation"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:130,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:129,columnNumber:9},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:122,columnNumber:7},this),ee.jsxDEV(md,{className:"docs",isOpen:f,onClose:U,title:"Documentation",url:HB,children:ee.jsxDEV("div",{className:"documentation-content",children:ee.jsxDEV("iframe",{src:HB,className:"documentation-iframe",title:"Documentation"},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:146,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:145,columnNumber:9},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:138,columnNumber:7},this),ee.jsxDEV(md,{className:"addresses",isOpen:h,onClose:N,title:"Addresses",children:ee.jsxDEV(Nne,{},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:160,columnNumber:9},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:154,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/Header.tsx",lineNumber:57,columnNumber:5},this)}function Dne(e){return e.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}function Bne({block:e,isNew:n=!1}){const[i,a]=Pe.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-3/packages/build-tools/explorer/client/src/components/BlockItem.tsx",lineNumber:47,columnNumber:9},this),ee.jsxDEV("div",{className:"block-timestamp",children:Dne(e.timestamp)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BlockItem.tsx",lineNumber:50,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/packages/build-tools/explorer/client/src/components/BlockItem.tsx",lineNumber:54,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BlockItem.tsx",lineNumber:38,columnNumber:5},this)}function Une({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-3/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-3/packages/build-tools/explorer/client/src/components/BlockRow.tsx",lineNumber:38,columnNumber:13},this):l.map((f,p)=>ee.jsxDEV(Bne,{block:f,isNew:u===p},`${p}-${f.number}-${f.hash}`,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BlockRow.tsx",lineNumber:40,columnNumber:13},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BlockRow.tsx",lineNumber:36,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BlockRow.tsx",lineNumber:31,columnNumber:5},this)}function Mne(e,n){if(n.blockTime)return`${n.blockTime/1e3}s`}function X_({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(Une,{title:a.name,blockTime:Mne(i,a),blocks:l,isMainColumn:i==="paima",newBlockIndex:n[i]},i,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/ColumnsContainer.tsx",lineNumber:50,columnNumber:11},this)})},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/ColumnsContainer.tsx",lineNumber:44,columnNumber:5},this)}function _ne(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 Pne({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-3/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-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:92,columnNumber:19},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:90,columnNumber:15},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/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=_ne(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-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:107,columnNumber:23},this)})},R,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:100,columnNumber:17},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:98,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/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-3/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-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:160,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:131,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:123,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/DataTable.tsx",lineNumber:79,columnNumber:5},this)}function ww({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-3/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-3/packages/build-tools/explorer/client/src/components/TableSection.tsx",lineNumber:56,columnNumber:13},this):m.map(([v,A])=>ee.jsxDEV(Pne,{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-3/packages/build-tools/explorer/client/src/components/TableSection.tsx",lineNumber:62,columnNumber:15},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TableSection.tsx",lineNumber:53,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TableSection.tsx",lineNumber:50,columnNumber:5},this)}const jne={EVM:0};async function Lne(e,n){const i=Eo(n.privateKey),a=Sd({account:i,chain:Cd,transport:Id()}),u=Date.now().toString(),l=i.address,f=jne.EVM,p=ej(null,u,l,f,e),h=await a.signMessage({message:p});return{addressType:f,userAddress:l,userSignature:h,conciseInput:e,millisecondTimestamp:u}}async function kne(e){const n=await fetch(bP,{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 $ne(e,n){console.log("🚀 Creating signed input for:",e);const i=await Lne(e,n);console.log("✅ Signed input created:",{...i,userSignature:i.userSignature.slice(0,10)+"..."}),console.log("📤 Sending to batcher...");const a=await kne(i);return console.log("🎉 Batcher response:",a),a}async function qne(){try{const e=await fetch(LJ);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 Hne(){const[e,n]=Pe.useState(""),[i,a]=Pe.useState({}),[u,l]=Pe.useState(!1),[f,p]=Pe.useState(null),[h,m]=Pe.useState([]),[v,A]=Pe.useState(!0),[y,I]=Pe.useState({}),[R,U]=Pe.useState(!0),F=(O,j,L)=>{const q=Date.now(),oe={id:q,type:O,title:j,message:L};m(ge=>[...ge,oe]),setTimeout(()=>{m(ge=>ge.filter(Ee=>Ee.id!==q))},5e3)};Pe.useEffect(()=>{(async()=>{try{U(!0);const j=await qne();I(j)}catch{F("error","Grammar Error","Failed to load grammar from server")}finally{U(!1)}})()},[]);const N=Object.keys(y),B=()=>{const O=R6(),j=Eo(O),L={privateKey:O,address:j.address};p(L),F("success","Wallet Generated",`New wallet created: ${j.address.slice(0,6)}...${j.address.slice(-4)}`)},M=O=>{m(j=>j.filter(L=>L.id!==O))},H=O=>{n(O),a({})},k=(O,j)=>{a(L=>({...L,[O]:j}))},X=()=>{if(!e)return null;const O=[e],j=y[e];for(const[L,q]of j){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,j)=>{const L=i[O]||"";return j.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-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:219,columnNumber:9},this):j.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-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:234,columnNumber:9},this):j.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-3/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-3/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 j=JSON.stringify(O);await $ne(j,f),F("success","Success!","Successfully sent to batcher! Check console for details."),a({})}catch(j){F("error","Batcher Error",`Error sending to batcher: ${j instanceof Error?j.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-3/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-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:370,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:374,columnNumber:13},this)]},O.id,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:347,columnNumber:11},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:405,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:435,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:431,columnNumber:15},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/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-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:486,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:474,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/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-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:539,columnNumber:25},this))]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:526,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:516,columnNumber:19},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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,j])=>ee.jsxDEV("div",{style:{display:"flex",flexDirection:"column"},children:[ee.jsxDEV("label",{style:{marginBottom:"5px",fontWeight:"500",fontSize:"14px"},children:[O," (",j.type,"):"]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:575,columnNumber:29},this),re(O,j)]},O,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:571,columnNumber:27},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:560,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:550,columnNumber:21},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:549,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:605,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:643,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:444,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:419,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/BatcherInput.tsx",lineNumber:325,columnNumber:5},this)}function Z_({isOpen:e,onClose:n,title:i,tableNames:a,selectedNames:u,onApply:l}){const f=Pe.useMemo(()=>new Set(u),[u]),[p,h]=Pe.useState(f);Pe.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(md,{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-3/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-3/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:61,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:73,columnNumber:17},this),I]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:72,columnNumber:15},this)},I,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:71,columnNumber:13},this))},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:91,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:83,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:52,columnNumber:7},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/components/TablesMultiSelectModal.tsx",lineNumber:46,columnNumber:5},this)}function Sw(){return"0x"+Array.from({length:64},()=>Math.floor(Math.random()*16).toString(16)).join("")}let J_=1e3;function zne(){const[e,n]=Pe.useState({}),[i,a]=Pe.useState(!0),[u,l]=Pe.useState(null),[f,p]=Pe.useState({}),h=Pe.useRef(null),m=Pe.useRef(!1),v=Pe.useRef(()=>{}),A=Pe.useRef(!1),y=Pe.useRef(!1),I=Pe.useRef(null),R=Pe.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(j=>{const L={...j},q=L[k];if(O>(q.latestBlockNumber||0)&&(q.previousLatestBlockNumber=q.latestBlockNumber||0,q.latestBlockNumber=O,q.isConnected=!0,q.previousLatestBlockNumber>0)){const oe=Sw(),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]);Pe.useEffect(()=>{v.current=R},[R]);const U=Pe.useCallback((k,X=e)=>{const re=X[k];if(!re)return;const ie=re.rpcEndpoint?re.latestBlockNumber||0:re.currentBlock++,O=Sw(),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=Pe.useCallback(async()=>{a(!0),l(null);try{const k=await _J();J_=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(gP)}finally{a(!1)}},[]),N=Pe.useCallback(k=>{n(X=>{const re={...X};return Object.keys(k).forEach(ie=>{const O=re[ie];if(O&&!O.rpcEndpoint){const j=[];for(let L=-5;L<0;L++){const q=O.currentBlock+L,oe=Sw(),ge=new Date(Date.now()+L*(O.blockTime??1e3));j.push({number:q,hash:oe,timestamp:ge})}O.blocks=j.reverse(),O.currentBlock=O.currentBlock+1}}),re})},[]);Pe.useEffect(()=>{F()},[F]),Pe.useEffect(()=>{i||A.current||Object.keys(e).length!==0&&(N(e),A.current=!0)},[i]),Pe.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]),Pe.useEffect(()=>{if(console.log("🔄 Starting Paima RPC polling"),!i&&h.current==null)return v.current("Paima"),h.current=setInterval(()=>{v.current("Paima")},J_),()=>{h.current!=null&&(clearInterval(h.current),h.current=null)}},[i]),Pe.useEffect(()=>{if(i||I.current!=null)return;const k=()=>{const ie=Object.entries(e).filter(([j])=>j!=="Paima");let O=Number.POSITIVE_INFINITY;for(const[,j]of ie)typeof j.blockTime=="number"&&j.blockTime>0&&j.blockTime<O&&(O=j.blockTime);return Number.isFinite(O)?Math.max(1e3,O):1e4},X=async()=>{var ie,O,j,L,q,oe,ge,Ee,D;try{const fe=await fetch(PJ);if(!fe.ok)throw new Error(`block-heights HTTP ${fe.status}`);const be=await fe.json(),te=[];for(const[P,ue]of Object.entries(e)){if(P==="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(`${HJ}/${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??((j=J.header)==null?void 0:j.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:P,block:{number:ve,hash:Ae??"",timestamp:V?new Date(V):new Date}})}catch{}}te.length>0&&n(P=>{const ue={...P};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 Vne(){const[n,i]=Pe.useState([]),[a,u]=Pe.useState([]),[l,f]=Pe.useState({}),[p,h]=Pe.useState({}),[m,v]=Pe.useState({}),[A,y]=Pe.useState({}),[I,R]=Pe.useState({}),[U,F]=Pe.useState({}),[N,B]=Pe.useState({}),M=Pe.useRef(!1),H=Pe.useRef([]),k=Pe.useRef([]),X=Pe.useRef({}),re=Pe.useRef({}),ie=Pe.useRef({}),O=Pe.useRef({}),j=Pe.useRef(new Set),L=Pe.useRef(new Set);Pe.useEffect(()=>{H.current=n},[n]),Pe.useEffect(()=>{k.current=a},[a]),Pe.useEffect(()=>{X.current=U},[U]),Pe.useEffect(()=>{re.current=N},[N]),Pe.useEffect(()=>{ie.current=A},[A]),Pe.useEffect(()=>{O.current=I},[I]);const q=Pe.useCallback(V=>V.map(w=>({name:w.column_name,dataTypeID:25})),[]),oe=Pe.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=Pe.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=Pe.useCallback(async V=>{try{if(j.current.has(V))return null;const w=X.current[V];if(w)return w;const $=await fetch(`${$J}/${V}`);if(!$.ok){if($.status===404)return console.log(`🚫 Schema for primitive ${V} not found (404)`),j.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=Pe.useCallback(async V=>{try{const w=await fetch(`${qJ}/${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=Pe.useCallback(async()=>{try{const V=await fetch(yP);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=Pe.useCallback(async()=>{try{const V=await fetch(kB);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=Pe.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)])},[]),P=Pe.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(`${jJ}/${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=Pe.useCallback(async(V,w,$)=>{try{const Y=$??{limit:20,cursors:[void 0],currentPage:0,hasMore:!1},W=new URL(`${kB}/${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=Pe.useCallback(async()=>{try{const V=await fetch(kJ);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=Pe.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 P($,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)}},[P]),G=Pe.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=Pe.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=Pe.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 P(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,P]),ve=Pe.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=Pe.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 Pe.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 P(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 P(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 P(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 P(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 Gne(){const[e,n]=Pe.useState([]),[i,a]=Pe.useState([]),[u,l]=Pe.useState(!1),[f,p]=Pe.useState(!1),{chainConfigs:h,newBlockIndices:m,latestBlock:v,isConnected:A,isLoadingConfig:y,configError:I}=zne(),{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:j,firstUserTablePage:L,setUserTableLimit:q}=Vne();return Pe.useEffect(()=>{N.length>0&&e.length===0&&n(N)},[N,e]),Pe.useEffect(()=>{B.length>0&&i.length===0&&a([B[0]])},[B,i]),Pe.useEffect(()=>{const oe=ge=>{console.error("Unhandled promise rejection:",ge.reason)};return globalThis.addEventListener("unhandledrejection",oe),()=>{globalThis.removeEventListener("unhandledrejection",oe)}},[]),Pe.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(Ew,{latestBlock:v,isConnected:A},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:101,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:96,columnNumber:7},this):I?ee.jsxDEV("div",{className:"container",children:[ee.jsxDEV(Ew,{latestBlock:v,isConnected:A},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/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-3/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-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:137,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:123,columnNumber:9},this),ee.jsxDEV(X_,{chainConfigs:h,newBlockIndices:m},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:141,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:118,columnNumber:7},this):ee.jsxDEV("div",{className:"container",children:[ee.jsxDEV(Ew,{latestBlock:v,isConnected:A},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:151,columnNumber:7},this),ee.jsxDEV(X_,{chainConfigs:h,newBlockIndices:m},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:156,columnNumber:7},this),ee.jsxDEV(ww,{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-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:175,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:174,columnNumber:9},this),ee.jsxDEV(Z_,{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-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:183,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:161,columnNumber:7},this),ee.jsxDEV(ww,{title:"State Machine Tables",tables:Object.fromEntries(Object.entries(U).filter(([oe])=>i.includes(oe))),pagination:H,onPrev:oe=>j(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-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:210,columnNumber:11},this)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:209,columnNumber:9},this),ee.jsxDEV(Z_,{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-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:218,columnNumber:9},this),ee.jsxDEV(Hne,{},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:229,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:196,columnNumber:7},this),ee.jsxDEV(ww,{title:"Scheduled Data",tables:F},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:232,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/App.tsx",lineNumber:150,columnNumber:5},this)}U5.createRoot(document.getElementById("root")).render(ee.jsxDEV(Pe.StrictMode,{children:ee.jsxDEV(Gne,{},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/main.tsx",lineNumber:8,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/edwardalvarado/paima-engine-3/packages/build-tools/explorer/client/src/main.tsx",lineNumber:7,columnNumber:3},void 0));
|