axiodb 2.30.91 → 2.30.93

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,67 +0,0 @@
1
- var Ey=Object.defineProperty,jy=Object.defineProperties;var Ry=Object.getOwnPropertyDescriptors;var Ri=Object.getOwnPropertySymbols;var M0=Object.prototype.hasOwnProperty,z0=Object.prototype.propertyIsEnumerable;var Ja=(n,s)=>(s=Symbol[n])?s:Symbol.for("Symbol."+n),Ty=n=>{throw TypeError(n)};var C0=(n,s,c)=>s in n?Ey(n,s,{enumerable:!0,configurable:!0,writable:!0,value:c}):n[s]=c,pe=(n,s)=>{for(var c in s||(s={}))M0.call(s,c)&&C0(n,c,s[c]);if(Ri)for(var c of Ri(s))z0.call(s,c)&&C0(n,c,s[c]);return n},nt=(n,s)=>jy(n,Ry(s));var aa=(n,s)=>{var c={};for(var r in n)M0.call(n,r)&&s.indexOf(r)<0&&(c[r]=n[r]);if(n!=null&&Ri)for(var r of Ri(n))s.indexOf(r)<0&&z0.call(n,r)&&(c[r]=n[r]);return c};var Ay=(n,s)=>()=>(s||n((s={exports:{}}).exports,s),s.exports);var Oe=(n,s,c)=>new Promise((r,f)=>{var d=p=>{try{x(c.next(p))}catch(m){f(m)}},g=p=>{try{x(c.throw(p))}catch(m){f(m)}},x=p=>p.done?r(p.value):Promise.resolve(p.value).then(d,g);x((c=c.apply(n,s)).next())}),na=function(n,s){this[0]=n,this[1]=s},ic=(n,s,c)=>{var r=(g,x,p,m)=>{try{var v=c[g](x),E=(x=v.value)instanceof na,R=v.done;Promise.resolve(E?x[0]:x).then(U=>E?r(g==="return"?g:"next",x[1]?{done:U.done,value:U.value}:U,p,m):p({value:U,done:R})).catch(U=>r("throw",U,p,m))}catch(U){m(U)}},f=g=>d[g]=x=>new Promise((p,m)=>r(g,x,p,m)),d={};return c=c.apply(n,s),d[Ja("asyncIterator")]=()=>d,f("next"),f("throw"),f("return"),d},sc=n=>{var s=n[Ja("asyncIterator")],c=!1,r,f={};return s==null?(s=n[Ja("iterator")](),r=d=>f[d]=g=>s[d](g)):(s=s.call(n),r=d=>f[d]=g=>{if(c){if(c=!1,d==="throw")throw g;return g}return c=!0,{done:!1,value:new na(new Promise(x=>{var p=s[d](g);p instanceof Object||Ty("Object expected"),x(p)}),1)}}),f[Ja("iterator")]=()=>f,r("next"),"throw"in s?r("throw"):f.throw=d=>{throw d},"return"in s&&r("return"),f},_0=(n,s,c)=>(s=n[Ja("asyncIterator")])?s.call(n):(n=n[Ja("iterator")](),s={},c=(r,f)=>(f=n[r])&&(s[r]=d=>new Promise((g,x,p)=>(d=f.call(n,d),p=d.done,Promise.resolve(d.value).then(m=>g({value:m,done:p}),x)))),c("next"),c("return"),s);var j2=Ay(Ze=>{(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))r(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const g of d.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&r(g)}).observe(document,{childList:!0,subtree:!0});function c(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(f){if(f.ep)return;f.ep=!0;const d=c(f);fetch(f.href,d)}})();function Dy(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var rc={exports:{}},Wn={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var U0;function Oy(){if(U0)return Wn;U0=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function c(r,f,d){var g=null;if(d!==void 0&&(g=""+d),f.key!==void 0&&(g=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:n,type:r,key:g,ref:f!==void 0?f:null,props:d}}return Wn.Fragment=s,Wn.jsx=c,Wn.jsxs=c,Wn}var B0;function Cy(){return B0||(B0=1,rc.exports=Oy()),rc.exports}var o=Cy(),cc={exports:{}},se={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var H0;function My(){if(H0)return se;H0=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),g=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),E=Symbol.iterator;function R(w){return w===null||typeof w!="object"?null:(w=E&&w[E]||w["@@iterator"],typeof w=="function"?w:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,z={};function D(w,Y,K){this.props=w,this.context=Y,this.refs=z,this.updater=K||U}D.prototype.isReactComponent={},D.prototype.setState=function(w,Y){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,Y,"setState")},D.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function V(){}V.prototype=D.prototype;function G(w,Y,K){this.props=w,this.context=Y,this.refs=z,this.updater=K||U}var k=G.prototype=new V;k.constructor=G,M(k,D.prototype),k.isPureReactComponent=!0;var I=Array.isArray,X={H:null,A:null,T:null,S:null,V:null},F=Object.prototype.hasOwnProperty;function ce(w,Y,K,Q,P,ge){return K=ge.ref,{$$typeof:n,type:w,key:Y,ref:K!==void 0?K:null,props:ge}}function fe(w,Y){return ce(w.type,Y,void 0,void 0,void 0,w.props)}function Ce(w){return typeof w=="object"&&w!==null&&w.$$typeof===n}function tt(w){var Y={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(K){return Y[K]})}var we=/\/+/g;function xe(w,Y){return typeof w=="object"&&w!==null&&w.key!=null?tt(""+w.key):Y.toString(36)}function ze(){}function Ke(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(ze,ze):(w.status="pending",w.then(function(Y){w.status==="pending"&&(w.status="fulfilled",w.value=Y)},function(Y){w.status==="pending"&&(w.status="rejected",w.reason=Y)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function qe(w,Y,K,Q,P){var ge=typeof w;(ge==="undefined"||ge==="boolean")&&(w=null);var ne=!1;if(w===null)ne=!0;else switch(ge){case"bigint":case"string":case"number":ne=!0;break;case"object":switch(w.$$typeof){case n:case s:ne=!0;break;case v:return ne=w._init,qe(ne(w._payload),Y,K,Q,P)}}if(ne)return P=P(w),ne=Q===""?"."+xe(w,0):Q,I(P)?(K="",ne!=null&&(K=ne.replace(we,"$&/")+"/"),qe(P,Y,K,"",function(je){return je})):P!=null&&(Ce(P)&&(P=fe(P,K+(P.key==null||w&&w.key===P.key?"":(""+P.key).replace(we,"$&/")+"/")+ne)),Y.push(P)),1;ne=0;var J=Q===""?".":Q+":";if(I(w))for(var ue=0;ue<w.length;ue++)Q=w[ue],ge=J+xe(Q,ue),ne+=qe(Q,Y,K,ge,P);else if(ue=R(w),typeof ue=="function")for(w=ue.call(w),ue=0;!(Q=w.next()).done;)Q=Q.value,ge=J+xe(Q,ue++),ne+=qe(Q,Y,K,ge,P);else if(ge==="object"){if(typeof w.then=="function")return qe(Ke(w),Y,K,Q,P);throw Y=String(w),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ne}function B(w,Y,K){if(w==null)return w;var Q=[],P=0;return qe(w,Q,"","",function(ge){return Y.call(K,ge,P++)}),Q}function Z(w){if(w._status===-1){var Y=w._result;Y=Y(),Y.then(function(K){(w._status===0||w._status===-1)&&(w._status=1,w._result=K)},function(K){(w._status===0||w._status===-1)&&(w._status=2,w._result=K)}),w._status===-1&&(w._status=0,w._result=Y)}if(w._status===1)return w._result.default;throw w._result}var ee=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)};function Se(){}return se.Children={map:B,forEach:function(w,Y,K){B(w,function(){Y.apply(this,arguments)},K)},count:function(w){var Y=0;return B(w,function(){Y++}),Y},toArray:function(w){return B(w,function(Y){return Y})||[]},only:function(w){if(!Ce(w))throw Error("React.Children.only expected to receive a single React element child.");return w}},se.Component=D,se.Fragment=c,se.Profiler=f,se.PureComponent=G,se.StrictMode=r,se.Suspense=p,se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,se.__COMPILER_RUNTIME={__proto__:null,c:function(w){return X.H.useMemoCache(w)}},se.cache=function(w){return function(){return w.apply(null,arguments)}},se.cloneElement=function(w,Y,K){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var Q=M({},w.props),P=w.key,ge=void 0;if(Y!=null)for(ne in Y.ref!==void 0&&(ge=void 0),Y.key!==void 0&&(P=""+Y.key),Y)!F.call(Y,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&Y.ref===void 0||(Q[ne]=Y[ne]);var ne=arguments.length-2;if(ne===1)Q.children=K;else if(1<ne){for(var J=Array(ne),ue=0;ue<ne;ue++)J[ue]=arguments[ue+2];Q.children=J}return ce(w.type,P,void 0,void 0,ge,Q)},se.createContext=function(w){return w={$$typeof:g,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:d,_context:w},w},se.createElement=function(w,Y,K){var Q,P={},ge=null;if(Y!=null)for(Q in Y.key!==void 0&&(ge=""+Y.key),Y)F.call(Y,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(P[Q]=Y[Q]);var ne=arguments.length-2;if(ne===1)P.children=K;else if(1<ne){for(var J=Array(ne),ue=0;ue<ne;ue++)J[ue]=arguments[ue+2];P.children=J}if(w&&w.defaultProps)for(Q in ne=w.defaultProps,ne)P[Q]===void 0&&(P[Q]=ne[Q]);return ce(w,ge,void 0,void 0,null,P)},se.createRef=function(){return{current:null}},se.forwardRef=function(w){return{$$typeof:x,render:w}},se.isValidElement=Ce,se.lazy=function(w){return{$$typeof:v,_payload:{_status:-1,_result:w},_init:Z}},se.memo=function(w,Y){return{$$typeof:m,type:w,compare:Y===void 0?null:Y}},se.startTransition=function(w){var Y=X.T,K={};X.T=K;try{var Q=w(),P=X.S;P!==null&&P(K,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(Se,ee)}catch(ge){ee(ge)}finally{X.T=Y}},se.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},se.use=function(w){return X.H.use(w)},se.useActionState=function(w,Y,K){return X.H.useActionState(w,Y,K)},se.useCallback=function(w,Y){return X.H.useCallback(w,Y)},se.useContext=function(w){return X.H.useContext(w)},se.useDebugValue=function(){},se.useDeferredValue=function(w,Y){return X.H.useDeferredValue(w,Y)},se.useEffect=function(w,Y,K){var Q=X.H;if(typeof K=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Q.useEffect(w,Y)},se.useId=function(){return X.H.useId()},se.useImperativeHandle=function(w,Y,K){return X.H.useImperativeHandle(w,Y,K)},se.useInsertionEffect=function(w,Y){return X.H.useInsertionEffect(w,Y)},se.useLayoutEffect=function(w,Y){return X.H.useLayoutEffect(w,Y)},se.useMemo=function(w,Y){return X.H.useMemo(w,Y)},se.useOptimistic=function(w,Y){return X.H.useOptimistic(w,Y)},se.useReducer=function(w,Y,K){return X.H.useReducer(w,Y,K)},se.useRef=function(w){return X.H.useRef(w)},se.useState=function(w){return X.H.useState(w)},se.useSyncExternalStore=function(w,Y,K){return X.H.useSyncExternalStore(w,Y,K)},se.useTransition=function(){return X.H.useTransition()},se.version="19.1.1",se}var L0;function Ac(){return L0||(L0=1,cc.exports=My()),cc.exports}var S=Ac();const Ti=Dy(S);var oc={exports:{}},Pn={},fc={exports:{}},dc={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var q0;function zy(){return q0||(q0=1,function(n){function s(B,Z){var ee=B.length;B.push(Z);e:for(;0<ee;){var Se=ee-1>>>1,w=B[Se];if(0<f(w,Z))B[Se]=Z,B[ee]=w,ee=Se;else break e}}function c(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var Z=B[0],ee=B.pop();if(ee!==Z){B[0]=ee;e:for(var Se=0,w=B.length,Y=w>>>1;Se<Y;){var K=2*(Se+1)-1,Q=B[K],P=K+1,ge=B[P];if(0>f(Q,ee))P<w&&0>f(ge,Q)?(B[Se]=ge,B[P]=ee,Se=P):(B[Se]=Q,B[K]=ee,Se=K);else if(P<w&&0>f(ge,ee))B[Se]=ge,B[P]=ee,Se=P;else break e}}return Z}function f(B,Z){var ee=B.sortIndex-Z.sortIndex;return ee!==0?ee:B.id-Z.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var g=Date,x=g.now();n.unstable_now=function(){return g.now()-x}}var p=[],m=[],v=1,E=null,R=3,U=!1,M=!1,z=!1,D=!1,V=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate!="undefined"?setImmediate:null;function I(B){for(var Z=c(m);Z!==null;){if(Z.callback===null)r(m);else if(Z.startTime<=B)r(m),Z.sortIndex=Z.expirationTime,s(p,Z);else break;Z=c(m)}}function X(B){if(z=!1,I(B),!M)if(c(p)!==null)M=!0,F||(F=!0,xe());else{var Z=c(m);Z!==null&&qe(X,Z.startTime-B)}}var F=!1,ce=-1,fe=5,Ce=-1;function tt(){return D?!0:!(n.unstable_now()-Ce<fe)}function we(){if(D=!1,F){var B=n.unstable_now();Ce=B;var Z=!0;try{e:{M=!1,z&&(z=!1,G(ce),ce=-1),U=!0;var ee=R;try{t:{for(I(B),E=c(p);E!==null&&!(E.expirationTime>B&&tt());){var Se=E.callback;if(typeof Se=="function"){E.callback=null,R=E.priorityLevel;var w=Se(E.expirationTime<=B);if(B=n.unstable_now(),typeof w=="function"){E.callback=w,I(B),Z=!0;break t}E===c(p)&&r(p),I(B)}else r(p);E=c(p)}if(E!==null)Z=!0;else{var Y=c(m);Y!==null&&qe(X,Y.startTime-B),Z=!1}}break e}finally{E=null,R=ee,U=!1}Z=void 0}}finally{Z?xe():F=!1}}}var xe;if(typeof k=="function")xe=function(){k(we)};else if(typeof MessageChannel!="undefined"){var ze=new MessageChannel,Ke=ze.port2;ze.port1.onmessage=we,xe=function(){Ke.postMessage(null)}}else xe=function(){V(we,0)};function qe(B,Z){ce=V(function(){B(n.unstable_now())},Z)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(B){B.callback=null},n.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<B?Math.floor(1e3/B):5},n.unstable_getCurrentPriorityLevel=function(){return R},n.unstable_next=function(B){switch(R){case 1:case 2:case 3:var Z=3;break;default:Z=R}var ee=R;R=Z;try{return B()}finally{R=ee}},n.unstable_requestPaint=function(){D=!0},n.unstable_runWithPriority=function(B,Z){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ee=R;R=B;try{return Z()}finally{R=ee}},n.unstable_scheduleCallback=function(B,Z,ee){var Se=n.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Se+ee:Se):ee=Se,B){case 1:var w=-1;break;case 2:w=250;break;case 5:w=1073741823;break;case 4:w=1e4;break;default:w=5e3}return w=ee+w,B={id:v++,callback:Z,priorityLevel:B,startTime:ee,expirationTime:w,sortIndex:-1},ee>Se?(B.sortIndex=ee,s(m,B),c(p)===null&&B===c(m)&&(z?(G(ce),ce=-1):z=!0,qe(X,ee-Se))):(B.sortIndex=w,s(p,B),M||U||(M=!0,F||(F=!0,xe()))),B},n.unstable_shouldYield=tt,n.unstable_wrapCallback=function(B){var Z=R;return function(){var ee=R;R=Z;try{return B.apply(this,arguments)}finally{R=ee}}}}(dc)),dc}var Y0;function _y(){return Y0||(Y0=1,fc.exports=zy()),fc.exports}var hc={exports:{}},ut={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var V0;function Uy(){if(V0)return ut;V0=1;var n=Ac();function s(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var r={d:{f:c,r:function(){throw Error(s(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(p,m,v){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:E==null?null:""+E,children:p,containerInfo:m,implementation:v}}var g=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ut.createPortal=function(p,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(s(299));return d(p,m,null,v)},ut.flushSync=function(p){var m=g.T,v=r.p;try{if(g.T=null,r.p=2,p)return p()}finally{g.T=m,r.p=v,r.d.f()}},ut.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(p,m))},ut.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},ut.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var v=m.as,E=x(v,m.crossOrigin),R=typeof m.integrity=="string"?m.integrity:void 0,U=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?r.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:E,integrity:R,fetchPriority:U}):v==="script"&&r.d.X(p,{crossOrigin:E,integrity:R,fetchPriority:U,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ut.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=x(m.as,m.crossOrigin);r.d.M(p,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(p)},ut.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,E=x(v,m.crossOrigin);r.d.L(p,v,{crossOrigin:E,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},ut.preloadModule=function(p,m){if(typeof p=="string")if(m){var v=x(m.as,m.crossOrigin);r.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(p)},ut.requestFormReset=function(p){r.d.r(p)},ut.unstable_batchedUpdates=function(p,m){return p(m)},ut.useFormState=function(p,m,v){return g.H.useFormState(p,m,v)},ut.useFormStatus=function(){return g.H.useHostTransitionStatus()},ut.version="19.1.1",ut}var G0;function By(){if(G0)return hc.exports;G0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),hc.exports=Uy(),hc.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var X0;function Hy(){if(X0)return Pn;X0=1;var n=_y(),s=Ac(),c=By();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function g(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(d(e)!==e)throw Error(r(188))}function p(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var u=l.return;if(u===null)break;var i=u.alternate;if(i===null){if(a=u.return,a!==null){l=a;continue}break}if(u.child===i.child){for(i=u.child;i;){if(i===l)return x(u),e;if(i===a)return x(u),t;i=i.sibling}throw Error(r(188))}if(l.return!==a.return)l=u,a=i;else{for(var h=!1,y=u.child;y;){if(y===l){h=!0,l=u,a=i;break}if(y===a){h=!0,a=u,l=i;break}y=y.sibling}if(!h){for(y=i.child;y;){if(y===l){h=!0,l=i,a=u;break}if(y===a){h=!0,a=i,l=u;break}y=y.sibling}if(!h)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,E=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),V=Symbol.for("react.provider"),G=Symbol.for("react.consumer"),k=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),Ce=Symbol.for("react.activity"),tt=Symbol.for("react.memo_cache_sentinel"),we=Symbol.iterator;function xe(e){return e===null||typeof e!="object"?null:(e=we&&e[we]||e["@@iterator"],typeof e=="function"?e:null)}var ze=Symbol.for("react.client.reference");function Ke(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ze?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case D:return"Profiler";case z:return"StrictMode";case X:return"Suspense";case F:return"SuspenseList";case Ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case k:return(e.displayName||"Context")+".Provider";case G:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ce:return t=e.displayName||null,t!==null?t:Ke(e.type)||"Memo";case fe:t=e._payload,e=e._init;try{return Ke(e(t))}catch(l){}}return null}var qe=Array.isArray,B=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},Se=[],w=-1;function Y(e){return{current:e}}function K(e){0>w||(e.current=Se[w],Se[w]=null,w--)}function Q(e,t){w++,Se[w]=e.current,e.current=t}var P=Y(null),ge=Y(null),ne=Y(null),J=Y(null);function ue(e,t){switch(Q(ne,t),Q(ge,e),Q(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?u0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=u0(t),e=i0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}K(P),Q(P,e)}function je(){K(P),K(ge),K(ne)}function hl(e){e.memoizedState!==null&&Q(J,e);var t=P.current,l=i0(t,e.type);t!==l&&(Q(ge,e),Q(P,l))}function Yt(e){ge.current===e&&(K(P),K(ge)),J.current===e&&(K(J),Zn._currentValue=ee)}var Zi=Object.prototype.hasOwnProperty,Ki=n.unstable_scheduleCallback,Ji=n.unstable_cancelCallback,lm=n.unstable_shouldYield,am=n.unstable_requestPaint,Vt=n.unstable_now,nm=n.unstable_getCurrentPriorityLevel,Hc=n.unstable_ImmediatePriority,Lc=n.unstable_UserBlockingPriority,du=n.unstable_NormalPriority,um=n.unstable_LowPriority,qc=n.unstable_IdlePriority,im=n.log,sm=n.unstable_setDisableYieldValue,Ia=null,pt=null;function ml(e){if(typeof im=="function"&&sm(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(Ia,e)}catch(t){}}var vt=Math.clz32?Math.clz32:om,rm=Math.log,cm=Math.LN2;function om(e){return e>>>=0,e===0?32:31-(rm(e)/cm|0)|0}var hu=256,mu=4194304;function ql(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function gu(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var u=0,i=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var y=a&134217727;return y!==0?(a=y&~i,a!==0?u=ql(a):(h&=y,h!==0?u=ql(h):l||(l=y&~e,l!==0&&(u=ql(l))))):(y=a&~i,y!==0?u=ql(y):h!==0?u=ql(h):l||(l=a&~e,l!==0&&(u=ql(l)))),u===0?0:t!==0&&t!==u&&(t&i)===0&&(i=u&-u,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:u}function en(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function fm(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Yc(){var e=hu;return hu<<=1,(hu&4194048)===0&&(hu=256),e}function Vc(){var e=mu;return mu<<=1,(mu&62914560)===0&&(mu=4194304),e}function $i(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function tn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function dm(e,t,l,a,u,i){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var y=e.entanglements,b=e.expirationTimes,A=e.hiddenUpdates;for(l=h&~l;0<l;){var H=31-vt(l),q=1<<H;y[H]=0,b[H]=-1;var O=A[H];if(O!==null)for(A[H]=null,H=0;H<O.length;H++){var C=O[H];C!==null&&(C.lane&=-536870913)}l&=~q}a!==0&&Gc(e,a,0),i!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=i&~(h&~t))}function Gc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-vt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&4194090}function Xc(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-vt(l),u=1<<a;u&t|e[a]&t&&(e[a]|=t),l&=~u}}function Fi(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Wi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function kc(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:j0(e.type))}function hm(e,t){var l=Z.p;try{return Z.p=e,t()}finally{Z.p=l}}var gl=Math.random().toString(36).slice(2),lt="__reactFiber$"+gl,ot="__reactProps$"+gl,ca="__reactContainer$"+gl,Pi="__reactEvents$"+gl,mm="__reactListeners$"+gl,gm="__reactHandles$"+gl,Qc="__reactResources$"+gl,ln="__reactMarker$"+gl;function Ii(e){delete e[lt],delete e[ot],delete e[Pi],delete e[mm],delete e[gm]}function oa(e){var t=e[lt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ca]||l[lt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=o0(e);e!==null;){if(l=e[lt])return l;e=o0(e)}return t}e=l,l=e.parentNode}return null}function fa(e){if(e=e[lt]||e[ca]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function an(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function da(e){var t=e[Qc];return t||(t=e[Qc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[ln]=!0}var Zc=new Set,Kc={};function Yl(e,t){ha(e,t),ha(e+"Capture",t)}function ha(e,t){for(Kc[e]=t,e=0;e<t.length;e++)Zc.add(t[e])}var ym=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]*$"),Jc={},$c={};function pm(e){return Zi.call($c,e)?!0:Zi.call(Jc,e)?!1:ym.test(e)?$c[e]=!0:(Jc[e]=!0,!1)}function yu(e,t,l){if(pm(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function pu(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function $t(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}var es,Fc;function ma(e){if(es===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);es=t&&t[1]||"",Fc=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+es+e+Fc}var ts=!1;function ls(e,t){if(!e||ts)return"";ts=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(C){var O=C}Reflect.construct(e,[],q)}else{try{q.call()}catch(C){O=C}e.call(q.prototype)}}else{try{throw Error()}catch(C){O=C}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(C){if(C&&O&&typeof C.stack=="string")return[C.stack,O.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),h=i[0],y=i[1];if(h&&y){var b=h.split(`
44
- `),A=y.split(`
45
- `);for(u=a=0;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;for(;u<A.length&&!A[u].includes("DetermineComponentFrameRoot");)u++;if(a===b.length||u===A.length)for(a=b.length-1,u=A.length-1;1<=a&&0<=u&&b[a]!==A[u];)u--;for(;1<=a&&0<=u;a--,u--)if(b[a]!==A[u]){if(a!==1||u!==1)do if(a--,u--,0>u||b[a]!==A[u]){var H=`
46
- `+b[a].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=a&&0<=u);break}}}finally{ts=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?ma(l):""}function vm(e){switch(e.tag){case 26:case 27:case 5:return ma(e.type);case 16:return ma("Lazy");case 13:return ma("Suspense");case 19:return ma("SuspenseList");case 0:case 15:return ls(e.type,!1);case 11:return ls(e.type.render,!1);case 1:return ls(e.type,!0);case 31:return ma("Activity");default:return""}}function Wc(e){try{var t="";do t+=vm(e),e=e.return;while(e);return t}catch(l){return`
47
- Error generating stack: `+l.message+`
48
- `+l.stack}}function Rt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xm(e){var t=Pc(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof l!="undefined"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(h){a=""+h,i.call(this,h)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(h){a=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vu(e){e._valueTracker||(e._valueTracker=xm(e))}function Ic(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Pc(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function xu(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}var bm=/[\n"\\]/g;function Tt(e){return e.replace(bm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function as(e,t,l,a,u,i,h,y){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Rt(t)):e.value!==""+Rt(t)&&(e.value=""+Rt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?ns(e,h,Rt(t)):l!=null?ns(e,h,Rt(l)):a!=null&&e.removeAttribute("value"),u==null&&i!=null&&(e.defaultChecked=!!i),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Rt(y):e.removeAttribute("name")}function eo(e,t,l,a,u,i,h,y){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null))return;l=l!=null?""+Rt(l):"",t=t!=null?""+Rt(t):l,y||t===e.value||(e.value=t),e.defaultValue=t}a=a!=null?a:u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=y?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h)}function ns(e,t,l){t==="number"&&xu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ga(e,t,l,a){if(e=e.options,t){t={};for(var u=0;u<l.length;u++)t["$"+l[u]]=!0;for(l=0;l<e.length;l++)u=t.hasOwnProperty("$"+e[l].value),e[l].selected!==u&&(e[l].selected=u),u&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Rt(l),t=null,u=0;u<e.length;u++){if(e[u].value===l){e[u].selected=!0,a&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function to(e,t,l){if(t!=null&&(t=""+Rt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Rt(l):""}function lo(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(qe(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Rt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a)}function ya(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Sm=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ao(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Sm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function no(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var u in t)a=t[u],t.hasOwnProperty(u)&&l[u]!==a&&ao(e,u,a)}else for(var i in t)t.hasOwnProperty(i)&&ao(e,i,t[i])}function us(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wm=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"]]),Nm=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function bu(e){return Nm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var is=null;function ss(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pa=null,va=null;function uo(e){var t=fa(e);if(t&&(e=t.stateNode)){var l=e[ot]||null;e:switch(e=t.stateNode,t.type){case"input":if(as(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Tt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var u=a[ot]||null;if(!u)throw Error(r(90));as(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Ic(a)}break e;case"textarea":to(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ga(e,!!l.multiple,t,!1)}}}var rs=!1;function io(e,t,l){if(rs)return e(t,l);rs=!0;try{var a=e(t);return a}finally{if(rs=!1,(pa!==null||va!==null)&&(ui(),pa&&(t=pa,e=va,va=pa=null,uo(t),e)))for(t=0;t<e.length;t++)uo(e[t])}}function nn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[ot]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var Ft=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),cs=!1;if(Ft)try{var un={};Object.defineProperty(un,"passive",{get:function(){cs=!0}}),window.addEventListener("test",un,un),window.removeEventListener("test",un,un)}catch(e){cs=!1}var yl=null,os=null,Su=null;function so(){if(Su)return Su;var e,t=os,l=t.length,a,u="value"in yl?yl.value:yl.textContent,i=u.length;for(e=0;e<l&&t[e]===u[e];e++);var h=l-e;for(a=1;a<=h&&t[l-a]===u[i-a];a++);return Su=u.slice(e,1<a?1-a:void 0)}function wu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Nu(){return!0}function ro(){return!1}function ft(e){function t(l,a,u,i,h){this._reactName=l,this._targetInst=u,this.type=a,this.nativeEvent=i,this.target=h,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(l=e[y],this[y]=l?l(i):i[y]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Nu:ro,this.isPropagationStopped=ro,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Nu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Nu)},persist:function(){},isPersistent:Nu}),t}var Vl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Eu=ft(Vl),sn=v({},Vl,{view:0,detail:0}),Em=ft(sn),fs,ds,rn,ju=v({},sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ms,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==rn&&(rn&&e.type==="mousemove"?(fs=e.screenX-rn.screenX,ds=e.screenY-rn.screenY):ds=fs=0,rn=e),fs)},movementY:function(e){return"movementY"in e?e.movementY:ds}}),co=ft(ju),jm=v({},ju,{dataTransfer:0}),Rm=ft(jm),Tm=v({},sn,{relatedTarget:0}),hs=ft(Tm),Am=v({},Vl,{animationName:0,elapsedTime:0,pseudoElement:0}),Dm=ft(Am),Om=v({},Vl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cm=ft(Om),Mm=v({},Vl,{data:0}),oo=ft(Mm),zm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_m={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"},Um={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Um[e])?!!t[e]:!1}function ms(){return Bm}var Hm=v({},sn,{key:function(e){if(e.key){var t=zm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_m[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ms,charCode:function(e){return e.type==="keypress"?wu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Lm=ft(Hm),qm=v({},ju,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fo=ft(qm),Ym=v({},sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ms}),Vm=ft(Ym),Gm=v({},Vl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xm=ft(Gm),km=v({},ju,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Qm=ft(km),Zm=v({},Vl,{newState:0,oldState:0}),Km=ft(Zm),Jm=[9,13,27,32],gs=Ft&&"CompositionEvent"in window,cn=null;Ft&&"documentMode"in document&&(cn=document.documentMode);var $m=Ft&&"TextEvent"in window&&!cn,ho=Ft&&(!gs||cn&&8<cn&&11>=cn),mo=" ",go=!1;function yo(e,t){switch(e){case"keyup":return Jm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function po(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xa=!1;function Fm(e,t){switch(e){case"compositionend":return po(t);case"keypress":return t.which!==32?null:(go=!0,mo);case"textInput":return e=t.data,e===mo&&go?null:e;default:return null}}function Wm(e,t){if(xa)return e==="compositionend"||!gs&&yo(e,t)?(e=so(),Su=os=yl=null,xa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ho&&t.locale!=="ko"?null:t.data;default:return null}}var Pm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function vo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Pm[e.type]:t==="textarea"}function xo(e,t,l,a){pa?va?va.push(a):va=[a]:pa=a,t=fi(t,"onChange"),0<t.length&&(l=new Eu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var on=null,fn=null;function Im(e){e0(e,0)}function Ru(e){var t=an(e);if(Ic(t))return e}function bo(e,t){if(e==="change")return t}var So=!1;if(Ft){var ys;if(Ft){var ps="oninput"in document;if(!ps){var wo=document.createElement("div");wo.setAttribute("oninput","return;"),ps=typeof wo.oninput=="function"}ys=ps}else ys=!1;So=ys&&(!document.documentMode||9<document.documentMode)}function No(){on&&(on.detachEvent("onpropertychange",Eo),fn=on=null)}function Eo(e){if(e.propertyName==="value"&&Ru(fn)){var t=[];xo(t,fn,e,ss(e)),io(Im,t)}}function eg(e,t,l){e==="focusin"?(No(),on=t,fn=l,on.attachEvent("onpropertychange",Eo)):e==="focusout"&&No()}function tg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ru(fn)}function lg(e,t){if(e==="click")return Ru(t)}function ag(e,t){if(e==="input"||e==="change")return Ru(t)}function ng(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xt=typeof Object.is=="function"?Object.is:ng;function dn(e,t){if(xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var u=l[a];if(!Zi.call(t,u)||!xt(e[u],t[u]))return!1}return!0}function jo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ro(e,t){var l=jo(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=jo(l)}}function To(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?To(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ao(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=xu(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch(a){l=!1}if(l)e=t.contentWindow;else break;t=xu(e.document)}return t}function vs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ug=Ft&&"documentMode"in document&&11>=document.documentMode,ba=null,xs=null,hn=null,bs=!1;function Do(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;bs||ba==null||ba!==xu(a)||(a=ba,"selectionStart"in a&&vs(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),hn&&dn(hn,a)||(hn=a,a=fi(xs,"onSelect"),0<a.length&&(t=new Eu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ba)))}function Gl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Sa={animationend:Gl("Animation","AnimationEnd"),animationiteration:Gl("Animation","AnimationIteration"),animationstart:Gl("Animation","AnimationStart"),transitionrun:Gl("Transition","TransitionRun"),transitionstart:Gl("Transition","TransitionStart"),transitioncancel:Gl("Transition","TransitionCancel"),transitionend:Gl("Transition","TransitionEnd")},Ss={},Oo={};Ft&&(Oo=document.createElement("div").style,"AnimationEvent"in window||(delete Sa.animationend.animation,delete Sa.animationiteration.animation,delete Sa.animationstart.animation),"TransitionEvent"in window||delete Sa.transitionend.transition);function Xl(e){if(Ss[e])return Ss[e];if(!Sa[e])return e;var t=Sa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Oo)return Ss[e]=t[l];return e}var Co=Xl("animationend"),Mo=Xl("animationiteration"),zo=Xl("animationstart"),ig=Xl("transitionrun"),sg=Xl("transitionstart"),rg=Xl("transitioncancel"),_o=Xl("transitionend"),Uo=new Map,ws="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(" ");ws.push("scrollEnd");function Ut(e,t){Uo.set(e,t),Yl(t,[e])}var Bo=new WeakMap;function At(e,t){if(typeof e=="object"&&e!==null){var l=Bo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Wc(t)},Bo.set(e,t),t)}return{value:e,source:t,stack:Wc(t)}}var Dt=[],wa=0,Ns=0;function Tu(){for(var e=wa,t=Ns=wa=0;t<e;){var l=Dt[t];Dt[t++]=null;var a=Dt[t];Dt[t++]=null;var u=Dt[t];Dt[t++]=null;var i=Dt[t];if(Dt[t++]=null,a!==null&&u!==null){var h=a.pending;h===null?u.next=u:(u.next=h.next,h.next=u),a.pending=u}i!==0&&Ho(l,u,i)}}function Au(e,t,l,a){Dt[wa++]=e,Dt[wa++]=t,Dt[wa++]=l,Dt[wa++]=a,Ns|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Es(e,t,l,a){return Au(e,t,l,a),Du(e)}function Na(e,t){return Au(e,null,null,t),Du(e)}function Ho(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var u=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(u=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,u&&t!==null&&(u=31-vt(l),e=i.hiddenUpdates,a=e[u],a===null?e[u]=[t]:a.push(t),t.lane=l|536870912),i):null}function Du(e){if(50<Ln)throw Ln=0,Or=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ea={};function cg(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,l,a){return new cg(e,t,l,a)}function js(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wt(e,t){var l=e.alternate;return l===null?(l=bt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Lo(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ou(e,t,l,a,u,i){var h=0;if(a=e,typeof e=="function")js(e)&&(h=1);else if(typeof e=="string")h=fy(e,l,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ce:return e=bt(31,l,t,u),e.elementType=Ce,e.lanes=i,e;case M:return kl(l.children,u,i,t);case z:h=8,u|=24;break;case D:return e=bt(12,l,t,u|2),e.elementType=D,e.lanes=i,e;case X:return e=bt(13,l,t,u),e.elementType=X,e.lanes=i,e;case F:return e=bt(19,l,t,u),e.elementType=F,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case V:case k:h=10;break e;case G:h=9;break e;case I:h=11;break e;case ce:h=14;break e;case fe:h=16,a=null;break e}h=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=bt(h,l,t,u),t.elementType=e,t.type=a,t.lanes=i,t}function kl(e,t,l,a){return e=bt(7,e,a,t),e.lanes=l,e}function Rs(e,t,l){return e=bt(6,e,null,t),e.lanes=l,e}function Ts(e,t,l){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ja=[],Ra=0,Cu=null,Mu=0,Ot=[],Ct=0,Ql=null,Pt=1,It="";function Zl(e,t){ja[Ra++]=Mu,ja[Ra++]=Cu,Cu=e,Mu=t}function qo(e,t,l){Ot[Ct++]=Pt,Ot[Ct++]=It,Ot[Ct++]=Ql,Ql=e;var a=Pt;e=It;var u=32-vt(a)-1;a&=~(1<<u),l+=1;var i=32-vt(t)+u;if(30<i){var h=u-u%5;i=(a&(1<<h)-1).toString(32),a>>=h,u-=h,Pt=1<<32-vt(t)+u|l<<u|a,It=i+e}else Pt=1<<i|l<<u|a,It=e}function As(e){e.return!==null&&(Zl(e,1),qo(e,1,0))}function Ds(e){for(;e===Cu;)Cu=ja[--Ra],ja[Ra]=null,Mu=ja[--Ra],ja[Ra]=null;for(;e===Ql;)Ql=Ot[--Ct],Ot[Ct]=null,It=Ot[--Ct],Ot[Ct]=null,Pt=Ot[--Ct],Ot[Ct]=null}var rt=null,He=null,be=!1,Kl=null,Gt=!1,Os=Error(r(519));function Jl(e){var t=Error(r(418,""));throw yn(At(t,e)),Os}function Yo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[lt]=e,t[ot]=a,l){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(l=0;l<Yn.length;l++)he(Yn[l],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),eo(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),vu(t);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),lo(t,a.value,a.defaultValue,a.children),vu(t)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||n0(t.textContent,l)?(a.popover!=null&&(he("beforetoggle",t),he("toggle",t)),a.onScroll!=null&&he("scroll",t),a.onScrollEnd!=null&&he("scrollend",t),a.onClick!=null&&(t.onclick=di),t=!0):t=!1,t||Jl(e)}function Vo(e){for(rt=e.return;rt;)switch(rt.tag){case 5:case 13:Gt=!1;return;case 27:case 3:Gt=!0;return;default:rt=rt.return}}function mn(e){if(e!==rt)return!1;if(!be)return Vo(e),be=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Zr(e.type,e.memoizedProps)),l=!l),l&&He&&Jl(e),Vo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(l=e.data,l==="/$"){if(t===0){He=Ht(e.nextSibling);break e}t--}else l!=="$"&&l!=="$!"&&l!=="$?"||t++;e=e.nextSibling}He=null}}else t===27?(t=He,Ml(e.type)?(e=Fr,Fr=null,He=e):He=t):He=rt?Ht(e.stateNode.nextSibling):null;return!0}function gn(){He=rt=null,be=!1}function Go(){var e=Kl;return e!==null&&(mt===null?mt=e:mt.push.apply(mt,e),Kl=null),e}function yn(e){Kl===null?Kl=[e]:Kl.push(e)}var Cs=Y(null),$l=null,el=null;function pl(e,t,l){Q(Cs,t._currentValue),t._currentValue=l}function tl(e){e._currentValue=Cs.current,K(Cs)}function Ms(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function zs(e,t,l,a){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var i=u.dependencies;if(i!==null){var h=u.child;i=i.firstContext;e:for(;i!==null;){var y=i;i=u;for(var b=0;b<t.length;b++)if(y.context===t[b]){i.lanes|=l,y=i.alternate,y!==null&&(y.lanes|=l),Ms(i.return,l,e),a||(h=null);break e}i=y.next}}else if(u.tag===18){if(h=u.return,h===null)throw Error(r(341));h.lanes|=l,i=h.alternate,i!==null&&(i.lanes|=l),Ms(h,l,e),h=null}else h=u.child;if(h!==null)h.return=u;else for(h=u;h!==null;){if(h===e){h=null;break}if(u=h.sibling,u!==null){u.return=h.return,h=u;break}h=h.return}u=h}}function pn(e,t,l,a){e=null;for(var u=t,i=!1;u!==null;){if(!i){if((u.flags&524288)!==0)i=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var h=u.alternate;if(h===null)throw Error(r(387));if(h=h.memoizedProps,h!==null){var y=u.type;xt(u.pendingProps.value,h.value)||(e!==null?e.push(y):e=[y])}}else if(u===J.current){if(h=u.alternate,h===null)throw Error(r(387));h.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Zn):e=[Zn])}u=u.return}e!==null&&zs(t,e,l,a),t.flags|=262144}function zu(e){for(e=e.firstContext;e!==null;){if(!xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Fl(e){$l=e,el=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return Xo($l,e)}function _u(e,t){return $l===null&&Fl(e),Xo(e,t)}function Xo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},el===null){if(e===null)throw Error(r(308));el=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else el=el.next=t;return l}var og=typeof AbortController!="undefined"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},fg=n.unstable_scheduleCallback,dg=n.unstable_NormalPriority,ke={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _s(){return{controller:new og,data:new Map,refCount:0}}function vn(e){e.refCount--,e.refCount===0&&fg(dg,function(){e.controller.abort()})}var xn=null,Us=0,Ta=0,Aa=null;function hg(e,t){if(xn===null){var l=xn=[];Us=0,Ta=Hr(),Aa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Us++,t.then(ko,ko),t}function ko(){if(--Us===0&&xn!==null){Aa!==null&&(Aa.status="fulfilled");var e=xn;xn=null,Ta=0,Aa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function mg(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(u){l.push(u)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var u=0;u<l.length;u++)(0,l[u])(t)},function(u){for(a.status="rejected",a.reason=u,u=0;u<l.length;u++)(0,l[u])(void 0)}),a}var Qo=B.S;B.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&hg(e,t),Qo!==null&&Qo(e,t)};var Wl=Y(null);function Bs(){var e=Wl.current;return e!==null?e:Me.pooledCache}function Uu(e,t){t===null?Q(Wl,Wl.current):Q(Wl,t.pool)}function Zo(){var e=Bs();return e===null?null:{parent:ke._currentValue,pool:e}}var bn=Error(r(460)),Ko=Error(r(474)),Bu=Error(r(542)),Hs={then:function(){}};function Jo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Hu(){}function $o(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Hu,Hu),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wo(e),e;default:if(typeof t.status=="string")t.then(Hu,Hu);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=a}},function(a){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wo(e),e}throw Sn=t,bn}}var Sn=null;function Fo(){if(Sn===null)throw Error(r(459));var e=Sn;return Sn=null,e}function Wo(e){if(e===bn||e===Bu)throw Error(r(483))}var vl=!1;function Ls(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function xl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function bl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ne&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,t=Du(e),Ho(e,null,l),t}return Au(e,a,t,l),Du(e)}function wn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Xc(e,l)}}function Ys(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var u=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?u=i=h:i=i.next=h,l=l.next}while(l!==null);i===null?u=i=t:i=i.next=t}else u=i=t;l={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Vs=!1;function Nn(){if(Vs){var e=Aa;if(e!==null)throw e}}function En(e,t,l,a){Vs=!1;var u=e.updateQueue;vl=!1;var i=u.firstBaseUpdate,h=u.lastBaseUpdate,y=u.shared.pending;if(y!==null){u.shared.pending=null;var b=y,A=b.next;b.next=null,h===null?i=A:h.next=A,h=b;var H=e.alternate;H!==null&&(H=H.updateQueue,y=H.lastBaseUpdate,y!==h&&(y===null?H.firstBaseUpdate=A:y.next=A,H.lastBaseUpdate=b))}if(i!==null){var q=u.baseState;h=0,H=A=b=null,y=i;do{var O=y.lane&-536870913,C=O!==y.lane;if(C?(ye&O)===O:(a&O)===O){O!==0&&O===Ta&&(Vs=!0),H!==null&&(H=H.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var ae=e,te=y;O=t;var Ae=l;switch(te.tag){case 1:if(ae=te.payload,typeof ae=="function"){q=ae.call(Ae,q,O);break e}q=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=te.payload,O=typeof ae=="function"?ae.call(Ae,q,O):ae,O==null)break e;q=v({},q,O);break e;case 2:vl=!0}}O=y.callback,O!==null&&(e.flags|=64,C&&(e.flags|=8192),C=u.callbacks,C===null?u.callbacks=[O]:C.push(O))}else C={lane:O,tag:y.tag,payload:y.payload,callback:y.callback,next:null},H===null?(A=H=C,b=q):H=H.next=C,h|=O;if(y=y.next,y===null){if(y=u.shared.pending,y===null)break;C=y,y=C.next,C.next=null,u.lastBaseUpdate=C,u.shared.pending=null}}while(!0);H===null&&(b=q),u.baseState=b,u.firstBaseUpdate=A,u.lastBaseUpdate=H,i===null&&(u.shared.lanes=0),Al|=h,e.lanes=h,e.memoizedState=q}}function Po(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Io(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Po(l[e],t)}var Da=Y(null),Lu=Y(0);function ef(e,t){e=rl,Q(Lu,e),Q(Da,t),rl=e|t.baseLanes}function Gs(){Q(Lu,rl),Q(Da,Da.current)}function Xs(){rl=Lu.current,K(Da),K(Lu)}var Sl=0,re=null,Re=null,Ge=null,qu=!1,Oa=!1,Pl=!1,Yu=0,jn=0,Ca=null,gg=0;function Ye(){throw Error(r(321))}function ks(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!xt(e[l],t[l]))return!1;return!0}function Qs(e,t,l,a,u,i){return Sl=i,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?Lf:qf,Pl=!1,i=l(a,u),Pl=!1,Oa&&(i=lf(t,l,a,u)),tf(e),i}function tf(e){B.H=Zu;var t=Re!==null&&Re.next!==null;if(Sl=0,Ge=Re=re=null,qu=!1,jn=0,Ca=null,t)throw Error(r(300));e===null||$e||(e=e.dependencies,e!==null&&zu(e)&&($e=!0))}function lf(e,t,l,a){re=e;var u=0;do{if(Oa&&(Ca=null),jn=0,Oa=!1,25<=u)throw Error(r(301));if(u+=1,Ge=Re=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}B.H=wg,i=t(l,a)}while(Oa);return i}function yg(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?Rn(t):t,e=e.useState()[0],(Re!==null?Re.memoizedState:null)!==e&&(re.flags|=1024),t}function Zs(){var e=Yu!==0;return Yu=0,e}function Ks(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Js(e){if(qu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}qu=!1}Sl=0,Ge=Re=re=null,Oa=!1,jn=Yu=0,Ca=null}function dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?re.memoizedState=Ge=e:Ge=Ge.next=e,Ge}function Xe(){if(Re===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Ge===null?re.memoizedState:Ge.next;if(t!==null)Ge=t,Re=e;else{if(e===null)throw re.alternate===null?Error(r(467)):Error(r(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},Ge===null?re.memoizedState=Ge=e:Ge=Ge.next=e}return Ge}function $s(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rn(e){var t=jn;return jn+=1,Ca===null&&(Ca=[]),e=$o(Ca,e,t),t=re,(Ge===null?t.memoizedState:Ge.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?Lf:qf),e}function Vu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Rn(e);if(e.$$typeof===k)return at(e)}throw Error(r(438,String(e)))}function Fs(e){var t=null,l=re.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=re.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=$s(),re.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=tt;return t.index++,l}function ll(e,t){return typeof t=="function"?t(e):t}function Gu(e){var t=Xe();return Ws(t,Re,e)}function Ws(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var u=e.baseQueue,i=a.pending;if(i!==null){if(u!==null){var h=u.next;u.next=i.next,i.next=h}t.baseQueue=u=i,a.pending=null}if(i=e.baseState,u===null)e.memoizedState=i;else{t=u.next;var y=h=null,b=null,A=t,H=!1;do{var q=A.lane&-536870913;if(q!==A.lane?(ye&q)===q:(Sl&q)===q){var O=A.revertLane;if(O===0)b!==null&&(b=b.next={lane:0,revertLane:0,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),q===Ta&&(H=!0);else if((Sl&O)===O){A=A.next,O===Ta&&(H=!0);continue}else q={lane:0,revertLane:A.revertLane,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},b===null?(y=b=q,h=i):b=b.next=q,re.lanes|=O,Al|=O;q=A.action,Pl&&l(i,q),i=A.hasEagerState?A.eagerState:l(i,q)}else O={lane:q,revertLane:A.revertLane,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},b===null?(y=b=O,h=i):b=b.next=O,re.lanes|=q,Al|=q;A=A.next}while(A!==null&&A!==t);if(b===null?h=i:b.next=y,!xt(i,e.memoizedState)&&($e=!0,H&&(l=Aa,l!==null)))throw l;e.memoizedState=i,e.baseState=h,e.baseQueue=b,a.lastRenderedState=i}return u===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Ps(e){var t=Xe(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,u=l.pending,i=t.memoizedState;if(u!==null){l.pending=null;var h=u=u.next;do i=e(i,h.action),h=h.next;while(h!==u);xt(i,t.memoizedState)||($e=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function af(e,t,l){var a=re,u=Xe(),i=be;if(i){if(l===void 0)throw Error(r(407));l=l()}else l=t();var h=!xt((Re||u).memoizedState,l);h&&(u.memoizedState=l,$e=!0),u=u.queue;var y=sf.bind(null,a,u,e);if(Tn(2048,8,y,[e]),u.getSnapshot!==t||h||Ge!==null&&Ge.memoizedState.tag&1){if(a.flags|=2048,Ma(9,Xu(),uf.bind(null,a,u,l,t),null),Me===null)throw Error(r(349));i||(Sl&124)!==0||nf(a,t,l)}return l}function nf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=re.updateQueue,t===null?(t=$s(),re.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function uf(e,t,l,a){t.value=l,t.getSnapshot=a,rf(t)&&cf(e)}function sf(e,t,l){return l(function(){rf(t)&&cf(e)})}function rf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!xt(e,l)}catch(a){return!0}}function cf(e){var t=Na(e,2);t!==null&&jt(t,e,2)}function Is(e){var t=dt();if(typeof e=="function"){var l=e;if(e=l(),Pl){ml(!0);try{l()}finally{ml(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:e},t}function of(e,t,l,a){return e.baseState=l,Ws(e,Re,typeof a=="function"?a:ll)}function pg(e,t,l,a,u){if(Qu(e))throw Error(r(485));if(e=t.action,e!==null){var i={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){i.listeners.push(h)}};B.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,ff(t,i)):(i.next=l.next,t.pending=l.next=i)}}function ff(e,t){var l=t.action,a=t.payload,u=e.state;if(t.isTransition){var i=B.T,h={};B.T=h;try{var y=l(u,a),b=B.S;b!==null&&b(h,y),df(e,t,y)}catch(A){er(e,t,A)}finally{B.T=i}}else try{i=l(u,a),df(e,t,i)}catch(A){er(e,t,A)}}function df(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){hf(e,t,a)},function(a){return er(e,t,a)}):hf(e,t,l)}function hf(e,t,l){t.status="fulfilled",t.value=l,mf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ff(e,l)))}function er(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,mf(t),t=t.next;while(t!==a)}e.action=null}function mf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gf(e,t){return t}function yf(e,t){if(be){var l=Me.formState;if(l!==null){e:{var a=re;if(be){if(He){t:{for(var u=He,i=Gt;u.nodeType!==8;){if(!i){u=null;break t}if(u=Ht(u.nextSibling),u===null){u=null;break t}}i=u.data,u=i==="F!"||i==="F"?u:null}if(u){He=Ht(u.nextSibling),a=u.data==="F!";break e}}Jl(a)}a=!1}a&&(t=l[0])}}return l=dt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gf,lastRenderedState:t},l.queue=a,l=Uf.bind(null,re,a),a.dispatch=l,a=Is(!1),i=ur.bind(null,re,!1,a.queue),a=dt(),u={state:t,dispatch:null,action:e,pending:null},a.queue=u,l=pg.bind(null,re,u,i,l),u.dispatch=l,a.memoizedState=e,[t,l,!1]}function pf(e){var t=Xe();return vf(t,Re,e)}function vf(e,t,l){if(t=Ws(e,t,gf)[0],e=Gu(ll)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Rn(t)}catch(h){throw h===bn?Bu:h}else a=t;t=Xe();var u=t.queue,i=u.dispatch;return l!==t.memoizedState&&(re.flags|=2048,Ma(9,Xu(),vg.bind(null,u,l),null)),[a,i,e]}function vg(e,t){e.action=t}function xf(e){var t=Xe(),l=Re;if(l!==null)return vf(t,l,e);Xe(),t=t.memoizedState,l=Xe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Ma(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=re.updateQueue,t===null&&(t=$s(),re.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Xu(){return{destroy:void 0,resource:void 0}}function bf(){return Xe().memoizedState}function ku(e,t,l,a){var u=dt();a=a===void 0?null:a,re.flags|=e,u.memoizedState=Ma(1|t,Xu(),l,a)}function Tn(e,t,l,a){var u=Xe();a=a===void 0?null:a;var i=u.memoizedState.inst;Re!==null&&a!==null&&ks(a,Re.memoizedState.deps)?u.memoizedState=Ma(t,i,l,a):(re.flags|=e,u.memoizedState=Ma(1|t,i,l,a))}function Sf(e,t){ku(8390656,8,e,t)}function wf(e,t){Tn(2048,8,e,t)}function Nf(e,t){return Tn(4,2,e,t)}function Ef(e,t){return Tn(4,4,e,t)}function jf(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Rf(e,t,l){l=l!=null?l.concat([e]):null,Tn(4,4,jf.bind(null,t,e),l)}function tr(){}function Tf(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&ks(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Af(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&ks(t,a[1]))return a[0];if(a=e(),Pl){ml(!0);try{e()}finally{ml(!1)}}return l.memoizedState=[a,t],a}function lr(e,t,l){return l===void 0||(Sl&1073741824)!==0?e.memoizedState=t:(e.memoizedState=l,e=Cd(),re.lanes|=e,Al|=e,l)}function Df(e,t,l,a){return xt(l,t)?l:Da.current!==null?(e=lr(e,l,a),xt(e,t)||($e=!0),e):(Sl&42)===0?($e=!0,e.memoizedState=l):(e=Cd(),re.lanes|=e,Al|=e,t)}function Of(e,t,l,a,u){var i=Z.p;Z.p=i!==0&&8>i?i:8;var h=B.T,y={};B.T=y,ur(e,!1,t,l);try{var b=u(),A=B.S;if(A!==null&&A(y,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var H=mg(b,a);An(e,t,H,Et(e))}else An(e,t,a,Et(e))}catch(q){An(e,t,{then:function(){},status:"rejected",reason:q},Et())}finally{Z.p=i,B.T=h}}function xg(){}function ar(e,t,l,a){if(e.tag!==5)throw Error(r(476));var u=Cf(e).queue;Of(e,u,t,ee,l===null?xg:function(){return Mf(e),l(a)})}function Cf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:ee},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Mf(e){var t=Cf(e).next.queue;An(e,t,{},Et())}function nr(){return at(Zn)}function zf(){return Xe().memoizedState}function _f(){return Xe().memoizedState}function bg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Et();e=xl(l);var a=bl(t,e,l);a!==null&&(jt(a,t,l),wn(a,t,l)),t={cache:_s()},e.payload=t;return}t=t.return}}function Sg(e,t,l){var a=Et();l={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Qu(e)?Bf(t,l):(l=Es(e,t,l,a),l!==null&&(jt(l,e,a),Hf(l,t,a)))}function Uf(e,t,l){var a=Et();An(e,t,l,a)}function An(e,t,l,a){var u={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Qu(e))Bf(t,u);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var h=t.lastRenderedState,y=i(h,l);if(u.hasEagerState=!0,u.eagerState=y,xt(y,h))return Au(e,t,u,0),Me===null&&Tu(),!1}catch(b){}finally{}if(l=Es(e,t,u,a),l!==null)return jt(l,e,a),Hf(l,t,a),!0}return!1}function ur(e,t,l,a){if(a={lane:2,revertLane:Hr(),action:a,hasEagerState:!1,eagerState:null,next:null},Qu(e)){if(t)throw Error(r(479))}else t=Es(e,l,a,2),t!==null&&jt(t,e,2)}function Qu(e){var t=e.alternate;return e===re||t!==null&&t===re}function Bf(e,t){Oa=qu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Hf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Xc(e,l)}}var Zu={readContext:at,use:Vu,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye},Lf={readContext:at,use:Vu,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:Sf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ku(4194308,4,jf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ku(4194308,4,e,t)},useInsertionEffect:function(e,t){ku(4,2,e,t)},useMemo:function(e,t){var l=dt();t=t===void 0?null:t;var a=e();if(Pl){ml(!0);try{e()}finally{ml(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=dt();if(l!==void 0){var u=l(t);if(Pl){ml(!0);try{l(t)}finally{ml(!1)}}}else u=t;return a.memoizedState=a.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},a.queue=e,e=e.dispatch=Sg.bind(null,re,e),[a.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:function(e){e=Is(e);var t=e.queue,l=Uf.bind(null,re,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:tr,useDeferredValue:function(e,t){var l=dt();return lr(l,e,t)},useTransition:function(){var e=Is(!1);return e=Of.bind(null,re,e.queue,!0,!1),dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=re,u=dt();if(be){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Me===null)throw Error(r(349));(ye&124)!==0||nf(a,t,l)}u.memoizedState=l;var i={value:l,getSnapshot:t};return u.queue=i,Sf(sf.bind(null,a,i,e),[e]),a.flags|=2048,Ma(9,Xu(),uf.bind(null,a,i,l,t),null),l},useId:function(){var e=dt(),t=Me.identifierPrefix;if(be){var l=It,a=Pt;l=(a&~(1<<32-vt(a)-1)).toString(32)+l,t="«"+t+"R"+l,l=Yu++,0<l&&(t+="H"+l.toString(32)),t+="»"}else l=gg++,t="«"+t+"r"+l.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:nr,useFormState:yf,useActionState:yf,useOptimistic:function(e){var t=dt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=ur.bind(null,re,!0,l),l.dispatch=t,[e,t]},useMemoCache:Fs,useCacheRefresh:function(){return dt().memoizedState=bg.bind(null,re)}},qf={readContext:at,use:Vu,useCallback:Tf,useContext:at,useEffect:wf,useImperativeHandle:Rf,useInsertionEffect:Nf,useLayoutEffect:Ef,useMemo:Af,useReducer:Gu,useRef:bf,useState:function(){return Gu(ll)},useDebugValue:tr,useDeferredValue:function(e,t){var l=Xe();return Df(l,Re.memoizedState,e,t)},useTransition:function(){var e=Gu(ll)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:Rn(e),t]},useSyncExternalStore:af,useId:zf,useHostTransitionStatus:nr,useFormState:pf,useActionState:pf,useOptimistic:function(e,t){var l=Xe();return of(l,Re,e,t)},useMemoCache:Fs,useCacheRefresh:_f},wg={readContext:at,use:Vu,useCallback:Tf,useContext:at,useEffect:wf,useImperativeHandle:Rf,useInsertionEffect:Nf,useLayoutEffect:Ef,useMemo:Af,useReducer:Ps,useRef:bf,useState:function(){return Ps(ll)},useDebugValue:tr,useDeferredValue:function(e,t){var l=Xe();return Re===null?lr(l,e,t):Df(l,Re.memoizedState,e,t)},useTransition:function(){var e=Ps(ll)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:Rn(e),t]},useSyncExternalStore:af,useId:zf,useHostTransitionStatus:nr,useFormState:xf,useActionState:xf,useOptimistic:function(e,t){var l=Xe();return Re!==null?of(l,Re,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Fs,useCacheRefresh:_f},za=null,Dn=0;function Ku(e){var t=Dn;return Dn+=1,za===null&&(za=[]),$o(za,e,t)}function On(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ju(e,t){throw t.$$typeof===E?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Yf(e){var t=e._init;return t(e._payload)}function Vf(e){function t(j,N){if(e){var T=j.deletions;T===null?(j.deletions=[N],j.flags|=16):T.push(N)}}function l(j,N){if(!e)return null;for(;N!==null;)t(j,N),N=N.sibling;return null}function a(j){for(var N=new Map;j!==null;)j.key!==null?N.set(j.key,j):N.set(j.index,j),j=j.sibling;return N}function u(j,N){return j=Wt(j,N),j.index=0,j.sibling=null,j}function i(j,N,T){return j.index=T,e?(T=j.alternate,T!==null?(T=T.index,T<N?(j.flags|=67108866,N):T):(j.flags|=67108866,N)):(j.flags|=1048576,N)}function h(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function y(j,N,T,L){return N===null||N.tag!==6?(N=Rs(T,j.mode,L),N.return=j,N):(N=u(N,T),N.return=j,N)}function b(j,N,T,L){var $=T.type;return $===M?H(j,N,T.props.children,L,T.key):N!==null&&(N.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===fe&&Yf($)===N.type)?(N=u(N,T.props),On(N,T),N.return=j,N):(N=Ou(T.type,T.key,T.props,null,j.mode,L),On(N,T),N.return=j,N)}function A(j,N,T,L){return N===null||N.tag!==4||N.stateNode.containerInfo!==T.containerInfo||N.stateNode.implementation!==T.implementation?(N=Ts(T,j.mode,L),N.return=j,N):(N=u(N,T.children||[]),N.return=j,N)}function H(j,N,T,L,$){return N===null||N.tag!==7?(N=kl(T,j.mode,L,$),N.return=j,N):(N=u(N,T),N.return=j,N)}function q(j,N,T){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Rs(""+N,j.mode,T),N.return=j,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case R:return T=Ou(N.type,N.key,N.props,null,j.mode,T),On(T,N),T.return=j,T;case U:return N=Ts(N,j.mode,T),N.return=j,N;case fe:var L=N._init;return N=L(N._payload),q(j,N,T)}if(qe(N)||xe(N))return N=kl(N,j.mode,T,null),N.return=j,N;if(typeof N.then=="function")return q(j,Ku(N),T);if(N.$$typeof===k)return q(j,_u(j,N),T);Ju(j,N)}return null}function O(j,N,T,L){var $=N!==null?N.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return $!==null?null:y(j,N,""+T,L);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case R:return T.key===$?b(j,N,T,L):null;case U:return T.key===$?A(j,N,T,L):null;case fe:return $=T._init,T=$(T._payload),O(j,N,T,L)}if(qe(T)||xe(T))return $!==null?null:H(j,N,T,L,null);if(typeof T.then=="function")return O(j,N,Ku(T),L);if(T.$$typeof===k)return O(j,N,_u(j,T),L);Ju(j,T)}return null}function C(j,N,T,L,$){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return j=j.get(T)||null,y(N,j,""+L,$);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case R:return j=j.get(L.key===null?T:L.key)||null,b(N,j,L,$);case U:return j=j.get(L.key===null?T:L.key)||null,A(N,j,L,$);case fe:var oe=L._init;return L=oe(L._payload),C(j,N,T,L,$)}if(qe(L)||xe(L))return j=j.get(T)||null,H(N,j,L,$,null);if(typeof L.then=="function")return C(j,N,T,Ku(L),$);if(L.$$typeof===k)return C(j,N,T,_u(N,L),$);Ju(N,L)}return null}function ae(j,N,T,L){for(var $=null,oe=null,W=N,le=N=0,We=null;W!==null&&le<T.length;le++){W.index>le?(We=W,W=null):We=W.sibling;var ve=O(j,W,T[le],L);if(ve===null){W===null&&(W=We);break}e&&W&&ve.alternate===null&&t(j,W),N=i(ve,N,le),oe===null?$=ve:oe.sibling=ve,oe=ve,W=We}if(le===T.length)return l(j,W),be&&Zl(j,le),$;if(W===null){for(;le<T.length;le++)W=q(j,T[le],L),W!==null&&(N=i(W,N,le),oe===null?$=W:oe.sibling=W,oe=W);return be&&Zl(j,le),$}for(W=a(W);le<T.length;le++)We=C(W,j,le,T[le],L),We!==null&&(e&&We.alternate!==null&&W.delete(We.key===null?le:We.key),N=i(We,N,le),oe===null?$=We:oe.sibling=We,oe=We);return e&&W.forEach(function(Hl){return t(j,Hl)}),be&&Zl(j,le),$}function te(j,N,T,L){if(T==null)throw Error(r(151));for(var $=null,oe=null,W=N,le=N=0,We=null,ve=T.next();W!==null&&!ve.done;le++,ve=T.next()){W.index>le?(We=W,W=null):We=W.sibling;var Hl=O(j,W,ve.value,L);if(Hl===null){W===null&&(W=We);break}e&&W&&Hl.alternate===null&&t(j,W),N=i(Hl,N,le),oe===null?$=Hl:oe.sibling=Hl,oe=Hl,W=We}if(ve.done)return l(j,W),be&&Zl(j,le),$;if(W===null){for(;!ve.done;le++,ve=T.next())ve=q(j,ve.value,L),ve!==null&&(N=i(ve,N,le),oe===null?$=ve:oe.sibling=ve,oe=ve);return be&&Zl(j,le),$}for(W=a(W);!ve.done;le++,ve=T.next())ve=C(W,j,le,ve.value,L),ve!==null&&(e&&ve.alternate!==null&&W.delete(ve.key===null?le:ve.key),N=i(ve,N,le),oe===null?$=ve:oe.sibling=ve,oe=ve);return e&&W.forEach(function(Ny){return t(j,Ny)}),be&&Zl(j,le),$}function Ae(j,N,T,L){if(typeof T=="object"&&T!==null&&T.type===M&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case R:e:{for(var $=T.key;N!==null;){if(N.key===$){if($=T.type,$===M){if(N.tag===7){l(j,N.sibling),L=u(N,T.props.children),L.return=j,j=L;break e}}else if(N.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===fe&&Yf($)===N.type){l(j,N.sibling),L=u(N,T.props),On(L,T),L.return=j,j=L;break e}l(j,N);break}else t(j,N);N=N.sibling}T.type===M?(L=kl(T.props.children,j.mode,L,T.key),L.return=j,j=L):(L=Ou(T.type,T.key,T.props,null,j.mode,L),On(L,T),L.return=j,j=L)}return h(j);case U:e:{for($=T.key;N!==null;){if(N.key===$)if(N.tag===4&&N.stateNode.containerInfo===T.containerInfo&&N.stateNode.implementation===T.implementation){l(j,N.sibling),L=u(N,T.children||[]),L.return=j,j=L;break e}else{l(j,N);break}else t(j,N);N=N.sibling}L=Ts(T,j.mode,L),L.return=j,j=L}return h(j);case fe:return $=T._init,T=$(T._payload),Ae(j,N,T,L)}if(qe(T))return ae(j,N,T,L);if(xe(T)){if($=xe(T),typeof $!="function")throw Error(r(150));return T=$.call(T),te(j,N,T,L)}if(typeof T.then=="function")return Ae(j,N,Ku(T),L);if(T.$$typeof===k)return Ae(j,N,_u(j,T),L);Ju(j,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,N!==null&&N.tag===6?(l(j,N.sibling),L=u(N,T),L.return=j,j=L):(l(j,N),L=Rs(T,j.mode,L),L.return=j,j=L),h(j)):l(j,N)}return function(j,N,T,L){try{Dn=0;var $=Ae(j,N,T,L);return za=null,$}catch(W){if(W===bn||W===Bu)throw W;var oe=bt(29,W,null,j.mode);return oe.lanes=L,oe.return=j,oe}finally{}}}var _a=Vf(!0),Gf=Vf(!1),Mt=Y(null),Xt=null;function wl(e){var t=e.alternate;Q(Qe,Qe.current&1),Q(Mt,e),Xt===null&&(t===null||Da.current!==null||t.memoizedState!==null)&&(Xt=e)}function Xf(e){if(e.tag===22){if(Q(Qe,Qe.current),Q(Mt,e),Xt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Xt=e)}}else Nl()}function Nl(){Q(Qe,Qe.current),Q(Mt,Mt.current)}function al(e){K(Mt),Xt===e&&(Xt=null),K(Qe)}var Qe=Y(0);function $u(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||$r(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ir(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:v({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var sr={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Et(),u=xl(a);u.payload=t,l!=null&&(u.callback=l),t=bl(e,u,a),t!==null&&(jt(t,e,a),wn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Et(),u=xl(a);u.tag=1,u.payload=t,l!=null&&(u.callback=l),t=bl(e,u,a),t!==null&&(jt(t,e,a),wn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Et(),a=xl(l);a.tag=2,t!=null&&(a.callback=t),t=bl(e,a,l),t!==null&&(jt(t,e,l),wn(t,e,l))}};function kf(e,t,l,a,u,i,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,h):t.prototype&&t.prototype.isPureReactComponent?!dn(l,a)||!dn(u,i):!0}function Qf(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&sr.enqueueReplaceState(t,t.state,null)}function Il(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=v({},l));for(var u in e)l[u]===void 0&&(l[u]=e[u])}return l}var Fu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Zf(e){Fu(e)}function Kf(e){console.error(e)}function Jf(e){Fu(e)}function Wu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function $f(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function rr(e,t,l){return l=xl(l),l.tag=3,l.payload={element:null},l.callback=function(){Wu(e,t)},l}function Ff(e){return e=xl(e),e.tag=3,e}function Wf(e,t,l,a){var u=l.type.getDerivedStateFromError;if(typeof u=="function"){var i=a.value;e.payload=function(){return u(i)},e.callback=function(){$f(t,l,a)}}var h=l.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){$f(t,l,a),typeof u!="function"&&(Dl===null?Dl=new Set([this]):Dl.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function Ng(e,t,l,a,u){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&pn(t,l,u,!0),l=Mt.current,l!==null){switch(l.tag){case 13:return Xt===null?Mr():l.alternate===null&&Le===0&&(Le=3),l.flags&=-257,l.flags|=65536,l.lanes=u,a===Hs?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),_r(e,a,u)),!1;case 22:return l.flags|=65536,a===Hs?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),_r(e,a,u)),!1}throw Error(r(435,l.tag))}return _r(e,a,u),Mr(),!1}if(be)return t=Mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==Os&&(e=Error(r(422),{cause:a}),yn(At(e,l)))):(a!==Os&&(t=Error(r(423),{cause:a}),yn(At(t,l))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,a=At(a,l),u=rr(e.stateNode,a,u),Ys(e,u),Le!==4&&(Le=2)),!1;var i=Error(r(520),{cause:a});if(i=At(i,l),Hn===null?Hn=[i]:Hn.push(i),Le!==4&&(Le=2),t===null)return!0;a=At(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=u&-u,l.lanes|=e,e=rr(l.stateNode,a,e),Ys(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Dl===null||!Dl.has(i))))return l.flags|=65536,u&=-u,l.lanes|=u,u=Ff(u),Wf(u,e,l,a),Ys(l,u),!1}l=l.return}while(l!==null);return!1}var Pf=Error(r(461)),$e=!1;function Pe(e,t,l,a){t.child=e===null?Gf(t,null,l,a):_a(t,e.child,l,a)}function If(e,t,l,a,u){l=l.render;var i=t.ref;if("ref"in a){var h={};for(var y in a)y!=="ref"&&(h[y]=a[y])}else h=a;return Fl(t),a=Qs(e,t,l,h,i,u),y=Zs(),e!==null&&!$e?(Ks(e,t,u),nl(e,t,u)):(be&&y&&As(t),t.flags|=1,Pe(e,t,a,u),t.child)}function ed(e,t,l,a,u){if(e===null){var i=l.type;return typeof i=="function"&&!js(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,td(e,t,i,a,u)):(e=Ou(l.type,null,a,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!yr(e,u)){var h=i.memoizedProps;if(l=l.compare,l=l!==null?l:dn,l(h,a)&&e.ref===t.ref)return nl(e,t,u)}return t.flags|=1,e=Wt(i,a),e.ref=t.ref,e.return=t,t.child=e}function td(e,t,l,a,u){if(e!==null){var i=e.memoizedProps;if(dn(i,a)&&e.ref===t.ref)if($e=!1,t.pendingProps=a=i,yr(e,u))(e.flags&131072)!==0&&($e=!0);else return t.lanes=e.lanes,nl(e,t,u)}return cr(e,t,l,a,u)}function ld(e,t,l){var a=t.pendingProps,u=a.children,i=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=i!==null?i.baseLanes|l:l,e!==null){for(u=t.child=e.child,i=0;u!==null;)i=i|u.lanes|u.childLanes,u=u.sibling;t.childLanes=i&~a}else t.childLanes=0,t.child=null;return ad(e,t,a,l)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Uu(t,i!==null?i.cachePool:null),i!==null?ef(t,i):Gs(),Xf(t);else return t.lanes=t.childLanes=536870912,ad(e,t,i!==null?i.baseLanes|l:l,l)}else i!==null?(Uu(t,i.cachePool),ef(t,i),Nl(),t.memoizedState=null):(e!==null&&Uu(t,null),Gs(),Nl());return Pe(e,t,u,l),t.child}function ad(e,t,l,a){var u=Bs();return u=u===null?null:{parent:ke._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&Uu(t,null),Gs(),Xf(t),e!==null&&pn(e,t,a,!0),null}function Pu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function cr(e,t,l,a,u){return Fl(t),l=Qs(e,t,l,a,void 0,u),a=Zs(),e!==null&&!$e?(Ks(e,t,u),nl(e,t,u)):(be&&a&&As(t),t.flags|=1,Pe(e,t,l,u),t.child)}function nd(e,t,l,a,u,i){return Fl(t),t.updateQueue=null,l=lf(t,a,l,u),tf(e),a=Zs(),e!==null&&!$e?(Ks(e,t,i),nl(e,t,i)):(be&&a&&As(t),t.flags|=1,Pe(e,t,l,i),t.child)}function ud(e,t,l,a,u){if(Fl(t),t.stateNode===null){var i=Ea,h=l.contextType;typeof h=="object"&&h!==null&&(i=at(h)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=sr,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},Ls(t),h=l.contextType,i.context=typeof h=="object"&&h!==null?at(h):Ea,i.state=t.memoizedState,h=l.getDerivedStateFromProps,typeof h=="function"&&(ir(t,l,h,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(h=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),h!==i.state&&sr.enqueueReplaceState(i,i.state,null),En(t,a,i,u),Nn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var y=t.memoizedProps,b=Il(l,y);i.props=b;var A=i.context,H=l.contextType;h=Ea,typeof H=="object"&&H!==null&&(h=at(H));var q=l.getDerivedStateFromProps;H=typeof q=="function"||typeof i.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,H||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(y||A!==h)&&Qf(t,i,a,h),vl=!1;var O=t.memoizedState;i.state=O,En(t,a,i,u),Nn(),A=t.memoizedState,y||O!==A||vl?(typeof q=="function"&&(ir(t,l,q,a),A=t.memoizedState),(b=vl||kf(t,l,b,a,O,A,h))?(H||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=A),i.props=a,i.state=A,i.context=h,a=b):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,qs(e,t),h=t.memoizedProps,H=Il(l,h),i.props=H,q=t.pendingProps,O=i.context,A=l.contextType,b=Ea,typeof A=="object"&&A!==null&&(b=at(A)),y=l.getDerivedStateFromProps,(A=typeof y=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(h!==q||O!==b)&&Qf(t,i,a,b),vl=!1,O=t.memoizedState,i.state=O,En(t,a,i,u),Nn();var C=t.memoizedState;h!==q||O!==C||vl||e!==null&&e.dependencies!==null&&zu(e.dependencies)?(typeof y=="function"&&(ir(t,l,y,a),C=t.memoizedState),(H=vl||kf(t,l,H,a,O,C,b)||e!==null&&e.dependencies!==null&&zu(e.dependencies))?(A||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,C,b),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,C,b)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||h===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=C),i.props=a,i.state=C,i.context=b,a=H):(typeof i.componentDidUpdate!="function"||h===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,Pu(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=_a(t,e.child,null,u),t.child=_a(t,null,l,u)):Pe(e,t,l,u),t.memoizedState=i.state,e=t.child):e=nl(e,t,u),e}function id(e,t,l,a){return gn(),t.flags|=256,Pe(e,t,l,a),t.child}var or={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fr(e){return{baseLanes:e,cachePool:Zo()}}function dr(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=zt),e}function sd(e,t,l){var a=t.pendingProps,u=!1,i=(t.flags&128)!==0,h;if((h=i)||(h=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),h&&(u=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(be){if(u?wl(t):Nl(),be){var y=He,b;if(b=y){e:{for(b=y,y=Gt;b.nodeType!==8;){if(!y){y=null;break e}if(b=Ht(b.nextSibling),b===null){y=null;break e}}y=b}y!==null?(t.memoizedState={dehydrated:y,treeContext:Ql!==null?{id:Pt,overflow:It}:null,retryLane:536870912,hydrationErrors:null},b=bt(18,null,null,0),b.stateNode=y,b.return=t,t.child=b,rt=t,He=null,b=!0):b=!1}b||Jl(t)}if(y=t.memoizedState,y!==null&&(y=y.dehydrated,y!==null))return $r(y)?t.lanes=32:t.lanes=536870912,null;al(t)}return y=a.children,a=a.fallback,u?(Nl(),u=t.mode,y=Iu({mode:"hidden",children:y},u),a=kl(a,u,l,null),y.return=t,a.return=t,y.sibling=a,t.child=y,u=t.child,u.memoizedState=fr(l),u.childLanes=dr(e,h,l),t.memoizedState=or,a):(wl(t),hr(t,y))}if(b=e.memoizedState,b!==null&&(y=b.dehydrated,y!==null)){if(i)t.flags&256?(wl(t),t.flags&=-257,t=mr(e,t,l)):t.memoizedState!==null?(Nl(),t.child=e.child,t.flags|=128,t=null):(Nl(),u=a.fallback,y=t.mode,a=Iu({mode:"visible",children:a.children},y),u=kl(u,y,l,null),u.flags|=2,a.return=t,u.return=t,a.sibling=u,t.child=a,_a(t,e.child,null,l),a=t.child,a.memoizedState=fr(l),a.childLanes=dr(e,h,l),t.memoizedState=or,t=u);else if(wl(t),$r(y)){if(h=y.nextSibling&&y.nextSibling.dataset,h)var A=h.dgst;h=A,a=Error(r(419)),a.stack="",a.digest=h,yn({value:a,source:null,stack:null}),t=mr(e,t,l)}else if($e||pn(e,t,l,!1),h=(l&e.childLanes)!==0,$e||h){if(h=Me,h!==null&&(a=l&-l,a=(a&42)!==0?1:Fi(a),a=(a&(h.suspendedLanes|l))!==0?0:a,a!==0&&a!==b.retryLane))throw b.retryLane=a,Na(e,a),jt(h,e,a),Pf;y.data==="$?"||Mr(),t=mr(e,t,l)}else y.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,He=Ht(y.nextSibling),rt=t,be=!0,Kl=null,Gt=!1,e!==null&&(Ot[Ct++]=Pt,Ot[Ct++]=It,Ot[Ct++]=Ql,Pt=e.id,It=e.overflow,Ql=t),t=hr(t,a.children),t.flags|=4096);return t}return u?(Nl(),u=a.fallback,y=t.mode,b=e.child,A=b.sibling,a=Wt(b,{mode:"hidden",children:a.children}),a.subtreeFlags=b.subtreeFlags&65011712,A!==null?u=Wt(A,u):(u=kl(u,y,l,null),u.flags|=2),u.return=t,a.return=t,a.sibling=u,t.child=a,a=u,u=t.child,y=e.child.memoizedState,y===null?y=fr(l):(b=y.cachePool,b!==null?(A=ke._currentValue,b=b.parent!==A?{parent:A,pool:A}:b):b=Zo(),y={baseLanes:y.baseLanes|l,cachePool:b}),u.memoizedState=y,u.childLanes=dr(e,h,l),t.memoizedState=or,a):(wl(t),l=e.child,e=l.sibling,l=Wt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=l,t.memoizedState=null,l)}function hr(e,t){return t=Iu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Iu(e,t){return e=bt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function mr(e,t,l){return _a(t,e.child,null,l),e=hr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function rd(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Ms(e.return,t,l)}function gr(e,t,l,a,u){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:u}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=l,i.tailMode=u)}function cd(e,t,l){var a=t.pendingProps,u=a.revealOrder,i=a.tail;if(Pe(e,t,a.children,l),a=Qe.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rd(e,l,t);else if(e.tag===19)rd(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}switch(Q(Qe,a),u){case"forwards":for(l=t.child,u=null;l!==null;)e=l.alternate,e!==null&&$u(e)===null&&(u=l),l=l.sibling;l=u,l===null?(u=t.child,t.child=null):(u=l.sibling,l.sibling=null),gr(t,!1,u,l,i);break;case"backwards":for(l=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&$u(e)===null){t.child=u;break}e=u.sibling,u.sibling=l,l=u,u=e}gr(t,!0,l,null,i);break;case"together":gr(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function nl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Al|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(pn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Wt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Wt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function yr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&zu(e)))}function Eg(e,t,l){switch(t.tag){case 3:ue(t,t.stateNode.containerInfo),pl(t,ke,e.memoizedState.cache),gn();break;case 27:case 5:hl(t);break;case 4:ue(t,t.stateNode.containerInfo);break;case 10:pl(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(wl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?sd(e,t,l):(wl(t),e=nl(e,t,l),e!==null?e.sibling:null);wl(t);break;case 19:var u=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(pn(e,t,l,!1),a=(l&t.childLanes)!==0),u){if(a)return cd(e,t,l);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Q(Qe,Qe.current),a)break;return null;case 22:case 23:return t.lanes=0,ld(e,t,l);case 24:pl(t,ke,e.memoizedState.cache)}return nl(e,t,l)}function od(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)$e=!0;else{if(!yr(e,l)&&(t.flags&128)===0)return $e=!1,Eg(e,t,l);$e=(e.flags&131072)!==0}else $e=!1,be&&(t.flags&1048576)!==0&&qo(t,Mu,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,u=a._init;if(a=u(a._payload),t.type=a,typeof a=="function")js(a)?(e=Il(a,e),t.tag=1,t=ud(null,t,a,e,l)):(t.tag=0,t=cr(null,t,a,e,l));else{if(a!=null){if(u=a.$$typeof,u===I){t.tag=11,t=If(null,t,a,e,l);break e}else if(u===ce){t.tag=14,t=ed(null,t,a,e,l);break e}}throw t=Ke(a)||a,Error(r(306,t,""))}}return t;case 0:return cr(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,u=Il(a,t.pendingProps),ud(e,t,a,u,l);case 3:e:{if(ue(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var i=t.memoizedState;u=i.element,qs(e,t),En(t,a,null,l);var h=t.memoizedState;if(a=h.cache,pl(t,ke,a),a!==i.cache&&zs(t,[ke],l,!0),Nn(),a=h.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=id(e,t,a,l);break e}else if(a!==u){u=At(Error(r(424)),t),yn(u),t=id(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(He=Ht(e.firstChild),rt=t,be=!0,Kl=null,Gt=!0,l=Gf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(gn(),a===u){t=nl(e,t,l);break e}Pe(e,t,a,l)}t=t.child}return t;case 26:return Pu(e,t),e===null?(l=m0(t.type,null,t.pendingProps,null))?t.memoizedState=l:be||(l=t.type,e=t.pendingProps,a=hi(ne.current).createElement(l),a[lt]=t,a[ot]=e,et(a,l,e),Je(a),t.stateNode=a):t.memoizedState=m0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return hl(t),e===null&&be&&(a=t.stateNode=f0(t.type,t.pendingProps,ne.current),rt=t,Gt=!0,u=He,Ml(t.type)?(Fr=u,He=Ht(a.firstChild)):He=u),Pe(e,t,t.pendingProps.children,l),Pu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((u=a=He)&&(a=Pg(a,t.type,t.pendingProps,Gt),a!==null?(t.stateNode=a,rt=t,He=Ht(a.firstChild),Gt=!1,u=!0):u=!1),u||Jl(t)),hl(t),u=t.type,i=t.pendingProps,h=e!==null?e.memoizedProps:null,a=i.children,Zr(u,i)?a=null:h!==null&&Zr(u,h)&&(t.flags|=32),t.memoizedState!==null&&(u=Qs(e,t,yg,null,null,l),Zn._currentValue=u),Pu(e,t),Pe(e,t,a,l),t.child;case 6:return e===null&&be&&((e=l=He)&&(l=Ig(l,t.pendingProps,Gt),l!==null?(t.stateNode=l,rt=t,He=null,e=!0):e=!1),e||Jl(t)),null;case 13:return sd(e,t,l);case 4:return ue(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=_a(t,null,a,l):Pe(e,t,a,l),t.child;case 11:return If(e,t,t.type,t.pendingProps,l);case 7:return Pe(e,t,t.pendingProps,l),t.child;case 8:return Pe(e,t,t.pendingProps.children,l),t.child;case 12:return Pe(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,pl(t,t.type,a.value),Pe(e,t,a.children,l),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,Fl(t),u=at(u),a=a(u),t.flags|=1,Pe(e,t,a,l),t.child;case 14:return ed(e,t,t.type,t.pendingProps,l);case 15:return td(e,t,t.type,t.pendingProps,l);case 19:return cd(e,t,l);case 31:return a=t.pendingProps,l=t.mode,a={mode:a.mode,children:a.children},e===null?(l=Iu(a,l),l.ref=t.ref,t.child=l,l.return=t,t=l):(l=Wt(e.child,a),l.ref=t.ref,t.child=l,l.return=t,t=l),t;case 22:return ld(e,t,l);case 24:return Fl(t),a=at(ke),e===null?(u=Bs(),u===null&&(u=Me,i=_s(),u.pooledCache=i,i.refCount++,i!==null&&(u.pooledCacheLanes|=l),u=i),t.memoizedState={parent:a,cache:u},Ls(t),pl(t,ke,u)):((e.lanes&l)!==0&&(qs(e,t),En(t,null,null,l),Nn()),u=e.memoizedState,i=t.memoizedState,u.parent!==a?(u={parent:a,cache:a},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),pl(t,ke,a)):(a=i.cache,pl(t,ke,a),a!==u.cache&&zs(t,[ke],l,!0))),Pe(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function ul(e){e.flags|=4}function fd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!x0(t)){if(t=Mt.current,t!==null&&((ye&4194048)===ye?Xt!==null:(ye&62914560)!==ye&&(ye&536870912)===0||t!==Xt))throw Sn=Hs,Ko;e.flags|=8192}}function ei(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Vc():536870912,e.lanes|=t,La|=t)}function Cn(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var u=e.child;u!==null;)l|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)l|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function jg(e,t,l){var a=t.pendingProps;switch(Ds(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),tl(ke),je(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(mn(t)?ul(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Go())),Ue(t),null;case 26:return l=t.memoizedState,e===null?(ul(t),l!==null?(Ue(t),fd(t,l)):(Ue(t),t.flags&=-16777217)):l?l!==e.memoizedState?(ul(t),Ue(t),fd(t,l)):(Ue(t),t.flags&=-16777217):(e.memoizedProps!==a&&ul(t),Ue(t),t.flags&=-16777217),null;case 27:Yt(t),l=ne.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ul(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Ue(t),null}e=P.current,mn(t)?Yo(t):(e=f0(u,a,l),t.stateNode=e,ul(t))}return Ue(t),null;case 5:if(Yt(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ul(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Ue(t),null}if(e=P.current,mn(t))Yo(t);else{switch(u=hi(ne.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?u.createElement("select",{is:a.is}):u.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?u.createElement(l,{is:a.is}):u.createElement(l)}}e[lt]=t,e[ot]=a;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)e.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=e;e:switch(et(e,l,a),l){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ul(t)}}return Ue(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ul(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ne.current,mn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,u=rt,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}e[lt]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||n0(e.nodeValue,l)),e||Jl(t)}else e=hi(e).createTextNode(a),e[lt]=t,t.stateNode=e}return Ue(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=mn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!u)throw Error(r(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[lt]=t}else gn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),u=!1}else u=Go(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(al(t),t):(al(t),null)}if(al(t),(t.flags&128)!==0)return t.lanes=l,t;if(l=a!==null,e=e!==null&&e.memoizedState!==null,l){a=t.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool);var i=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==u&&(a.flags|=2048)}return l!==e&&l&&(t.child.flags|=8192),ei(t,t.updateQueue),Ue(t),null;case 4:return je(),e===null&&Vr(t.stateNode.containerInfo),Ue(t),null;case 10:return tl(t.type),Ue(t),null;case 19:if(K(Qe),u=t.memoizedState,u===null)return Ue(t),null;if(a=(t.flags&128)!==0,i=u.rendering,i===null)if(a)Cn(u,!1);else{if(Le!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=$u(e),i!==null){for(t.flags|=128,Cn(u,!1),e=i.updateQueue,t.updateQueue=e,ei(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Lo(l,e),l=l.sibling;return Q(Qe,Qe.current&1|2),t.child}e=e.sibling}u.tail!==null&&Vt()>ai&&(t.flags|=128,a=!0,Cn(u,!1),t.lanes=4194304)}else{if(!a)if(e=$u(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ei(t,e),Cn(u,!0),u.tail===null&&u.tailMode==="hidden"&&!i.alternate&&!be)return Ue(t),null}else 2*Vt()-u.renderingStartTime>ai&&l!==536870912&&(t.flags|=128,a=!0,Cn(u,!1),t.lanes=4194304);u.isBackwards?(i.sibling=t.child,t.child=i):(e=u.last,e!==null?e.sibling=i:t.child=i,u.last=i)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Vt(),t.sibling=null,e=Qe.current,Q(Qe,a?e&1|2:e&1),t):(Ue(t),null);case 22:case 23:return al(t),Xs(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),l=t.updateQueue,l!==null&&ei(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&K(Wl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),tl(ke),Ue(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Rg(e,t){switch(Ds(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return tl(ke),je(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Yt(t),null;case 13:if(al(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));gn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(Qe),null;case 4:return je(),null;case 10:return tl(t.type),null;case 22:case 23:return al(t),Xs(),e!==null&&K(Wl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return tl(ke),null;case 25:return null;default:return null}}function dd(e,t){switch(Ds(t),t.tag){case 3:tl(ke),je();break;case 26:case 27:case 5:Yt(t);break;case 4:je();break;case 13:al(t);break;case 19:K(Qe);break;case 10:tl(t.type);break;case 22:case 23:al(t),Xs(),e!==null&&K(Wl);break;case 24:tl(ke)}}function Mn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var u=a.next;l=u;do{if((l.tag&e)===e){a=void 0;var i=l.create,h=l.inst;a=i(),h.destroy=a}l=l.next}while(l!==u)}}catch(y){De(t,t.return,y)}}function El(e,t,l){try{var a=t.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var i=u.next;a=i;do{if((a.tag&e)===e){var h=a.inst,y=h.destroy;if(y!==void 0){h.destroy=void 0,u=t;var b=l,A=y;try{A()}catch(H){De(u,b,H)}}}a=a.next}while(a!==i)}}catch(H){De(t,t.return,H)}}function hd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Io(t,l)}catch(a){De(e,e.return,a)}}}function md(e,t,l){l.props=Il(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){De(e,t,a)}}function zn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(u){De(e,t,u)}}function kt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(u){De(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(u){De(e,t,u)}else l.current=null}function gd(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(u){De(e,e.return,u)}}function pr(e,t,l){try{var a=e.stateNode;Kg(a,e.type,l,t),a[ot]=t}catch(u){De(e,e.return,u)}}function yd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ml(e.type)||e.tag===4}function vr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ml(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xr(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=di));else if(a!==4&&(a===27&&Ml(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(xr(e,t,l),e=e.sibling;e!==null;)xr(e,t,l),e=e.sibling}function ti(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Ml(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(ti(e,t,l),e=e.sibling;e!==null;)ti(e,t,l),e=e.sibling}function pd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);et(t,a,l),t[lt]=e,t[ot]=l}catch(i){De(e,e.return,i)}}var il=!1,Ve=!1,br=!1,vd=typeof WeakSet=="function"?WeakSet:Set,Fe=null;function Tg(e,t){if(e=e.containerInfo,kr=xi,e=Ao(e),vs(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var u=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch(te){l=null;break e}var h=0,y=-1,b=-1,A=0,H=0,q=e,O=null;t:for(;;){for(var C;q!==l||u!==0&&q.nodeType!==3||(y=h+u),q!==i||a!==0&&q.nodeType!==3||(b=h+a),q.nodeType===3&&(h+=q.nodeValue.length),(C=q.firstChild)!==null;)O=q,q=C;for(;;){if(q===e)break t;if(O===l&&++A===u&&(y=h),O===i&&++H===a&&(b=h),(C=q.nextSibling)!==null)break;q=O,O=q.parentNode}q=C}l=y===-1||b===-1?null:{start:y,end:b}}else l=null}l=l||{start:0,end:0}}else l=null;for(Qr={focusedElem:e,selectionRange:l},xi=!1,Fe=t;Fe!==null;)if(t=Fe,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Fe=e;else for(;Fe!==null;){switch(t=Fe,i=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,u=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var ae=Il(l.type,u,l.elementType===l.type);e=a.getSnapshotBeforeUpdate(ae,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(te){De(l,l.return,te)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Jr(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Jr(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Fe=e;break}Fe=t.return}}function xd(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:jl(e,l),a&4&&Mn(5,l);break;case 1:if(jl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(h){De(l,l.return,h)}else{var u=Il(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){De(l,l.return,h)}}a&64&&hd(l),a&512&&zn(l,l.return);break;case 3:if(jl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Io(e,t)}catch(h){De(l,l.return,h)}}break;case 27:t===null&&a&4&&pd(l);case 26:case 5:jl(e,l),t===null&&a&4&&gd(l),a&512&&zn(l,l.return);break;case 12:jl(e,l);break;case 13:jl(e,l),a&4&&wd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Bg.bind(null,l),ey(e,l))));break;case 22:if(a=l.memoizedState!==null||il,!a){t=t!==null&&t.memoizedState!==null||Ve,u=il;var i=Ve;il=a,(Ve=t)&&!i?Rl(e,l,(l.subtreeFlags&8772)!==0):jl(e,l),il=u,Ve=i}break;case 30:break;default:jl(e,l)}}function bd(e){var t=e.alternate;t!==null&&(e.alternate=null,bd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ii(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var _e=null,ht=!1;function sl(e,t,l){for(l=l.child;l!==null;)Sd(e,t,l),l=l.sibling}function Sd(e,t,l){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(Ia,l)}catch(i){}switch(l.tag){case 26:Ve||kt(l,t),sl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ve||kt(l,t);var a=_e,u=ht;Ml(l.type)&&(_e=l.stateNode,ht=!1),sl(e,t,l),Gn(l.stateNode),_e=a,ht=u;break;case 5:Ve||kt(l,t);case 6:if(a=_e,u=ht,_e=null,sl(e,t,l),_e=a,ht=u,_e!==null)if(ht)try{(_e.nodeType===9?_e.body:_e.nodeName==="HTML"?_e.ownerDocument.body:_e).removeChild(l.stateNode)}catch(i){De(l,t,i)}else try{_e.removeChild(l.stateNode)}catch(i){De(l,t,i)}break;case 18:_e!==null&&(ht?(e=_e,c0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Fn(e)):c0(_e,l.stateNode));break;case 4:a=_e,u=ht,_e=l.stateNode.containerInfo,ht=!0,sl(e,t,l),_e=a,ht=u;break;case 0:case 11:case 14:case 15:Ve||El(2,l,t),Ve||El(4,l,t),sl(e,t,l);break;case 1:Ve||(kt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&md(l,t,a)),sl(e,t,l);break;case 21:sl(e,t,l);break;case 22:Ve=(a=Ve)||l.memoizedState!==null,sl(e,t,l),Ve=a;break;default:sl(e,t,l)}}function wd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Fn(e)}catch(l){De(t,t.return,l)}}function Ag(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new vd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new vd),t;default:throw Error(r(435,e.tag))}}function Sr(e,t){var l=Ag(e);t.forEach(function(a){var u=Hg.bind(null,e,a);l.has(a)||(l.add(a),a.then(u,u))})}function St(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var u=l[a],i=e,h=t,y=h;e:for(;y!==null;){switch(y.tag){case 27:if(Ml(y.type)){_e=y.stateNode,ht=!1;break e}break;case 5:_e=y.stateNode,ht=!1;break e;case 3:case 4:_e=y.stateNode.containerInfo,ht=!0;break e}y=y.return}if(_e===null)throw Error(r(160));Sd(i,h,u),_e=null,ht=!1,i=u.alternate,i!==null&&(i.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Nd(t,e),t=t.sibling}var Bt=null;function Nd(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:St(t,e),wt(e),a&4&&(El(3,e,e.return),Mn(3,e),El(5,e,e.return));break;case 1:St(t,e),wt(e),a&512&&(Ve||l===null||kt(l,l.return)),a&64&&il&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var u=Bt;if(St(t,e),wt(e),a&512&&(Ve||l===null||kt(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,u=u.ownerDocument||u;t:switch(a){case"title":i=u.getElementsByTagName("title")[0],(!i||i[ln]||i[lt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=u.createElement(a),u.head.insertBefore(i,u.querySelector("head > title"))),et(i,a,l),i[lt]=e,Je(i),a=i;break e;case"link":var h=p0("link","href",u).get(a+(l.href||""));if(h){for(var y=0;y<h.length;y++)if(i=h[y],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){h.splice(y,1);break t}}i=u.createElement(a),et(i,a,l),u.head.appendChild(i);break;case"meta":if(h=p0("meta","content",u).get(a+(l.content||""))){for(y=0;y<h.length;y++)if(i=h[y],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){h.splice(y,1);break t}}i=u.createElement(a),et(i,a,l),u.head.appendChild(i);break;default:throw Error(r(468,a))}i[lt]=e,Je(i),a=i}e.stateNode=a}else v0(u,e.type,e.stateNode);else e.stateNode=y0(u,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?v0(u,e.type,e.stateNode):y0(u,a,e.memoizedProps)):a===null&&e.stateNode!==null&&pr(e,e.memoizedProps,l.memoizedProps)}break;case 27:St(t,e),wt(e),a&512&&(Ve||l===null||kt(l,l.return)),l!==null&&a&4&&pr(e,e.memoizedProps,l.memoizedProps);break;case 5:if(St(t,e),wt(e),a&512&&(Ve||l===null||kt(l,l.return)),e.flags&32){u=e.stateNode;try{ya(u,"")}catch(C){De(e,e.return,C)}}a&4&&e.stateNode!=null&&(u=e.memoizedProps,pr(e,u,l!==null?l.memoizedProps:u)),a&1024&&(br=!0);break;case 6:if(St(t,e),wt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(C){De(e,e.return,C)}}break;case 3:if(yi=null,u=Bt,Bt=mi(t.containerInfo),St(t,e),Bt=u,wt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Fn(t.containerInfo)}catch(C){De(e,e.return,C)}br&&(br=!1,Ed(e));break;case 4:a=Bt,Bt=mi(e.stateNode.containerInfo),St(t,e),wt(e),Bt=a;break;case 12:St(t,e),wt(e);break;case 13:St(t,e),wt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Tr=Vt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Sr(e,a)));break;case 22:u=e.memoizedState!==null;var b=l!==null&&l.memoizedState!==null,A=il,H=Ve;if(il=A||u,Ve=H||b,St(t,e),Ve=H,il=A,wt(e),a&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(l===null||b||il||Ve||ea(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){b=l=t;try{if(i=b.stateNode,u)h=i.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{y=b.stateNode;var q=b.memoizedProps.style,O=q!=null&&q.hasOwnProperty("display")?q.display:null;y.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(C){De(b,b.return,C)}}}else if(t.tag===6){if(l===null){b=t;try{b.stateNode.nodeValue=u?"":b.memoizedProps}catch(C){De(b,b.return,C)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Sr(e,l))));break;case 19:St(t,e),wt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Sr(e,a)));break;case 30:break;case 21:break;default:St(t,e),wt(e)}}function wt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(yd(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var u=l.stateNode,i=vr(e);ti(e,i,u);break;case 5:var h=l.stateNode;l.flags&32&&(ya(h,""),l.flags&=-33);var y=vr(e);ti(e,y,h);break;case 3:case 4:var b=l.stateNode.containerInfo,A=vr(e);xr(e,A,b);break;default:throw Error(r(161))}}catch(H){De(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ed(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ed(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function jl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)xd(e,t.alternate,t),t=t.sibling}function ea(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:El(4,t,t.return),ea(t);break;case 1:kt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&md(t,t.return,l),ea(t);break;case 27:Gn(t.stateNode);case 26:case 5:kt(t,t.return),ea(t);break;case 22:t.memoizedState===null&&ea(t);break;case 30:ea(t);break;default:ea(t)}e=e.sibling}}function Rl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,u=e,i=t,h=i.flags;switch(i.tag){case 0:case 11:case 15:Rl(u,i,l),Mn(4,i);break;case 1:if(Rl(u,i,l),a=i,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(A){De(a,a.return,A)}if(a=i,u=a.updateQueue,u!==null){var y=a.stateNode;try{var b=u.shared.hiddenCallbacks;if(b!==null)for(u.shared.hiddenCallbacks=null,u=0;u<b.length;u++)Po(b[u],y)}catch(A){De(a,a.return,A)}}l&&h&64&&hd(i),zn(i,i.return);break;case 27:pd(i);case 26:case 5:Rl(u,i,l),l&&a===null&&h&4&&gd(i),zn(i,i.return);break;case 12:Rl(u,i,l);break;case 13:Rl(u,i,l),l&&h&4&&wd(u,i);break;case 22:i.memoizedState===null&&Rl(u,i,l),zn(i,i.return);break;case 30:break;default:Rl(u,i,l)}t=t.sibling}}function wr(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&vn(l))}function Nr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&vn(e))}function Qt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jd(e,t,l,a),t=t.sibling}function jd(e,t,l,a){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Qt(e,t,l,a),u&2048&&Mn(9,t);break;case 1:Qt(e,t,l,a);break;case 3:Qt(e,t,l,a),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&vn(e)));break;case 12:if(u&2048){Qt(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,h=i.id,y=i.onPostCommit;typeof y=="function"&&y(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){De(t,t.return,b)}}else Qt(e,t,l,a);break;case 13:Qt(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,h=t.alternate,t.memoizedState!==null?i._visibility&2?Qt(e,t,l,a):_n(e,t):i._visibility&2?Qt(e,t,l,a):(i._visibility|=2,Ua(e,t,l,a,(t.subtreeFlags&10256)!==0)),u&2048&&wr(h,t);break;case 24:Qt(e,t,l,a),u&2048&&Nr(t.alternate,t);break;default:Qt(e,t,l,a)}}function Ua(e,t,l,a,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var i=e,h=t,y=l,b=a,A=h.flags;switch(h.tag){case 0:case 11:case 15:Ua(i,h,y,b,u),Mn(8,h);break;case 23:break;case 22:var H=h.stateNode;h.memoizedState!==null?H._visibility&2?Ua(i,h,y,b,u):_n(i,h):(H._visibility|=2,Ua(i,h,y,b,u)),u&&A&2048&&wr(h.alternate,h);break;case 24:Ua(i,h,y,b,u),u&&A&2048&&Nr(h.alternate,h);break;default:Ua(i,h,y,b,u)}t=t.sibling}}function _n(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,u=a.flags;switch(a.tag){case 22:_n(l,a),u&2048&&wr(a.alternate,a);break;case 24:_n(l,a),u&2048&&Nr(a.alternate,a);break;default:_n(l,a)}t=t.sibling}}var Un=8192;function Ba(e){if(e.subtreeFlags&Un)for(e=e.child;e!==null;)Rd(e),e=e.sibling}function Rd(e){switch(e.tag){case 26:Ba(e),e.flags&Un&&e.memoizedState!==null&&hy(Bt,e.memoizedState,e.memoizedProps);break;case 5:Ba(e);break;case 3:case 4:var t=Bt;Bt=mi(e.stateNode.containerInfo),Ba(e),Bt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Un,Un=16777216,Ba(e),Un=t):Ba(e));break;default:Ba(e)}}function Td(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Bn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Fe=a,Dd(a,e)}Td(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ad(e),e=e.sibling}function Ad(e){switch(e.tag){case 0:case 11:case 15:Bn(e),e.flags&2048&&El(9,e,e.return);break;case 3:Bn(e);break;case 12:Bn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,li(e)):Bn(e);break;default:Bn(e)}}function li(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Fe=a,Dd(a,e)}Td(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:El(8,t,t.return),li(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,li(t));break;default:li(t)}e=e.sibling}}function Dd(e,t){for(;Fe!==null;){var l=Fe;switch(l.tag){case 0:case 11:case 15:El(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:vn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Fe=a;else e:for(l=e;Fe!==null;){a=Fe;var u=a.sibling,i=a.return;if(bd(a),a===l){Fe=null;break e}if(u!==null){u.return=i,Fe=u;break e}Fe=i}}}var Dg={getCacheForType:function(e){var t=at(ke),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l}},Og=typeof WeakMap=="function"?WeakMap:Map,Ne=0,Me=null,de=null,ye=0,Ee=0,Nt=null,Tl=!1,Ha=!1,Er=!1,rl=0,Le=0,Al=0,ta=0,jr=0,zt=0,La=0,Hn=null,mt=null,Rr=!1,Tr=0,ai=1/0,ni=null,Dl=null,Ie=0,Ol=null,qa=null,Ya=0,Ar=0,Dr=null,Od=null,Ln=0,Or=null;function Et(){if((Ne&2)!==0&&ye!==0)return ye&-ye;if(B.T!==null){var e=Ta;return e!==0?e:Hr()}return kc()}function Cd(){zt===0&&(zt=(ye&536870912)===0||be?Yc():536870912);var e=Mt.current;return e!==null&&(e.flags|=32),zt}function jt(e,t,l){(e===Me&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(Va(e,0),Cl(e,ye,zt,!1)),tn(e,l),((Ne&2)===0||e!==Me)&&(e===Me&&((Ne&2)===0&&(ta|=l),Le===4&&Cl(e,ye,zt,!1)),Zt(e))}function Md(e,t,l){if((Ne&6)!==0)throw Error(r(327));var a=!l&&(t&124)===0&&(t&e.expiredLanes)===0||en(e,t),u=a?zg(e,t):zr(e,t,!0),i=a;do{if(u===0){Ha&&!a&&Cl(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!Cg(l)){u=zr(e,t,!1),i=!1;continue}if(u===2){if(i=t,e.errorRecoveryDisabledLanes&i)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var y=e;u=Hn;var b=y.current.memoizedState.isDehydrated;if(b&&(Va(y,h).flags|=256),h=zr(y,h,!1),h!==2){if(Er&&!b){y.errorRecoveryDisabledLanes|=i,ta|=i,u=4;break e}i=mt,mt=u,i!==null&&(mt===null?mt=i:mt.push.apply(mt,i))}u=h}if(i=!1,u!==2)continue}}if(u===1){Va(e,0),Cl(e,t,0,!0);break}e:{switch(a=e,i=u,i){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Cl(a,t,zt,!Tl);break e;case 2:mt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(u=Tr+300-Vt(),10<u)){if(Cl(a,t,zt,!Tl),gu(a,0,!0)!==0)break e;a.timeoutHandle=s0(zd.bind(null,a,l,mt,ni,Rr,t,zt,ta,La,Tl,i,2,-0,0),u);break e}zd(a,l,mt,ni,Rr,t,zt,ta,La,Tl,i,0,-0,0)}}break}while(!0);Zt(e)}function zd(e,t,l,a,u,i,h,y,b,A,H,q,O,C){if(e.timeoutHandle=-1,q=t.subtreeFlags,(q&8192||(q&16785408)===16785408)&&(Qn={stylesheets:null,count:0,unsuspend:dy},Rd(t),q=my(),q!==null)){e.cancelPendingCommit=q(Yd.bind(null,e,t,i,l,a,u,h,y,b,H,1,O,C)),Cl(e,i,h,!A);return}Yd(e,t,i,l,a,u,h,y,b)}function Cg(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var u=l[a],i=u.getSnapshot;u=u.value;try{if(!xt(i(),u))return!1}catch(h){return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Cl(e,t,l,a){t&=~jr,t&=~ta,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var u=t;0<u;){var i=31-vt(u),h=1<<i;a[i]=-1,u&=~h}l!==0&&Gc(e,l,t)}function ui(){return(Ne&6)===0?(qn(0),!1):!0}function Cr(){if(de!==null){if(Ee===0)var e=de.return;else e=de,el=$l=null,Js(e),za=null,Dn=0,e=de;for(;e!==null;)dd(e.alternate,e),e=e.return;de=null}}function Va(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,$g(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Cr(),Me=e,de=l=Wt(e.current,null),ye=t,Ee=0,Nt=null,Tl=!1,Ha=en(e,t),Er=!1,La=zt=jr=ta=Al=Le=0,mt=Hn=null,Rr=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var u=31-vt(a),i=1<<u;t|=e[u],a&=~i}return rl=t,Tu(),l}function _d(e,t){re=null,B.H=Zu,t===bn||t===Bu?(t=Fo(),Ee=3):t===Ko?(t=Fo(),Ee=4):Ee=t===Pf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Nt=t,de===null&&(Le=1,Wu(e,At(t,e.current)))}function Ud(){var e=B.H;return B.H=Zu,e===null?Zu:e}function Bd(){var e=B.A;return B.A=Dg,e}function Mr(){Le=4,Tl||(ye&4194048)!==ye&&Mt.current!==null||(Ha=!0),(Al&134217727)===0&&(ta&134217727)===0||Me===null||Cl(Me,ye,zt,!1)}function zr(e,t,l){var a=Ne;Ne|=2;var u=Ud(),i=Bd();(Me!==e||ye!==t)&&(ni=null,Va(e,t)),t=!1;var h=Le;e:do try{if(Ee!==0&&de!==null){var y=de,b=Nt;switch(Ee){case 8:Cr(),h=6;break e;case 3:case 2:case 9:case 6:Mt.current===null&&(t=!0);var A=Ee;if(Ee=0,Nt=null,Ga(e,y,b,A),l&&Ha){h=0;break e}break;default:A=Ee,Ee=0,Nt=null,Ga(e,y,b,A)}}Mg(),h=Le;break}catch(H){_d(e,H)}while(!0);return t&&e.shellSuspendCounter++,el=$l=null,Ne=a,B.H=u,B.A=i,de===null&&(Me=null,ye=0,Tu()),h}function Mg(){for(;de!==null;)Hd(de)}function zg(e,t){var l=Ne;Ne|=2;var a=Ud(),u=Bd();Me!==e||ye!==t?(ni=null,ai=Vt()+500,Va(e,t)):Ha=en(e,t);e:do try{if(Ee!==0&&de!==null){t=de;var i=Nt;t:switch(Ee){case 1:Ee=0,Nt=null,Ga(e,t,i,1);break;case 2:case 9:if(Jo(i)){Ee=0,Nt=null,Ld(t);break}t=function(){Ee!==2&&Ee!==9||Me!==e||(Ee=7),Zt(e)},i.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:Jo(i)?(Ee=0,Nt=null,Ld(t)):(Ee=0,Nt=null,Ga(e,t,i,7));break;case 5:var h=null;switch(de.tag){case 26:h=de.memoizedState;case 5:case 27:var y=de;if(!h||x0(h)){Ee=0,Nt=null;var b=y.sibling;if(b!==null)de=b;else{var A=y.return;A!==null?(de=A,ii(A)):de=null}break t}}Ee=0,Nt=null,Ga(e,t,i,5);break;case 6:Ee=0,Nt=null,Ga(e,t,i,6);break;case 8:Cr(),Le=6;break e;default:throw Error(r(462))}}_g();break}catch(H){_d(e,H)}while(!0);return el=$l=null,B.H=a,B.A=u,Ne=l,de!==null?0:(Me=null,ye=0,Tu(),Le)}function _g(){for(;de!==null&&!lm();)Hd(de)}function Hd(e){var t=od(e.alternate,e,rl);e.memoizedProps=e.pendingProps,t===null?ii(e):de=t}function Ld(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=nd(l,t,t.pendingProps,t.type,void 0,ye);break;case 11:t=nd(l,t,t.pendingProps,t.type.render,t.ref,ye);break;case 5:Js(t);default:dd(l,t),t=de=Lo(t,rl),t=od(l,t,rl)}e.memoizedProps=e.pendingProps,t===null?ii(e):de=t}function Ga(e,t,l,a){el=$l=null,Js(t),za=null,Dn=0;var u=t.return;try{if(Ng(e,u,t,l,ye)){Le=1,Wu(e,At(l,e.current)),de=null;return}}catch(i){if(u!==null)throw de=u,i;Le=1,Wu(e,At(l,e.current)),de=null;return}t.flags&32768?(be||a===1?e=!0:Ha||(ye&536870912)!==0?e=!1:(Tl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Mt.current,a!==null&&a.tag===13&&(a.flags|=16384))),qd(t,e)):ii(t)}function ii(e){var t=e;do{if((t.flags&32768)!==0){qd(t,Tl);return}e=t.return;var l=jg(t.alternate,t,rl);if(l!==null){de=l;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);Le===0&&(Le=5)}function qd(e,t){do{var l=Rg(e.alternate,e);if(l!==null){l.flags&=32767,de=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=l}while(e!==null);Le=6,de=null}function Yd(e,t,l,a,u,i,h,y,b){e.cancelPendingCommit=null;do si();while(Ie!==0);if((Ne&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,i|=Ns,dm(e,l,i,h,y,b),e===Me&&(de=Me=null,ye=0),qa=t,Ol=e,Ya=l,Ar=i,Dr=u,Od=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Lg(du,function(){return Qd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=B.T,B.T=null,u=Z.p,Z.p=2,h=Ne,Ne|=4;try{Tg(e,t,l)}finally{Ne=h,Z.p=u,B.T=a}}Ie=1,Vd(),Gd(),Xd()}}function Vd(){if(Ie===1){Ie=0;var e=Ol,t=qa,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=B.T,B.T=null;var a=Z.p;Z.p=2;var u=Ne;Ne|=4;try{Nd(t,e);var i=Qr,h=Ao(e.containerInfo),y=i.focusedElem,b=i.selectionRange;if(h!==y&&y&&y.ownerDocument&&To(y.ownerDocument.documentElement,y)){if(b!==null&&vs(y)){var A=b.start,H=b.end;if(H===void 0&&(H=A),"selectionStart"in y)y.selectionStart=A,y.selectionEnd=Math.min(H,y.value.length);else{var q=y.ownerDocument||document,O=q&&q.defaultView||window;if(O.getSelection){var C=O.getSelection(),ae=y.textContent.length,te=Math.min(b.start,ae),Ae=b.end===void 0?te:Math.min(b.end,ae);!C.extend&&te>Ae&&(h=Ae,Ae=te,te=h);var j=Ro(y,te),N=Ro(y,Ae);if(j&&N&&(C.rangeCount!==1||C.anchorNode!==j.node||C.anchorOffset!==j.offset||C.focusNode!==N.node||C.focusOffset!==N.offset)){var T=q.createRange();T.setStart(j.node,j.offset),C.removeAllRanges(),te>Ae?(C.addRange(T),C.extend(N.node,N.offset)):(T.setEnd(N.node,N.offset),C.addRange(T))}}}}for(q=[],C=y;C=C.parentNode;)C.nodeType===1&&q.push({element:C,left:C.scrollLeft,top:C.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<q.length;y++){var L=q[y];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}xi=!!kr,Qr=kr=null}finally{Ne=u,Z.p=a,B.T=l}}e.current=t,Ie=2}}function Gd(){if(Ie===2){Ie=0;var e=Ol,t=qa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=B.T,B.T=null;var a=Z.p;Z.p=2;var u=Ne;Ne|=4;try{xd(e,t.alternate,t)}finally{Ne=u,Z.p=a,B.T=l}}Ie=3}}function Xd(){if(Ie===4||Ie===3){Ie=0,am();var e=Ol,t=qa,l=Ya,a=Od;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ie=5:(Ie=0,qa=Ol=null,kd(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Dl=null),Wi(l),t=t.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(Ia,t,void 0,(t.current.flags&128)===128)}catch(b){}if(a!==null){t=B.T,u=Z.p,Z.p=2,B.T=null;try{for(var i=e.onRecoverableError,h=0;h<a.length;h++){var y=a[h];i(y.value,{componentStack:y.stack})}}finally{B.T=t,Z.p=u}}(Ya&3)!==0&&si(),Zt(e),u=e.pendingLanes,(l&4194090)!==0&&(u&42)!==0?e===Or?Ln++:(Ln=0,Or=e):Ln=0,qn(0)}}function kd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,vn(t)))}function si(e){return Vd(),Gd(),Xd(),Qd()}function Qd(){if(Ie!==5)return!1;var e=Ol,t=Ar;Ar=0;var l=Wi(Ya),a=B.T,u=Z.p;try{Z.p=32>l?32:l,B.T=null,l=Dr,Dr=null;var i=Ol,h=Ya;if(Ie=0,qa=Ol=null,Ya=0,(Ne&6)!==0)throw Error(r(331));var y=Ne;if(Ne|=4,Ad(i.current),jd(i,i.current,h,l),Ne=y,qn(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(Ia,i)}catch(b){}return!0}finally{Z.p=u,B.T=a,kd(e,t)}}function Zd(e,t,l){t=At(l,t),t=rr(e.stateNode,t,2),e=bl(e,t,2),e!==null&&(tn(e,2),Zt(e))}function De(e,t,l){if(e.tag===3)Zd(e,e,l);else for(;t!==null;){if(t.tag===3){Zd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Dl===null||!Dl.has(a))){e=At(l,e),l=Ff(2),a=bl(t,l,2),a!==null&&(Wf(l,a,t,e),tn(a,2),Zt(a));break}}t=t.return}}function _r(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Og;var u=new Set;a.set(t,u)}else u=a.get(t),u===void 0&&(u=new Set,a.set(t,u));u.has(l)||(Er=!0,u.add(l),e=Ug.bind(null,e,t,l),t.then(e,e))}function Ug(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Me===e&&(ye&l)===l&&(Le===4||Le===3&&(ye&62914560)===ye&&300>Vt()-Tr?(Ne&2)===0&&Va(e,0):jr|=l,La===ye&&(La=0)),Zt(e)}function Kd(e,t){t===0&&(t=Vc()),e=Na(e,t),e!==null&&(tn(e,t),Zt(e))}function Bg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Kd(e,l)}function Hg(e,t){var l=0;switch(e.tag){case 13:var a=e.stateNode,u=e.memoizedState;u!==null&&(l=u.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),Kd(e,l)}function Lg(e,t){return Ki(e,t)}var ri=null,Xa=null,Ur=!1,ci=!1,Br=!1,la=0;function Zt(e){e!==Xa&&e.next===null&&(Xa===null?ri=Xa=e:Xa=Xa.next=e),ci=!0,Ur||(Ur=!0,Yg())}function qn(e,t){if(!Br&&ci){Br=!0;do for(var l=!1,a=ri;a!==null;){if(e!==0){var u=a.pendingLanes;if(u===0)var i=0;else{var h=a.suspendedLanes,y=a.pingedLanes;i=(1<<31-vt(42|e)+1)-1,i&=u&~(h&~y),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Wd(a,i))}else i=ye,i=gu(a,a===Me?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||en(a,i)||(l=!0,Wd(a,i));a=a.next}while(l);Br=!1}}function qg(){Jd()}function Jd(){ci=Ur=!1;var e=0;la!==0&&(Jg()&&(e=la),la=0);for(var t=Vt(),l=null,a=ri;a!==null;){var u=a.next,i=$d(a,t);i===0?(a.next=null,l===null?ri=u:l.next=u,u===null&&(Xa=l)):(l=a,(e!==0||(i&3)!==0)&&(ci=!0)),a=u}qn(e)}function $d(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,u=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var h=31-vt(i),y=1<<h,b=u[h];b===-1?((y&l)===0||(y&a)!==0)&&(u[h]=fm(y,t)):b<=t&&(e.expiredLanes|=y),i&=~y}if(t=Me,l=ye,l=gu(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ji(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||en(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Ji(a),Wi(l)){case 2:case 8:l=Lc;break;case 32:l=du;break;case 268435456:l=qc;break;default:l=du}return a=Fd.bind(null,e),l=Ki(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Ji(a),e.callbackPriority=2,e.callbackNode=null,2}function Fd(e,t){if(Ie!==0&&Ie!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(si()&&e.callbackNode!==l)return null;var a=ye;return a=gu(e,e===Me?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Md(e,a,t),$d(e,Vt()),e.callbackNode!=null&&e.callbackNode===l?Fd.bind(null,e):null)}function Wd(e,t){if(si())return null;Md(e,t,!0)}function Yg(){Fg(function(){(Ne&6)!==0?Ki(Hc,qg):Jd()})}function Hr(){return la===0&&(la=Yc()),la}function Pd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:bu(""+e)}function Id(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Vg(e,t,l,a,u){if(t==="submit"&&l&&l.stateNode===u){var i=Pd((u[ot]||null).action),h=a.submitter;h&&(t=(t=h[ot]||null)?Pd(t.formAction):h.getAttribute("formAction"),t!==null&&(i=t,h=null));var y=new Eu("action","action",null,a,u);e.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(la!==0){var b=h?Id(u,h):new FormData(u);ar(l,{pending:!0,data:b,method:u.method,action:i},null,b)}}else typeof i=="function"&&(y.preventDefault(),b=h?Id(u,h):new FormData(u),ar(l,{pending:!0,data:b,method:u.method,action:i},i,b))},currentTarget:u}]})}}for(var Lr=0;Lr<ws.length;Lr++){var qr=ws[Lr],Gg=qr.toLowerCase(),Xg=qr[0].toUpperCase()+qr.slice(1);Ut(Gg,"on"+Xg)}Ut(Co,"onAnimationEnd"),Ut(Mo,"onAnimationIteration"),Ut(zo,"onAnimationStart"),Ut("dblclick","onDoubleClick"),Ut("focusin","onFocus"),Ut("focusout","onBlur"),Ut(ig,"onTransitionRun"),Ut(sg,"onTransitionStart"),Ut(rg,"onTransitionCancel"),Ut(_o,"onTransitionEnd"),ha("onMouseEnter",["mouseout","mouseover"]),ha("onMouseLeave",["mouseout","mouseover"]),ha("onPointerEnter",["pointerout","pointerover"]),ha("onPointerLeave",["pointerout","pointerover"]),Yl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yn="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(" "),kg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yn));function e0(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],u=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var h=a.length-1;0<=h;h--){var y=a[h],b=y.instance,A=y.currentTarget;if(y=y.listener,b!==i&&u.isPropagationStopped())break e;i=y,u.currentTarget=A;try{i(u)}catch(H){Fu(H)}u.currentTarget=null,i=b}else for(h=0;h<a.length;h++){if(y=a[h],b=y.instance,A=y.currentTarget,y=y.listener,b!==i&&u.isPropagationStopped())break e;i=y,u.currentTarget=A;try{i(u)}catch(H){Fu(H)}u.currentTarget=null,i=b}}}}function he(e,t){var l=t[Pi];l===void 0&&(l=t[Pi]=new Set);var a=e+"__bubble";l.has(a)||(t0(t,e,2,!1),l.add(a))}function Yr(e,t,l){var a=0;t&&(a|=4),t0(l,e,a,t)}var oi="_reactListening"+Math.random().toString(36).slice(2);function Vr(e){if(!e[oi]){e[oi]=!0,Zc.forEach(function(l){l!=="selectionchange"&&(kg.has(l)||Yr(l,!1,e),Yr(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[oi]||(t[oi]=!0,Yr("selectionchange",!1,t))}}function t0(e,t,l,a){switch(j0(t)){case 2:var u=py;break;case 8:u=vy;break;default:u=tc}l=u.bind(null,t,l,e),u=void 0,!cs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),a?u!==void 0?e.addEventListener(t,l,{capture:!0,passive:u}):e.addEventListener(t,l,!0):u!==void 0?e.addEventListener(t,l,{passive:u}):e.addEventListener(t,l,!1)}function Gr(e,t,l,a,u){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var h=a.tag;if(h===3||h===4){var y=a.stateNode.containerInfo;if(y===u)break;if(h===4)for(h=a.return;h!==null;){var b=h.tag;if((b===3||b===4)&&h.stateNode.containerInfo===u)return;h=h.return}for(;y!==null;){if(h=oa(y),h===null)return;if(b=h.tag,b===5||b===6||b===26||b===27){a=i=h;continue e}y=y.parentNode}}a=a.return}io(function(){var A=i,H=ss(l),q=[];e:{var O=Uo.get(e);if(O!==void 0){var C=Eu,ae=e;switch(e){case"keypress":if(wu(l)===0)break e;case"keydown":case"keyup":C=Lm;break;case"focusin":ae="focus",C=hs;break;case"focusout":ae="blur",C=hs;break;case"beforeblur":case"afterblur":C=hs;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":C=co;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":C=Rm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":C=Vm;break;case Co:case Mo:case zo:C=Dm;break;case _o:C=Xm;break;case"scroll":case"scrollend":C=Em;break;case"wheel":C=Qm;break;case"copy":case"cut":case"paste":C=Cm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":C=fo;break;case"toggle":case"beforetoggle":C=Km}var te=(t&4)!==0,Ae=!te&&(e==="scroll"||e==="scrollend"),j=te?O!==null?O+"Capture":null:O;te=[];for(var N=A,T;N!==null;){var L=N;if(T=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||T===null||j===null||(L=nn(N,j),L!=null&&te.push(Vn(N,L,T))),Ae)break;N=N.return}0<te.length&&(O=new C(O,ae,null,l,H),q.push({event:O,listeners:te}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",C=e==="mouseout"||e==="pointerout",O&&l!==is&&(ae=l.relatedTarget||l.fromElement)&&(oa(ae)||ae[ca]))break e;if((C||O)&&(O=H.window===H?H:(O=H.ownerDocument)?O.defaultView||O.parentWindow:window,C?(ae=l.relatedTarget||l.toElement,C=A,ae=ae?oa(ae):null,ae!==null&&(Ae=d(ae),te=ae.tag,ae!==Ae||te!==5&&te!==27&&te!==6)&&(ae=null)):(C=null,ae=A),C!==ae)){if(te=co,L="onMouseLeave",j="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(te=fo,L="onPointerLeave",j="onPointerEnter",N="pointer"),Ae=C==null?O:an(C),T=ae==null?O:an(ae),O=new te(L,N+"leave",C,l,H),O.target=Ae,O.relatedTarget=T,L=null,oa(H)===A&&(te=new te(j,N+"enter",ae,l,H),te.target=T,te.relatedTarget=Ae,L=te),Ae=L,C&&ae)t:{for(te=C,j=ae,N=0,T=te;T;T=ka(T))N++;for(T=0,L=j;L;L=ka(L))T++;for(;0<N-T;)te=ka(te),N--;for(;0<T-N;)j=ka(j),T--;for(;N--;){if(te===j||j!==null&&te===j.alternate)break t;te=ka(te),j=ka(j)}te=null}else te=null;C!==null&&l0(q,O,C,te,!1),ae!==null&&Ae!==null&&l0(q,Ae,ae,te,!0)}}e:{if(O=A?an(A):window,C=O.nodeName&&O.nodeName.toLowerCase(),C==="select"||C==="input"&&O.type==="file")var $=bo;else if(vo(O))if(So)$=ag;else{$=tg;var oe=eg}else C=O.nodeName,!C||C.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?A&&us(A.elementType)&&($=bo):$=lg;if($&&($=$(e,A))){xo(q,$,l,H);break e}oe&&oe(e,O,A),e==="focusout"&&A&&O.type==="number"&&A.memoizedProps.value!=null&&ns(O,"number",O.value)}switch(oe=A?an(A):window,e){case"focusin":(vo(oe)||oe.contentEditable==="true")&&(ba=oe,xs=A,hn=null);break;case"focusout":hn=xs=ba=null;break;case"mousedown":bs=!0;break;case"contextmenu":case"mouseup":case"dragend":bs=!1,Do(q,l,H);break;case"selectionchange":if(ug)break;case"keydown":case"keyup":Do(q,l,H)}var W;if(gs)e:{switch(e){case"compositionstart":var le="onCompositionStart";break e;case"compositionend":le="onCompositionEnd";break e;case"compositionupdate":le="onCompositionUpdate";break e}le=void 0}else xa?yo(e,l)&&(le="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(le="onCompositionStart");le&&(ho&&l.locale!=="ko"&&(xa||le!=="onCompositionStart"?le==="onCompositionEnd"&&xa&&(W=so()):(yl=H,os="value"in yl?yl.value:yl.textContent,xa=!0)),oe=fi(A,le),0<oe.length&&(le=new oo(le,e,null,l,H),q.push({event:le,listeners:oe}),W?le.data=W:(W=po(l),W!==null&&(le.data=W)))),(W=$m?Fm(e,l):Wm(e,l))&&(le=fi(A,"onBeforeInput"),0<le.length&&(oe=new oo("onBeforeInput","beforeinput",null,l,H),q.push({event:oe,listeners:le}),oe.data=W)),Vg(q,e,A,l,H)}e0(q,t)})}function Vn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function fi(e,t){for(var l=t+"Capture",a=[];e!==null;){var u=e,i=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||i===null||(u=nn(e,l),u!=null&&a.unshift(Vn(e,u,i)),u=nn(e,t),u!=null&&a.push(Vn(e,u,i))),e.tag===3)return a;e=e.return}return[]}function ka(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function l0(e,t,l,a,u){for(var i=t._reactName,h=[];l!==null&&l!==a;){var y=l,b=y.alternate,A=y.stateNode;if(y=y.tag,b!==null&&b===a)break;y!==5&&y!==26&&y!==27||A===null||(b=A,u?(A=nn(l,i),A!=null&&h.unshift(Vn(l,A,b))):u||(A=nn(l,i),A!=null&&h.push(Vn(l,A,b)))),l=l.return}h.length!==0&&e.push({event:t,listeners:h})}var Qg=/\r\n?/g,Zg=/\u0000|\uFFFD/g;function a0(e){return(typeof e=="string"?e:""+e).replace(Qg,`
49
- `).replace(Zg,"")}function n0(e,t){return t=a0(t),a0(e)===t}function di(){}function Te(e,t,l,a,u,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ya(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ya(e,""+a);break;case"className":pu(e,"class",a);break;case"tabIndex":pu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":pu(e,l,a);break;case"style":no(e,a,i);break;case"data":if(t!=="object"){pu(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=bu(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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 i=="function"&&(l==="formAction"?(t!=="input"&&Te(e,t,"name",u.name,u,null),Te(e,t,"formEncType",u.formEncType,u,null),Te(e,t,"formMethod",u.formMethod,u,null),Te(e,t,"formTarget",u.formTarget,u,null)):(Te(e,t,"encType",u.encType,u,null),Te(e,t,"method",u.method,u,null),Te(e,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=bu(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=di);break;case"onScroll":a!=null&&he("scroll",e);break;case"onScrollEnd":a!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=bu(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":he("beforetoggle",e),he("toggle",e),yu(e,"popover",a);break;case"xlinkActuate":$t(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":$t(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":$t(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":$t(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":$t(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":$t(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":$t(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":$t(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":$t(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":yu(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=wm.get(l)||l,yu(e,l,a))}}function Xr(e,t,l,a,u,i){switch(l){case"style":no(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ya(e,a):(typeof a=="number"||typeof a=="bigint")&&ya(e,""+a);break;case"onScroll":a!=null&&he("scroll",e);break;case"onScrollEnd":a!=null&&he("scrollend",e);break;case"onClick":a!=null&&(e.onclick=di);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Kc.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(u=l.endsWith("Capture"),t=l.slice(2,u?l.length-7:void 0),i=e[ot]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,u),typeof a=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,u);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):yu(e,l,a)}}}function et(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var a=!1,u=!1,i;for(i in l)if(l.hasOwnProperty(i)){var h=l[i];if(h!=null)switch(i){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Te(e,t,i,h,l,null)}}u&&Te(e,t,"srcSet",l.srcSet,l,null),a&&Te(e,t,"src",l.src,l,null);return;case"input":he("invalid",e);var y=i=h=u=null,b=null,A=null;for(a in l)if(l.hasOwnProperty(a)){var H=l[a];if(H!=null)switch(a){case"name":u=H;break;case"type":h=H;break;case"checked":b=H;break;case"defaultChecked":A=H;break;case"value":i=H;break;case"defaultValue":y=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,t));break;default:Te(e,t,a,H,l,null)}}eo(e,i,y,b,A,h,u,!1),vu(e);return;case"select":he("invalid",e),a=h=i=null;for(u in l)if(l.hasOwnProperty(u)&&(y=l[u],y!=null))switch(u){case"value":i=y;break;case"defaultValue":h=y;break;case"multiple":a=y;default:Te(e,t,u,y,l,null)}t=i,l=h,e.multiple=!!a,t!=null?ga(e,!!a,t,!1):l!=null&&ga(e,!!a,l,!0);return;case"textarea":he("invalid",e),i=u=a=null;for(h in l)if(l.hasOwnProperty(h)&&(y=l[h],y!=null))switch(h){case"value":a=y;break;case"defaultValue":u=y;break;case"children":i=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:Te(e,t,h,y,l,null)}lo(e,a,u,i),vu(e);return;case"option":for(b in l)if(l.hasOwnProperty(b)&&(a=l[b],a!=null))switch(b){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Te(e,t,b,a,l,null)}return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(a=0;a<Yn.length;a++)he(Yn[a],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in l)if(l.hasOwnProperty(A)&&(a=l[A],a!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Te(e,t,A,a,l,null)}return;default:if(us(t)){for(H in l)l.hasOwnProperty(H)&&(a=l[H],a!==void 0&&Xr(e,t,H,a,l,void 0));return}}for(y in l)l.hasOwnProperty(y)&&(a=l[y],a!=null&&Te(e,t,y,a,l,null))}function Kg(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,i=null,h=null,y=null,b=null,A=null,H=null;for(C in l){var q=l[C];if(l.hasOwnProperty(C)&&q!=null)switch(C){case"checked":break;case"value":break;case"defaultValue":b=q;default:a.hasOwnProperty(C)||Te(e,t,C,null,a,q)}}for(var O in a){var C=a[O];if(q=l[O],a.hasOwnProperty(O)&&(C!=null||q!=null))switch(O){case"type":i=C;break;case"name":u=C;break;case"checked":A=C;break;case"defaultChecked":H=C;break;case"value":h=C;break;case"defaultValue":y=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(137,t));break;default:C!==q&&Te(e,t,O,C,a,q)}}as(e,h,y,b,A,H,i,u);return;case"select":C=h=y=O=null;for(i in l)if(b=l[i],l.hasOwnProperty(i)&&b!=null)switch(i){case"value":break;case"multiple":C=b;default:a.hasOwnProperty(i)||Te(e,t,i,null,a,b)}for(u in a)if(i=a[u],b=l[u],a.hasOwnProperty(u)&&(i!=null||b!=null))switch(u){case"value":O=i;break;case"defaultValue":y=i;break;case"multiple":h=i;default:i!==b&&Te(e,t,u,i,a,b)}t=y,l=h,a=C,O!=null?ga(e,!!l,O,!1):!!a!=!!l&&(t!=null?ga(e,!!l,t,!0):ga(e,!!l,l?[]:"",!1));return;case"textarea":C=O=null;for(y in l)if(u=l[y],l.hasOwnProperty(y)&&u!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Te(e,t,y,null,a,u)}for(h in a)if(u=a[h],i=l[h],a.hasOwnProperty(h)&&(u!=null||i!=null))switch(h){case"value":O=u;break;case"defaultValue":C=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==i&&Te(e,t,h,u,a,i)}to(e,O,C);return;case"option":for(var ae in l)if(O=l[ae],l.hasOwnProperty(ae)&&O!=null&&!a.hasOwnProperty(ae))switch(ae){case"selected":e.selected=!1;break;default:Te(e,t,ae,null,a,O)}for(b in a)if(O=a[b],C=l[b],a.hasOwnProperty(b)&&O!==C&&(O!=null||C!=null))switch(b){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:Te(e,t,b,O,a,C)}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 te in l)O=l[te],l.hasOwnProperty(te)&&O!=null&&!a.hasOwnProperty(te)&&Te(e,t,te,null,a,O);for(A in a)if(O=a[A],C=l[A],a.hasOwnProperty(A)&&O!==C&&(O!=null||C!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,t));break;default:Te(e,t,A,O,a,C)}return;default:if(us(t)){for(var Ae in l)O=l[Ae],l.hasOwnProperty(Ae)&&O!==void 0&&!a.hasOwnProperty(Ae)&&Xr(e,t,Ae,void 0,a,O);for(H in a)O=a[H],C=l[H],!a.hasOwnProperty(H)||O===C||O===void 0&&C===void 0||Xr(e,t,H,O,a,C);return}}for(var j in l)O=l[j],l.hasOwnProperty(j)&&O!=null&&!a.hasOwnProperty(j)&&Te(e,t,j,null,a,O);for(q in a)O=a[q],C=l[q],!a.hasOwnProperty(q)||O===C||O==null&&C==null||Te(e,t,q,O,a,C)}var kr=null,Qr=null;function hi(e){return e.nodeType===9?e:e.ownerDocument}function u0(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function i0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Zr(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Kr=null;function Jg(){var e=window.event;return e&&e.type==="popstate"?e===Kr?!1:(Kr=e,!0):(Kr=null,!1)}var s0=typeof setTimeout=="function"?setTimeout:void 0,$g=typeof clearTimeout=="function"?clearTimeout:void 0,r0=typeof Promise=="function"?Promise:void 0,Fg=typeof queueMicrotask=="function"?queueMicrotask:typeof r0!="undefined"?function(e){return r0.resolve(null).then(e).catch(Wg)}:s0;function Wg(e){setTimeout(function(){throw e})}function Ml(e){return e==="head"}function c0(e,t){var l=t,a=0,u=0;do{var i=l.nextSibling;if(e.removeChild(l),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(0<a&&8>a){l=a;var h=e.ownerDocument;if(l&1&&Gn(h.documentElement),l&2&&Gn(h.body),l&4)for(l=h.head,Gn(l),h=l.firstChild;h;){var y=h.nextSibling,b=h.nodeName;h[ln]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&h.rel.toLowerCase()==="stylesheet"||l.removeChild(h),h=y}}if(u===0){e.removeChild(i),Fn(t);return}u--}else l==="$"||l==="$?"||l==="$!"?u++:a=l.charCodeAt(0)-48;else a=0;l=i}while(l);Fn(t)}function Jr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Jr(l),Ii(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Pg(e,t,l,a){for(;e.nodeType===1;){var u=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[ln])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Ht(e.nextSibling),e===null)break}return null}function Ig(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Ht(e.nextSibling),e===null))return null;return e}function $r(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function ey(e,t){var l=e.ownerDocument;if(e.data!=="$?"||l.readyState==="complete")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Ht(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Fr=null;function o0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(t===0)return e;t--}else l==="/$"&&t++}e=e.previousSibling}return null}function f0(e,t,l){switch(t=hi(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Gn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ii(e)}var _t=new Map,d0=new Set;function mi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var cl=Z.d;Z.d={f:ty,r:ly,D:ay,C:ny,L:uy,m:iy,X:ry,S:sy,M:cy};function ty(){var e=cl.f(),t=ui();return e||t}function ly(e){var t=fa(e);t!==null&&t.tag===5&&t.type==="form"?Mf(t):cl.r(e)}var Qa=typeof document=="undefined"?null:document;function h0(e,t,l){var a=Qa;if(a&&typeof t=="string"&&t){var u=Tt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof l=="string"&&(u+='[crossorigin="'+l+'"]'),d0.has(u)||(d0.add(u),e={rel:e,crossOrigin:l,href:t},a.querySelector(u)===null&&(t=a.createElement("link"),et(t,"link",e),Je(t),a.head.appendChild(t)))}}function ay(e){cl.D(e),h0("dns-prefetch",e,null)}function ny(e,t){cl.C(e,t),h0("preconnect",e,t)}function uy(e,t,l){cl.L(e,t,l);var a=Qa;if(a&&e&&t){var u='link[rel="preload"][as="'+Tt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(u+='[imagesrcset="'+Tt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(u+='[imagesizes="'+Tt(l.imageSizes)+'"]')):u+='[href="'+Tt(e)+'"]';var i=u;switch(t){case"style":i=Za(e);break;case"script":i=Ka(e)}_t.has(i)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),_t.set(i,e),a.querySelector(u)!==null||t==="style"&&a.querySelector(Xn(i))||t==="script"&&a.querySelector(kn(i))||(t=a.createElement("link"),et(t,"link",e),Je(t),a.head.appendChild(t)))}}function iy(e,t){cl.m(e,t);var l=Qa;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Tt(a)+'"][href="'+Tt(e)+'"]',i=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ka(e)}if(!_t.has(i)&&(e=v({rel:"modulepreload",href:e},t),_t.set(i,e),l.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(kn(i)))return}a=l.createElement("link"),et(a,"link",e),Je(a),l.head.appendChild(a)}}}function sy(e,t,l){cl.S(e,t,l);var a=Qa;if(a&&e){var u=da(a).hoistableStyles,i=Za(e);t=t||"default";var h=u.get(i);if(!h){var y={loading:0,preload:null};if(h=a.querySelector(Xn(i)))y.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=_t.get(i))&&Wr(e,l);var b=h=a.createElement("link");Je(b),et(b,"link",e),b._p=new Promise(function(A,H){b.onload=A,b.onerror=H}),b.addEventListener("load",function(){y.loading|=1}),b.addEventListener("error",function(){y.loading|=2}),y.loading|=4,gi(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:y},u.set(i,h)}}}function ry(e,t){cl.X(e,t);var l=Qa;if(l&&e){var a=da(l).hoistableScripts,u=Ka(e),i=a.get(u);i||(i=l.querySelector(kn(u)),i||(e=v({src:e,async:!0},t),(t=_t.get(u))&&Pr(e,t),i=l.createElement("script"),Je(i),et(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(u,i))}}function cy(e,t){cl.M(e,t);var l=Qa;if(l&&e){var a=da(l).hoistableScripts,u=Ka(e),i=a.get(u);i||(i=l.querySelector(kn(u)),i||(e=v({src:e,async:!0,type:"module"},t),(t=_t.get(u))&&Pr(e,t),i=l.createElement("script"),Je(i),et(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(u,i))}}function m0(e,t,l,a){var u=(u=ne.current)?mi(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Za(l.href),l=da(u).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Za(l.href);var i=da(u).hoistableStyles,h=i.get(e);if(h||(u=u.ownerDocument||u,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,h),(i=u.querySelector(Xn(e)))&&!i._p&&(h.instance=i,h.state.loading=5),_t.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},_t.set(e,l),i||oy(u,e,l,h.state))),t&&a===null)throw Error(r(528,""));return h}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ka(l),l=da(u).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Za(e){return'href="'+Tt(e)+'"'}function Xn(e){return'link[rel="stylesheet"]['+e+"]"}function g0(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function oy(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),et(t,"link",l),Je(t),e.head.appendChild(t))}function Ka(e){return'[src="'+Tt(e)+'"]'}function kn(e){return"script[async]"+e}function y0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Tt(l.href)+'"]');if(a)return t.instance=a,Je(a),a;var u=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Je(a),et(a,"style",u),gi(a,l.precedence,e),t.instance=a;case"stylesheet":u=Za(l.href);var i=e.querySelector(Xn(u));if(i)return t.state.loading|=4,t.instance=i,Je(i),i;a=g0(l),(u=_t.get(u))&&Wr(a,u),i=(e.ownerDocument||e).createElement("link"),Je(i);var h=i;return h._p=new Promise(function(y,b){h.onload=y,h.onerror=b}),et(i,"link",a),t.state.loading|=4,gi(i,l.precedence,e),t.instance=i;case"script":return i=Ka(l.src),(u=e.querySelector(kn(i)))?(t.instance=u,Je(u),u):(a=l,(u=_t.get(i))&&(a=v({},l),Pr(a,u)),e=e.ownerDocument||e,u=e.createElement("script"),Je(u),et(u,"link",a),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,gi(a,l.precedence,e));return t.instance}function gi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,i=u,h=0;h<a.length;h++){var y=a[h];if(y.dataset.precedence===t)i=y;else if(i!==u)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Wr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Pr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var yi=null;function p0(e,t,l){if(yi===null){var a=new Map,u=yi=new Map;u.set(l,a)}else u=yi,a=u.get(l),a||(a=new Map,u.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),u=0;u<l.length;u++){var i=l[u];if(!(i[ln]||i[lt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var h=i.getAttribute(t)||"";h=e+h;var y=a.get(h);y?y.push(i):a.set(h,[i])}}return a}function v0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function fy(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function x0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Qn=null;function dy(){}function hy(e,t,l){if(Qn===null)throw Error(r(475));var a=Qn;if(t.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var u=Za(l.href),i=e.querySelector(Xn(u));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=pi.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=i,Je(i);return}i=e.ownerDocument||e,l=g0(l),(u=_t.get(u))&&Wr(l,u),i=i.createElement("link"),Je(i);var h=i;h._p=new Promise(function(y,b){h.onload=y,h.onerror=b}),et(i,"link",l),t.instance=i}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(a.count++,t=pi.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function my(){if(Qn===null)throw Error(r(475));var e=Qn;return e.stylesheets&&e.count===0&&Ir(e,e.stylesheets),0<e.count?function(t){var l=setTimeout(function(){if(e.stylesheets&&Ir(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(l)}}:null}function pi(){if(this.count--,this.count===0){if(this.stylesheets)Ir(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var vi=null;function Ir(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vi=new Map,t.forEach(gy,e),vi=null,pi.call(e))}function gy(e,t){if(!(t.state.loading&4)){var l=vi.get(e);if(l)var a=l.get(null);else{l=new Map,vi.set(e,l);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<u.length;i++){var h=u[i];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(l.set(h.dataset.precedence,h),a=h)}a&&l.set(null,a)}u=t.instance,h=u.getAttribute("data-precedence"),i=l.get(h)||a,i===a&&l.set(null,u),l.set(h,u),this.count++,a=pi.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),i?i.parentNode.insertBefore(u,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Zn={$$typeof:k,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function yy(e,t,l,a,u,i,h,y){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$i(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$i(0),this.hiddenUpdates=$i(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=i,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function b0(e,t,l,a,u,i,h,y,b,A,H,q){return e=new yy(e,t,l,h,y,b,A,q),t=1,i===!0&&(t|=24),i=bt(3,null,null,t),e.current=i,i.stateNode=e,t=_s(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},Ls(i),e}function S0(e){return e?(e=Ea,e):Ea}function w0(e,t,l,a,u,i){u=S0(u),a.context===null?a.context=u:a.pendingContext=u,a=xl(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=bl(e,a,t),l!==null&&(jt(l,e,t),wn(l,e,t))}function N0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ec(e,t){N0(e,t),(e=e.alternate)&&N0(e,t)}function E0(e){if(e.tag===13){var t=Na(e,67108864);t!==null&&jt(t,e,67108864),ec(e,67108864)}}var xi=!0;function py(e,t,l,a){var u=B.T;B.T=null;var i=Z.p;try{Z.p=2,tc(e,t,l,a)}finally{Z.p=i,B.T=u}}function vy(e,t,l,a){var u=B.T;B.T=null;var i=Z.p;try{Z.p=8,tc(e,t,l,a)}finally{Z.p=i,B.T=u}}function tc(e,t,l,a){if(xi){var u=lc(a);if(u===null)Gr(e,t,a,bi,l),R0(e,a);else if(by(u,e,t,l,a))a.stopPropagation();else if(R0(e,a),t&4&&-1<xy.indexOf(e)){for(;u!==null;){var i=fa(u);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var h=ql(i.pendingLanes);if(h!==0){var y=i;for(y.pendingLanes|=2,y.entangledLanes|=2;h;){var b=1<<31-vt(h);y.entanglements[1]|=b,h&=~b}Zt(i),(Ne&6)===0&&(ai=Vt()+500,qn(0))}}break;case 13:y=Na(i,2),y!==null&&jt(y,i,2),ui(),ec(i,2)}if(i=lc(a),i===null&&Gr(e,t,a,bi,l),i===u)break;u=i}u!==null&&a.stopPropagation()}else Gr(e,t,a,null,l)}}function lc(e){return e=ss(e),ac(e)}var bi=null;function ac(e){if(bi=null,e=oa(e),e!==null){var t=d(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=g(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return bi=e,null}function j0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(nm()){case Hc:return 2;case Lc:return 8;case du:case um:return 32;case qc:return 268435456;default:return 32}default:return 32}}var nc=!1,zl=null,_l=null,Ul=null,Kn=new Map,Jn=new Map,Bl=[],xy="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function R0(e,t){switch(e){case"focusin":case"focusout":zl=null;break;case"dragenter":case"dragleave":_l=null;break;case"mouseover":case"mouseout":Ul=null;break;case"pointerover":case"pointerout":Kn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jn.delete(t.pointerId)}}function $n(e,t,l,a,u,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[u]},t!==null&&(t=fa(t),t!==null&&E0(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function by(e,t,l,a,u){switch(t){case"focusin":return zl=$n(zl,e,t,l,a,u),!0;case"dragenter":return _l=$n(_l,e,t,l,a,u),!0;case"mouseover":return Ul=$n(Ul,e,t,l,a,u),!0;case"pointerover":var i=u.pointerId;return Kn.set(i,$n(Kn.get(i)||null,e,t,l,a,u)),!0;case"gotpointercapture":return i=u.pointerId,Jn.set(i,$n(Jn.get(i)||null,e,t,l,a,u)),!0}return!1}function T0(e){var t=oa(e.target);if(t!==null){var l=d(t);if(l!==null){if(t=l.tag,t===13){if(t=g(l),t!==null){e.blockedOn=t,hm(e.priority,function(){if(l.tag===13){var a=Et();a=Fi(a);var u=Na(l,a);u!==null&&jt(u,l,a),ec(l,a)}});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Si(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=lc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);is=a,l.target.dispatchEvent(a),is=null}else return t=fa(l),t!==null&&E0(t),e.blockedOn=l,!1;t.shift()}return!0}function A0(e,t,l){Si(e)&&l.delete(t)}function Sy(){nc=!1,zl!==null&&Si(zl)&&(zl=null),_l!==null&&Si(_l)&&(_l=null),Ul!==null&&Si(Ul)&&(Ul=null),Kn.forEach(A0),Jn.forEach(A0)}function wi(e,t){e.blockedOn===t&&(e.blockedOn=null,nc||(nc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Sy)))}var Ni=null;function D0(e){Ni!==e&&(Ni=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ni===e&&(Ni=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],u=e[t+2];if(typeof a!="function"){if(ac(a||l)===null)continue;break}var i=fa(l);i!==null&&(e.splice(t,3),t-=3,ar(i,{pending:!0,data:u,method:l.method,action:a},a,u))}}))}function Fn(e){function t(b){return wi(b,e)}zl!==null&&wi(zl,e),_l!==null&&wi(_l,e),Ul!==null&&wi(Ul,e),Kn.forEach(t),Jn.forEach(t);for(var l=0;l<Bl.length;l++){var a=Bl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Bl.length&&(l=Bl[0],l.blockedOn===null);)T0(l),l.blockedOn===null&&Bl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var u=l[a],i=l[a+1],h=u[ot]||null;if(typeof i=="function")h||D0(l);else if(h){var y=null;if(i&&i.hasAttribute("formAction")){if(u=i,h=i[ot]||null)y=h.formAction;else if(ac(u)!==null)continue}else y=h.action;typeof y=="function"?l[a+1]=y:(l.splice(a,3),a-=3),D0(l)}}}function uc(e){this._internalRoot=e}Ei.prototype.render=uc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=Et();w0(l,a,e,t,null,null)},Ei.prototype.unmount=uc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;w0(e.current,2,null,e,null,null),ui(),t[ca]=null}};function Ei(e){this._internalRoot=e}Ei.prototype.unstable_scheduleHydration=function(e){if(e){var t=kc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Bl.length&&t!==0&&t<Bl[l].priority;l++);Bl.splice(l,0,e),l===0&&T0(e)}};var O0=s.version;if(O0!=="19.1.1")throw Error(r(527,O0,"19.1.1"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(t),e=e!==null?m(e):null,e=e===null?null:e.stateNode,e};var wy={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var ji=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ji.isDisabled&&ji.supportsFiber)try{Ia=ji.inject(wy),pt=ji}catch(e){}}return Pn.createRoot=function(e,t){if(!f(e))throw Error(r(299));var l=!1,a="",u=Zf,i=Kf,h=Jf,y=null;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(y=t.unstable_transitionCallbacks)),t=b0(e,1,!1,null,null,l,a,u,i,h,y,null),e[ca]=t.current,Vr(e),new uc(t)},Pn.hydrateRoot=function(e,t,l){if(!f(e))throw Error(r(299));var a=!1,u="",i=Zf,h=Kf,y=Jf,b=null,A=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(u=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(h=l.onCaughtError),l.onRecoverableError!==void 0&&(y=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(b=l.unstable_transitionCallbacks),l.formState!==void 0&&(A=l.formState)),t=b0(e,1,!0,t,l!=null?l:null,a,u,i,h,y,b,A),t.context=S0(null),l=t.current,a=Et(),a=Fi(a),u=xl(a),u.callback=null,bl(l,u,a),l=a,t.current.lanes=l,tn(t,l),Zt(t),e[ca]=t.current,Vr(e),new Ei(t)},Pn.version="19.1.1",Pn}var k0;function Ly(){if(k0)return oc.exports;k0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),oc.exports=Hy(),oc.exports}var qy=Ly();/**
50
- * react-router v7.8.0
51
- *
52
- * Copyright (c) Remix Software Inc.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */var Q0="popstate";function Yy(n={}){function s(r,f){let{pathname:d,search:g,hash:x}=r.location;return xc("",{pathname:d,search:g,hash:x},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function c(r,f){return typeof f=="string"?f:lu(f)}return Gy(s,c,null,n)}function Be(n,s){if(n===!1||n===null||typeof n=="undefined")throw new Error(s)}function Lt(n,s){if(!n){typeof console!="undefined"&&console.warn(s);try{throw new Error(s)}catch(c){}}}function Vy(){return Math.random().toString(36).substring(2,10)}function Z0(n,s){return{usr:n.state,key:n.key,idx:s}}function xc(n,s,c=null,r){return nt(pe({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof s=="string"?$a(s):s),{state:c,key:s&&s.key||r||Vy()})}function lu({pathname:n="/",search:s="",hash:c=""}){return s&&s!=="?"&&(n+=s.charAt(0)==="?"?s:"?"+s),c&&c!=="#"&&(n+=c.charAt(0)==="#"?c:"#"+c),n}function $a(n){let s={};if(n){let c=n.indexOf("#");c>=0&&(s.hash=n.substring(c),n=n.substring(0,c));let r=n.indexOf("?");r>=0&&(s.search=n.substring(r),n=n.substring(0,r)),n&&(s.pathname=n)}return s}function Gy(n,s,c,r={}){let{window:f=document.defaultView,v5Compat:d=!1}=r,g=f.history,x="POP",p=null,m=v();m==null&&(m=0,g.replaceState(nt(pe({},g.state),{idx:m}),""));function v(){return(g.state||{idx:null}).idx}function E(){x="POP";let D=v(),V=D==null?null:D-m;m=D,p&&p({action:x,location:z.location,delta:V})}function R(D,V){x="PUSH";let G=xc(z.location,D,V);m=v()+1;let k=Z0(G,m),I=z.createHref(G);try{g.pushState(k,"",I)}catch(X){if(X instanceof DOMException&&X.name==="DataCloneError")throw X;f.location.assign(I)}d&&p&&p({action:x,location:z.location,delta:1})}function U(D,V){x="REPLACE";let G=xc(z.location,D,V);m=v();let k=Z0(G,m),I=z.createHref(G);g.replaceState(k,"",I),d&&p&&p({action:x,location:z.location,delta:0})}function M(D){return Xy(D)}let z={get action(){return x},get location(){return n(f,g)},listen(D){if(p)throw new Error("A history only accepts one active listener");return f.addEventListener(Q0,E),p=D,()=>{f.removeEventListener(Q0,E),p=null}},createHref(D){return s(f,D)},createURL:M,encodeLocation(D){let V=M(D);return{pathname:V.pathname,search:V.search,hash:V.hash}},push:R,replace:U,go(D){return g.go(D)}};return z}function Xy(n,s=!1){let c="http://localhost";typeof window!="undefined"&&(c=window.location.origin!=="null"?window.location.origin:window.location.href),Be(c,"No window.location.(origin|href) available to create URL");let r=typeof n=="string"?n:lu(n);return r=r.replace(/ $/,"%20"),!s&&r.startsWith("//")&&(r=c+r),new URL(r,c)}function dh(n,s,c="/"){return ky(n,s,c,!1)}function ky(n,s,c,r){let f=typeof s=="string"?$a(s):s,d=fl(f.pathname||"/",c);if(d==null)return null;let g=hh(n);Qy(g);let x=null;for(let p=0;x==null&&p<g.length;++p){let m=l1(d);x=e1(g[p],m,r)}return x}function hh(n,s=[],c=[],r=""){let f=(d,g,x)=>{let p={relativePath:x===void 0?d.path||"":x,caseSensitive:d.caseSensitive===!0,childrenIndex:g,route:d};p.relativePath.startsWith("/")&&(Be(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length));let m=ol([r,p.relativePath]),v=c.concat(p);d.children&&d.children.length>0&&(Be(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),hh(d.children,s,v,m)),!(d.path==null&&!d.index)&&s.push({path:m,score:Py(m,d.index),routesMeta:v})};return n.forEach((d,g)=>{var x;if(d.path===""||!((x=d.path)!=null&&x.includes("?")))f(d,g);else for(let p of mh(d.path))f(d,g,p)}),s}function mh(n){let s=n.split("/");if(s.length===0)return[];let[c,...r]=s,f=c.endsWith("?"),d=c.replace(/\?$/,"");if(r.length===0)return f?[d,""]:[d];let g=mh(r.join("/")),x=[];return x.push(...g.map(p=>p===""?d:[d,p].join("/"))),f&&x.push(...g),x.map(p=>n.startsWith("/")&&p===""?"/":p)}function Qy(n){n.sort((s,c)=>s.score!==c.score?c.score-s.score:Iy(s.routesMeta.map(r=>r.childrenIndex),c.routesMeta.map(r=>r.childrenIndex)))}var Zy=/^:[\w-]+$/,Ky=3,Jy=2,$y=1,Fy=10,Wy=-2,K0=n=>n==="*";function Py(n,s){let c=n.split("/"),r=c.length;return c.some(K0)&&(r+=Wy),s&&(r+=Jy),c.filter(f=>!K0(f)).reduce((f,d)=>f+(Zy.test(d)?Ky:d===""?$y:Fy),r)}function Iy(n,s){return n.length===s.length&&n.slice(0,-1).every((r,f)=>r===s[f])?n[n.length-1]-s[s.length-1]:0}function e1(n,s,c=!1){let{routesMeta:r}=n,f={},d="/",g=[];for(let x=0;x<r.length;++x){let p=r[x],m=x===r.length-1,v=d==="/"?s:s.slice(d.length)||"/",E=_i({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},v),R=p.route;if(!E&&m&&c&&!r[r.length-1].route.index&&(E=_i({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},v)),!E)return null;Object.assign(f,E.params),g.push({params:f,pathname:ol([d,E.pathname]),pathnameBase:i1(ol([d,E.pathnameBase])),route:R}),E.pathnameBase!=="/"&&(d=ol([d,E.pathnameBase]))}return g}function _i(n,s){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[c,r]=t1(n.path,n.caseSensitive,n.end),f=s.match(c);if(!f)return null;let d=f[0],g=d.replace(/(.)\/+$/,"$1"),x=f.slice(1);return{params:r.reduce((m,{paramName:v,isOptional:E},R)=>{if(v==="*"){let M=x[R]||"";g=d.slice(0,d.length-M.length).replace(/(.)\/+$/,"$1")}const U=x[R];return E&&!U?m[v]=void 0:m[v]=(U||"").replace(/%2F/g,"/"),m},{}),pathname:d,pathnameBase:g,pattern:n}}function t1(n,s=!1,c=!0){Lt(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let r=[],f="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(g,x,p)=>(r.push({paramName:x,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),f+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?f+="\\/*$":n!==""&&n!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,s?void 0:"i"),r]}function l1(n){try{return n.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return Lt(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),n}}function fl(n,s){if(s==="/")return n;if(!n.toLowerCase().startsWith(s.toLowerCase()))return null;let c=s.endsWith("/")?s.length-1:s.length,r=n.charAt(c);return r&&r!=="/"?null:n.slice(c)||"/"}function a1(n,s="/"){let{pathname:c,search:r="",hash:f=""}=typeof n=="string"?$a(n):n;return{pathname:c?c.startsWith("/")?c:n1(c,s):s,search:s1(r),hash:r1(f)}}function n1(n,s){let c=s.replace(/\/+$/,"").split("/");return n.split("/").forEach(f=>{f===".."?c.length>1&&c.pop():f!=="."&&c.push(f)}),c.length>1?c.join("/"):"/"}function mc(n,s,c,r){return`Cannot include a '${n}' character in a manually specified \`to.${s}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function u1(n){return n.filter((s,c)=>c===0||s.route.path&&s.route.path.length>0)}function gh(n){let s=u1(n);return s.map((c,r)=>r===s.length-1?c.pathname:c.pathnameBase)}function yh(n,s,c,r=!1){let f;typeof n=="string"?f=$a(n):(f=pe({},n),Be(!f.pathname||!f.pathname.includes("?"),mc("?","pathname","search",f)),Be(!f.pathname||!f.pathname.includes("#"),mc("#","pathname","hash",f)),Be(!f.search||!f.search.includes("#"),mc("#","search","hash",f)));let d=n===""||f.pathname==="",g=d?"/":f.pathname,x;if(g==null)x=c;else{let E=s.length-1;if(!r&&g.startsWith("..")){let R=g.split("/");for(;R[0]==="..";)R.shift(),E-=1;f.pathname=R.join("/")}x=E>=0?s[E]:"/"}let p=a1(f,x),m=g&&g!=="/"&&g.endsWith("/"),v=(d||g===".")&&c.endsWith("/");return!p.pathname.endsWith("/")&&(m||v)&&(p.pathname+="/"),p}var ol=n=>n.join("/").replace(/\/\/+/g,"/"),i1=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),s1=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,r1=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function c1(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var ph=["POST","PUT","PATCH","DELETE"];new Set(ph);var o1=["GET",...ph];new Set(o1);var Fa=S.createContext(null);Fa.displayName="DataRouter";var Li=S.createContext(null);Li.displayName="DataRouterState";S.createContext(!1);var vh=S.createContext({isTransitioning:!1});vh.displayName="ViewTransition";var f1=S.createContext(new Map);f1.displayName="Fetchers";var d1=S.createContext(null);d1.displayName="Await";var Jt=S.createContext(null);Jt.displayName="Navigation";var nu=S.createContext(null);nu.displayName="Location";var dl=S.createContext({outlet:null,matches:[],isDataRoute:!1});dl.displayName="Route";var Dc=S.createContext(null);Dc.displayName="RouteError";function h1(n,{relative:s}={}){Be(uu(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:r}=S.useContext(Jt),{hash:f,pathname:d,search:g}=su(n,{relative:s}),x=d;return c!=="/"&&(x=d==="/"?c:ol([c,d])),r.createHref({pathname:x,search:g,hash:f})}function uu(){return S.useContext(nu)!=null}function Ll(){return Be(uu(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(nu).location}var xh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function bh(n){S.useContext(Jt).static||S.useLayoutEffect(n)}function iu(){let{isDataRoute:n}=S.useContext(dl);return n?R1():m1()}function m1(){Be(uu(),"useNavigate() may be used only in the context of a <Router> component.");let n=S.useContext(Fa),{basename:s,navigator:c}=S.useContext(Jt),{matches:r}=S.useContext(dl),{pathname:f}=Ll(),d=JSON.stringify(gh(r)),g=S.useRef(!1);return bh(()=>{g.current=!0}),S.useCallback((p,m={})=>{if(Lt(g.current,xh),!g.current)return;if(typeof p=="number"){c.go(p);return}let v=yh(p,JSON.parse(d),f,m.relative==="path");n==null&&s!=="/"&&(v.pathname=v.pathname==="/"?s:ol([s,v.pathname])),(m.replace?c.replace:c.push)(v,m.state,m)},[s,c,d,f,n])}S.createContext(null);function su(n,{relative:s}={}){let{matches:c}=S.useContext(dl),{pathname:r}=Ll(),f=JSON.stringify(gh(c));return S.useMemo(()=>yh(n,JSON.parse(f),r,s==="path"),[n,f,r,s])}function g1(n,s){return Sh(n,s)}function Sh(n,s,c,r){var V;Be(uu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=S.useContext(Jt),{matches:d}=S.useContext(dl),g=d[d.length-1],x=g?g.params:{},p=g?g.pathname:"/",m=g?g.pathnameBase:"/",v=g&&g.route;{let G=v&&v.path||"";wh(p,!v||G.endsWith("*")||G.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${G}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
-
60
- Please change the parent <Route path="${G}"> to <Route path="${G==="/"?"*":`${G}/*`}">.`)}let E=Ll(),R;if(s){let G=typeof s=="string"?$a(s):s;Be(m==="/"||((V=G.pathname)==null?void 0:V.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${G.pathname}" was given in the \`location\` prop.`),R=G}else R=E;let U=R.pathname||"/",M=U;if(m!=="/"){let G=m.replace(/^\//,"").split("/");M="/"+U.replace(/^\//,"").split("/").slice(G.length).join("/")}let z=dh(n,{pathname:M});Lt(v||z!=null,`No routes matched location "${R.pathname}${R.search}${R.hash}" `),Lt(z==null||z[z.length-1].route.element!==void 0||z[z.length-1].route.Component!==void 0||z[z.length-1].route.lazy!==void 0,`Matched leaf route at location "${R.pathname}${R.search}${R.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let D=b1(z&&z.map(G=>Object.assign({},G,{params:Object.assign({},x,G.params),pathname:ol([m,f.encodeLocation?f.encodeLocation(G.pathname).pathname:G.pathname]),pathnameBase:G.pathnameBase==="/"?m:ol([m,f.encodeLocation?f.encodeLocation(G.pathnameBase).pathname:G.pathnameBase])})),d,c,r);return s&&D?S.createElement(nu.Provider,{value:{location:pe({pathname:"/",search:"",hash:"",state:null,key:"default"},R),navigationType:"POP"}},D):D}function y1(){let n=j1(),s=c1(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),c=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:r},d={padding:"2px 4px",backgroundColor:r},g=null;return console.error("Error handled by React Router default ErrorBoundary:",n),g=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:d},"ErrorBoundary")," or"," ",S.createElement("code",{style:d},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},s),c?S.createElement("pre",{style:f},c):null,g)}var p1=S.createElement(y1,null),v1=class extends S.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,s){return s.location!==n.location||s.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:s.error,location:s.location,revalidation:n.revalidation||s.revalidation}}componentDidCatch(n,s){console.error("React Router caught the following error during render",n,s)}render(){return this.state.error!==void 0?S.createElement(dl.Provider,{value:this.props.routeContext},S.createElement(Dc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function x1({routeContext:n,match:s,children:c}){let r=S.useContext(Fa);return r&&r.static&&r.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=s.route.id),S.createElement(dl.Provider,{value:n},c)}function b1(n,s=[],c=null,r=null){if(n==null){if(!c)return null;if(c.errors)n=c.matches;else if(s.length===0&&!c.initialized&&c.matches.length>0)n=c.matches;else return null}let f=n,d=c==null?void 0:c.errors;if(d!=null){let p=f.findIndex(m=>m.route.id&&(d==null?void 0:d[m.route.id])!==void 0);Be(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,p+1))}let g=!1,x=-1;if(c)for(let p=0;p<f.length;p++){let m=f[p];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(x=p),m.route.id){let{loaderData:v,errors:E}=c,R=m.route.loader&&!v.hasOwnProperty(m.route.id)&&(!E||E[m.route.id]===void 0);if(m.route.lazy||R){g=!0,x>=0?f=f.slice(0,x+1):f=[f[0]];break}}}return f.reduceRight((p,m,v)=>{let E,R=!1,U=null,M=null;c&&(E=d&&m.route.id?d[m.route.id]:void 0,U=m.route.errorElement||p1,g&&(x<0&&v===0?(wh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,M=null):x===v&&(R=!0,M=m.route.hydrateFallbackElement||null)));let z=s.concat(f.slice(0,v+1)),D=()=>{let V;return E?V=U:R?V=M:m.route.Component?V=S.createElement(m.route.Component,null):m.route.element?V=m.route.element:V=p,S.createElement(x1,{match:m,routeContext:{outlet:p,matches:z,isDataRoute:c!=null},children:V})};return c&&(m.route.ErrorBoundary||m.route.errorElement||v===0)?S.createElement(v1,{location:c.location,revalidation:c.revalidation,component:U,error:E,children:D(),routeContext:{outlet:null,matches:z,isDataRoute:!0}}):D()},null)}function Oc(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function S1(n){let s=S.useContext(Fa);return Be(s,Oc(n)),s}function w1(n){let s=S.useContext(Li);return Be(s,Oc(n)),s}function N1(n){let s=S.useContext(dl);return Be(s,Oc(n)),s}function Cc(n){let s=N1(n),c=s.matches[s.matches.length-1];return Be(c.route.id,`${n} can only be used on routes that contain a unique "id"`),c.route.id}function E1(){return Cc("useRouteId")}function j1(){var r;let n=S.useContext(Dc),s=w1("useRouteError"),c=Cc("useRouteError");return n!==void 0?n:(r=s.errors)==null?void 0:r[c]}function R1(){let{router:n}=S1("useNavigate"),s=Cc("useNavigate"),c=S.useRef(!1);return bh(()=>{c.current=!0}),S.useCallback((g,...x)=>Oe(null,[g,...x],function*(f,d={}){Lt(c.current,xh),c.current&&(typeof f=="number"?n.navigate(f):yield n.navigate(f,pe({fromRouteId:s},d)))}),[n,s])}var J0={};function wh(n,s,c){!s&&!J0[n]&&(J0[n]=!0,Lt(!1,c))}S.memo(T1);function T1({routes:n,future:s,state:c}){return Sh(n,void 0,c,s)}function ua(n){Be(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function A1({basename:n="/",children:s=null,location:c,navigationType:r="POP",navigator:f,static:d=!1}){Be(!uu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=n.replace(/^\/*/,"/"),x=S.useMemo(()=>({basename:g,navigator:f,static:d,future:{}}),[g,f,d]);typeof c=="string"&&(c=$a(c));let{pathname:p="/",search:m="",hash:v="",state:E=null,key:R="default"}=c,U=S.useMemo(()=>{let M=fl(p,g);return M==null?null:{location:{pathname:M,search:m,hash:v,state:E,key:R},navigationType:r}},[g,p,m,v,E,R,r]);return Lt(U!=null,`<Router basename="${g}"> is not able to match the URL "${p}${m}${v}" because it does not start with the basename, so the <Router> won't render anything.`),U==null?null:S.createElement(Jt.Provider,{value:x},S.createElement(nu.Provider,{children:s,value:U}))}function D1({children:n,location:s}){return g1(bc(n),s)}function bc(n,s=[]){let c=[];return S.Children.forEach(n,(r,f)=>{if(!S.isValidElement(r))return;let d=[...s,f];if(r.type===S.Fragment){c.push.apply(c,bc(r.props.children,d));return}Be(r.type===ua,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Be(!r.props.index||!r.props.children,"An index route cannot have child routes.");let g={id:r.props.id||d.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(g.children=bc(r.props.children,d)),c.push(g)}),c}var Di="get",Oi="application/x-www-form-urlencoded";function qi(n){return n!=null&&typeof n.tagName=="string"}function O1(n){return qi(n)&&n.tagName.toLowerCase()==="button"}function C1(n){return qi(n)&&n.tagName.toLowerCase()==="form"}function M1(n){return qi(n)&&n.tagName.toLowerCase()==="input"}function z1(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function _1(n,s){return n.button===0&&(!s||s==="_self")&&!z1(n)}function Sc(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((s,c)=>{let r=n[c];return s.concat(Array.isArray(r)?r.map(f=>[c,f]):[[c,r]])},[]))}function U1(n,s){let c=Sc(n);return s&&s.forEach((r,f)=>{c.has(f)||s.getAll(f).forEach(d=>{c.append(f,d)})}),c}var Ai=null;function B1(){if(Ai===null)try{new FormData(document.createElement("form"),0),Ai=!1}catch(n){Ai=!0}return Ai}var H1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function gc(n){return n!=null&&!H1.has(n)?(Lt(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Oi}"`),null):n}function L1(n,s){let c,r,f,d,g;if(C1(n)){let x=n.getAttribute("action");r=x?fl(x,s):null,c=n.getAttribute("method")||Di,f=gc(n.getAttribute("enctype"))||Oi,d=new FormData(n)}else if(O1(n)||M1(n)&&(n.type==="submit"||n.type==="image")){let x=n.form;if(x==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||x.getAttribute("action");if(r=p?fl(p,s):null,c=n.getAttribute("formmethod")||x.getAttribute("method")||Di,f=gc(n.getAttribute("formenctype"))||gc(x.getAttribute("enctype"))||Oi,d=new FormData(x,n),!B1()){let{name:m,type:v,value:E}=n;if(v==="image"){let R=m?`${m}.`:"";d.append(`${R}x`,"0"),d.append(`${R}y`,"0")}else m&&d.append(m,E)}}else{if(qi(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=Di,r=null,f=Oi,g=n}return d&&f==="text/plain"&&(g=d,d=void 0),{action:r,method:c.toLowerCase(),encType:f,formData:d,body:g}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Mc(n,s){if(n===!1||n===null||typeof n=="undefined")throw new Error(s)}function q1(n,s,c){let r=typeof n=="string"?new URL(n,typeof window=="undefined"?"server://singlefetch/":window.location.origin):n;return r.pathname==="/"?r.pathname=`_root.${c}`:s&&fl(r.pathname,s)==="/"?r.pathname=`${s.replace(/\/$/,"")}/_root.${c}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${c}`,r}function Y1(n,s){return Oe(this,null,function*(){if(n.id in s)return s[n.id];try{let c=yield import(n.module);return s[n.id]=c,c}catch(c){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}})}function V1(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}function G1(n,s,c){return Oe(this,null,function*(){let r=yield Promise.all(n.map(f=>Oe(null,null,function*(){let d=s.routes[f.route.id];if(d){let g=yield Y1(d,c);return g.links?g.links():[]}return[]})));return Z1(r.flat(1).filter(V1).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?nt(pe({},f),{rel:"prefetch",as:"style"}):nt(pe({},f),{rel:"prefetch"})))})}function $0(n,s,c,r,f,d){let g=(p,m)=>c[m]?p.route.id!==c[m].route.id:!0,x=(p,m)=>{var v;return c[m].pathname!==p.pathname||((v=c[m].route.path)==null?void 0:v.endsWith("*"))&&c[m].params["*"]!==p.params["*"]};return d==="assets"?s.filter((p,m)=>g(p,m)||x(p,m)):d==="data"?s.filter((p,m)=>{var E;let v=r.routes[p.route.id];if(!v||!v.hasLoader)return!1;if(g(p,m)||x(p,m))return!0;if(p.route.shouldRevalidate){let R=p.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((E=c[0])==null?void 0:E.params)||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof R=="boolean")return R}return!0}):[]}function X1(n,s,{includeHydrateFallback:c}={}){return k1(n.map(r=>{let f=s.routes[r.route.id];if(!f)return[];let d=[f.module];return f.clientActionModule&&(d=d.concat(f.clientActionModule)),f.clientLoaderModule&&(d=d.concat(f.clientLoaderModule)),c&&f.hydrateFallbackModule&&(d=d.concat(f.hydrateFallbackModule)),f.imports&&(d=d.concat(f.imports)),d}).flat(1))}function k1(n){return[...new Set(n)]}function Q1(n){let s={},c=Object.keys(n).sort();for(let r of c)s[r]=n[r];return s}function Z1(n,s){let c=new Set;return new Set(s),n.reduce((r,f)=>{let d=JSON.stringify(Q1(f));return c.has(d)||(c.add(d),r.push({key:d,link:f})),r},[])}function Nh(){let n=S.useContext(Fa);return Mc(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function K1(){let n=S.useContext(Li);return Mc(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var zc=S.createContext(void 0);zc.displayName="FrameworkContext";function Eh(){let n=S.useContext(zc);return Mc(n,"You must render this element inside a <HydratedRouter> element"),n}function J1(n,s){let c=S.useContext(zc),[r,f]=S.useState(!1),[d,g]=S.useState(!1),{onFocus:x,onBlur:p,onMouseEnter:m,onMouseLeave:v,onTouchStart:E}=s,R=S.useRef(null);S.useEffect(()=>{if(n==="render"&&g(!0),n==="viewport"){let z=V=>{V.forEach(G=>{g(G.isIntersecting)})},D=new IntersectionObserver(z,{threshold:.5});return R.current&&D.observe(R.current),()=>{D.disconnect()}}},[n]),S.useEffect(()=>{if(r){let z=setTimeout(()=>{g(!0)},100);return()=>{clearTimeout(z)}}},[r]);let U=()=>{f(!0)},M=()=>{f(!1),g(!1)};return c?n!=="intent"?[d,R,{}]:[d,R,{onFocus:In(x,U),onBlur:In(p,M),onMouseEnter:In(m,U),onMouseLeave:In(v,M),onTouchStart:In(E,U)}]:[!1,R,{}]}function In(n,s){return c=>{n&&n(c),c.defaultPrevented||s(c)}}function $1(c){var r=c,{page:n}=r,s=aa(r,["page"]);let{router:f}=Nh(),d=S.useMemo(()=>dh(f.routes,n,f.basename),[f.routes,n,f.basename]);return d?S.createElement(W1,pe({page:n,matches:d},s)):null}function F1(n){let{manifest:s,routeModules:c}=Eh(),[r,f]=S.useState([]);return S.useEffect(()=>{let d=!1;return G1(n,s,c).then(g=>{d||f(g)}),()=>{d=!0}},[n,s,c]),r}function W1(r){var f=r,{page:n,matches:s}=f,c=aa(f,["page","matches"]);let d=Ll(),{manifest:g,routeModules:x}=Eh(),{basename:p}=Nh(),{loaderData:m,matches:v}=K1(),E=S.useMemo(()=>$0(n,s,v,g,d,"data"),[n,s,v,g,d]),R=S.useMemo(()=>$0(n,s,v,g,d,"assets"),[n,s,v,g,d]),U=S.useMemo(()=>{if(n===d.pathname+d.search+d.hash)return[];let D=new Set,V=!1;if(s.forEach(k=>{var X;let I=g.routes[k.route.id];!I||!I.hasLoader||(!E.some(F=>F.route.id===k.route.id)&&k.route.id in m&&((X=x[k.route.id])!=null&&X.shouldRevalidate)||I.hasClientLoader?V=!0:D.add(k.route.id))}),D.size===0)return[];let G=q1(n,p,"data");return V&&D.size>0&&G.searchParams.set("_routes",s.filter(k=>D.has(k.route.id)).map(k=>k.route.id).join(",")),[G.pathname+G.search]},[p,m,d,g,E,s,n,x]),M=S.useMemo(()=>X1(R,g),[R,g]),z=F1(R);return S.createElement(S.Fragment,null,U.map(D=>S.createElement("link",pe({key:D,rel:"prefetch",as:"fetch",href:D},c))),M.map(D=>S.createElement("link",pe({key:D,rel:"modulepreload",href:D},c))),z.map(({key:D,link:V})=>S.createElement("link",pe({key:D,nonce:c.nonce},V))))}function P1(...n){return s=>{n.forEach(c=>{typeof c=="function"?c(s):c!=null&&(c.current=s)})}}var jh=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";try{jh&&(window.__reactRouterVersion="7.8.0")}catch(n){}function I1({basename:n,children:s,window:c}){let r=S.useRef();r.current==null&&(r.current=Yy({window:c,v5Compat:!0}));let f=r.current,[d,g]=S.useState({action:f.action,location:f.location}),x=S.useCallback(p=>{S.startTransition(()=>g(p))},[g]);return S.useLayoutEffect(()=>f.listen(x),[f,x]),S.createElement(A1,{basename:n,children:s,location:d.location,navigationType:d.action,navigator:f})}var Rh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,tu=S.forwardRef(function(M,U){var z=M,{onClick:s,discover:c="render",prefetch:r="none",relative:f,reloadDocument:d,replace:g,state:x,target:p,to:m,preventScrollReset:v,viewTransition:E}=z,R=aa(z,["onClick","discover","prefetch","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"]);let{basename:D}=S.useContext(Jt),V=typeof m=="string"&&Rh.test(m),G,k=!1;if(typeof m=="string"&&V&&(G=m,jh))try{let we=new URL(window.location.href),xe=m.startsWith("//")?new URL(we.protocol+m):new URL(m),ze=fl(xe.pathname,D);xe.origin===we.origin&&ze!=null?m=ze+xe.search+xe.hash:k=!0}catch(we){Lt(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let I=h1(m,{relative:f}),[X,F,ce]=J1(r,R),fe=ap(m,{replace:g,state:x,target:p,preventScrollReset:v,relative:f,viewTransition:E});function Ce(we){s&&s(we),we.defaultPrevented||fe(we)}let tt=S.createElement("a",nt(pe(pe({},R),ce),{href:G||I,onClick:k||d?s:Ce,ref:P1(U,F),target:p,"data-discover":!V&&c==="render"?"true":void 0}));return X&&!V?S.createElement(S.Fragment,null,tt,S.createElement($1,{page:I})):tt});tu.displayName="Link";var ep=S.forwardRef(function(E,v){var R=E,{"aria-current":s="page",caseSensitive:c=!1,className:r="",end:f=!1,style:d,to:g,viewTransition:x,children:p}=R,m=aa(R,["aria-current","caseSensitive","className","end","style","to","viewTransition","children"]);let U=su(g,{relative:m.relative}),M=Ll(),z=S.useContext(Li),{navigator:D,basename:V}=S.useContext(Jt),G=z!=null&&rp(U)&&x===!0,k=D.encodeLocation?D.encodeLocation(U).pathname:U.pathname,I=M.pathname,X=z&&z.navigation&&z.navigation.location?z.navigation.location.pathname:null;c||(I=I.toLowerCase(),X=X?X.toLowerCase():null,k=k.toLowerCase()),X&&V&&(X=fl(X,V)||X);const F=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let ce=I===k||!f&&I.startsWith(k)&&I.charAt(F)==="/",fe=X!=null&&(X===k||!f&&X.startsWith(k)&&X.charAt(k.length)==="/"),Ce={isActive:ce,isPending:fe,isTransitioning:G},tt=ce?s:void 0,we;typeof r=="function"?we=r(Ce):we=[r,ce?"active":null,fe?"pending":null,G?"transitioning":null].filter(Boolean).join(" ");let xe=typeof d=="function"?d(Ce):d;return S.createElement(tu,nt(pe({},m),{"aria-current":tt,className:we,ref:v,style:xe,to:g,viewTransition:x}),typeof p=="function"?p(Ce):p)});ep.displayName="NavLink";var tp=S.forwardRef((M,U)=>{var z=M,{discover:n="render",fetcherKey:s,navigate:c,reloadDocument:r,replace:f,state:d,method:g=Di,action:x,onSubmit:p,relative:m,preventScrollReset:v,viewTransition:E}=z,R=aa(z,["discover","fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"]);let D=ip(),V=sp(x,{relative:m}),G=g.toLowerCase()==="get"?"get":"post",k=typeof x=="string"&&Rh.test(x),I=X=>{if(p&&p(X),X.defaultPrevented)return;X.preventDefault();let F=X.nativeEvent.submitter,ce=(F==null?void 0:F.getAttribute("formmethod"))||g;D(F||X.currentTarget,{fetcherKey:s,method:ce,navigate:c,replace:f,state:d,relative:m,preventScrollReset:v,viewTransition:E})};return S.createElement("form",nt(pe({ref:U,method:G,action:V,onSubmit:r?p:I},R),{"data-discover":!k&&n==="render"?"true":void 0}))});tp.displayName="Form";function lp(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Th(n){let s=S.useContext(Fa);return Be(s,lp(n)),s}function ap(n,{target:s,replace:c,state:r,preventScrollReset:f,relative:d,viewTransition:g}={}){let x=iu(),p=Ll(),m=su(n,{relative:d});return S.useCallback(v=>{if(_1(v,s)){v.preventDefault();let E=c!==void 0?c:lu(p)===lu(m);x(n,{replace:E,state:r,preventScrollReset:f,relative:d,viewTransition:g})}},[p,x,m,c,r,s,n,f,d,g])}function Ah(n){Lt(typeof URLSearchParams!="undefined","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let s=S.useRef(Sc(n)),c=S.useRef(!1),r=Ll(),f=S.useMemo(()=>U1(r.search,c.current?null:s.current),[r.search]),d=iu(),g=S.useCallback((x,p)=>{const m=Sc(typeof x=="function"?x(new URLSearchParams(f)):x);c.current=!0,d("?"+m,p)},[d,f]);return[f,g]}var np=0,up=()=>`__${String(++np)}__`;function ip(){let{router:n}=Th("useSubmit"),{basename:s}=S.useContext(Jt),c=E1();return S.useCallback((d,...g)=>Oe(null,[d,...g],function*(r,f={}){let{action:x,method:p,encType:m,formData:v,body:E}=L1(r,s);if(f.navigate===!1){let R=f.fetcherKey||up();yield n.fetch(R,c,f.action||x,{preventScrollReset:f.preventScrollReset,formData:v,body:E,formMethod:f.method||p,formEncType:f.encType||m,flushSync:f.flushSync})}else yield n.navigate(f.action||x,{preventScrollReset:f.preventScrollReset,formData:v,body:E,formMethod:f.method||p,formEncType:f.encType||m,replace:f.replace,state:f.state,fromRouteId:c,flushSync:f.flushSync,viewTransition:f.viewTransition})}),[n,s,c])}function sp(n,{relative:s}={}){let{basename:c}=S.useContext(Jt),r=S.useContext(dl);Be(r,"useFormAction must be used inside a RouteContext");let[f]=r.matches.slice(-1),d=pe({},su(n||".",{relative:s})),g=Ll();if(n==null){d.search=g.search;let x=new URLSearchParams(d.search),p=x.getAll("index");if(p.some(v=>v==="")){x.delete("index"),p.filter(E=>E).forEach(E=>x.append("index",E));let v=x.toString();d.search=v?`?${v}`:""}}return(!n||n===".")&&f.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(d.pathname=d.pathname==="/"?c:ol([c,d.pathname])),lu(d)}function rp(n,{relative:s}={}){let c=S.useContext(vh);Be(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Th("useViewTransitionState"),f=su(n,{relative:s});if(!c.isTransitioning)return!1;let d=fl(c.currentLocation.pathname,r)||c.currentLocation.pathname,g=fl(c.nextLocation.pathname,r)||c.nextLocation.pathname;return _i(f.pathname,g)!=null||_i(f.pathname,d)!=null}const cp=()=>{const n=new Date().getFullYear();return o.jsx("footer",{className:"bg-gray-800 text-gray-300 py-6",children:o.jsx("div",{className:"container mx-auto px-4",children:o.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center",children:[o.jsxs("div",{className:"mb-4 md:mb-0",children:[o.jsxs("div",{className:"flex items-center",children:[o.jsx("img",{src:"/AXioDB.png",alt:"AxioDB Logo",className:"h-8 w-8 mr-2"}),o.jsx("span",{className:"font-bold text-white text-lg",children:"AxioDB"})]}),o.jsx("p",{className:"text-sm mt-2",children:"High-performance document database"})]}),o.jsxs("div",{className:"text-sm",children:[o.jsxs("div",{className:"flex space-x-6",children:[o.jsx("a",{href:"/docs",className:"hover:text-white transition-colors",children:"Documentation"}),o.jsx("a",{href:"/support",className:"hover:text-white transition-colors",children:"Support"}),o.jsx("a",{href:"/api",className:"hover:text-white transition-colors",children:"API"}),o.jsx("a",{href:"/status",className:"hover:text-white transition-colors",children:"Status"})]}),o.jsxs("p",{className:"mt-4 text-xs text-center md:text-right",children:["© ",n," AxioDB, Inc. All rights reserved."]})]})]})})})};function Dh(n,s){return function(){return n.apply(s,arguments)}}const{toString:op}=Object.prototype,{getPrototypeOf:_c}=Object,{iterator:Yi,toStringTag:Oh}=Symbol,Vi=(n=>s=>{const c=op.call(s);return n[c]||(n[c]=c.slice(8,-1).toLowerCase())})(Object.create(null)),qt=n=>(n=n.toLowerCase(),s=>Vi(s)===n),Gi=n=>s=>typeof s===n,{isArray:Wa}=Array,au=Gi("undefined");function ru(n){return n!==null&&!au(n)&&n.constructor!==null&&!au(n.constructor)&&gt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Ch=qt("ArrayBuffer");function fp(n){let s;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?s=ArrayBuffer.isView(n):s=n&&n.buffer&&Ch(n.buffer),s}const dp=Gi("string"),gt=Gi("function"),Mh=Gi("number"),cu=n=>n!==null&&typeof n=="object",hp=n=>n===!0||n===!1,Ci=n=>{if(Vi(n)!=="object")return!1;const s=_c(n);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(Oh in n)&&!(Yi in n)},mp=n=>{if(!cu(n)||ru(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch(s){return!1}},gp=qt("Date"),yp=qt("File"),pp=qt("Blob"),vp=qt("FileList"),xp=n=>cu(n)&&gt(n.pipe),bp=n=>{let s;return n&&(typeof FormData=="function"&&n instanceof FormData||gt(n.append)&&((s=Vi(n))==="formdata"||s==="object"&&gt(n.toString)&&n.toString()==="[object FormData]"))},Sp=qt("URLSearchParams"),[wp,Np,Ep,jp]=["ReadableStream","Request","Response","Headers"].map(qt),Rp=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ou(n,s,{allOwnKeys:c=!1}={}){if(n===null||typeof n=="undefined")return;let r,f;if(typeof n!="object"&&(n=[n]),Wa(n))for(r=0,f=n.length;r<f;r++)s.call(null,n[r],r,n);else{if(ru(n))return;const d=c?Object.getOwnPropertyNames(n):Object.keys(n),g=d.length;let x;for(r=0;r<g;r++)x=d[r],s.call(null,n[x],x,n)}}function zh(n,s){if(ru(n))return null;s=s.toLowerCase();const c=Object.keys(n);let r=c.length,f;for(;r-- >0;)if(f=c[r],s===f.toLowerCase())return f;return null}const ia=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,_h=n=>!au(n)&&n!==ia;function wc(){const{caseless:n}=_h(this)&&this||{},s={},c=(r,f)=>{const d=n&&zh(s,f)||f;Ci(s[d])&&Ci(r)?s[d]=wc(s[d],r):Ci(r)?s[d]=wc({},r):Wa(r)?s[d]=r.slice():s[d]=r};for(let r=0,f=arguments.length;r<f;r++)arguments[r]&&ou(arguments[r],c);return s}const Tp=(n,s,c,{allOwnKeys:r}={})=>(ou(s,(f,d)=>{c&&gt(f)?n[d]=Dh(f,c):n[d]=f},{allOwnKeys:r}),n),Ap=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Dp=(n,s,c,r)=>{n.prototype=Object.create(s.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:s.prototype}),c&&Object.assign(n.prototype,c)},Op=(n,s,c,r)=>{let f,d,g;const x={};if(s=s||{},n==null)return s;do{for(f=Object.getOwnPropertyNames(n),d=f.length;d-- >0;)g=f[d],(!r||r(g,n,s))&&!x[g]&&(s[g]=n[g],x[g]=!0);n=c!==!1&&_c(n)}while(n&&(!c||c(n,s))&&n!==Object.prototype);return s},Cp=(n,s,c)=>{n=String(n),(c===void 0||c>n.length)&&(c=n.length),c-=s.length;const r=n.indexOf(s,c);return r!==-1&&r===c},Mp=n=>{if(!n)return null;if(Wa(n))return n;let s=n.length;if(!Mh(s))return null;const c=new Array(s);for(;s-- >0;)c[s]=n[s];return c},zp=(n=>s=>n&&s instanceof n)(typeof Uint8Array!="undefined"&&_c(Uint8Array)),_p=(n,s)=>{const r=(n&&n[Yi]).call(n);let f;for(;(f=r.next())&&!f.done;){const d=f.value;s.call(n,d[0],d[1])}},Up=(n,s)=>{let c;const r=[];for(;(c=n.exec(s))!==null;)r.push(c);return r},Bp=qt("HTMLFormElement"),Hp=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(c,r,f){return r.toUpperCase()+f}),F0=(({hasOwnProperty:n})=>(s,c)=>n.call(s,c))(Object.prototype),Lp=qt("RegExp"),Uh=(n,s)=>{const c=Object.getOwnPropertyDescriptors(n),r={};ou(c,(f,d)=>{let g;(g=s(f,d,n))!==!1&&(r[d]=g||f)}),Object.defineProperties(n,r)},qp=n=>{Uh(n,(s,c)=>{if(gt(n)&&["arguments","caller","callee"].indexOf(c)!==-1)return!1;const r=n[c];if(gt(r)){if(s.enumerable=!1,"writable"in s){s.writable=!1;return}s.set||(s.set=()=>{throw Error("Can not rewrite read-only method '"+c+"'")})}})},Yp=(n,s)=>{const c={},r=f=>{f.forEach(d=>{c[d]=!0})};return Wa(n)?r(n):r(String(n).split(s)),c},Vp=()=>{},Gp=(n,s)=>n!=null&&Number.isFinite(n=+n)?n:s;function Xp(n){return!!(n&&gt(n.append)&&n[Oh]==="FormData"&&n[Yi])}const kp=n=>{const s=new Array(10),c=(r,f)=>{if(cu(r)){if(s.indexOf(r)>=0)return;if(ru(r))return r;if(!("toJSON"in r)){s[f]=r;const d=Wa(r)?[]:{};return ou(r,(g,x)=>{const p=c(g,f+1);!au(p)&&(d[x]=p)}),s[f]=void 0,d}}return r};return c(n,0)},Qp=qt("AsyncFunction"),Zp=n=>n&&(cu(n)||gt(n))&&gt(n.then)&&gt(n.catch),Bh=((n,s)=>n?setImmediate:s?((c,r)=>(ia.addEventListener("message",({source:f,data:d})=>{f===ia&&d===c&&r.length&&r.shift()()},!1),f=>{r.push(f),ia.postMessage(c,"*")}))(`axios@${Math.random()}`,[]):c=>setTimeout(c))(typeof setImmediate=="function",gt(ia.postMessage)),Kp=typeof queueMicrotask!="undefined"?queueMicrotask.bind(ia):typeof process!="undefined"&&process.nextTick||Bh,Jp=n=>n!=null&&gt(n[Yi]),_={isArray:Wa,isArrayBuffer:Ch,isBuffer:ru,isFormData:bp,isArrayBufferView:fp,isString:dp,isNumber:Mh,isBoolean:hp,isObject:cu,isPlainObject:Ci,isEmptyObject:mp,isReadableStream:wp,isRequest:Np,isResponse:Ep,isHeaders:jp,isUndefined:au,isDate:gp,isFile:yp,isBlob:pp,isRegExp:Lp,isFunction:gt,isStream:xp,isURLSearchParams:Sp,isTypedArray:zp,isFileList:vp,forEach:ou,merge:wc,extend:Tp,trim:Rp,stripBOM:Ap,inherits:Dp,toFlatObject:Op,kindOf:Vi,kindOfTest:qt,endsWith:Cp,toArray:Mp,forEachEntry:_p,matchAll:Up,isHTMLForm:Bp,hasOwnProperty:F0,hasOwnProp:F0,reduceDescriptors:Uh,freezeMethods:qp,toObjectSet:Yp,toCamelCase:Hp,noop:Vp,toFiniteNumber:Gp,findKey:zh,global:ia,isContextDefined:_h,isSpecCompliantForm:Xp,toJSONObject:kp,isAsyncFn:Qp,isThenable:Zp,setImmediate:Bh,asap:Kp,isIterable:Jp};function ie(n,s,c,r,f){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",s&&(this.code=s),c&&(this.config=c),r&&(this.request=r),f&&(this.response=f,this.status=f.status?f.status:null)}_.inherits(ie,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:_.toJSONObject(this.config),code:this.code,status:this.status}}});const Hh=ie.prototype,Lh={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{Lh[n]={value:n}});Object.defineProperties(ie,Lh);Object.defineProperty(Hh,"isAxiosError",{value:!0});ie.from=(n,s,c,r,f,d)=>{const g=Object.create(Hh);return _.toFlatObject(n,g,function(p){return p!==Error.prototype},x=>x!=="isAxiosError"),ie.call(g,n.message,s,c,r,f),g.cause=n,g.name=n.name,d&&Object.assign(g,d),g};const $p=null;function Nc(n){return _.isPlainObject(n)||_.isArray(n)}function qh(n){return _.endsWith(n,"[]")?n.slice(0,-2):n}function W0(n,s,c){return n?n.concat(s).map(function(f,d){return f=qh(f),!c&&d?"["+f+"]":f}).join(c?".":""):s}function Fp(n){return _.isArray(n)&&!n.some(Nc)}const Wp=_.toFlatObject(_,{},null,function(s){return/^is[A-Z]/.test(s)});function Xi(n,s,c){if(!_.isObject(n))throw new TypeError("target must be an object");s=s||new FormData,c=_.toFlatObject(c,{metaTokens:!0,dots:!1,indexes:!1},!1,function(z,D){return!_.isUndefined(D[z])});const r=c.metaTokens,f=c.visitor||v,d=c.dots,g=c.indexes,p=(c.Blob||typeof Blob!="undefined"&&Blob)&&_.isSpecCompliantForm(s);if(!_.isFunction(f))throw new TypeError("visitor must be a function");function m(M){if(M===null)return"";if(_.isDate(M))return M.toISOString();if(_.isBoolean(M))return M.toString();if(!p&&_.isBlob(M))throw new ie("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(M)||_.isTypedArray(M)?p&&typeof Blob=="function"?new Blob([M]):Buffer.from(M):M}function v(M,z,D){let V=M;if(M&&!D&&typeof M=="object"){if(_.endsWith(z,"{}"))z=r?z:z.slice(0,-2),M=JSON.stringify(M);else if(_.isArray(M)&&Fp(M)||(_.isFileList(M)||_.endsWith(z,"[]"))&&(V=_.toArray(M)))return z=qh(z),V.forEach(function(k,I){!(_.isUndefined(k)||k===null)&&s.append(g===!0?W0([z],I,d):g===null?z:z+"[]",m(k))}),!1}return Nc(M)?!0:(s.append(W0(D,z,d),m(M)),!1)}const E=[],R=Object.assign(Wp,{defaultVisitor:v,convertValue:m,isVisitable:Nc});function U(M,z){if(!_.isUndefined(M)){if(E.indexOf(M)!==-1)throw Error("Circular reference detected in "+z.join("."));E.push(M),_.forEach(M,function(V,G){(!(_.isUndefined(V)||V===null)&&f.call(s,V,_.isString(G)?G.trim():G,z,R))===!0&&U(V,z?z.concat(G):[G])}),E.pop()}}if(!_.isObject(n))throw new TypeError("data must be an object");return U(n),s}function P0(n){const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return s[r]})}function Uc(n,s){this._pairs=[],n&&Xi(n,this,s)}const Yh=Uc.prototype;Yh.append=function(s,c){this._pairs.push([s,c])};Yh.toString=function(s){const c=s?function(r){return s.call(this,r,P0)}:P0;return this._pairs.map(function(f){return c(f[0])+"="+c(f[1])},"").join("&")};function Pp(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Vh(n,s,c){if(!s)return n;const r=c&&c.encode||Pp;_.isFunction(c)&&(c={serialize:c});const f=c&&c.serialize;let d;if(f?d=f(s,c):d=_.isURLSearchParams(s)?s.toString():new Uc(s,c).toString(r),d){const g=n.indexOf("#");g!==-1&&(n=n.slice(0,g)),n+=(n.indexOf("?")===-1?"?":"&")+d}return n}class I0{constructor(){this.handlers=[]}use(s,c,r){return this.handlers.push({fulfilled:s,rejected:c,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(s){this.handlers[s]&&(this.handlers[s]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(s){_.forEach(this.handlers,function(r){r!==null&&s(r)})}}const Gh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ip=typeof URLSearchParams!="undefined"?URLSearchParams:Uc,ev=typeof FormData!="undefined"?FormData:null,tv=typeof Blob!="undefined"?Blob:null,lv={isBrowser:!0,classes:{URLSearchParams:Ip,FormData:ev,Blob:tv},protocols:["http","https","file","blob","url","data"]},Bc=typeof window!="undefined"&&typeof document!="undefined",Ec=typeof navigator=="object"&&navigator||void 0,av=Bc&&(!Ec||["ReactNative","NativeScript","NS"].indexOf(Ec.product)<0),nv=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",uv=Bc&&window.location.href||"http://localhost",iv=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Bc,hasStandardBrowserEnv:av,hasStandardBrowserWebWorkerEnv:nv,navigator:Ec,origin:uv},Symbol.toStringTag,{value:"Module"})),it=pe(pe({},iv),lv);function sv(n,s){return Xi(n,new it.classes.URLSearchParams,pe({visitor:function(c,r,f,d){return it.isNode&&_.isBuffer(c)?(this.append(r,c.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},s))}function rv(n){return _.matchAll(/\w+|\[(\w*)]/g,n).map(s=>s[0]==="[]"?"":s[1]||s[0])}function cv(n){const s={},c=Object.keys(n);let r;const f=c.length;let d;for(r=0;r<f;r++)d=c[r],s[d]=n[d];return s}function Xh(n){function s(c,r,f,d){let g=c[d++];if(g==="__proto__")return!0;const x=Number.isFinite(+g),p=d>=c.length;return g=!g&&_.isArray(f)?f.length:g,p?(_.hasOwnProp(f,g)?f[g]=[f[g],r]:f[g]=r,!x):((!f[g]||!_.isObject(f[g]))&&(f[g]=[]),s(c,r,f[g],d)&&_.isArray(f[g])&&(f[g]=cv(f[g])),!x)}if(_.isFormData(n)&&_.isFunction(n.entries)){const c={};return _.forEachEntry(n,(r,f)=>{s(rv(r),f,c,0)}),c}return null}function ov(n,s,c){if(_.isString(n))try{return(s||JSON.parse)(n),_.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(c||JSON.stringify)(n)}const fu={transitional:Gh,adapter:["xhr","http","fetch"],transformRequest:[function(s,c){const r=c.getContentType()||"",f=r.indexOf("application/json")>-1,d=_.isObject(s);if(d&&_.isHTMLForm(s)&&(s=new FormData(s)),_.isFormData(s))return f?JSON.stringify(Xh(s)):s;if(_.isArrayBuffer(s)||_.isBuffer(s)||_.isStream(s)||_.isFile(s)||_.isBlob(s)||_.isReadableStream(s))return s;if(_.isArrayBufferView(s))return s.buffer;if(_.isURLSearchParams(s))return c.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),s.toString();let x;if(d){if(r.indexOf("application/x-www-form-urlencoded")>-1)return sv(s,this.formSerializer).toString();if((x=_.isFileList(s))||r.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Xi(x?{"files[]":s}:s,p&&new p,this.formSerializer)}}return d||f?(c.setContentType("application/json",!1),ov(s)):s}],transformResponse:[function(s){const c=this.transitional||fu.transitional,r=c&&c.forcedJSONParsing,f=this.responseType==="json";if(_.isResponse(s)||_.isReadableStream(s))return s;if(s&&_.isString(s)&&(r&&!this.responseType||f)){const g=!(c&&c.silentJSONParsing)&&f;try{return JSON.parse(s)}catch(x){if(g)throw x.name==="SyntaxError"?ie.from(x,ie.ERR_BAD_RESPONSE,this,null,this.response):x}}return s}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:it.classes.FormData,Blob:it.classes.Blob},validateStatus:function(s){return s>=200&&s<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],n=>{fu.headers[n]={}});const fv=_.toObjectSet(["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"]),dv=n=>{const s={};let c,r,f;return n&&n.split(`
61
- `).forEach(function(g){f=g.indexOf(":"),c=g.substring(0,f).trim().toLowerCase(),r=g.substring(f+1).trim(),!(!c||s[c]&&fv[c])&&(c==="set-cookie"?s[c]?s[c].push(r):s[c]=[r]:s[c]=s[c]?s[c]+", "+r:r)}),s},eh=Symbol("internals");function eu(n){return n&&String(n).trim().toLowerCase()}function Mi(n){return n===!1||n==null?n:_.isArray(n)?n.map(Mi):String(n)}function hv(n){const s=Object.create(null),c=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=c.exec(n);)s[r[1]]=r[2];return s}const mv=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function yc(n,s,c,r,f){if(_.isFunction(r))return r.call(this,s,c);if(f&&(s=c),!!_.isString(s)){if(_.isString(r))return s.indexOf(r)!==-1;if(_.isRegExp(r))return r.test(s)}}function gv(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,c,r)=>c.toUpperCase()+r)}function yv(n,s){const c=_.toCamelCase(" "+s);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+c,{value:function(f,d,g){return this[r].call(this,s,f,d,g)},configurable:!0})})}let yt=class{constructor(s){s&&this.set(s)}set(s,c,r){const f=this;function d(x,p,m){const v=eu(p);if(!v)throw new Error("header name must be a non-empty string");const E=_.findKey(f,v);(!E||f[E]===void 0||m===!0||m===void 0&&f[E]!==!1)&&(f[E||p]=Mi(x))}const g=(x,p)=>_.forEach(x,(m,v)=>d(m,v,p));if(_.isPlainObject(s)||s instanceof this.constructor)g(s,c);else if(_.isString(s)&&(s=s.trim())&&!mv(s))g(dv(s),c);else if(_.isObject(s)&&_.isIterable(s)){let x={},p,m;for(const v of s){if(!_.isArray(v))throw TypeError("Object iterator must return a key-value pair");x[m=v[0]]=(p=x[m])?_.isArray(p)?[...p,v[1]]:[p,v[1]]:v[1]}g(x,c)}else s!=null&&d(c,s,r);return this}get(s,c){if(s=eu(s),s){const r=_.findKey(this,s);if(r){const f=this[r];if(!c)return f;if(c===!0)return hv(f);if(_.isFunction(c))return c.call(this,f,r);if(_.isRegExp(c))return c.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,c){if(s=eu(s),s){const r=_.findKey(this,s);return!!(r&&this[r]!==void 0&&(!c||yc(this,this[r],r,c)))}return!1}delete(s,c){const r=this;let f=!1;function d(g){if(g=eu(g),g){const x=_.findKey(r,g);x&&(!c||yc(r,r[x],x,c))&&(delete r[x],f=!0)}}return _.isArray(s)?s.forEach(d):d(s),f}clear(s){const c=Object.keys(this);let r=c.length,f=!1;for(;r--;){const d=c[r];(!s||yc(this,this[d],d,s,!0))&&(delete this[d],f=!0)}return f}normalize(s){const c=this,r={};return _.forEach(this,(f,d)=>{const g=_.findKey(r,d);if(g){c[g]=Mi(f),delete c[d];return}const x=s?gv(d):String(d).trim();x!==d&&delete c[d],c[x]=Mi(f),r[x]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const c=Object.create(null);return _.forEach(this,(r,f)=>{r!=null&&r!==!1&&(c[f]=s&&_.isArray(r)?r.join(", "):r)}),c}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,c])=>s+": "+c).join(`
62
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...c){const r=new this(s);return c.forEach(f=>r.set(f)),r}static accessor(s){const r=(this[eh]=this[eh]={accessors:{}}).accessors,f=this.prototype;function d(g){const x=eu(g);r[x]||(yv(f,g),r[x]=!0)}return _.isArray(s)?s.forEach(d):d(s),this}};yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_.reduceDescriptors(yt.prototype,({value:n},s)=>{let c=s[0].toUpperCase()+s.slice(1);return{get:()=>n,set(r){this[c]=r}}});_.freezeMethods(yt);function pc(n,s){const c=this||fu,r=s||c,f=yt.from(r.headers);let d=r.data;return _.forEach(n,function(x){d=x.call(c,d,f.normalize(),s?s.status:void 0)}),f.normalize(),d}function kh(n){return!!(n&&n.__CANCEL__)}function Pa(n,s,c){ie.call(this,n==null?"canceled":n,ie.ERR_CANCELED,s,c),this.name="CanceledError"}_.inherits(Pa,ie,{__CANCEL__:!0});function Qh(n,s,c){const r=c.config.validateStatus;!c.status||!r||r(c.status)?n(c):s(new ie("Request failed with status code "+c.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(c.status/100)-4],c.config,c.request,c))}function pv(n){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return s&&s[1]||""}function vv(n,s){n=n||10;const c=new Array(n),r=new Array(n);let f=0,d=0,g;return s=s!==void 0?s:1e3,function(p){const m=Date.now(),v=r[d];g||(g=m),c[f]=p,r[f]=m;let E=d,R=0;for(;E!==f;)R+=c[E++],E=E%n;if(f=(f+1)%n,f===d&&(d=(d+1)%n),m-g<s)return;const U=v&&m-v;return U?Math.round(R*1e3/U):void 0}}function xv(n,s){let c=0,r=1e3/s,f,d;const g=(m,v=Date.now())=>{c=v,f=null,d&&(clearTimeout(d),d=null),n(...m)};return[(...m)=>{const v=Date.now(),E=v-c;E>=r?g(m,v):(f=m,d||(d=setTimeout(()=>{d=null,g(f)},r-E)))},()=>f&&g(f)]}const Ui=(n,s,c=3)=>{let r=0;const f=vv(50,250);return xv(d=>{const g=d.loaded,x=d.lengthComputable?d.total:void 0,p=g-r,m=f(p),v=g<=x;r=g;const E={loaded:g,total:x,progress:x?g/x:void 0,bytes:p,rate:m||void 0,estimated:m&&x&&v?(x-g)/m:void 0,event:d,lengthComputable:x!=null,[s?"download":"upload"]:!0};n(E)},c)},th=(n,s)=>{const c=n!=null;return[r=>s[0]({lengthComputable:c,total:n,loaded:r}),s[1]]},lh=n=>(...s)=>_.asap(()=>n(...s)),bv=it.hasStandardBrowserEnv?((n,s)=>c=>(c=new URL(c,it.origin),n.protocol===c.protocol&&n.host===c.host&&(s||n.port===c.port)))(new URL(it.origin),it.navigator&&/(msie|trident)/i.test(it.navigator.userAgent)):()=>!0,Sv=it.hasStandardBrowserEnv?{write(n,s,c,r,f,d){const g=[n+"="+encodeURIComponent(s)];_.isNumber(c)&&g.push("expires="+new Date(c).toGMTString()),_.isString(r)&&g.push("path="+r),_.isString(f)&&g.push("domain="+f),d===!0&&g.push("secure"),document.cookie=g.join("; ")},read(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function wv(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function Nv(n,s){return s?n.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):n}function Zh(n,s,c){let r=!wv(s);return n&&(r||c==!1)?Nv(n,s):s}const ah=n=>n instanceof yt?pe({},n):n;function ra(n,s){s=s||{};const c={};function r(m,v,E,R){return _.isPlainObject(m)&&_.isPlainObject(v)?_.merge.call({caseless:R},m,v):_.isPlainObject(v)?_.merge({},v):_.isArray(v)?v.slice():v}function f(m,v,E,R){if(_.isUndefined(v)){if(!_.isUndefined(m))return r(void 0,m,E,R)}else return r(m,v,E,R)}function d(m,v){if(!_.isUndefined(v))return r(void 0,v)}function g(m,v){if(_.isUndefined(v)){if(!_.isUndefined(m))return r(void 0,m)}else return r(void 0,v)}function x(m,v,E){if(E in s)return r(m,v);if(E in n)return r(void 0,m)}const p={url:d,method:d,data:d,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:x,headers:(m,v,E)=>f(ah(m),ah(v),E,!0)};return _.forEach(Object.keys(pe(pe({},n),s)),function(v){const E=p[v]||f,R=E(n[v],s[v],v);_.isUndefined(R)&&E!==x||(c[v]=R)}),c}const Kh=n=>{const s=ra({},n);let{data:c,withXSRFToken:r,xsrfHeaderName:f,xsrfCookieName:d,headers:g,auth:x}=s;s.headers=g=yt.from(g),s.url=Vh(Zh(s.baseURL,s.url,s.allowAbsoluteUrls),n.params,n.paramsSerializer),x&&g.set("Authorization","Basic "+btoa((x.username||"")+":"+(x.password?unescape(encodeURIComponent(x.password)):"")));let p;if(_.isFormData(c)){if(it.hasStandardBrowserEnv||it.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if((p=g.getContentType())!==!1){const[m,...v]=p?p.split(";").map(E=>E.trim()).filter(Boolean):[];g.setContentType([m||"multipart/form-data",...v].join("; "))}}if(it.hasStandardBrowserEnv&&(r&&_.isFunction(r)&&(r=r(s)),r||r!==!1&&bv(s.url))){const m=f&&d&&Sv.read(d);m&&g.set(f,m)}return s},Ev=typeof XMLHttpRequest!="undefined",jv=Ev&&function(n){return new Promise(function(c,r){const f=Kh(n);let d=f.data;const g=yt.from(f.headers).normalize();let{responseType:x,onUploadProgress:p,onDownloadProgress:m}=f,v,E,R,U,M;function z(){U&&U(),M&&M(),f.cancelToken&&f.cancelToken.unsubscribe(v),f.signal&&f.signal.removeEventListener("abort",v)}let D=new XMLHttpRequest;D.open(f.method.toUpperCase(),f.url,!0),D.timeout=f.timeout;function V(){if(!D)return;const k=yt.from("getAllResponseHeaders"in D&&D.getAllResponseHeaders()),X={data:!x||x==="text"||x==="json"?D.responseText:D.response,status:D.status,statusText:D.statusText,headers:k,config:n,request:D};Qh(function(ce){c(ce),z()},function(ce){r(ce),z()},X),D=null}"onloadend"in D?D.onloadend=V:D.onreadystatechange=function(){!D||D.readyState!==4||D.status===0&&!(D.responseURL&&D.responseURL.indexOf("file:")===0)||setTimeout(V)},D.onabort=function(){D&&(r(new ie("Request aborted",ie.ECONNABORTED,n,D)),D=null)},D.onerror=function(){r(new ie("Network Error",ie.ERR_NETWORK,n,D)),D=null},D.ontimeout=function(){let I=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded";const X=f.transitional||Gh;f.timeoutErrorMessage&&(I=f.timeoutErrorMessage),r(new ie(I,X.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,n,D)),D=null},d===void 0&&g.setContentType(null),"setRequestHeader"in D&&_.forEach(g.toJSON(),function(I,X){D.setRequestHeader(X,I)}),_.isUndefined(f.withCredentials)||(D.withCredentials=!!f.withCredentials),x&&x!=="json"&&(D.responseType=f.responseType),m&&([R,M]=Ui(m,!0),D.addEventListener("progress",R)),p&&D.upload&&([E,U]=Ui(p),D.upload.addEventListener("progress",E),D.upload.addEventListener("loadend",U)),(f.cancelToken||f.signal)&&(v=k=>{D&&(r(!k||k.type?new Pa(null,n,D):k),D.abort(),D=null)},f.cancelToken&&f.cancelToken.subscribe(v),f.signal&&(f.signal.aborted?v():f.signal.addEventListener("abort",v)));const G=pv(f.url);if(G&&it.protocols.indexOf(G)===-1){r(new ie("Unsupported protocol "+G+":",ie.ERR_BAD_REQUEST,n));return}D.send(d||null)})},Rv=(n,s)=>{const{length:c}=n=n?n.filter(Boolean):[];if(s||c){let r=new AbortController,f;const d=function(m){if(!f){f=!0,x();const v=m instanceof Error?m:this.reason;r.abort(v instanceof ie?v:new Pa(v instanceof Error?v.message:v))}};let g=s&&setTimeout(()=>{g=null,d(new ie(`timeout ${s} of ms exceeded`,ie.ETIMEDOUT))},s);const x=()=>{n&&(g&&clearTimeout(g),g=null,n.forEach(m=>{m.unsubscribe?m.unsubscribe(d):m.removeEventListener("abort",d)}),n=null)};n.forEach(m=>m.addEventListener("abort",d));const{signal:p}=r;return p.unsubscribe=()=>_.asap(x),p}},Tv=function*(n,s){let c=n.byteLength;if(c<s){yield n;return}let r=0,f;for(;r<c;)f=r+s,yield n.slice(r,f),r=f},Av=function(n,s){return ic(this,null,function*(){try{for(var c=_0(Dv(n)),r,f,d;r=!(f=yield new na(c.next())).done;r=!1){const g=f.value;yield*sc(Tv(g,s))}}catch(f){d=[f]}finally{try{r&&(f=c.return)&&(yield new na(f.call(c)))}finally{if(d)throw d[0]}}})},Dv=function(n){return ic(this,null,function*(){if(n[Symbol.asyncIterator]){yield*sc(n);return}const s=n.getReader();try{for(;;){const{done:c,value:r}=yield new na(s.read());if(c)break;yield r}}finally{yield new na(s.cancel())}})},nh=(n,s,c,r)=>{const f=Av(n,s);let d=0,g,x=m=>{g||(g=!0,r&&r(m))};return new ReadableStream({pull(m){return Oe(this,null,function*(){try{const{done:v,value:E}=yield f.next();if(v){x(),m.close();return}let R=E.byteLength;if(c){let U=d+=R;c(U)}m.enqueue(new Uint8Array(E))}catch(v){throw x(v),v}})},cancel(m){return x(m),f.return()}},{highWaterMark:2})},ki=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Jh=ki&&typeof ReadableStream=="function",Ov=ki&&(typeof TextEncoder=="function"?(n=>s=>n.encode(s))(new TextEncoder):n=>Oe(null,null,function*(){return new Uint8Array(yield new Response(n).arrayBuffer())})),$h=(n,...s)=>{try{return!!n(...s)}catch(c){return!1}},Cv=Jh&&$h(()=>{let n=!1;const s=new Request(it.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!s}),uh=64*1024,jc=Jh&&$h(()=>_.isReadableStream(new Response("").body)),Bi={stream:jc&&(n=>n.body)};ki&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(s=>{!Bi[s]&&(Bi[s]=_.isFunction(n[s])?c=>c[s]():(c,r)=>{throw new ie(`Response type '${s}' is not supported`,ie.ERR_NOT_SUPPORT,r)})})})(new Response);const Mv=n=>Oe(null,null,function*(){if(n==null)return 0;if(_.isBlob(n))return n.size;if(_.isSpecCompliantForm(n))return(yield new Request(it.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(_.isArrayBufferView(n)||_.isArrayBuffer(n))return n.byteLength;if(_.isURLSearchParams(n)&&(n=n+""),_.isString(n))return(yield Ov(n)).byteLength}),zv=(n,s)=>Oe(null,null,function*(){const c=_.toFiniteNumber(n.getContentLength());return c==null?Mv(s):c}),_v=ki&&(n=>Oe(null,null,function*(){let{url:s,method:c,data:r,signal:f,cancelToken:d,timeout:g,onDownloadProgress:x,onUploadProgress:p,responseType:m,headers:v,withCredentials:E="same-origin",fetchOptions:R}=Kh(n);m=m?(m+"").toLowerCase():"text";let U=Rv([f,d&&d.toAbortSignal()],g),M;const z=U&&U.unsubscribe&&(()=>{U.unsubscribe()});let D;try{if(p&&Cv&&c!=="get"&&c!=="head"&&(D=yield zv(v,r))!==0){let X=new Request(s,{method:"POST",body:r,duplex:"half"}),F;if(_.isFormData(r)&&(F=X.headers.get("content-type"))&&v.setContentType(F),X.body){const[ce,fe]=th(D,Ui(lh(p)));r=nh(X.body,uh,ce,fe)}}_.isString(E)||(E=E?"include":"omit");const V="credentials"in Request.prototype;M=new Request(s,nt(pe({},R),{signal:U,method:c.toUpperCase(),headers:v.normalize().toJSON(),body:r,duplex:"half",credentials:V?E:void 0}));let G=yield fetch(M,R);const k=jc&&(m==="stream"||m==="response");if(jc&&(x||k&&z)){const X={};["status","statusText","headers"].forEach(Ce=>{X[Ce]=G[Ce]});const F=_.toFiniteNumber(G.headers.get("content-length")),[ce,fe]=x&&th(F,Ui(lh(x),!0))||[];G=new Response(nh(G.body,uh,ce,()=>{fe&&fe(),z&&z()}),X)}m=m||"text";let I=yield Bi[_.findKey(Bi,m)||"text"](G,n);return!k&&z&&z(),yield new Promise((X,F)=>{Qh(X,F,{data:I,headers:yt.from(G.headers),status:G.status,statusText:G.statusText,config:n,request:M})})}catch(V){throw z&&z(),V&&V.name==="TypeError"&&/Load failed|fetch/i.test(V.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,n,M),{cause:V.cause||V}):ie.from(V,V&&V.code,n,M)}})),Rc={http:$p,xhr:jv,fetch:_v};_.forEach(Rc,(n,s)=>{if(n){try{Object.defineProperty(n,"name",{value:s})}catch(c){}Object.defineProperty(n,"adapterName",{value:s})}});const ih=n=>`- ${n}`,Uv=n=>_.isFunction(n)||n===null||n===!1,Fh={getAdapter:n=>{n=_.isArray(n)?n:[n];const{length:s}=n;let c,r;const f={};for(let d=0;d<s;d++){c=n[d];let g;if(r=c,!Uv(c)&&(r=Rc[(g=String(c)).toLowerCase()],r===void 0))throw new ie(`Unknown adapter '${g}'`);if(r)break;f[g||"#"+d]=r}if(!r){const d=Object.entries(f).map(([x,p])=>`adapter ${x} `+(p===!1?"is not supported by the environment":"is not available in the build"));let g=s?d.length>1?`since :
63
- `+d.map(ih).join(`
64
- `):" "+ih(d[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+g,"ERR_NOT_SUPPORT")}return r},adapters:Rc};function vc(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Pa(null,n)}function sh(n){return vc(n),n.headers=yt.from(n.headers),n.data=pc.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Fh.getAdapter(n.adapter||fu.adapter)(n).then(function(r){return vc(n),r.data=pc.call(n,n.transformResponse,r),r.headers=yt.from(r.headers),r},function(r){return kh(r)||(vc(n),r&&r.response&&(r.response.data=pc.call(n,n.transformResponse,r.response),r.response.headers=yt.from(r.response.headers))),Promise.reject(r)})}const Wh="1.11.0",Qi={};["object","boolean","number","function","string","symbol"].forEach((n,s)=>{Qi[n]=function(r){return typeof r===n||"a"+(s<1?"n ":" ")+n}});const rh={};Qi.transitional=function(s,c,r){function f(d,g){return"[Axios v"+Wh+"] Transitional option '"+d+"'"+g+(r?". "+r:"")}return(d,g,x)=>{if(s===!1)throw new ie(f(g," has been removed"+(c?" in "+c:"")),ie.ERR_DEPRECATED);return c&&!rh[g]&&(rh[g]=!0,console.warn(f(g," has been deprecated since v"+c+" and will be removed in the near future"))),s?s(d,g,x):!0}};Qi.spelling=function(s){return(c,r)=>(console.warn(`${r} is likely a misspelling of ${s}`),!0)};function Bv(n,s,c){if(typeof n!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let f=r.length;for(;f-- >0;){const d=r[f],g=s[d];if(g){const x=n[d],p=x===void 0||g(x,d,n);if(p!==!0)throw new ie("option "+d+" must be "+p,ie.ERR_BAD_OPTION_VALUE);continue}if(c!==!0)throw new ie("Unknown option "+d,ie.ERR_BAD_OPTION)}}const zi={assertOptions:Bv,validators:Qi},Kt=zi.validators;let sa=class{constructor(s){this.defaults=s||{},this.interceptors={request:new I0,response:new I0}}request(s,c){return Oe(this,null,function*(){try{return yield this._request(s,c)}catch(r){if(r instanceof Error){let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const d=f.stack?f.stack.replace(/^.+\n/,""):"";try{r.stack?d&&!String(r.stack).endsWith(d.replace(/^.+\n.+\n/,""))&&(r.stack+=`
65
- `+d):r.stack=d}catch(g){}}throw r}})}_request(s,c){typeof s=="string"?(c=c||{},c.url=s):c=s||{},c=ra(this.defaults,c);const{transitional:r,paramsSerializer:f,headers:d}=c;r!==void 0&&zi.assertOptions(r,{silentJSONParsing:Kt.transitional(Kt.boolean),forcedJSONParsing:Kt.transitional(Kt.boolean),clarifyTimeoutError:Kt.transitional(Kt.boolean)},!1),f!=null&&(_.isFunction(f)?c.paramsSerializer={serialize:f}:zi.assertOptions(f,{encode:Kt.function,serialize:Kt.function},!0)),c.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?c.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:c.allowAbsoluteUrls=!0),zi.assertOptions(c,{baseUrl:Kt.spelling("baseURL"),withXsrfToken:Kt.spelling("withXSRFToken")},!0),c.method=(c.method||this.defaults.method||"get").toLowerCase();let g=d&&_.merge(d.common,d[c.method]);d&&_.forEach(["delete","get","head","post","put","patch","common"],M=>{delete d[M]}),c.headers=yt.concat(g,d);const x=[];let p=!0;this.interceptors.request.forEach(function(z){typeof z.runWhen=="function"&&z.runWhen(c)===!1||(p=p&&z.synchronous,x.unshift(z.fulfilled,z.rejected))});const m=[];this.interceptors.response.forEach(function(z){m.push(z.fulfilled,z.rejected)});let v,E=0,R;if(!p){const M=[sh.bind(this),void 0];for(M.unshift(...x),M.push(...m),R=M.length,v=Promise.resolve(c);E<R;)v=v.then(M[E++],M[E++]);return v}R=x.length;let U=c;for(E=0;E<R;){const M=x[E++],z=x[E++];try{U=M(U)}catch(D){z.call(this,D);break}}try{v=sh.call(this,U)}catch(M){return Promise.reject(M)}for(E=0,R=m.length;E<R;)v=v.then(m[E++],m[E++]);return v}getUri(s){s=ra(this.defaults,s);const c=Zh(s.baseURL,s.url,s.allowAbsoluteUrls);return Vh(c,s.params,s.paramsSerializer)}};_.forEach(["delete","get","head","options"],function(s){sa.prototype[s]=function(c,r){return this.request(ra(r||{},{method:s,url:c,data:(r||{}).data}))}});_.forEach(["post","put","patch"],function(s){function c(r){return function(d,g,x){return this.request(ra(x||{},{method:s,headers:r?{"Content-Type":"multipart/form-data"}:{},url:d,data:g}))}}sa.prototype[s]=c(),sa.prototype[s+"Form"]=c(!0)});let Hv=class Ph{constructor(s){if(typeof s!="function")throw new TypeError("executor must be a function.");let c;this.promise=new Promise(function(d){c=d});const r=this;this.promise.then(f=>{if(!r._listeners)return;let d=r._listeners.length;for(;d-- >0;)r._listeners[d](f);r._listeners=null}),this.promise.then=f=>{let d;const g=new Promise(x=>{r.subscribe(x),d=x}).then(f);return g.cancel=function(){r.unsubscribe(d)},g},s(function(d,g,x){r.reason||(r.reason=new Pa(d,g,x),c(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const c=this._listeners.indexOf(s);c!==-1&&this._listeners.splice(c,1)}toAbortSignal(){const s=new AbortController,c=r=>{s.abort(r)};return this.subscribe(c),s.signal.unsubscribe=()=>this.unsubscribe(c),s.signal}static source(){let s;return{token:new Ph(function(f){s=f}),cancel:s}}};function Lv(n){return function(c){return n.apply(null,c)}}function qv(n){return _.isObject(n)&&n.isAxiosError===!0}const Tc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Tc).forEach(([n,s])=>{Tc[s]=n});function Ih(n){const s=new sa(n),c=Dh(sa.prototype.request,s);return _.extend(c,sa.prototype,s,{allOwnKeys:!0}),_.extend(c,s,null,{allOwnKeys:!0}),c.create=function(f){return Ih(ra(n,f))},c}const me=Ih(fu);me.Axios=sa;me.CanceledError=Pa;me.CancelToken=Hv;me.isCancel=kh;me.VERSION=Wh;me.toFormData=Xi;me.AxiosError=ie;me.Cancel=me.CanceledError;me.all=function(s){return Promise.all(s)};me.spread=Lv;me.isAxiosError=qv;me.mergeConfig=ra;me.AxiosHeaders=yt;me.formToJSON=n=>Xh(_.isHTMLForm(n)?new FormData(n):n);me.getAdapter=Fh.getAdapter;me.HttpStatusCode=Tc;me.default=me;const{Axios:D2,AxiosError:O2,CanceledError:C2,isCancel:M2,CancelToken:z2,VERSION:_2,all:U2,Cancel:B2,isAxiosError:H2,spread:L2,toFormData:q2,AxiosHeaders:Y2,HttpStatusCode:V2,formToJSON:G2,getAdapter:X2,mergeConfig:k2}=me,ch=n=>{let s;const c=new Set,r=(m,v)=>{const E=typeof m=="function"?m(s):m;if(!Object.is(E,s)){const R=s;s=(v!=null?v:typeof E!="object"||E===null)?E:Object.assign({},s,E),c.forEach(U=>U(s,R))}},f=()=>s,x={setState:r,getState:f,getInitialState:()=>p,subscribe:m=>(c.add(m),()=>c.delete(m))},p=s=n(r,f,x);return x},Yv=n=>n?ch(n):ch,Vv=n=>n;function Gv(n,s=Vv){const c=Ti.useSyncExternalStore(n.subscribe,Ti.useCallback(()=>s(n.getState()),[n,s]),Ti.useCallback(()=>s(n.getInitialState()),[n,s]));return Ti.useDebugValue(c),c}const oh=n=>{const s=Yv(n),c=r=>Gv(s,r);return Object.assign(c,s),c},em=n=>n?oh(n):oh,st=window.location.origin,Hi=em(n=>({Rootname:"",setRootname:s=>n({Rootname:s})})),ct=em(n=>({TransactionKey:"",setTransactionKey:s=>n({TransactionKey:s}),loadKey:()=>Oe(null,null,function*(){if(sessionStorage.getItem("transactionToken")){n({TransactionKey:sessionStorage.getItem("transactionToken")});return}yield me.get(`${st}/api/get-token`).then(s=>{var c,r,f,d;s.status===200&&(sessionStorage.setItem("transactionToken",(r=(c=s.data)==null?void 0:c.data)==null?void 0:r.originSessionKey),n({TransactionKey:(d=(f=s.data)==null?void 0:f.data)==null?void 0:d.originSessionKey}))}).catch(s=>{console.error("Error fetching transaction key:",s)})})})),Xv=()=>{const[n,s]=S.useState(!1),{Rootname:c}=Hi(d=>d),{setRootname:r}=Hi(d=>d),{TransactionKey:f}=ct(d=>d);return S.useEffect(()=>{me.get(`${st}/api/db/databases?transactiontoken=${f}`).then(d=>{var g;d.status===200&&r((g=d.data.data.RootName)!=null?g:"AxioDB")})},[]),o.jsx("header",{className:"bg-gradient-to-r from-blue-700 to-indigo-800 shadow-lg",children:o.jsx("nav",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:o.jsx("div",{className:"flex items-center justify-between h-16",children:o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"flex-shrink-0",children:o.jsxs(tu,{to:"/",className:"flex items-center",children:[o.jsx("img",{src:"/AXioDB.png",alt:"AxioDB Logo",className:"h-9 w-9"}),o.jsxs("span",{className:"ml-2 text-white font-bold text-xl tracking-tight",children:[c," Admin Hub"]})]})}),o.jsx("div",{className:"hidden md:block ml-10",children:o.jsxs("div",{className:"flex space-x-4",children:[o.jsx(tu,{to:"/",className:"text-blue-100 hover:bg-blue-600 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors",children:"Dashboard"}),o.jsx(tu,{to:"/operations",className:"text-blue-100 hover:bg-blue-600 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors",children:"Operations"})]})})]})})})})};function kv(n,s){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},n),S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"}))}const Qv=S.forwardRef(kv);function Zv(n,s){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},n),S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"}))}const Kv=S.forwardRef(Zv);function Jv(n,s){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},n),S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"}))}const tm=S.forwardRef(Jv);function $v(n,s){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},n),S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}))}const Fv=S.forwardRef($v);function Wv(n,s){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},n),S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"}))}const Pv=S.forwardRef(Wv);function Iv(n,s){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},n),S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"}))}const e2=S.forwardRef(Iv);function t2(n,s){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},n),S.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))}const l2=S.forwardRef(t2);function a2(n,s){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},n),S.createElement("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}const n2=S.forwardRef(a2),u2=({treeDB:n})=>{const[s,c]=S.useState(!0),[r,f]=S.useState({}),[d,g]=S.useState([]),x=m=>{f(v=>nt(pe({},v),{[m]:!v[m]}))};S.useEffect(()=>{const m=()=>{if(!n||!Array.isArray(n)){g([]),c(!1);return}const v=n.map((E,R)=>{const U=`db${R+1}`;return{id:U,name:E.name,type:"database",children:Array.isArray(E.collections)?E.collections.map((M,z)=>({id:`${U}_col${z+1}`,name:M.name||M,type:"collection",documentCount:M.documentCount||0,size:"0 MB"})):[]}});v.length>0&&f({[v[0].id]:!0}),g(v),c(!1)};setTimeout(()=>{m()},500)},[n]);const p=m=>{const v=r[m.id];return o.jsxs("div",{children:[o.jsxs("div",{className:`flex items-center py-2 px-3 ${m.type==="database"?"bg-blue-50 hover:bg-blue-100 border-b border-blue-100":"hover:bg-gray-50 pl-10"} cursor-pointer transition-colors`,onClick:()=>m.children&&x(m.id),children:[m.children?o.jsx("div",{className:"mr-1",children:v?o.jsx(l2,{className:"h-4 w-4 text-gray-500"}):o.jsx(n2,{className:"h-4 w-4 text-gray-500"})}):o.jsx("div",{className:"w-4 mr-1"}),m.type==="database"?o.jsx(tm,{className:"h-5 w-5 text-blue-600 mr-2"}):o.jsx(Pv,{className:"h-5 w-5 text-yellow-600 mr-2"}),o.jsx("div",{className:"flex-grow",children:o.jsx("span",{className:"font-medium",children:m.name})}),m.type==="collection"&&o.jsx("div",{className:"text-xs text-gray-500",children:o.jsxs("span",{className:"mr-2",children:[m.documentCount," docs"]})})]}),m.children&&v&&o.jsx("div",{className:"border-l border-gray-200 ml-5",children:m.children.map(p)})]},m.id)};return o.jsxs("div",{className:"bg-white rounded-lg shadow-md hover:shadow-lg transition-shadow",children:[o.jsxs("div",{className:"border-b border-gray-200 py-4 px-6",children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Database Structure"}),o.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Overview of databases and collections"})]}),o.jsx("div",{className:"overflow-y-auto",style:{maxHeight:"400px"},children:s?o.jsx("div",{className:"p-6 space-y-3",children:[1,2,3].map(m=>o.jsxs("div",{className:"animate-pulse",children:[o.jsx("div",{className:"h-6 bg-gray-200 rounded w-3/4 mb-2"}),o.jsxs("div",{className:"pl-6 space-y-2",children:[o.jsx("div",{className:"h-5 bg-gray-100 rounded w-2/3"}),o.jsx("div",{className:"h-5 bg-gray-100 rounded w-2/3"}),o.jsx("div",{className:"h-5 bg-gray-100 rounded w-2/3"})]})]},m))}):o.jsx("div",{children:d.map(p)})})]})},i2=({CacheStorageInfo:n})=>{const[s,c]=S.useState(!0);S.useEffect(()=>{(()=>{setTimeout(()=>{c(!1)},800)})()},[]);const r=n.Storage/n.Max*100;return o.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:[o.jsxs("div",{className:"flex justify-between mb-3",children:[o.jsxs("div",{children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"In-Memory Cache"}),s?o.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-24"}):o.jsxs("p",{className:"text-3xl font-bold text-orange-600 mt-2",children:[n.Storage," ",o.jsx("span",{className:"text-lg",children:n.Unit})]}),o.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:["of ",n.Max," ",n.Unit," allocated"]})]}),o.jsx("div",{className:"p-3 bg-orange-100 rounded-full",children:o.jsx(Qv,{className:"h-8 w-8 text-orange-600"})})]}),o.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2.5 mt-2",children:o.jsx("div",{className:"bg-orange-600 h-2.5 rounded-full",style:{width:`${s?0:r}%`}})})]})},s2=({storageInfo:n})=>{const[s,c]=S.useState(!0);S.useEffect(()=>{(()=>{setTimeout(()=>{c(!1)},800)})()},[]);const r=(n==null?void 0:n.total)/(n==null?void 0:n.machine)*100;return o.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:[o.jsxs("div",{className:"flex justify-between mb-3",children:[o.jsxs("div",{children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Storage Used"}),s?o.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-24"}):o.jsxs("p",{className:"text-3xl font-bold text-green-600 mt-2",children:[n==null?void 0:n.total," ",o.jsx("span",{className:"text-lg",children:n==null?void 0:n.matrixUnit})]}),o.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:["of ",n==null?void 0:n.machine," ",n==null?void 0:n.matrixUnit," available"]})]}),o.jsx("div",{className:"p-3 bg-green-100 rounded-full",children:o.jsx(e2,{className:"h-8 w-8 text-green-600"})})]}),o.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2.5 mt-2",children:o.jsx("div",{className:"bg-green-600 h-2.5 rounded-full",style:{width:`${s?0:r}%`}})})]})},r2=({totalCollections:n})=>{const[s,c]=S.useState(!0);return S.useEffect(()=>{(()=>{setTimeout(()=>{c(!1)},600)})()},[]),o.jsx("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:o.jsxs("div",{className:"flex justify-between",children:[o.jsx("div",{children:s?o.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-16"}):o.jsxs("p",{className:"text-2xl font-bold text-indigo-600 mt-2",children:[n," ",n<=1?"Collection":"Collections"]})}),o.jsx("div",{className:"p-3 bg-indigo-100 rounded-full",children:o.jsx(Kv,{className:"h-8 w-8 text-indigo-600"})})]})})},c2=({totalDatabases:n})=>{const[s,c]=S.useState(!0);return S.useEffect(()=>{setTimeout(()=>{c(!1)},1e3)},[]),o.jsx("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:o.jsxs("div",{className:"flex justify-between",children:[o.jsx("div",{children:s?o.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-16 text-center"}):o.jsx("p",{className:"text-2xl font-bold text-blue-600 mt-2 text-center",children:n<=1?`${n} Database`:`${n} Databases`})}),o.jsx("div",{className:"p-3 bg-blue-100 rounded-full",children:o.jsx(tm,{className:"h-8 w-8 text-blue-600"})})]})})},o2=({totalDocuments:n})=>{const[s,c]=S.useState(!0);return S.useEffect(()=>{(()=>{setTimeout(()=>{c(!1)},700)})()},[]),o.jsx("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:o.jsxs("div",{className:"flex justify-between",children:[o.jsxs("div",{children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Total Documents"}),s?o.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-20"}):o.jsx("p",{className:"text-3xl font-bold text-purple-600 mt-2",children:n}),o.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Across all collections"})]}),o.jsx("div",{className:"p-3 bg-purple-100 rounded-full",children:o.jsx(Fv,{className:"h-8 w-8 text-purple-600"})})]})})},f2=()=>{const[n,s]=S.useState(!0),[c,r]=S.useState(null),{TransactionKey:f}=ct(d=>d);return S.useEffect(()=>{me.get(`${st}/api/dashboard-stats?transactiontoken=${f}`).then(d=>{d.status===200&&(r(d.data.data),s(!1))})},[]),o.jsxs("div",{className:"container mx-auto px-4 py-6",children:[o.jsx("div",{className:"mb-6",children:o.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Dashboard"})}),n?o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-6 mb-8",children:[1,2,3,4,5].map(d=>o.jsx("div",{className:"h-32 bg-gray-200 rounded-lg animate-pulse"},d))}):o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-6 mb-8",children:[o.jsx(c2,{totalDatabases:(c==null?void 0:c.totalDatabases)||0}),o.jsx(r2,{totalCollections:(c==null?void 0:c.totalCollections)||0}),o.jsx(o2,{totalDocuments:(c==null?void 0:c.totalDocuments)||0}),o.jsx(s2,{storageInfo:(c==null?void 0:c.storageInfo)||{}}),o.jsx(i2,{CacheStorageInfo:(c==null?void 0:c.cacheStorage)||{}})]}),o.jsx("div",{className:"mb-8",children:o.jsx(u2,{treeDB:(c==null?void 0:c.nodeTree)||[]})})]})},d2=({isOpen:n,onClose:s,onDatabaseCreated:c})=>{const[r,f]=S.useState(""),[d,g]=S.useState(!1),[x,p]=S.useState(""),{TransactionKey:m}=ct(R=>R),v=()=>{f(""),p(""),g(!1),s()},E=R=>Oe(null,null,function*(){var U,M;if(R.preventDefault(),!r.trim()){p("Database name is required");return}if(!/^[a-zA-Z0-9_]+$/.test(r)){p("Database name can only contain letters, numbers, and underscores");return}g(!0),p("");try{const z=yield me.post(`${st}/api/db/create-database`,{name:r},{params:{transactiontoken:m}});if(z.data.statusCode===200||z.data.statusCode===201)c(r),g(!1),v();else throw g(!1),new Error("Failed to create database")}catch(z){console.error("Error creating database:",z),p(((M=(U=z.response)==null?void 0:U.data)==null?void 0:M.message)||"Failed to create database. Please try again."),g(!1)}});return n?o.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 animate-fadeIn",children:o.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[o.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Create New Database"}),o.jsxs("form",{onSubmit:E,children:[o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{htmlFor:"databaseName",className:"block text-sm font-medium text-gray-700 mb-1",children:"Database Name"}),o.jsx("input",{type:"text",id:"databaseName",value:r,onChange:R=>f(R.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter database name",disabled:d}),x&&o.jsx("p",{className:"mt-2 text-sm text-red-600",children:x})]}),o.jsxs("div",{className:"flex justify-end space-x-4 mt-6",children:[o.jsx("button",{type:"button",onClick:v,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",disabled:d,children:"Cancel"}),o.jsx("button",{type:"submit",className:`px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700 transition-colors flex items-center ${d?"opacity-75 cursor-not-allowed":""}`,disabled:d,children:d?o.jsxs(o.Fragment,{children:[o.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[o.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),o.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Creating..."]}):"Create Database"})]})]})]})}):null},h2=({isOpen:n,dbName:s,onClose:c,onConfirmDelete:r})=>{const{TransactionKey:f}=ct(p=>p),[d,g]=S.useState(!1);if(!n)return null;const x=()=>Oe(null,null,function*(){var p,m;g(!0);try{const v=yield me.delete(`${st}/api/db/delete-database`,{params:{transactiontoken:f,dbName:s}});if(v.status===200)console.log("Database deleted successfully:",v.data),r();else throw new Error("Failed to delete database")}catch(v){console.error("Error deleting database:",v),alert(((m=(p=v.response)==null?void 0:p.data)==null?void 0:m.message)||"Failed to delete database. Please try again.")}finally{g(!1)}});return o.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:o.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6 animate-fadeIn",children:[o.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Confirm Deletion"}),o.jsxs("p",{className:"text-gray-700 mb-6",children:['Are you sure you want to delete the database "',s,'"? This action cannot be undone.']}),o.jsxs("div",{className:"flex justify-end space-x-4",children:[o.jsx("button",{onClick:c,disabled:d,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",children:"Cancel"}),o.jsx("button",{onClick:x,disabled:d,className:`px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700 transition-colors flex items-center ${d?"opacity-75 cursor-not-allowed":""}`,children:d?o.jsxs(o.Fragment,{children:[o.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[o.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),o.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Deleting..."]}):"Delete"})]})]})})},m2=({databases:n,onDeleteClick:s,loading:c})=>{const r=iu(),[f,d]=S.useState({}),g=p=>{d(m=>nt(pe({},m),{[p]:!1}))},x=p=>{r(`/collections?database=${encodeURIComponent(p)}`)};return o.jsxs("div",{className:"bg-white rounded-lg shadow-md overflow-hidden",children:[o.jsxs("div",{className:"border-b border-gray-200 bg-gray-50 px-6 py-4",children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Your Databases"}),o.jsxs("p",{className:"text-sm text-gray-500",children:["Total: ",c?"Loading...":n==null?void 0:n.TotalDatabases]})]}),c?o.jsx("div",{className:"p-6",children:[1,2,3].map(p=>o.jsxs("div",{className:"animate-pulse flex items-center justify-between py-4 border-b border-gray-100",children:[o.jsxs("div",{children:[o.jsx("div",{className:"h-6 bg-gray-200 rounded w-48 mb-2"}),o.jsx("div",{className:"h-4 bg-gray-100 rounded w-32"})]}),o.jsx("div",{className:"h-8 bg-gray-200 rounded w-24"})]},p))}):o.jsx("ul",{className:"divide-y divide-gray-200",children:n!=null&&n.ListOfDatabases&&(n==null?void 0:n.ListOfDatabases.length)>0?n.ListOfDatabases.map((p,m)=>o.jsxs("li",{className:`px-6 py-4 flex items-center justify-between hover:bg-gray-50 transition-all duration-300 ${f[p]?"animate-slideIn":"animate-fadeIn"}`,onAnimationEnd:()=>g(p),children:[o.jsxs("div",{children:[o.jsx("h4",{className:"text-lg font-medium text-gray-900",children:p}),o.jsxs("p",{className:"text-sm text-gray-500",children:["Path: ",n.AllDatabasesPaths[m]]})]}),o.jsxs("div",{className:"flex space-x-2",children:[o.jsx("button",{onClick:()=>x(p),className:"text-blue-600 hover:text-blue-800 px-3 py-1 rounded border border-blue-200 hover:border-blue-400 transition-colors",children:"View Collections"}),o.jsx("button",{onClick:()=>s(p),className:"text-red-600 hover:text-red-800 px-3 py-1 rounded border border-red-200 hover:border-red-400 transition-colors",children:"Delete"})]})]},p)):o.jsx("li",{className:"px-6 py-8 text-center text-gray-500",children:'No databases found. Click "Create Database" to add one.'})})]})},g2=()=>{const[n,s]=S.useState(!0),[c,r]=S.useState([]),[f,d]=S.useState(!1),[g,x]=S.useState(!1),[p,m]=S.useState(""),{TransactionKey:v}=ct(z=>z),{Rootname:E}=Hi(z=>z);S.useEffect(()=>{v&&Oe(null,null,function*(){try{const D=yield me.get(`${st}/api/db/databases?transactiontoken=${v}`);D.status===200&&(r(D.data.data),s(!1))}catch(D){console.error("Error fetching databases:",D),s(!1),r([])}})},[v]);const R=z=>{m(z),d(!0)},U=()=>{r(z=>nt(pe({},z),{ListOfDatabases:z.ListOfDatabases.filter(D=>D!==p),TotalDatabases:`${z.ListOfDatabases.length-1} Databases`})),d(!1),m("")},M=z=>{r(D=>nt(pe({},D),{ListOfDatabases:[...D.ListOfDatabases,z],TotalDatabases:`${D.ListOfDatabases.length+1} Databases`,AllDatabasesPaths:[...D.AllDatabasesPaths,`${D.CurrentPath}/${z}`]}))};return o.jsxs("div",{className:"container mx-auto px-4 py-6",children:[o.jsxs("div",{className:"flex justify-between items-center mb-6",children:[o.jsxs("div",{children:[o.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Databases"}),o.jsxs("p",{className:"text-gray-600",children:["Manage your ",E," databases"]})]}),o.jsxs("button",{onClick:()=>x(!0),className:"bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-lg flex items-center transition-colors",children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:o.jsx("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"})}),"Create Database"]})]}),o.jsx(m2,{databases:c,onDeleteClick:R,loading:n}),o.jsx(d2,{isOpen:g,onClose:()=>x(!1),onDatabaseCreated:M}),o.jsx(h2,{isOpen:f,dbName:p,onClose:()=>d(!1),onConfirmDelete:U})]})},y2=({isOpen:n,onClose:s,onCollectionCreated:c,databaseName:r})=>{const[f,d]=S.useState(""),[g,x]=S.useState(!1),[p,m]=S.useState(""),[v,E]=S.useState(!1),[R,U]=S.useState(""),{TransactionKey:M}=ct(V=>V),z=()=>{d(""),x(!1),m(""),U(""),E(!1),s()},D=V=>Oe(null,null,function*(){var G,k;if(V.preventDefault(),!f.trim()){U("Collection name is required");return}if(!/^[a-zA-Z0-9_]+$/.test(f)){U("Collection name can only contain letters, numbers, and underscores");return}if(g&&!p.trim()){U("Encryption key is required when encryption is enabled");return}E(!0),U("");try{const I=yield me.post(`${st}/api/collection/create-collection`,{dbName:r,collectionName:f,crypto:g,key:g?p:""},{params:{transactiontoken:M}});if(I.data.statusCode===200||I.data.statusCode===201)c({name:f,documentCount:0,size:"N/A"}),z();else throw new Error("Failed to create collection")}catch(I){console.error("Error creating collection:",I),U(((k=(G=I.response)==null?void 0:G.data)==null?void 0:k.message)||"Failed to create collection. Please try again."),E(!1)}});return n?o.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 animate-fadeIn",children:o.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[o.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Create New Collection"}),o.jsxs("form",{onSubmit:D,children:[o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{htmlFor:"databaseName",className:"block text-sm font-medium text-gray-700 mb-1",children:"Database Name"}),o.jsx("input",{type:"text",id:"databaseName",value:r,className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm bg-gray-100 cursor-not-allowed",disabled:!0})]}),o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{htmlFor:"collectionName",className:"block text-sm font-medium text-gray-700 mb-1",children:"Collection Name"}),o.jsx("input",{type:"text",id:"collectionName",value:f,onChange:V=>d(V.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter collection name",disabled:v})]}),o.jsx("div",{className:"mb-4",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("label",{htmlFor:"enableCrypto",className:"text-sm font-medium text-gray-700",children:"Enable Encryption"}),o.jsxs("div",{className:"relative inline-block w-10 mr-2 align-middle select-none",children:[o.jsx("input",{type:"checkbox",id:"enableCrypto",checked:g,onChange:()=>x(!g),className:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer",disabled:v}),o.jsx("label",{htmlFor:"enableCrypto",className:`toggle-label block overflow-hidden h-6 rounded-full cursor-pointer ${g?"bg-green-500":"bg-gray-300"}`})]})]})}),g&&o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{htmlFor:"cryptoKey",className:"block text-sm font-medium text-gray-700 mb-1",children:"Encryption Key"}),o.jsx("input",{type:"password",id:"cryptoKey",value:p,onChange:V=>m(V.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter encryption key",disabled:v})]}),R&&o.jsx("p",{className:"mt-2 text-sm text-red-600",children:R}),o.jsxs("div",{className:"flex justify-end space-x-4 mt-6",children:[o.jsx("button",{type:"button",onClick:z,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",disabled:v,children:"Cancel"}),o.jsx("button",{type:"submit",className:`px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700 transition-colors flex items-center ${v?"opacity-75 cursor-not-allowed":""}`,disabled:v,children:v?o.jsxs(o.Fragment,{children:[o.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[o.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),o.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Creating..."]}):"Create Collection"})]})]})]})}):null},p2=({isOpen:n,onClose:s,onCollectionDeleted:c,databaseName:r,collectionName:f})=>{const[d,g]=S.useState(!1),[x,p]=S.useState(""),{TransactionKey:m}=ct(R=>R),v=()=>{p(""),g(!1),s()},E=()=>Oe(null,null,function*(){var R,U;g(!0),p("");try{if((yield me.delete(`${st}/api/collection/delete-collection/?dbName=${r}&collectionName=${f}&transactiontoken=${m}`)).data.statusCode===200)c(f),v();else throw new Error("Failed to delete collection")}catch(M){console.error("Error deleting collection:",M),p(((U=(R=M.response)==null?void 0:R.data)==null?void 0:U.message)||"Failed to delete collection. Please try again."),g(!1)}});return n?o.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 animate-fadeIn",children:o.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[o.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Delete Collection"}),o.jsxs("p",{className:"mb-6 text-gray-600",children:["Are you sure you want to delete the collection"," ",o.jsx("span",{className:"font-semibold",children:f})," from database"," ",o.jsx("span",{className:"font-semibold",children:r}),"? This action cannot be undone."]}),x&&o.jsx("p",{className:"mb-4 text-sm text-red-600",children:x}),o.jsxs("div",{className:"flex justify-end space-x-4 mt-6",children:[o.jsx("button",{type:"button",onClick:v,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",disabled:d,children:"Cancel"}),o.jsx("button",{type:"button",onClick:E,className:`px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700 transition-colors flex items-center ${d?"opacity-75 cursor-not-allowed":""}`,disabled:d,children:d?o.jsxs(o.Fragment,{children:[o.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[o.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),o.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Deleting..."]}):"Delete Collection"})]})]})}):null},v2=()=>{const[n]=Ah(),s=iu(),[c,r]=S.useState(!0),[f,d]=S.useState([]),[g,x]=S.useState([]),[p,m]=S.useState(!1),[v,E]=S.useState(!1),[R,U]=S.useState(""),M=n.get("database"),{TransactionKey:z}=ct(F=>F),{Rootname:D}=Hi(F=>F),V=()=>Oe(null,null,function*(){try{const F=yield me.get(`${st}/api/collection/all/?databaseName=${M}&transactiontoken=${z}`);if(F.status===200){const ce=F.data.data||{};if(ce.ListOfCollections&&Array.isArray(ce.ListOfCollections)){const fe=ce.CollectionSizeMap||[],Ce=ce.collectionMetaStatus||[];x(Ce);const tt=ce.ListOfCollections.map(we=>{const xe=fe.find(Ke=>{const qe=Ke.folderPath.split("/");return qe[qe.length-1]===we}),ze=Ce.find(Ke=>Ke.name===we);return{name:we,documentCount:xe?xe.fileCount:0,isEncrypted:(ze==null?void 0:ze.isEncrypted)||!1,isSchemaNeeded:(ze==null?void 0:ze.isSchemaNeeded)||!1,schema:(ze==null?void 0:ze.schema)||{}}});d(tt)}else d([]);r(!1)}}catch(F){console.error("Error fetching collections:",F),r(!1),d([])}});S.useEffect(()=>{if(!M){s("/databases");return}z&&V()},[z,M,s]);const G=()=>{s("/operations")},k=()=>{V()},I=F=>{U(F),E(!0)},X=()=>{V()};return o.jsxs("div",{className:"container mx-auto px-4 py-6",children:[o.jsxs("div",{className:"flex justify-between items-center mb-6",children:[o.jsxs("div",{children:[o.jsx("div",{className:"flex items-center mb-2",children:o.jsx("button",{onClick:G,className:"text-blue-600 hover:text-blue-800 mr-3",children:"← Back to Databases"})}),o.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Collections"}),o.jsxs("p",{className:"text-gray-600",children:["Collections in database:"," ",o.jsx("span",{className:"font-medium",children:M})]})]}),o.jsxs("button",{onClick:()=>m(!0),className:"bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-lg flex items-center transition-colors",children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:o.jsx("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"})}),"Create Collection"]})]}),o.jsxs("div",{className:"bg-white rounded-lg shadow-md overflow-hidden",children:[o.jsxs("div",{className:"border-b border-gray-200 bg-gray-50 px-6 py-4",children:[o.jsxs("h3",{className:"text-lg font-medium text-gray-900",children:["Collections in ",M]}),o.jsxs("p",{className:"text-sm text-gray-500",children:["Total:"," ",c?"Loading...":f.length>0?`${f.length} Collections`:"0 Collections"]})]}),c?o.jsx("div",{className:"p-6",children:[1,2,3].map(F=>o.jsxs("div",{className:"animate-pulse flex items-center justify-between py-4 border-b border-gray-100",children:[o.jsxs("div",{children:[o.jsx("div",{className:"h-6 bg-gray-200 rounded w-48 mb-2"}),o.jsx("div",{className:"h-4 bg-gray-100 rounded w-32"})]}),o.jsx("div",{className:"h-8 bg-gray-200 rounded w-24"})]},F))}):o.jsx("ul",{className:"divide-y divide-gray-200",children:f.length>0?f.map(F=>o.jsxs("li",{className:"px-6 py-4 flex items-center justify-between hover:bg-gray-50 transition-colors",children:[o.jsxs("div",{children:[o.jsxs("h4",{className:"text-lg font-medium text-gray-900 flex items-center",children:[F.name,F.isEncrypted?o.jsx("span",{className:"ml-2 text-green-600",title:"Encrypted Collection",children:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:o.jsx("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})})}):o.jsx("span",{className:"ml-2 text-gray-400",title:"Unencrypted Collection",children:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:o.jsx("path",{d:"M10 2a5 5 0 00-5 5v2a2 2 0 00-2 2v5a2 2 0 002 2h10a2 2 0 002-2v-5a2 2 0 00-2-2H7V7a3 3 0 015.905-.75 1 1 0 001.937-.5A5.002 5.002 0 0010 2z"})})})]}),o.jsxs("p",{className:"text-sm text-gray-500",children:[F.documentCount," documents"]})]}),o.jsxs("div",{className:"flex space-x-2",children:[o.jsx("button",{onClick:()=>s(`/collections/documents?database=${M}&collection=${F.name}`),className:"text-blue-600 hover:text-blue-800 px-3 py-1 rounded border border-blue-200 hover:border-blue-400 transition-colors",children:"View Documents"}),o.jsx("button",{onClick:()=>I(F.name),className:"text-red-600 hover:text-red-800 px-3 py-1 rounded border border-red-200 hover:border-red-400 transition-colors",children:"Delete"})]})]},F.name)):o.jsx("li",{className:"px-6 py-8 text-center text-gray-500",children:'No collections found in this database. Click "Create Collection" to add one.'})})]}),p&&o.jsx(y2,{isOpen:p,onClose:()=>m(!1),onCollectionCreated:k,databaseName:M}),v&&o.jsx(p2,{isOpen:v,onClose:()=>E(!1),onCollectionDeleted:X,databaseName:M,collectionName:R})]})},x2=({isOpen:n,onClose:s,onDocumentInserted:c,databaseName:r,collectionName:f,onSuccess:d})=>{const[g,x]=S.useState(`{
66
-
67
- }`),[p,m]=S.useState(""),[v,E]=S.useState(!1),{TransactionKey:R}=ct(M=>M),U=M=>Oe(null,null,function*(){var z;M.preventDefault(),m("");try{const D=JSON.parse(g);E(!0);const V=yield me.post(`${st}/api/operation/create/?dbName=${r}&collectionName=${f}&transactiontoken=${R}`,pe({},D));if(V.status===200||V.status===201){const G=(z=V.data.data)==null?void 0:z.documentId,k=nt(pe({},D),{documentId:G||`doc_${Date.now()}`,updatedAt:new Date().toISOString()});c(k),s(),typeof d=="function"&&d()}else throw new Error("Failed to insert document")}catch(D){D instanceof SyntaxError?m("Invalid JSON format. Please check your input."):m(`Error inserting document: ${D.message}`),E(!1)}});return n?o.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 overflow-y-auto h-full w-full z-50 flex justify-center items-center backdrop-blur-sm",children:o.jsxs("div",{className:"relative bg-white rounded-lg shadow-2xl max-w-2xl w-full mx-4 max-h-[90vh] flex flex-col",children:[o.jsxs("div",{className:"flex justify-between items-center p-5 border-b",children:[o.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 mr-2 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Insert New Document"]}),o.jsx("button",{onClick:s,className:"text-gray-400 hover:text-gray-500 transition-colors",children:o.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),o.jsxs("div",{className:"p-6 overflow-y-auto flex-grow",children:[o.jsxs("div",{className:"mb-4 flex items-center space-x-2 bg-blue-50 p-3 rounded-md",children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-blue-500",viewBox:"0 0 20 20",fill:"currentColor",children:o.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})}),o.jsxs("p",{className:"text-sm text-blue-700",children:["Enter the document data in JSON format to insert into"," ",o.jsx("span",{className:"font-semibold",children:f})]})]}),p&&o.jsx("div",{className:"mb-4 bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:o.jsx("p",{children:p})}),o.jsxs("form",{onSubmit:U,children:[o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Document Data (JSON)"}),o.jsx("textarea",{value:g,onChange:M=>x(M.target.value),className:"w-full h-64 p-3 border border-gray-300 rounded-md font-mono text-sm focus:ring-blue-500 focus:border-blue-500 shadow-inner bg-gray-50",placeholder:"Enter JSON document data",required:!0}),o.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"The documentId and updatedAt fields will be automatically generated."})]}),o.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[o.jsx("button",{type:"button",onClick:s,className:"px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50 transition-colors",children:"Cancel"}),o.jsx("button",{type:"submit",disabled:v,className:`px-4 py-2 rounded-md text-white flex items-center ${v?"bg-green-500":"bg-green-600 hover:bg-green-700"} transition-colors shadow-md`,children:v?o.jsxs(o.Fragment,{children:[o.jsxs("svg",{className:"animate-spin h-5 w-5 mr-2",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[o.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),o.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Inserting..."]}):"Insert Document"})]})]})]})]})}):null},b2=({isOpen:n,onClose:s,onDocumentUpdated:c,document:r,databaseName:f,collectionName:d})=>{const[g,x]=S.useState(""),[p,m]=S.useState(""),[v,E]=S.useState(!1),{TransactionKey:R}=ct(M=>M);S.useEffect(()=>{if(r){const M=r,{documentId:z,updatedAt:D}=M,V=aa(M,["documentId","updatedAt"]);x(JSON.stringify(V,null,2))}},[r]);const U=M=>Oe(null,null,function*(){var z;M.preventDefault(),m("");try{const D=JSON.parse(g);E(!0);const V=yield me.put(`${st}/api/operation/update/?dbName=${f}&collectionName=${d}&documentId=${r.documentId}&transactiontoken=${R}`,pe({},D));if(V.status===200){const G=((z=V.data.data)==null?void 0:z.document)||nt(pe({},D),{documentId:r.documentId,updatedAt:new Date().toISOString()});c(G),s()}else throw new Error("Failed to update document")}catch(D){D instanceof SyntaxError?m("Invalid JSON format. Please check your input."):m(`Error updating document: ${D.message}`),E(!1)}});return n?o.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 overflow-y-auto h-full w-full z-50 flex justify-center items-center backdrop-blur-sm",children:o.jsxs("div",{className:"relative bg-white rounded-lg shadow-2xl max-w-2xl w-full mx-4 max-h-[90vh] flex flex-col",children:[o.jsxs("div",{className:"flex justify-between items-center p-5 border-b",children:[o.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 mr-2 text-indigo-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})}),"Update Document"]}),o.jsx("button",{onClick:s,className:"text-gray-400 hover:text-gray-500 transition-colors",children:o.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),o.jsxs("div",{className:"p-6 overflow-y-auto flex-grow",children:[o.jsxs("div",{className:"mb-4 flex items-center space-x-2 bg-indigo-50 p-3 rounded-md",children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-indigo-500",viewBox:"0 0 20 20",fill:"currentColor",children:o.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})}),o.jsx("p",{className:"text-sm text-indigo-700",children:"Edit the document data in JSON format"})]}),p&&o.jsx("div",{className:"mb-4 bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:o.jsx("p",{children:p})}),o.jsxs("form",{onSubmit:U,children:[o.jsxs("div",{className:"mb-4",children:[o.jsxs("div",{className:"flex justify-between items-center mb-2",children:[o.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Document Data (JSON)"}),o.jsxs("div",{className:"flex items-center",children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-1 text-yellow-500",viewBox:"0 0 20 20",fill:"currentColor",children:o.jsx("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})}),o.jsxs("span",{className:"text-xs text-gray-500 font-mono",children:["ID: ",r.documentId]})]})]}),o.jsx("textarea",{value:g,onChange:M=>x(M.target.value),className:"w-full h-64 p-3 border border-gray-300 rounded-md font-mono text-sm focus:ring-indigo-500 focus:border-indigo-500 shadow-inner bg-gray-50",placeholder:"Enter JSON document data",required:!0}),o.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"You cannot change the document's ID. The updatedAt field will be automatically updated."})]}),o.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[o.jsx("button",{type:"button",onClick:s,className:"px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50 transition-colors",children:"Cancel"}),o.jsx("button",{type:"submit",disabled:v,className:`px-4 py-2 rounded-md text-white flex items-center ${v?"bg-indigo-500":"bg-indigo-600 hover:bg-indigo-700"} transition-colors shadow-md`,children:v?o.jsxs(o.Fragment,{children:[o.jsxs("svg",{className:"animate-spin h-5 w-5 mr-2",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[o.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),o.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Updating..."]}):"Update Document"})]})]})]})]})}):null},S2=({isOpen:n,onClose:s,onDocumentDeleted:c,documentId:r,databaseName:f,collectionName:d})=>{const[g,x]=S.useState(!1),[p,m]=S.useState(""),{TransactionKey:v}=ct(R=>R),E=()=>Oe(null,null,function*(){try{if(x(!0),(yield me.delete(`${st}/api/operation/delete/by-id/?dbName=${f}&collectionName=${d}&documentId=${r}&transactiontoken=${v}`)).status===200)c(r),s();else throw new Error("Failed to delete document")}catch(R){m(`Error deleting document: ${R.message}`),x(!1)}});return n?o.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 overflow-y-auto h-full w-full z-50 flex justify-center items-center backdrop-blur-sm",children:o.jsxs("div",{className:"relative bg-white rounded-lg shadow-2xl max-w-md w-full mx-4",children:[o.jsxs("div",{className:"flex justify-between items-center p-5 border-b",children:[o.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 mr-2 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})}),"Delete Document"]}),o.jsx("button",{onClick:s,className:"text-gray-400 hover:text-gray-500 transition-colors",children:o.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),o.jsxs("div",{className:"p-6",children:[o.jsx("div",{className:"bg-red-50 p-4 rounded-md mb-5",children:o.jsxs("div",{className:"flex",children:[o.jsx("div",{className:"flex-shrink-0",children:o.jsx("svg",{className:"h-5 w-5 text-red-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:o.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),o.jsxs("div",{className:"ml-3",children:[o.jsx("h3",{className:"text-sm font-medium text-red-800",children:"Are you sure you want to delete this document?"}),o.jsx("div",{className:"mt-2 text-sm text-red-700",children:o.jsx("p",{children:"This action cannot be undone."})})]})]})}),o.jsxs("div",{className:"mb-5",children:[o.jsx("p",{className:"text-gray-700 mb-2",children:o.jsx("span",{className:"font-medium",children:"Document ID:"})}),o.jsx("div",{className:"bg-gray-50 p-2 rounded border border-gray-200 font-mono text-sm break-all",children:r})]}),o.jsxs("div",{className:"mb-5",children:[o.jsxs("p",{className:"text-gray-700 mb-1",children:[o.jsx("span",{className:"font-medium",children:"Collection:"})," ",d]}),o.jsxs("p",{className:"text-gray-700",children:[o.jsx("span",{className:"font-medium",children:"Database:"})," ",f]})]}),p&&o.jsx("div",{className:"mb-4 bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:o.jsx("p",{children:p})}),o.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[o.jsx("button",{type:"button",onClick:s,className:"px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50 transition-colors",children:"Cancel"}),o.jsx("button",{onClick:E,disabled:g,className:`px-4 py-2 rounded-md text-white flex items-center ${g?"bg-red-500":"bg-red-600 hover:bg-red-700"} transition-colors shadow-md`,children:g?o.jsxs(o.Fragment,{children:[o.jsxs("svg",{className:"animate-spin h-5 w-5 mr-2",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[o.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),o.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Deleting..."]}):"Delete Document"})]})]})]})}):null},w2=({isOpen:n,onClose:s,databaseName:c,collectionName:r,onAggregationResults:f})=>{const[d,g]=S.useState('[{ "$match": {} }]'),[x,p]=S.useState(!1),[m,v]=S.useState(null),{TransactionKey:E}=ct(M=>M),R=()=>Oe(null,null,function*(){var M,z;try{p(!0),v(null);const D=JSON.parse(d),V=yield me.post(`${st}/api/operation/aggregate/?dbName=${c}&collectionName=${r}`,{aggregation:D},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${E}`}});if(V.data&&V.data.data){const G=V.data.data.documents||V.data.data;f(G,D),s()}}catch(D){console.error("Aggregation error:",D),v(((z=(M=D.response)==null?void 0:M.data)==null?void 0:z.message)||D.message||"Failed to run aggregation")}finally{p(!1)}}),U=()=>{v(null),s()};return n?o.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4",children:o.jsxs("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-3xl max-h-[90vh] flex flex-col",children:[o.jsxs("div",{className:"px-6 py-4 border-b border-gray-200 flex justify-between items-center bg-gradient-to-r from-indigo-50 to-blue-50",children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Run Aggregation Pipeline"}),o.jsx("button",{onClick:U,className:"text-gray-500 hover:text-gray-700 focus:outline-none",children:o.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),o.jsxs("div",{className:"flex-1 overflow-auto p-6",children:[o.jsxs("div",{className:"mb-4",children:[o.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Enter your MongoDB aggregation pipeline as a JSON array. Example:"}),o.jsx("div",{className:"bg-gray-50 p-3 rounded-md text-xs font-mono mb-4 border border-gray-200",children:'[{ "$match": { "field": "value" } }, { "$sort": { "field": 1 } }]'}),o.jsxs("p",{className:"text-sm text-gray-600 mb-4",children:["Running on ",o.jsx("span",{className:"font-semibold",children:r})," ","in database ",o.jsx("span",{className:"font-semibold",children:c})]})]}),o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Aggregation Pipeline"}),o.jsx("textarea",{className:"w-full h-64 px-3 py-2 text-gray-700 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 font-mono text-sm",value:d,onChange:M=>g(M.target.value),placeholder:'[{ "$match": {} }]'})]}),m&&o.jsx("div",{className:"bg-red-50 border-l-4 border-red-500 p-4 mb-4",children:o.jsxs("div",{className:"flex",children:[o.jsx("div",{className:"flex-shrink-0",children:o.jsx("svg",{className:"h-5 w-5 text-red-500",viewBox:"0 0 20 20",fill:"currentColor",children:o.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),o.jsx("div",{className:"ml-3",children:o.jsx("p",{className:"text-sm text-red-700",children:m})})]})})]}),o.jsxs("div",{className:"px-6 py-4 border-t border-gray-200 flex justify-end",children:[o.jsx("button",{onClick:U,className:"px-4 py-2 text-sm font-medium text-gray-700 bg-gray-100 hover:bg-gray-200 rounded-md mr-3",children:"Cancel"}),o.jsx("button",{onClick:R,disabled:x,className:`px-4 py-2 text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 rounded-md flex items-center ${x?"opacity-70 cursor-not-allowed":""}`,children:x?o.jsxs(o.Fragment,{children:[o.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[o.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),o.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Processing..."]}):o.jsxs(o.Fragment,{children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 mr-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})}),"Run Aggregation"]})})]})]})}):null},fh=()=>{const[n]=Ah(),s=iu(),[c,r]=S.useState(!0),[f,d]=S.useState([]),[g,x]=S.useState(!0),[p,m]=S.useState(1),v=S.useRef(),E=n.get("database"),R=n.get("collection"),{TransactionKey:U}=ct(J=>J),[M,z]=S.useState(!1),[D,V]=S.useState(!1),[G,k]=S.useState(!1),[I,X]=S.useState(!1),[F,ce]=S.useState(null),[fe,Ce]=S.useState(!1),[tt,we]=S.useState([]),[xe,ze]=S.useState([]),Ke=S.useCallback((J=1,ue=!1)=>Oe(null,null,function*(){try{r(!0);const je=yield me.get(`${st}/api/operation/all/?dbName=${E}&collectionName=${R}&page=${J}&transactiontoken=${U}`);if(je.status===200){const hl=je.data.data.data.documents||[];d(ue?hl:Yt=>[...Yt,...hl]),x(hl.length===10)}r(!1)}catch(je){console.error("Error fetching documents:",je),r(!1)}}),[E,R,U]);S.useEffect(()=>{if(!E||!R){s("/collections");return}Ce(!1),we([]),m(1),d([]),Ke(1,!0)},[E,R,s,Ke]);const qe=S.useCallback(J=>{c||fe||(v.current&&v.current.disconnect(),v.current=new IntersectionObserver(ue=>{ue[0].isIntersecting&&g&&(m(je=>je+1),Ke(p+1))}),J&&v.current.observe(J))},[c,g,Ke,p,fe]),B=()=>{s(`/collections?database=${E}`)},Z=J=>{d(ue=>[J,...ue])},ee=J=>{ce(J),V(!0)},Se=J=>{ce(J),k(!0)},w=()=>Oe(null,null,function*(){try{r(!0);const J=yield me.post(`${st}/api/operation/aggregate/?dbName=${E}&collectionName=${R}`,{aggregation:tt},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${U}`}});J.data&&J.data.data&&ze(J.data.data.documents||J.data.data),r(!1)}catch(J){console.error("Error re-running aggregation:",J),r(!1)}}),Y=J=>{d(ue=>ue.map(je=>je.documentId===J.documentId?J:je)),fe&&w()},K=J=>{d(ue=>ue.filter(je=>je.documentId!==J)),fe&&w()},Q=(J,ue)=>{ze(J),we(ue),Ce(!0)},P=()=>{Ce(!1),we([]),ze([]),Ke(1,!0)},ge=J=>new Date(J).toLocaleString(),ne=J=>{try{return!Array.isArray(J)||J.length===0?"No conditions":J.map((je,hl)=>{const Yt=Object.keys(je)[0];return`${Yt.replace("$","")}: ${JSON.stringify(je[Yt]).substring(0,30)}${JSON.stringify(je[Yt]).length>30?"...":""}`}).join(", ")}catch(ue){return"Invalid pipeline"}};return o.jsxs("div",{className:"container mx-auto px-4 py-6 max-w-7xl",children:[o.jsxs("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden mb-8",children:[o.jsxs("div",{className:"flex justify-between items-center p-6 bg-gradient-to-r from-blue-50 to-indigo-50 border-b border-gray-200",children:[o.jsxs("div",{children:[o.jsx("div",{className:"flex items-center mb-2",children:o.jsxs("button",{onClick:B,className:"text-blue-600 hover:text-blue-800 flex items-center transition-colors font-medium",children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-1",viewBox:"0 0 20 20",fill:"currentColor",children:o.jsx("path",{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"})}),"Back to Collections"]})}),o.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Documents"}),o.jsxs("div",{className:"flex items-center mt-1 text-gray-600",children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2 text-indigo-500",viewBox:"0 0 20 20",fill:"currentColor",children:o.jsx("path",{d:"M7 3a1 1 0 000 2h6a1 1 0 100-2H7zM4 7a1 1 0 011-1h10a1 1 0 110 2H5a1 1 0 01-1-1zM2 11a2 2 0 002-2h12a2 2 0 012 2v4a2 2 0 01-2 2H4a2 2 0 01-2-2v-4z"})}),o.jsx("span",{className:"font-medium",children:R}),o.jsx("span",{className:"mx-2",children:"in"}),o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2 text-indigo-500",viewBox:"0 0 20 20",fill:"currentColor",children:o.jsx("path",{d:"M5 3a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2V5a2 2 0 00-2-2H5zM5 11a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2v-2a2 2 0 00-2-2H5zM11 5a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V5zM11 13a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"})}),o.jsx("span",{className:"font-medium",children:E})]})]}),o.jsxs("div",{className:"flex space-x-3",children:[o.jsxs("button",{onClick:()=>X(!0),className:"bg-indigo-600 hover:bg-indigo-700 text-white py-2 px-5 rounded-lg flex items-center transition-colors shadow-md",children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:o.jsx("path",{fillRule:"evenodd",d:"M3 3a1 1 0 000 2v8a2 2 0 002 2h2.586l-1.293 1.293a1 1 0 101.414 1.414L10 15.414l2.293 2.293a1 1 0 001.414-1.414L12.414 15H15a2 2 0 002-2V5a1 1 0 100-2H3zm11.707 4.707a1 1 0 00-1.414-1.414L10 9.586 8.707 8.293a1 1 0 00-1.414 0l-2 2a1 1 0 101.414 1.414L8 10.414l1.293 1.293a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),"Run Aggregate"]}),o.jsxs("button",{onClick:()=>z(!0),className:"bg-green-600 hover:bg-green-700 text-white py-2 px-5 rounded-lg flex items-center transition-colors shadow-md",children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:o.jsx("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"})}),"Insert Document"]})]})]}),fe&&o.jsxs("div",{className:"bg-indigo-50 px-6 py-3 border-b border-indigo-100 flex justify-between items-center",children:[o.jsxs("div",{className:"flex items-center",children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-indigo-600 mr-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})}),o.jsxs("div",{children:[o.jsx("span",{className:"text-sm font-medium text-indigo-800",children:"Aggregation Results"}),o.jsxs("p",{className:"text-xs text-indigo-600 mt-0.5",children:["Pipeline: ",ne(tt)]})]})]}),o.jsxs("button",{onClick:P,className:"text-indigo-700 hover:text-indigo-900 text-sm font-medium flex items-center",children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 mr-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Clear Aggregation"]})]}),o.jsxs("div",{className:"p-6",children:[c&&(!fe&&f.length===0)?o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[1,2,3,4,5,6].map(J=>o.jsxs("div",{className:"animate-pulse bg-white rounded-lg border border-gray-200 shadow-sm p-4",children:[o.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4 mb-3"}),o.jsx("div",{className:"h-3 bg-gray-100 rounded w-1/2 mb-2"}),o.jsx("div",{className:"h-20 bg-gray-100 rounded mb-3"}),o.jsxs("div",{className:"flex justify-end",children:[o.jsx("div",{className:"h-8 bg-gray-200 rounded w-16 mr-2"}),o.jsx("div",{className:"h-8 bg-gray-200 rounded w-16"})]})]},J))}):fe?xe.length>0?o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:xe.map((J,ue)=>o.jsx("div",{className:"bg-white rounded-lg border border-gray-200 shadow-sm hover:shadow-md transition-shadow overflow-hidden",children:o.jsxs("div",{className:"p-4",children:[o.jsxs("div",{className:"flex items-center justify-between mb-3",children:[o.jsxs("div",{className:"flex items-center",children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-indigo-500 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:o.jsx("path",{fillRule:"evenodd",d:"M3 3a1 1 0 000 2v8a2 2 0 002 2h2.586l-1.293 1.293a1 1 0 101.414 1.414L10 15.414l2.293 2.293a1 1 0 001.414-1.414L12.414 15H15a2 2 0 002-2V5a1 1 0 100-2H3zm11.707 4.707a1 1 0 00-1.414-1.414L10 9.586 8.707 8.293a1 1 0 00-1.414 0l-2 2a1 1 0 101.414 1.414L8 10.414l1.293 1.293a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),o.jsx("div",{className:"font-mono text-indigo-700 font-semibold",children:o.jsx("span",{className:"text-sm",children:J.documentId?`ID: ${J.documentId}`:`Result #${ue+1}`})})]}),J.updatedAt&&o.jsx("span",{className:"text-xs text-gray-500",title:J.updatedAt,children:ge(J.updatedAt)})]}),o.jsx("div",{className:"bg-gray-50 rounded p-3 mb-3 h-48 overflow-y-auto",children:o.jsx("pre",{className:"text-xs font-mono whitespace-pre-wrap break-words text-gray-800",children:JSON.stringify(Object.fromEntries(Object.entries(J).filter(([je])=>!["documentId","updatedAt"].includes(je))),null,2)})}),J.documentId&&o.jsxs("div",{className:"flex justify-end space-x-2",children:[o.jsx("button",{onClick:()=>ee(J),className:"text-indigo-600 hover:text-indigo-900 bg-indigo-50 hover:bg-indigo-100 px-3 py-1 rounded-md text-sm transition-colors",children:"Update"}),o.jsx("button",{onClick:()=>Se(J),className:"text-red-600 hover:text-red-900 bg-red-50 hover:bg-red-100 px-3 py-1 rounded-md text-sm transition-colors",children:"Delete"})]})]})},ue))}):o.jsxs("div",{className:"text-center py-12",children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-16 w-16 text-gray-300 mx-auto mb-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),o.jsx("p",{className:"text-gray-500 mb-2",children:"No documents match your aggregation pipeline"}),o.jsx("button",{onClick:P,className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Clear Aggregation"})]}):f.length>0?o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:f.map((J,ue)=>o.jsx("div",{ref:!fe&&ue===f.length-1?qe:null,className:"bg-white rounded-lg border border-gray-200 shadow-sm hover:shadow-md transition-shadow overflow-hidden",children:o.jsxs("div",{className:"p-4",children:[o.jsxs("div",{className:"flex items-center justify-between mb-3",children:[o.jsxs("div",{className:"flex items-center",children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-yellow-500 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:o.jsx("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})}),o.jsx("div",{className:"font-mono text-indigo-700 font-semibold",title:J.documentId,children:o.jsxs("span",{className:"text-sm",children:["ID: ",J.documentId]})})]}),o.jsx("span",{className:"text-xs text-gray-500",title:J.updatedAt,children:ge(J.updatedAt)})]}),o.jsx("div",{className:"bg-gray-50 rounded p-3 mb-3 h-48 overflow-y-auto",children:o.jsx("pre",{className:"text-xs font-mono whitespace-pre-wrap break-words text-gray-800",children:JSON.stringify(Object.fromEntries(Object.entries(J).filter(([je])=>!["documentId","updatedAt"].includes(je))),null,2)})}),o.jsxs("div",{className:"flex justify-end space-x-2",children:[o.jsx("button",{onClick:()=>ee(J),className:"text-indigo-600 hover:text-indigo-900 bg-indigo-50 hover:bg-indigo-100 px-3 py-1 rounded-md text-sm transition-colors",children:"Update"}),o.jsx("button",{onClick:()=>Se(J),className:"text-red-600 hover:text-red-900 bg-red-50 hover:bg-red-100 px-3 py-1 rounded-md text-sm transition-colors",children:"Delete"})]})]})},J.documentId))}):o.jsxs("div",{className:"text-center py-12",children:[o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-16 w-16 text-gray-300 mx-auto mb-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),o.jsx("p",{className:"text-gray-500 mb-2",children:"No documents found in this collection"}),o.jsx("button",{onClick:()=>z(!0),className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Insert Your First Document"})]}),c&&f.length>0&&!fe&&o.jsx("div",{className:"flex justify-center items-center py-4",children:o.jsxs("svg",{className:"animate-spin h-6 w-6 text-indigo-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[o.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),o.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),!c&&!g&&f.length>0&&!fe&&o.jsx("div",{className:"text-center py-4 text-gray-500 text-sm border-t border-gray-100 mt-6",children:"You've reached the end of the results."}),fe&&xe.length>0&&o.jsxs("div",{className:"text-center py-4 text-gray-500 text-sm border-t border-gray-100 mt-6",children:["Showing all ",xe.length," aggregation results."]})]})]}),M&&o.jsx(x2,{isOpen:M,onClose:()=>z(!1),onDocumentInserted:Z,databaseName:E,collectionName:R,onSuccess:()=>Ke(1,!0)}),D&&F&&o.jsx(b2,{isOpen:D,onClose:()=>V(!1),onDocumentUpdated:Y,document:F,databaseName:E,collectionName:R}),G&&F&&o.jsx(S2,{isOpen:G,onClose:()=>k(!1),onDocumentDeleted:K,documentId:F.documentId,databaseName:E,collectionName:R}),I&&o.jsx(w2,{isOpen:I,onClose:()=>X(!1),databaseName:E,collectionName:R,onAggregationResults:Q})]})},N2=()=>{const[n,s]=S.useState([]),[c,r]=S.useState(!0),[f,d]=S.useState(null),[g,x]=S.useState({}),{TransactionKey:p}=ct(R=>R);S.useEffect(()=>{p&&Oe(null,null,function*(){try{r(!0);const U=yield me.get(`${st}/api/routes?transactiontoken=${p}`);if(U.data&&U.data.data&&Array.isArray(U.data.data)){s(U.data.data);const M={};U.data.data.forEach(z=>{M[z.groupName]=!0}),x(M)}else throw new Error("Invalid API response format");r(!1)}catch(U){console.error("Error fetching API routes:",U),d("Failed to load API reference. Please try again later."),r(!1)}})},[p]);const m=R=>{x(U=>nt(pe({},U),{[R]:!U[R]}))},v=R=>{switch(R){case"GET":return"bg-blue-600";case"POST":return"bg-green-600";case"PUT":return"bg-amber-600";case"DELETE":return"bg-red-600";default:return"bg-gray-600"}},E=R=>o.jsx("pre",{className:"mt-2 p-3 bg-gray-800 text-gray-200 rounded-md overflow-x-auto text-sm",children:JSON.stringify(R,null,2)});return c?o.jsxs("div",{className:"container mx-auto px-4 py-8",children:[o.jsx("h1",{className:"text-2xl font-bold mb-6",children:"API Reference"}),o.jsx("div",{className:"flex justify-center items-center py-12",children:o.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-blue-500"})})]}):f?o.jsxs("div",{className:"container mx-auto px-4 py-8",children:[o.jsx("h1",{className:"text-2xl font-bold mb-6",children:"API Reference"}),o.jsx("div",{className:"bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded",children:o.jsx("p",{children:f})})]}):o.jsxs("div",{className:"container mx-auto px-4 py-8",children:[o.jsx("h1",{className:"text-2xl font-bold mb-2",children:"API Reference"}),o.jsx("p",{className:"text-gray-600 mb-6",children:"Complete documentation for the AxioDB REST API"}),n.length===0&&!c&&!f?o.jsx("div",{className:"bg-yellow-100 border border-yellow-400 text-yellow-700 px-4 py-3 rounded",children:o.jsx("p",{children:"No API routes found. The server might not have returned any routes."})}):o.jsx("div",{className:"space-y-6",children:n.map(R=>o.jsxs("div",{className:"border border-gray-200 rounded-lg overflow-hidden",children:[o.jsxs("div",{className:"bg-gray-50 px-4 py-3 flex justify-between items-center cursor-pointer",onClick:()=>m(R.groupName),children:[o.jsxs("div",{children:[o.jsx("h2",{className:"text-lg font-medium text-gray-900",children:R.groupName}),o.jsx("p",{className:"text-sm text-gray-500",children:R.description})]}),o.jsx("div",{className:"text-gray-500",children:g[R.groupName]?o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:o.jsx("path",{fillRule:"evenodd",d:"M5 10a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"})}):o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:o.jsx("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})})})]}),g[R.groupName]&&o.jsx("div",{className:"divide-y divide-gray-200",children:R.Paths.map((U,M)=>o.jsx("div",{className:"p-4 hover:bg-gray-50",children:o.jsxs("div",{className:"flex items-start",children:[o.jsx("span",{className:`${v(U.method)} text-white text-xs font-bold px-2 py-1 rounded mr-3 min-w-16 text-center`,children:U.method}),o.jsxs("div",{className:"flex-1",children:[o.jsx("div",{className:"font-mono text-sm bg-gray-100 p-2 rounded mb-2 overflow-x-auto",children:U.path}),o.jsx("p",{className:"text-gray-700 mb-2",children:U.description}),U.payload&&o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-semibold text-gray-700 mt-2 mb-1",children:"Payload:"}),E(U.payload)]})]})]})},M))})]},R.groupName))})]})};function E2(){const{loadKey:n}=ct(r=>r),[s,c]=S.useState(!0);return S.useEffect(()=>{Oe(null,null,function*(){try{yield n()}finally{c(!1)}})},[n]),s?o.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:o.jsxs("div",{className:"text-center",children:[o.jsx("div",{className:"spinner-border text-primary mb-3",role:"status",children:o.jsx("span",{className:"sr-only",children:"Loading..."})}),o.jsx("p",{className:"text-gray-600",children:"Loading application..."})]})}):o.jsx(I1,{children:o.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col",children:[o.jsx(Xv,{}),o.jsx("main",{className:"flex-grow",children:o.jsxs(D1,{children:[o.jsx(ua,{path:"/",element:o.jsx(f2,{})}),o.jsx(ua,{path:"/operations",element:o.jsx(g2,{})}),o.jsx(ua,{path:"/collections",element:o.jsx(v2,{})}),o.jsx(ua,{path:"/documents",element:o.jsx(fh,{})}),o.jsx(ua,{path:"/api",element:o.jsx(N2,{})}),o.jsx(ua,{path:"/collections/documents",element:o.jsx(fh,{})})]})}),o.jsx(cp,{})]})})}qy.createRoot(document.getElementById("root")).render(o.jsx(S.StrictMode,{children:o.jsx(E2,{})}))});export default j2();