axiodb 2.28.79 → 2.28.81
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.
- package/Docker/Dockerfile +20 -0
- package/Docker/runner.js +3 -0
- package/lib/server/config/keys.js +11 -11
- package/lib/server/config/keys.js.map +1 -1
- package/lib/server/public/AxioControl/.vite/manifest.json +2 -2
- package/lib/server/public/AxioControl/.vite/ssr-manifest.json +1 -258
- package/lib/server/public/AxioControl/assets/index-BBHFnwjb.js +67 -0
- package/lib/server/public/AxioControl/assets/index-D8BIlnCE.css +1 -0
- package/lib/server/public/AxioControl/index.html +2 -2
- package/lib/server/public/AxioControl/sw.js +1 -1
- package/package.json +2 -2
- package/lib/server/public/AxioControl/assets/index-9nG-BJLn.css +0 -1
- package/lib/server/public/AxioControl/assets/index-DjMr8eMS.js +0 -75
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
var Wb=Object.defineProperty,Ib=Object.defineProperties;var e2=Object.getOwnPropertyDescriptors;var Cr=Object.getOwnPropertySymbols;var gp=Object.prototype.hasOwnProperty,yp=Object.prototype.propertyIsEnumerable;var Ti=(n,a)=>(a=Symbol[n])?a:Symbol.for("Symbol."+n),t2=n=>{throw TypeError(n)},Nc=Math.pow,pp=(n,a,s)=>a in n?Wb(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,K=(n,a)=>{for(var s in a||(a={}))gp.call(a,s)&&pp(n,s,a[s]);if(Cr)for(var s of Cr(a))yp.call(a,s)&&pp(n,s,a[s]);return n},le=(n,a)=>Ib(n,e2(a));var st=(n,a)=>{var s={};for(var r in n)gp.call(n,r)&&a.indexOf(r)<0&&(s[r]=n[r]);if(n!=null&&Cr)for(var r of Cr(n))a.indexOf(r)<0&&yp.call(n,r)&&(s[r]=n[r]);return s};var n2=(n,a)=>()=>(a||n((a={exports:{}}).exports,a),a.exports);var _e=(n,a,s)=>new Promise((r,o)=>{var c=m=>{try{p(s.next(m))}catch(h){o(h)}},f=m=>{try{p(s.throw(m))}catch(h){o(h)}},p=m=>m.done?r(m.value):Promise.resolve(m.value).then(c,f);p((s=s.apply(n,a)).next())}),Ra=function(n,a){this[0]=n,this[1]=a},Rc=(n,a,s)=>{var r=(f,p,m,h)=>{try{var y=s[f](p),x=(p=y.value)instanceof Ra,S=y.done;Promise.resolve(x?p[0]:p).then(T=>x?r(f==="return"?f:"next",p[1]?{done:T.done,value:T.value}:T,m,h):m({value:T,done:S})).catch(T=>r("throw",T,m,h))}catch(T){h(T)}},o=f=>c[f]=p=>new Promise((m,h)=>r(f,p,m,h)),c={};return s=s.apply(n,a),c[Ti("asyncIterator")]=()=>c,o("next"),o("throw"),o("return"),c},Cc=n=>{var a=n[Ti("asyncIterator")],s=!1,r,o={};return a==null?(a=n[Ti("iterator")](),r=c=>o[c]=f=>a[c](f)):(a=a.call(n),r=c=>o[c]=f=>{if(s){if(s=!1,c==="throw")throw f;return f}return s=!0,{done:!1,value:new Ra(new Promise(p=>{var m=a[c](f);m instanceof Object||t2("Object expected"),p(m)}),1)}}),o[Ti("iterator")]=()=>o,r("next"),"throw"in a?r("throw"):o.throw=c=>{throw c},"return"in a&&r("return"),o},vp=(n,a,s)=>(a=n[Ti("asyncIterator")])?a.call(n):(n=n[Ti("iterator")](),a={},s=(r,o)=>(o=n[r])&&(a[r]=c=>new Promise((f,p,m)=>(c=o.call(n,c),m=c.done,Promise.resolve(c.value).then(h=>f({value:h,done:m}),p)))),s("next"),s("return"),a);var ON=n2(lt=>{(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function s(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(o){if(o.ep)return;o.ep=!0;const c=s(o);fetch(o.href,c)}})();function a2(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Dc={exports:{}},Us={};/**
|
|
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 xp;function i2(){if(xp)return Us;xp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(r,o,c){var f=null;if(c!==void 0&&(f=""+c),o.key!==void 0&&(f=""+o.key),"key"in o){c={};for(var p in o)p!=="key"&&(c[p]=o[p])}else c=o;return o=c.ref,{$$typeof:n,type:r,key:f,ref:o!==void 0?o:null,props:c}}return Us.Fragment=a,Us.jsx=s,Us.jsxs=s,Us}var bp;function s2(){return bp||(bp=1,Dc.exports=i2()),Dc.exports}var g=s2(),Mc={exports:{}},pe={};/**
|
|
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 Sp;function l2(){if(Sp)return pe;Sp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.iterator;function S(N){return N===null||typeof N!="object"?null:(N=x&&N[x]||N["@@iterator"],typeof N=="function"?N:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,R={};function j(N,G,J){this.props=N,this.context=G,this.refs=R,this.updater=J||T}j.prototype.isReactComponent={},j.prototype.setState=function(N,G){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,G,"setState")},j.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function M(){}M.prototype=j.prototype;function V(N,G,J){this.props=N,this.context=G,this.refs=R,this.updater=J||T}var U=V.prototype=new M;U.constructor=V,E(U,j.prototype),U.isPureReactComponent=!0;var X=Array.isArray,H={H:null,A:null,T:null,S:null,V:null},Q=Object.prototype.hasOwnProperty;function W(N,G,J,$,ae,Se){return J=Se.ref,{$$typeof:n,type:N,key:G,ref:J!==void 0?J:null,props:Se}}function F(N,G){return W(N.type,G,void 0,void 0,void 0,N.props)}function ce(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function Ae(N){var G={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(J){return G[J]})}var be=/\/+/g;function Ee(N,G){return typeof N=="object"&&N!==null&&N.key!=null?Ae(""+N.key):G.toString(36)}function de(){}function Ve(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(de,de):(N.status="pending",N.then(function(G){N.status==="pending"&&(N.status="fulfilled",N.value=G)},function(G){N.status==="pending"&&(N.status="rejected",N.reason=G)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function Re(N,G,J,$,ae){var Se=typeof N;(Se==="undefined"||Se==="boolean")&&(N=null);var ue=!1;if(N===null)ue=!0;else switch(Se){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(N.$$typeof){case n:case a:ue=!0;break;case y:return ue=N._init,Re(ue(N._payload),G,J,$,ae)}}if(ue)return ae=ae(N),ue=$===""?"."+Ee(N,0):$,X(ae)?(J="",ue!=null&&(J=ue.replace(be,"$&/")+"/"),Re(ae,G,J,"",function(Me){return Me})):ae!=null&&(ce(ae)&&(ae=F(ae,J+(ae.key==null||N&&N.key===ae.key?"":(""+ae.key).replace(be,"$&/")+"/")+ue)),G.push(ae)),1;ue=0;var ee=$===""?".":$+":";if(X(N))for(var fe=0;fe<N.length;fe++)$=N[fe],Se=ee+Ee($,fe),ue+=Re($,G,J,Se,ae);else if(fe=S(N),typeof fe=="function")for(N=fe.call(N),fe=0;!($=N.next()).done;)$=$.value,Se=ee+Ee($,fe++),ue+=Re($,G,J,Se,ae);else if(Se==="object"){if(typeof N.then=="function")return Re(Ve(N),G,J,$,ae);throw G=String(N),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return ue}function k(N,G,J){if(N==null)return N;var $=[],ae=0;return Re(N,$,"","",function(Se){return G.call(J,Se,ae++)}),$}function Z(N){if(N._status===-1){var G=N._result;G=G(),G.then(function(J){(N._status===0||N._status===-1)&&(N._status=1,N._result=J)},function(J){(N._status===0||N._status===-1)&&(N._status=2,N._result=J)}),N._status===-1&&(N._status=0,N._result=G)}if(N._status===1)return N._result.default;throw N._result}var I=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function me(){}return pe.Children={map:k,forEach:function(N,G,J){k(N,function(){G.apply(this,arguments)},J)},count:function(N){var G=0;return k(N,function(){G++}),G},toArray:function(N){return k(N,function(G){return G})||[]},only:function(N){if(!ce(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},pe.Component=j,pe.Fragment=s,pe.Profiler=o,pe.PureComponent=V,pe.StrictMode=r,pe.Suspense=m,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,pe.__COMPILER_RUNTIME={__proto__:null,c:function(N){return H.H.useMemoCache(N)}},pe.cache=function(N){return function(){return N.apply(null,arguments)}},pe.cloneElement=function(N,G,J){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var $=E({},N.props),ae=N.key,Se=void 0;if(G!=null)for(ue in G.ref!==void 0&&(Se=void 0),G.key!==void 0&&(ae=""+G.key),G)!Q.call(G,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&G.ref===void 0||($[ue]=G[ue]);var ue=arguments.length-2;if(ue===1)$.children=J;else if(1<ue){for(var ee=Array(ue),fe=0;fe<ue;fe++)ee[fe]=arguments[fe+2];$.children=ee}return W(N.type,ae,void 0,void 0,Se,$)},pe.createContext=function(N){return N={$$typeof:f,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:c,_context:N},N},pe.createElement=function(N,G,J){var $,ae={},Se=null;if(G!=null)for($ in G.key!==void 0&&(Se=""+G.key),G)Q.call(G,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(ae[$]=G[$]);var ue=arguments.length-2;if(ue===1)ae.children=J;else if(1<ue){for(var ee=Array(ue),fe=0;fe<ue;fe++)ee[fe]=arguments[fe+2];ae.children=ee}if(N&&N.defaultProps)for($ in ue=N.defaultProps,ue)ae[$]===void 0&&(ae[$]=ue[$]);return W(N,Se,void 0,void 0,null,ae)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(N){return{$$typeof:p,render:N}},pe.isValidElement=ce,pe.lazy=function(N){return{$$typeof:y,_payload:{_status:-1,_result:N},_init:Z}},pe.memo=function(N,G){return{$$typeof:h,type:N,compare:G===void 0?null:G}},pe.startTransition=function(N){var G=H.T,J={};H.T=J;try{var $=N(),ae=H.S;ae!==null&&ae(J,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(me,I)}catch(Se){I(Se)}finally{H.T=G}},pe.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},pe.use=function(N){return H.H.use(N)},pe.useActionState=function(N,G,J){return H.H.useActionState(N,G,J)},pe.useCallback=function(N,G){return H.H.useCallback(N,G)},pe.useContext=function(N){return H.H.useContext(N)},pe.useDebugValue=function(){},pe.useDeferredValue=function(N,G){return H.H.useDeferredValue(N,G)},pe.useEffect=function(N,G,J){var $=H.H;if(typeof J=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return $.useEffect(N,G)},pe.useId=function(){return H.H.useId()},pe.useImperativeHandle=function(N,G,J){return H.H.useImperativeHandle(N,G,J)},pe.useInsertionEffect=function(N,G){return H.H.useInsertionEffect(N,G)},pe.useLayoutEffect=function(N,G){return H.H.useLayoutEffect(N,G)},pe.useMemo=function(N,G){return H.H.useMemo(N,G)},pe.useOptimistic=function(N,G){return H.H.useOptimistic(N,G)},pe.useReducer=function(N,G,J){return H.H.useReducer(N,G,J)},pe.useRef=function(N){return H.H.useRef(N)},pe.useState=function(N){return H.H.useState(N)},pe.useSyncExternalStore=function(N,G,J){return H.H.useSyncExternalStore(N,G,J)},pe.useTransition=function(){return H.H.useTransition()},pe.version="19.1.1",pe}var wp;function zf(){return wp||(wp=1,Mc.exports=l2()),Mc.exports}var w=zf();const Dr=a2(w);var Oc={exports:{}},_s={},Lc={exports:{}},zc={};/**
|
|
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 Tp;function r2(){return Tp||(Tp=1,function(n){function a(k,Z){var I=k.length;k.push(Z);e:for(;0<I;){var me=I-1>>>1,N=k[me];if(0<o(N,Z))k[me]=Z,k[I]=N,I=me;else break e}}function s(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var Z=k[0],I=k.pop();if(I!==Z){k[0]=I;e:for(var me=0,N=k.length,G=N>>>1;me<G;){var J=2*(me+1)-1,$=k[J],ae=J+1,Se=k[ae];if(0>o($,I))ae<N&&0>o(Se,$)?(k[me]=Se,k[ae]=I,me=ae):(k[me]=$,k[J]=I,me=J);else if(ae<N&&0>o(Se,I))k[me]=Se,k[ae]=I,me=ae;else break e}}return Z}function o(k,Z){var I=k.sortIndex-Z.sortIndex;return I!==0?I:k.id-Z.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,p=f.now();n.unstable_now=function(){return f.now()-p}}var m=[],h=[],y=1,x=null,S=3,T=!1,E=!1,R=!1,j=!1,M=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate!="undefined"?setImmediate:null;function X(k){for(var Z=s(h);Z!==null;){if(Z.callback===null)r(h);else if(Z.startTime<=k)r(h),Z.sortIndex=Z.expirationTime,a(m,Z);else break;Z=s(h)}}function H(k){if(R=!1,X(k),!E)if(s(m)!==null)E=!0,Q||(Q=!0,Ee());else{var Z=s(h);Z!==null&&Re(H,Z.startTime-k)}}var Q=!1,W=-1,F=5,ce=-1;function Ae(){return j?!0:!(n.unstable_now()-ce<F)}function be(){if(j=!1,Q){var k=n.unstable_now();ce=k;var Z=!0;try{e:{E=!1,R&&(R=!1,V(W),W=-1),T=!0;var I=S;try{t:{for(X(k),x=s(m);x!==null&&!(x.expirationTime>k&&Ae());){var me=x.callback;if(typeof me=="function"){x.callback=null,S=x.priorityLevel;var N=me(x.expirationTime<=k);if(k=n.unstable_now(),typeof N=="function"){x.callback=N,X(k),Z=!0;break t}x===s(m)&&r(m),X(k)}else r(m);x=s(m)}if(x!==null)Z=!0;else{var G=s(h);G!==null&&Re(H,G.startTime-k),Z=!1}}break e}finally{x=null,S=I,T=!1}Z=void 0}}finally{Z?Ee():Q=!1}}}var Ee;if(typeof U=="function")Ee=function(){U(be)};else if(typeof MessageChannel!="undefined"){var de=new MessageChannel,Ve=de.port2;de.port1.onmessage=be,Ee=function(){Ve.postMessage(null)}}else Ee=function(){M(be,0)};function Re(k,Z){W=M(function(){k(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(k){k.callback=null},n.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<k?Math.floor(1e3/k):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(k){switch(S){case 1:case 2:case 3:var Z=3;break;default:Z=S}var I=S;S=Z;try{return k()}finally{S=I}},n.unstable_requestPaint=function(){j=!0},n.unstable_runWithPriority=function(k,Z){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var I=S;S=k;try{return Z()}finally{S=I}},n.unstable_scheduleCallback=function(k,Z,I){var me=n.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?me+I:me):I=me,k){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=I+N,k={id:y++,callback:Z,priorityLevel:k,startTime:I,expirationTime:N,sortIndex:-1},I>me?(k.sortIndex=I,a(h,k),s(m)===null&&k===s(h)&&(R?(V(W),W=-1):R=!0,Re(H,I-me))):(k.sortIndex=N,a(m,k),E||T||(E=!0,Q||(Q=!0,Ee()))),k},n.unstable_shouldYield=Ae,n.unstable_wrapCallback=function(k){var Z=S;return function(){var I=S;S=Z;try{return k.apply(this,arguments)}finally{S=I}}}}(zc)),zc}var Ep;function o2(){return Ep||(Ep=1,Lc.exports=r2()),Lc.exports}var Bc={exports:{}},ht={};/**
|
|
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 Ap;function u2(){if(Ap)return ht;Ap=1;var n=zf();function a(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(a(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(m,h,y){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:x==null?null:""+x,children:m,containerInfo:h,implementation:y}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ht.createPortal=function(m,h){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(a(299));return c(m,h,null,y)},ht.flushSync=function(m){var h=f.T,y=r.p;try{if(f.T=null,r.p=2,m)return m()}finally{f.T=h,r.p=y,r.d.f()}},ht.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(m,h))},ht.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},ht.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var y=h.as,x=p(y,h.crossOrigin),S=typeof h.integrity=="string"?h.integrity:void 0,T=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;y==="style"?r.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:x,integrity:S,fetchPriority:T}):y==="script"&&r.d.X(m,{crossOrigin:x,integrity:S,fetchPriority:T,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},ht.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var y=p(h.as,h.crossOrigin);r.d.M(m,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(m)},ht.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var y=h.as,x=p(y,h.crossOrigin);r.d.L(m,y,{crossOrigin:x,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},ht.preloadModule=function(m,h){if(typeof m=="string")if(h){var y=p(h.as,h.crossOrigin);r.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(m)},ht.requestFormReset=function(m){r.d.r(m)},ht.unstable_batchedUpdates=function(m,h){return m(h)},ht.useFormState=function(m,h,y){return f.H.useFormState(m,h,y)},ht.useFormStatus=function(){return f.H.useHostTransitionStatus()},ht.version="19.1.1",ht}var jp;function c2(){if(jp)return Bc.exports;jp=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(a){console.error(a)}}return n(),Bc.exports=u2(),Bc.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 Np;function f2(){if(Np)return _s;Np=1;var n=o2(),a=zf(),s=c2();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i])}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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function f(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 p(e){if(c(e)!==e)throw Error(r(188))}function m(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(r(188));return t!==e?null:e}for(var i=e,l=t;;){var u=i.return;if(u===null)break;var d=u.alternate;if(d===null){if(l=u.return,l!==null){i=l;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===i)return p(u),e;if(d===l)return p(u),t;d=d.sibling}throw Error(r(188))}if(i.return!==l.return)i=u,l=d;else{for(var v=!1,b=u.child;b;){if(b===i){v=!0,i=u,l=d;break}if(b===l){v=!0,l=u,i=d;break}b=b.sibling}if(!v){for(b=d.child;b;){if(b===i){v=!0,i=d,l=u;break}if(b===l){v=!0,l=d,i=u;break}b=b.sibling}if(!v)throw Error(r(189))}}if(i.alternate!==l)throw Error(r(190))}if(i.tag!==3)throw Error(r(188));return i.stateNode.current===i?e:t}function h(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=h(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,x=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),V=Symbol.for("react.consumer"),U=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),Ae=Symbol.for("react.memo_cache_sentinel"),be=Symbol.iterator;function Ee(e){return e===null||typeof e!="object"?null:(e=be&&e[be]||e["@@iterator"],typeof e=="function"?e:null)}var de=Symbol.for("react.client.reference");function Ve(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case j:return"Profiler";case R:return"StrictMode";case H:return"Suspense";case Q:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case U:return(e.displayName||"Context")+".Provider";case V:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return t=e.displayName||null,t!==null?t:Ve(e.type)||"Memo";case F:t=e._payload,e=e._init;try{return Ve(e(t))}catch(i){}}return null}var Re=Array.isArray,k=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},me=[],N=-1;function G(e){return{current:e}}function J(e){0>N||(e.current=me[N],me[N]=null,N--)}function $(e,t){N++,me[N]=e.current,e.current=t}var ae=G(null),Se=G(null),ue=G(null),ee=G(null);function fe(e,t){switch($(ue,t),$(Se,e),$(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?P0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=P0(t),e=G0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}J(ae),$(ae,e)}function Me(){J(ae),J(Se),J(ue)}function zn(e){e.memoizedState!==null&&$(ee,e);var t=ae.current,i=G0(t,e.type);t!==i&&($(Se,e),$(ae,i))}function tn(e){Se.current===e&&(J(ae),J(Se)),ee.current===e&&(J(ee),Os._currentValue=I)}var ho=Object.prototype.hasOwnProperty,mo=n.unstable_scheduleCallback,po=n.unstable_cancelCallback,D1=n.unstable_shouldYield,M1=n.unstable_requestPaint,nn=n.unstable_now,O1=n.unstable_getCurrentPriorityLevel,Td=n.unstable_ImmediatePriority,Ed=n.unstable_UserBlockingPriority,pl=n.unstable_NormalPriority,L1=n.unstable_LowPriority,Ad=n.unstable_IdlePriority,z1=n.log,B1=n.unstable_setDisableYieldValue,ki=null,Rt=null;function Bn(e){if(typeof z1=="function"&&B1(e),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(ki,e)}catch(t){}}var Ct=Math.clz32?Math.clz32:_1,V1=Math.log,U1=Math.LN2;function _1(e){return e>>>=0,e===0?32:31-(V1(e)/U1|0)|0}var gl=256,yl=4194304;function ca(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 vl(e,t,i){var l=e.pendingLanes;if(l===0)return 0;var u=0,d=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var b=l&134217727;return b!==0?(l=b&~d,l!==0?u=ca(l):(v&=b,v!==0?u=ca(v):i||(i=b&~e,i!==0&&(u=ca(i))))):(b=l&~d,b!==0?u=ca(b):v!==0?u=ca(v):i||(i=l&~e,i!==0&&(u=ca(i)))),u===0?0:t!==0&&t!==u&&(t&d)===0&&(d=u&-u,i=t&-t,d>=i||d===32&&(i&4194048)!==0)?t:u}function qi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function H1(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 jd(){var e=gl;return gl<<=1,(gl&4194048)===0&&(gl=256),e}function Nd(){var e=yl;return yl<<=1,(yl&62914560)===0&&(yl=4194304),e}function go(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function Yi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function k1(e,t,i,l,u,d){var v=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var b=e.entanglements,A=e.expirationTimes,L=e.hiddenUpdates;for(i=v&~i;0<i;){var q=31-Ct(i),P=1<<q;b[q]=0,A[q]=-1;var z=L[q];if(z!==null)for(L[q]=null,q=0;q<z.length;q++){var B=z[q];B!==null&&(B.lane&=-536870913)}i&=~P}l!==0&&Rd(e,l,0),d!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=d&~(v&~t))}function Rd(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Ct(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|i&4194090}function Cd(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var l=31-Ct(i),u=1<<l;u&t|e[l]&t&&(e[l]|=t),i&=~u}}function yo(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 vo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Dd(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:up(e.type))}function q1(e,t){var i=Z.p;try{return Z.p=e,t()}finally{Z.p=i}}var Vn=Math.random().toString(36).slice(2),ft="__reactFiber$"+Vn,xt="__reactProps$"+Vn,_a="__reactContainer$"+Vn,xo="__reactEvents$"+Vn,Y1="__reactListeners$"+Vn,P1="__reactHandles$"+Vn,Md="__reactResources$"+Vn,Pi="__reactMarker$"+Vn;function bo(e){delete e[ft],delete e[xt],delete e[xo],delete e[Y1],delete e[P1]}function Ha(e){var t=e[ft];if(t)return t;for(var i=e.parentNode;i;){if(t=i[_a]||i[ft]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=Q0(e);e!==null;){if(i=e[ft])return i;e=Q0(e)}return t}e=i,i=e.parentNode}return null}function ka(e){if(e=e[ft]||e[_a]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Gi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function qa(e){var t=e[Md];return t||(t=e[Md]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function tt(e){e[Pi]=!0}var Od=new Set,Ld={};function fa(e,t){Ya(e,t),Ya(e+"Capture",t)}function Ya(e,t){for(Ld[e]=t,e=0;e<t.length;e++)Od.add(t[e])}var G1=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]*$"),zd={},Bd={};function X1(e){return ho.call(Bd,e)?!0:ho.call(zd,e)?!1:G1.test(e)?Bd[e]=!0:(zd[e]=!0,!1)}function xl(e,t,i){if(X1(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+i)}}function bl(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+i)}}function mn(e,t,i,l){if(l===null)e.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(t,i,""+l)}}var So,Vd;function Pa(e){if(So===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);So=t&&t[1]||"",Vd=-1<i.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+So+e+Vd}var wo=!1;function To(e,t){if(!e||wo)return"";wo=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(B){var z=B}Reflect.construct(e,[],P)}else{try{P.call()}catch(B){z=B}e.call(P.prototype)}}else{try{throw Error()}catch(B){z=B}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(B){if(B&&z&&typeof B.stack=="string")return[B.stack,z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=l.DetermineComponentFrameRoot(),v=d[0],b=d[1];if(v&&b){var A=v.split(`
|
|
44
|
-
`),L=b.split(`
|
|
45
|
-
`);for(u=l=0;l<A.length&&!A[l].includes("DetermineComponentFrameRoot");)l++;for(;u<L.length&&!L[u].includes("DetermineComponentFrameRoot");)u++;if(l===A.length||u===L.length)for(l=A.length-1,u=L.length-1;1<=l&&0<=u&&A[l]!==L[u];)u--;for(;1<=l&&0<=u;l--,u--)if(A[l]!==L[u]){if(l!==1||u!==1)do if(l--,u--,0>u||A[l]!==L[u]){var q=`
|
|
46
|
-
`+A[l].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=l&&0<=u);break}}}finally{wo=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?Pa(i):""}function K1(e){switch(e.tag){case 26:case 27:case 5:return Pa(e.type);case 16:return Pa("Lazy");case 13:return Pa("Suspense");case 19:return Pa("SuspenseList");case 0:case 15:return To(e.type,!1);case 11:return To(e.type.render,!1);case 1:return To(e.type,!0);case 31:return Pa("Activity");default:return""}}function Ud(e){try{var t="";do t+=K1(e),e=e.return;while(e);return t}catch(i){return`
|
|
47
|
-
Error generating stack: `+i.message+`
|
|
48
|
-
`+i.stack}}function Ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _d(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Z1(e){var t=_d(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof i!="undefined"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,d=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(v){l=""+v,d.call(this,v)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Sl(e){e._valueTracker||(e._valueTracker=Z1(e))}function Hd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),l="";return e&&(l=_d(e)?e.checked?"true":"false":e.value),e=l,e!==i?(t.setValue(e),!0):!1}function wl(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 Q1=/[\n"\\]/g;function _t(e){return e.replace(Q1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Eo(e,t,i,l,u,d,v,b){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ut(t)):e.value!==""+Ut(t)&&(e.value=""+Ut(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?Ao(e,v,Ut(t)):i!=null?Ao(e,v,Ut(i)):l!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Ut(b):e.removeAttribute("name")}function kd(e,t,i,l,u,d,v,b){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||t!=null))return;i=i!=null?""+Ut(i):"",t=t!=null?""+Ut(t):i,b||t===e.value||(e.value=t),e.defaultValue=t}l=l!=null?l:u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=b?e.checked:!!l,e.defaultChecked=!!l,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v)}function Ao(e,t,i){t==="number"&&wl(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Ga(e,t,i,l){if(e=e.options,t){t={};for(var u=0;u<i.length;u++)t["$"+i[u]]=!0;for(i=0;i<e.length;i++)u=t.hasOwnProperty("$"+e[i].value),e[i].selected!==u&&(e[i].selected=u),u&&l&&(e[i].defaultSelected=!0)}else{for(i=""+Ut(i),t=null,u=0;u<e.length;u++){if(e[u].value===i){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function qd(e,t,i){if(t!=null&&(t=""+Ut(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+Ut(i):""}function Yd(e,t,i,l){if(t==null){if(l!=null){if(i!=null)throw Error(r(92));if(Re(l)){if(1<l.length)throw Error(r(93));l=l[0]}i=l}i==null&&(i=""),t=i}i=Ut(t),e.defaultValue=i,l=e.textContent,l===i&&l!==""&&l!==null&&(e.value=l)}function Xa(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var F1=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 Pd(e,t,i){var l=t.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,i):typeof i!="number"||i===0||F1.has(t)?t==="float"?e.cssFloat=i:e[t]=(""+i).trim():e[t]=i+"px"}function Gd(e,t,i){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var u in t)l=t[u],t.hasOwnProperty(u)&&i[u]!==l&&Pd(e,u,l)}else for(var d in t)t.hasOwnProperty(d)&&Pd(e,d,t[d])}function jo(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 $1=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"]]),J1=/^[\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 Tl(e){return J1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var No=null;function Ro(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ka=null,Za=null;function Xd(e){var t=ka(e);if(t&&(e=t.stateNode)){var i=e[xt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Eo(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+_t(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var l=i[t];if(l!==e&&l.form===e.form){var u=l[xt]||null;if(!u)throw Error(r(90));Eo(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<i.length;t++)l=i[t],l.form===e.form&&Hd(l)}break e;case"textarea":qd(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&Ga(e,!!i.multiple,t,!1)}}}var Co=!1;function Kd(e,t,i){if(Co)return e(t,i);Co=!0;try{var l=e(t);return l}finally{if(Co=!1,(Ka!==null||Za!==null)&&(or(),Ka&&(t=Ka,e=Za,Za=Ka=null,Xd(t),e)))for(t=0;t<e.length;t++)Xd(e[t])}}function Xi(e,t){var i=e.stateNode;if(i===null)return null;var l=i[xt]||null;if(l===null)return null;i=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(r(231,t,typeof i));return i}var pn=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),Do=!1;if(pn)try{var Ki={};Object.defineProperty(Ki,"passive",{get:function(){Do=!0}}),window.addEventListener("test",Ki,Ki),window.removeEventListener("test",Ki,Ki)}catch(e){Do=!1}var Un=null,Mo=null,El=null;function Zd(){if(El)return El;var e,t=Mo,i=t.length,l,u="value"in Un?Un.value:Un.textContent,d=u.length;for(e=0;e<i&&t[e]===u[e];e++);var v=i-e;for(l=1;l<=v&&t[i-l]===u[d-l];l++);return El=u.slice(e,1<l?1-l:void 0)}function Al(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 jl(){return!0}function Qd(){return!1}function bt(e){function t(i,l,u,d,v){this._reactName=i,this._targetInst=u,this.type=l,this.nativeEvent=d,this.target=v,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(i=e[b],this[b]=i?i(d):d[b]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?jl:Qd,this.isPropagationStopped=Qd,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=jl)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=jl)},persist:function(){},isPersistent:jl}),t}var da={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nl=bt(da),Zi=y({},da,{view:0,detail:0}),W1=bt(Zi),Oo,Lo,Qi,Rl=y({},Zi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bo,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!==Qi&&(Qi&&e.type==="mousemove"?(Oo=e.screenX-Qi.screenX,Lo=e.screenY-Qi.screenY):Lo=Oo=0,Qi=e),Oo)},movementY:function(e){return"movementY"in e?e.movementY:Lo}}),Fd=bt(Rl),I1=y({},Rl,{dataTransfer:0}),ex=bt(I1),tx=y({},Zi,{relatedTarget:0}),zo=bt(tx),nx=y({},da,{animationName:0,elapsedTime:0,pseudoElement:0}),ax=bt(nx),ix=y({},da,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sx=bt(ix),lx=y({},da,{data:0}),$d=bt(lx),rx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ox={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"},ux={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ux[e])?!!t[e]:!1}function Bo(){return cx}var fx=y({},Zi,{key:function(e){if(e.key){var t=rx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Al(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ox[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bo,charCode:function(e){return e.type==="keypress"?Al(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Al(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),dx=bt(fx),hx=y({},Rl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jd=bt(hx),mx=y({},Zi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bo}),px=bt(mx),gx=y({},da,{propertyName:0,elapsedTime:0,pseudoElement:0}),yx=bt(gx),vx=y({},Rl,{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}),xx=bt(vx),bx=y({},da,{newState:0,oldState:0}),Sx=bt(bx),wx=[9,13,27,32],Vo=pn&&"CompositionEvent"in window,Fi=null;pn&&"documentMode"in document&&(Fi=document.documentMode);var Tx=pn&&"TextEvent"in window&&!Fi,Wd=pn&&(!Vo||Fi&&8<Fi&&11>=Fi),Id=" ",eh=!1;function th(e,t){switch(e){case"keyup":return wx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qa=!1;function Ex(e,t){switch(e){case"compositionend":return nh(t);case"keypress":return t.which!==32?null:(eh=!0,Id);case"textInput":return e=t.data,e===Id&&eh?null:e;default:return null}}function Ax(e,t){if(Qa)return e==="compositionend"||!Vo&&th(e,t)?(e=Zd(),El=Mo=Un=null,Qa=!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 Wd&&t.locale!=="ko"?null:t.data;default:return null}}var jx={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 ah(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!jx[e.type]:t==="textarea"}function ih(e,t,i,l){Ka?Za?Za.push(l):Za=[l]:Ka=l,t=mr(t,"onChange"),0<t.length&&(i=new Nl("onChange","change",null,i,l),e.push({event:i,listeners:t}))}var $i=null,Ji=null;function Nx(e){_0(e,0)}function Cl(e){var t=Gi(e);if(Hd(t))return e}function sh(e,t){if(e==="change")return t}var lh=!1;if(pn){var Uo;if(pn){var _o="oninput"in document;if(!_o){var rh=document.createElement("div");rh.setAttribute("oninput","return;"),_o=typeof rh.oninput=="function"}Uo=_o}else Uo=!1;lh=Uo&&(!document.documentMode||9<document.documentMode)}function oh(){$i&&($i.detachEvent("onpropertychange",uh),Ji=$i=null)}function uh(e){if(e.propertyName==="value"&&Cl(Ji)){var t=[];ih(t,Ji,e,Ro(e)),Kd(Nx,t)}}function Rx(e,t,i){e==="focusin"?(oh(),$i=t,Ji=i,$i.attachEvent("onpropertychange",uh)):e==="focusout"&&oh()}function Cx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Cl(Ji)}function Dx(e,t){if(e==="click")return Cl(t)}function Mx(e,t){if(e==="input"||e==="change")return Cl(t)}function Ox(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dt=typeof Object.is=="function"?Object.is:Ox;function Wi(e,t){if(Dt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),l=Object.keys(t);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var u=i[l];if(!ho.call(t,u)||!Dt(e[u],t[u]))return!1}return!0}function ch(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fh(e,t){var i=ch(e);e=0;for(var l;i;){if(i.nodeType===3){if(l=e+i.textContent.length,e<=t&&l>=t)return{node:i,offset:t-e};e=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=ch(i)}}function dh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=wl(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch(l){i=!1}if(i)e=t.contentWindow;else break;t=wl(e.document)}return t}function Ho(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 Lx=pn&&"documentMode"in document&&11>=document.documentMode,Fa=null,ko=null,Ii=null,qo=!1;function mh(e,t,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;qo||Fa==null||Fa!==wl(l)||(l=Fa,"selectionStart"in l&&Ho(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ii&&Wi(Ii,l)||(Ii=l,l=mr(ko,"onSelect"),0<l.length&&(t=new Nl("onSelect","select",null,t,i),e.push({event:t,listeners:l}),t.target=Fa)))}function ha(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var $a={animationend:ha("Animation","AnimationEnd"),animationiteration:ha("Animation","AnimationIteration"),animationstart:ha("Animation","AnimationStart"),transitionrun:ha("Transition","TransitionRun"),transitionstart:ha("Transition","TransitionStart"),transitioncancel:ha("Transition","TransitionCancel"),transitionend:ha("Transition","TransitionEnd")},Yo={},ph={};pn&&(ph=document.createElement("div").style,"AnimationEvent"in window||(delete $a.animationend.animation,delete $a.animationiteration.animation,delete $a.animationstart.animation),"TransitionEvent"in window||delete $a.transitionend.transition);function ma(e){if(Yo[e])return Yo[e];if(!$a[e])return e;var t=$a[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in ph)return Yo[e]=t[i];return e}var gh=ma("animationend"),yh=ma("animationiteration"),vh=ma("animationstart"),zx=ma("transitionrun"),Bx=ma("transitionstart"),Vx=ma("transitioncancel"),xh=ma("transitionend"),bh=new Map,Po="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(" ");Po.push("scrollEnd");function Ft(e,t){bh.set(e,t),fa(t,[e])}var Sh=new WeakMap;function Ht(e,t){if(typeof e=="object"&&e!==null){var i=Sh.get(e);return i!==void 0?i:(t={value:e,source:t,stack:Ud(t)},Sh.set(e,t),t)}return{value:e,source:t,stack:Ud(t)}}var kt=[],Ja=0,Go=0;function Dl(){for(var e=Ja,t=Go=Ja=0;t<e;){var i=kt[t];kt[t++]=null;var l=kt[t];kt[t++]=null;var u=kt[t];kt[t++]=null;var d=kt[t];if(kt[t++]=null,l!==null&&u!==null){var v=l.pending;v===null?u.next=u:(u.next=v.next,v.next=u),l.pending=u}d!==0&&wh(i,u,d)}}function Ml(e,t,i,l){kt[Ja++]=e,kt[Ja++]=t,kt[Ja++]=i,kt[Ja++]=l,Go|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Xo(e,t,i,l){return Ml(e,t,i,l),Ol(e)}function Wa(e,t){return Ml(e,null,null,t),Ol(e)}function wh(e,t,i){e.lanes|=i;var l=e.alternate;l!==null&&(l.lanes|=i);for(var u=!1,d=e.return;d!==null;)d.childLanes|=i,l=d.alternate,l!==null&&(l.childLanes|=i),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(u=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,u&&t!==null&&(u=31-Ct(i),e=d.hiddenUpdates,l=e[u],l===null?e[u]=[t]:l.push(t),t.lane=i|536870912),d):null}function Ol(e){if(50<Es)throw Es=0,Ju=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ia={};function Ux(e,t,i,l){this.tag=e,this.key=i,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,i,l){return new Ux(e,t,i,l)}function Ko(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gn(e,t){var i=e.alternate;return i===null?(i=Mt(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function Th(e,t){e.flags&=65011714;var i=e.alternate;return i===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=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ll(e,t,i,l,u,d){var v=0;if(l=e,typeof e=="function")Ko(e)&&(v=1);else if(typeof e=="string")v=Hb(e,i,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=Mt(31,i,t,u),e.elementType=ce,e.lanes=d,e;case E:return pa(i.children,u,d,t);case R:v=8,u|=24;break;case j:return e=Mt(12,i,t,u|2),e.elementType=j,e.lanes=d,e;case H:return e=Mt(13,i,t,u),e.elementType=H,e.lanes=d,e;case Q:return e=Mt(19,i,t,u),e.elementType=Q,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:case U:v=10;break e;case V:v=9;break e;case X:v=11;break e;case W:v=14;break e;case F:v=16,l=null;break e}v=29,i=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=Mt(v,i,t,u),t.elementType=e,t.type=l,t.lanes=d,t}function pa(e,t,i,l){return e=Mt(7,e,l,t),e.lanes=i,e}function Zo(e,t,i){return e=Mt(6,e,null,t),e.lanes=i,e}function Qo(e,t,i){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ei=[],ti=0,zl=null,Bl=0,qt=[],Yt=0,ga=null,yn=1,vn="";function ya(e,t){ei[ti++]=Bl,ei[ti++]=zl,zl=e,Bl=t}function Eh(e,t,i){qt[Yt++]=yn,qt[Yt++]=vn,qt[Yt++]=ga,ga=e;var l=yn;e=vn;var u=32-Ct(l)-1;l&=~(1<<u),i+=1;var d=32-Ct(t)+u;if(30<d){var v=u-u%5;d=(l&(1<<v)-1).toString(32),l>>=v,u-=v,yn=1<<32-Ct(t)+u|i<<u|l,vn=d+e}else yn=1<<d|i<<u|l,vn=e}function Fo(e){e.return!==null&&(ya(e,1),Eh(e,1,0))}function $o(e){for(;e===zl;)zl=ei[--ti],ei[ti]=null,Bl=ei[--ti],ei[ti]=null;for(;e===ga;)ga=qt[--Yt],qt[Yt]=null,vn=qt[--Yt],qt[Yt]=null,yn=qt[--Yt],qt[Yt]=null}var gt=null,Ge=null,Ne=!1,va=null,an=!1,Jo=Error(r(519));function xa(e){var t=Error(r(418,""));throw ns(Ht(t,e)),Jo}function Ah(e){var t=e.stateNode,i=e.type,l=e.memoizedProps;switch(t[ft]=e,t[xt]=l,i){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(i=0;i<js.length;i++)xe(js[i],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),kd(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Sl(t);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),Yd(t,l.value,l.defaultValue,l.children),Sl(t)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||l.suppressHydrationWarning===!0||Y0(t.textContent,i)?(l.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),l.onScroll!=null&&xe("scroll",t),l.onScrollEnd!=null&&xe("scrollend",t),l.onClick!=null&&(t.onclick=pr),t=!0):t=!1,t||xa(e)}function jh(e){for(gt=e.return;gt;)switch(gt.tag){case 5:case 13:an=!1;return;case 27:case 3:an=!0;return;default:gt=gt.return}}function es(e){if(e!==gt)return!1;if(!Ne)return jh(e),Ne=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||hc(e.type,e.memoizedProps)),i=!i),i&&Ge&&xa(e),jh(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(i=e.data,i==="/$"){if(t===0){Ge=Jt(e.nextSibling);break e}t--}else i!=="$"&&i!=="$!"&&i!=="$?"||t++;e=e.nextSibling}Ge=null}}else t===27?(t=Ge,In(e.type)?(e=yc,yc=null,Ge=e):Ge=t):Ge=gt?Jt(e.stateNode.nextSibling):null;return!0}function ts(){Ge=gt=null,Ne=!1}function Nh(){var e=va;return e!==null&&(Tt===null?Tt=e:Tt.push.apply(Tt,e),va=null),e}function ns(e){va===null?va=[e]:va.push(e)}var Wo=G(null),ba=null,xn=null;function _n(e,t,i){$(Wo,t._currentValue),t._currentValue=i}function bn(e){e._currentValue=Wo.current,J(Wo)}function Io(e,t,i){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===i)break;e=e.return}}function eu(e,t,i,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var d=u.dependencies;if(d!==null){var v=u.child;d=d.firstContext;e:for(;d!==null;){var b=d;d=u;for(var A=0;A<t.length;A++)if(b.context===t[A]){d.lanes|=i,b=d.alternate,b!==null&&(b.lanes|=i),Io(d.return,i,e),l||(v=null);break e}d=b.next}}else if(u.tag===18){if(v=u.return,v===null)throw Error(r(341));v.lanes|=i,d=v.alternate,d!==null&&(d.lanes|=i),Io(v,i,e),v=null}else v=u.child;if(v!==null)v.return=u;else for(v=u;v!==null;){if(v===e){v=null;break}if(u=v.sibling,u!==null){u.return=v.return,v=u;break}v=v.return}u=v}}function as(e,t,i,l){e=null;for(var u=t,d=!1;u!==null;){if(!d){if((u.flags&524288)!==0)d=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var v=u.alternate;if(v===null)throw Error(r(387));if(v=v.memoizedProps,v!==null){var b=u.type;Dt(u.pendingProps.value,v.value)||(e!==null?e.push(b):e=[b])}}else if(u===ee.current){if(v=u.alternate,v===null)throw Error(r(387));v.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Os):e=[Os])}u=u.return}e!==null&&eu(t,e,i,l),t.flags|=262144}function Vl(e){for(e=e.firstContext;e!==null;){if(!Dt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sa(e){ba=e,xn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function dt(e){return Rh(ba,e)}function Ul(e,t){return ba===null&&Sa(e),Rh(e,t)}function Rh(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},xn===null){if(e===null)throw Error(r(308));xn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xn=xn.next=t;return i}var _x=typeof AbortController!="undefined"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},Hx=n.unstable_scheduleCallback,kx=n.unstable_NormalPriority,Ie={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function tu(){return{controller:new _x,data:new Map,refCount:0}}function is(e){e.refCount--,e.refCount===0&&Hx(kx,function(){e.controller.abort()})}var ss=null,nu=0,ni=0,ai=null;function qx(e,t){if(ss===null){var i=ss=[];nu=0,ni=ic(),ai={status:"pending",value:void 0,then:function(l){i.push(l)}}}return nu++,t.then(Ch,Ch),t}function Ch(){if(--nu===0&&ss!==null){ai!==null&&(ai.status="fulfilled");var e=ss;ss=null,ni=0,ai=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Yx(e,t){var i=[],l={status:"pending",value:null,reason:null,then:function(u){i.push(u)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var u=0;u<i.length;u++)(0,i[u])(t)},function(u){for(l.status="rejected",l.reason=u,u=0;u<i.length;u++)(0,i[u])(void 0)}),l}var Dh=k.S;k.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&qx(e,t),Dh!==null&&Dh(e,t)};var wa=G(null);function au(){var e=wa.current;return e!==null?e:Ue.pooledCache}function _l(e,t){t===null?$(wa,wa.current):$(wa,t.pool)}function Mh(){var e=au();return e===null?null:{parent:Ie._currentValue,pool:e}}var ls=Error(r(460)),Oh=Error(r(474)),Hl=Error(r(542)),iu={then:function(){}};function Lh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function kl(){}function zh(e,t,i){switch(i=e[i],i===void 0?e.push(t):i!==t&&(t.then(kl,kl),t=i),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vh(e),e;default:if(typeof t.status=="string")t.then(kl,kl);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=l}},function(l){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vh(e),e}throw rs=t,ls}}var rs=null;function Bh(){if(rs===null)throw Error(r(459));var e=rs;return rs=null,e}function Vh(e){if(e===ls||e===Hl)throw Error(r(483))}var Hn=!1;function su(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lu(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 kn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function qn(e,t,i){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ce&2)!==0){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,t=Ol(e),wh(e,null,i),t}return Ml(e,l,t,i),Ol(e)}function os(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,i|=l,t.lanes=i,Cd(e,i)}}function ru(e,t){var i=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var u=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var v={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?u=d=v:d=d.next=v,i=i.next}while(i!==null);d===null?u=d=t:d=d.next=t}else u=d=t;i={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:l.shared,callbacks:l.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}var ou=!1;function us(){if(ou){var e=ai;if(e!==null)throw e}}function cs(e,t,i,l){ou=!1;var u=e.updateQueue;Hn=!1;var d=u.firstBaseUpdate,v=u.lastBaseUpdate,b=u.shared.pending;if(b!==null){u.shared.pending=null;var A=b,L=A.next;A.next=null,v===null?d=L:v.next=L,v=A;var q=e.alternate;q!==null&&(q=q.updateQueue,b=q.lastBaseUpdate,b!==v&&(b===null?q.firstBaseUpdate=L:b.next=L,q.lastBaseUpdate=A))}if(d!==null){var P=u.baseState;v=0,q=L=A=null,b=d;do{var z=b.lane&-536870913,B=z!==b.lane;if(B?(Te&z)===z:(l&z)===z){z!==0&&z===ni&&(ou=!0),q!==null&&(q=q.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var re=e,ie=b;z=t;var ze=i;switch(ie.tag){case 1:if(re=ie.payload,typeof re=="function"){P=re.call(ze,P,z);break e}P=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=ie.payload,z=typeof re=="function"?re.call(ze,P,z):re,z==null)break e;P=y({},P,z);break e;case 2:Hn=!0}}z=b.callback,z!==null&&(e.flags|=64,B&&(e.flags|=8192),B=u.callbacks,B===null?u.callbacks=[z]:B.push(z))}else B={lane:z,tag:b.tag,payload:b.payload,callback:b.callback,next:null},q===null?(L=q=B,A=P):q=q.next=B,v|=z;if(b=b.next,b===null){if(b=u.shared.pending,b===null)break;B=b,b=B.next,B.next=null,u.lastBaseUpdate=B,u.shared.pending=null}}while(!0);q===null&&(A=P),u.baseState=A,u.firstBaseUpdate=L,u.lastBaseUpdate=q,d===null&&(u.shared.lanes=0),Fn|=v,e.lanes=v,e.memoizedState=P}}function Uh(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function _h(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Uh(i[e],t)}var ii=G(null),ql=G(0);function Hh(e,t){e=Nn,$(ql,e),$(ii,t),Nn=e|t.baseLanes}function uu(){$(ql,Nn),$(ii,ii.current)}function cu(){Nn=ql.current,J(ii),J(ql)}var Yn=0,ge=null,Oe=null,$e=null,Yl=!1,si=!1,Ta=!1,Pl=0,fs=0,li=null,Px=0;function Ze(){throw Error(r(321))}function fu(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!Dt(e[i],t[i]))return!1;return!0}function du(e,t,i,l,u,d){return Yn=d,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?wm:Tm,Ta=!1,d=i(l,u),Ta=!1,si&&(d=qh(t,i,l,u)),kh(e),d}function kh(e){k.H=Fl;var t=Oe!==null&&Oe.next!==null;if(Yn=0,$e=Oe=ge=null,Yl=!1,fs=0,li=null,t)throw Error(r(300));e===null||nt||(e=e.dependencies,e!==null&&Vl(e)&&(nt=!0))}function qh(e,t,i,l){ge=e;var u=0;do{if(si&&(li=null),fs=0,si=!1,25<=u)throw Error(r(301));if(u+=1,$e=Oe=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}k.H=$x,d=t(i,l)}while(si);return d}function Gx(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?ds(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(ge.flags|=1024),t}function hu(){var e=Pl!==0;return Pl=0,e}function mu(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function pu(e){if(Yl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Yl=!1}Yn=0,$e=Oe=ge=null,si=!1,fs=Pl=0,li=null}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?ge.memoizedState=$e=e:$e=$e.next=e,$e}function Je(){if(Oe===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=$e===null?ge.memoizedState:$e.next;if(t!==null)$e=t,Oe=e;else{if(e===null)throw ge.alternate===null?Error(r(467)):Error(r(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},$e===null?ge.memoizedState=$e=e:$e=$e.next=e}return $e}function gu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ds(e){var t=fs;return fs+=1,li===null&&(li=[]),e=zh(li,e,t),t=ge,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?wm:Tm),e}function Gl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ds(e);if(e.$$typeof===U)return dt(e)}throw Error(r(438,String(e)))}function yu(e){var t=null,i=ge.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var l=ge.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=gu(),ge.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0)for(i=t.data[t.index]=Array(e),l=0;l<e;l++)i[l]=Ae;return t.index++,i}function Sn(e,t){return typeof t=="function"?t(e):t}function Xl(e){var t=Je();return vu(t,Oe,e)}function vu(e,t,i){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=i;var u=e.baseQueue,d=l.pending;if(d!==null){if(u!==null){var v=u.next;u.next=d.next,d.next=v}t.baseQueue=u=d,l.pending=null}if(d=e.baseState,u===null)e.memoizedState=d;else{t=u.next;var b=v=null,A=null,L=t,q=!1;do{var P=L.lane&-536870913;if(P!==L.lane?(Te&P)===P:(Yn&P)===P){var z=L.revertLane;if(z===0)A!==null&&(A=A.next={lane:0,revertLane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),P===ni&&(q=!0);else if((Yn&z)===z){L=L.next,z===ni&&(q=!0);continue}else P={lane:0,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},A===null?(b=A=P,v=d):A=A.next=P,ge.lanes|=z,Fn|=z;P=L.action,Ta&&i(d,P),d=L.hasEagerState?L.eagerState:i(d,P)}else z={lane:P,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},A===null?(b=A=z,v=d):A=A.next=z,ge.lanes|=P,Fn|=P;L=L.next}while(L!==null&&L!==t);if(A===null?v=d:A.next=b,!Dt(d,e.memoizedState)&&(nt=!0,q&&(i=ai,i!==null)))throw i;e.memoizedState=d,e.baseState=v,e.baseQueue=A,l.lastRenderedState=d}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function xu(e){var t=Je(),i=t.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=e;var l=i.dispatch,u=i.pending,d=t.memoizedState;if(u!==null){i.pending=null;var v=u=u.next;do d=e(d,v.action),v=v.next;while(v!==u);Dt(d,t.memoizedState)||(nt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),i.lastRenderedState=d}return[d,l]}function Yh(e,t,i){var l=ge,u=Je(),d=Ne;if(d){if(i===void 0)throw Error(r(407));i=i()}else i=t();var v=!Dt((Oe||u).memoizedState,i);v&&(u.memoizedState=i,nt=!0),u=u.queue;var b=Xh.bind(null,l,u,e);if(hs(2048,8,b,[e]),u.getSnapshot!==t||v||$e!==null&&$e.memoizedState.tag&1){if(l.flags|=2048,ri(9,Kl(),Gh.bind(null,l,u,i,t),null),Ue===null)throw Error(r(349));d||(Yn&124)!==0||Ph(l,t,i)}return i}function Ph(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=ge.updateQueue,t===null?(t=gu(),ge.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function Gh(e,t,i,l){t.value=i,t.getSnapshot=l,Kh(t)&&Zh(e)}function Xh(e,t,i){return i(function(){Kh(t)&&Zh(e)})}function Kh(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!Dt(e,i)}catch(l){return!0}}function Zh(e){var t=Wa(e,2);t!==null&&Vt(t,e,2)}function bu(e){var t=St();if(typeof e=="function"){var i=e;if(e=i(),Ta){Bn(!0);try{i()}finally{Bn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:e},t}function Qh(e,t,i,l){return e.baseState=i,vu(e,Oe,typeof l=="function"?l:Sn)}function Xx(e,t,i,l,u){if(Ql(e))throw Error(r(485));if(e=t.action,e!==null){var d={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){d.listeners.push(v)}};k.T!==null?i(!0):d.isTransition=!1,l(d),i=t.pending,i===null?(d.next=t.pending=d,Fh(t,d)):(d.next=i.next,t.pending=i.next=d)}}function Fh(e,t){var i=t.action,l=t.payload,u=e.state;if(t.isTransition){var d=k.T,v={};k.T=v;try{var b=i(u,l),A=k.S;A!==null&&A(v,b),$h(e,t,b)}catch(L){Su(e,t,L)}finally{k.T=d}}else try{d=i(u,l),$h(e,t,d)}catch(L){Su(e,t,L)}}function $h(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){Jh(e,t,l)},function(l){return Su(e,t,l)}):Jh(e,t,i)}function Jh(e,t,i){t.status="fulfilled",t.value=i,Wh(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,Fh(e,i)))}function Su(e,t,i){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=i,Wh(t),t=t.next;while(t!==l)}e.action=null}function Wh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ih(e,t){return t}function em(e,t){if(Ne){var i=Ue.formState;if(i!==null){e:{var l=ge;if(Ne){if(Ge){t:{for(var u=Ge,d=an;u.nodeType!==8;){if(!d){u=null;break t}if(u=Jt(u.nextSibling),u===null){u=null;break t}}d=u.data,u=d==="F!"||d==="F"?u:null}if(u){Ge=Jt(u.nextSibling),l=u.data==="F!";break e}}xa(l)}l=!1}l&&(t=i[0])}}return i=St(),i.memoizedState=i.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ih,lastRenderedState:t},i.queue=l,i=xm.bind(null,ge,l),l.dispatch=i,l=bu(!1),d=ju.bind(null,ge,!1,l.queue),l=St(),u={state:t,dispatch:null,action:e,pending:null},l.queue=u,i=Xx.bind(null,ge,u,d,i),u.dispatch=i,l.memoizedState=e,[t,i,!1]}function tm(e){var t=Je();return nm(t,Oe,e)}function nm(e,t,i){if(t=vu(e,t,Ih)[0],e=Xl(Sn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ds(t)}catch(v){throw v===ls?Hl:v}else l=t;t=Je();var u=t.queue,d=u.dispatch;return i!==t.memoizedState&&(ge.flags|=2048,ri(9,Kl(),Kx.bind(null,u,i),null)),[l,d,e]}function Kx(e,t){e.action=t}function am(e){var t=Je(),i=Oe;if(i!==null)return nm(t,i,e);Je(),t=t.memoizedState,i=Je();var l=i.queue.dispatch;return i.memoizedState=e,[t,l,!1]}function ri(e,t,i,l){return e={tag:e,create:i,deps:l,inst:t,next:null},t=ge.updateQueue,t===null&&(t=gu(),ge.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(l=i.next,i.next=e,e.next=l,t.lastEffect=e),e}function Kl(){return{destroy:void 0,resource:void 0}}function im(){return Je().memoizedState}function Zl(e,t,i,l){var u=St();l=l===void 0?null:l,ge.flags|=e,u.memoizedState=ri(1|t,Kl(),i,l)}function hs(e,t,i,l){var u=Je();l=l===void 0?null:l;var d=u.memoizedState.inst;Oe!==null&&l!==null&&fu(l,Oe.memoizedState.deps)?u.memoizedState=ri(t,d,i,l):(ge.flags|=e,u.memoizedState=ri(1|t,d,i,l))}function sm(e,t){Zl(8390656,8,e,t)}function lm(e,t){hs(2048,8,e,t)}function rm(e,t){return hs(4,2,e,t)}function om(e,t){return hs(4,4,e,t)}function um(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cm(e,t,i){i=i!=null?i.concat([e]):null,hs(4,4,um.bind(null,t,e),i)}function wu(){}function fm(e,t){var i=Je();t=t===void 0?null:t;var l=i.memoizedState;return t!==null&&fu(t,l[1])?l[0]:(i.memoizedState=[e,t],e)}function dm(e,t){var i=Je();t=t===void 0?null:t;var l=i.memoizedState;if(t!==null&&fu(t,l[1]))return l[0];if(l=e(),Ta){Bn(!0);try{e()}finally{Bn(!1)}}return i.memoizedState=[l,t],l}function Tu(e,t,i){return i===void 0||(Yn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=i,e=p0(),ge.lanes|=e,Fn|=e,i)}function hm(e,t,i,l){return Dt(i,t)?i:ii.current!==null?(e=Tu(e,i,l),Dt(e,t)||(nt=!0),e):(Yn&42)===0?(nt=!0,e.memoizedState=i):(e=p0(),ge.lanes|=e,Fn|=e,t)}function mm(e,t,i,l,u){var d=Z.p;Z.p=d!==0&&8>d?d:8;var v=k.T,b={};k.T=b,ju(e,!1,t,i);try{var A=u(),L=k.S;if(L!==null&&L(b,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var q=Yx(A,l);ms(e,t,q,Bt(e))}else ms(e,t,l,Bt(e))}catch(P){ms(e,t,{then:function(){},status:"rejected",reason:P},Bt())}finally{Z.p=d,k.T=v}}function Zx(){}function Eu(e,t,i,l){if(e.tag!==5)throw Error(r(476));var u=pm(e).queue;mm(e,u,t,I,i===null?Zx:function(){return gm(e),i(l)})}function pm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:I},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function gm(e){var t=pm(e).next.queue;ms(e,t,{},Bt())}function Au(){return dt(Os)}function ym(){return Je().memoizedState}function vm(){return Je().memoizedState}function Qx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=Bt();e=kn(i);var l=qn(t,e,i);l!==null&&(Vt(l,t,i),os(l,t,i)),t={cache:tu()},e.payload=t;return}t=t.return}}function Fx(e,t,i){var l=Bt();i={lane:l,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},Ql(e)?bm(t,i):(i=Xo(e,t,i,l),i!==null&&(Vt(i,e,l),Sm(i,t,l)))}function xm(e,t,i){var l=Bt();ms(e,t,i,l)}function ms(e,t,i,l){var u={lane:l,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(Ql(e))bm(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var v=t.lastRenderedState,b=d(v,i);if(u.hasEagerState=!0,u.eagerState=b,Dt(b,v))return Ml(e,t,u,0),Ue===null&&Dl(),!1}catch(A){}finally{}if(i=Xo(e,t,u,l),i!==null)return Vt(i,e,l),Sm(i,t,l),!0}return!1}function ju(e,t,i,l){if(l={lane:2,revertLane:ic(),action:l,hasEagerState:!1,eagerState:null,next:null},Ql(e)){if(t)throw Error(r(479))}else t=Xo(e,i,l,2),t!==null&&Vt(t,e,2)}function Ql(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function bm(e,t){si=Yl=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function Sm(e,t,i){if((i&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,i|=l,t.lanes=i,Cd(e,i)}}var Fl={readContext:dt,use:Gl,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze},wm={readContext:dt,use:Gl,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:sm,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,Zl(4194308,4,um.bind(null,t,e),i)},useLayoutEffect:function(e,t){return Zl(4194308,4,e,t)},useInsertionEffect:function(e,t){Zl(4,2,e,t)},useMemo:function(e,t){var i=St();t=t===void 0?null:t;var l=e();if(Ta){Bn(!0);try{e()}finally{Bn(!1)}}return i.memoizedState=[l,t],l},useReducer:function(e,t,i){var l=St();if(i!==void 0){var u=i(t);if(Ta){Bn(!0);try{i(t)}finally{Bn(!1)}}}else u=t;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=Fx.bind(null,ge,e),[l.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:function(e){e=bu(e);var t=e.queue,i=xm.bind(null,ge,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:wu,useDeferredValue:function(e,t){var i=St();return Tu(i,e,t)},useTransition:function(){var e=bu(!1);return e=mm.bind(null,ge,e.queue,!0,!1),St().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var l=ge,u=St();if(Ne){if(i===void 0)throw Error(r(407));i=i()}else{if(i=t(),Ue===null)throw Error(r(349));(Te&124)!==0||Ph(l,t,i)}u.memoizedState=i;var d={value:i,getSnapshot:t};return u.queue=d,sm(Xh.bind(null,l,d,e),[e]),l.flags|=2048,ri(9,Kl(),Gh.bind(null,l,d,i,t),null),i},useId:function(){var e=St(),t=Ue.identifierPrefix;if(Ne){var i=vn,l=yn;i=(l&~(1<<32-Ct(l)-1)).toString(32)+i,t="«"+t+"R"+i,i=Pl++,0<i&&(t+="H"+i.toString(32)),t+="»"}else i=Px++,t="«"+t+"r"+i.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Au,useFormState:em,useActionState:em,useOptimistic:function(e){var t=St();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=ju.bind(null,ge,!0,i),i.dispatch=t,[e,t]},useMemoCache:yu,useCacheRefresh:function(){return St().memoizedState=Qx.bind(null,ge)}},Tm={readContext:dt,use:Gl,useCallback:fm,useContext:dt,useEffect:lm,useImperativeHandle:cm,useInsertionEffect:rm,useLayoutEffect:om,useMemo:dm,useReducer:Xl,useRef:im,useState:function(){return Xl(Sn)},useDebugValue:wu,useDeferredValue:function(e,t){var i=Je();return hm(i,Oe.memoizedState,e,t)},useTransition:function(){var e=Xl(Sn)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:ds(e),t]},useSyncExternalStore:Yh,useId:ym,useHostTransitionStatus:Au,useFormState:tm,useActionState:tm,useOptimistic:function(e,t){var i=Je();return Qh(i,Oe,e,t)},useMemoCache:yu,useCacheRefresh:vm},$x={readContext:dt,use:Gl,useCallback:fm,useContext:dt,useEffect:lm,useImperativeHandle:cm,useInsertionEffect:rm,useLayoutEffect:om,useMemo:dm,useReducer:xu,useRef:im,useState:function(){return xu(Sn)},useDebugValue:wu,useDeferredValue:function(e,t){var i=Je();return Oe===null?Tu(i,e,t):hm(i,Oe.memoizedState,e,t)},useTransition:function(){var e=xu(Sn)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:ds(e),t]},useSyncExternalStore:Yh,useId:ym,useHostTransitionStatus:Au,useFormState:am,useActionState:am,useOptimistic:function(e,t){var i=Je();return Oe!==null?Qh(i,Oe,e,t):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:yu,useCacheRefresh:vm},oi=null,ps=0;function $l(e){var t=ps;return ps+=1,oi===null&&(oi=[]),zh(oi,e,t)}function gs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Jl(e,t){throw t.$$typeof===x?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Em(e){var t=e._init;return t(e._payload)}function Am(e){function t(D,C){if(e){var O=D.deletions;O===null?(D.deletions=[C],D.flags|=16):O.push(C)}}function i(D,C){if(!e)return null;for(;C!==null;)t(D,C),C=C.sibling;return null}function l(D){for(var C=new Map;D!==null;)D.key!==null?C.set(D.key,D):C.set(D.index,D),D=D.sibling;return C}function u(D,C){return D=gn(D,C),D.index=0,D.sibling=null,D}function d(D,C,O){return D.index=O,e?(O=D.alternate,O!==null?(O=O.index,O<C?(D.flags|=67108866,C):O):(D.flags|=67108866,C)):(D.flags|=1048576,C)}function v(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function b(D,C,O,Y){return C===null||C.tag!==6?(C=Zo(O,D.mode,Y),C.return=D,C):(C=u(C,O),C.return=D,C)}function A(D,C,O,Y){var te=O.type;return te===E?q(D,C,O.props.children,Y,O.key):C!==null&&(C.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===F&&Em(te)===C.type)?(C=u(C,O.props),gs(C,O),C.return=D,C):(C=Ll(O.type,O.key,O.props,null,D.mode,Y),gs(C,O),C.return=D,C)}function L(D,C,O,Y){return C===null||C.tag!==4||C.stateNode.containerInfo!==O.containerInfo||C.stateNode.implementation!==O.implementation?(C=Qo(O,D.mode,Y),C.return=D,C):(C=u(C,O.children||[]),C.return=D,C)}function q(D,C,O,Y,te){return C===null||C.tag!==7?(C=pa(O,D.mode,Y,te),C.return=D,C):(C=u(C,O),C.return=D,C)}function P(D,C,O){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Zo(""+C,D.mode,O),C.return=D,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case S:return O=Ll(C.type,C.key,C.props,null,D.mode,O),gs(O,C),O.return=D,O;case T:return C=Qo(C,D.mode,O),C.return=D,C;case F:var Y=C._init;return C=Y(C._payload),P(D,C,O)}if(Re(C)||Ee(C))return C=pa(C,D.mode,O,null),C.return=D,C;if(typeof C.then=="function")return P(D,$l(C),O);if(C.$$typeof===U)return P(D,Ul(D,C),O);Jl(D,C)}return null}function z(D,C,O,Y){var te=C!==null?C.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return te!==null?null:b(D,C,""+O,Y);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case S:return O.key===te?A(D,C,O,Y):null;case T:return O.key===te?L(D,C,O,Y):null;case F:return te=O._init,O=te(O._payload),z(D,C,O,Y)}if(Re(O)||Ee(O))return te!==null?null:q(D,C,O,Y,null);if(typeof O.then=="function")return z(D,C,$l(O),Y);if(O.$$typeof===U)return z(D,C,Ul(D,O),Y);Jl(D,O)}return null}function B(D,C,O,Y,te){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return D=D.get(O)||null,b(C,D,""+Y,te);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case S:return D=D.get(Y.key===null?O:Y.key)||null,A(C,D,Y,te);case T:return D=D.get(Y.key===null?O:Y.key)||null,L(C,D,Y,te);case F:var ye=Y._init;return Y=ye(Y._payload),B(D,C,O,Y,te)}if(Re(Y)||Ee(Y))return D=D.get(O)||null,q(C,D,Y,te,null);if(typeof Y.then=="function")return B(D,C,O,$l(Y),te);if(Y.$$typeof===U)return B(D,C,O,Ul(C,Y),te);Jl(C,Y)}return null}function re(D,C,O,Y){for(var te=null,ye=null,ne=C,se=C=0,it=null;ne!==null&&se<O.length;se++){ne.index>se?(it=ne,ne=null):it=ne.sibling;var je=z(D,ne,O[se],Y);if(je===null){ne===null&&(ne=it);break}e&&ne&&je.alternate===null&&t(D,ne),C=d(je,C,se),ye===null?te=je:ye.sibling=je,ye=je,ne=it}if(se===O.length)return i(D,ne),Ne&&ya(D,se),te;if(ne===null){for(;se<O.length;se++)ne=P(D,O[se],Y),ne!==null&&(C=d(ne,C,se),ye===null?te=ne:ye.sibling=ne,ye=ne);return Ne&&ya(D,se),te}for(ne=l(ne);se<O.length;se++)it=B(ne,D,se,O[se],Y),it!==null&&(e&&it.alternate!==null&&ne.delete(it.key===null?se:it.key),C=d(it,C,se),ye===null?te=it:ye.sibling=it,ye=it);return e&&ne.forEach(function(ia){return t(D,ia)}),Ne&&ya(D,se),te}function ie(D,C,O,Y){if(O==null)throw Error(r(151));for(var te=null,ye=null,ne=C,se=C=0,it=null,je=O.next();ne!==null&&!je.done;se++,je=O.next()){ne.index>se?(it=ne,ne=null):it=ne.sibling;var ia=z(D,ne,je.value,Y);if(ia===null){ne===null&&(ne=it);break}e&&ne&&ia.alternate===null&&t(D,ne),C=d(ia,C,se),ye===null?te=ia:ye.sibling=ia,ye=ia,ne=it}if(je.done)return i(D,ne),Ne&&ya(D,se),te;if(ne===null){for(;!je.done;se++,je=O.next())je=P(D,je.value,Y),je!==null&&(C=d(je,C,se),ye===null?te=je:ye.sibling=je,ye=je);return Ne&&ya(D,se),te}for(ne=l(ne);!je.done;se++,je=O.next())je=B(ne,D,se,je.value,Y),je!==null&&(e&&je.alternate!==null&&ne.delete(je.key===null?se:je.key),C=d(je,C,se),ye===null?te=je:ye.sibling=je,ye=je);return e&&ne.forEach(function(Jb){return t(D,Jb)}),Ne&&ya(D,se),te}function ze(D,C,O,Y){if(typeof O=="object"&&O!==null&&O.type===E&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case S:e:{for(var te=O.key;C!==null;){if(C.key===te){if(te=O.type,te===E){if(C.tag===7){i(D,C.sibling),Y=u(C,O.props.children),Y.return=D,D=Y;break e}}else if(C.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===F&&Em(te)===C.type){i(D,C.sibling),Y=u(C,O.props),gs(Y,O),Y.return=D,D=Y;break e}i(D,C);break}else t(D,C);C=C.sibling}O.type===E?(Y=pa(O.props.children,D.mode,Y,O.key),Y.return=D,D=Y):(Y=Ll(O.type,O.key,O.props,null,D.mode,Y),gs(Y,O),Y.return=D,D=Y)}return v(D);case T:e:{for(te=O.key;C!==null;){if(C.key===te)if(C.tag===4&&C.stateNode.containerInfo===O.containerInfo&&C.stateNode.implementation===O.implementation){i(D,C.sibling),Y=u(C,O.children||[]),Y.return=D,D=Y;break e}else{i(D,C);break}else t(D,C);C=C.sibling}Y=Qo(O,D.mode,Y),Y.return=D,D=Y}return v(D);case F:return te=O._init,O=te(O._payload),ze(D,C,O,Y)}if(Re(O))return re(D,C,O,Y);if(Ee(O)){if(te=Ee(O),typeof te!="function")throw Error(r(150));return O=te.call(O),ie(D,C,O,Y)}if(typeof O.then=="function")return ze(D,C,$l(O),Y);if(O.$$typeof===U)return ze(D,C,Ul(D,O),Y);Jl(D,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,C!==null&&C.tag===6?(i(D,C.sibling),Y=u(C,O),Y.return=D,D=Y):(i(D,C),Y=Zo(O,D.mode,Y),Y.return=D,D=Y),v(D)):i(D,C)}return function(D,C,O,Y){try{ps=0;var te=ze(D,C,O,Y);return oi=null,te}catch(ne){if(ne===ls||ne===Hl)throw ne;var ye=Mt(29,ne,null,D.mode);return ye.lanes=Y,ye.return=D,ye}finally{}}}var ui=Am(!0),jm=Am(!1),Pt=G(null),sn=null;function Pn(e){var t=e.alternate;$(et,et.current&1),$(Pt,e),sn===null&&(t===null||ii.current!==null||t.memoizedState!==null)&&(sn=e)}function Nm(e){if(e.tag===22){if($(et,et.current),$(Pt,e),sn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(sn=e)}}else Gn()}function Gn(){$(et,et.current),$(Pt,Pt.current)}function wn(e){J(Pt),sn===e&&(sn=null),J(et)}var et=G(0);function Wl(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||gc(i)))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 Nu(e,t,i,l){t=e.memoizedState,i=i(l,t),i=i==null?t:y({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Ru={enqueueSetState:function(e,t,i){e=e._reactInternals;var l=Bt(),u=kn(l);u.payload=t,i!=null&&(u.callback=i),t=qn(e,u,l),t!==null&&(Vt(t,e,l),os(t,e,l))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var l=Bt(),u=kn(l);u.tag=1,u.payload=t,i!=null&&(u.callback=i),t=qn(e,u,l),t!==null&&(Vt(t,e,l),os(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=Bt(),l=kn(i);l.tag=2,t!=null&&(l.callback=t),t=qn(e,l,i),t!==null&&(Vt(t,e,i),os(t,e,i))}};function Rm(e,t,i,l,u,d,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,d,v):t.prototype&&t.prototype.isPureReactComponent?!Wi(i,l)||!Wi(u,d):!0}function Cm(e,t,i,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,l),t.state!==e&&Ru.enqueueReplaceState(t,t.state,null)}function Ea(e,t){var i=t;if("ref"in t){i={};for(var l in t)l!=="ref"&&(i[l]=t[l])}if(e=e.defaultProps){i===t&&(i=y({},i));for(var u in e)i[u]===void 0&&(i[u]=e[u])}return i}var Il=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 Dm(e){Il(e)}function Mm(e){console.error(e)}function Om(e){Il(e)}function er(e,t){try{var i=e.onUncaughtError;i(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Lm(e,t,i){try{var l=e.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Cu(e,t,i){return i=kn(i),i.tag=3,i.payload={element:null},i.callback=function(){er(e,t)},i}function zm(e){return e=kn(e),e.tag=3,e}function Bm(e,t,i,l){var u=i.type.getDerivedStateFromError;if(typeof u=="function"){var d=l.value;e.payload=function(){return u(d)},e.callback=function(){Lm(t,i,l)}}var v=i.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){Lm(t,i,l),typeof u!="function"&&($n===null?$n=new Set([this]):$n.add(this));var b=l.stack;this.componentDidCatch(l.value,{componentStack:b!==null?b:""})})}function Jx(e,t,i,l,u){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=i.alternate,t!==null&&as(t,i,u,!0),i=Pt.current,i!==null){switch(i.tag){case 13:return sn===null?Iu():i.alternate===null&&Xe===0&&(Xe=3),i.flags&=-257,i.flags|=65536,i.lanes=u,l===iu?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([l]):t.add(l),tc(e,l,u)),!1;case 22:return i.flags|=65536,l===iu?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([l]):i.add(l)),tc(e,l,u)),!1}throw Error(r(435,i.tag))}return tc(e,l,u),Iu(),!1}if(Ne)return t=Pt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==Jo&&(e=Error(r(422),{cause:l}),ns(Ht(e,i)))):(l!==Jo&&(t=Error(r(423),{cause:l}),ns(Ht(t,i))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=Ht(l,i),u=Cu(e.stateNode,l,u),ru(e,u),Xe!==4&&(Xe=2)),!1;var d=Error(r(520),{cause:l});if(d=Ht(d,i),Ts===null?Ts=[d]:Ts.push(d),Xe!==4&&(Xe=2),t===null)return!0;l=Ht(l,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=u&-u,i.lanes|=e,e=Cu(i.stateNode,l,e),ru(i,e),!1;case 1:if(t=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&($n===null||!$n.has(d))))return i.flags|=65536,u&=-u,i.lanes|=u,u=zm(u),Bm(u,e,i,l),ru(i,u),!1}i=i.return}while(i!==null);return!1}var Vm=Error(r(461)),nt=!1;function rt(e,t,i,l){t.child=e===null?jm(t,null,i,l):ui(t,e.child,i,l)}function Um(e,t,i,l,u){i=i.render;var d=t.ref;if("ref"in l){var v={};for(var b in l)b!=="ref"&&(v[b]=l[b])}else v=l;return Sa(t),l=du(e,t,i,v,d,u),b=hu(),e!==null&&!nt?(mu(e,t,u),Tn(e,t,u)):(Ne&&b&&Fo(t),t.flags|=1,rt(e,t,l,u),t.child)}function _m(e,t,i,l,u){if(e===null){var d=i.type;return typeof d=="function"&&!Ko(d)&&d.defaultProps===void 0&&i.compare===null?(t.tag=15,t.type=d,Hm(e,t,d,l,u)):(e=Ll(i.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!Uu(e,u)){var v=d.memoizedProps;if(i=i.compare,i=i!==null?i:Wi,i(v,l)&&e.ref===t.ref)return Tn(e,t,u)}return t.flags|=1,e=gn(d,l),e.ref=t.ref,e.return=t,t.child=e}function Hm(e,t,i,l,u){if(e!==null){var d=e.memoizedProps;if(Wi(d,l)&&e.ref===t.ref)if(nt=!1,t.pendingProps=l=d,Uu(e,u))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,Tn(e,t,u)}return Du(e,t,i,l,u)}function km(e,t,i){var l=t.pendingProps,u=l.children,d=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=d!==null?d.baseLanes|i:i,e!==null){for(u=t.child=e.child,d=0;u!==null;)d=d|u.lanes|u.childLanes,u=u.sibling;t.childLanes=d&~l}else t.childLanes=0,t.child=null;return qm(e,t,l,i)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&_l(t,d!==null?d.cachePool:null),d!==null?Hh(t,d):uu(),Nm(t);else return t.lanes=t.childLanes=536870912,qm(e,t,d!==null?d.baseLanes|i:i,i)}else d!==null?(_l(t,d.cachePool),Hh(t,d),Gn(),t.memoizedState=null):(e!==null&&_l(t,null),uu(),Gn());return rt(e,t,u,i),t.child}function qm(e,t,i,l){var u=au();return u=u===null?null:{parent:Ie._currentValue,pool:u},t.memoizedState={baseLanes:i,cachePool:u},e!==null&&_l(t,null),uu(),Nm(t),e!==null&&as(e,t,l,!0),null}function tr(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(r(284));(e===null||e.ref!==i)&&(t.flags|=4194816)}}function Du(e,t,i,l,u){return Sa(t),i=du(e,t,i,l,void 0,u),l=hu(),e!==null&&!nt?(mu(e,t,u),Tn(e,t,u)):(Ne&&l&&Fo(t),t.flags|=1,rt(e,t,i,u),t.child)}function Ym(e,t,i,l,u,d){return Sa(t),t.updateQueue=null,i=qh(t,l,i,u),kh(e),l=hu(),e!==null&&!nt?(mu(e,t,d),Tn(e,t,d)):(Ne&&l&&Fo(t),t.flags|=1,rt(e,t,i,d),t.child)}function Pm(e,t,i,l,u){if(Sa(t),t.stateNode===null){var d=Ia,v=i.contextType;typeof v=="object"&&v!==null&&(d=dt(v)),d=new i(l,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Ru,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=l,d.state=t.memoizedState,d.refs={},su(t),v=i.contextType,d.context=typeof v=="object"&&v!==null?dt(v):Ia,d.state=t.memoizedState,v=i.getDerivedStateFromProps,typeof v=="function"&&(Nu(t,i,v,l),d.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(v=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),v!==d.state&&Ru.enqueueReplaceState(d,d.state,null),cs(t,l,d,u),us(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){d=t.stateNode;var b=t.memoizedProps,A=Ea(i,b);d.props=A;var L=d.context,q=i.contextType;v=Ia,typeof q=="object"&&q!==null&&(v=dt(q));var P=i.getDerivedStateFromProps;q=typeof P=="function"||typeof d.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,q||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(b||L!==v)&&Cm(t,d,l,v),Hn=!1;var z=t.memoizedState;d.state=z,cs(t,l,d,u),us(),L=t.memoizedState,b||z!==L||Hn?(typeof P=="function"&&(Nu(t,i,P,l),L=t.memoizedState),(A=Hn||Rm(t,i,A,l,z,L,v))?(q||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=L),d.props=l,d.state=L,d.context=v,l=A):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{d=t.stateNode,lu(e,t),v=t.memoizedProps,q=Ea(i,v),d.props=q,P=t.pendingProps,z=d.context,L=i.contextType,A=Ia,typeof L=="object"&&L!==null&&(A=dt(L)),b=i.getDerivedStateFromProps,(L=typeof b=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v!==P||z!==A)&&Cm(t,d,l,A),Hn=!1,z=t.memoizedState,d.state=z,cs(t,l,d,u),us();var B=t.memoizedState;v!==P||z!==B||Hn||e!==null&&e.dependencies!==null&&Vl(e.dependencies)?(typeof b=="function"&&(Nu(t,i,b,l),B=t.memoizedState),(q=Hn||Rm(t,i,q,l,z,B,A)||e!==null&&e.dependencies!==null&&Vl(e.dependencies))?(L||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(l,B,A),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(l,B,A)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=B),d.props=l,d.state=B,d.context=A,l=q):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),l=!1)}return d=l,tr(e,t),l=(t.flags&128)!==0,d||l?(d=t.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&l?(t.child=ui(t,e.child,null,u),t.child=ui(t,null,i,u)):rt(e,t,i,u),t.memoizedState=d.state,e=t.child):e=Tn(e,t,u),e}function Gm(e,t,i,l){return ts(),t.flags|=256,rt(e,t,i,l),t.child}var Mu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ou(e){return{baseLanes:e,cachePool:Mh()}}function Lu(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=Gt),e}function Xm(e,t,i){var l=t.pendingProps,u=!1,d=(t.flags&128)!==0,v;if((v=d)||(v=e!==null&&e.memoizedState===null?!1:(et.current&2)!==0),v&&(u=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(u?Pn(t):Gn(),Ne){var b=Ge,A;if(A=b){e:{for(A=b,b=an;A.nodeType!==8;){if(!b){b=null;break e}if(A=Jt(A.nextSibling),A===null){b=null;break e}}b=A}b!==null?(t.memoizedState={dehydrated:b,treeContext:ga!==null?{id:yn,overflow:vn}:null,retryLane:536870912,hydrationErrors:null},A=Mt(18,null,null,0),A.stateNode=b,A.return=t,t.child=A,gt=t,Ge=null,A=!0):A=!1}A||xa(t)}if(b=t.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return gc(b)?t.lanes=32:t.lanes=536870912,null;wn(t)}return b=l.children,l=l.fallback,u?(Gn(),u=t.mode,b=nr({mode:"hidden",children:b},u),l=pa(l,u,i,null),b.return=t,l.return=t,b.sibling=l,t.child=b,u=t.child,u.memoizedState=Ou(i),u.childLanes=Lu(e,v,i),t.memoizedState=Mu,l):(Pn(t),zu(t,b))}if(A=e.memoizedState,A!==null&&(b=A.dehydrated,b!==null)){if(d)t.flags&256?(Pn(t),t.flags&=-257,t=Bu(e,t,i)):t.memoizedState!==null?(Gn(),t.child=e.child,t.flags|=128,t=null):(Gn(),u=l.fallback,b=t.mode,l=nr({mode:"visible",children:l.children},b),u=pa(u,b,i,null),u.flags|=2,l.return=t,u.return=t,l.sibling=u,t.child=l,ui(t,e.child,null,i),l=t.child,l.memoizedState=Ou(i),l.childLanes=Lu(e,v,i),t.memoizedState=Mu,t=u);else if(Pn(t),gc(b)){if(v=b.nextSibling&&b.nextSibling.dataset,v)var L=v.dgst;v=L,l=Error(r(419)),l.stack="",l.digest=v,ns({value:l,source:null,stack:null}),t=Bu(e,t,i)}else if(nt||as(e,t,i,!1),v=(i&e.childLanes)!==0,nt||v){if(v=Ue,v!==null&&(l=i&-i,l=(l&42)!==0?1:yo(l),l=(l&(v.suspendedLanes|i))!==0?0:l,l!==0&&l!==A.retryLane))throw A.retryLane=l,Wa(e,l),Vt(v,e,l),Vm;b.data==="$?"||Iu(),t=Bu(e,t,i)}else b.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Ge=Jt(b.nextSibling),gt=t,Ne=!0,va=null,an=!1,e!==null&&(qt[Yt++]=yn,qt[Yt++]=vn,qt[Yt++]=ga,yn=e.id,vn=e.overflow,ga=t),t=zu(t,l.children),t.flags|=4096);return t}return u?(Gn(),u=l.fallback,b=t.mode,A=e.child,L=A.sibling,l=gn(A,{mode:"hidden",children:l.children}),l.subtreeFlags=A.subtreeFlags&65011712,L!==null?u=gn(L,u):(u=pa(u,b,i,null),u.flags|=2),u.return=t,l.return=t,l.sibling=u,t.child=l,l=u,u=t.child,b=e.child.memoizedState,b===null?b=Ou(i):(A=b.cachePool,A!==null?(L=Ie._currentValue,A=A.parent!==L?{parent:L,pool:L}:A):A=Mh(),b={baseLanes:b.baseLanes|i,cachePool:A}),u.memoizedState=b,u.childLanes=Lu(e,v,i),t.memoizedState=Mu,l):(Pn(t),i=e.child,e=i.sibling,i=gn(i,{mode:"visible",children:l.children}),i.return=t,i.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=i,t.memoizedState=null,i)}function zu(e,t){return t=nr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function nr(e,t){return e=Mt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Bu(e,t,i){return ui(t,e.child,null,i),e=zu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Km(e,t,i){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Io(e.return,t,i)}function Vu(e,t,i,l,u){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:u}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=i,d.tailMode=u)}function Zm(e,t,i){var l=t.pendingProps,u=l.revealOrder,d=l.tail;if(rt(e,t,l.children,i),l=et.current,(l&2)!==0)l=l&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&&Km(e,i,t);else if(e.tag===19)Km(e,i,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}l&=1}switch($(et,l),u){case"forwards":for(i=t.child,u=null;i!==null;)e=i.alternate,e!==null&&Wl(e)===null&&(u=i),i=i.sibling;i=u,i===null?(u=t.child,t.child=null):(u=i.sibling,i.sibling=null),Vu(t,!1,u,i,d);break;case"backwards":for(i=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Wl(e)===null){t.child=u;break}e=u.sibling,u.sibling=i,i=u,u=e}Vu(t,!0,i,null,d);break;case"together":Vu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Tn(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),Fn|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(as(e,t,i,!1),(i&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,i=gn(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=gn(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function Uu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Vl(e)))}function Wx(e,t,i){switch(t.tag){case 3:fe(t,t.stateNode.containerInfo),_n(t,Ie,e.memoizedState.cache),ts();break;case 27:case 5:zn(t);break;case 4:fe(t,t.stateNode.containerInfo);break;case 10:_n(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Pn(t),t.flags|=128,null):(i&t.child.childLanes)!==0?Xm(e,t,i):(Pn(t),e=Tn(e,t,i),e!==null?e.sibling:null);Pn(t);break;case 19:var u=(e.flags&128)!==0;if(l=(i&t.childLanes)!==0,l||(as(e,t,i,!1),l=(i&t.childLanes)!==0),u){if(l)return Zm(e,t,i);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),$(et,et.current),l)break;return null;case 22:case 23:return t.lanes=0,km(e,t,i);case 24:_n(t,Ie,e.memoizedState.cache)}return Tn(e,t,i)}function Qm(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!Uu(e,i)&&(t.flags&128)===0)return nt=!1,Wx(e,t,i);nt=(e.flags&131072)!==0}else nt=!1,Ne&&(t.flags&1048576)!==0&&Eh(t,Bl,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,u=l._init;if(l=u(l._payload),t.type=l,typeof l=="function")Ko(l)?(e=Ea(l,e),t.tag=1,t=Pm(null,t,l,e,i)):(t.tag=0,t=Du(null,t,l,e,i));else{if(l!=null){if(u=l.$$typeof,u===X){t.tag=11,t=Um(null,t,l,e,i);break e}else if(u===W){t.tag=14,t=_m(null,t,l,e,i);break e}}throw t=Ve(l)||l,Error(r(306,t,""))}}return t;case 0:return Du(e,t,t.type,t.pendingProps,i);case 1:return l=t.type,u=Ea(l,t.pendingProps),Pm(e,t,l,u,i);case 3:e:{if(fe(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var d=t.memoizedState;u=d.element,lu(e,t),cs(t,l,null,i);var v=t.memoizedState;if(l=v.cache,_n(t,Ie,l),l!==d.cache&&eu(t,[Ie],i,!0),us(),l=v.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=Gm(e,t,l,i);break e}else if(l!==u){u=Ht(Error(r(424)),t),ns(u),t=Gm(e,t,l,i);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(Ge=Jt(e.firstChild),gt=t,Ne=!0,va=null,an=!0,i=jm(t,null,l,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(ts(),l===u){t=Tn(e,t,i);break e}rt(e,t,l,i)}t=t.child}return t;case 26:return tr(e,t),e===null?(i=W0(t.type,null,t.pendingProps,null))?t.memoizedState=i:Ne||(i=t.type,e=t.pendingProps,l=gr(ue.current).createElement(i),l[ft]=t,l[xt]=e,ut(l,i,e),tt(l),t.stateNode=l):t.memoizedState=W0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return zn(t),e===null&&Ne&&(l=t.stateNode=F0(t.type,t.pendingProps,ue.current),gt=t,an=!0,u=Ge,In(t.type)?(yc=u,Ge=Jt(l.firstChild)):Ge=u),rt(e,t,t.pendingProps.children,i),tr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((u=l=Ge)&&(l=jb(l,t.type,t.pendingProps,an),l!==null?(t.stateNode=l,gt=t,Ge=Jt(l.firstChild),an=!1,u=!0):u=!1),u||xa(t)),zn(t),u=t.type,d=t.pendingProps,v=e!==null?e.memoizedProps:null,l=d.children,hc(u,d)?l=null:v!==null&&hc(u,v)&&(t.flags|=32),t.memoizedState!==null&&(u=du(e,t,Gx,null,null,i),Os._currentValue=u),tr(e,t),rt(e,t,l,i),t.child;case 6:return e===null&&Ne&&((e=i=Ge)&&(i=Nb(i,t.pendingProps,an),i!==null?(t.stateNode=i,gt=t,Ge=null,e=!0):e=!1),e||xa(t)),null;case 13:return Xm(e,t,i);case 4:return fe(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=ui(t,null,l,i):rt(e,t,l,i),t.child;case 11:return Um(e,t,t.type,t.pendingProps,i);case 7:return rt(e,t,t.pendingProps,i),t.child;case 8:return rt(e,t,t.pendingProps.children,i),t.child;case 12:return rt(e,t,t.pendingProps.children,i),t.child;case 10:return l=t.pendingProps,_n(t,t.type,l.value),rt(e,t,l.children,i),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,Sa(t),u=dt(u),l=l(u),t.flags|=1,rt(e,t,l,i),t.child;case 14:return _m(e,t,t.type,t.pendingProps,i);case 15:return Hm(e,t,t.type,t.pendingProps,i);case 19:return Zm(e,t,i);case 31:return l=t.pendingProps,i=t.mode,l={mode:l.mode,children:l.children},e===null?(i=nr(l,i),i.ref=t.ref,t.child=i,i.return=t,t=i):(i=gn(e.child,l),i.ref=t.ref,t.child=i,i.return=t,t=i),t;case 22:return km(e,t,i);case 24:return Sa(t),l=dt(Ie),e===null?(u=au(),u===null&&(u=Ue,d=tu(),u.pooledCache=d,d.refCount++,d!==null&&(u.pooledCacheLanes|=i),u=d),t.memoizedState={parent:l,cache:u},su(t),_n(t,Ie,u)):((e.lanes&i)!==0&&(lu(e,t),cs(t,null,null,i),us()),u=e.memoizedState,d=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),_n(t,Ie,l)):(l=d.cache,_n(t,Ie,l),l!==u.cache&&eu(t,[Ie],i,!0))),rt(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function En(e){e.flags|=4}function Fm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ap(t)){if(t=Pt.current,t!==null&&((Te&4194048)===Te?sn!==null:(Te&62914560)!==Te&&(Te&536870912)===0||t!==sn))throw rs=iu,Oh;e.flags|=8192}}function ar(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Nd():536870912,e.lanes|=t,hi|=t)}function ys(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,l=0;if(t)for(var u=e.child;u!==null;)i|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)i|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=i,t}function Ix(e,t,i){var l=t.pendingProps;switch($o(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return i=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),bn(Ie),Me(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(es(t)?En(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Nh())),qe(t),null;case 26:return i=t.memoizedState,e===null?(En(t),i!==null?(qe(t),Fm(t,i)):(qe(t),t.flags&=-16777217)):i?i!==e.memoizedState?(En(t),qe(t),Fm(t,i)):(qe(t),t.flags&=-16777217):(e.memoizedProps!==l&&En(t),qe(t),t.flags&=-16777217),null;case 27:tn(t),i=ue.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&En(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return qe(t),null}e=ae.current,es(t)?Ah(t):(e=F0(u,l,i),t.stateNode=e,En(t))}return qe(t),null;case 5:if(tn(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&En(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return qe(t),null}if(e=ae.current,es(t))Ah(t);else{switch(u=gr(ue.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?u.createElement("select",{is:l.is}):u.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?u.createElement(i,{is:l.is}):u.createElement(i)}}e[ft]=t,e[xt]=l;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(ut(e,i,l),i){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&En(t)}}return qe(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&En(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=ue.current,es(t)){if(e=t.stateNode,i=t.memoizedProps,l=null,u=gt,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[ft]=t,e=!!(e.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||Y0(e.nodeValue,i)),e||xa(t)}else e=gr(e).createTextNode(l),e[ft]=t,t.stateNode=e}return qe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=es(t),l!==null&&l.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[ft]=t}else ts(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),u=!1}else u=Nh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(wn(t),t):(wn(t),null)}if(wn(t),(t.flags&128)!==0)return t.lanes=i,t;if(i=l!==null,e=e!==null&&e.memoizedState!==null,i){l=t.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool);var d=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==u&&(l.flags|=2048)}return i!==e&&i&&(t.child.flags|=8192),ar(t,t.updateQueue),qe(t),null;case 4:return Me(),e===null&&oc(t.stateNode.containerInfo),qe(t),null;case 10:return bn(t.type),qe(t),null;case 19:if(J(et),u=t.memoizedState,u===null)return qe(t),null;if(l=(t.flags&128)!==0,d=u.rendering,d===null)if(l)ys(u,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Wl(e),d!==null){for(t.flags|=128,ys(u,!1),e=d.updateQueue,t.updateQueue=e,ar(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)Th(i,e),i=i.sibling;return $(et,et.current&1|2),t.child}e=e.sibling}u.tail!==null&&nn()>lr&&(t.flags|=128,l=!0,ys(u,!1),t.lanes=4194304)}else{if(!l)if(e=Wl(d),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,ar(t,e),ys(u,!0),u.tail===null&&u.tailMode==="hidden"&&!d.alternate&&!Ne)return qe(t),null}else 2*nn()-u.renderingStartTime>lr&&i!==536870912&&(t.flags|=128,l=!0,ys(u,!1),t.lanes=4194304);u.isBackwards?(d.sibling=t.child,t.child=d):(e=u.last,e!==null?e.sibling=d:t.child=d,u.last=d)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=nn(),t.sibling=null,e=et.current,$(et,l?e&1|2:e&1),t):(qe(t),null);case 22:case 23:return wn(t),cu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(i&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),i=t.updateQueue,i!==null&&ar(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==i&&(t.flags|=2048),e!==null&&J(wa),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),bn(Ie),qe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function eb(e,t){switch($o(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bn(Ie),Me(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return tn(t),null;case 13:if(wn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));ts()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(et),null;case 4:return Me(),null;case 10:return bn(t.type),null;case 22:case 23:return wn(t),cu(),e!==null&&J(wa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return bn(Ie),null;case 25:return null;default:return null}}function $m(e,t){switch($o(t),t.tag){case 3:bn(Ie),Me();break;case 26:case 27:case 5:tn(t);break;case 4:Me();break;case 13:wn(t);break;case 19:J(et);break;case 10:bn(t.type);break;case 22:case 23:wn(t),cu(),e!==null&&J(wa);break;case 24:bn(Ie)}}function vs(e,t){try{var i=t.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var u=l.next;i=u;do{if((i.tag&e)===e){l=void 0;var d=i.create,v=i.inst;l=d(),v.destroy=l}i=i.next}while(i!==u)}}catch(b){Be(t,t.return,b)}}function Xn(e,t,i){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var d=u.next;l=d;do{if((l.tag&e)===e){var v=l.inst,b=v.destroy;if(b!==void 0){v.destroy=void 0,u=t;var A=i,L=b;try{L()}catch(q){Be(u,A,q)}}}l=l.next}while(l!==d)}}catch(q){Be(t,t.return,q)}}function Jm(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{_h(t,i)}catch(l){Be(e,e.return,l)}}}function Wm(e,t,i){i.props=Ea(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(l){Be(e,t,l)}}function xs(e,t){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof i=="function"?e.refCleanup=i(l):i.current=l}}catch(u){Be(e,t,u)}}function ln(e,t){var i=e.ref,l=e.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(u){Be(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(u){Be(e,t,u)}else i.current=null}function Im(e){var t=e.type,i=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break e;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(u){Be(e,e.return,u)}}function _u(e,t,i){try{var l=e.stateNode;Sb(l,e.type,i,t),l[xt]=t}catch(u){Be(e,e.return,u)}}function e0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&In(e.type)||e.tag===4}function Hu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||e0(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&&In(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 ku(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t):(t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=pr));else if(l!==4&&(l===27&&In(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(ku(e,t,i),e=e.sibling;e!==null;)ku(e,t,i),e=e.sibling}function ir(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(l!==4&&(l===27&&In(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(ir(e,t,i),e=e.sibling;e!==null;)ir(e,t,i),e=e.sibling}function t0(e){var t=e.stateNode,i=e.memoizedProps;try{for(var l=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);ut(t,l,i),t[ft]=e,t[xt]=i}catch(d){Be(e,e.return,d)}}var An=!1,Qe=!1,qu=!1,n0=typeof WeakSet=="function"?WeakSet:Set,at=null;function tb(e,t){if(e=e.containerInfo,fc=wr,e=hh(e),Ho(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var u=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{i.nodeType,d.nodeType}catch(ie){i=null;break e}var v=0,b=-1,A=-1,L=0,q=0,P=e,z=null;t:for(;;){for(var B;P!==i||u!==0&&P.nodeType!==3||(b=v+u),P!==d||l!==0&&P.nodeType!==3||(A=v+l),P.nodeType===3&&(v+=P.nodeValue.length),(B=P.firstChild)!==null;)z=P,P=B;for(;;){if(P===e)break t;if(z===i&&++L===u&&(b=v),z===d&&++q===l&&(A=v),(B=P.nextSibling)!==null)break;P=z,z=P.parentNode}P=B}i=b===-1||A===-1?null:{start:b,end:A}}else i=null}i=i||{start:0,end:0}}else i=null;for(dc={focusedElem:e,selectionRange:i},wr=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){switch(t=at,d=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,i=t,u=d.memoizedProps,d=d.memoizedState,l=i.stateNode;try{var re=Ea(i.type,u,i.elementType===i.type);e=l.getSnapshotBeforeUpdate(re,d),l.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Be(i,i.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,i=e.nodeType,i===9)pc(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":pc(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,at=e;break}at=t.return}}function a0(e,t,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Kn(e,i),l&4&&vs(5,i);break;case 1:if(Kn(e,i),l&4)if(e=i.stateNode,t===null)try{e.componentDidMount()}catch(v){Be(i,i.return,v)}else{var u=Ea(i.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){Be(i,i.return,v)}}l&64&&Jm(i),l&512&&xs(i,i.return);break;case 3:if(Kn(e,i),l&64&&(e=i.updateQueue,e!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{_h(e,t)}catch(v){Be(i,i.return,v)}}break;case 27:t===null&&l&4&&t0(i);case 26:case 5:Kn(e,i),t===null&&l&4&&Im(i),l&512&&xs(i,i.return);break;case 12:Kn(e,i);break;case 13:Kn(e,i),l&4&&l0(e,i),l&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=cb.bind(null,i),Rb(e,i))));break;case 22:if(l=i.memoizedState!==null||An,!l){t=t!==null&&t.memoizedState!==null||Qe,u=An;var d=Qe;An=l,(Qe=t)&&!d?Zn(e,i,(i.subtreeFlags&8772)!==0):Kn(e,i),An=u,Qe=d}break;case 30:break;default:Kn(e,i)}}function i0(e){var t=e.alternate;t!==null&&(e.alternate=null,i0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&bo(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 He=null,wt=!1;function jn(e,t,i){for(i=i.child;i!==null;)s0(e,t,i),i=i.sibling}function s0(e,t,i){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(ki,i)}catch(d){}switch(i.tag){case 26:Qe||ln(i,t),jn(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Qe||ln(i,t);var l=He,u=wt;In(i.type)&&(He=i.stateNode,wt=!1),jn(e,t,i),Rs(i.stateNode),He=l,wt=u;break;case 5:Qe||ln(i,t);case 6:if(l=He,u=wt,He=null,jn(e,t,i),He=l,wt=u,He!==null)if(wt)try{(He.nodeType===9?He.body:He.nodeName==="HTML"?He.ownerDocument.body:He).removeChild(i.stateNode)}catch(d){Be(i,t,d)}else try{He.removeChild(i.stateNode)}catch(d){Be(i,t,d)}break;case 18:He!==null&&(wt?(e=He,Z0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Vs(e)):Z0(He,i.stateNode));break;case 4:l=He,u=wt,He=i.stateNode.containerInfo,wt=!0,jn(e,t,i),He=l,wt=u;break;case 0:case 11:case 14:case 15:Qe||Xn(2,i,t),Qe||Xn(4,i,t),jn(e,t,i);break;case 1:Qe||(ln(i,t),l=i.stateNode,typeof l.componentWillUnmount=="function"&&Wm(i,t,l)),jn(e,t,i);break;case 21:jn(e,t,i);break;case 22:Qe=(l=Qe)||i.memoizedState!==null,jn(e,t,i),Qe=l;break;default:jn(e,t,i)}}function l0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Vs(e)}catch(i){Be(t,t.return,i)}}function nb(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new n0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new n0),t;default:throw Error(r(435,e.tag))}}function Yu(e,t){var i=nb(e);t.forEach(function(l){var u=fb.bind(null,e,l);i.has(l)||(i.add(l),l.then(u,u))})}function Ot(e,t){var i=t.deletions;if(i!==null)for(var l=0;l<i.length;l++){var u=i[l],d=e,v=t,b=v;e:for(;b!==null;){switch(b.tag){case 27:if(In(b.type)){He=b.stateNode,wt=!1;break e}break;case 5:He=b.stateNode,wt=!1;break e;case 3:case 4:He=b.stateNode.containerInfo,wt=!0;break e}b=b.return}if(He===null)throw Error(r(160));s0(d,v,u),He=null,wt=!1,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)r0(t,e),t=t.sibling}var $t=null;function r0(e,t){var i=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ot(t,e),Lt(e),l&4&&(Xn(3,e,e.return),vs(3,e),Xn(5,e,e.return));break;case 1:Ot(t,e),Lt(e),l&512&&(Qe||i===null||ln(i,i.return)),l&64&&An&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var u=$t;if(Ot(t,e),Lt(e),l&512&&(Qe||i===null||ln(i,i.return)),l&4){var d=i!==null?i.memoizedState:null;if(l=e.memoizedState,i===null)if(l===null)if(e.stateNode===null){e:{l=e.type,i=e.memoizedProps,u=u.ownerDocument||u;t:switch(l){case"title":d=u.getElementsByTagName("title")[0],(!d||d[Pi]||d[ft]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=u.createElement(l),u.head.insertBefore(d,u.querySelector("head > title"))),ut(d,l,i),d[ft]=e,tt(d),l=d;break e;case"link":var v=tp("link","href",u).get(l+(i.href||""));if(v){for(var b=0;b<v.length;b++)if(d=v[b],d.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&d.getAttribute("rel")===(i.rel==null?null:i.rel)&&d.getAttribute("title")===(i.title==null?null:i.title)&&d.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){v.splice(b,1);break t}}d=u.createElement(l),ut(d,l,i),u.head.appendChild(d);break;case"meta":if(v=tp("meta","content",u).get(l+(i.content||""))){for(b=0;b<v.length;b++)if(d=v[b],d.getAttribute("content")===(i.content==null?null:""+i.content)&&d.getAttribute("name")===(i.name==null?null:i.name)&&d.getAttribute("property")===(i.property==null?null:i.property)&&d.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&d.getAttribute("charset")===(i.charSet==null?null:i.charSet)){v.splice(b,1);break t}}d=u.createElement(l),ut(d,l,i),u.head.appendChild(d);break;default:throw Error(r(468,l))}d[ft]=e,tt(d),l=d}e.stateNode=l}else np(u,e.type,e.stateNode);else e.stateNode=ep(u,l,e.memoizedProps);else d!==l?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,l===null?np(u,e.type,e.stateNode):ep(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&_u(e,e.memoizedProps,i.memoizedProps)}break;case 27:Ot(t,e),Lt(e),l&512&&(Qe||i===null||ln(i,i.return)),i!==null&&l&4&&_u(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Ot(t,e),Lt(e),l&512&&(Qe||i===null||ln(i,i.return)),e.flags&32){u=e.stateNode;try{Xa(u,"")}catch(B){Be(e,e.return,B)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,_u(e,u,i!==null?i.memoizedProps:u)),l&1024&&(qu=!0);break;case 6:if(Ot(t,e),Lt(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,i=e.stateNode;try{i.nodeValue=l}catch(B){Be(e,e.return,B)}}break;case 3:if(xr=null,u=$t,$t=yr(t.containerInfo),Ot(t,e),$t=u,Lt(e),l&4&&i!==null&&i.memoizedState.isDehydrated)try{Vs(t.containerInfo)}catch(B){Be(e,e.return,B)}qu&&(qu=!1,o0(e));break;case 4:l=$t,$t=yr(e.stateNode.containerInfo),Ot(t,e),Lt(e),$t=l;break;case 12:Ot(t,e),Lt(e);break;case 13:Ot(t,e),Lt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Qu=nn()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yu(e,l)));break;case 22:u=e.memoizedState!==null;var A=i!==null&&i.memoizedState!==null,L=An,q=Qe;if(An=L||u,Qe=q||A,Ot(t,e),Qe=q,An=L,Lt(e),l&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(i===null||A||An||Qe||Aa(e)),i=null,t=e;;){if(t.tag===5||t.tag===26){if(i===null){A=i=t;try{if(d=A.stateNode,u)v=d.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{b=A.stateNode;var P=A.memoizedProps.style,z=P!=null&&P.hasOwnProperty("display")?P.display:null;b.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(B){Be(A,A.return,B)}}}else if(t.tag===6){if(i===null){A=t;try{A.stateNode.nodeValue=u?"":A.memoizedProps}catch(B){Be(A,A.return,B)}}}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;i===t&&(i=null),t=t.return}i===t&&(i=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,Yu(e,i))));break;case 19:Ot(t,e),Lt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yu(e,l)));break;case 30:break;case 21:break;default:Ot(t,e),Lt(e)}}function Lt(e){var t=e.flags;if(t&2){try{for(var i,l=e.return;l!==null;){if(e0(l)){i=l;break}l=l.return}if(i==null)throw Error(r(160));switch(i.tag){case 27:var u=i.stateNode,d=Hu(e);ir(e,d,u);break;case 5:var v=i.stateNode;i.flags&32&&(Xa(v,""),i.flags&=-33);var b=Hu(e);ir(e,b,v);break;case 3:case 4:var A=i.stateNode.containerInfo,L=Hu(e);ku(e,L,A);break;default:throw Error(r(161))}}catch(q){Be(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function o0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;o0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Kn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)a0(e,t.alternate,t),t=t.sibling}function Aa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Xn(4,t,t.return),Aa(t);break;case 1:ln(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&Wm(t,t.return,i),Aa(t);break;case 27:Rs(t.stateNode);case 26:case 5:ln(t,t.return),Aa(t);break;case 22:t.memoizedState===null&&Aa(t);break;case 30:Aa(t);break;default:Aa(t)}e=e.sibling}}function Zn(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,u=e,d=t,v=d.flags;switch(d.tag){case 0:case 11:case 15:Zn(u,d,i),vs(4,d);break;case 1:if(Zn(u,d,i),l=d,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(L){Be(l,l.return,L)}if(l=d,u=l.updateQueue,u!==null){var b=l.stateNode;try{var A=u.shared.hiddenCallbacks;if(A!==null)for(u.shared.hiddenCallbacks=null,u=0;u<A.length;u++)Uh(A[u],b)}catch(L){Be(l,l.return,L)}}i&&v&64&&Jm(d),xs(d,d.return);break;case 27:t0(d);case 26:case 5:Zn(u,d,i),i&&l===null&&v&4&&Im(d),xs(d,d.return);break;case 12:Zn(u,d,i);break;case 13:Zn(u,d,i),i&&v&4&&l0(u,d);break;case 22:d.memoizedState===null&&Zn(u,d,i),xs(d,d.return);break;case 30:break;default:Zn(u,d,i)}t=t.sibling}}function Pu(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&is(i))}function Gu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&is(e))}function rn(e,t,i,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)u0(e,t,i,l),t=t.sibling}function u0(e,t,i,l){var u=t.flags;switch(t.tag){case 0:case 11:case 15:rn(e,t,i,l),u&2048&&vs(9,t);break;case 1:rn(e,t,i,l);break;case 3:rn(e,t,i,l),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&is(e)));break;case 12:if(u&2048){rn(e,t,i,l),e=t.stateNode;try{var d=t.memoizedProps,v=d.id,b=d.onPostCommit;typeof b=="function"&&b(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){Be(t,t.return,A)}}else rn(e,t,i,l);break;case 13:rn(e,t,i,l);break;case 23:break;case 22:d=t.stateNode,v=t.alternate,t.memoizedState!==null?d._visibility&2?rn(e,t,i,l):bs(e,t):d._visibility&2?rn(e,t,i,l):(d._visibility|=2,ci(e,t,i,l,(t.subtreeFlags&10256)!==0)),u&2048&&Pu(v,t);break;case 24:rn(e,t,i,l),u&2048&&Gu(t.alternate,t);break;default:rn(e,t,i,l)}}function ci(e,t,i,l,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var d=e,v=t,b=i,A=l,L=v.flags;switch(v.tag){case 0:case 11:case 15:ci(d,v,b,A,u),vs(8,v);break;case 23:break;case 22:var q=v.stateNode;v.memoizedState!==null?q._visibility&2?ci(d,v,b,A,u):bs(d,v):(q._visibility|=2,ci(d,v,b,A,u)),u&&L&2048&&Pu(v.alternate,v);break;case 24:ci(d,v,b,A,u),u&&L&2048&&Gu(v.alternate,v);break;default:ci(d,v,b,A,u)}t=t.sibling}}function bs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var i=e,l=t,u=l.flags;switch(l.tag){case 22:bs(i,l),u&2048&&Pu(l.alternate,l);break;case 24:bs(i,l),u&2048&&Gu(l.alternate,l);break;default:bs(i,l)}t=t.sibling}}var Ss=8192;function fi(e){if(e.subtreeFlags&Ss)for(e=e.child;e!==null;)c0(e),e=e.sibling}function c0(e){switch(e.tag){case 26:fi(e),e.flags&Ss&&e.memoizedState!==null&&qb($t,e.memoizedState,e.memoizedProps);break;case 5:fi(e);break;case 3:case 4:var t=$t;$t=yr(e.stateNode.containerInfo),fi(e),$t=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Ss,Ss=16777216,fi(e),Ss=t):fi(e));break;default:fi(e)}}function f0(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 ws(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var l=t[i];at=l,h0(l,e)}f0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)d0(e),e=e.sibling}function d0(e){switch(e.tag){case 0:case 11:case 15:ws(e),e.flags&2048&&Xn(9,e,e.return);break;case 3:ws(e);break;case 12:ws(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,sr(e)):ws(e);break;default:ws(e)}}function sr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var l=t[i];at=l,h0(l,e)}f0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Xn(8,t,t.return),sr(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,sr(t));break;default:sr(t)}e=e.sibling}}function h0(e,t){for(;at!==null;){var i=at;switch(i.tag){case 0:case 11:case 15:Xn(8,i,t);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:is(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,at=l;else e:for(i=e;at!==null;){l=at;var u=l.sibling,d=l.return;if(i0(l),l===i){at=null;break e}if(u!==null){u.return=d,at=u;break e}at=d}}}var ab={getCacheForType:function(e){var t=dt(Ie),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i}},ib=typeof WeakMap=="function"?WeakMap:Map,Ce=0,Ue=null,ve=null,Te=0,De=0,zt=null,Qn=!1,di=!1,Xu=!1,Nn=0,Xe=0,Fn=0,ja=0,Ku=0,Gt=0,hi=0,Ts=null,Tt=null,Zu=!1,Qu=0,lr=1/0,rr=null,$n=null,ot=0,Jn=null,mi=null,pi=0,Fu=0,$u=null,m0=null,Es=0,Ju=null;function Bt(){if((Ce&2)!==0&&Te!==0)return Te&-Te;if(k.T!==null){var e=ni;return e!==0?e:ic()}return Dd()}function p0(){Gt===0&&(Gt=(Te&536870912)===0||Ne?jd():536870912);var e=Pt.current;return e!==null&&(e.flags|=32),Gt}function Vt(e,t,i){(e===Ue&&(De===2||De===9)||e.cancelPendingCommit!==null)&&(gi(e,0),Wn(e,Te,Gt,!1)),Yi(e,i),((Ce&2)===0||e!==Ue)&&(e===Ue&&((Ce&2)===0&&(ja|=i),Xe===4&&Wn(e,Te,Gt,!1)),on(e))}function g0(e,t,i){if((Ce&6)!==0)throw Error(r(327));var l=!i&&(t&124)===0&&(t&e.expiredLanes)===0||qi(e,t),u=l?rb(e,t):ec(e,t,!0),d=l;do{if(u===0){di&&!l&&Wn(e,t,0,!1);break}else{if(i=e.current.alternate,d&&!sb(i)){u=ec(e,t,!1),d=!1;continue}if(u===2){if(d=t,e.errorRecoveryDisabledLanes&d)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){t=v;e:{var b=e;u=Ts;var A=b.current.memoizedState.isDehydrated;if(A&&(gi(b,v).flags|=256),v=ec(b,v,!1),v!==2){if(Xu&&!A){b.errorRecoveryDisabledLanes|=d,ja|=d,u=4;break e}d=Tt,Tt=u,d!==null&&(Tt===null?Tt=d:Tt.push.apply(Tt,d))}u=v}if(d=!1,u!==2)continue}}if(u===1){gi(e,0),Wn(e,t,0,!0);break}e:{switch(l=e,d=u,d){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Wn(l,t,Gt,!Qn);break e;case 2:Tt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(u=Qu+300-nn(),10<u)){if(Wn(l,t,Gt,!Qn),vl(l,0,!0)!==0)break e;l.timeoutHandle=X0(y0.bind(null,l,i,Tt,rr,Zu,t,Gt,ja,hi,Qn,d,2,-0,0),u);break e}y0(l,i,Tt,rr,Zu,t,Gt,ja,hi,Qn,d,0,-0,0)}}break}while(!0);on(e)}function y0(e,t,i,l,u,d,v,b,A,L,q,P,z,B){if(e.timeoutHandle=-1,P=t.subtreeFlags,(P&8192||(P&16785408)===16785408)&&(Ms={stylesheets:null,count:0,unsuspend:kb},c0(t),P=Yb(),P!==null)){e.cancelPendingCommit=P(E0.bind(null,e,t,d,i,l,u,v,b,A,q,1,z,B)),Wn(e,d,v,!L);return}E0(e,t,d,i,l,u,v,b,A)}function sb(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var u=i[l],d=u.getSnapshot;u=u.value;try{if(!Dt(d(),u))return!1}catch(v){return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;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 Wn(e,t,i,l){t&=~Ku,t&=~ja,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var u=t;0<u;){var d=31-Ct(u),v=1<<d;l[d]=-1,u&=~v}i!==0&&Rd(e,i,t)}function or(){return(Ce&6)===0?(As(0),!1):!0}function Wu(){if(ve!==null){if(De===0)var e=ve.return;else e=ve,xn=ba=null,pu(e),oi=null,ps=0,e=ve;for(;e!==null;)$m(e.alternate,e),e=e.return;ve=null}}function gi(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,Tb(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),Wu(),Ue=e,ve=i=gn(e.current,null),Te=t,De=0,zt=null,Qn=!1,di=qi(e,t),Xu=!1,hi=Gt=Ku=ja=Fn=Xe=0,Tt=Ts=null,Zu=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var u=31-Ct(l),d=1<<u;t|=e[u],l&=~d}return Nn=t,Dl(),i}function v0(e,t){ge=null,k.H=Fl,t===ls||t===Hl?(t=Bh(),De=3):t===Oh?(t=Bh(),De=4):De=t===Vm?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,zt=t,ve===null&&(Xe=1,er(e,Ht(t,e.current)))}function x0(){var e=k.H;return k.H=Fl,e===null?Fl:e}function b0(){var e=k.A;return k.A=ab,e}function Iu(){Xe=4,Qn||(Te&4194048)!==Te&&Pt.current!==null||(di=!0),(Fn&134217727)===0&&(ja&134217727)===0||Ue===null||Wn(Ue,Te,Gt,!1)}function ec(e,t,i){var l=Ce;Ce|=2;var u=x0(),d=b0();(Ue!==e||Te!==t)&&(rr=null,gi(e,t)),t=!1;var v=Xe;e:do try{if(De!==0&&ve!==null){var b=ve,A=zt;switch(De){case 8:Wu(),v=6;break e;case 3:case 2:case 9:case 6:Pt.current===null&&(t=!0);var L=De;if(De=0,zt=null,yi(e,b,A,L),i&&di){v=0;break e}break;default:L=De,De=0,zt=null,yi(e,b,A,L)}}lb(),v=Xe;break}catch(q){v0(e,q)}while(!0);return t&&e.shellSuspendCounter++,xn=ba=null,Ce=l,k.H=u,k.A=d,ve===null&&(Ue=null,Te=0,Dl()),v}function lb(){for(;ve!==null;)S0(ve)}function rb(e,t){var i=Ce;Ce|=2;var l=x0(),u=b0();Ue!==e||Te!==t?(rr=null,lr=nn()+500,gi(e,t)):di=qi(e,t);e:do try{if(De!==0&&ve!==null){t=ve;var d=zt;t:switch(De){case 1:De=0,zt=null,yi(e,t,d,1);break;case 2:case 9:if(Lh(d)){De=0,zt=null,w0(t);break}t=function(){De!==2&&De!==9||Ue!==e||(De=7),on(e)},d.then(t,t);break e;case 3:De=7;break e;case 4:De=5;break e;case 7:Lh(d)?(De=0,zt=null,w0(t)):(De=0,zt=null,yi(e,t,d,7));break;case 5:var v=null;switch(ve.tag){case 26:v=ve.memoizedState;case 5:case 27:var b=ve;if(!v||ap(v)){De=0,zt=null;var A=b.sibling;if(A!==null)ve=A;else{var L=b.return;L!==null?(ve=L,ur(L)):ve=null}break t}}De=0,zt=null,yi(e,t,d,5);break;case 6:De=0,zt=null,yi(e,t,d,6);break;case 8:Wu(),Xe=6;break e;default:throw Error(r(462))}}ob();break}catch(q){v0(e,q)}while(!0);return xn=ba=null,k.H=l,k.A=u,Ce=i,ve!==null?0:(Ue=null,Te=0,Dl(),Xe)}function ob(){for(;ve!==null&&!D1();)S0(ve)}function S0(e){var t=Qm(e.alternate,e,Nn);e.memoizedProps=e.pendingProps,t===null?ur(e):ve=t}function w0(e){var t=e,i=t.alternate;switch(t.tag){case 15:case 0:t=Ym(i,t,t.pendingProps,t.type,void 0,Te);break;case 11:t=Ym(i,t,t.pendingProps,t.type.render,t.ref,Te);break;case 5:pu(t);default:$m(i,t),t=ve=Th(t,Nn),t=Qm(i,t,Nn)}e.memoizedProps=e.pendingProps,t===null?ur(e):ve=t}function yi(e,t,i,l){xn=ba=null,pu(t),oi=null,ps=0;var u=t.return;try{if(Jx(e,u,t,i,Te)){Xe=1,er(e,Ht(i,e.current)),ve=null;return}}catch(d){if(u!==null)throw ve=u,d;Xe=1,er(e,Ht(i,e.current)),ve=null;return}t.flags&32768?(Ne||l===1?e=!0:di||(Te&536870912)!==0?e=!1:(Qn=e=!0,(l===2||l===9||l===3||l===6)&&(l=Pt.current,l!==null&&l.tag===13&&(l.flags|=16384))),T0(t,e)):ur(t)}function ur(e){var t=e;do{if((t.flags&32768)!==0){T0(t,Qn);return}e=t.return;var i=Ix(t.alternate,t,Nn);if(i!==null){ve=i;return}if(t=t.sibling,t!==null){ve=t;return}ve=t=e}while(t!==null);Xe===0&&(Xe=5)}function T0(e,t){do{var i=eb(e.alternate,e);if(i!==null){i.flags&=32767,ve=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){ve=e;return}ve=e=i}while(e!==null);Xe=6,ve=null}function E0(e,t,i,l,u,d,v,b,A){e.cancelPendingCommit=null;do cr();while(ot!==0);if((Ce&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(d=t.lanes|t.childLanes,d|=Go,k1(e,i,d,v,b,A),e===Ue&&(ve=Ue=null,Te=0),mi=t,Jn=e,pi=i,Fu=d,$u=u,m0=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,db(pl,function(){return C0(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=k.T,k.T=null,u=Z.p,Z.p=2,v=Ce,Ce|=4;try{tb(e,t,i)}finally{Ce=v,Z.p=u,k.T=l}}ot=1,A0(),j0(),N0()}}function A0(){if(ot===1){ot=0;var e=Jn,t=mi,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=k.T,k.T=null;var l=Z.p;Z.p=2;var u=Ce;Ce|=4;try{r0(t,e);var d=dc,v=hh(e.containerInfo),b=d.focusedElem,A=d.selectionRange;if(v!==b&&b&&b.ownerDocument&&dh(b.ownerDocument.documentElement,b)){if(A!==null&&Ho(b)){var L=A.start,q=A.end;if(q===void 0&&(q=L),"selectionStart"in b)b.selectionStart=L,b.selectionEnd=Math.min(q,b.value.length);else{var P=b.ownerDocument||document,z=P&&P.defaultView||window;if(z.getSelection){var B=z.getSelection(),re=b.textContent.length,ie=Math.min(A.start,re),ze=A.end===void 0?ie:Math.min(A.end,re);!B.extend&&ie>ze&&(v=ze,ze=ie,ie=v);var D=fh(b,ie),C=fh(b,ze);if(D&&C&&(B.rangeCount!==1||B.anchorNode!==D.node||B.anchorOffset!==D.offset||B.focusNode!==C.node||B.focusOffset!==C.offset)){var O=P.createRange();O.setStart(D.node,D.offset),B.removeAllRanges(),ie>ze?(B.addRange(O),B.extend(C.node,C.offset)):(O.setEnd(C.node,C.offset),B.addRange(O))}}}}for(P=[],B=b;B=B.parentNode;)B.nodeType===1&&P.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<P.length;b++){var Y=P[b];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}wr=!!fc,dc=fc=null}finally{Ce=u,Z.p=l,k.T=i}}e.current=t,ot=2}}function j0(){if(ot===2){ot=0;var e=Jn,t=mi,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=k.T,k.T=null;var l=Z.p;Z.p=2;var u=Ce;Ce|=4;try{a0(e,t.alternate,t)}finally{Ce=u,Z.p=l,k.T=i}}ot=3}}function N0(){if(ot===4||ot===3){ot=0,M1();var e=Jn,t=mi,i=pi,l=m0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,mi=Jn=null,R0(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&($n=null),vo(i),t=t.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(ki,t,void 0,(t.current.flags&128)===128)}catch(A){}if(l!==null){t=k.T,u=Z.p,Z.p=2,k.T=null;try{for(var d=e.onRecoverableError,v=0;v<l.length;v++){var b=l[v];d(b.value,{componentStack:b.stack})}}finally{k.T=t,Z.p=u}}(pi&3)!==0&&cr(),on(e),u=e.pendingLanes,(i&4194090)!==0&&(u&42)!==0?e===Ju?Es++:(Es=0,Ju=e):Es=0,As(0)}}function R0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,is(t)))}function cr(e){return A0(),j0(),N0(),C0()}function C0(){if(ot!==5)return!1;var e=Jn,t=Fu;Fu=0;var i=vo(pi),l=k.T,u=Z.p;try{Z.p=32>i?32:i,k.T=null,i=$u,$u=null;var d=Jn,v=pi;if(ot=0,mi=Jn=null,pi=0,(Ce&6)!==0)throw Error(r(331));var b=Ce;if(Ce|=4,d0(d.current),u0(d,d.current,v,i),Ce=b,As(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(ki,d)}catch(A){}return!0}finally{Z.p=u,k.T=l,R0(e,t)}}function D0(e,t,i){t=Ht(i,t),t=Cu(e.stateNode,t,2),e=qn(e,t,2),e!==null&&(Yi(e,2),on(e))}function Be(e,t,i){if(e.tag===3)D0(e,e,i);else for(;t!==null;){if(t.tag===3){D0(t,e,i);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&($n===null||!$n.has(l))){e=Ht(i,e),i=zm(2),l=qn(t,i,2),l!==null&&(Bm(i,l,t,e),Yi(l,2),on(l));break}}t=t.return}}function tc(e,t,i){var l=e.pingCache;if(l===null){l=e.pingCache=new ib;var u=new Set;l.set(t,u)}else u=l.get(t),u===void 0&&(u=new Set,l.set(t,u));u.has(i)||(Xu=!0,u.add(i),e=ub.bind(null,e,t,i),t.then(e,e))}function ub(e,t,i){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,Ue===e&&(Te&i)===i&&(Xe===4||Xe===3&&(Te&62914560)===Te&&300>nn()-Qu?(Ce&2)===0&&gi(e,0):Ku|=i,hi===Te&&(hi=0)),on(e)}function M0(e,t){t===0&&(t=Nd()),e=Wa(e,t),e!==null&&(Yi(e,t),on(e))}function cb(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),M0(e,i)}function fb(e,t){var i=0;switch(e.tag){case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(i=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),M0(e,i)}function db(e,t){return mo(e,t)}var fr=null,vi=null,nc=!1,dr=!1,ac=!1,Na=0;function on(e){e!==vi&&e.next===null&&(vi===null?fr=vi=e:vi=vi.next=e),dr=!0,nc||(nc=!0,mb())}function As(e,t){if(!ac&&dr){ac=!0;do for(var i=!1,l=fr;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var d=0;else{var v=l.suspendedLanes,b=l.pingedLanes;d=(1<<31-Ct(42|e)+1)-1,d&=u&~(v&~b),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,B0(l,d))}else d=Te,d=vl(l,l===Ue?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(d&3)===0||qi(l,d)||(i=!0,B0(l,d));l=l.next}while(i);ac=!1}}function hb(){O0()}function O0(){dr=nc=!1;var e=0;Na!==0&&(wb()&&(e=Na),Na=0);for(var t=nn(),i=null,l=fr;l!==null;){var u=l.next,d=L0(l,t);d===0?(l.next=null,i===null?fr=u:i.next=u,u===null&&(vi=i)):(i=l,(e!==0||(d&3)!==0)&&(dr=!0)),l=u}As(e)}function L0(e,t){for(var i=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var v=31-Ct(d),b=1<<v,A=u[v];A===-1?((b&i)===0||(b&l)!==0)&&(u[v]=H1(b,t)):A<=t&&(e.expiredLanes|=b),d&=~b}if(t=Ue,i=Te,i=vl(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,i===0||e===t&&(De===2||De===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&po(l),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||qi(e,i)){if(t=i&-i,t===e.callbackPriority)return t;switch(l!==null&&po(l),vo(i)){case 2:case 8:i=Ed;break;case 32:i=pl;break;case 268435456:i=Ad;break;default:i=pl}return l=z0.bind(null,e),i=mo(i,l),e.callbackPriority=t,e.callbackNode=i,t}return l!==null&&l!==null&&po(l),e.callbackPriority=2,e.callbackNode=null,2}function z0(e,t){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(cr()&&e.callbackNode!==i)return null;var l=Te;return l=vl(e,e===Ue?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(g0(e,l,t),L0(e,nn()),e.callbackNode!=null&&e.callbackNode===i?z0.bind(null,e):null)}function B0(e,t){if(cr())return null;g0(e,t,!0)}function mb(){Eb(function(){(Ce&6)!==0?mo(Td,hb):O0()})}function ic(){return Na===0&&(Na=jd()),Na}function V0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Tl(""+e)}function U0(e,t){var i=t.ownerDocument.createElement("input");return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function pb(e,t,i,l,u){if(t==="submit"&&i&&i.stateNode===u){var d=V0((u[xt]||null).action),v=l.submitter;v&&(t=(t=v[xt]||null)?V0(t.formAction):v.getAttribute("formAction"),t!==null&&(d=t,v=null));var b=new Nl("action","action",null,l,u);e.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Na!==0){var A=v?U0(u,v):new FormData(u);Eu(i,{pending:!0,data:A,method:u.method,action:d},null,A)}}else typeof d=="function"&&(b.preventDefault(),A=v?U0(u,v):new FormData(u),Eu(i,{pending:!0,data:A,method:u.method,action:d},d,A))},currentTarget:u}]})}}for(var sc=0;sc<Po.length;sc++){var lc=Po[sc],gb=lc.toLowerCase(),yb=lc[0].toUpperCase()+lc.slice(1);Ft(gb,"on"+yb)}Ft(gh,"onAnimationEnd"),Ft(yh,"onAnimationIteration"),Ft(vh,"onAnimationStart"),Ft("dblclick","onDoubleClick"),Ft("focusin","onFocus"),Ft("focusout","onBlur"),Ft(zx,"onTransitionRun"),Ft(Bx,"onTransitionStart"),Ft(Vx,"onTransitionCancel"),Ft(xh,"onTransitionEnd"),Ya("onMouseEnter",["mouseout","mouseover"]),Ya("onMouseLeave",["mouseout","mouseover"]),Ya("onPointerEnter",["pointerout","pointerover"]),Ya("onPointerLeave",["pointerout","pointerover"]),fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fa("onBeforeInput",["compositionend","keypress","textInput","paste"]),fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var js="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(" "),vb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(js));function _0(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var l=e[i],u=l.event;l=l.listeners;e:{var d=void 0;if(t)for(var v=l.length-1;0<=v;v--){var b=l[v],A=b.instance,L=b.currentTarget;if(b=b.listener,A!==d&&u.isPropagationStopped())break e;d=b,u.currentTarget=L;try{d(u)}catch(q){Il(q)}u.currentTarget=null,d=A}else for(v=0;v<l.length;v++){if(b=l[v],A=b.instance,L=b.currentTarget,b=b.listener,A!==d&&u.isPropagationStopped())break e;d=b,u.currentTarget=L;try{d(u)}catch(q){Il(q)}u.currentTarget=null,d=A}}}}function xe(e,t){var i=t[xo];i===void 0&&(i=t[xo]=new Set);var l=e+"__bubble";i.has(l)||(H0(t,e,2,!1),i.add(l))}function rc(e,t,i){var l=0;t&&(l|=4),H0(i,e,l,t)}var hr="_reactListening"+Math.random().toString(36).slice(2);function oc(e){if(!e[hr]){e[hr]=!0,Od.forEach(function(i){i!=="selectionchange"&&(vb.has(i)||rc(i,!1,e),rc(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hr]||(t[hr]=!0,rc("selectionchange",!1,t))}}function H0(e,t,i,l){switch(up(t)){case 2:var u=Xb;break;case 8:u=Kb;break;default:u=wc}i=u.bind(null,t,i,e),u=void 0,!Do||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(t,i,{capture:!0,passive:u}):e.addEventListener(t,i,!0):u!==void 0?e.addEventListener(t,i,{passive:u}):e.addEventListener(t,i,!1)}function uc(e,t,i,l,u){var d=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var v=l.tag;if(v===3||v===4){var b=l.stateNode.containerInfo;if(b===u)break;if(v===4)for(v=l.return;v!==null;){var A=v.tag;if((A===3||A===4)&&v.stateNode.containerInfo===u)return;v=v.return}for(;b!==null;){if(v=Ha(b),v===null)return;if(A=v.tag,A===5||A===6||A===26||A===27){l=d=v;continue e}b=b.parentNode}}l=l.return}Kd(function(){var L=d,q=Ro(i),P=[];e:{var z=bh.get(e);if(z!==void 0){var B=Nl,re=e;switch(e){case"keypress":if(Al(i)===0)break e;case"keydown":case"keyup":B=dx;break;case"focusin":re="focus",B=zo;break;case"focusout":re="blur",B=zo;break;case"beforeblur":case"afterblur":B=zo;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=Fd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=ex;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=px;break;case gh:case yh:case vh:B=ax;break;case xh:B=yx;break;case"scroll":case"scrollend":B=W1;break;case"wheel":B=xx;break;case"copy":case"cut":case"paste":B=sx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=Jd;break;case"toggle":case"beforetoggle":B=Sx}var ie=(t&4)!==0,ze=!ie&&(e==="scroll"||e==="scrollend"),D=ie?z!==null?z+"Capture":null:z;ie=[];for(var C=L,O;C!==null;){var Y=C;if(O=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||O===null||D===null||(Y=Xi(C,D),Y!=null&&ie.push(Ns(C,Y,O))),ze)break;C=C.return}0<ie.length&&(z=new B(z,re,null,i,q),P.push({event:z,listeners:ie}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",z&&i!==No&&(re=i.relatedTarget||i.fromElement)&&(Ha(re)||re[_a]))break e;if((B||z)&&(z=q.window===q?q:(z=q.ownerDocument)?z.defaultView||z.parentWindow:window,B?(re=i.relatedTarget||i.toElement,B=L,re=re?Ha(re):null,re!==null&&(ze=c(re),ie=re.tag,re!==ze||ie!==5&&ie!==27&&ie!==6)&&(re=null)):(B=null,re=L),B!==re)){if(ie=Fd,Y="onMouseLeave",D="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(ie=Jd,Y="onPointerLeave",D="onPointerEnter",C="pointer"),ze=B==null?z:Gi(B),O=re==null?z:Gi(re),z=new ie(Y,C+"leave",B,i,q),z.target=ze,z.relatedTarget=O,Y=null,Ha(q)===L&&(ie=new ie(D,C+"enter",re,i,q),ie.target=O,ie.relatedTarget=ze,Y=ie),ze=Y,B&&re)t:{for(ie=B,D=re,C=0,O=ie;O;O=xi(O))C++;for(O=0,Y=D;Y;Y=xi(Y))O++;for(;0<C-O;)ie=xi(ie),C--;for(;0<O-C;)D=xi(D),O--;for(;C--;){if(ie===D||D!==null&&ie===D.alternate)break t;ie=xi(ie),D=xi(D)}ie=null}else ie=null;B!==null&&k0(P,z,B,ie,!1),re!==null&&ze!==null&&k0(P,ze,re,ie,!0)}}e:{if(z=L?Gi(L):window,B=z.nodeName&&z.nodeName.toLowerCase(),B==="select"||B==="input"&&z.type==="file")var te=sh;else if(ah(z))if(lh)te=Mx;else{te=Cx;var ye=Rx}else B=z.nodeName,!B||B.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?L&&jo(L.elementType)&&(te=sh):te=Dx;if(te&&(te=te(e,L))){ih(P,te,i,q);break e}ye&&ye(e,z,L),e==="focusout"&&L&&z.type==="number"&&L.memoizedProps.value!=null&&Ao(z,"number",z.value)}switch(ye=L?Gi(L):window,e){case"focusin":(ah(ye)||ye.contentEditable==="true")&&(Fa=ye,ko=L,Ii=null);break;case"focusout":Ii=ko=Fa=null;break;case"mousedown":qo=!0;break;case"contextmenu":case"mouseup":case"dragend":qo=!1,mh(P,i,q);break;case"selectionchange":if(Lx)break;case"keydown":case"keyup":mh(P,i,q)}var ne;if(Vo)e:{switch(e){case"compositionstart":var se="onCompositionStart";break e;case"compositionend":se="onCompositionEnd";break e;case"compositionupdate":se="onCompositionUpdate";break e}se=void 0}else Qa?th(e,i)&&(se="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(se="onCompositionStart");se&&(Wd&&i.locale!=="ko"&&(Qa||se!=="onCompositionStart"?se==="onCompositionEnd"&&Qa&&(ne=Zd()):(Un=q,Mo="value"in Un?Un.value:Un.textContent,Qa=!0)),ye=mr(L,se),0<ye.length&&(se=new $d(se,e,null,i,q),P.push({event:se,listeners:ye}),ne?se.data=ne:(ne=nh(i),ne!==null&&(se.data=ne)))),(ne=Tx?Ex(e,i):Ax(e,i))&&(se=mr(L,"onBeforeInput"),0<se.length&&(ye=new $d("onBeforeInput","beforeinput",null,i,q),P.push({event:ye,listeners:se}),ye.data=ne)),pb(P,e,L,i,q)}_0(P,t)})}function Ns(e,t,i){return{instance:e,listener:t,currentTarget:i}}function mr(e,t){for(var i=t+"Capture",l=[];e!==null;){var u=e,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=Xi(e,i),u!=null&&l.unshift(Ns(e,u,d)),u=Xi(e,t),u!=null&&l.push(Ns(e,u,d))),e.tag===3)return l;e=e.return}return[]}function xi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function k0(e,t,i,l,u){for(var d=t._reactName,v=[];i!==null&&i!==l;){var b=i,A=b.alternate,L=b.stateNode;if(b=b.tag,A!==null&&A===l)break;b!==5&&b!==26&&b!==27||L===null||(A=L,u?(L=Xi(i,d),L!=null&&v.unshift(Ns(i,L,A))):u||(L=Xi(i,d),L!=null&&v.push(Ns(i,L,A)))),i=i.return}v.length!==0&&e.push({event:t,listeners:v})}var xb=/\r\n?/g,bb=/\u0000|\uFFFD/g;function q0(e){return(typeof e=="string"?e:""+e).replace(xb,`
|
|
49
|
-
`).replace(bb,"")}function Y0(e,t){return t=q0(t),q0(e)===t}function pr(){}function Le(e,t,i,l,u,d){switch(i){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Xa(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Xa(e,""+l);break;case"className":bl(e,"class",l);break;case"tabIndex":bl(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":bl(e,i,l);break;case"style":Gd(e,l,d);break;case"data":if(t!=="object"){bl(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||i!=="href")){e.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(i);break}l=Tl(""+l),e.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(i==="formAction"?(t!=="input"&&Le(e,t,"name",u.name,u,null),Le(e,t,"formEncType",u.formEncType,u,null),Le(e,t,"formMethod",u.formMethod,u,null),Le(e,t,"formTarget",u.formTarget,u,null)):(Le(e,t,"encType",u.encType,u,null),Le(e,t,"method",u.method,u,null),Le(e,t,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(i);break}l=Tl(""+l),e.setAttribute(i,l);break;case"onClick":l!=null&&(e.onclick=pr);break;case"onScroll":l!=null&&xe("scroll",e);break;case"onScrollEnd":l!=null&&xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(i=l.__html,i!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=i}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}i=Tl(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,""+l):e.removeAttribute(i);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":l===!0?e.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,l):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(i,l):e.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(i):e.setAttribute(i,l);break;case"popover":xe("beforetoggle",e),xe("toggle",e),xl(e,"popover",l);break;case"xlinkActuate":mn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":mn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":mn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":mn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":mn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":mn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":mn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":mn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":mn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":xl(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=$1.get(i)||i,xl(e,i,l))}}function cc(e,t,i,l,u,d){switch(i){case"style":Gd(e,l,d);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(i=l.__html,i!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=i}}break;case"children":typeof l=="string"?Xa(e,l):(typeof l=="number"||typeof l=="bigint")&&Xa(e,""+l);break;case"onScroll":l!=null&&xe("scroll",e);break;case"onScrollEnd":l!=null&&xe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=pr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ld.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(u=i.endsWith("Capture"),t=i.slice(2,u?i.length-7:void 0),d=e[xt]||null,d=d!=null?d[i]:null,typeof d=="function"&&e.removeEventListener(t,d,u),typeof l=="function")){typeof d!="function"&&d!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,l,u);break e}i in e?e[i]=l:l===!0?e.setAttribute(i,""):xl(e,i,l)}}}function ut(e,t,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var l=!1,u=!1,d;for(d in i)if(i.hasOwnProperty(d)){var v=i[d];if(v!=null)switch(d){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Le(e,t,d,v,i,null)}}u&&Le(e,t,"srcSet",i.srcSet,i,null),l&&Le(e,t,"src",i.src,i,null);return;case"input":xe("invalid",e);var b=d=v=u=null,A=null,L=null;for(l in i)if(i.hasOwnProperty(l)){var q=i[l];if(q!=null)switch(l){case"name":u=q;break;case"type":v=q;break;case"checked":A=q;break;case"defaultChecked":L=q;break;case"value":d=q;break;case"defaultValue":b=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,t));break;default:Le(e,t,l,q,i,null)}}kd(e,d,b,A,L,v,u,!1),Sl(e);return;case"select":xe("invalid",e),l=v=d=null;for(u in i)if(i.hasOwnProperty(u)&&(b=i[u],b!=null))switch(u){case"value":d=b;break;case"defaultValue":v=b;break;case"multiple":l=b;default:Le(e,t,u,b,i,null)}t=d,i=v,e.multiple=!!l,t!=null?Ga(e,!!l,t,!1):i!=null&&Ga(e,!!l,i,!0);return;case"textarea":xe("invalid",e),d=u=l=null;for(v in i)if(i.hasOwnProperty(v)&&(b=i[v],b!=null))switch(v){case"value":l=b;break;case"defaultValue":u=b;break;case"children":d=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:Le(e,t,v,b,i,null)}Yd(e,l,u,d),Sl(e);return;case"option":for(A in i)if(i.hasOwnProperty(A)&&(l=i[A],l!=null))switch(A){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Le(e,t,A,l,i,null)}return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(l=0;l<js.length;l++)xe(js[l],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("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(L in i)if(i.hasOwnProperty(L)&&(l=i[L],l!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Le(e,t,L,l,i,null)}return;default:if(jo(t)){for(q in i)i.hasOwnProperty(q)&&(l=i[q],l!==void 0&&cc(e,t,q,l,i,void 0));return}}for(b in i)i.hasOwnProperty(b)&&(l=i[b],l!=null&&Le(e,t,b,l,i,null))}function Sb(e,t,i,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,d=null,v=null,b=null,A=null,L=null,q=null;for(B in i){var P=i[B];if(i.hasOwnProperty(B)&&P!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":A=P;default:l.hasOwnProperty(B)||Le(e,t,B,null,l,P)}}for(var z in l){var B=l[z];if(P=i[z],l.hasOwnProperty(z)&&(B!=null||P!=null))switch(z){case"type":d=B;break;case"name":u=B;break;case"checked":L=B;break;case"defaultChecked":q=B;break;case"value":v=B;break;case"defaultValue":b=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,t));break;default:B!==P&&Le(e,t,z,B,l,P)}}Eo(e,v,b,A,L,q,d,u);return;case"select":B=v=b=z=null;for(d in i)if(A=i[d],i.hasOwnProperty(d)&&A!=null)switch(d){case"value":break;case"multiple":B=A;default:l.hasOwnProperty(d)||Le(e,t,d,null,l,A)}for(u in l)if(d=l[u],A=i[u],l.hasOwnProperty(u)&&(d!=null||A!=null))switch(u){case"value":z=d;break;case"defaultValue":b=d;break;case"multiple":v=d;default:d!==A&&Le(e,t,u,d,l,A)}t=b,i=v,l=B,z!=null?Ga(e,!!i,z,!1):!!l!=!!i&&(t!=null?Ga(e,!!i,t,!0):Ga(e,!!i,i?[]:"",!1));return;case"textarea":B=z=null;for(b in i)if(u=i[b],i.hasOwnProperty(b)&&u!=null&&!l.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Le(e,t,b,null,l,u)}for(v in l)if(u=l[v],d=i[v],l.hasOwnProperty(v)&&(u!=null||d!=null))switch(v){case"value":z=u;break;case"defaultValue":B=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==d&&Le(e,t,v,u,l,d)}qd(e,z,B);return;case"option":for(var re in i)if(z=i[re],i.hasOwnProperty(re)&&z!=null&&!l.hasOwnProperty(re))switch(re){case"selected":e.selected=!1;break;default:Le(e,t,re,null,l,z)}for(A in l)if(z=l[A],B=i[A],l.hasOwnProperty(A)&&z!==B&&(z!=null||B!=null))switch(A){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Le(e,t,A,z,l,B)}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 ie in i)z=i[ie],i.hasOwnProperty(ie)&&z!=null&&!l.hasOwnProperty(ie)&&Le(e,t,ie,null,l,z);for(L in l)if(z=l[L],B=i[L],l.hasOwnProperty(L)&&z!==B&&(z!=null||B!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:Le(e,t,L,z,l,B)}return;default:if(jo(t)){for(var ze in i)z=i[ze],i.hasOwnProperty(ze)&&z!==void 0&&!l.hasOwnProperty(ze)&&cc(e,t,ze,void 0,l,z);for(q in l)z=l[q],B=i[q],!l.hasOwnProperty(q)||z===B||z===void 0&&B===void 0||cc(e,t,q,z,l,B);return}}for(var D in i)z=i[D],i.hasOwnProperty(D)&&z!=null&&!l.hasOwnProperty(D)&&Le(e,t,D,null,l,z);for(P in l)z=l[P],B=i[P],!l.hasOwnProperty(P)||z===B||z==null&&B==null||Le(e,t,P,z,l,B)}var fc=null,dc=null;function gr(e){return e.nodeType===9?e:e.ownerDocument}function P0(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 G0(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 hc(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 mc=null;function wb(){var e=window.event;return e&&e.type==="popstate"?e===mc?!1:(mc=e,!0):(mc=null,!1)}var X0=typeof setTimeout=="function"?setTimeout:void 0,Tb=typeof clearTimeout=="function"?clearTimeout:void 0,K0=typeof Promise=="function"?Promise:void 0,Eb=typeof queueMicrotask=="function"?queueMicrotask:typeof K0!="undefined"?function(e){return K0.resolve(null).then(e).catch(Ab)}:X0;function Ab(e){setTimeout(function(){throw e})}function In(e){return e==="head"}function Z0(e,t){var i=t,l=0,u=0;do{var d=i.nextSibling;if(e.removeChild(i),d&&d.nodeType===8)if(i=d.data,i==="/$"){if(0<l&&8>l){i=l;var v=e.ownerDocument;if(i&1&&Rs(v.documentElement),i&2&&Rs(v.body),i&4)for(i=v.head,Rs(i),v=i.firstChild;v;){var b=v.nextSibling,A=v.nodeName;v[Pi]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&v.rel.toLowerCase()==="stylesheet"||i.removeChild(v),v=b}}if(u===0){e.removeChild(d),Vs(t);return}u--}else i==="$"||i==="$?"||i==="$!"?u++:l=i.charCodeAt(0)-48;else l=0;i=d}while(i);Vs(t)}function pc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":pc(i),bo(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function jb(e,t,i,l){for(;e.nodeType===1;){var u=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Pi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==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(d=e.getAttribute("src"),(d!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=Jt(e.nextSibling),e===null)break}return null}function Nb(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=Jt(e.nextSibling),e===null))return null;return e}function gc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Rb(e,t){var i=e.ownerDocument;if(e.data!=="$?"||i.readyState==="complete")t();else{var l=function(){t(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Jt(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 yc=null;function Q0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(t===0)return e;t--}else i==="/$"&&t++}e=e.previousSibling}return null}function F0(e,t,i){switch(t=gr(i),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 Rs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);bo(e)}var Xt=new Map,$0=new Set;function yr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Rn=Z.d;Z.d={f:Cb,r:Db,D:Mb,C:Ob,L:Lb,m:zb,X:Vb,S:Bb,M:Ub};function Cb(){var e=Rn.f(),t=or();return e||t}function Db(e){var t=ka(e);t!==null&&t.tag===5&&t.type==="form"?gm(t):Rn.r(e)}var bi=typeof document=="undefined"?null:document;function J0(e,t,i){var l=bi;if(l&&typeof t=="string"&&t){var u=_t(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof i=="string"&&(u+='[crossorigin="'+i+'"]'),$0.has(u)||($0.add(u),e={rel:e,crossOrigin:i,href:t},l.querySelector(u)===null&&(t=l.createElement("link"),ut(t,"link",e),tt(t),l.head.appendChild(t)))}}function Mb(e){Rn.D(e),J0("dns-prefetch",e,null)}function Ob(e,t){Rn.C(e,t),J0("preconnect",e,t)}function Lb(e,t,i){Rn.L(e,t,i);var l=bi;if(l&&e&&t){var u='link[rel="preload"][as="'+_t(t)+'"]';t==="image"&&i&&i.imageSrcSet?(u+='[imagesrcset="'+_t(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(u+='[imagesizes="'+_t(i.imageSizes)+'"]')):u+='[href="'+_t(e)+'"]';var d=u;switch(t){case"style":d=Si(e);break;case"script":d=wi(e)}Xt.has(d)||(e=y({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),Xt.set(d,e),l.querySelector(u)!==null||t==="style"&&l.querySelector(Cs(d))||t==="script"&&l.querySelector(Ds(d))||(t=l.createElement("link"),ut(t,"link",e),tt(t),l.head.appendChild(t)))}}function zb(e,t){Rn.m(e,t);var i=bi;if(i&&e){var l=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+_t(l)+'"][href="'+_t(e)+'"]',d=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=wi(e)}if(!Xt.has(d)&&(e=y({rel:"modulepreload",href:e},t),Xt.set(d,e),i.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Ds(d)))return}l=i.createElement("link"),ut(l,"link",e),tt(l),i.head.appendChild(l)}}}function Bb(e,t,i){Rn.S(e,t,i);var l=bi;if(l&&e){var u=qa(l).hoistableStyles,d=Si(e);t=t||"default";var v=u.get(d);if(!v){var b={loading:0,preload:null};if(v=l.querySelector(Cs(d)))b.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},i),(i=Xt.get(d))&&vc(e,i);var A=v=l.createElement("link");tt(A),ut(A,"link",e),A._p=new Promise(function(L,q){A.onload=L,A.onerror=q}),A.addEventListener("load",function(){b.loading|=1}),A.addEventListener("error",function(){b.loading|=2}),b.loading|=4,vr(v,t,l)}v={type:"stylesheet",instance:v,count:1,state:b},u.set(d,v)}}}function Vb(e,t){Rn.X(e,t);var i=bi;if(i&&e){var l=qa(i).hoistableScripts,u=wi(e),d=l.get(u);d||(d=i.querySelector(Ds(u)),d||(e=y({src:e,async:!0},t),(t=Xt.get(u))&&xc(e,t),d=i.createElement("script"),tt(d),ut(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(u,d))}}function Ub(e,t){Rn.M(e,t);var i=bi;if(i&&e){var l=qa(i).hoistableScripts,u=wi(e),d=l.get(u);d||(d=i.querySelector(Ds(u)),d||(e=y({src:e,async:!0,type:"module"},t),(t=Xt.get(u))&&xc(e,t),d=i.createElement("script"),tt(d),ut(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(u,d))}}function W0(e,t,i,l){var u=(u=ue.current)?yr(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(t=Si(i.href),i=qa(u).hoistableStyles,l=i.get(t),l||(l={type:"style",instance:null,count:0,state:null},i.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Si(i.href);var d=qa(u).hoistableStyles,v=d.get(e);if(v||(u=u.ownerDocument||u,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,v),(d=u.querySelector(Cs(e)))&&!d._p&&(v.instance=d,v.state.loading=5),Xt.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Xt.set(e,i),d||_b(u,e,i,v.state))),t&&l===null)throw Error(r(528,""));return v}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wi(i),i=qa(u).hoistableScripts,l=i.get(t),l||(l={type:"script",instance:null,count:0,state:null},i.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Si(e){return'href="'+_t(e)+'"'}function Cs(e){return'link[rel="stylesheet"]['+e+"]"}function I0(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function _b(e,t,i,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ut(t,"link",i),tt(t),e.head.appendChild(t))}function wi(e){return'[src="'+_t(e)+'"]'}function Ds(e){return"script[async]"+e}function ep(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+_t(i.href)+'"]');if(l)return t.instance=l,tt(l),l;var u=y({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),tt(l),ut(l,"style",u),vr(l,i.precedence,e),t.instance=l;case"stylesheet":u=Si(i.href);var d=e.querySelector(Cs(u));if(d)return t.state.loading|=4,t.instance=d,tt(d),d;l=I0(i),(u=Xt.get(u))&&vc(l,u),d=(e.ownerDocument||e).createElement("link"),tt(d);var v=d;return v._p=new Promise(function(b,A){v.onload=b,v.onerror=A}),ut(d,"link",l),t.state.loading|=4,vr(d,i.precedence,e),t.instance=d;case"script":return d=wi(i.src),(u=e.querySelector(Ds(d)))?(t.instance=u,tt(u),u):(l=i,(u=Xt.get(d))&&(l=y({},i),xc(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),tt(u),ut(u,"link",l),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&&(l=t.instance,t.state.loading|=4,vr(l,i.precedence,e));return t.instance}function vr(e,t,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,d=u,v=0;v<l.length;v++){var b=l[v];if(b.dataset.precedence===t)d=b;else if(d!==u)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function vc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function xc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var xr=null;function tp(e,t,i){if(xr===null){var l=new Map,u=xr=new Map;u.set(i,l)}else u=xr,l=u.get(i),l||(l=new Map,u.set(i,l));if(l.has(e))return l;for(l.set(e,null),i=i.getElementsByTagName(e),u=0;u<i.length;u++){var d=i[u];if(!(d[Pi]||d[ft]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var v=d.getAttribute(t)||"";v=e+v;var b=l.get(v);b?b.push(d):l.set(v,[d])}}return l}function np(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function Hb(e,t,i){if(i===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 ap(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Ms=null;function kb(){}function qb(e,t,i){if(Ms===null)throw Error(r(475));var l=Ms;if(t.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var u=Si(i.href),d=e.querySelector(Cs(u));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=br.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=d,tt(d);return}d=e.ownerDocument||e,i=I0(i),(u=Xt.get(u))&&vc(i,u),d=d.createElement("link"),tt(d);var v=d;v._p=new Promise(function(b,A){v.onload=b,v.onerror=A}),ut(d,"link",i),t.instance=d}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=br.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function Yb(){if(Ms===null)throw Error(r(475));var e=Ms;return e.stylesheets&&e.count===0&&bc(e,e.stylesheets),0<e.count?function(t){var i=setTimeout(function(){if(e.stylesheets&&bc(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(i)}}:null}function br(){if(this.count--,this.count===0){if(this.stylesheets)bc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Sr=null;function bc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Sr=new Map,t.forEach(Pb,e),Sr=null,br.call(e))}function Pb(e,t){if(!(t.state.loading&4)){var i=Sr.get(e);if(i)var l=i.get(null);else{i=new Map,Sr.set(e,i);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<u.length;d++){var v=u[d];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(i.set(v.dataset.precedence,v),l=v)}l&&i.set(null,l)}u=t.instance,v=u.getAttribute("data-precedence"),d=i.get(v)||l,d===l&&i.set(null,u),i.set(v,u),this.count++,l=br.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),d?d.parentNode.insertBefore(u,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Os={$$typeof:U,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function Gb(e,t,i,l,u,d,v,b){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=go(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=go(0),this.hiddenUpdates=go(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=d,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function ip(e,t,i,l,u,d,v,b,A,L,q,P){return e=new Gb(e,t,i,v,b,A,L,P),t=1,d===!0&&(t|=24),d=Mt(3,null,null,t),e.current=d,d.stateNode=e,t=tu(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:l,isDehydrated:i,cache:t},su(d),e}function sp(e){return e?(e=Ia,e):Ia}function lp(e,t,i,l,u,d){u=sp(u),l.context===null?l.context=u:l.pendingContext=u,l=kn(t),l.payload={element:i},d=d===void 0?null:d,d!==null&&(l.callback=d),i=qn(e,l,t),i!==null&&(Vt(i,e,t),os(i,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function Sc(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function op(e){if(e.tag===13){var t=Wa(e,67108864);t!==null&&Vt(t,e,67108864),Sc(e,67108864)}}var wr=!0;function Xb(e,t,i,l){var u=k.T;k.T=null;var d=Z.p;try{Z.p=2,wc(e,t,i,l)}finally{Z.p=d,k.T=u}}function Kb(e,t,i,l){var u=k.T;k.T=null;var d=Z.p;try{Z.p=8,wc(e,t,i,l)}finally{Z.p=d,k.T=u}}function wc(e,t,i,l){if(wr){var u=Tc(l);if(u===null)uc(e,t,l,Tr,i),cp(e,l);else if(Qb(u,e,t,i,l))l.stopPropagation();else if(cp(e,l),t&4&&-1<Zb.indexOf(e)){for(;u!==null;){var d=ka(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var v=ca(d.pendingLanes);if(v!==0){var b=d;for(b.pendingLanes|=2,b.entangledLanes|=2;v;){var A=1<<31-Ct(v);b.entanglements[1]|=A,v&=~A}on(d),(Ce&6)===0&&(lr=nn()+500,As(0))}}break;case 13:b=Wa(d,2),b!==null&&Vt(b,d,2),or(),Sc(d,2)}if(d=Tc(l),d===null&&uc(e,t,l,Tr,i),d===u)break;u=d}u!==null&&l.stopPropagation()}else uc(e,t,l,null,i)}}function Tc(e){return e=Ro(e),Ec(e)}var Tr=null;function Ec(e){if(Tr=null,e=Ha(e),e!==null){var t=c(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=f(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Tr=e,null}function up(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(O1()){case Td:return 2;case Ed:return 8;case pl:case L1:return 32;case Ad:return 268435456;default:return 32}default:return 32}}var Ac=!1,ea=null,ta=null,na=null,Ls=new Map,zs=new Map,aa=[],Zb="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 cp(e,t){switch(e){case"focusin":case"focusout":ea=null;break;case"dragenter":case"dragleave":ta=null;break;case"mouseover":case"mouseout":na=null;break;case"pointerover":case"pointerout":Ls.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zs.delete(t.pointerId)}}function Bs(e,t,i,l,u,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:i,eventSystemFlags:l,nativeEvent:d,targetContainers:[u]},t!==null&&(t=ka(t),t!==null&&op(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Qb(e,t,i,l,u){switch(t){case"focusin":return ea=Bs(ea,e,t,i,l,u),!0;case"dragenter":return ta=Bs(ta,e,t,i,l,u),!0;case"mouseover":return na=Bs(na,e,t,i,l,u),!0;case"pointerover":var d=u.pointerId;return Ls.set(d,Bs(Ls.get(d)||null,e,t,i,l,u)),!0;case"gotpointercapture":return d=u.pointerId,zs.set(d,Bs(zs.get(d)||null,e,t,i,l,u)),!0}return!1}function fp(e){var t=Ha(e.target);if(t!==null){var i=c(t);if(i!==null){if(t=i.tag,t===13){if(t=f(i),t!==null){e.blockedOn=t,q1(e.priority,function(){if(i.tag===13){var l=Bt();l=yo(l);var u=Wa(i,l);u!==null&&Vt(u,i,l),Sc(i,l)}});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Er(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=Tc(e.nativeEvent);if(i===null){i=e.nativeEvent;var l=new i.constructor(i.type,i);No=l,i.target.dispatchEvent(l),No=null}else return t=ka(i),t!==null&&op(t),e.blockedOn=i,!1;t.shift()}return!0}function dp(e,t,i){Er(e)&&i.delete(t)}function Fb(){Ac=!1,ea!==null&&Er(ea)&&(ea=null),ta!==null&&Er(ta)&&(ta=null),na!==null&&Er(na)&&(na=null),Ls.forEach(dp),zs.forEach(dp)}function Ar(e,t){e.blockedOn===t&&(e.blockedOn=null,Ac||(Ac=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Fb)))}var jr=null;function hp(e){jr!==e&&(jr=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){jr===e&&(jr=null);for(var t=0;t<e.length;t+=3){var i=e[t],l=e[t+1],u=e[t+2];if(typeof l!="function"){if(Ec(l||i)===null)continue;break}var d=ka(i);d!==null&&(e.splice(t,3),t-=3,Eu(d,{pending:!0,data:u,method:i.method,action:l},l,u))}}))}function Vs(e){function t(A){return Ar(A,e)}ea!==null&&Ar(ea,e),ta!==null&&Ar(ta,e),na!==null&&Ar(na,e),Ls.forEach(t),zs.forEach(t);for(var i=0;i<aa.length;i++){var l=aa[i];l.blockedOn===e&&(l.blockedOn=null)}for(;0<aa.length&&(i=aa[0],i.blockedOn===null);)fp(i),i.blockedOn===null&&aa.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var u=i[l],d=i[l+1],v=u[xt]||null;if(typeof d=="function")v||hp(i);else if(v){var b=null;if(d&&d.hasAttribute("formAction")){if(u=d,v=d[xt]||null)b=v.formAction;else if(Ec(u)!==null)continue}else b=v.action;typeof b=="function"?i[l+1]=b:(i.splice(l,3),l-=3),hp(i)}}}function jc(e){this._internalRoot=e}Nr.prototype.render=jc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var i=t.current,l=Bt();lp(i,l,e,t,null,null)},Nr.prototype.unmount=jc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;lp(e.current,2,null,e,null,null),or(),t[_a]=null}};function Nr(e){this._internalRoot=e}Nr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Dd();e={blockedOn:null,target:e,priority:t};for(var i=0;i<aa.length&&t!==0&&t<aa[i].priority;i++);aa.splice(i,0,e),i===0&&fp(e)}};var mp=a.version;if(mp!=="19.1.1")throw Error(r(527,mp,"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=m(t),e=e!==null?h(e):null,e=e===null?null:e.stateNode,e};var $b={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Rr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rr.isDisabled&&Rr.supportsFiber)try{ki=Rr.inject($b),Rt=Rr}catch(e){}}return _s.createRoot=function(e,t){if(!o(e))throw Error(r(299));var i=!1,l="",u=Dm,d=Mm,v=Om,b=null;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(v=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(b=t.unstable_transitionCallbacks)),t=ip(e,1,!1,null,null,i,l,u,d,v,b,null),e[_a]=t.current,oc(e),new jc(t)},_s.hydrateRoot=function(e,t,i){if(!o(e))throw Error(r(299));var l=!1,u="",d=Dm,v=Mm,b=Om,A=null,L=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(v=i.onCaughtError),i.onRecoverableError!==void 0&&(b=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(A=i.unstable_transitionCallbacks),i.formState!==void 0&&(L=i.formState)),t=ip(e,1,!0,t,i!=null?i:null,l,u,d,v,b,A,L),t.context=sp(null),i=t.current,l=Bt(),l=yo(l),u=kn(l),u.callback=null,qn(i,u,l),i=l,t.current.lanes=i,Yi(t,i),on(t),e[_a]=t.current,oc(e),new Nr(t)},_s.version="19.1.1",_s}var Rp;function d2(){if(Rp)return Oc.exports;Rp=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(a){console.error(a)}}return n(),Oc.exports=f2(),Oc.exports}var h2=d2();/**
|
|
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 Cp="popstate";function m2(n={}){function a(r,o){let{pathname:c,search:f,hash:p}=r.location;return af("",{pathname:c,search:f,hash:p},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function s(r,o){return typeof o=="string"?o:Fs(o)}return g2(a,s,null,n)}function Pe(n,a){if(n===!1||n===null||typeof n=="undefined")throw new Error(a)}function It(n,a){if(!n){typeof console!="undefined"&&console.warn(a);try{throw new Error(a)}catch(s){}}}function p2(){return Math.random().toString(36).substring(2,10)}function Dp(n,a){return{usr:n.state,key:n.key,idx:a}}function af(n,a,s=null,r){return le(K({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof a=="string"?Li(a):a),{state:s,key:a&&a.key||r||p2()})}function Fs({pathname:n="/",search:a="",hash:s=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function Li(n){let a={};if(n){let s=n.indexOf("#");s>=0&&(a.hash=n.substring(s),n=n.substring(0,s));let r=n.indexOf("?");r>=0&&(a.search=n.substring(r),n=n.substring(0,r)),n&&(a.pathname=n)}return a}function g2(n,a,s,r={}){let{window:o=document.defaultView,v5Compat:c=!1}=r,f=o.history,p="POP",m=null,h=y();h==null&&(h=0,f.replaceState(le(K({},f.state),{idx:h}),""));function y(){return(f.state||{idx:null}).idx}function x(){p="POP";let j=y(),M=j==null?null:j-h;h=j,m&&m({action:p,location:R.location,delta:M})}function S(j,M){p="PUSH";let V=af(R.location,j,M);h=y()+1;let U=Dp(V,h),X=R.createHref(V);try{f.pushState(U,"",X)}catch(H){if(H instanceof DOMException&&H.name==="DataCloneError")throw H;o.location.assign(X)}c&&m&&m({action:p,location:R.location,delta:1})}function T(j,M){p="REPLACE";let V=af(R.location,j,M);h=y();let U=Dp(V,h),X=R.createHref(V);f.replaceState(U,"",X),c&&m&&m({action:p,location:R.location,delta:0})}function E(j){return y2(j)}let R={get action(){return p},get location(){return n(o,f)},listen(j){if(m)throw new Error("A history only accepts one active listener");return o.addEventListener(Cp,x),m=j,()=>{o.removeEventListener(Cp,x),m=null}},createHref(j){return a(o,j)},createURL:E,encodeLocation(j){let M=E(j);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:S,replace:T,go(j){return f.go(j)}};return R}function y2(n,a=!1){let s="http://localhost";typeof window!="undefined"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Pe(s,"No window.location.(origin|href) available to create URL");let r=typeof n=="string"?n:Fs(n);return r=r.replace(/ $/,"%20"),!a&&r.startsWith("//")&&(r=s+r),new URL(r,s)}function oy(n,a,s="/"){return v2(n,a,s,!1)}function v2(n,a,s,r){let o=typeof a=="string"?Li(a):a,c=Dn(o.pathname||"/",s);if(c==null)return null;let f=uy(n);x2(f);let p=null;for(let m=0;p==null&&m<f.length;++m){let h=D2(c);p=R2(f[m],h,r)}return p}function uy(n,a=[],s=[],r=""){let o=(c,f,p)=>{let m={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};m.relativePath.startsWith("/")&&(Pe(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length));let h=Cn([r,m.relativePath]),y=s.concat(m);c.children&&c.children.length>0&&(Pe(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),uy(c.children,a,y,h)),!(c.path==null&&!c.index)&&a.push({path:h,score:j2(h,c.index),routesMeta:y})};return n.forEach((c,f)=>{var p;if(c.path===""||!((p=c.path)!=null&&p.includes("?")))o(c,f);else for(let m of cy(c.path))o(c,f,m)}),a}function cy(n){let a=n.split("/");if(a.length===0)return[];let[s,...r]=a,o=s.endsWith("?"),c=s.replace(/\?$/,"");if(r.length===0)return o?[c,""]:[c];let f=cy(r.join("/")),p=[];return p.push(...f.map(m=>m===""?c:[c,m].join("/"))),o&&p.push(...f),p.map(m=>n.startsWith("/")&&m===""?"/":m)}function x2(n){n.sort((a,s)=>a.score!==s.score?s.score-a.score:N2(a.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}var b2=/^:[\w-]+$/,S2=3,w2=2,T2=1,E2=10,A2=-2,Mp=n=>n==="*";function j2(n,a){let s=n.split("/"),r=s.length;return s.some(Mp)&&(r+=A2),a&&(r+=w2),s.filter(o=>!Mp(o)).reduce((o,c)=>o+(b2.test(c)?S2:c===""?T2:E2),r)}function N2(n,a){return n.length===a.length&&n.slice(0,-1).every((r,o)=>r===a[o])?n[n.length-1]-a[a.length-1]:0}function R2(n,a,s=!1){let{routesMeta:r}=n,o={},c="/",f=[];for(let p=0;p<r.length;++p){let m=r[p],h=p===r.length-1,y=c==="/"?a:a.slice(c.length)||"/",x=Xr({path:m.relativePath,caseSensitive:m.caseSensitive,end:h},y),S=m.route;if(!x&&h&&s&&!r[r.length-1].route.index&&(x=Xr({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},y)),!x)return null;Object.assign(o,x.params),f.push({params:o,pathname:Cn([c,x.pathname]),pathnameBase:z2(Cn([c,x.pathnameBase])),route:S}),x.pathnameBase!=="/"&&(c=Cn([c,x.pathnameBase]))}return f}function Xr(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[s,r]=C2(n.path,n.caseSensitive,n.end),o=a.match(s);if(!o)return null;let c=o[0],f=c.replace(/(.)\/+$/,"$1"),p=o.slice(1);return{params:r.reduce((h,{paramName:y,isOptional:x},S)=>{if(y==="*"){let E=p[S]||"";f=c.slice(0,c.length-E.length).replace(/(.)\/+$/,"$1")}const T=p[S];return x&&!T?h[y]=void 0:h[y]=(T||"").replace(/%2F/g,"/"),h},{}),pathname:c,pathnameBase:f,pattern:n}}function C2(n,a=!1,s=!0){It(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=[],o="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,p,m)=>(r.push({paramName:p,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),o+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?o+="\\/*$":n!==""&&n!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,a?void 0:"i"),r]}function D2(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return It(!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 (${a}).`),n}}function Dn(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let s=a.endsWith("/")?a.length-1:a.length,r=n.charAt(s);return r&&r!=="/"?null:n.slice(s)||"/"}function M2(n,a="/"){let{pathname:s,search:r="",hash:o=""}=typeof n=="string"?Li(n):n;return{pathname:s?s.startsWith("/")?s:O2(s,a):a,search:B2(r),hash:V2(o)}}function O2(n,a){let s=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(o=>{o===".."?s.length>1&&s.pop():o!=="."&&s.push(o)}),s.length>1?s.join("/"):"/"}function Vc(n,a,s,r){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function L2(n){return n.filter((a,s)=>s===0||a.route.path&&a.route.path.length>0)}function fy(n){let a=L2(n);return a.map((s,r)=>r===a.length-1?s.pathname:s.pathnameBase)}function dy(n,a,s,r=!1){let o;typeof n=="string"?o=Li(n):(o=K({},n),Pe(!o.pathname||!o.pathname.includes("?"),Vc("?","pathname","search",o)),Pe(!o.pathname||!o.pathname.includes("#"),Vc("#","pathname","hash",o)),Pe(!o.search||!o.search.includes("#"),Vc("#","search","hash",o)));let c=n===""||o.pathname==="",f=c?"/":o.pathname,p;if(f==null)p=s;else{let x=a.length-1;if(!r&&f.startsWith("..")){let S=f.split("/");for(;S[0]==="..";)S.shift(),x-=1;o.pathname=S.join("/")}p=x>=0?a[x]:"/"}let m=M2(o,p),h=f&&f!=="/"&&f.endsWith("/"),y=(c||f===".")&&s.endsWith("/");return!m.pathname.endsWith("/")&&(h||y)&&(m.pathname+="/"),m}var Cn=n=>n.join("/").replace(/\/\/+/g,"/"),z2=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),B2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,V2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function U2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var hy=["POST","PUT","PATCH","DELETE"];new Set(hy);var _2=["GET",...hy];new Set(_2);var zi=w.createContext(null);zi.displayName="DataRouter";var eo=w.createContext(null);eo.displayName="DataRouterState";w.createContext(!1);var my=w.createContext({isTransitioning:!1});my.displayName="ViewTransition";var H2=w.createContext(new Map);H2.displayName="Fetchers";var k2=w.createContext(null);k2.displayName="Await";var hn=w.createContext(null);hn.displayName="Navigation";var al=w.createContext(null);al.displayName="Location";var Ln=w.createContext({outlet:null,matches:[],isDataRoute:!1});Ln.displayName="Route";var Bf=w.createContext(null);Bf.displayName="RouteError";function q2(n,{relative:a}={}){Pe(il(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:r}=w.useContext(hn),{hash:o,pathname:c,search:f}=ll(n,{relative:a}),p=c;return s!=="/"&&(p=c==="/"?s:Cn([s,c])),r.createHref({pathname:p,search:f,hash:o})}function il(){return w.useContext(al)!=null}function oa(){return Pe(il(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(al).location}var py="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function gy(n){w.useContext(hn).static||w.useLayoutEffect(n)}function sl(){let{isDataRoute:n}=w.useContext(Ln);return n?eS():Y2()}function Y2(){Pe(il(),"useNavigate() may be used only in the context of a <Router> component.");let n=w.useContext(zi),{basename:a,navigator:s}=w.useContext(hn),{matches:r}=w.useContext(Ln),{pathname:o}=oa(),c=JSON.stringify(fy(r)),f=w.useRef(!1);return gy(()=>{f.current=!0}),w.useCallback((m,h={})=>{if(It(f.current,py),!f.current)return;if(typeof m=="number"){s.go(m);return}let y=dy(m,JSON.parse(c),o,h.relative==="path");n==null&&a!=="/"&&(y.pathname=y.pathname==="/"?a:Cn([a,y.pathname])),(h.replace?s.replace:s.push)(y,h.state,h)},[a,s,c,o,n])}w.createContext(null);function ll(n,{relative:a}={}){let{matches:s}=w.useContext(Ln),{pathname:r}=oa(),o=JSON.stringify(fy(s));return w.useMemo(()=>dy(n,JSON.parse(o),r,a==="path"),[n,o,r,a])}function P2(n,a){return yy(n,a)}function yy(n,a,s,r){var M;Pe(il(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=w.useContext(hn),{matches:c}=w.useContext(Ln),f=c[c.length-1],p=f?f.params:{},m=f?f.pathname:"/",h=f?f.pathnameBase:"/",y=f&&f.route;{let V=y&&y.path||"";vy(m,!y||V.endsWith("*")||V.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${V}">) 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="${V}"> to <Route path="${V==="/"?"*":`${V}/*`}">.`)}let x=oa(),S;if(a){let V=typeof a=="string"?Li(a):a;Pe(h==="/"||((M=V.pathname)==null?void 0:M.startsWith(h)),`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 "${h}" but pathname "${V.pathname}" was given in the \`location\` prop.`),S=V}else S=x;let T=S.pathname||"/",E=T;if(h!=="/"){let V=h.replace(/^\//,"").split("/");E="/"+T.replace(/^\//,"").split("/").slice(V.length).join("/")}let R=oy(n,{pathname:E});It(y||R!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),It(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.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 j=Q2(R&&R.map(V=>Object.assign({},V,{params:Object.assign({},p,V.params),pathname:Cn([h,o.encodeLocation?o.encodeLocation(V.pathname).pathname:V.pathname]),pathnameBase:V.pathnameBase==="/"?h:Cn([h,o.encodeLocation?o.encodeLocation(V.pathnameBase).pathname:V.pathnameBase])})),c,s,r);return a&&j?w.createElement(al.Provider,{value:{location:K({pathname:"/",search:"",hash:"",state:null,key:"default"},S),navigationType:"POP"}},j):j}function G2(){let n=I2(),a=U2(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},c={padding:"2px 4px",backgroundColor:r},f=null;return console.error("Error handled by React Router default ErrorBoundary:",n),f=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:c},"ErrorBoundary")," or"," ",w.createElement("code",{style:c},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},a),s?w.createElement("pre",{style:o},s):null,f)}var X2=w.createElement(G2,null),K2=class extends w.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,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){console.error("React Router caught the following error during render",n,a)}render(){return this.state.error!==void 0?w.createElement(Ln.Provider,{value:this.props.routeContext},w.createElement(Bf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Z2({routeContext:n,match:a,children:s}){let r=w.useContext(zi);return r&&r.static&&r.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=a.route.id),w.createElement(Ln.Provider,{value:n},s)}function Q2(n,a=[],s=null,r=null){if(n==null){if(!s)return null;if(s.errors)n=s.matches;else if(a.length===0&&!s.initialized&&s.matches.length>0)n=s.matches;else return null}let o=n,c=s==null?void 0:s.errors;if(c!=null){let m=o.findIndex(h=>h.route.id&&(c==null?void 0:c[h.route.id])!==void 0);Pe(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),o=o.slice(0,Math.min(o.length,m+1))}let f=!1,p=-1;if(s)for(let m=0;m<o.length;m++){let h=o[m];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(p=m),h.route.id){let{loaderData:y,errors:x}=s,S=h.route.loader&&!y.hasOwnProperty(h.route.id)&&(!x||x[h.route.id]===void 0);if(h.route.lazy||S){f=!0,p>=0?o=o.slice(0,p+1):o=[o[0]];break}}}return o.reduceRight((m,h,y)=>{let x,S=!1,T=null,E=null;s&&(x=c&&h.route.id?c[h.route.id]:void 0,T=h.route.errorElement||X2,f&&(p<0&&y===0?(vy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,E=null):p===y&&(S=!0,E=h.route.hydrateFallbackElement||null)));let R=a.concat(o.slice(0,y+1)),j=()=>{let M;return x?M=T:S?M=E:h.route.Component?M=w.createElement(h.route.Component,null):h.route.element?M=h.route.element:M=m,w.createElement(Z2,{match:h,routeContext:{outlet:m,matches:R,isDataRoute:s!=null},children:M})};return s&&(h.route.ErrorBoundary||h.route.errorElement||y===0)?w.createElement(K2,{location:s.location,revalidation:s.revalidation,component:T,error:x,children:j(),routeContext:{outlet:null,matches:R,isDataRoute:!0}}):j()},null)}function Vf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function F2(n){let a=w.useContext(zi);return Pe(a,Vf(n)),a}function $2(n){let a=w.useContext(eo);return Pe(a,Vf(n)),a}function J2(n){let a=w.useContext(Ln);return Pe(a,Vf(n)),a}function Uf(n){let a=J2(n),s=a.matches[a.matches.length-1];return Pe(s.route.id,`${n} can only be used on routes that contain a unique "id"`),s.route.id}function W2(){return Uf("useRouteId")}function I2(){var r;let n=w.useContext(Bf),a=$2("useRouteError"),s=Uf("useRouteError");return n!==void 0?n:(r=a.errors)==null?void 0:r[s]}function eS(){let{router:n}=F2("useNavigate"),a=Uf("useNavigate"),s=w.useRef(!1);return gy(()=>{s.current=!0}),w.useCallback((f,...p)=>_e(null,[f,...p],function*(o,c={}){It(s.current,py),s.current&&(typeof o=="number"?n.navigate(o):yield n.navigate(o,K({fromRouteId:a},c)))}),[n,a])}var Op={};function vy(n,a,s){!a&&!Op[n]&&(Op[n]=!0,It(!1,s))}w.memo(tS);function tS({routes:n,future:a,state:s}){return yy(n,void 0,s,a)}function Ei(n){Pe(!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 nS({basename:n="/",children:a=null,location:s,navigationType:r="POP",navigator:o,static:c=!1}){Pe(!il(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=n.replace(/^\/*/,"/"),p=w.useMemo(()=>({basename:f,navigator:o,static:c,future:{}}),[f,o,c]);typeof s=="string"&&(s=Li(s));let{pathname:m="/",search:h="",hash:y="",state:x=null,key:S="default"}=s,T=w.useMemo(()=>{let E=Dn(m,f);return E==null?null:{location:{pathname:E,search:h,hash:y,state:x,key:S},navigationType:r}},[f,m,h,y,x,S,r]);return It(T!=null,`<Router basename="${f}"> is not able to match the URL "${m}${h}${y}" because it does not start with the basename, so the <Router> won't render anything.`),T==null?null:w.createElement(hn.Provider,{value:p},w.createElement(al.Provider,{children:a,value:T}))}function aS({children:n,location:a}){return P2(sf(n),a)}function sf(n,a=[]){let s=[];return w.Children.forEach(n,(r,o)=>{if(!w.isValidElement(r))return;let c=[...a,o];if(r.type===w.Fragment){s.push.apply(s,sf(r.props.children,c));return}Pe(r.type===Ei,`[${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>`),Pe(!r.props.index||!r.props.children,"An index route cannot have child routes.");let f={id:r.props.id||c.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&&(f.children=sf(r.props.children,c)),s.push(f)}),s}var Vr="get",Ur="application/x-www-form-urlencoded";function to(n){return n!=null&&typeof n.tagName=="string"}function iS(n){return to(n)&&n.tagName.toLowerCase()==="button"}function sS(n){return to(n)&&n.tagName.toLowerCase()==="form"}function lS(n){return to(n)&&n.tagName.toLowerCase()==="input"}function rS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function oS(n,a){return n.button===0&&(!a||a==="_self")&&!rS(n)}function lf(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((a,s)=>{let r=n[s];return a.concat(Array.isArray(r)?r.map(o=>[s,o]):[[s,r]])},[]))}function uS(n,a){let s=lf(n);return a&&a.forEach((r,o)=>{s.has(o)||a.getAll(o).forEach(c=>{s.append(o,c)})}),s}var Mr=null;function cS(){if(Mr===null)try{new FormData(document.createElement("form"),0),Mr=!1}catch(n){Mr=!0}return Mr}var fS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Uc(n){return n!=null&&!fS.has(n)?(It(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ur}"`),null):n}function dS(n,a){let s,r,o,c,f;if(sS(n)){let p=n.getAttribute("action");r=p?Dn(p,a):null,s=n.getAttribute("method")||Vr,o=Uc(n.getAttribute("enctype"))||Ur,c=new FormData(n)}else if(iS(n)||lS(n)&&(n.type==="submit"||n.type==="image")){let p=n.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=n.getAttribute("formaction")||p.getAttribute("action");if(r=m?Dn(m,a):null,s=n.getAttribute("formmethod")||p.getAttribute("method")||Vr,o=Uc(n.getAttribute("formenctype"))||Uc(p.getAttribute("enctype"))||Ur,c=new FormData(p,n),!cS()){let{name:h,type:y,value:x}=n;if(y==="image"){let S=h?`${h}.`:"";c.append(`${S}x`,"0"),c.append(`${S}y`,"0")}else h&&c.append(h,x)}}else{if(to(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Vr,r=null,o=Ur,f=n}return c&&o==="text/plain"&&(f=c,c=void 0),{action:r,method:s.toLowerCase(),encType:o,formData:c,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function _f(n,a){if(n===!1||n===null||typeof n=="undefined")throw new Error(a)}function hS(n,a,s){let r=typeof n=="string"?new URL(n,typeof window=="undefined"?"server://singlefetch/":window.location.origin):n;return r.pathname==="/"?r.pathname=`_root.${s}`:a&&Dn(r.pathname,a)==="/"?r.pathname=`${a.replace(/\/$/,"")}/_root.${s}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${s}`,r}function mS(n,a){return _e(this,null,function*(){if(n.id in a)return a[n.id];try{let s=yield import(n.module);return a[n.id]=s,s}catch(s){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}})}function pS(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 gS(n,a,s){return _e(this,null,function*(){let r=yield Promise.all(n.map(o=>_e(null,null,function*(){let c=a.routes[o.route.id];if(c){let f=yield mS(c,s);return f.links?f.links():[]}return[]})));return bS(r.flat(1).filter(pS).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?le(K({},o),{rel:"prefetch",as:"style"}):le(K({},o),{rel:"prefetch"})))})}function Lp(n,a,s,r,o,c){let f=(m,h)=>s[h]?m.route.id!==s[h].route.id:!0,p=(m,h)=>{var y;return s[h].pathname!==m.pathname||((y=s[h].route.path)==null?void 0:y.endsWith("*"))&&s[h].params["*"]!==m.params["*"]};return c==="assets"?a.filter((m,h)=>f(m,h)||p(m,h)):c==="data"?a.filter((m,h)=>{var x;let y=r.routes[m.route.id];if(!y||!y.hasLoader)return!1;if(f(m,h)||p(m,h))return!0;if(m.route.shouldRevalidate){let S=m.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((x=s[0])==null?void 0:x.params)||{},nextUrl:new URL(n,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function yS(n,a,{includeHydrateFallback:s}={}){return vS(n.map(r=>{let o=a.routes[r.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),s&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function vS(n){return[...new Set(n)]}function xS(n){let a={},s=Object.keys(n).sort();for(let r of s)a[r]=n[r];return a}function bS(n,a){let s=new Set;return new Set(a),n.reduce((r,o)=>{let c=JSON.stringify(xS(o));return s.has(c)||(s.add(c),r.push({key:c,link:o})),r},[])}function xy(){let n=w.useContext(zi);return _f(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function SS(){let n=w.useContext(eo);return _f(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Hf=w.createContext(void 0);Hf.displayName="FrameworkContext";function by(){let n=w.useContext(Hf);return _f(n,"You must render this element inside a <HydratedRouter> element"),n}function wS(n,a){let s=w.useContext(Hf),[r,o]=w.useState(!1),[c,f]=w.useState(!1),{onFocus:p,onBlur:m,onMouseEnter:h,onMouseLeave:y,onTouchStart:x}=a,S=w.useRef(null);w.useEffect(()=>{if(n==="render"&&f(!0),n==="viewport"){let R=M=>{M.forEach(V=>{f(V.isIntersecting)})},j=new IntersectionObserver(R,{threshold:.5});return S.current&&j.observe(S.current),()=>{j.disconnect()}}},[n]),w.useEffect(()=>{if(r){let R=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(R)}}},[r]);let T=()=>{o(!0)},E=()=>{o(!1),f(!1)};return s?n!=="intent"?[c,S,{}]:[c,S,{onFocus:Hs(p,T),onBlur:Hs(m,E),onMouseEnter:Hs(h,T),onMouseLeave:Hs(y,E),onTouchStart:Hs(x,T)}]:[!1,S,{}]}function Hs(n,a){return s=>{n&&n(s),s.defaultPrevented||a(s)}}function TS(s){var r=s,{page:n}=r,a=st(r,["page"]);let{router:o}=xy(),c=w.useMemo(()=>oy(o.routes,n,o.basename),[o.routes,n,o.basename]);return c?w.createElement(AS,K({page:n,matches:c},a)):null}function ES(n){let{manifest:a,routeModules:s}=by(),[r,o]=w.useState([]);return w.useEffect(()=>{let c=!1;return gS(n,a,s).then(f=>{c||o(f)}),()=>{c=!0}},[n,a,s]),r}function AS(r){var o=r,{page:n,matches:a}=o,s=st(o,["page","matches"]);let c=oa(),{manifest:f,routeModules:p}=by(),{basename:m}=xy(),{loaderData:h,matches:y}=SS(),x=w.useMemo(()=>Lp(n,a,y,f,c,"data"),[n,a,y,f,c]),S=w.useMemo(()=>Lp(n,a,y,f,c,"assets"),[n,a,y,f,c]),T=w.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let j=new Set,M=!1;if(a.forEach(U=>{var H;let X=f.routes[U.route.id];!X||!X.hasLoader||(!x.some(Q=>Q.route.id===U.route.id)&&U.route.id in h&&((H=p[U.route.id])!=null&&H.shouldRevalidate)||X.hasClientLoader?M=!0:j.add(U.route.id))}),j.size===0)return[];let V=hS(n,m,"data");return M&&j.size>0&&V.searchParams.set("_routes",a.filter(U=>j.has(U.route.id)).map(U=>U.route.id).join(",")),[V.pathname+V.search]},[m,h,c,f,x,a,n,p]),E=w.useMemo(()=>yS(S,f),[S,f]),R=ES(S);return w.createElement(w.Fragment,null,T.map(j=>w.createElement("link",K({key:j,rel:"prefetch",as:"fetch",href:j},s))),E.map(j=>w.createElement("link",K({key:j,rel:"modulepreload",href:j},s))),R.map(({key:j,link:M})=>w.createElement("link",K({key:j,nonce:s.nonce},M))))}function jS(...n){return a=>{n.forEach(s=>{typeof s=="function"?s(a):s!=null&&(s.current=a)})}}var Sy=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";try{Sy&&(window.__reactRouterVersion="7.8.0")}catch(n){}function NS({basename:n,children:a,window:s}){let r=w.useRef();r.current==null&&(r.current=m2({window:s,v5Compat:!0}));let o=r.current,[c,f]=w.useState({action:o.action,location:o.location}),p=w.useCallback(m=>{w.startTransition(()=>f(m))},[f]);return w.useLayoutEffect(()=>o.listen(p),[o,p]),w.createElement(nS,{basename:n,children:a,location:c.location,navigationType:c.action,navigator:o})}var wy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ps=w.forwardRef(function(E,T){var R=E,{onClick:a,discover:s="render",prefetch:r="none",relative:o,reloadDocument:c,replace:f,state:p,target:m,to:h,preventScrollReset:y,viewTransition:x}=R,S=st(R,["onClick","discover","prefetch","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"]);let{basename:j}=w.useContext(hn),M=typeof h=="string"&&wy.test(h),V,U=!1;if(typeof h=="string"&&M&&(V=h,Sy))try{let be=new URL(window.location.href),Ee=h.startsWith("//")?new URL(be.protocol+h):new URL(h),de=Dn(Ee.pathname,j);Ee.origin===be.origin&&de!=null?h=de+Ee.search+Ee.hash:U=!0}catch(be){It(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let X=q2(h,{relative:o}),[H,Q,W]=wS(r,S),F=MS(h,{replace:f,state:p,target:m,preventScrollReset:y,relative:o,viewTransition:x});function ce(be){a&&a(be),be.defaultPrevented||F(be)}let Ae=w.createElement("a",le(K(K({},S),W),{href:V||X,onClick:U||c?a:ce,ref:jS(T,Q),target:m,"data-discover":!M&&s==="render"?"true":void 0}));return H&&!M?w.createElement(w.Fragment,null,Ae,w.createElement(TS,{page:X})):Ae});Ps.displayName="Link";var RS=w.forwardRef(function(x,y){var S=x,{"aria-current":a="page",caseSensitive:s=!1,className:r="",end:o=!1,style:c,to:f,viewTransition:p,children:m}=S,h=st(S,["aria-current","caseSensitive","className","end","style","to","viewTransition","children"]);let T=ll(f,{relative:h.relative}),E=oa(),R=w.useContext(eo),{navigator:j,basename:M}=w.useContext(hn),V=R!=null&&VS(T)&&p===!0,U=j.encodeLocation?j.encodeLocation(T).pathname:T.pathname,X=E.pathname,H=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;s||(X=X.toLowerCase(),H=H?H.toLowerCase():null,U=U.toLowerCase()),H&&M&&(H=Dn(H,M)||H);const Q=U!=="/"&&U.endsWith("/")?U.length-1:U.length;let W=X===U||!o&&X.startsWith(U)&&X.charAt(Q)==="/",F=H!=null&&(H===U||!o&&H.startsWith(U)&&H.charAt(U.length)==="/"),ce={isActive:W,isPending:F,isTransitioning:V},Ae=W?a:void 0,be;typeof r=="function"?be=r(ce):be=[r,W?"active":null,F?"pending":null,V?"transitioning":null].filter(Boolean).join(" ");let Ee=typeof c=="function"?c(ce):c;return w.createElement(Ps,le(K({},h),{"aria-current":Ae,className:be,ref:y,style:Ee,to:f,viewTransition:p}),typeof m=="function"?m(ce):m)});RS.displayName="NavLink";var CS=w.forwardRef((E,T)=>{var R=E,{discover:n="render",fetcherKey:a,navigate:s,reloadDocument:r,replace:o,state:c,method:f=Vr,action:p,onSubmit:m,relative:h,preventScrollReset:y,viewTransition:x}=R,S=st(R,["discover","fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"]);let j=zS(),M=BS(p,{relative:h}),V=f.toLowerCase()==="get"?"get":"post",U=typeof p=="string"&&wy.test(p),X=H=>{if(m&&m(H),H.defaultPrevented)return;H.preventDefault();let Q=H.nativeEvent.submitter,W=(Q==null?void 0:Q.getAttribute("formmethod"))||f;j(Q||H.currentTarget,{fetcherKey:a,method:W,navigate:s,replace:o,state:c,relative:h,preventScrollReset:y,viewTransition:x})};return w.createElement("form",le(K({ref:T,method:V,action:M,onSubmit:r?m:X},S),{"data-discover":!U&&n==="render"?"true":void 0}))});CS.displayName="Form";function DS(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ty(n){let a=w.useContext(zi);return Pe(a,DS(n)),a}function MS(n,{target:a,replace:s,state:r,preventScrollReset:o,relative:c,viewTransition:f}={}){let p=sl(),m=oa(),h=ll(n,{relative:c});return w.useCallback(y=>{if(oS(y,a)){y.preventDefault();let x=s!==void 0?s:Fs(m)===Fs(h);p(n,{replace:x,state:r,preventScrollReset:o,relative:c,viewTransition:f})}},[m,p,h,s,r,a,n,o,c,f])}function Ey(n){It(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 a=w.useRef(lf(n)),s=w.useRef(!1),r=oa(),o=w.useMemo(()=>uS(r.search,s.current?null:a.current),[r.search]),c=sl(),f=w.useCallback((p,m)=>{const h=lf(typeof p=="function"?p(new URLSearchParams(o)):p);s.current=!0,c("?"+h,m)},[c,o]);return[o,f]}var OS=0,LS=()=>`__${String(++OS)}__`;function zS(){let{router:n}=Ty("useSubmit"),{basename:a}=w.useContext(hn),s=W2();return w.useCallback((c,...f)=>_e(null,[c,...f],function*(r,o={}){let{action:p,method:m,encType:h,formData:y,body:x}=dS(r,a);if(o.navigate===!1){let S=o.fetcherKey||LS();yield n.fetch(S,s,o.action||p,{preventScrollReset:o.preventScrollReset,formData:y,body:x,formMethod:o.method||m,formEncType:o.encType||h,flushSync:o.flushSync})}else yield n.navigate(o.action||p,{preventScrollReset:o.preventScrollReset,formData:y,body:x,formMethod:o.method||m,formEncType:o.encType||h,replace:o.replace,state:o.state,fromRouteId:s,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[n,a,s])}function BS(n,{relative:a}={}){let{basename:s}=w.useContext(hn),r=w.useContext(Ln);Pe(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),c=K({},ll(n||".",{relative:a})),f=oa();if(n==null){c.search=f.search;let p=new URLSearchParams(c.search),m=p.getAll("index");if(m.some(y=>y==="")){p.delete("index"),m.filter(x=>x).forEach(x=>p.append("index",x));let y=p.toString();c.search=y?`?${y}`:""}}return(!n||n===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(c.pathname=c.pathname==="/"?s:Cn([s,c.pathname])),Fs(c)}function VS(n,{relative:a}={}){let s=w.useContext(my);Pe(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ty("useViewTransitionState"),o=ll(n,{relative:a});if(!s.isTransitioning)return!1;let c=Dn(s.currentLocation.pathname,r)||s.currentLocation.pathname,f=Dn(s.nextLocation.pathname,r)||s.nextLocation.pathname;return Xr(o.pathname,f)!=null||Xr(o.pathname,c)!=null}const US=()=>{const n=new Date().getFullYear();return g.jsx("footer",{className:"bg-gray-800 text-gray-300 py-6",children:g.jsx("div",{className:"container mx-auto px-4",children:g.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center",children:[g.jsxs("div",{className:"mb-4 md:mb-0",children:[g.jsxs("div",{className:"flex items-center",children:[g.jsx("img",{src:"/AXioDB.png",alt:"AxioDB Logo",className:"h-8 w-8 mr-2"}),g.jsx("span",{className:"font-bold text-white text-lg",children:"AxioDB"})]}),g.jsx("p",{className:"text-sm mt-2",children:"High-performance document database"})]}),g.jsxs("div",{className:"text-sm",children:[g.jsxs("div",{className:"flex space-x-6",children:[g.jsx("a",{href:"/docs",className:"hover:text-white transition-colors",children:"Documentation"}),g.jsx("a",{href:"/support",className:"hover:text-white transition-colors",children:"Support"}),g.jsx("a",{href:"/api",className:"hover:text-white transition-colors",children:"API"}),g.jsx("a",{href:"/status",className:"hover:text-white transition-colors",children:"Status"})]}),g.jsxs("p",{className:"mt-4 text-xs text-center md:text-right",children:["© ",n," AxioDB, Inc. All rights reserved."]})]})]})})})};function Ay(n,a){return function(){return n.apply(a,arguments)}}const{toString:_S}=Object.prototype,{getPrototypeOf:kf}=Object,{iterator:no,toStringTag:jy}=Symbol,ao=(n=>a=>{const s=_S.call(a);return n[s]||(n[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),en=n=>(n=n.toLowerCase(),a=>ao(a)===n),io=n=>a=>typeof a===n,{isArray:Bi}=Array,$s=io("undefined");function rl(n){return n!==null&&!$s(n)&&n.constructor!==null&&!$s(n.constructor)&&At(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Ny=en("ArrayBuffer");function HS(n){let a;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?a=ArrayBuffer.isView(n):a=n&&n.buffer&&Ny(n.buffer),a}const kS=io("string"),At=io("function"),Ry=io("number"),ol=n=>n!==null&&typeof n=="object",qS=n=>n===!0||n===!1,_r=n=>{if(ao(n)!=="object")return!1;const a=kf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(jy in n)&&!(no in n)},YS=n=>{if(!ol(n)||rl(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch(a){return!1}},PS=en("Date"),GS=en("File"),XS=en("Blob"),KS=en("FileList"),ZS=n=>ol(n)&&At(n.pipe),QS=n=>{let a;return n&&(typeof FormData=="function"&&n instanceof FormData||At(n.append)&&((a=ao(n))==="formdata"||a==="object"&&At(n.toString)&&n.toString()==="[object FormData]"))},FS=en("URLSearchParams"),[$S,JS,WS,IS]=["ReadableStream","Request","Response","Headers"].map(en),ew=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ul(n,a,{allOwnKeys:s=!1}={}){if(n===null||typeof n=="undefined")return;let r,o;if(typeof n!="object"&&(n=[n]),Bi(n))for(r=0,o=n.length;r<o;r++)a.call(null,n[r],r,n);else{if(rl(n))return;const c=s?Object.getOwnPropertyNames(n):Object.keys(n),f=c.length;let p;for(r=0;r<f;r++)p=c[r],a.call(null,n[p],p,n)}}function Cy(n,a){if(rl(n))return null;a=a.toLowerCase();const s=Object.keys(n);let r=s.length,o;for(;r-- >0;)if(o=s[r],a===o.toLowerCase())return o;return null}const Ma=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Dy=n=>!$s(n)&&n!==Ma;function rf(){const{caseless:n}=Dy(this)&&this||{},a={},s=(r,o)=>{const c=n&&Cy(a,o)||o;_r(a[c])&&_r(r)?a[c]=rf(a[c],r):_r(r)?a[c]=rf({},r):Bi(r)?a[c]=r.slice():a[c]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&ul(arguments[r],s);return a}const tw=(n,a,s,{allOwnKeys:r}={})=>(ul(a,(o,c)=>{s&&At(o)?n[c]=Ay(o,s):n[c]=o},{allOwnKeys:r}),n),nw=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),aw=(n,a,s,r)=>{n.prototype=Object.create(a.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:a.prototype}),s&&Object.assign(n.prototype,s)},iw=(n,a,s,r)=>{let o,c,f;const p={};if(a=a||{},n==null)return a;do{for(o=Object.getOwnPropertyNames(n),c=o.length;c-- >0;)f=o[c],(!r||r(f,n,a))&&!p[f]&&(a[f]=n[f],p[f]=!0);n=s!==!1&&kf(n)}while(n&&(!s||s(n,a))&&n!==Object.prototype);return a},sw=(n,a,s)=>{n=String(n),(s===void 0||s>n.length)&&(s=n.length),s-=a.length;const r=n.indexOf(a,s);return r!==-1&&r===s},lw=n=>{if(!n)return null;if(Bi(n))return n;let a=n.length;if(!Ry(a))return null;const s=new Array(a);for(;a-- >0;)s[a]=n[a];return s},rw=(n=>a=>n&&a instanceof n)(typeof Uint8Array!="undefined"&&kf(Uint8Array)),ow=(n,a)=>{const r=(n&&n[no]).call(n);let o;for(;(o=r.next())&&!o.done;){const c=o.value;a.call(n,c[0],c[1])}},uw=(n,a)=>{let s;const r=[];for(;(s=n.exec(a))!==null;)r.push(s);return r},cw=en("HTMLFormElement"),fw=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,r,o){return r.toUpperCase()+o}),zp=(({hasOwnProperty:n})=>(a,s)=>n.call(a,s))(Object.prototype),dw=en("RegExp"),My=(n,a)=>{const s=Object.getOwnPropertyDescriptors(n),r={};ul(s,(o,c)=>{let f;(f=a(o,c,n))!==!1&&(r[c]=f||o)}),Object.defineProperties(n,r)},hw=n=>{My(n,(a,s)=>{if(At(n)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const r=n[s];if(At(r)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},mw=(n,a)=>{const s={},r=o=>{o.forEach(c=>{s[c]=!0})};return Bi(n)?r(n):r(String(n).split(a)),s},pw=()=>{},gw=(n,a)=>n!=null&&Number.isFinite(n=+n)?n:a;function yw(n){return!!(n&&At(n.append)&&n[jy]==="FormData"&&n[no])}const vw=n=>{const a=new Array(10),s=(r,o)=>{if(ol(r)){if(a.indexOf(r)>=0)return;if(rl(r))return r;if(!("toJSON"in r)){a[o]=r;const c=Bi(r)?[]:{};return ul(r,(f,p)=>{const m=s(f,o+1);!$s(m)&&(c[p]=m)}),a[o]=void 0,c}}return r};return s(n,0)},xw=en("AsyncFunction"),bw=n=>n&&(ol(n)||At(n))&&At(n.then)&&At(n.catch),Oy=((n,a)=>n?setImmediate:a?((s,r)=>(Ma.addEventListener("message",({source:o,data:c})=>{o===Ma&&c===s&&r.length&&r.shift()()},!1),o=>{r.push(o),Ma.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",At(Ma.postMessage)),Sw=typeof queueMicrotask!="undefined"?queueMicrotask.bind(Ma):typeof process!="undefined"&&process.nextTick||Oy,ww=n=>n!=null&&At(n[no]),_={isArray:Bi,isArrayBuffer:Ny,isBuffer:rl,isFormData:QS,isArrayBufferView:HS,isString:kS,isNumber:Ry,isBoolean:qS,isObject:ol,isPlainObject:_r,isEmptyObject:YS,isReadableStream:$S,isRequest:JS,isResponse:WS,isHeaders:IS,isUndefined:$s,isDate:PS,isFile:GS,isBlob:XS,isRegExp:dw,isFunction:At,isStream:ZS,isURLSearchParams:FS,isTypedArray:rw,isFileList:KS,forEach:ul,merge:rf,extend:tw,trim:ew,stripBOM:nw,inherits:aw,toFlatObject:iw,kindOf:ao,kindOfTest:en,endsWith:sw,toArray:lw,forEachEntry:ow,matchAll:uw,isHTMLForm:cw,hasOwnProperty:zp,hasOwnProp:zp,reduceDescriptors:My,freezeMethods:hw,toObjectSet:mw,toCamelCase:fw,noop:pw,toFiniteNumber:gw,findKey:Cy,global:Ma,isContextDefined:Dy,isSpecCompliantForm:yw,toJSONObject:vw,isAsyncFn:xw,isThenable:bw,setImmediate:Oy,asap:Sw,isIterable:ww};function he(n,a,s,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",a&&(this.code=a),s&&(this.config=s),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}_.inherits(he,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 Ly=he.prototype,zy={};["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=>{zy[n]={value:n}});Object.defineProperties(he,zy);Object.defineProperty(Ly,"isAxiosError",{value:!0});he.from=(n,a,s,r,o,c)=>{const f=Object.create(Ly);return _.toFlatObject(n,f,function(m){return m!==Error.prototype},p=>p!=="isAxiosError"),he.call(f,n.message,a,s,r,o),f.cause=n,f.name=n.name,c&&Object.assign(f,c),f};const Tw=null;function of(n){return _.isPlainObject(n)||_.isArray(n)}function By(n){return _.endsWith(n,"[]")?n.slice(0,-2):n}function Bp(n,a,s){return n?n.concat(a).map(function(o,c){return o=By(o),!s&&c?"["+o+"]":o}).join(s?".":""):a}function Ew(n){return _.isArray(n)&&!n.some(of)}const Aw=_.toFlatObject(_,{},null,function(a){return/^is[A-Z]/.test(a)});function so(n,a,s){if(!_.isObject(n))throw new TypeError("target must be an object");a=a||new FormData,s=_.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(R,j){return!_.isUndefined(j[R])});const r=s.metaTokens,o=s.visitor||y,c=s.dots,f=s.indexes,m=(s.Blob||typeof Blob!="undefined"&&Blob)&&_.isSpecCompliantForm(a);if(!_.isFunction(o))throw new TypeError("visitor must be a function");function h(E){if(E===null)return"";if(_.isDate(E))return E.toISOString();if(_.isBoolean(E))return E.toString();if(!m&&_.isBlob(E))throw new he("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(E)||_.isTypedArray(E)?m&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function y(E,R,j){let M=E;if(E&&!j&&typeof E=="object"){if(_.endsWith(R,"{}"))R=r?R:R.slice(0,-2),E=JSON.stringify(E);else if(_.isArray(E)&&Ew(E)||(_.isFileList(E)||_.endsWith(R,"[]"))&&(M=_.toArray(E)))return R=By(R),M.forEach(function(U,X){!(_.isUndefined(U)||U===null)&&a.append(f===!0?Bp([R],X,c):f===null?R:R+"[]",h(U))}),!1}return of(E)?!0:(a.append(Bp(j,R,c),h(E)),!1)}const x=[],S=Object.assign(Aw,{defaultVisitor:y,convertValue:h,isVisitable:of});function T(E,R){if(!_.isUndefined(E)){if(x.indexOf(E)!==-1)throw Error("Circular reference detected in "+R.join("."));x.push(E),_.forEach(E,function(M,V){(!(_.isUndefined(M)||M===null)&&o.call(a,M,_.isString(V)?V.trim():V,R,S))===!0&&T(M,R?R.concat(V):[V])}),x.pop()}}if(!_.isObject(n))throw new TypeError("data must be an object");return T(n),a}function Vp(n){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function qf(n,a){this._pairs=[],n&&so(n,this,a)}const Vy=qf.prototype;Vy.append=function(a,s){this._pairs.push([a,s])};Vy.toString=function(a){const s=a?function(r){return a.call(this,r,Vp)}:Vp;return this._pairs.map(function(o){return s(o[0])+"="+s(o[1])},"").join("&")};function jw(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Uy(n,a,s){if(!a)return n;const r=s&&s.encode||jw;_.isFunction(s)&&(s={serialize:s});const o=s&&s.serialize;let c;if(o?c=o(a,s):c=_.isURLSearchParams(a)?a.toString():new qf(a,s).toString(r),c){const f=n.indexOf("#");f!==-1&&(n=n.slice(0,f)),n+=(n.indexOf("?")===-1?"?":"&")+c}return n}class Up{constructor(){this.handlers=[]}use(a,s,r){return this.handlers.push({fulfilled:a,rejected:s,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){_.forEach(this.handlers,function(r){r!==null&&a(r)})}}const _y={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nw=typeof URLSearchParams!="undefined"?URLSearchParams:qf,Rw=typeof FormData!="undefined"?FormData:null,Cw=typeof Blob!="undefined"?Blob:null,Dw={isBrowser:!0,classes:{URLSearchParams:Nw,FormData:Rw,Blob:Cw},protocols:["http","https","file","blob","url","data"]},Yf=typeof window!="undefined"&&typeof document!="undefined",uf=typeof navigator=="object"&&navigator||void 0,Mw=Yf&&(!uf||["ReactNative","NativeScript","NS"].indexOf(uf.product)<0),Ow=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Lw=Yf&&window.location.href||"http://localhost",zw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Yf,hasStandardBrowserEnv:Mw,hasStandardBrowserWebWorkerEnv:Ow,navigator:uf,origin:Lw},Symbol.toStringTag,{value:"Module"})),mt=K(K({},zw),Dw);function Bw(n,a){return so(n,new mt.classes.URLSearchParams,K({visitor:function(s,r,o,c){return mt.isNode&&_.isBuffer(s)?(this.append(r,s.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},a))}function Vw(n){return _.matchAll(/\w+|\[(\w*)]/g,n).map(a=>a[0]==="[]"?"":a[1]||a[0])}function Uw(n){const a={},s=Object.keys(n);let r;const o=s.length;let c;for(r=0;r<o;r++)c=s[r],a[c]=n[c];return a}function Hy(n){function a(s,r,o,c){let f=s[c++];if(f==="__proto__")return!0;const p=Number.isFinite(+f),m=c>=s.length;return f=!f&&_.isArray(o)?o.length:f,m?(_.hasOwnProp(o,f)?o[f]=[o[f],r]:o[f]=r,!p):((!o[f]||!_.isObject(o[f]))&&(o[f]=[]),a(s,r,o[f],c)&&_.isArray(o[f])&&(o[f]=Uw(o[f])),!p)}if(_.isFormData(n)&&_.isFunction(n.entries)){const s={};return _.forEachEntry(n,(r,o)=>{a(Vw(r),o,s,0)}),s}return null}function _w(n,a,s){if(_.isString(n))try{return(a||JSON.parse)(n),_.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(s||JSON.stringify)(n)}const cl={transitional:_y,adapter:["xhr","http","fetch"],transformRequest:[function(a,s){const r=s.getContentType()||"",o=r.indexOf("application/json")>-1,c=_.isObject(a);if(c&&_.isHTMLForm(a)&&(a=new FormData(a)),_.isFormData(a))return o?JSON.stringify(Hy(a)):a;if(_.isArrayBuffer(a)||_.isBuffer(a)||_.isStream(a)||_.isFile(a)||_.isBlob(a)||_.isReadableStream(a))return a;if(_.isArrayBufferView(a))return a.buffer;if(_.isURLSearchParams(a))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let p;if(c){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Bw(a,this.formSerializer).toString();if((p=_.isFileList(a))||r.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return so(p?{"files[]":a}:a,m&&new m,this.formSerializer)}}return c||o?(s.setContentType("application/json",!1),_w(a)):a}],transformResponse:[function(a){const s=this.transitional||cl.transitional,r=s&&s.forcedJSONParsing,o=this.responseType==="json";if(_.isResponse(a)||_.isReadableStream(a))return a;if(a&&_.isString(a)&&(r&&!this.responseType||o)){const f=!(s&&s.silentJSONParsing)&&o;try{return JSON.parse(a)}catch(p){if(f)throw p.name==="SyntaxError"?he.from(p,he.ERR_BAD_RESPONSE,this,null,this.response):p}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mt.classes.FormData,Blob:mt.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],n=>{cl.headers[n]={}});const Hw=_.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"]),kw=n=>{const a={};let s,r,o;return n&&n.split(`
|
|
61
|
-
`).forEach(function(f){o=f.indexOf(":"),s=f.substring(0,o).trim().toLowerCase(),r=f.substring(o+1).trim(),!(!s||a[s]&&Hw[s])&&(s==="set-cookie"?a[s]?a[s].push(r):a[s]=[r]:a[s]=a[s]?a[s]+", "+r:r)}),a},_p=Symbol("internals");function ks(n){return n&&String(n).trim().toLowerCase()}function Hr(n){return n===!1||n==null?n:_.isArray(n)?n.map(Hr):String(n)}function qw(n){const a=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=s.exec(n);)a[r[1]]=r[2];return a}const Yw=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function _c(n,a,s,r,o){if(_.isFunction(r))return r.call(this,a,s);if(o&&(a=s),!!_.isString(a)){if(_.isString(r))return a.indexOf(r)!==-1;if(_.isRegExp(r))return r.test(a)}}function Pw(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,s,r)=>s.toUpperCase()+r)}function Gw(n,a){const s=_.toCamelCase(" "+a);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+s,{value:function(o,c,f){return this[r].call(this,a,o,c,f)},configurable:!0})})}let jt=class{constructor(a){a&&this.set(a)}set(a,s,r){const o=this;function c(p,m,h){const y=ks(m);if(!y)throw new Error("header name must be a non-empty string");const x=_.findKey(o,y);(!x||o[x]===void 0||h===!0||h===void 0&&o[x]!==!1)&&(o[x||m]=Hr(p))}const f=(p,m)=>_.forEach(p,(h,y)=>c(h,y,m));if(_.isPlainObject(a)||a instanceof this.constructor)f(a,s);else if(_.isString(a)&&(a=a.trim())&&!Yw(a))f(kw(a),s);else if(_.isObject(a)&&_.isIterable(a)){let p={},m,h;for(const y of a){if(!_.isArray(y))throw TypeError("Object iterator must return a key-value pair");p[h=y[0]]=(m=p[h])?_.isArray(m)?[...m,y[1]]:[m,y[1]]:y[1]}f(p,s)}else a!=null&&c(s,a,r);return this}get(a,s){if(a=ks(a),a){const r=_.findKey(this,a);if(r){const o=this[r];if(!s)return o;if(s===!0)return qw(o);if(_.isFunction(s))return s.call(this,o,r);if(_.isRegExp(s))return s.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,s){if(a=ks(a),a){const r=_.findKey(this,a);return!!(r&&this[r]!==void 0&&(!s||_c(this,this[r],r,s)))}return!1}delete(a,s){const r=this;let o=!1;function c(f){if(f=ks(f),f){const p=_.findKey(r,f);p&&(!s||_c(r,r[p],p,s))&&(delete r[p],o=!0)}}return _.isArray(a)?a.forEach(c):c(a),o}clear(a){const s=Object.keys(this);let r=s.length,o=!1;for(;r--;){const c=s[r];(!a||_c(this,this[c],c,a,!0))&&(delete this[c],o=!0)}return o}normalize(a){const s=this,r={};return _.forEach(this,(o,c)=>{const f=_.findKey(r,c);if(f){s[f]=Hr(o),delete s[c];return}const p=a?Pw(c):String(c).trim();p!==c&&delete s[c],s[p]=Hr(o),r[p]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const s=Object.create(null);return _.forEach(this,(r,o)=>{r!=null&&r!==!1&&(s[o]=a&&_.isArray(r)?r.join(", "):r)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,s])=>a+": "+s).join(`
|
|
62
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...s){const r=new this(a);return s.forEach(o=>r.set(o)),r}static accessor(a){const r=(this[_p]=this[_p]={accessors:{}}).accessors,o=this.prototype;function c(f){const p=ks(f);r[p]||(Gw(o,f),r[p]=!0)}return _.isArray(a)?a.forEach(c):c(a),this}};jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_.reduceDescriptors(jt.prototype,({value:n},a)=>{let s=a[0].toUpperCase()+a.slice(1);return{get:()=>n,set(r){this[s]=r}}});_.freezeMethods(jt);function Hc(n,a){const s=this||cl,r=a||s,o=jt.from(r.headers);let c=r.data;return _.forEach(n,function(p){c=p.call(s,c,o.normalize(),a?a.status:void 0)}),o.normalize(),c}function ky(n){return!!(n&&n.__CANCEL__)}function Vi(n,a,s){he.call(this,n==null?"canceled":n,he.ERR_CANCELED,a,s),this.name="CanceledError"}_.inherits(Vi,he,{__CANCEL__:!0});function qy(n,a,s){const r=s.config.validateStatus;!s.status||!r||r(s.status)?n(s):a(new he("Request failed with status code "+s.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function Xw(n){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return a&&a[1]||""}function Kw(n,a){n=n||10;const s=new Array(n),r=new Array(n);let o=0,c=0,f;return a=a!==void 0?a:1e3,function(m){const h=Date.now(),y=r[c];f||(f=h),s[o]=m,r[o]=h;let x=c,S=0;for(;x!==o;)S+=s[x++],x=x%n;if(o=(o+1)%n,o===c&&(c=(c+1)%n),h-f<a)return;const T=y&&h-y;return T?Math.round(S*1e3/T):void 0}}function Zw(n,a){let s=0,r=1e3/a,o,c;const f=(h,y=Date.now())=>{s=y,o=null,c&&(clearTimeout(c),c=null),n(...h)};return[(...h)=>{const y=Date.now(),x=y-s;x>=r?f(h,y):(o=h,c||(c=setTimeout(()=>{c=null,f(o)},r-x)))},()=>o&&f(o)]}const Kr=(n,a,s=3)=>{let r=0;const o=Kw(50,250);return Zw(c=>{const f=c.loaded,p=c.lengthComputable?c.total:void 0,m=f-r,h=o(m),y=f<=p;r=f;const x={loaded:f,total:p,progress:p?f/p:void 0,bytes:m,rate:h||void 0,estimated:h&&p&&y?(p-f)/h:void 0,event:c,lengthComputable:p!=null,[a?"download":"upload"]:!0};n(x)},s)},Hp=(n,a)=>{const s=n!=null;return[r=>a[0]({lengthComputable:s,total:n,loaded:r}),a[1]]},kp=n=>(...a)=>_.asap(()=>n(...a)),Qw=mt.hasStandardBrowserEnv?((n,a)=>s=>(s=new URL(s,mt.origin),n.protocol===s.protocol&&n.host===s.host&&(a||n.port===s.port)))(new URL(mt.origin),mt.navigator&&/(msie|trident)/i.test(mt.navigator.userAgent)):()=>!0,Fw=mt.hasStandardBrowserEnv?{write(n,a,s,r,o,c){const f=[n+"="+encodeURIComponent(a)];_.isNumber(s)&&f.push("expires="+new Date(s).toGMTString()),_.isString(r)&&f.push("path="+r),_.isString(o)&&f.push("domain="+o),c===!0&&f.push("secure"),document.cookie=f.join("; ")},read(n){const a=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $w(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function Jw(n,a){return a?n.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):n}function Yy(n,a,s){let r=!$w(a);return n&&(r||s==!1)?Jw(n,a):a}const qp=n=>n instanceof jt?K({},n):n;function Ua(n,a){a=a||{};const s={};function r(h,y,x,S){return _.isPlainObject(h)&&_.isPlainObject(y)?_.merge.call({caseless:S},h,y):_.isPlainObject(y)?_.merge({},y):_.isArray(y)?y.slice():y}function o(h,y,x,S){if(_.isUndefined(y)){if(!_.isUndefined(h))return r(void 0,h,x,S)}else return r(h,y,x,S)}function c(h,y){if(!_.isUndefined(y))return r(void 0,y)}function f(h,y){if(_.isUndefined(y)){if(!_.isUndefined(h))return r(void 0,h)}else return r(void 0,y)}function p(h,y,x){if(x in a)return r(h,y);if(x in n)return r(void 0,h)}const m={url:c,method:c,data:c,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:p,headers:(h,y,x)=>o(qp(h),qp(y),x,!0)};return _.forEach(Object.keys(K(K({},n),a)),function(y){const x=m[y]||o,S=x(n[y],a[y],y);_.isUndefined(S)&&x!==p||(s[y]=S)}),s}const Py=n=>{const a=Ua({},n);let{data:s,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:c,headers:f,auth:p}=a;a.headers=f=jt.from(f),a.url=Uy(Yy(a.baseURL,a.url,a.allowAbsoluteUrls),n.params,n.paramsSerializer),p&&f.set("Authorization","Basic "+btoa((p.username||"")+":"+(p.password?unescape(encodeURIComponent(p.password)):"")));let m;if(_.isFormData(s)){if(mt.hasStandardBrowserEnv||mt.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if((m=f.getContentType())!==!1){const[h,...y]=m?m.split(";").map(x=>x.trim()).filter(Boolean):[];f.setContentType([h||"multipart/form-data",...y].join("; "))}}if(mt.hasStandardBrowserEnv&&(r&&_.isFunction(r)&&(r=r(a)),r||r!==!1&&Qw(a.url))){const h=o&&c&&Fw.read(c);h&&f.set(o,h)}return a},Ww=typeof XMLHttpRequest!="undefined",Iw=Ww&&function(n){return new Promise(function(s,r){const o=Py(n);let c=o.data;const f=jt.from(o.headers).normalize();let{responseType:p,onUploadProgress:m,onDownloadProgress:h}=o,y,x,S,T,E;function R(){T&&T(),E&&E(),o.cancelToken&&o.cancelToken.unsubscribe(y),o.signal&&o.signal.removeEventListener("abort",y)}let j=new XMLHttpRequest;j.open(o.method.toUpperCase(),o.url,!0),j.timeout=o.timeout;function M(){if(!j)return;const U=jt.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders()),H={data:!p||p==="text"||p==="json"?j.responseText:j.response,status:j.status,statusText:j.statusText,headers:U,config:n,request:j};qy(function(W){s(W),R()},function(W){r(W),R()},H),j=null}"onloadend"in j?j.onloadend=M:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(M)},j.onabort=function(){j&&(r(new he("Request aborted",he.ECONNABORTED,n,j)),j=null)},j.onerror=function(){r(new he("Network Error",he.ERR_NETWORK,n,j)),j=null},j.ontimeout=function(){let X=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const H=o.transitional||_y;o.timeoutErrorMessage&&(X=o.timeoutErrorMessage),r(new he(X,H.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,n,j)),j=null},c===void 0&&f.setContentType(null),"setRequestHeader"in j&&_.forEach(f.toJSON(),function(X,H){j.setRequestHeader(H,X)}),_.isUndefined(o.withCredentials)||(j.withCredentials=!!o.withCredentials),p&&p!=="json"&&(j.responseType=o.responseType),h&&([S,E]=Kr(h,!0),j.addEventListener("progress",S)),m&&j.upload&&([x,T]=Kr(m),j.upload.addEventListener("progress",x),j.upload.addEventListener("loadend",T)),(o.cancelToken||o.signal)&&(y=U=>{j&&(r(!U||U.type?new Vi(null,n,j):U),j.abort(),j=null)},o.cancelToken&&o.cancelToken.subscribe(y),o.signal&&(o.signal.aborted?y():o.signal.addEventListener("abort",y)));const V=Xw(o.url);if(V&&mt.protocols.indexOf(V)===-1){r(new he("Unsupported protocol "+V+":",he.ERR_BAD_REQUEST,n));return}j.send(c||null)})},eT=(n,a)=>{const{length:s}=n=n?n.filter(Boolean):[];if(a||s){let r=new AbortController,o;const c=function(h){if(!o){o=!0,p();const y=h instanceof Error?h:this.reason;r.abort(y instanceof he?y:new Vi(y instanceof Error?y.message:y))}};let f=a&&setTimeout(()=>{f=null,c(new he(`timeout ${a} of ms exceeded`,he.ETIMEDOUT))},a);const p=()=>{n&&(f&&clearTimeout(f),f=null,n.forEach(h=>{h.unsubscribe?h.unsubscribe(c):h.removeEventListener("abort",c)}),n=null)};n.forEach(h=>h.addEventListener("abort",c));const{signal:m}=r;return m.unsubscribe=()=>_.asap(p),m}},tT=function*(n,a){let s=n.byteLength;if(s<a){yield n;return}let r=0,o;for(;r<s;)o=r+a,yield n.slice(r,o),r=o},nT=function(n,a){return Rc(this,null,function*(){try{for(var s=vp(aT(n)),r,o,c;r=!(o=yield new Ra(s.next())).done;r=!1){const f=o.value;yield*Cc(tT(f,a))}}catch(o){c=[o]}finally{try{r&&(o=s.return)&&(yield new Ra(o.call(s)))}finally{if(c)throw c[0]}}})},aT=function(n){return Rc(this,null,function*(){if(n[Symbol.asyncIterator]){yield*Cc(n);return}const a=n.getReader();try{for(;;){const{done:s,value:r}=yield new Ra(a.read());if(s)break;yield r}}finally{yield new Ra(a.cancel())}})},Yp=(n,a,s,r)=>{const o=nT(n,a);let c=0,f,p=h=>{f||(f=!0,r&&r(h))};return new ReadableStream({pull(h){return _e(this,null,function*(){try{const{done:y,value:x}=yield o.next();if(y){p(),h.close();return}let S=x.byteLength;if(s){let T=c+=S;s(T)}h.enqueue(new Uint8Array(x))}catch(y){throw p(y),y}})},cancel(h){return p(h),o.return()}},{highWaterMark:2})},lo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Gy=lo&&typeof ReadableStream=="function",iT=lo&&(typeof TextEncoder=="function"?(n=>a=>n.encode(a))(new TextEncoder):n=>_e(null,null,function*(){return new Uint8Array(yield new Response(n).arrayBuffer())})),Xy=(n,...a)=>{try{return!!n(...a)}catch(s){return!1}},sT=Gy&&Xy(()=>{let n=!1;const a=new Request(mt.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!a}),Pp=64*1024,cf=Gy&&Xy(()=>_.isReadableStream(new Response("").body)),Zr={stream:cf&&(n=>n.body)};lo&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!Zr[a]&&(Zr[a]=_.isFunction(n[a])?s=>s[a]():(s,r)=>{throw new he(`Response type '${a}' is not supported`,he.ERR_NOT_SUPPORT,r)})})})(new Response);const lT=n=>_e(null,null,function*(){if(n==null)return 0;if(_.isBlob(n))return n.size;if(_.isSpecCompliantForm(n))return(yield new Request(mt.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(_.isArrayBufferView(n)||_.isArrayBuffer(n))return n.byteLength;if(_.isURLSearchParams(n)&&(n=n+""),_.isString(n))return(yield iT(n)).byteLength}),rT=(n,a)=>_e(null,null,function*(){const s=_.toFiniteNumber(n.getContentLength());return s==null?lT(a):s}),oT=lo&&(n=>_e(null,null,function*(){let{url:a,method:s,data:r,signal:o,cancelToken:c,timeout:f,onDownloadProgress:p,onUploadProgress:m,responseType:h,headers:y,withCredentials:x="same-origin",fetchOptions:S}=Py(n);h=h?(h+"").toLowerCase():"text";let T=eT([o,c&&c.toAbortSignal()],f),E;const R=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let j;try{if(m&&sT&&s!=="get"&&s!=="head"&&(j=yield rT(y,r))!==0){let H=new Request(a,{method:"POST",body:r,duplex:"half"}),Q;if(_.isFormData(r)&&(Q=H.headers.get("content-type"))&&y.setContentType(Q),H.body){const[W,F]=Hp(j,Kr(kp(m)));r=Yp(H.body,Pp,W,F)}}_.isString(x)||(x=x?"include":"omit");const M="credentials"in Request.prototype;E=new Request(a,le(K({},S),{signal:T,method:s.toUpperCase(),headers:y.normalize().toJSON(),body:r,duplex:"half",credentials:M?x:void 0}));let V=yield fetch(E,S);const U=cf&&(h==="stream"||h==="response");if(cf&&(p||U&&R)){const H={};["status","statusText","headers"].forEach(ce=>{H[ce]=V[ce]});const Q=_.toFiniteNumber(V.headers.get("content-length")),[W,F]=p&&Hp(Q,Kr(kp(p),!0))||[];V=new Response(Yp(V.body,Pp,W,()=>{F&&F(),R&&R()}),H)}h=h||"text";let X=yield Zr[_.findKey(Zr,h)||"text"](V,n);return!U&&R&&R(),yield new Promise((H,Q)=>{qy(H,Q,{data:X,headers:jt.from(V.headers),status:V.status,statusText:V.statusText,config:n,request:E})})}catch(M){throw R&&R(),M&&M.name==="TypeError"&&/Load failed|fetch/i.test(M.message)?Object.assign(new he("Network Error",he.ERR_NETWORK,n,E),{cause:M.cause||M}):he.from(M,M&&M.code,n,E)}})),ff={http:Tw,xhr:Iw,fetch:oT};_.forEach(ff,(n,a)=>{if(n){try{Object.defineProperty(n,"name",{value:a})}catch(s){}Object.defineProperty(n,"adapterName",{value:a})}});const Gp=n=>`- ${n}`,uT=n=>_.isFunction(n)||n===null||n===!1,Ky={getAdapter:n=>{n=_.isArray(n)?n:[n];const{length:a}=n;let s,r;const o={};for(let c=0;c<a;c++){s=n[c];let f;if(r=s,!uT(s)&&(r=ff[(f=String(s)).toLowerCase()],r===void 0))throw new he(`Unknown adapter '${f}'`);if(r)break;o[f||"#"+c]=r}if(!r){const c=Object.entries(o).map(([p,m])=>`adapter ${p} `+(m===!1?"is not supported by the environment":"is not available in the build"));let f=a?c.length>1?`since :
|
|
63
|
-
`+c.map(Gp).join(`
|
|
64
|
-
`):" "+Gp(c[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return r},adapters:ff};function kc(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Vi(null,n)}function Xp(n){return kc(n),n.headers=jt.from(n.headers),n.data=Hc.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Ky.getAdapter(n.adapter||cl.adapter)(n).then(function(r){return kc(n),r.data=Hc.call(n,n.transformResponse,r),r.headers=jt.from(r.headers),r},function(r){return ky(r)||(kc(n),r&&r.response&&(r.response.data=Hc.call(n,n.transformResponse,r.response),r.response.headers=jt.from(r.response.headers))),Promise.reject(r)})}const Zy="1.11.0",ro={};["object","boolean","number","function","string","symbol"].forEach((n,a)=>{ro[n]=function(r){return typeof r===n||"a"+(a<1?"n ":" ")+n}});const Kp={};ro.transitional=function(a,s,r){function o(c,f){return"[Axios v"+Zy+"] Transitional option '"+c+"'"+f+(r?". "+r:"")}return(c,f,p)=>{if(a===!1)throw new he(o(f," has been removed"+(s?" in "+s:"")),he.ERR_DEPRECATED);return s&&!Kp[f]&&(Kp[f]=!0,console.warn(o(f," has been deprecated since v"+s+" and will be removed in the near future"))),a?a(c,f,p):!0}};ro.spelling=function(a){return(s,r)=>(console.warn(`${r} is likely a misspelling of ${a}`),!0)};function cT(n,a,s){if(typeof n!="object")throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let o=r.length;for(;o-- >0;){const c=r[o],f=a[c];if(f){const p=n[c],m=p===void 0||f(p,c,n);if(m!==!0)throw new he("option "+c+" must be "+m,he.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new he("Unknown option "+c,he.ERR_BAD_OPTION)}}const kr={assertOptions:cT,validators:ro},un=kr.validators;let za=class{constructor(a){this.defaults=a||{},this.interceptors={request:new Up,response:new Up}}request(a,s){return _e(this,null,function*(){try{return yield this._request(a,s)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const c=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?c&&!String(r.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
65
|
-
`+c):r.stack=c}catch(f){}}throw r}})}_request(a,s){typeof a=="string"?(s=s||{},s.url=a):s=a||{},s=Ua(this.defaults,s);const{transitional:r,paramsSerializer:o,headers:c}=s;r!==void 0&&kr.assertOptions(r,{silentJSONParsing:un.transitional(un.boolean),forcedJSONParsing:un.transitional(un.boolean),clarifyTimeoutError:un.transitional(un.boolean)},!1),o!=null&&(_.isFunction(o)?s.paramsSerializer={serialize:o}:kr.assertOptions(o,{encode:un.function,serialize:un.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),kr.assertOptions(s,{baseUrl:un.spelling("baseURL"),withXsrfToken:un.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let f=c&&_.merge(c.common,c[s.method]);c&&_.forEach(["delete","get","head","post","put","patch","common"],E=>{delete c[E]}),s.headers=jt.concat(f,c);const p=[];let m=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(s)===!1||(m=m&&R.synchronous,p.unshift(R.fulfilled,R.rejected))});const h=[];this.interceptors.response.forEach(function(R){h.push(R.fulfilled,R.rejected)});let y,x=0,S;if(!m){const E=[Xp.bind(this),void 0];for(E.unshift(...p),E.push(...h),S=E.length,y=Promise.resolve(s);x<S;)y=y.then(E[x++],E[x++]);return y}S=p.length;let T=s;for(x=0;x<S;){const E=p[x++],R=p[x++];try{T=E(T)}catch(j){R.call(this,j);break}}try{y=Xp.call(this,T)}catch(E){return Promise.reject(E)}for(x=0,S=h.length;x<S;)y=y.then(h[x++],h[x++]);return y}getUri(a){a=Ua(this.defaults,a);const s=Yy(a.baseURL,a.url,a.allowAbsoluteUrls);return Uy(s,a.params,a.paramsSerializer)}};_.forEach(["delete","get","head","options"],function(a){za.prototype[a]=function(s,r){return this.request(Ua(r||{},{method:a,url:s,data:(r||{}).data}))}});_.forEach(["post","put","patch"],function(a){function s(r){return function(c,f,p){return this.request(Ua(p||{},{method:a,headers:r?{"Content-Type":"multipart/form-data"}:{},url:c,data:f}))}}za.prototype[a]=s(),za.prototype[a+"Form"]=s(!0)});let fT=class Qy{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(c){s=c});const r=this;this.promise.then(o=>{if(!r._listeners)return;let c=r._listeners.length;for(;c-- >0;)r._listeners[c](o);r._listeners=null}),this.promise.then=o=>{let c;const f=new Promise(p=>{r.subscribe(p),c=p}).then(o);return f.cancel=function(){r.unsubscribe(c)},f},a(function(c,f,p){r.reason||(r.reason=new Vi(c,f,p),s(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const s=this._listeners.indexOf(a);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const a=new AbortController,s=r=>{a.abort(r)};return this.subscribe(s),a.signal.unsubscribe=()=>this.unsubscribe(s),a.signal}static source(){let a;return{token:new Qy(function(o){a=o}),cancel:a}}};function dT(n){return function(s){return n.apply(null,s)}}function hT(n){return _.isObject(n)&&n.isAxiosError===!0}const df={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(df).forEach(([n,a])=>{df[a]=n});function Fy(n){const a=new za(n),s=Ay(za.prototype.request,a);return _.extend(s,za.prototype,a,{allOwnKeys:!0}),_.extend(s,a,null,{allOwnKeys:!0}),s.create=function(o){return Fy(Ua(n,o))},s}const we=Fy(cl);we.Axios=za;we.CanceledError=Vi;we.CancelToken=fT;we.isCancel=ky;we.VERSION=Zy;we.toFormData=so;we.AxiosError=he;we.Cancel=we.CanceledError;we.all=function(a){return Promise.all(a)};we.spread=dT;we.isAxiosError=hT;we.mergeConfig=Ua;we.AxiosHeaders=jt;we.formToJSON=n=>Hy(_.isHTMLForm(n)?new FormData(n):n);we.getAdapter=Ky.getAdapter;we.HttpStatusCode=df;we.default=we;const{Axios:VN,AxiosError:UN,CanceledError:_N,isCancel:HN,CancelToken:kN,VERSION:qN,all:YN,Cancel:PN,isAxiosError:GN,spread:XN,toFormData:KN,AxiosHeaders:ZN,HttpStatusCode:QN,formToJSON:FN,getAdapter:$N,mergeConfig:JN}=we,Zp=n=>{let a;const s=new Set,r=(h,y)=>{const x=typeof h=="function"?h(a):h;if(!Object.is(x,a)){const S=a;a=(y!=null?y:typeof x!="object"||x===null)?x:Object.assign({},a,x),s.forEach(T=>T(a,S))}},o=()=>a,p={setState:r,getState:o,getInitialState:()=>m,subscribe:h=>(s.add(h),()=>s.delete(h))},m=a=n(r,o,p);return p},mT=n=>n?Zp(n):Zp,pT=n=>n;function gT(n,a=pT){const s=Dr.useSyncExternalStore(n.subscribe,Dr.useCallback(()=>a(n.getState()),[n,a]),Dr.useCallback(()=>a(n.getInitialState()),[n,a]));return Dr.useDebugValue(s),s}const Qp=n=>{const a=mT(n),s=r=>gT(a,r);return Object.assign(s,a),s},$y=n=>n?Qp(n):Qp,vt=window.location.origin,Qr=$y(n=>({Rootname:"",setRootname:a=>n({Rootname:a})})),Nt=$y(n=>({TransactionKey:"",setTransactionKey:a=>n({TransactionKey:a}),loadKey:()=>_e(null,null,function*(){if(sessionStorage.getItem("transactionToken")){n({TransactionKey:sessionStorage.getItem("transactionToken")});return}yield we.get(`${vt}/api/get-token`).then(a=>{var s,r,o,c;a.status===200&&(sessionStorage.setItem("transactionToken",(r=(s=a.data)==null?void 0:s.data)==null?void 0:r.originSessionKey),n({TransactionKey:(c=(o=a.data)==null?void 0:o.data)==null?void 0:c.originSessionKey}))}).catch(a=>{console.error("Error fetching transaction key:",a)})})})),yT=()=>{const[n,a]=w.useState(!1),{Rootname:s}=Qr(c=>c),{setRootname:r}=Qr(c=>c),{TransactionKey:o}=Nt(c=>c);return w.useEffect(()=>{we.get(`${vt}/api/db/databases?transactiontoken=${o}`).then(c=>{var f;c.status===200&&r((f=c.data.data.RootName)!=null?f:"AxioDB")})},[]),g.jsx("header",{className:"bg-gradient-to-r from-blue-700 to-indigo-800 shadow-lg",children:g.jsx("nav",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:g.jsx("div",{className:"flex items-center justify-between h-16",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx("div",{className:"flex-shrink-0",children:g.jsxs(Ps,{to:"/",className:"flex items-center",children:[g.jsx("img",{src:"/AXioDB.png",alt:"AxioDB Logo",className:"h-9 w-9"}),g.jsxs("span",{className:"ml-2 text-white font-bold text-xl tracking-tight",children:[s," Admin Hub"]})]})}),g.jsx("div",{className:"hidden md:block ml-10",children:g.jsxs("div",{className:"flex space-x-4",children:[g.jsx(Ps,{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"}),g.jsx(Ps,{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 vT(n,a){return w.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:a},n),w.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 xT=w.forwardRef(vT);function bT(n,a){return w.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:a},n),w.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 ST=w.forwardRef(bT);function wT(n,a){return w.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:a},n),w.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 Jy=w.forwardRef(wT);function TT(n,a){return w.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:a},n),w.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 ET=w.forwardRef(TT);function AT(n,a){return w.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:a},n),w.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 jT=w.forwardRef(AT);function NT(n,a){return w.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:a},n),w.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 RT=w.forwardRef(NT);function CT(n,a){return w.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a},n),w.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 DT=w.forwardRef(CT);function MT(n,a){return w.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a},n),w.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 OT=w.forwardRef(MT),LT=({treeDB:n})=>{const[a,s]=w.useState(!0),[r,o]=w.useState({}),[c,f]=w.useState([]),p=h=>{o(y=>le(K({},y),{[h]:!y[h]}))};w.useEffect(()=>{const h=()=>{if(!n||!Array.isArray(n)){f([]),s(!1);return}const y=n.map((x,S)=>{const T=`db${S+1}`;return{id:T,name:x.name,type:"database",children:Array.isArray(x.collections)?x.collections.map((E,R)=>({id:`${T}_col${R+1}`,name:E.name||E,type:"collection",documentCount:E.documentCount||0,size:"0 MB"})):[]}});y.length>0&&o({[y[0].id]:!0}),f(y),s(!1)};setTimeout(()=>{h()},500)},[n]);const m=h=>{const y=r[h.id];return g.jsxs("div",{children:[g.jsxs("div",{className:`flex items-center py-2 px-3 ${h.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:()=>h.children&&p(h.id),children:[h.children?g.jsx("div",{className:"mr-1",children:y?g.jsx(DT,{className:"h-4 w-4 text-gray-500"}):g.jsx(OT,{className:"h-4 w-4 text-gray-500"})}):g.jsx("div",{className:"w-4 mr-1"}),h.type==="database"?g.jsx(Jy,{className:"h-5 w-5 text-blue-600 mr-2"}):g.jsx(jT,{className:"h-5 w-5 text-yellow-600 mr-2"}),g.jsx("div",{className:"flex-grow",children:g.jsx("span",{className:"font-medium",children:h.name})}),h.type==="collection"&&g.jsx("div",{className:"text-xs text-gray-500",children:g.jsxs("span",{className:"mr-2",children:[h.documentCount," docs"]})})]}),h.children&&y&&g.jsx("div",{className:"border-l border-gray-200 ml-5",children:h.children.map(m)})]},h.id)};return g.jsxs("div",{className:"bg-white rounded-lg shadow-md hover:shadow-lg transition-shadow",children:[g.jsxs("div",{className:"border-b border-gray-200 py-4 px-6",children:[g.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Database Structure"}),g.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Overview of databases and collections"})]}),g.jsx("div",{className:"overflow-y-auto",style:{maxHeight:"400px"},children:a?g.jsx("div",{className:"p-6 space-y-3",children:[1,2,3].map(h=>g.jsxs("div",{className:"animate-pulse",children:[g.jsx("div",{className:"h-6 bg-gray-200 rounded w-3/4 mb-2"}),g.jsxs("div",{className:"pl-6 space-y-2",children:[g.jsx("div",{className:"h-5 bg-gray-100 rounded w-2/3"}),g.jsx("div",{className:"h-5 bg-gray-100 rounded w-2/3"}),g.jsx("div",{className:"h-5 bg-gray-100 rounded w-2/3"})]})]},h))}):g.jsx("div",{children:c.map(m)})})]})},zT=({CacheStorageInfo:n})=>{const[a,s]=w.useState(!0);w.useEffect(()=>{(()=>{setTimeout(()=>{s(!1)},800)})()},[]);const r=n.Storage/n.Max*100;return g.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:[g.jsxs("div",{className:"flex justify-between mb-3",children:[g.jsxs("div",{children:[g.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"In-Memory Cache"}),a?g.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-24"}):g.jsxs("p",{className:"text-3xl font-bold text-orange-600 mt-2",children:[n.Storage," ",g.jsx("span",{className:"text-lg",children:n.Unit})]}),g.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:["of ",n.Max," ",n.Unit," allocated"]})]}),g.jsx("div",{className:"p-3 bg-orange-100 rounded-full",children:g.jsx(xT,{className:"h-8 w-8 text-orange-600"})})]}),g.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2.5 mt-2",children:g.jsx("div",{className:"bg-orange-600 h-2.5 rounded-full",style:{width:`${a?0:r}%`}})})]})},BT=({storageInfo:n})=>{const[a,s]=w.useState(!0);w.useEffect(()=>{(()=>{setTimeout(()=>{s(!1)},800)})()},[]);const r=(n==null?void 0:n.total)/(n==null?void 0:n.machine)*100;return g.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:[g.jsxs("div",{className:"flex justify-between mb-3",children:[g.jsxs("div",{children:[g.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Storage Used"}),a?g.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-24"}):g.jsxs("p",{className:"text-3xl font-bold text-green-600 mt-2",children:[n==null?void 0:n.total," ",g.jsx("span",{className:"text-lg",children:n==null?void 0:n.matrixUnit})]}),g.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"]})]}),g.jsx("div",{className:"p-3 bg-green-100 rounded-full",children:g.jsx(RT,{className:"h-8 w-8 text-green-600"})})]}),g.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2.5 mt-2",children:g.jsx("div",{className:"bg-green-600 h-2.5 rounded-full",style:{width:`${a?0:r}%`}})})]})},VT=({totalCollections:n})=>{const[a,s]=w.useState(!0);return w.useEffect(()=>{(()=>{setTimeout(()=>{s(!1)},600)})()},[]),g.jsx("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:g.jsxs("div",{className:"flex justify-between",children:[g.jsx("div",{children:a?g.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-16"}):g.jsxs("p",{className:"text-2xl font-bold text-indigo-600 mt-2",children:[n," ",n<=1?"Collection":"Collections"]})}),g.jsx("div",{className:"p-3 bg-indigo-100 rounded-full",children:g.jsx(ST,{className:"h-8 w-8 text-indigo-600"})})]})})},UT=({totalDatabases:n})=>{const[a,s]=w.useState(!0);return w.useEffect(()=>{setTimeout(()=>{s(!1)},1e3)},[]),g.jsx("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:g.jsxs("div",{className:"flex justify-between",children:[g.jsx("div",{children:a?g.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-16 text-center"}):g.jsx("p",{className:"text-2xl font-bold text-blue-600 mt-2 text-center",children:n<=1?`${n} Database`:`${n} Databases`})}),g.jsx("div",{className:"p-3 bg-blue-100 rounded-full",children:g.jsx(Jy,{className:"h-8 w-8 text-blue-600"})})]})})},_T=({totalDocuments:n})=>{const[a,s]=w.useState(!0);return w.useEffect(()=>{(()=>{setTimeout(()=>{s(!1)},700)})()},[]),g.jsx("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:g.jsxs("div",{className:"flex justify-between",children:[g.jsxs("div",{children:[g.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Total Documents"}),a?g.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-20"}):g.jsx("p",{className:"text-3xl font-bold text-purple-600 mt-2",children:n}),g.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Across all collections"})]}),g.jsx("div",{className:"p-3 bg-purple-100 rounded-full",children:g.jsx(ET,{className:"h-8 w-8 text-purple-600"})})]})})},HT=()=>{const[n,a]=w.useState(!0),[s,r]=w.useState(null),{TransactionKey:o}=Nt(c=>c);return w.useEffect(()=>{we.get(`${vt}/api/dashboard-stats?transactiontoken=${o}`).then(c=>{c.status===200&&(r(c.data.data),a(!1))})},[]),g.jsxs("div",{className:"container mx-auto px-4 py-6",children:[g.jsx("div",{className:"mb-6",children:g.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Dashboard"})}),n?g.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(c=>g.jsx("div",{className:"h-32 bg-gray-200 rounded-lg animate-pulse"},c))}):g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-6 mb-8",children:[g.jsx(UT,{totalDatabases:(s==null?void 0:s.totalDatabases)||0}),g.jsx(VT,{totalCollections:(s==null?void 0:s.totalCollections)||0}),g.jsx(_T,{totalDocuments:(s==null?void 0:s.totalDocuments)||0}),g.jsx(BT,{storageInfo:(s==null?void 0:s.storageInfo)||{}}),g.jsx(zT,{CacheStorageInfo:(s==null?void 0:s.cacheStorage)||{}})]}),g.jsx("div",{className:"mb-8",children:g.jsx(LT,{treeDB:(s==null?void 0:s.nodeTree)||[]})})]})},kT=({isOpen:n,onClose:a,onDatabaseCreated:s})=>{const[r,o]=w.useState(""),[c,f]=w.useState(!1),[p,m]=w.useState(""),{TransactionKey:h}=Nt(S=>S),y=()=>{o(""),m(""),f(!1),a()},x=S=>_e(null,null,function*(){var T,E;if(S.preventDefault(),!r.trim()){m("Database name is required");return}if(!/^[a-zA-Z0-9_]+$/.test(r)){m("Database name can only contain letters, numbers, and underscores");return}f(!0),m("");try{const R=yield we.post(`${vt}/api/db/create-database`,{name:r},{params:{transactiontoken:h}});if(R.data.statusCode===200||R.data.statusCode===201)s(r),f(!1),y();else throw f(!1),new Error("Failed to create database")}catch(R){console.error("Error creating database:",R),m(((E=(T=R.response)==null?void 0:T.data)==null?void 0:E.message)||"Failed to create database. Please try again."),f(!1)}});return n?g.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 animate-fadeIn",children:g.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[g.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Create New Database"}),g.jsxs("form",{onSubmit:x,children:[g.jsxs("div",{className:"mb-4",children:[g.jsx("label",{htmlFor:"databaseName",className:"block text-sm font-medium text-gray-700 mb-1",children:"Database Name"}),g.jsx("input",{type:"text",id:"databaseName",value:r,onChange:S=>o(S.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:c}),p&&g.jsx("p",{className:"mt-2 text-sm text-red-600",children:p})]}),g.jsxs("div",{className:"flex justify-end space-x-4 mt-6",children:[g.jsx("button",{type:"button",onClick:y,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",disabled:c,children:"Cancel"}),g.jsx("button",{type:"submit",className:`px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700 transition-colors flex items-center ${c?"opacity-75 cursor-not-allowed":""}`,disabled:c,children:c?g.jsxs(g.Fragment,{children:[g.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:[g.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),g.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},qT=({isOpen:n,dbName:a,onClose:s,onConfirmDelete:r})=>{const{TransactionKey:o}=Nt(m=>m),[c,f]=w.useState(!1);if(!n)return null;const p=()=>_e(null,null,function*(){var m,h;f(!0);try{const y=yield we.delete(`${vt}/api/db/delete-database`,{params:{transactiontoken:o,dbName:a}});if(y.status===200)console.log("Database deleted successfully:",y.data),r();else throw new Error("Failed to delete database")}catch(y){console.error("Error deleting database:",y),alert(((h=(m=y.response)==null?void 0:m.data)==null?void 0:h.message)||"Failed to delete database. Please try again.")}finally{f(!1)}});return g.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:g.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6 animate-fadeIn",children:[g.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Confirm Deletion"}),g.jsxs("p",{className:"text-gray-700 mb-6",children:['Are you sure you want to delete the database "',a,'"? This action cannot be undone.']}),g.jsxs("div",{className:"flex justify-end space-x-4",children:[g.jsx("button",{onClick:s,disabled:c,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",children:"Cancel"}),g.jsx("button",{onClick:p,disabled:c,className:`px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700 transition-colors flex items-center ${c?"opacity-75 cursor-not-allowed":""}`,children:c?g.jsxs(g.Fragment,{children:[g.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:[g.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),g.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"})]})]})})},YT=({databases:n,onDeleteClick:a,loading:s})=>{const r=sl(),[o,c]=w.useState({}),f=m=>{c(h=>le(K({},h),{[m]:!1}))},p=m=>{r(`/collections?database=${encodeURIComponent(m)}`)};return g.jsxs("div",{className:"bg-white rounded-lg shadow-md overflow-hidden",children:[g.jsxs("div",{className:"border-b border-gray-200 bg-gray-50 px-6 py-4",children:[g.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Your Databases"}),g.jsxs("p",{className:"text-sm text-gray-500",children:["Total: ",s?"Loading...":n==null?void 0:n.TotalDatabases]})]}),s?g.jsx("div",{className:"p-6",children:[1,2,3].map(m=>g.jsxs("div",{className:"animate-pulse flex items-center justify-between py-4 border-b border-gray-100",children:[g.jsxs("div",{children:[g.jsx("div",{className:"h-6 bg-gray-200 rounded w-48 mb-2"}),g.jsx("div",{className:"h-4 bg-gray-100 rounded w-32"})]}),g.jsx("div",{className:"h-8 bg-gray-200 rounded w-24"})]},m))}):g.jsx("ul",{className:"divide-y divide-gray-200",children:n!=null&&n.ListOfDatabases&&(n==null?void 0:n.ListOfDatabases.length)>0?n.ListOfDatabases.map((m,h)=>g.jsxs("li",{className:`px-6 py-4 flex items-center justify-between hover:bg-gray-50 transition-all duration-300 ${o[m]?"animate-slideIn":"animate-fadeIn"}`,onAnimationEnd:()=>f(m),children:[g.jsxs("div",{children:[g.jsx("h4",{className:"text-lg font-medium text-gray-900",children:m}),g.jsxs("p",{className:"text-sm text-gray-500",children:["Path: ",n.AllDatabasesPaths[h]]})]}),g.jsxs("div",{className:"flex space-x-2",children:[g.jsx("button",{onClick:()=>p(m),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"}),g.jsx("button",{onClick:()=>a(m),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"})]})]},m)):g.jsx("li",{className:"px-6 py-8 text-center text-gray-500",children:'No databases found. Click "Create Database" to add one.'})})]})},PT=()=>{const[n,a]=w.useState(!0),[s,r]=w.useState([]),[o,c]=w.useState(!1),[f,p]=w.useState(!1),[m,h]=w.useState(""),{TransactionKey:y}=Nt(R=>R),{Rootname:x}=Qr(R=>R);w.useEffect(()=>{y&&_e(null,null,function*(){try{const j=yield we.get(`${vt}/api/db/databases?transactiontoken=${y}`);j.status===200&&(r(j.data.data),a(!1))}catch(j){console.error("Error fetching databases:",j),a(!1),r([])}})},[y]);const S=R=>{h(R),c(!0)},T=()=>{r(R=>le(K({},R),{ListOfDatabases:R.ListOfDatabases.filter(j=>j!==m),TotalDatabases:`${R.ListOfDatabases.length-1} Databases`})),c(!1),h("")},E=R=>{r(j=>le(K({},j),{ListOfDatabases:[...j.ListOfDatabases,R],TotalDatabases:`${j.ListOfDatabases.length+1} Databases`,AllDatabasesPaths:[...j.AllDatabasesPaths,`${j.CurrentPath}/${R}`]}))};return g.jsxs("div",{className:"container mx-auto px-4 py-6",children:[g.jsxs("div",{className:"flex justify-between items-center mb-6",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Databases"}),g.jsxs("p",{className:"text-gray-600",children:["Manage your ",x," databases"]})]}),g.jsxs("button",{onClick:()=>p(!0),className:"bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-lg flex items-center transition-colors",children:[g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:g.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"]})]}),g.jsx(YT,{databases:s,onDeleteClick:S,loading:n}),g.jsx(kT,{isOpen:f,onClose:()=>p(!1),onDatabaseCreated:E}),g.jsx(qT,{isOpen:o,dbName:m,onClose:()=>c(!1),onConfirmDelete:T})]})},GT=({isOpen:n,onClose:a,onCollectionCreated:s,databaseName:r})=>{const[o,c]=w.useState(""),[f,p]=w.useState(!1),[m,h]=w.useState(""),[y,x]=w.useState(!1),[S,T]=w.useState(""),{TransactionKey:E}=Nt(M=>M),R=()=>{c(""),p(!1),h(""),T(""),x(!1),a()},j=M=>_e(null,null,function*(){var V,U;if(M.preventDefault(),!o.trim()){T("Collection name is required");return}if(!/^[a-zA-Z0-9_]+$/.test(o)){T("Collection name can only contain letters, numbers, and underscores");return}if(f&&!m.trim()){T("Encryption key is required when encryption is enabled");return}x(!0),T("");try{const X=yield we.post(`${vt}/api/collection/create-collection`,{dbName:r,collectionName:o,crypto:f,key:f?m:""},{params:{transactiontoken:E}});if(X.data.statusCode===200||X.data.statusCode===201)s({name:o,documentCount:0,size:"N/A"}),R();else throw new Error("Failed to create collection")}catch(X){console.error("Error creating collection:",X),T(((U=(V=X.response)==null?void 0:V.data)==null?void 0:U.message)||"Failed to create collection. Please try again."),x(!1)}});return n?g.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 animate-fadeIn",children:g.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[g.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Create New Collection"}),g.jsxs("form",{onSubmit:j,children:[g.jsxs("div",{className:"mb-4",children:[g.jsx("label",{htmlFor:"databaseName",className:"block text-sm font-medium text-gray-700 mb-1",children:"Database Name"}),g.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})]}),g.jsxs("div",{className:"mb-4",children:[g.jsx("label",{htmlFor:"collectionName",className:"block text-sm font-medium text-gray-700 mb-1",children:"Collection Name"}),g.jsx("input",{type:"text",id:"collectionName",value:o,onChange:M=>c(M.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:y})]}),g.jsx("div",{className:"mb-4",children:g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("label",{htmlFor:"enableCrypto",className:"text-sm font-medium text-gray-700",children:"Enable Encryption"}),g.jsxs("div",{className:"relative inline-block w-10 mr-2 align-middle select-none",children:[g.jsx("input",{type:"checkbox",id:"enableCrypto",checked:f,onChange:()=>p(!f),className:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer",disabled:y}),g.jsx("label",{htmlFor:"enableCrypto",className:`toggle-label block overflow-hidden h-6 rounded-full cursor-pointer ${f?"bg-green-500":"bg-gray-300"}`})]})]})}),f&&g.jsxs("div",{className:"mb-4",children:[g.jsx("label",{htmlFor:"cryptoKey",className:"block text-sm font-medium text-gray-700 mb-1",children:"Encryption Key"}),g.jsx("input",{type:"password",id:"cryptoKey",value:m,onChange:M=>h(M.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:y})]}),S&&g.jsx("p",{className:"mt-2 text-sm text-red-600",children:S}),g.jsxs("div",{className:"flex justify-end space-x-4 mt-6",children:[g.jsx("button",{type:"button",onClick:R,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",disabled:y,children:"Cancel"}),g.jsx("button",{type:"submit",className:`px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700 transition-colors flex items-center ${y?"opacity-75 cursor-not-allowed":""}`,disabled:y,children:y?g.jsxs(g.Fragment,{children:[g.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:[g.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),g.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},XT=({isOpen:n,onClose:a,onCollectionDeleted:s,databaseName:r,collectionName:o})=>{const[c,f]=w.useState(!1),[p,m]=w.useState(""),{TransactionKey:h}=Nt(S=>S),y=()=>{m(""),f(!1),a()},x=()=>_e(null,null,function*(){var S,T;f(!0),m("");try{if((yield we.delete(`${vt}/api/collection/delete-collection/?dbName=${r}&collectionName=${o}&transactiontoken=${h}`)).data.statusCode===200)s(o),y();else throw new Error("Failed to delete collection")}catch(E){console.error("Error deleting collection:",E),m(((T=(S=E.response)==null?void 0:S.data)==null?void 0:T.message)||"Failed to delete collection. Please try again."),f(!1)}});return n?g.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 animate-fadeIn",children:g.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[g.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Delete Collection"}),g.jsxs("p",{className:"mb-6 text-gray-600",children:["Are you sure you want to delete the collection"," ",g.jsx("span",{className:"font-semibold",children:o})," from database"," ",g.jsx("span",{className:"font-semibold",children:r}),"? This action cannot be undone."]}),p&&g.jsx("p",{className:"mb-4 text-sm text-red-600",children:p}),g.jsxs("div",{className:"flex justify-end space-x-4 mt-6",children:[g.jsx("button",{type:"button",onClick:y,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",disabled:c,children:"Cancel"}),g.jsx("button",{type:"button",onClick:x,className:`px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700 transition-colors flex items-center ${c?"opacity-75 cursor-not-allowed":""}`,disabled:c,children:c?g.jsxs(g.Fragment,{children:[g.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:[g.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),g.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},Pf=w.createContext({});function Gf(n){const a=w.useRef(null);return a.current===null&&(a.current=n()),a.current}const Xf=typeof window!="undefined",Wy=Xf?w.useLayoutEffect:w.useEffect,oo=w.createContext(null);function Kf(n,a){n.indexOf(a)===-1&&n.push(a)}function Zf(n,a){const s=n.indexOf(a);s>-1&&n.splice(s,1)}const Mn=(n,a,s)=>s>a?a:s<n?n:s;let Qf=()=>{};const On={},Iy=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function ev(n){return typeof n=="object"&&n!==null}const tv=n=>/^0[^.\s]+$/u.test(n);function Ff(n){let a;return()=>(a===void 0&&(a=n()),a)}const Qt=n=>n,KT=(n,a)=>s=>a(n(s)),fl=(...n)=>n.reduce(KT),Js=(n,a,s)=>{const r=a-n;return r===0?1:(s-n)/r};class $f{constructor(){this.subscriptions=[]}add(a){return Kf(this.subscriptions,a),()=>Zf(this.subscriptions,a)}notify(a,s,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](a,s,r);else for(let c=0;c<o;c++){const f=this.subscriptions[c];f&&f(a,s,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const cn=n=>n*1e3,fn=n=>n/1e3;function nv(n,a){return a?n*(1e3/a):0}const av=(n,a,s)=>(((1-3*s+3*a)*n+(3*s-6*a))*n+3*a)*n,ZT=1e-7,QT=12;function FT(n,a,s,r,o){let c,f,p=0;do f=a+(s-a)/2,c=av(f,r,o)-n,c>0?s=f:a=f;while(Math.abs(c)>ZT&&++p<QT);return f}function dl(n,a,s,r){if(n===a&&s===r)return Qt;const o=c=>FT(c,0,1,n,s);return c=>c===0||c===1?c:av(o(c),a,r)}const iv=n=>a=>a<=.5?n(2*a)/2:(2-n(2*(1-a)))/2,sv=n=>a=>1-n(1-a),lv=dl(.33,1.53,.69,.99),Jf=sv(lv),rv=iv(Jf),ov=n=>(n*=2)<1?.5*Jf(n):.5*(2-Math.pow(2,-10*(n-1))),Wf=n=>1-Math.sin(Math.acos(n)),uv=sv(Wf),cv=iv(Wf),$T=dl(.42,0,1,1),JT=dl(0,0,.58,1),fv=dl(.42,0,.58,1),WT=n=>Array.isArray(n)&&typeof n[0]!="number",dv=n=>Array.isArray(n)&&typeof n[0]=="number",IT={linear:Qt,easeIn:$T,easeInOut:fv,easeOut:JT,circIn:Wf,circInOut:cv,circOut:uv,backIn:Jf,backInOut:rv,backOut:lv,anticipate:ov},eE=n=>typeof n=="string",Fp=n=>{if(dv(n)){Qf(n.length===4);const[a,s,r,o]=n;return dl(a,s,r,o)}else if(eE(n))return IT[n];return n},Or=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tE(n,a){let s=new Set,r=new Set,o=!1,c=!1;const f=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function m(y){f.has(y)&&(h.schedule(y),n()),y(p)}const h={schedule:(y,x=!1,S=!1)=>{const E=S&&o?s:r;return x&&f.add(y),E.has(y)||E.add(y),y},cancel:y=>{r.delete(y),f.delete(y)},process:y=>{if(p=y,o){c=!0;return}o=!0,[s,r]=[r,s],s.forEach(m),s.clear(),o=!1,c&&(c=!1,h.process(y))}};return h}const nE=40;function hv(n,a){let s=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},c=()=>s=!0,f=Or.reduce((U,X)=>(U[X]=tE(c),U),{}),{setup:p,read:m,resolveKeyframes:h,preUpdate:y,update:x,preRender:S,render:T,postRender:E}=f,R=()=>{const U=On.useManualTiming?o.timestamp:performance.now();s=!1,On.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(U-o.timestamp,nE),1)),o.timestamp=U,o.isProcessing=!0,p.process(o),m.process(o),h.process(o),y.process(o),x.process(o),S.process(o),T.process(o),E.process(o),o.isProcessing=!1,s&&a&&(r=!1,n(R))},j=()=>{s=!0,r=!0,o.isProcessing||n(R)};return{schedule:Or.reduce((U,X)=>{const H=f[X];return U[X]=(Q,W=!1,F=!1)=>(s||j(),H.schedule(Q,W,F)),U},{}),cancel:U=>{for(let X=0;X<Or.length;X++)f[Or[X]].cancel(U)},state:o,steps:f}}const{schedule:ke,cancel:la,state:ct,steps:qc}=hv(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:Qt,!0);let qr;function aE(){qr=void 0}const Et={now:()=>(qr===void 0&&Et.set(ct.isProcessing||On.useManualTiming?ct.timestamp:performance.now()),qr),set:n=>{qr=n,queueMicrotask(aE)}},mv=n=>a=>typeof a=="string"&&a.startsWith(n),If=mv("--"),iE=mv("var(--"),ed=n=>iE(n)?sE.test(n.split("/*")[0].trim()):!1,sE=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ui={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},Ws=le(K({},Ui),{transform:n=>Mn(0,1,n)}),Lr=le(K({},Ui),{default:1}),Gs=n=>Math.round(n*1e5)/1e5,td=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function lE(n){return n==null}const rE=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,nd=(n,a)=>s=>!!(typeof s=="string"&&rE.test(s)&&s.startsWith(n)||a&&!lE(s)&&Object.prototype.hasOwnProperty.call(s,a)),pv=(n,a,s)=>r=>{if(typeof r!="string")return r;const[o,c,f,p]=r.match(td);return{[n]:parseFloat(o),[a]:parseFloat(c),[s]:parseFloat(f),alpha:p!==void 0?parseFloat(p):1}},oE=n=>Mn(0,255,n),Yc=le(K({},Ui),{transform:n=>Math.round(oE(n))}),Oa={test:nd("rgb","red"),parse:pv("red","green","blue"),transform:({red:n,green:a,blue:s,alpha:r=1})=>"rgba("+Yc.transform(n)+", "+Yc.transform(a)+", "+Yc.transform(s)+", "+Gs(Ws.transform(r))+")"};function uE(n){let a="",s="",r="",o="";return n.length>5?(a=n.substring(1,3),s=n.substring(3,5),r=n.substring(5,7),o=n.substring(7,9)):(a=n.substring(1,2),s=n.substring(2,3),r=n.substring(3,4),o=n.substring(4,5),a+=a,s+=s,r+=r,o+=o),{red:parseInt(a,16),green:parseInt(s,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const hf={test:nd("#"),parse:uE,transform:Oa.transform},hl=n=>({test:a=>typeof a=="string"&&a.endsWith(n)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${n}`}),sa=hl("deg"),dn=hl("%"),oe=hl("px"),cE=hl("vh"),fE=hl("vw"),$p=le(K({},dn),{parse:n=>dn.parse(n)/100,transform:n=>dn.transform(n*100)}),Ai={test:nd("hsl","hue"),parse:pv("hue","saturation","lightness"),transform:({hue:n,saturation:a,lightness:s,alpha:r=1})=>"hsla("+Math.round(n)+", "+dn.transform(Gs(a))+", "+dn.transform(Gs(s))+", "+Gs(Ws.transform(r))+")"},We={test:n=>Oa.test(n)||hf.test(n)||Ai.test(n),parse:n=>Oa.test(n)?Oa.parse(n):Ai.test(n)?Ai.parse(n):hf.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Oa.transform(n):Ai.transform(n),getAnimatableNone:n=>{const a=We.parse(n);return a.alpha=0,We.transform(a)}},dE=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function hE(n){var a,s;return isNaN(n)&&typeof n=="string"&&(((a=n.match(td))==null?void 0:a.length)||0)+(((s=n.match(dE))==null?void 0:s.length)||0)>0}const gv="number",yv="color",mE="var",pE="var(",Jp="${}",gE=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Is(n){const a=n.toString(),s=[],r={color:[],number:[],var:[]},o=[];let c=0;const p=a.replace(gE,m=>(We.test(m)?(r.color.push(c),o.push(yv),s.push(We.parse(m))):m.startsWith(pE)?(r.var.push(c),o.push(mE),s.push(m)):(r.number.push(c),o.push(gv),s.push(parseFloat(m))),++c,Jp)).split(Jp);return{values:s,split:p,indexes:r,types:o}}function vv(n){return Is(n).values}function xv(n){const{split:a,types:s}=Is(n),r=a.length;return o=>{let c="";for(let f=0;f<r;f++)if(c+=a[f],o[f]!==void 0){const p=s[f];p===gv?c+=Gs(o[f]):p===yv?c+=We.transform(o[f]):c+=o[f]}return c}}const yE=n=>typeof n=="number"?0:We.test(n)?We.getAnimatableNone(n):n;function vE(n){const a=vv(n);return xv(n)(a.map(yE))}const ra={test:hE,parse:vv,createTransformer:xv,getAnimatableNone:vE};function Pc(n,a,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(a-n)*6*s:s<1/2?a:s<2/3?n+(a-n)*(2/3-s)*6:n}function xE({hue:n,saturation:a,lightness:s,alpha:r}){n/=360,a/=100,s/=100;let o=0,c=0,f=0;if(!a)o=c=f=s;else{const p=s<.5?s*(1+a):s+a-s*a,m=2*s-p;o=Pc(m,p,n+1/3),c=Pc(m,p,n),f=Pc(m,p,n-1/3)}return{red:Math.round(o*255),green:Math.round(c*255),blue:Math.round(f*255),alpha:r}}function Fr(n,a){return s=>s>0?a:n}const Ye=(n,a,s)=>n+(a-n)*s,Gc=(n,a,s)=>{const r=n*n,o=s*(a*a-r)+r;return o<0?0:Math.sqrt(o)},bE=[hf,Oa,Ai],SE=n=>bE.find(a=>a.test(n));function Wp(n){const a=SE(n);if(!a)return!1;let s=a.parse(n);return a===Ai&&(s=xE(s)),s}const Ip=(n,a)=>{const s=Wp(n),r=Wp(a);if(!s||!r)return Fr(n,a);const o=K({},s);return c=>(o.red=Gc(s.red,r.red,c),o.green=Gc(s.green,r.green,c),o.blue=Gc(s.blue,r.blue,c),o.alpha=Ye(s.alpha,r.alpha,c),Oa.transform(o))},mf=new Set(["none","hidden"]);function wE(n,a){return mf.has(n)?s=>s<=0?n:a:s=>s>=1?a:n}function TE(n,a){return s=>Ye(n,a,s)}function ad(n){return typeof n=="number"?TE:typeof n=="string"?ed(n)?Fr:We.test(n)?Ip:jE:Array.isArray(n)?bv:typeof n=="object"?We.test(n)?Ip:EE:Fr}function bv(n,a){const s=[...n],r=s.length,o=n.map((c,f)=>ad(c)(c,a[f]));return c=>{for(let f=0;f<r;f++)s[f]=o[f](c);return s}}function EE(n,a){const s=K(K({},n),a),r={};for(const o in s)n[o]!==void 0&&a[o]!==void 0&&(r[o]=ad(n[o])(n[o],a[o]));return o=>{for(const c in r)s[c]=r[c](o);return s}}function AE(n,a){var o;const s=[],r={color:0,var:0,number:0};for(let c=0;c<a.values.length;c++){const f=a.types[c],p=n.indexes[f][r[f]],m=(o=n.values[p])!=null?o:0;s[c]=m,r[f]++}return s}const jE=(n,a)=>{const s=ra.createTransformer(a),r=Is(n),o=Is(a);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?mf.has(n)&&!o.values.length||mf.has(a)&&!r.values.length?wE(n,a):fl(bv(AE(r,o),o.values),s):Fr(n,a)};function Sv(n,a,s){return typeof n=="number"&&typeof a=="number"&&typeof s=="number"?Ye(n,a,s):ad(n)(n,a)}const NE=n=>{const a=({timestamp:s})=>n(s);return{start:(s=!0)=>ke.update(a,s),stop:()=>la(a),now:()=>ct.isProcessing?ct.timestamp:Et.now()}},wv=(n,a,s=10)=>{let r="";const o=Math.max(Math.round(a/s),2);for(let c=0;c<o;c++)r+=Math.round(n(c/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},$r=2e4;function id(n){let a=0;const s=50;let r=n.next(a);for(;!r.done&&a<$r;)a+=s,r=n.next(a);return a>=$r?1/0:a}function RE(n,a=100,s){const r=s(le(K({},n),{keyframes:[0,a]})),o=Math.min(id(r),$r);return{type:"keyframes",ease:c=>r.next(o*c).value/a,duration:fn(o)}}const CE=5;function Tv(n,a,s){const r=Math.max(a-CE,0);return nv(s-n(r),a-r)}const Ke={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Xc=.001;function DE({duration:n=Ke.duration,bounce:a=Ke.bounce,velocity:s=Ke.velocity,mass:r=Ke.mass}){let o,c,f=1-a;f=Mn(Ke.minDamping,Ke.maxDamping,f),n=Mn(Ke.minDuration,Ke.maxDuration,fn(n)),f<1?(o=h=>{const y=h*f,x=y*n,S=y-s,T=pf(h,f),E=Math.exp(-x);return Xc-S/T*E},c=h=>{const x=h*f*n,S=x*s+s,T=Math.pow(f,2)*Math.pow(h,2)*n,E=Math.exp(-x),R=pf(Math.pow(h,2),f);return(-o(h)+Xc>0?-1:1)*((S-T)*E)/R}):(o=h=>{const y=Math.exp(-h*n),x=(h-s)*n+1;return-Xc+y*x},c=h=>{const y=Math.exp(-h*n),x=(s-h)*(n*n);return y*x});const p=5/n,m=OE(o,c,p);if(n=cn(n),isNaN(m))return{stiffness:Ke.stiffness,damping:Ke.damping,duration:n};{const h=Math.pow(m,2)*r;return{stiffness:h,damping:f*2*Math.sqrt(r*h),duration:n}}}const ME=12;function OE(n,a,s){let r=s;for(let o=1;o<ME;o++)r=r-n(r)/a(r);return r}function pf(n,a){return n*Math.sqrt(1-a*a)}const LE=["duration","bounce"],zE=["stiffness","damping","mass"];function eg(n,a){return a.some(s=>n[s]!==void 0)}function BE(n){let a=K({velocity:Ke.velocity,stiffness:Ke.stiffness,damping:Ke.damping,mass:Ke.mass,isResolvedFromDuration:!1},n);if(!eg(n,zE)&&eg(n,LE))if(n.visualDuration){const s=n.visualDuration,r=2*Math.PI/(s*1.2),o=r*r,c=2*Mn(.05,1,1-(n.bounce||0))*Math.sqrt(o);a=le(K({},a),{mass:Ke.mass,stiffness:o,damping:c})}else{const s=DE(n);a=le(K(K({},a),s),{mass:Ke.mass}),a.isResolvedFromDuration=!0}return a}function Jr(n=Ke.visualDuration,a=Ke.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:a}:n;let{restSpeed:r,restDelta:o}=s;const c=s.keyframes[0],f=s.keyframes[s.keyframes.length-1],p={done:!1,value:c},{stiffness:m,damping:h,mass:y,duration:x,velocity:S,isResolvedFromDuration:T}=BE(le(K({},s),{velocity:-fn(s.velocity||0)})),E=S||0,R=h/(2*Math.sqrt(m*y)),j=f-c,M=fn(Math.sqrt(m/y)),V=Math.abs(j)<5;r||(r=V?Ke.restSpeed.granular:Ke.restSpeed.default),o||(o=V?Ke.restDelta.granular:Ke.restDelta.default);let U;if(R<1){const H=pf(M,R);U=Q=>{const W=Math.exp(-R*M*Q);return f-W*((E+R*M*j)/H*Math.sin(H*Q)+j*Math.cos(H*Q))}}else if(R===1)U=H=>f-Math.exp(-M*H)*(j+(E+M*j)*H);else{const H=M*Math.sqrt(R*R-1);U=Q=>{const W=Math.exp(-R*M*Q),F=Math.min(H*Q,300);return f-W*((E+R*M*j)*Math.sinh(F)+H*j*Math.cosh(F))/H}}const X={calculatedDuration:T&&x||null,next:H=>{const Q=U(H);if(T)p.done=H>=x;else{let W=H===0?E:0;R<1&&(W=H===0?cn(E):Tv(U,H,Q));const F=Math.abs(W)<=r,ce=Math.abs(f-Q)<=o;p.done=F&&ce}return p.value=p.done?f:Q,p},toString:()=>{const H=Math.min(id(X),$r),Q=wv(W=>X.next(H*W).value,H,30);return H+"ms "+Q},toTransition:()=>{}};return X}Jr.applyToOptions=n=>{const a=RE(n,100,Jr);return n.ease=a.ease,n.duration=cn(a.duration),n.type="keyframes",n};function gf({keyframes:n,velocity:a=0,power:s=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:c=500,modifyTarget:f,min:p,max:m,restDelta:h=.5,restSpeed:y}){const x=n[0],S={done:!1,value:x},T=F=>p!==void 0&&F<p||m!==void 0&&F>m,E=F=>p===void 0?m:m===void 0||Math.abs(p-F)<Math.abs(m-F)?p:m;let R=s*a;const j=x+R,M=f===void 0?j:f(j);M!==j&&(R=M-x);const V=F=>-R*Math.exp(-F/r),U=F=>M+V(F),X=F=>{const ce=V(F),Ae=U(F);S.done=Math.abs(ce)<=h,S.value=S.done?M:Ae};let H,Q;const W=F=>{T(S.value)&&(H=F,Q=Jr({keyframes:[S.value,E(S.value)],velocity:Tv(U,F,S.value),damping:o,stiffness:c,restDelta:h,restSpeed:y}))};return W(0),{calculatedDuration:null,next:F=>{let ce=!1;return!Q&&H===void 0&&(ce=!0,X(F),W(F)),H!==void 0&&F>=H?Q.next(F-H):(!ce&&X(F),S)}}}function VE(n,a,s){const r=[],o=s||On.mix||Sv,c=n.length-1;for(let f=0;f<c;f++){let p=o(n[f],n[f+1]);if(a){const m=Array.isArray(a)?a[f]||Qt:a;p=fl(m,p)}r.push(p)}return r}function UE(n,a,{clamp:s=!0,ease:r,mixer:o}={}){const c=n.length;if(Qf(c===a.length),c===1)return()=>a[0];if(c===2&&a[0]===a[1])return()=>a[1];const f=n[0]===n[1];n[0]>n[c-1]&&(n=[...n].reverse(),a=[...a].reverse());const p=VE(a,r,o),m=p.length,h=y=>{if(f&&y<n[0])return a[0];let x=0;if(m>1)for(;x<n.length-2&&!(y<n[x+1]);x++);const S=Js(n[x],n[x+1],y);return p[x](S)};return s?y=>h(Mn(n[0],n[c-1],y)):h}function _E(n,a){const s=n[n.length-1];for(let r=1;r<=a;r++){const o=Js(0,a,r);n.push(Ye(s,1,o))}}function HE(n){const a=[0];return _E(a,n.length-1),a}function kE(n,a){return n.map(s=>s*a)}function qE(n,a){return n.map(()=>a||fv).splice(0,n.length-1)}function Xs({duration:n=300,keyframes:a,times:s,ease:r="easeInOut"}){const o=WT(r)?r.map(Fp):Fp(r),c={done:!1,value:a[0]},f=kE(s&&s.length===a.length?s:HE(a),n),p=UE(f,a,{ease:Array.isArray(o)?o:qE(a,o)});return{calculatedDuration:n,next:m=>(c.value=p(m),c.done=m>=n,c)}}const YE=n=>n!==null;function sd(n,{repeat:a,repeatType:s="loop"},r,o=1){const c=n.filter(YE),p=o<0||a&&s!=="loop"&&a%2===1?0:c.length-1;return!p||r===void 0?c[p]:r}const PE={decay:gf,inertia:gf,tween:Xs,keyframes:Xs,spring:Jr};function Ev(n){typeof n.type=="string"&&(n.type=PE[n.type])}class ld{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,s){return this.finished.then(a,s)}}const GE=n=>n/100;class rd extends ld{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,o;const{motionValue:s}=this.options;s&&s.updatedAt!==Et.now()&&this.tick(Et.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(r=this.options).onStop)==null||o.call(r))},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;Ev(a);const{type:s=Xs,repeat:r=0,repeatDelay:o=0,repeatType:c,velocity:f=0}=a;let{keyframes:p}=a;const m=s||Xs;m!==Xs&&typeof p[0]!="number"&&(this.mixKeyframes=fl(GE,Sv(p[0],p[1])),p=[0,100]);const h=m(le(K({},a),{keyframes:p}));c==="mirror"&&(this.mirroredGenerator=m(le(K({},a),{keyframes:[...p].reverse(),velocity:-f}))),h.calculatedDuration===null&&(h.calculatedDuration=id(h));const{calculatedDuration:y}=h;this.calculatedDuration=y,this.resolvedDuration=y+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=h}updateTime(a){const s=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(a,s=!1){const{generator:r,totalDuration:o,mixKeyframes:c,mirroredGenerator:f,resolvedDuration:p,calculatedDuration:m}=this;if(this.startTime===null)return r.next(0);const{delay:h=0,keyframes:y,repeat:x,repeatType:S,repeatDelay:T,type:E,onUpdate:R,finalKeyframe:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-o/this.speed,this.startTime)),s?this.currentTime=a:this.updateTime(a);const M=this.currentTime-h*(this.playbackSpeed>=0?1:-1),V=this.playbackSpeed>=0?M<0:M>o;this.currentTime=Math.max(M,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let U=this.currentTime,X=r;if(x){const F=Math.min(this.currentTime,o)/p;let ce=Math.floor(F),Ae=F%1;!Ae&&F>=1&&(Ae=1),Ae===1&&ce--,ce=Math.min(ce,x+1),!!(ce%2)&&(S==="reverse"?(Ae=1-Ae,T&&(Ae-=T/p)):S==="mirror"&&(X=f)),U=Mn(0,1,Ae)*p}const H=V?{done:!1,value:y[0]}:X.next(U);c&&(H.value=c(H.value));let{done:Q}=H;!V&&m!==null&&(Q=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const W=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Q);return W&&E!==gf&&(H.value=sd(y,this.options,j,this.speed)),R&&R(H.value),W&&this.finish(),H}then(a,s){return this.finished.then(a,s)}get duration(){return fn(this.calculatedDuration)}get time(){return fn(this.currentTime)}set time(a){var s;a=cn(a),this.currentTime=a,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),(s=this.driver)==null||s.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(Et.now());const s=this.playbackSpeed!==a;this.playbackSpeed=a,s&&(this.time=fn(this.currentTime))}play(){var o,c;if(this.isStopped)return;const{driver:a=NE,startTime:s}=this.options;this.driver||(this.driver=a(f=>this.tick(f))),(c=(o=this.options).onPlay)==null||c.call(o);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=s!=null?s:r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Et.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var a,s;this.notifyFinished(),this.teardown(),this.state="finished",(s=(a=this.options).onComplete)==null||s.call(a)}cancel(){var a,s;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(s=(a=this.options).onCancel)==null||s.call(a)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){var s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),a.observe(this)}}function XE(n){var a;for(let s=1;s<n.length;s++)(a=n[s])!=null||(n[s]=n[s-1])}const La=n=>n*180/Math.PI,yf=n=>{const a=La(Math.atan2(n[1],n[0]));return vf(a)},KE={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:yf,rotateZ:yf,skewX:n=>La(Math.atan(n[1])),skewY:n=>La(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},vf=n=>(n=n%360,n<0&&(n+=360),n),tg=yf,ng=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),ag=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),ZE={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ng,scaleY:ag,scale:n=>(ng(n)+ag(n))/2,rotateX:n=>vf(La(Math.atan2(n[6],n[5]))),rotateY:n=>vf(La(Math.atan2(-n[2],n[0]))),rotateZ:tg,rotate:tg,skewX:n=>La(Math.atan(n[4])),skewY:n=>La(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function xf(n){return n.includes("scale")?1:0}function bf(n,a){if(!n||n==="none")return xf(a);const s=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(s)r=ZE,o=s;else{const p=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=KE,o=p}if(!o)return xf(a);const c=r[a],f=o[1].split(",").map(FE);return typeof c=="function"?c(f):f[c]}const QE=(n,a)=>{const{transform:s="none"}=getComputedStyle(n);return bf(s,a)};function FE(n){return parseFloat(n.trim())}const _i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Hi=new Set(_i),ig=n=>n===Ui||n===oe,$E=new Set(["x","y","z"]),JE=_i.filter(n=>!$E.has(n));function WE(n){const a=[];return JE.forEach(s=>{const r=n.getValue(s);r!==void 0&&(a.push([s,r.get()]),r.set(s.startsWith("scale")?1:0))}),a}const Ba={width:({x:n},{paddingLeft:a="0",paddingRight:s="0"})=>n.max-n.min-parseFloat(a)-parseFloat(s),height:({y:n},{paddingTop:a="0",paddingBottom:s="0"})=>n.max-n.min-parseFloat(a)-parseFloat(s),top:(n,{top:a})=>parseFloat(a),left:(n,{left:a})=>parseFloat(a),bottom:({y:n},{top:a})=>parseFloat(a)+(n.max-n.min),right:({x:n},{left:a})=>parseFloat(a)+(n.max-n.min),x:(n,{transform:a})=>bf(a,"x"),y:(n,{transform:a})=>bf(a,"y")};Ba.translateX=Ba.x;Ba.translateY=Ba.y;const Va=new Set;let Sf=!1,wf=!1,Tf=!1;function Av(){if(wf){const n=Array.from(Va).filter(r=>r.needsMeasurement),a=new Set(n.map(r=>r.element)),s=new Map;a.forEach(r=>{const o=WE(r);o.length&&(s.set(r,o),r.render())}),n.forEach(r=>r.measureInitialState()),a.forEach(r=>{r.render();const o=s.get(r);o&&o.forEach(([c,f])=>{var p;(p=r.getValue(c))==null||p.set(f)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}wf=!1,Sf=!1,Va.forEach(n=>n.complete(Tf)),Va.clear()}function jv(){Va.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(wf=!0)})}function IE(){Tf=!0,jv(),Av(),Tf=!1}class od{constructor(a,s,r,o,c,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=s,this.name=r,this.motionValue=o,this.element=c,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(Va.add(this),Sf||(Sf=!0,ke.read(jv),ke.resolveKeyframes(Av))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:s,element:r,motionValue:o}=this;if(a[0]===null){const c=o==null?void 0:o.get(),f=a[a.length-1];if(c!==void 0)a[0]=c;else if(r&&s){const p=r.readValue(s,f);p!=null&&(a[0]=p)}a[0]===void 0&&(a[0]=f),o&&c===void 0&&o.set(a[0])}XE(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),Va.delete(this)}cancel(){this.state==="scheduled"&&(Va.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const e4=n=>n.startsWith("--");function t4(n,a,s){e4(a)?n.style.setProperty(a,s):n.style[a]=s}const n4=Ff(()=>window.ScrollTimeline!==void 0),a4={};function i4(n,a){const s=Ff(n);return()=>{var r;return(r=a4[a])!=null?r:s()}}const Nv=i4(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(n){return!1}return!0},"linearEasing"),Ys=([n,a,s,r])=>`cubic-bezier(${n}, ${a}, ${s}, ${r})`,sg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ys([0,.65,.55,1]),circOut:Ys([.55,0,1,.45]),backIn:Ys([.31,.01,.66,-.59]),backOut:Ys([.33,1.53,.69,.99])};function Rv(n,a){if(n)return typeof n=="function"?Nv()?wv(n,a):"ease-out":dv(n)?Ys(n):Array.isArray(n)?n.map(s=>Rv(s,a)||sg.easeOut):sg[n]}function s4(n,a,s,{delay:r=0,duration:o=300,repeat:c=0,repeatType:f="loop",ease:p="easeOut",times:m}={},h=void 0){const y={[a]:s};m&&(y.offset=m);const x=Rv(p,o);Array.isArray(x)&&(y.easing=x);const S={delay:r,duration:o,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:c+1,direction:f==="reverse"?"alternate":"normal"};return h&&(S.pseudoElement=h),n.animate(y,S)}function Cv(n){return typeof n=="function"&&"applyToOptions"in n}function l4(s){var r=s,{type:n}=r,a=st(r,["type"]);var o,c;return Cv(n)&&Nv()?n.applyToOptions(a):((o=a.duration)!=null||(a.duration=300),(c=a.ease)!=null||(a.ease="easeOut"),a)}class r4 extends ld{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,!a)return;const{element:s,name:r,keyframes:o,pseudoElement:c,allowFlatten:f=!1,finalKeyframe:p,onComplete:m}=a;this.isPseudoElement=!!c,this.allowFlatten=f,this.options=a,Qf(typeof a.type!="string");const h=l4(a);this.animation=s4(s,r,o,h,c),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const y=sd(o,this.options,p,this.speed);this.updateMotionValue?this.updateMotionValue(y):t4(s,r,y),this.animation.cancel()}m==null||m(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var a,s;(s=(a=this.animation).finish)==null||s.call(a)}cancel(){try{this.animation.cancel()}catch(a){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:a}=this;a==="idle"||a==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var a,s;this.isPseudoElement||(s=(a=this.animation).commitStyles)==null||s.call(a)}get duration(){var s,r;const a=((r=(s=this.animation.effect)==null?void 0:s.getComputedTiming)==null?void 0:r.call(s).duration)||0;return fn(Number(a))}get time(){return fn(Number(this.animation.currentTime)||0)}set time(a){this.finishedTime=null,this.animation.currentTime=cn(a)}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(a){this.animation.startTime=a}attachTimeline({timeline:a,observe:s}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,a&&n4()?(this.animation.timeline=a,Qt):s(this)}}const Dv={anticipate:ov,backInOut:rv,circInOut:cv};function o4(n){return n in Dv}function u4(n){typeof n.ease=="string"&&o4(n.ease)&&(n.ease=Dv[n.ease])}const lg=10;class c4 extends r4{constructor(a){u4(a),Ev(a),super(a),a.startTime&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){var y;const h=this.options,{motionValue:s,onUpdate:r,onComplete:o,element:c}=h,f=st(h,["motionValue","onUpdate","onComplete","element"]);if(!s)return;if(a!==void 0){s.set(a);return}const p=new rd(le(K({},f),{autoplay:!1})),m=cn((y=this.finishedTime)!=null?y:this.time);s.setWithVelocity(p.sample(m-lg).value,p.sample(m).value,lg),p.stop()}}const rg=(n,a)=>a==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(ra.test(n)||n==="0")&&!n.startsWith("url("));function f4(n){const a=n[0];if(n.length===1)return!0;for(let s=0;s<n.length;s++)if(n[s]!==a)return!0}function d4(n,a,s,r){const o=n[0];if(o===null)return!1;if(a==="display"||a==="visibility")return!0;const c=n[n.length-1],f=rg(o,a),p=rg(c,a);return!f||!p?!1:f4(n)||(s==="spring"||Cv(s))&&r}function Ef(n){n.duration=0,n.type}const h4=new Set(["opacity","clipPath","filter","transform"]),m4=Ff(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function p4(n){var y;const{motionValue:a,name:s,repeatDelay:r,repeatType:o,damping:c,type:f}=n;if(!(((y=a==null?void 0:a.owner)==null?void 0:y.current)instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:h}=a.owner.getProps();return m4()&&s&&h4.has(s)&&(s!=="transform"||!h)&&!m&&!r&&o!=="mirror"&&c!==0&&f!=="inertia"}const g4=40;class y4 extends ld{constructor(S){var T=S,{autoplay:a=!0,delay:s=0,type:r="keyframes",repeat:o=0,repeatDelay:c=0,repeatType:f="loop",keyframes:p,name:m,motionValue:h,element:y}=T,x=st(T,["autoplay","delay","type","repeat","repeatDelay","repeatType","keyframes","name","motionValue","element"]);var j;super(),this.stop=()=>{var M,V;this._animation&&(this._animation.stop(),(M=this.stopTimeline)==null||M.call(this)),(V=this.keyframeResolver)==null||V.cancel()},this.createdAt=Et.now();const E=K({autoplay:a,delay:s,type:r,repeat:o,repeatDelay:c,repeatType:f,name:m,motionValue:h,element:y},x),R=(y==null?void 0:y.KeyframeResolver)||od;this.keyframeResolver=new R(p,(M,V,U)=>this.onKeyframesResolved(M,V,E,!U),m,h,y),(j=this.keyframeResolver)==null||j.scheduleResolve()}onKeyframesResolved(a,s,r,o){this.keyframeResolver=void 0;const{name:c,type:f,velocity:p,delay:m,isHandoff:h,onUpdate:y}=r;this.resolvedAt=Et.now(),d4(a,c,f,p)||((On.instantAnimations||!m)&&(y==null||y(sd(a,r,s))),a[0]=a[a.length-1],Ef(r),r.repeat=0);const x=o?this.resolvedAt?this.resolvedAt-this.createdAt>g4?this.resolvedAt:this.createdAt:this.createdAt:void 0,S=le(K({startTime:x,finalKeyframe:s},r),{keyframes:a}),T=!h&&p4(S)?new c4(le(K({},S),{element:S.motionValue.owner.current})):new rd(S);T.finished.then(()=>this.notifyFinished()).catch(Qt),this.pendingTimeline&&(this.stopTimeline=T.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=T}get finished(){return this._animation?this.animation.finished:this._finished}then(a,s){return this.finished.finally(a).then(()=>{})}get animation(){var a;return this._animation||((a=this.keyframeResolver)==null||a.resume(),IE()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var a;this._animation&&this.animation.cancel(),(a=this.keyframeResolver)==null||a.cancel()}}const v4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function x4(n){const a=v4.exec(n);if(!a)return[,];const[,s,r,o]=a;return[`--${s!=null?s:r}`,o]}function Mv(n,a,s=1){const[r,o]=x4(n);if(!r)return;const c=window.getComputedStyle(a).getPropertyValue(r);if(c){const f=c.trim();return Iy(f)?parseFloat(f):f}return ed(o)?Mv(o,a,s+1):o}function ud(n,a){var s,r;return(r=(s=n==null?void 0:n[a])!=null?s:n==null?void 0:n.default)!=null?r:n}const Ov=new Set(["width","height","top","left","right","bottom",..._i]),b4={test:n=>n==="auto",parse:n=>n},Lv=n=>a=>a.test(n),zv=[Ui,oe,dn,sa,fE,cE,b4],og=n=>zv.find(Lv(n));function S4(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||tv(n):!0}const w4=new Set(["brightness","contrast","saturate","opacity"]);function T4(n){const[a,s]=n.slice(0,-1).split("(");if(a==="drop-shadow")return n;const[r]=s.match(td)||[];if(!r)return n;const o=s.replace(r,"");let c=w4.has(a)?1:0;return r!==s&&(c*=100),a+"("+c+o+")"}const E4=/\b([a-z-]*)\(.*?\)/gu,Af=le(K({},ra),{getAnimatableNone:n=>{const a=n.match(E4);return a?a.map(T4).join(" "):n}}),ug=le(K({},Ui),{transform:Math.round}),A4={rotate:sa,rotateX:sa,rotateY:sa,rotateZ:sa,scale:Lr,scaleX:Lr,scaleY:Lr,scaleZ:Lr,skew:sa,skewX:sa,skewY:sa,distance:oe,translateX:oe,translateY:oe,translateZ:oe,x:oe,y:oe,z:oe,perspective:oe,transformPerspective:oe,opacity:Ws,originX:$p,originY:$p,originZ:oe},cd=le(K({borderWidth:oe,borderTopWidth:oe,borderRightWidth:oe,borderBottomWidth:oe,borderLeftWidth:oe,borderRadius:oe,radius:oe,borderTopLeftRadius:oe,borderTopRightRadius:oe,borderBottomRightRadius:oe,borderBottomLeftRadius:oe,width:oe,maxWidth:oe,height:oe,maxHeight:oe,top:oe,right:oe,bottom:oe,left:oe,padding:oe,paddingTop:oe,paddingRight:oe,paddingBottom:oe,paddingLeft:oe,margin:oe,marginTop:oe,marginRight:oe,marginBottom:oe,marginLeft:oe,backgroundPositionX:oe,backgroundPositionY:oe},A4),{zIndex:ug,fillOpacity:Ws,strokeOpacity:Ws,numOctaves:ug}),j4=le(K({},cd),{color:We,backgroundColor:We,outlineColor:We,fill:We,stroke:We,borderColor:We,borderTopColor:We,borderRightColor:We,borderBottomColor:We,borderLeftColor:We,filter:Af,WebkitFilter:Af}),Bv=n=>j4[n];function Vv(n,a){let s=Bv(n);return s!==Af&&(s=ra),s.getAnimatableNone?s.getAnimatableNone(a):void 0}const N4=new Set(["auto","none","0"]);function R4(n,a,s){let r=0,o;for(;r<n.length&&!o;){const c=n[r];typeof c=="string"&&!N4.has(c)&&Is(c).values.length&&(o=n[r]),r++}if(o&&s)for(const c of a)n[c]=Vv(s,o)}class C4 extends od{constructor(a,s,r,o,c){super(a,s,r,o,c,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:s,name:r}=this;if(!s||!s.current)return;super.readKeyframes();for(let m=0;m<a.length;m++){let h=a[m];if(typeof h=="string"&&(h=h.trim(),ed(h))){const y=Mv(h,s.current);y!==void 0&&(a[m]=y),m===a.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Ov.has(r)||a.length!==2)return;const[o,c]=a,f=og(o),p=og(c);if(f!==p)if(ig(f)&&ig(p))for(let m=0;m<a.length;m++){const h=a[m];typeof h=="string"&&(a[m]=parseFloat(h))}else Ba[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:s}=this,r=[];for(let o=0;o<a.length;o++)(a[o]===null||S4(a[o]))&&r.push(o);r.length&&R4(a,r,s)}measureInitialState(){const{element:a,unresolvedKeyframes:s,name:r}=this;if(!a||!a.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ba[r](a.measureViewportBox(),window.getComputedStyle(a.current)),s[0]=this.measuredOrigin;const o=s[s.length-1];o!==void 0&&a.getValue(r,o).jump(o,!1)}measureEndState(){var p;const{element:a,name:s,unresolvedKeyframes:r}=this;if(!a||!a.current)return;const o=a.getValue(s);o&&o.jump(this.measuredOrigin,!1);const c=r.length-1,f=r[c];r[c]=Ba[s](a.measureViewportBox(),window.getComputedStyle(a.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),(p=this.removedTransforms)!=null&&p.length&&this.removedTransforms.forEach(([m,h])=>{a.getValue(m).set(h)}),this.resolveNoneKeyframes()}}function D4(n,a,s){var r;if(n instanceof EventTarget)return[n];if(typeof n=="string"){let o=document;const c=(r=s==null?void 0:s[n])!=null?r:o.querySelectorAll(n);return c?Array.from(c):[]}return Array.from(n)}const Uv=(n,a)=>a&&typeof n=="number"?a.transform(n):n;function _v(n){return ev(n)&&"offsetHeight"in n}const cg=30,M4=n=>!isNaN(parseFloat(n));class O4{constructor(a,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var c;const o=Et.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((c=this.events.change)==null||c.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=s.owner}setCurrent(a){this.current=a,this.updatedAt=Et.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=M4(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,s){this.events[a]||(this.events[a]=new $f);const r=this.events[a].add(s);return a==="change"?()=>{r(),ke.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,s){this.passiveEffect=a,this.stopPassiveEffect=s}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,s,r){this.set(s),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-r}jump(a,s=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var a;(a=this.events.change)==null||a.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=Et.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>cg)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,cg);return nv(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(a){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=a(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var a,s;(a=this.dependents)==null||a.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Mi(n,a){return new O4(n,a)}const{schedule:fd}=hv(queueMicrotask,!1),Wt={x:!1,y:!1};function Hv(){return Wt.x||Wt.y}function L4(n){return n==="x"||n==="y"?Wt[n]?null:(Wt[n]=!0,()=>{Wt[n]=!1}):Wt.x||Wt.y?null:(Wt.x=Wt.y=!0,()=>{Wt.x=Wt.y=!1})}function kv(n,a){const s=D4(n),r=new AbortController,o=le(K({passive:!0},a),{signal:r.signal});return[s,o,()=>r.abort()]}function fg(n){return!(n.pointerType==="touch"||Hv())}function z4(n,a,s={}){const[r,o,c]=kv(n,s),f=p=>{if(!fg(p))return;const{target:m}=p,h=a(m,p);if(typeof h!="function"||!m)return;const y=x=>{fg(x)&&(h(x),m.removeEventListener("pointerleave",y))};m.addEventListener("pointerleave",y,o)};return r.forEach(p=>{p.addEventListener("pointerenter",f,o)}),c}const qv=(n,a)=>a?n===a?!0:qv(n,a.parentElement):!1,dd=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,B4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function V4(n){return B4.has(n.tagName)||n.tabIndex!==-1}const Yr=new WeakSet;function dg(n){return a=>{a.key==="Enter"&&n(a)}}function Kc(n,a){n.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const U4=(n,a)=>{const s=n.currentTarget;if(!s)return;const r=dg(()=>{if(Yr.has(s))return;Kc(s,"down");const o=dg(()=>{Kc(s,"up")}),c=()=>Kc(s,"cancel");s.addEventListener("keyup",o,a),s.addEventListener("blur",c,a)});s.addEventListener("keydown",r,a),s.addEventListener("blur",()=>s.removeEventListener("keydown",r),a)};function hg(n){return dd(n)&&!Hv()}function _4(n,a,s={}){const[r,o,c]=kv(n,s),f=p=>{const m=p.currentTarget;if(!hg(p))return;Yr.add(m);const h=a(m,p),y=(T,E)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",S),Yr.has(m)&&Yr.delete(m),hg(T)&&typeof h=="function"&&h(T,{success:E})},x=T=>{y(T,m===window||m===document||s.useGlobalTarget||qv(m,T.target))},S=T=>{y(T,!1)};window.addEventListener("pointerup",x,o),window.addEventListener("pointercancel",S,o)};return r.forEach(p=>{(s.useGlobalTarget?window:p).addEventListener("pointerdown",f,o),_v(p)&&(p.addEventListener("focus",h=>U4(h,o)),!V4(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),c}function Yv(n){return ev(n)&&"ownerSVGElement"in n}function H4(n){return Yv(n)&&n.tagName==="svg"}const pt=n=>!!(n&&n.getVelocity),k4=[...zv,We,ra],q4=n=>k4.find(Lv(n)),hd=w.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});class Y4 extends w.Component{getSnapshotBeforeUpdate(a){const s=this.props.childRef.current;if(s&&a.isPresent&&!this.props.isPresent){const r=s.offsetParent,o=_v(r)&&r.offsetWidth||0,c=this.props.sizeRef.current;c.height=s.offsetHeight||0,c.width=s.offsetWidth||0,c.top=s.offsetTop,c.left=s.offsetLeft,c.right=o-c.width-c.left}return null}componentDidUpdate(){}render(){return this.props.children}}function P4({children:n,isPresent:a,anchorX:s,root:r}){const o=w.useId(),c=w.useRef(null),f=w.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:p}=w.useContext(hd);return w.useInsertionEffect(()=>{const{width:m,height:h,top:y,left:x,right:S}=f.current;if(a||!c.current||!m||!h)return;const T=s==="left"?`left: ${x}`:`right: ${S}`;c.current.dataset.motionPopId=o;const E=document.createElement("style");p&&(E.nonce=p);const R=r!=null?r:document.head;return R.appendChild(E),E.sheet&&E.sheet.insertRule(`
|
|
66
|
-
[data-motion-pop-id="${o}"] {
|
|
67
|
-
position: absolute !important;
|
|
68
|
-
width: ${m}px !important;
|
|
69
|
-
height: ${h}px !important;
|
|
70
|
-
${T}px !important;
|
|
71
|
-
top: ${y}px !important;
|
|
72
|
-
}
|
|
73
|
-
`),()=>{R.contains(E)&&R.removeChild(E)}},[a]),g.jsx(Y4,{isPresent:a,childRef:c,sizeRef:f,children:w.cloneElement(n,{ref:c})})}const G4=({children:n,initial:a,isPresent:s,onExitComplete:r,custom:o,presenceAffectsLayout:c,mode:f,anchorX:p,root:m})=>{const h=Gf(X4),y=w.useId();let x=!0,S=w.useMemo(()=>(x=!1,{id:y,initial:a,isPresent:s,custom:o,onExitComplete:T=>{h.set(T,!0);for(const E of h.values())if(!E)return;r&&r()},register:T=>(h.set(T,!1),()=>h.delete(T))}),[s,h,r]);return c&&x&&(S=K({},S)),w.useMemo(()=>{h.forEach((T,E)=>h.set(E,!1))},[s]),w.useEffect(()=>{!s&&!h.size&&r&&r()},[s]),f==="popLayout"&&(n=g.jsx(P4,{isPresent:s,anchorX:p,root:m,children:n})),g.jsx(oo.Provider,{value:S,children:n})};function X4(){return new Map}function Pv(n=!0){const a=w.useContext(oo);if(a===null)return[!0,null];const{isPresent:s,onExitComplete:r,register:o}=a,c=w.useId();w.useEffect(()=>{if(n)return o(c)},[n]);const f=w.useCallback(()=>n&&r&&r(c),[c,r,n]);return!s&&r?[!1,f]:[!0]}const zr=n=>n.key||"";function mg(n){const a=[];return w.Children.forEach(n,s=>{w.isValidElement(s)&&a.push(s)}),a}const K4=({children:n,custom:a,initial:s=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:c="sync",propagate:f=!1,anchorX:p="left",root:m})=>{const[h,y]=Pv(f),x=w.useMemo(()=>mg(n),[n]),S=f&&!h?[]:x.map(zr),T=w.useRef(!0),E=w.useRef(x),R=Gf(()=>new Map),[j,M]=w.useState(x),[V,U]=w.useState(x);Wy(()=>{T.current=!1,E.current=x;for(let Q=0;Q<V.length;Q++){const W=zr(V[Q]);S.includes(W)?R.delete(W):R.get(W)!==!0&&R.set(W,!1)}},[V,S.length,S.join("-")]);const X=[];if(x!==j){let Q=[...x];for(let W=0;W<V.length;W++){const F=V[W],ce=zr(F);S.includes(ce)||(Q.splice(W,0,F),X.push(F))}return c==="wait"&&X.length&&(Q=X),U(mg(Q)),M(x),null}const{forceRender:H}=w.useContext(Pf);return g.jsx(g.Fragment,{children:V.map(Q=>{const W=zr(Q),F=f&&!h?!1:x===V||S.includes(W),ce=()=>{if(R.has(W))R.set(W,!0);else return;let Ae=!0;R.forEach(be=>{be||(Ae=!1)}),Ae&&(H==null||H(),U(E.current),f&&(y==null||y()),r&&r())};return g.jsx(G4,{isPresent:F,initial:!T.current||s?void 0:!1,custom:a,presenceAffectsLayout:o,mode:c,root:m,onExitComplete:F?void 0:ce,anchorX:p,children:Q},W)})})},Gv=w.createContext({strict:!1}),pg={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Oi={};for(const n in pg)Oi[n]={isEnabled:a=>pg[n].some(s=>!!a[s])};function Z4(n){for(const a in n)Oi[a]=K(K({},Oi[a]),n[a])}const Q4=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Wr(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||Q4.has(n)}let Xv=n=>!Wr(n);function F4(n){typeof n=="function"&&(Xv=a=>a.startsWith("on")?!Wr(a):n(a))}try{F4(require("@emotion/is-prop-valid").default)}catch(n){}function $4(n,a,s){const r={};for(const o in n)o==="values"&&typeof n.values=="object"||(Xv(o)||s===!0&&Wr(o)||!a&&!Wr(o)||n.draggable&&o.startsWith("onDrag"))&&(r[o]=n[o]);return r}const uo=w.createContext({});function co(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function el(n){return typeof n=="string"||Array.isArray(n)}const md=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pd=["initial",...md];function fo(n){return co(n.animate)||pd.some(a=>el(n[a]))}function Kv(n){return!!(fo(n)||n.variants)}function J4(n,a){if(fo(n)){const{initial:s,animate:r}=n;return{initial:s===!1||el(s)?s:void 0,animate:el(r)?r:void 0}}return n.inherit!==!1?a:{}}function W4(n){const{initial:a,animate:s}=J4(n,w.useContext(uo));return w.useMemo(()=>({initial:a,animate:s}),[gg(a),gg(s)])}function gg(n){return Array.isArray(n)?n.join(" "):n}const tl={};function I4(n){for(const a in n)tl[a]=n[a],If(a)&&(tl[a].isCSSVariable=!0)}function Zv(n,{layout:a,layoutId:s}){return Hi.has(n)||n.startsWith("origin")||(a||s!==void 0)&&(!!tl[n]||n==="opacity")}const eA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tA=_i.length;function nA(n,a,s){let r="",o=!0;for(let c=0;c<tA;c++){const f=_i[c],p=n[f];if(p===void 0)continue;let m=!0;if(typeof p=="number"?m=p===(f.startsWith("scale")?1:0):m=parseFloat(p)===0,!m||s){const h=Uv(p,cd[f]);if(!m){o=!1;const y=eA[f]||f;r+=`${y}(${h}) `}s&&(a[f]=h)}}return r=r.trim(),s?r=s(a,o?"":r):o&&(r="none"),r}function gd(n,a,s){const{style:r,vars:o,transformOrigin:c}=n;let f=!1,p=!1;for(const m in a){const h=a[m];if(Hi.has(m)){f=!0;continue}else if(If(m)){o[m]=h;continue}else{const y=Uv(h,cd[m]);m.startsWith("origin")?(p=!0,c[m]=y):r[m]=y}}if(a.transform||(f||s?r.transform=nA(a,n.transform,s):r.transform&&(r.transform="none")),p){const{originX:m="50%",originY:h="50%",originZ:y=0}=c;r.transformOrigin=`${m} ${h} ${y}`}}const yd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qv(n,a,s){for(const r in a)!pt(a[r])&&!Zv(r,s)&&(n[r]=a[r])}function aA({transformTemplate:n},a){return w.useMemo(()=>{const s=yd();return gd(s,a,n),Object.assign({},s.vars,s.style)},[a])}function iA(n,a){const s=n.style||{},r={};return Qv(r,s,n),Object.assign(r,aA(n,a)),r}function sA(n,a){const s={},r=iA(n,a);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(s.tabIndex=0),s.style=r,s}const lA={offset:"stroke-dashoffset",array:"stroke-dasharray"},rA={offset:"strokeDashoffset",array:"strokeDasharray"};function oA(n,a,s=1,r=0,o=!0){n.pathLength=1;const c=o?lA:rA;n[c.offset]=oe.transform(-r);const f=oe.transform(a),p=oe.transform(s);n[c.array]=`${f} ${p}`}function Fv(n,x,m,h,y){var S=x,{attrX:a,attrY:s,attrScale:r,pathLength:o,pathSpacing:c=1,pathOffset:f=0}=S,p=st(S,["attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset"]);var R,j;if(gd(n,p,h),m){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:T,style:E}=n;T.transform&&(E.transform=T.transform,delete T.transform),(E.transform||T.transformOrigin)&&(E.transformOrigin=(R=T.transformOrigin)!=null?R:"50% 50%",delete T.transformOrigin),E.transform&&(E.transformBox=(j=y==null?void 0:y.transformBox)!=null?j:"fill-box",delete T.transformBox),a!==void 0&&(T.x=a),s!==void 0&&(T.y=s),r!==void 0&&(T.scale=r),o!==void 0&&oA(T,o,c,f,!1)}const $v=()=>le(K({},yd()),{attrs:{}}),Jv=n=>typeof n=="string"&&n.toLowerCase()==="svg";function uA(n,a,s,r){const o=w.useMemo(()=>{const c=$v();return Fv(c,a,Jv(r),n.transformTemplate,n.style),le(K({},c.attrs),{style:K({},c.style)})},[a]);if(n.style){const c={};Qv(c,n.style,n),o.style=K(K({},c),o.style)}return o}const cA=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function vd(n){return typeof n!="string"||n.includes("-")?!1:!!(cA.indexOf(n)>-1||/[A-Z]/u.test(n))}function fA(n,a,s,{latestValues:r},o,c=!1){const p=(vd(n)?uA:sA)(a,r,o,n),m=$4(a,typeof n=="string",c),h=n!==w.Fragment?le(K(K({},m),p),{ref:s}):{},{children:y}=a,x=w.useMemo(()=>pt(y)?y.get():y,[y]);return w.createElement(n,le(K({},h),{children:x}))}function yg(n){const a=[{},{}];return n==null||n.values.forEach((s,r)=>{a[0][r]=s.get(),a[1][r]=s.getVelocity()}),a}function xd(n,a,s,r){if(typeof a=="function"){const[o,c]=yg(r);a=a(s!==void 0?s:n.custom,o,c)}if(typeof a=="string"&&(a=n.variants&&n.variants[a]),typeof a=="function"){const[o,c]=yg(r);a=a(s!==void 0?s:n.custom,o,c)}return a}function Pr(n){return pt(n)?n.get():n}function dA({scrapeMotionValuesFromProps:n,createRenderState:a},s,r,o){return{latestValues:hA(s,r,o,n),renderState:a()}}function hA(n,a,s,r){const o={},c=r(n,{});for(const T in c)o[T]=Pr(c[T]);let{initial:f,animate:p}=n;const m=fo(n),h=Kv(n);a&&h&&!m&&n.inherit!==!1&&(f===void 0&&(f=a.initial),p===void 0&&(p=a.animate));let y=s?s.initial===!1:!1;y=y||f===!1;const x=y?p:f;if(x&&typeof x!="boolean"&&!co(x)){const T=Array.isArray(x)?x:[x];for(let E=0;E<T.length;E++){const R=xd(n,T[E]);if(R){const S=R,{transitionEnd:j,transition:M}=S,V=st(S,["transitionEnd","transition"]);for(const U in V){let X=V[U];if(Array.isArray(X)){const H=y?X.length-1:0;X=X[H]}X!==null&&(o[U]=X)}for(const U in j)o[U]=j[U]}}}return o}const Wv=n=>(a,s)=>{const r=w.useContext(uo),o=w.useContext(oo),c=()=>dA(n,a,r,o);return s?c():Gf(c)};function bd(n,a,s){var c;const{style:r}=n,o={};for(const f in r)(pt(r[f])||a.style&&pt(a.style[f])||Zv(f,n)||((c=s==null?void 0:s.getValue(f))==null?void 0:c.liveStyle)!==void 0)&&(o[f]=r[f]);return o}const mA=Wv({scrapeMotionValuesFromProps:bd,createRenderState:yd});function Iv(n,a,s){const r=bd(n,a,s);for(const o in n)if(pt(n[o])||pt(a[o])){const c=_i.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[c]=n[o]}return r}const pA=Wv({scrapeMotionValuesFromProps:Iv,createRenderState:$v}),gA=Symbol.for("motionComponentSymbol");function ji(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function yA(n,a,s){return w.useCallback(r=>{r&&n.onMount&&n.onMount(r),a&&(r?a.mount(r):a.unmount()),s&&(typeof s=="function"?s(r):ji(s)&&(s.current=r))},[a])}const Sd=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),vA="framerAppearId",e1="data-"+Sd(vA),t1=w.createContext({});function xA(n,a,s,r,o){var R,j;const{visualElement:c}=w.useContext(uo),f=w.useContext(Gv),p=w.useContext(oo),m=w.useContext(hd).reducedMotion,h=w.useRef(null);r=r||f.renderer,!h.current&&r&&(h.current=r(n,{visualState:a,parent:c,props:s,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:m}));const y=h.current,x=w.useContext(t1);y&&!y.projection&&o&&(y.type==="html"||y.type==="svg")&&bA(h.current,s,o,x);const S=w.useRef(!1);w.useInsertionEffect(()=>{y&&S.current&&y.update(s,p)});const T=s[e1],E=w.useRef(!!T&&!((R=window.MotionHandoffIsComplete)!=null&&R.call(window,T))&&((j=window.MotionHasOptimisedAnimation)==null?void 0:j.call(window,T)));return Wy(()=>{y&&(S.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),E.current&&y.animationState&&y.animationState.animateChanges())}),w.useEffect(()=>{y&&(!E.current&&y.animationState&&y.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var M;(M=window.MotionHandoffMarkAsComplete)==null||M.call(window,T)}),E.current=!1),y.enteringChildren=void 0)}),y}function bA(n,a,s,r){const{layoutId:o,layout:c,drag:f,dragConstraints:p,layoutScroll:m,layoutRoot:h,layoutCrossfade:y}=a;n.projection=new s(n.latestValues,a["data-framer-portal-id"]?void 0:n1(n.parent)),n.projection.setOptions({layoutId:o,layout:c,alwaysMeasureLayout:!!f||p&&ji(p),visualElement:n,animationType:typeof c=="string"?c:"both",initialPromotionConfig:r,crossfade:y,layoutScroll:m,layoutRoot:h})}function n1(n){if(n)return n.options.allowProjection!==!1?n.projection:n1(n.parent)}function Zc(n,{forwardMotionProps:a=!1}={},s,r){var p,m;s&&Z4(s);const o=vd(n)?pA:mA;function c(h,y){let x;const S=le(K(K({},w.useContext(hd)),h),{layoutId:SA(h)}),{isStatic:T}=S,E=W4(h),R=o(h,T);if(!T&&Xf){wA();const j=TA(S);x=j.MeasureLayout,E.visualElement=xA(n,R,S,r,j.ProjectionNode)}return g.jsxs(uo.Provider,{value:E,children:[x&&E.visualElement?g.jsx(x,K({visualElement:E.visualElement},S)):null,fA(n,h,yA(R,E.visualElement,y),R,T,a)]})}c.displayName=`motion.${typeof n=="string"?n:`create(${(m=(p=n.displayName)!=null?p:n.name)!=null?m:""})`}`;const f=w.forwardRef(c);return f[gA]=n,f}function SA({layoutId:n}){const a=w.useContext(Pf).id;return a&&n!==void 0?a+"-"+n:n}function wA(n,a){w.useContext(Gv).strict}function TA(n){const{drag:a,layout:s}=Oi;if(!a&&!s)return{};const r=K(K({},a),s);return{MeasureLayout:a!=null&&a.isEnabled(n)||s!=null&&s.isEnabled(n)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function EA(n,a){if(typeof Proxy=="undefined")return Zc;const s=new Map,r=(c,f)=>Zc(c,f,n,a),o=(c,f)=>r(c,f);return new Proxy(o,{get:(c,f)=>f==="create"?r:(s.has(f)||s.set(f,Zc(f,void 0,n,a)),s.get(f))})}function a1({top:n,left:a,right:s,bottom:r}){return{x:{min:a,max:s},y:{min:n,max:r}}}function AA({x:n,y:a}){return{top:a.min,right:n.max,bottom:a.max,left:n.min}}function jA(n,a){if(!a)return n;const s=a({x:n.left,y:n.top}),r=a({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:r.y,right:r.x}}function Qc(n){return n===void 0||n===1}function jf({scale:n,scaleX:a,scaleY:s}){return!Qc(n)||!Qc(a)||!Qc(s)}function Da(n){return jf(n)||i1(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function i1(n){return vg(n.x)||vg(n.y)}function vg(n){return n&&n!=="0%"}function Ir(n,a,s){const r=n-s,o=a*r;return s+o}function xg(n,a,s,r,o){return o!==void 0&&(n=Ir(n,o,r)),Ir(n,s,r)+a}function Nf(n,a=0,s=1,r,o){n.min=xg(n.min,a,s,r,o),n.max=xg(n.max,a,s,r,o)}function s1(n,{x:a,y:s}){Nf(n.x,a.translate,a.scale,a.originPoint),Nf(n.y,s.translate,s.scale,s.originPoint)}const bg=.999999999999,Sg=1.0000000000001;function NA(n,a,s,r=!1){const o=s.length;if(!o)return;a.x=a.y=1;let c,f;for(let p=0;p<o;p++){c=s[p],f=c.projectionDelta;const{visualElement:m}=c.options;m&&m.props.style&&m.props.style.display==="contents"||(r&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Ri(n,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),f&&(a.x*=f.x.scale,a.y*=f.y.scale,s1(n,f)),r&&Da(c.latestValues)&&Ri(n,c.latestValues))}a.x<Sg&&a.x>bg&&(a.x=1),a.y<Sg&&a.y>bg&&(a.y=1)}function Ni(n,a){n.min=n.min+a,n.max=n.max+a}function wg(n,a,s,r,o=.5){const c=Ye(n.min,n.max,o);Nf(n,a,s,c,r)}function Ri(n,a){wg(n.x,a.x,a.scaleX,a.scale,a.originX),wg(n.y,a.y,a.scaleY,a.scale,a.originY)}function l1(n,a){return a1(jA(n.getBoundingClientRect(),a))}function RA(n,a,s){const r=l1(n,s),{scroll:o}=a;return o&&(Ni(r.x,o.offset.x),Ni(r.y,o.offset.y)),r}const Tg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ci=()=>({x:Tg(),y:Tg()}),Eg=()=>({min:0,max:0}),Fe=()=>({x:Eg(),y:Eg()}),Rf={current:null},r1={current:!1};function CA(){if(r1.current=!0,!!Xf)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),a=()=>Rf.current=n.matches;n.addEventListener("change",a),a()}else Rf.current=!1}const DA=new WeakMap;function MA(n,a,s){for(const r in a){const o=a[r],c=s[r];if(pt(o))n.addValue(r,o);else if(pt(c))n.addValue(r,Mi(o,{owner:n}));else if(c!==o)if(n.hasValue(r)){const f=n.getValue(r);f.liveStyle===!0?f.jump(o):f.hasAnimated||f.set(o)}else{const f=n.getStaticValue(r);n.addValue(r,Mi(f!==void 0?f:o,{owner:n}))}}for(const r in s)a[r]===void 0&&n.removeValue(r);return a}const Ag=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class OA{scrapeMotionValuesFromProps(a,s,r){return{}}constructor({parent:a,props:s,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:c,visualState:f},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=od,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const T=Et.now();this.renderScheduledAt<T&&(this.renderScheduledAt=T,ke.render(this.render,!1,!0))};const{latestValues:m,renderState:h}=f;this.latestValues=m,this.baseTarget=K({},m),this.initialValues=s.initial?K({},m):{},this.renderState=h,this.parent=a,this.props=s,this.presenceContext=r,this.depth=a?a.depth+1:0,this.reducedMotionConfig=o,this.options=p,this.blockInitialAnimation=!!c,this.isControllingVariants=fo(s),this.isVariantNode=Kv(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const S=this.scrapeMotionValuesFromProps(s,{},this),{willChange:y}=S,x=st(S,["willChange"]);for(const T in x){const E=x[T];m[T]!==void 0&&pt(E)&&E.set(m[T])}}mount(a){var s;this.current=a,DA.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),r1.current||CA(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Rf.current,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var a;this.projection&&this.projection.unmount(),la(this.notifyUpdate),la(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(a=this.parent)==null||a.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const r=this.features[s];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(a){var s;this.children.add(a),(s=this.enteringChildren)!=null||(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,s){this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)();const r=Hi.has(a);r&&this.onBindTransform&&this.onBindTransform();const o=s.on("change",f=>{this.latestValues[a]=f,this.props.onUpdate&&ke.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,a,s)),this.valueSubscriptions.set(a,()=>{o(),c&&c(),s.owner&&s.stop()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in Oi){const s=Oi[a];if(!s)continue;const{isEnabled:r,Feature:o}=s;if(!this.features[a]&&o&&r(this.props)&&(this.features[a]=new o(this)),this.features[a]){const c=this.features[a];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Fe()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,s){this.latestValues[a]=s}update(a,s){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let r=0;r<Ag.length;r++){const o=Ag[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const c="on"+o,f=a[c];f&&(this.propEventSubscriptions[o]=this.on(o,f))}this.prevMotionValues=MA(this,this.scrapeMotionValuesFromProps(a,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(a){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(a),()=>s.variantChildren.delete(a)}addValue(a,s){const r=this.values.get(a);s!==r&&(r&&this.removeValue(a),this.bindToMotionValue(a,s),this.values.set(a,s),this.latestValues[a]=s.get())}removeValue(a){this.values.delete(a);const s=this.valueSubscriptions.get(a);s&&(s(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,s){if(this.props.values&&this.props.values[a])return this.props.values[a];let r=this.values.get(a);return r===void 0&&s!==void 0&&(r=Mi(s===null?void 0:s,{owner:this}),this.addValue(a,r)),r}readValue(a,s){var o;let r=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:(o=this.getBaseTargetFromProps(this.props,a))!=null?o:this.readValueFromInstance(this.current,a,this.options);return r!=null&&(typeof r=="string"&&(Iy(r)||tv(r))?r=parseFloat(r):!q4(r)&&ra.test(s)&&(r=Vv(a,s)),this.setBaseTarget(a,pt(r)?r.get():r)),pt(r)?r.get():r}setBaseTarget(a,s){this.baseTarget[a]=s}getBaseTarget(a){var c;const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const f=xd(this.props,s,(c=this.presenceContext)==null?void 0:c.custom);f&&(r=f[a])}if(s&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,a);return o!==void 0&&!pt(o)?o:this.initialValues[a]!==void 0&&r===void 0?void 0:this.baseTarget[a]}on(a,s){return this.events[a]||(this.events[a]=new $f),this.events[a].add(s)}notify(a,...s){this.events[a]&&this.events[a].notify(...s)}scheduleRenderMicrotask(){fd.render(this.render)}}class o1 extends OA{constructor(){super(...arguments),this.KeyframeResolver=C4}sortInstanceNodePosition(a,s){return a.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(a,s){return a.style?a.style[s]:void 0}removeValueFromRenderState(a,{vars:s,style:r}){delete s[a],delete r[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;pt(a)&&(this.childSubscription=a.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function u1(n,{style:a,vars:s},r,o){const c=n.style;let f;for(f in a)c[f]=a[f];o==null||o.applyProjectionStyles(c,r);for(f in s)c.setProperty(f,s[f])}function LA(n){return window.getComputedStyle(n)}class zA extends o1{constructor(){super(...arguments),this.type="html",this.renderInstance=u1}readValueFromInstance(a,s){var r;if(Hi.has(s))return(r=this.projection)!=null&&r.isProjecting?xf(s):QE(a,s);{const o=LA(a),c=(If(s)?o.getPropertyValue(s):o[s])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(a,{transformPagePoint:s}){return l1(a,s)}build(a,s,r){gd(a,s,r.transformTemplate)}scrapeMotionValuesFromProps(a,s,r){return bd(a,s,r)}}const c1=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function BA(n,a,s,r){u1(n,a,void 0,r);for(const o in a.attrs)n.setAttribute(c1.has(o)?o:Sd(o),a.attrs[o])}class VA extends o1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Fe}getBaseTargetFromProps(a,s){return a[s]}readValueFromInstance(a,s){if(Hi.has(s)){const r=Bv(s);return r&&r.default||0}return s=c1.has(s)?s:Sd(s),a.getAttribute(s)}scrapeMotionValuesFromProps(a,s,r){return Iv(a,s,r)}build(a,s,r){Fv(a,s,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(a,s,r,o){BA(a,s,r,o)}mount(a){this.isSVGTag=Jv(a.tagName),super.mount(a)}}const UA=(n,a)=>vd(n)?new VA(a):new zA(a,{allowProjection:n!==w.Fragment});function Di(n,a,s){const r=n.getProps();return xd(r,a,s!==void 0?s:r.custom,n)}const Cf=n=>Array.isArray(n);function _A(n,a,s){n.hasValue(a)?n.getValue(a).set(s):n.addValue(a,Mi(s))}function HA(n){return Cf(n)?n[n.length-1]||0:n}function kA(n,a){let f=Di(n,a)||{},{transitionEnd:r={},transition:o={}}=f,c=st(f,["transitionEnd","transition"]);c=K(K({},c),r);for(const p in c){const m=HA(c[p]);_A(n,p,m)}}function qA(n){return!!(pt(n)&&n.add)}function Df(n,a){const s=n.getValue("willChange");if(qA(s))return s.add(a);if(!s&&On.WillChange){const r=new On.WillChange("auto");n.addValue("willChange",r),r.add(a)}}function f1(n){return n.props[e1]}const YA=n=>n!==null;function PA(n,{repeat:a,repeatType:s="loop"},r){const o=n.filter(YA),c=a&&s!=="loop"&&a%2===1?0:o.length-1;return o[c]}const GA={type:"spring",stiffness:500,damping:25,restSpeed:10},XA=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),KA={type:"keyframes",duration:.8},ZA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},QA=(n,{keyframes:a})=>a.length>2?KA:Hi.has(n)?n.startsWith("scale")?XA(a[1]):GA:ZA;function FA(x){var S=x,{when:n,delay:a,delayChildren:s,staggerChildren:r,staggerDirection:o,repeat:c,repeatType:f,repeatDelay:p,from:m,elapsed:h}=S,y=st(S,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(y).length}const wd=(n,a,s,r={},o,c)=>f=>{const p=ud(r,n)||{},m=p.delay||r.delay||0;let{elapsed:h=0}=r;h=h-cn(m);const y=le(K({keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:a.getVelocity()},p),{delay:-h,onUpdate:S=>{a.set(S),p.onUpdate&&p.onUpdate(S)},onComplete:()=>{f(),p.onComplete&&p.onComplete()},name:n,motionValue:a,element:c?void 0:o});FA(p)||Object.assign(y,QA(n,y)),y.duration&&(y.duration=cn(y.duration)),y.repeatDelay&&(y.repeatDelay=cn(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let x=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Ef(y),y.delay===0&&(x=!0)),(On.instantAnimations||On.skipAnimations)&&(x=!0,Ef(y),y.delay=0),y.allowFlatten=!p.type&&!p.ease,x&&!c&&a.get()!==void 0){const S=PA(y.keyframes,p);if(S!==void 0){ke.update(()=>{y.onUpdate(S),y.onComplete()});return}}return p.isSync?new rd(y):new y4(y)};function $A({protectedKeys:n,needsAnimating:a},s){const r=n.hasOwnProperty(s)&&a[s]!==!0;return a[s]=!1,r}function d1(n,a,{delay:s=0,transitionOverride:r,type:o}={}){var x;let y=a,{transition:c=n.getDefaultTransition(),transitionEnd:f}=y,p=st(y,["transition","transitionEnd"]);r&&(c=r);const m=[],h=o&&n.animationState&&n.animationState.getState()[o];for(const S in p){const T=n.getValue(S,(x=n.latestValues[S])!=null?x:null),E=p[S];if(E===void 0||h&&$A(h,S))continue;const R=K({delay:s},ud(c||{},S)),j=T.get();if(j!==void 0&&!T.isAnimating&&!Array.isArray(E)&&E===j&&!R.velocity)continue;let M=!1;if(window.MotionHandoffAnimation){const U=f1(n);if(U){const X=window.MotionHandoffAnimation(U,S,ke);X!==null&&(R.startTime=X,M=!0)}}Df(n,S),T.start(wd(S,T,E,n.shouldReduceMotion&&Ov.has(S)?{type:!1}:R,n,M));const V=T.animation;V&&m.push(V)}return f&&Promise.all(m).then(()=>{ke.update(()=>{f&&kA(n,f)})}),m}function h1(n,a,s,r=0,o=1){const c=Array.from(n).sort((h,y)=>h.sortNodePosition(y)).indexOf(a),f=n.size,p=(f-1)*r;return typeof s=="function"?s(c,f):o===1?c*r:p-c*r}function Mf(n,a,s={}){var m;const r=Di(n,a,s.type==="exit"?(m=n.presenceContext)==null?void 0:m.custom:void 0);let{transition:o=n.getDefaultTransition()||{}}=r||{};s.transitionOverride&&(o=s.transitionOverride);const c=r?()=>Promise.all(d1(n,r,s)):()=>Promise.resolve(),f=n.variantChildren&&n.variantChildren.size?(h=0)=>{const{delayChildren:y=0,staggerChildren:x,staggerDirection:S}=o;return JA(n,a,h,y,x,S,s)}:()=>Promise.resolve(),{when:p}=o;if(p){const[h,y]=p==="beforeChildren"?[c,f]:[f,c];return h().then(()=>y())}else return Promise.all([c(),f(s.delay)])}function JA(n,a,s=0,r=0,o=0,c=1,f){const p=[];for(const m of n.variantChildren)m.notify("AnimationStart",a),p.push(Mf(m,a,le(K({},f),{delay:s+(typeof r=="function"?0:r)+h1(n.variantChildren,m,r,o,c)})).then(()=>m.notify("AnimationComplete",a)));return Promise.all(p)}function WA(n,a,s={}){n.notify("AnimationStart",a);let r;if(Array.isArray(a)){const o=a.map(c=>Mf(n,c,s));r=Promise.all(o)}else if(typeof a=="string")r=Mf(n,a,s);else{const o=typeof a=="function"?Di(n,a,s.custom):a;r=Promise.all(d1(n,o,s))}return r.then(()=>{n.notify("AnimationComplete",a)})}function m1(n,a){if(!Array.isArray(a))return!1;const s=a.length;if(s!==n.length)return!1;for(let r=0;r<s;r++)if(a[r]!==n[r])return!1;return!0}const IA=pd.length;function p1(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?p1(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const a={};for(let s=0;s<IA;s++){const r=pd[s],o=n.props[r];(el(o)||o===!1)&&(a[r]=o)}return a}const ej=[...md].reverse(),tj=md.length;function nj(n){return a=>Promise.all(a.map(({animation:s,options:r})=>WA(n,s,r)))}function aj(n){let a=nj(n),s=jg(),r=!0;const o=m=>(h,y)=>{var S;const x=Di(n,y,m==="exit"?(S=n.presenceContext)==null?void 0:S.custom:void 0);if(x){const T=x,{transition:E,transitionEnd:R}=T,j=st(T,["transition","transitionEnd"]);h=K(K(K({},h),j),R)}return h};function c(m){a=m(n)}function f(m){const{props:h}=n,y=p1(n.parent)||{},x=[],S=new Set;let T={},E=1/0;for(let j=0;j<tj;j++){const M=ej[j],V=s[M],U=h[M]!==void 0?h[M]:y[M],X=el(U),H=M===m?V.isActive:null;H===!1&&(E=j);let Q=U===y[M]&&U!==h[M]&&X;if(Q&&r&&n.manuallyAnimateOnMount&&(Q=!1),V.protectedKeys=K({},T),!V.isActive&&H===null||!U&&!V.prevProp||co(U)||typeof U=="boolean")continue;const W=ij(V.prevProp,U);let F=W||M===m&&V.isActive&&!Q&&X||j>E&&X,ce=!1;const Ae=Array.isArray(U)?U:[U];let be=Ae.reduce(o(M),{});H===!1&&(be={});const{prevResolvedValues:Ee={}}=V,de=K(K({},Ee),be),Ve=Z=>{F=!0,S.has(Z)&&(ce=!0,S.delete(Z)),V.needsAnimating[Z]=!0;const I=n.getValue(Z);I&&(I.liveStyle=!1)};for(const Z in de){const I=be[Z],me=Ee[Z];if(T.hasOwnProperty(Z))continue;let N=!1;Cf(I)&&Cf(me)?N=!m1(I,me):N=I!==me,N?I!=null?Ve(Z):S.add(Z):I!==void 0&&S.has(Z)?Ve(Z):V.protectedKeys[Z]=!0}V.prevProp=U,V.prevResolvedValues=be,V.isActive&&(T=K(K({},T),be)),r&&n.blockInitialAnimation&&(F=!1);const Re=Q&&W;F&&(!Re||ce)&&x.push(...Ae.map(Z=>{const I={type:M};if(typeof Z=="string"&&r&&!Re&&n.manuallyAnimateOnMount&&n.parent){const{parent:me}=n,N=Di(me,Z);if(me.enteringChildren&&N){const{delayChildren:G}=N.transition||{};I.delay=h1(me.enteringChildren,n,G)}}return{animation:Z,options:I}}))}if(S.size){const j={};if(typeof h.initial!="boolean"){const M=Di(n,Array.isArray(h.initial)?h.initial[0]:h.initial);M&&M.transition&&(j.transition=M.transition)}S.forEach(M=>{const V=n.getBaseTarget(M),U=n.getValue(M);U&&(U.liveStyle=!0),j[M]=V!=null?V:null}),x.push({animation:j})}let R=!!x.length;return r&&(h.initial===!1||h.initial===h.animate)&&!n.manuallyAnimateOnMount&&(R=!1),r=!1,R?a(x):Promise.resolve()}function p(m,h){var x;if(s[m].isActive===h)return Promise.resolve();(x=n.variantChildren)==null||x.forEach(S=>{var T;return(T=S.animationState)==null?void 0:T.setActive(m,h)}),s[m].isActive=h;const y=f(m);for(const S in s)s[S].protectedKeys={};return y}return{animateChanges:f,setActive:p,setAnimateFunction:c,getState:()=>s,reset:()=>{s=jg(),r=!0}}}function ij(n,a){return typeof a=="string"?a!==n:Array.isArray(a)?!m1(a,n):!1}function Ca(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jg(){return{animate:Ca(!0),whileInView:Ca(),whileHover:Ca(),whileTap:Ca(),whileDrag:Ca(),whileFocus:Ca(),exit:Ca()}}class ua{constructor(a){this.isMounted=!1,this.node=a}update(){}}class sj extends ua{constructor(a){super(a),a.animationState||(a.animationState=aj(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();co(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:s}=this.node.prevProps||{};a!==s&&this.updateAnimationControlsSubscription()}unmount(){var a;this.node.animationState.reset(),(a=this.unmountControls)==null||a.call(this)}}let lj=0;class rj extends ua{constructor(){super(...arguments),this.id=lj++}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:s}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===r)return;const o=this.node.animationState.setActive("exit",!a);s&&!a&&o.then(()=>{s(this.id)})}mount(){const{register:a,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),a&&(this.unmount=a(this.id))}unmount(){}}const oj={animation:{Feature:sj},exit:{Feature:rj}};function nl(n,a,s,r={passive:!0}){return n.addEventListener(a,s,r),()=>n.removeEventListener(a,s)}function ml(n){return{point:{x:n.pageX,y:n.pageY}}}const uj=n=>a=>dd(a)&&n(a,ml(a));function Ks(n,a,s,r){return nl(n,a,uj(s),r)}const g1=1e-4,cj=1-g1,fj=1+g1,y1=.01,dj=0-y1,hj=0+y1;function yt(n){return n.max-n.min}function mj(n,a,s){return Math.abs(n-a)<=s}function Ng(n,a,s,r=.5){n.origin=r,n.originPoint=Ye(a.min,a.max,n.origin),n.scale=yt(s)/yt(a),n.translate=Ye(s.min,s.max,n.origin)-n.originPoint,(n.scale>=cj&&n.scale<=fj||isNaN(n.scale))&&(n.scale=1),(n.translate>=dj&&n.translate<=hj||isNaN(n.translate))&&(n.translate=0)}function Zs(n,a,s,r){Ng(n.x,a.x,s.x,r?r.originX:void 0),Ng(n.y,a.y,s.y,r?r.originY:void 0)}function Rg(n,a,s){n.min=s.min+a.min,n.max=n.min+yt(a)}function pj(n,a,s){Rg(n.x,a.x,s.x),Rg(n.y,a.y,s.y)}function Cg(n,a,s){n.min=a.min-s.min,n.max=n.min+yt(a)}function Qs(n,a,s){Cg(n.x,a.x,s.x),Cg(n.y,a.y,s.y)}function Zt(n){return[n("x"),n("y")]}const v1=({current:n})=>n?n.ownerDocument.defaultView:null,Dg=(n,a)=>Math.abs(n-a);function gj(n,a){const s=Dg(n.x,a.x),r=Dg(n.y,a.y);return Math.sqrt(Nc(s,2)+Nc(r,2))}class x1{constructor(a,s,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:c=!1,distanceThreshold:f=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=$c(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=gj(S.offset,{x:0,y:0})>=this.distanceThreshold;if(!T&&!E)return;const{point:R}=S,{timestamp:j}=ct;this.history.push(le(K({},R),{timestamp:j}));const{onStart:M,onMove:V}=this.handlers;T||(M&&M(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),V&&V(this.lastMoveEvent,S)},this.handlePointerMove=(S,T)=>{this.lastMoveEvent=S,this.lastMoveEventInfo=Fc(T,this.transformPagePoint),ke.update(this.updatePoint,!0)},this.handlePointerUp=(S,T)=>{this.end();const{onEnd:E,onSessionEnd:R,resumeAnimation:j}=this.handlers;if(this.dragSnapToOrigin&&j&&j(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const M=$c(S.type==="pointercancel"?this.lastMoveEventInfo:Fc(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(S,M),R&&R(S,M)},!dd(a))return;this.dragSnapToOrigin=c,this.handlers=s,this.transformPagePoint=r,this.distanceThreshold=f,this.contextWindow=o||window;const p=ml(a),m=Fc(p,this.transformPagePoint),{point:h}=m,{timestamp:y}=ct;this.history=[le(K({},h),{timestamp:y})];const{onSessionStart:x}=s;x&&x(a,$c(m,this.history)),this.removeListeners=fl(Ks(this.contextWindow,"pointermove",this.handlePointerMove),Ks(this.contextWindow,"pointerup",this.handlePointerUp),Ks(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),la(this.updatePoint)}}function Fc(n,a){return a?{point:a(n.point)}:n}function Mg(n,a){return{x:n.x-a.x,y:n.y-a.y}}function $c({point:n},a){return{point:n,delta:Mg(n,b1(a)),offset:Mg(n,yj(a)),velocity:vj(a,.1)}}function yj(n){return n[0]}function b1(n){return n[n.length-1]}function vj(n,a){if(n.length<2)return{x:0,y:0};let s=n.length-1,r=null;const o=b1(n);for(;s>=0&&(r=n[s],!(o.timestamp-r.timestamp>cn(a)));)s--;if(!r)return{x:0,y:0};const c=fn(o.timestamp-r.timestamp);if(c===0)return{x:0,y:0};const f={x:(o.x-r.x)/c,y:(o.y-r.y)/c};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function xj(n,{min:a,max:s},r){return a!==void 0&&n<a?n=r?Ye(a,n,r.min):Math.max(n,a):s!==void 0&&n>s&&(n=r?Ye(s,n,r.max):Math.min(n,s)),n}function Og(n,a,s){return{min:a!==void 0?n.min+a:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function bj(n,{top:a,left:s,bottom:r,right:o}){return{x:Og(n.x,s,o),y:Og(n.y,a,r)}}function Lg(n,a){let s=a.min-n.min,r=a.max-n.max;return a.max-a.min<n.max-n.min&&([s,r]=[r,s]),{min:s,max:r}}function Sj(n,a){return{x:Lg(n.x,a.x),y:Lg(n.y,a.y)}}function wj(n,a){let s=.5;const r=yt(n),o=yt(a);return o>r?s=Js(a.min,a.max-r,n.min):r>o&&(s=Js(n.min,n.max-o,a.min)),Mn(0,1,s)}function Tj(n,a){const s={};return a.min!==void 0&&(s.min=a.min-n.min),a.max!==void 0&&(s.max=a.max-n.min),s}const Of=.35;function Ej(n=Of){return n===!1?n=0:n===!0&&(n=Of),{x:zg(n,"left","right"),y:zg(n,"top","bottom")}}function zg(n,a,s){return{min:Bg(n,a),max:Bg(n,s)}}function Bg(n,a){return typeof n=="number"?n:n[a]||0}const Aj=new WeakMap;class jj{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Fe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:s=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const c=x=>{const{dragSnapToOrigin:S}=this.getProps();S?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(ml(x).point)},f=(x,S)=>{const{drag:T,dragPropagation:E,onDragStart:R}=this.getProps();if(T&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=L4(T),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Zt(M=>{let V=this.getAxisMotionValue(M).get()||0;if(dn.test(V)){const{projection:U}=this.visualElement;if(U&&U.layout){const X=U.layout.layoutBox[M];X&&(V=yt(X)*(parseFloat(V)/100))}}this.originPoint[M]=V}),R&&ke.postRender(()=>R(x,S)),Df(this.visualElement,"transform");const{animationState:j}=this.visualElement;j&&j.setActive("whileDrag",!0)},p=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S;const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:R,onDrag:j}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:M}=S;if(E&&this.currentDirection===null){this.currentDirection=Nj(M),this.currentDirection!==null&&R&&R(this.currentDirection);return}this.updateAxis("x",S.point,M),this.updateAxis("y",S.point,M),this.visualElement.render(),j&&j(x,S)},m=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S,this.stop(x,S),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>Zt(x=>{var S;return this.getAnimationState(x)==="paused"&&((S=this.getAxisMotionValue(x).animation)==null?void 0:S.play())}),{dragSnapToOrigin:y}=this.getProps();this.panSession=new x1(a,{onSessionStart:c,onStart:f,onMove:p,onSessionEnd:m,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:r,contextWindow:v1(this.visualElement)})}stop(a,s){const r=a||this.latestPointerEvent,o=s||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!o||!r)return;const{velocity:f}=o;this.startAnimation(f);const{onDragEnd:p}=this.getProps();p&&ke.postRender(()=>p(r,o))}cancel(){this.isDragging=!1;const{projection:a,animationState:s}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(a,s,r){const{drag:o}=this.getProps();if(!r||!Br(a,o,this.currentDirection))return;const c=this.getAxisMotionValue(a);let f=this.originPoint[a]+r[a];this.constraints&&this.constraints[a]&&(f=xj(f,this.constraints[a],this.elastic[a])),c.set(f)}resolveConstraints(){var c;const{dragConstraints:a,dragElastic:s}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(c=this.visualElement.projection)==null?void 0:c.layout,o=this.constraints;a&&ji(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&r?this.constraints=bj(r.layoutBox,a):this.constraints=!1,this.elastic=Ej(s),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Zt(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=Tj(r.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:s}=this.getProps();if(!a||!ji(a))return!1;const r=a.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const c=RA(r,o.root,this.visualElement.getTransformPagePoint());let f=Sj(o.layout.layoutBox,c);if(s){const p=s(AA(f));this.hasMutatedConstraints=!!p,p&&(f=a1(p))}return f}startAnimation(a){const{drag:s,dragMomentum:r,dragElastic:o,dragTransition:c,dragSnapToOrigin:f,onDragTransitionEnd:p}=this.getProps(),m=this.constraints||{},h=Zt(y=>{if(!Br(y,s,this.currentDirection))return;let x=m&&m[y]||{};f&&(x={min:0,max:0});const S=o?200:1e6,T=o?40:1e7,E=K(K({type:"inertia",velocity:r?a[y]:0,bounceStiffness:S,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10},c),x);return this.startAxisValueAnimation(y,E)});return Promise.all(h).then(p)}startAxisValueAnimation(a,s){const r=this.getAxisMotionValue(a);return Df(this.visualElement,a),r.start(wd(a,r,0,s,this.visualElement,!1))}stopAnimation(){Zt(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){Zt(a=>{var s;return(s=this.getAxisMotionValue(a).animation)==null?void 0:s.pause()})}getAnimationState(a){var s;return(s=this.getAxisMotionValue(a).animation)==null?void 0:s.state}getAxisMotionValue(a){const s=`_drag${a.toUpperCase()}`,r=this.visualElement.getProps(),o=r[s];return o||this.visualElement.getValue(a,(r.initial?r.initial[a]:void 0)||0)}snapToCursor(a){Zt(s=>{const{drag:r}=this.getProps();if(!Br(s,r,this.currentDirection))return;const{projection:o}=this.visualElement,c=this.getAxisMotionValue(s);if(o&&o.layout){const{min:f,max:p}=o.layout.layoutBox[s];c.set(a[s]-Ye(f,p,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:s}=this.getProps(),{projection:r}=this.visualElement;if(!ji(s)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Zt(f=>{const p=this.getAxisMotionValue(f);if(p&&this.constraints!==!1){const m=p.get();o[f]=wj({min:m,max:m},this.constraints[f])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Zt(f=>{if(!Br(f,a,null))return;const p=this.getAxisMotionValue(f),{min:m,max:h}=this.constraints[f];p.set(Ye(m,h,o[f]))})}addListeners(){if(!this.visualElement.current)return;Aj.set(this.visualElement,this);const a=this.visualElement.current,s=Ks(a,"pointerdown",m=>{const{drag:h,dragListener:y=!0}=this.getProps();h&&y&&this.start(m)}),r=()=>{const{dragConstraints:m}=this.getProps();ji(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,c=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ke.read(r);const f=nl(window,"resize",()=>this.scalePositionWithinConstraints()),p=o.addEventListener("didUpdate",({delta:m,hasLayoutChanged:h})=>{this.isDragging&&h&&(Zt(y=>{const x=this.getAxisMotionValue(y);x&&(this.originPoint[y]+=m[y].translate,x.set(x.get()+m[y].translate))}),this.visualElement.render())});return()=>{f(),s(),c(),p&&p()}}getProps(){const a=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:c=!1,dragElastic:f=Of,dragMomentum:p=!0}=a;return le(K({},a),{drag:s,dragDirectionLock:r,dragPropagation:o,dragConstraints:c,dragElastic:f,dragMomentum:p})}}function Br(n,a,s){return(a===!0||a===n)&&(s===null||s===n)}function Nj(n,a=10){let s=null;return Math.abs(n.y)>a?s="y":Math.abs(n.x)>a&&(s="x"),s}class Rj extends ua{constructor(a){super(a),this.removeGroupControls=Qt,this.removeListeners=Qt,this.controls=new jj(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Vg=n=>(a,s)=>{n&&ke.postRender(()=>n(a,s))};class Cj extends ua{constructor(){super(...arguments),this.removePointerDownListener=Qt}onPointerDown(a){this.session=new x1(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:v1(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:s,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Vg(a),onStart:Vg(s),onMove:r,onEnd:(c,f)=>{delete this.session,o&&ke.postRender(()=>o(c,f))}}}mount(){this.removePointerDownListener=Ks(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Gr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ug(n,a){return a.max===a.min?0:n/(a.max-a.min)*100}const qs={correct:(n,a)=>{if(!a.target)return n;if(typeof n=="string")if(oe.test(n))n=parseFloat(n);else return n;const s=Ug(n,a.target.x),r=Ug(n,a.target.y);return`${s}% ${r}%`}},Dj={correct:(n,{treeScale:a,projectionDelta:s})=>{const r=n,o=ra.parse(n);if(o.length>5)return r;const c=ra.createTransformer(n),f=typeof o[0]!="number"?1:0,p=s.x.scale*a.x,m=s.y.scale*a.y;o[0+f]/=p,o[1+f]/=m;const h=Ye(p,m,.5);return typeof o[2+f]=="number"&&(o[2+f]/=h),typeof o[3+f]=="number"&&(o[3+f]/=h),c(o)}};let Jc=!1;class Mj extends w.Component{componentDidMount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:r,layoutId:o}=this.props,{projection:c}=a;I4(Oj),c&&(s.group&&s.group.add(c),r&&r.register&&o&&r.register(c),Jc&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions(le(K({},c.options),{onExitComplete:()=>this.safeToRemove()}))),Gr.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:s,visualElement:r,drag:o,isPresent:c}=this.props,{projection:f}=r;return f&&(f.isPresent=c,Jc=!0,o||a.layoutDependency!==s||s===void 0||a.isPresent!==c?f.willUpdate():this.safeToRemove(),a.isPresent!==c&&(c?f.promote():f.relegate()||ke.postRender(()=>{const p=f.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),fd.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:r}=this.props,{projection:o}=a;Jc=!0,o&&(o.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function S1(n){const[a,s]=Pv(),r=w.useContext(Pf);return g.jsx(Mj,le(K({},n),{layoutGroup:r,switchLayoutGroup:w.useContext(t1),isPresent:a,safeToRemove:s}))}const Oj={borderRadius:le(K({},qs),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:qs,borderTopRightRadius:qs,borderBottomLeftRadius:qs,borderBottomRightRadius:qs,boxShadow:Dj};function Lj(n,a,s){const r=pt(n)?n:Mi(n);return r.start(wd("",r,a,s)),r.animation}const zj=(n,a)=>n.depth-a.depth;class Bj{constructor(){this.children=[],this.isDirty=!1}add(a){Kf(this.children,a),this.isDirty=!0}remove(a){Zf(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(zj),this.isDirty=!1,this.children.forEach(a)}}function Vj(n,a){const s=Et.now(),r=({timestamp:o})=>{const c=o-s;c>=a&&(la(r),n(c-a))};return ke.setup(r,!0),()=>la(r)}const w1=["TopLeft","TopRight","BottomLeft","BottomRight"],Uj=w1.length,_g=n=>typeof n=="string"?parseFloat(n):n,Hg=n=>typeof n=="number"||oe.test(n);function _j(n,a,s,r,o,c){var f,p,m,h;o?(n.opacity=Ye(0,(f=s.opacity)!=null?f:1,Hj(r)),n.opacityExit=Ye((p=a.opacity)!=null?p:1,0,kj(r))):c&&(n.opacity=Ye((m=a.opacity)!=null?m:1,(h=s.opacity)!=null?h:1,r));for(let y=0;y<Uj;y++){const x=`border${w1[y]}Radius`;let S=kg(a,x),T=kg(s,x);if(S===void 0&&T===void 0)continue;S||(S=0),T||(T=0),S===0||T===0||Hg(S)===Hg(T)?(n[x]=Math.max(Ye(_g(S),_g(T),r),0),(dn.test(T)||dn.test(S))&&(n[x]+="%")):n[x]=T}(a.rotate||s.rotate)&&(n.rotate=Ye(a.rotate||0,s.rotate||0,r))}function kg(n,a){return n[a]!==void 0?n[a]:n.borderRadius}const Hj=T1(0,.5,uv),kj=T1(.5,.95,Qt);function T1(n,a,s){return r=>r<n?0:r>a?1:s(Js(n,a,r))}function qg(n,a){n.min=a.min,n.max=a.max}function Kt(n,a){qg(n.x,a.x),qg(n.y,a.y)}function Yg(n,a){n.translate=a.translate,n.scale=a.scale,n.originPoint=a.originPoint,n.origin=a.origin}function Pg(n,a,s,r,o){return n-=a,n=Ir(n,1/s,r),o!==void 0&&(n=Ir(n,1/o,r)),n}function qj(n,a=0,s=1,r=.5,o,c=n,f=n){if(dn.test(a)&&(a=parseFloat(a),a=Ye(f.min,f.max,a/100)-f.min),typeof a!="number")return;let p=Ye(c.min,c.max,r);n===c&&(p-=a),n.min=Pg(n.min,a,s,p,o),n.max=Pg(n.max,a,s,p,o)}function Gg(n,a,[s,r,o],c,f){qj(n,a[s],a[r],a[o],a.scale,c,f)}const Yj=["x","scaleX","originX"],Pj=["y","scaleY","originY"];function Xg(n,a,s,r){Gg(n.x,a,Yj,s?s.x:void 0,r?r.x:void 0),Gg(n.y,a,Pj,s?s.y:void 0,r?r.y:void 0)}function Kg(n){return n.translate===0&&n.scale===1}function E1(n){return Kg(n.x)&&Kg(n.y)}function Zg(n,a){return n.min===a.min&&n.max===a.max}function Gj(n,a){return Zg(n.x,a.x)&&Zg(n.y,a.y)}function Qg(n,a){return Math.round(n.min)===Math.round(a.min)&&Math.round(n.max)===Math.round(a.max)}function A1(n,a){return Qg(n.x,a.x)&&Qg(n.y,a.y)}function Fg(n){return yt(n.x)/yt(n.y)}function $g(n,a){return n.translate===a.translate&&n.scale===a.scale&&n.originPoint===a.originPoint}class Xj{constructor(){this.members=[]}add(a){Kf(this.members,a),a.scheduleRender()}remove(a){if(Zf(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(a){const s=this.members.findIndex(o=>a===o);if(s===0)return!1;let r;for(let o=s;o>=0;o--){const c=this.members[o];if(c.isPresent!==!1){r=c;break}}return r?(this.promote(r),!0):!1}promote(a,s){const r=this.lead;if(a!==r&&(this.prevLead=r,this.lead=a,a.show(),r)){r.instance&&r.scheduleRender(),a.scheduleRender(),a.resumeFrom=r,s&&(a.resumeFrom.preserveOpacity=!0),r.snapshot&&(a.snapshot=r.snapshot,a.snapshot.latestValues=r.animationValues||r.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0);const{crossfade:o}=a.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(a=>{const{options:s,resumingFrom:r}=a;s.onExitComplete&&s.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Kj(n,a,s){let r="";const o=n.x.translate/a.x,c=n.y.translate/a.y,f=(s==null?void 0:s.z)||0;if((o||c||f)&&(r=`translate3d(${o}px, ${c}px, ${f}px) `),(a.x!==1||a.y!==1)&&(r+=`scale(${1/a.x}, ${1/a.y}) `),s){const{transformPerspective:h,rotate:y,rotateX:x,rotateY:S,skewX:T,skewY:E}=s;h&&(r=`perspective(${h}px) ${r}`),y&&(r+=`rotate(${y}deg) `),x&&(r+=`rotateX(${x}deg) `),S&&(r+=`rotateY(${S}deg) `),T&&(r+=`skewX(${T}deg) `),E&&(r+=`skewY(${E}deg) `)}const p=n.x.scale*a.x,m=n.y.scale*a.y;return(p!==1||m!==1)&&(r+=`scale(${p}, ${m})`),r||"none"}const Wc=["","X","Y","Z"],Zj=1e3;let Qj=0;function Ic(n,a,s,r){const{latestValues:o}=a;o[n]&&(s[n]=o[n],a.setStaticValue(n,0),r&&(r[n]=0))}function j1(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:a}=n.options;if(!a)return;const s=f1(a);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:o,layoutId:c}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",ke,!(o||c))}const{parent:r}=n;r&&!r.hasCheckedOptimisedAppear&&j1(r)}function N1({attachResizeListener:n,defaultParent:a,measureScroll:s,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(f={},p=a==null?void 0:a()){this.id=Qj++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Jj),this.nodes.forEach(tN),this.nodes.forEach(nN),this.nodes.forEach(Wj)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new Bj)}addEventListener(f,p){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new $f),this.eventHandlers.get(f).add(p)}notifyListeners(f,...p){const m=this.eventHandlers.get(f);m&&m.notify(...p)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=Yv(f)&&!H4(f),this.instance=f;const{layoutId:p,layout:m,visualElement:h}=this.options;if(h&&!h.current&&h.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||p)&&(this.isLayoutDirty=!0),n){let y,x=0;const S=()=>this.root.updateBlockedByResize=!1;ke.read(()=>{x=window.innerWidth}),n(f,()=>{const T=window.innerWidth;T!==x&&(x=T,this.root.updateBlockedByResize=!0,y&&y(),y=Vj(S,250),Gr.hasAnimatedSinceResize&&(Gr.hasAnimatedSinceResize=!1,this.nodes.forEach(Ig)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&h&&(p||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:x,hasRelativeLayoutChanged:S,layout:T})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||h.getDefaultTransition()||rN,{onLayoutAnimationStart:R,onLayoutAnimationComplete:j}=h.getProps(),M=!this.targetLayout||!A1(this.targetLayout,T),V=!x&&S;if(this.options.layoutRoot||this.resumeFrom||V||x&&(M||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const U=le(K({},ud(E,"layout")),{onPlay:R,onComplete:j});(h.shouldReduceMotion||this.options.layoutRoot)&&(U.delay=0,U.type=!1),this.startAnimation(U),this.setAnimationOrigin(y,V)}else x||Ig(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=T})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),la(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(aN),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&j1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const x=this.path[y];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:p,layout:m}=this.options;if(p===void 0&&!m)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Jg);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Wg);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(eN),this.nodes.forEach(Fj),this.nodes.forEach($j)):this.nodes.forEach(Wg),this.clearAllSnapshots();const p=Et.now();ct.delta=Mn(0,1e3/60,p-ct.timestamp),ct.timestamp=p,ct.isProcessing=!0,qc.update.process(ct),qc.preRender.process(ct),qc.render.process(ct),ct.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,fd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ij),this.sharedNodes.forEach(iN)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ke.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ke.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!yt(this.snapshot.measuredBox.x)&&!yt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Fe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(p=!1),p&&this.instance){const m=r(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:m,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!o)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!E1(this.projectionDelta),m=this.getTransformTemplate(),h=m?m(this.latestValues,""):void 0,y=h!==this.prevTransformTemplateValue;f&&this.instance&&(p||Da(this.latestValues)||y)&&(o(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const p=this.measurePageBox();let m=this.removeElementScroll(p);return f&&(m=this.removeTransform(m)),oN(m),{animationId:this.root.animationId,measuredBox:p,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var h;const{visualElement:f}=this.options;if(!f)return Fe();const p=f.measureViewportBox();if(!(((h=this.scroll)==null?void 0:h.wasRoot)||this.path.some(uN))){const{scroll:y}=this.root;y&&(Ni(p.x,y.offset.x),Ni(p.y,y.offset.y))}return p}removeElementScroll(f){var m;const p=Fe();if(Kt(p,f),(m=this.scroll)!=null&&m.wasRoot)return p;for(let h=0;h<this.path.length;h++){const y=this.path[h],{scroll:x,options:S}=y;y!==this.root&&x&&S.layoutScroll&&(x.wasRoot&&Kt(p,f),Ni(p.x,x.offset.x),Ni(p.y,x.offset.y))}return p}applyTransform(f,p=!1){const m=Fe();Kt(m,f);for(let h=0;h<this.path.length;h++){const y=this.path[h];!p&&y.options.layoutScroll&&y.scroll&&y!==y.root&&Ri(m,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),Da(y.latestValues)&&Ri(m,y.latestValues)}return Da(this.latestValues)&&Ri(m,this.latestValues),m}removeTransform(f){const p=Fe();Kt(p,f);for(let m=0;m<this.path.length;m++){const h=this.path[m];if(!h.instance||!Da(h.latestValues))continue;jf(h.latestValues)&&h.updateSnapshot();const y=Fe(),x=h.measurePageBox();Kt(y,x),Xg(p,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,y)}return Da(this.latestValues)&&Xg(p,this.latestValues),p}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options=le(K(K({},this.options),f),{crossfade:f.crossfade!==void 0?f.crossfade:!0})}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ct.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){var S;const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==p;if(!(f||m&&this.isSharedProjectionDirty||this.isProjectionDirty||(S=this.parent)!=null&&S.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:x}=this.options;if(!(!this.layout||!(y||x))){if(this.resolvedRelativeTargetAt=ct.timestamp,!this.targetDelta&&!this.relativeTarget){const T=this.getClosestProjectingParent();T&&T.layout&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Fe(),this.relativeTargetOrigin=Fe(),Qs(this.relativeTargetOrigin,this.layout.layoutBox,T.layout.layoutBox),Kt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Fe(),this.targetWithTransforms=Fe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),pj(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Kt(this.target,this.layout.layoutBox),s1(this.target,this.targetDelta)):Kt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const T=this.getClosestProjectingParent();T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Fe(),this.relativeTargetOrigin=Fe(),Qs(this.relativeTargetOrigin,this.target,T.target),Kt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||jf(this.parent.latestValues)||i1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var E;const f=this.getLead(),p=!!this.resumingFrom||this!==f;let m=!0;if((this.isProjectionDirty||(E=this.parent)!=null&&E.isProjectionDirty)&&(m=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===ct.timestamp&&(m=!1),m)return;const{layout:h,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||y))return;Kt(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,S=this.treeScale.y;NA(this.layoutCorrected,this.treeScale,this.path,p),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=Fe());const{target:T}=f;if(!T){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Yg(this.prevProjectionDelta.x,this.projectionDelta.x),Yg(this.prevProjectionDelta.y,this.projectionDelta.y)),Zs(this.projectionDelta,this.layoutCorrected,T,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==S||!$g(this.projectionDelta.x,this.prevProjectionDelta.x)||!$g(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",T))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){var p;if((p=this.options.visualElement)==null||p.scheduleRender(),f){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ci(),this.projectionDelta=Ci(),this.projectionDeltaWithTransform=Ci()}setAnimationOrigin(f,p=!1){const m=this.snapshot,h=m?m.latestValues:{},y=K({},this.latestValues),x=Ci();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const S=Fe(),T=m?m.source:void 0,E=this.layout?this.layout.source:void 0,R=T!==E,j=this.getStack(),M=!j||j.members.length<=1,V=!!(R&&!M&&this.options.crossfade===!0&&!this.path.some(lN));this.animationProgress=0;let U;this.mixTargetDelta=X=>{const H=X/1e3;ey(x.x,f.x,H),ey(x.y,f.y,H),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Qs(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),sN(this.relativeTarget,this.relativeTargetOrigin,S,H),U&&Gj(this.relativeTarget,U)&&(this.isProjectionDirty=!1),U||(U=Fe()),Kt(U,this.relativeTarget)),R&&(this.animationValues=y,_j(y,h,this.latestValues,H,V,M)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=H},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){var p,m,h;this.notifyListeners("animationStart"),(p=this.currentAnimation)==null||p.stop(),(h=(m=this.resumingFrom)==null?void 0:m.currentAnimation)==null||h.stop(),this.pendingAnimation&&(la(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ke.update(()=>{Gr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Mi(0)),this.currentAnimation=Lj(this.motionValue,[0,1e3],le(K({},f),{velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),f.onUpdate&&f.onUpdate(y)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Zj),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:p,target:m,layout:h,latestValues:y}=f;if(!(!p||!m||!h)){if(this!==f&&this.layout&&h&&R1(this.options.animationType,this.layout.layoutBox,h.layoutBox)){m=this.target||Fe();const x=yt(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+x;const S=yt(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+S}Kt(p,m),Ri(p,y),Zs(this.projectionDeltaWithTransform,this.layoutCorrected,p,y)}}registerSharedNode(f,p){this.sharedNodes.has(f)||this.sharedNodes.set(f,new Xj),this.sharedNodes.get(f).add(p);const h=p.options.initialPromotionConfig;p.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(p):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var p;const{layoutId:f}=this.options;return f?((p=this.getStack())==null?void 0:p.lead)||this:this}getPrevLead(){var p;const{layoutId:f}=this.options;return f?(p=this.getStack())==null?void 0:p.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:p,preserveFollowOpacity:m}={}){const h=this.getStack();h&&h.promote(this,m),f&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let p=!1;const{latestValues:m}=f;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(p=!0),!p)return;const h={};m.z&&Ic("z",f,h,this.animationValues);for(let y=0;y<Wc.length;y++)Ic(`rotate${Wc[y]}`,f,h,this.animationValues),Ic(`skew${Wc[y]}`,f,h,this.animationValues);f.render();for(const y in h)f.setStaticValue(y,h[y]),this.animationValues&&(this.animationValues[y]=h[y]);f.scheduleRender()}applyProjectionStyles(f,p){var E,R;if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=Pr(p==null?void 0:p.pointerEvents)||"",f.transform=m?m(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=Pr(p==null?void 0:p.pointerEvents)||""),this.hasProjected&&!Da(this.latestValues)&&(f.transform=m?m({},""):"none",this.hasProjected=!1);return}f.visibility="";const y=h.animationValues||h.latestValues;this.applyTransformsToTarget();let x=Kj(this.projectionDeltaWithTransform,this.treeScale,y);m&&(x=m(y,x)),f.transform=x;const{x:S,y:T}=this.projectionDelta;f.transformOrigin=`${S.origin*100}% ${T.origin*100}% 0`,h.animationValues?f.opacity=h===this?(R=(E=y.opacity)!=null?E:this.latestValues.opacity)!=null?R:1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:f.opacity=h===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const j in tl){if(y[j]===void 0)continue;const{correct:M,applyTo:V,isCSSVariable:U}=tl[j],X=x==="none"?y[j]:M(y[j],h);if(V){const H=V.length;for(let Q=0;Q<H;Q++)f[V[Q]]=X}else U?this.options.visualElement.renderState.vars[j]=X:f[j]=X}this.options.layoutId&&(f.pointerEvents=h===this?Pr(p==null?void 0:p.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var p;return(p=f.currentAnimation)==null?void 0:p.stop()}),this.root.nodes.forEach(Jg),this.root.sharedNodes.clear()}}}function Fj(n){n.updateLayout()}function $j(n){var s;const a=((s=n.resumeFrom)==null?void 0:s.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&a&&n.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=n.layout,{animationType:c}=n.options,f=a.source!==n.layout.source;c==="size"?Zt(x=>{const S=f?a.measuredBox[x]:a.layoutBox[x],T=yt(S);S.min=r[x].min,S.max=S.min+T}):R1(c,a.layoutBox,r)&&Zt(x=>{const S=f?a.measuredBox[x]:a.layoutBox[x],T=yt(r[x]);S.max=S.min+T,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[x].max=n.relativeTarget[x].min+T)});const p=Ci();Zs(p,r,a.layoutBox);const m=Ci();f?Zs(m,n.applyTransform(o,!0),a.measuredBox):Zs(m,r,a.layoutBox);const h=!E1(p);let y=!1;if(!n.resumeFrom){const x=n.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:S,layout:T}=x;if(S&&T){const E=Fe();Qs(E,a.layoutBox,S.layoutBox);const R=Fe();Qs(R,r,T.layoutBox),A1(E,R)||(y=!0),x.options.layoutRoot&&(n.relativeTarget=R,n.relativeTargetOrigin=E,n.relativeParent=x)}}}n.notifyListeners("didUpdate",{layout:r,snapshot:a,delta:m,layoutDelta:p,hasLayoutChanged:h,hasRelativeLayoutChanged:y})}else if(n.isLead()){const{onExitComplete:r}=n.options;r&&r()}n.options.transition=void 0}function Jj(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function Wj(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function Ij(n){n.clearSnapshot()}function Jg(n){n.clearMeasurements()}function Wg(n){n.isLayoutDirty=!1}function eN(n){const{visualElement:a}=n.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),n.resetTransform()}function Ig(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function tN(n){n.resolveTargetDelta()}function nN(n){n.calcProjection()}function aN(n){n.resetSkewAndRotation()}function iN(n){n.removeLeadSnapshot()}function ey(n,a,s){n.translate=Ye(a.translate,0,s),n.scale=Ye(a.scale,1,s),n.origin=a.origin,n.originPoint=a.originPoint}function ty(n,a,s,r){n.min=Ye(a.min,s.min,r),n.max=Ye(a.max,s.max,r)}function sN(n,a,s,r){ty(n.x,a.x,s.x,r),ty(n.y,a.y,s.y,r)}function lN(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const rN={duration:.45,ease:[.4,0,.1,1]},ny=n=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),ay=ny("applewebkit/")&&!ny("chrome/")?Math.round:Qt;function iy(n){n.min=ay(n.min),n.max=ay(n.max)}function oN(n){iy(n.x),iy(n.y)}function R1(n,a,s){return n==="position"||n==="preserve-aspect"&&!mj(Fg(a),Fg(s),.2)}function uN(n){var a;return n!==n.root&&((a=n.scroll)==null?void 0:a.wasRoot)}const cN=N1({attachResizeListener:(n,a)=>nl(n,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ef={current:void 0},C1=N1({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!ef.current){const n=new cN({});n.mount(window),n.setOptions({layoutScroll:!0}),ef.current=n}return ef.current},resetTransform:(n,a)=>{n.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),fN={pan:{Feature:Cj},drag:{Feature:Rj,ProjectionNode:C1,MeasureLayout:S1}};function sy(n,a,s){const{props:r}=n;n.animationState&&r.whileHover&&n.animationState.setActive("whileHover",s==="Start");const o="onHover"+s,c=r[o];c&&ke.postRender(()=>c(a,ml(a)))}class dN extends ua{mount(){const{current:a}=this.node;a&&(this.unmount=z4(a,(s,r)=>(sy(this.node,r,"Start"),o=>sy(this.node,o,"End"))))}unmount(){}}class hN extends ua{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch(s){a=!0}!a||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=fl(nl(this.node.current,"focus",()=>this.onFocus()),nl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ly(n,a,s){const{props:r}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&r.whileTap&&n.animationState.setActive("whileTap",s==="Start");const o="onTap"+(s==="End"?"":s),c=r[o];c&&ke.postRender(()=>c(a,ml(a)))}class mN extends ua{mount(){const{current:a}=this.node;a&&(this.unmount=_4(a,(s,r)=>(ly(this.node,r,"Start"),(o,{success:c})=>ly(this.node,o,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Lf=new WeakMap,tf=new WeakMap,pN=n=>{const a=Lf.get(n.target);a&&a(n)},gN=n=>{n.forEach(pN)};function yN(s){var r=s,{root:n}=r,a=st(r,["root"]);const o=n||document;tf.has(o)||tf.set(o,{});const c=tf.get(o),f=JSON.stringify(a);return c[f]||(c[f]=new IntersectionObserver(gN,K({root:n},a))),c[f]}function vN(n,a,s){const r=yN(a);return Lf.set(n,s),r.observe(n),()=>{Lf.delete(n),r.unobserve(n)}}const xN={some:0,all:1};class bN extends ua{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:a={}}=this.node.getProps(),{root:s,margin:r,amount:o="some",once:c}=a,f={root:s?s.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:xN[o]},p=m=>{const{isIntersecting:h}=m;if(this.isInView===h||(this.isInView=h,c&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:y,onViewportLeave:x}=this.node.getProps(),S=h?y:x;S&&S(m)};return vN(this.node.current,f,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver=="undefined")return;const{props:a,prevProps:s}=this.node;["amount","margin","root"].some(SN(a,s))&&this.startObserver()}unmount(){}}function SN({viewport:n={}},{viewport:a={}}={}){return s=>n[s]!==a[s]}const wN={inView:{Feature:bN},tap:{Feature:mN},focus:{Feature:hN},hover:{Feature:dN}},TN={layout:{ProjectionNode:C1,MeasureLayout:S1}},EN=K(K(K(K({},oj),wN),fN),TN),nf=EA(EN,UA),AN=({isOpen:n,onClose:a,schema:s,collectionName:r})=>{if(!n)return null;const o=p=>{const m={string:"bg-indigo-100 text-indigo-800 border-indigo-200",number:"bg-green-100 text-green-800 border-green-200",boolean:"bg-yellow-100 text-yellow-800 border-yellow-200",date:"bg-purple-100 text-purple-800 border-purple-200",object:"bg-blue-100 text-blue-800 border-blue-200",array:"bg-pink-100 text-pink-800 border-pink-200",any:"bg-gray-100 text-gray-800 border-gray-200",binary:"bg-cyan-100 text-cyan-800 border-cyan-200",symbol:"bg-fuchsia-100 text-fuchsia-800 border-fuchsia-200",func:"bg-rose-100 text-rose-800 border-rose-200",function:"bg-rose-100 text-rose-800 border-rose-200",alternatives:"bg-amber-100 text-amber-800 border-amber-200",link:"bg-sky-100 text-sky-800 border-sky-200",uuid:"bg-violet-100 text-violet-800 border-violet-200",guid:"bg-violet-100 text-violet-800 border-violet-200",email:"bg-indigo-100 text-indigo-800 border-indigo-200",uri:"bg-blue-100 text-blue-800 border-blue-200",url:"bg-blue-100 text-blue-800 border-blue-200",hostname:"bg-teal-100 text-teal-800 border-teal-200",ip:"bg-cyan-100 text-cyan-800 border-cyan-200",alphanum:"bg-indigo-100 text-indigo-800 border-indigo-200",token:"bg-purple-100 text-purple-800 border-purple-200",hex:"bg-fuchsia-100 text-fuchsia-800 border-fuchsia-200",base64:"bg-blue-100 text-blue-800 border-blue-200",integer:"bg-emerald-100 text-emerald-800 border-emerald-200",float:"bg-green-100 text-green-800 border-green-200",precision:"bg-lime-100 text-lime-800 border-lime-200",port:"bg-teal-100 text-teal-800 border-teal-200",pattern:"bg-blue-100 text-blue-800 border-blue-200",schema:"bg-indigo-100 text-indigo-800 border-indigo-200",instance:"bg-violet-100 text-violet-800 border-violet-200",ref:"bg-amber-100 text-amber-800 border-amber-200",items:"bg-pink-100 text-pink-800 border-pink-200",ordered:"bg-rose-100 text-rose-800 border-rose-200",tuple:"bg-fuchsia-100 text-fuchsia-800 border-fuchsia-200",lazy:"bg-purple-100 text-purple-800 border-purple-200",custom:"bg-red-100 text-red-800 border-red-200",extensions:"bg-amber-100 text-amber-800 border-amber-200"};if(p&&p.includes(".")){const y=p.split("."),x=y[0],S=y[1];if(m[S])return g.jsx("span",{className:`px-2 py-1 rounded-md text-xs font-medium border ${m[S]}`,children:p});if(m[x])return g.jsx("span",{className:`px-2 py-1 rounded-md text-xs font-medium border ${m[x]}`,children:p})}const h=m[p]||m.any;return g.jsx("span",{className:`px-2 py-1 rounded-md text-xs font-medium border ${h}`,children:p})},c=p=>!p||!p.length?null:g.jsxs("div",{className:"mt-2",children:[g.jsx("h6",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wider mb-1",children:"Validations"}),g.jsx("ul",{className:"space-y-1",children:p.map((m,h)=>{let y=m.name;if(m.args){if(m.name==="min"||m.name==="max"||m.name==="length")y+=`: ${m.args.limit}`;else if(m.name==="email")y="must be a valid email";else if(m.name==="pattern")y=`matches pattern: ${m.args.regex}`;else if(typeof m.args=="object")try{y+=`: ${JSON.stringify(m.args)}`}catch(x){y+=": has constraints"}}return g.jsxs("li",{className:"flex items-center text-xs text-gray-600 pl-2 border-l-2 border-gray-200",children:[g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3 w-3 mr-1 text-gray-500",viewBox:"0 0 20 20",fill:"currentColor",children:g.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),y]},h)})})]}),f=(p,m)=>{var x;const h=m.type||"any",y=((x=m._flags)==null?void 0:x.presence)==="required";return g.jsx(nf.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.2},className:"mb-5 bg-white rounded-lg p-4 shadow-sm border border-gray-200 hover:shadow-md transition-shadow",children:g.jsxs("div",{className:"flex flex-col",children:[g.jsxs("div",{className:"flex items-center justify-between mb-2",children:[g.jsxs("div",{className:"flex items-center",children:[g.jsx("span",{className:"font-bold text-gray-800 mr-2",children:p}),y&&g.jsx("span",{className:"bg-red-100 text-red-800 text-xs px-2 py-0.5 rounded-full border border-red-200",children:"required"})]}),o(h)]}),c(m._rules),m._flags&&Object.keys(m._flags).length>0&&g.jsxs("div",{className:"mt-2 pt-2 border-t border-gray-100",children:[g.jsx("h6",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wider mb-1",children:"Properties"}),g.jsx("div",{className:"grid grid-cols-2 gap-1",children:Object.entries(m._flags).map(([S,T])=>S!=="presence"&&g.jsxs("div",{className:"text-xs text-gray-600",children:[g.jsxs("span",{className:"font-medium",children:[S,":"]})," ",String(T)]},S))})]}),h==="object"&&m.keys&&g.jsxs("div",{className:"mt-3 pt-3 border-t border-gray-100",children:[g.jsx("h6",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wider mb-2",children:"Nested Fields"}),g.jsx("div",{className:"pl-4 border-l-2 border-indigo-100",children:Object.entries(m.keys).map(([S,T])=>f(S,T))})]})]})},p)};return g.jsx(K4,{children:n&&g.jsx(nf.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black bg-opacity-50 overflow-y-auto h-full w-full z-50 flex justify-center items-center backdrop-filter backdrop-blur-sm",children:g.jsxs(nf.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.9,opacity:0},transition:{type:"spring",damping:25,stiffness:300},className:"relative bg-gray-50 rounded-xl shadow-2xl max-w-3xl w-full mx-4 max-h-[90vh] flex flex-col overflow-hidden",children:[g.jsxs("div",{className:"flex justify-between items-center p-6 border-b bg-gradient-to-r from-blue-50 to-indigo-50",children:[g.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 mr-2 text-blue-600",viewBox:"0 0 20 20",fill:"currentColor",children:g.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"})}),g.jsx("span",{children:"Collection Schema"}),g.jsxs("span",{className:"ml-2 text-blue-600 font-normal",children:[g.jsx("span",{className:"mx-1",children:"·"})," ",r]})]}),g.jsx("button",{onClick:a,className:"text-gray-500 hover:text-gray-700 focus:outline-none bg-white rounded-full p-1 hover:bg-gray-100 transition-colors",children:g.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),g.jsxs("div",{className:"p-6 overflow-y-auto flex-grow",children:[g.jsxs("div",{className:"mb-6 bg-blue-50 border-l-4 border-blue-500 p-4 rounded-md text-blue-700 flex items-start",children:[g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 mr-3 flex-shrink-0 text-blue-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),g.jsxs("div",{children:[g.jsx("p",{className:"font-medium mb-1",children:"Schema Validation"}),g.jsx("p",{className:"text-sm",children:"This collection uses schema validation. Documents must conform to the structure defined below before they can be inserted."})]})]}),Object.keys(s).length>0?g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-center justify-between mb-2",children:[g.jsx("h4",{className:"text-lg font-medium text-gray-800",children:"Schema Fields"}),g.jsxs("span",{className:"text-sm text-gray-500",children:[Object.keys(s).length," fields defined"]})]}),Object.entries(s).map(([p,m])=>f(p,m))]}):g.jsxs("div",{className:"text-center py-8",children:[g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-16 w-16 mx-auto text-gray-300 mb-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.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"})}),g.jsx("p",{className:"text-gray-500 mb-2 text-lg",children:"No schema fields defined"}),g.jsx("p",{className:"text-gray-400 text-sm",children:"This collection has schema validation enabled but no fields are specified."})]})]}),g.jsx("div",{className:"border-t border-gray-200 px-6 py-4 bg-white flex justify-end",children:g.jsx("button",{type:"button",onClick:a,className:"px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 transition-colors shadow-sm flex items-center",children:g.jsx("span",{children:"Close"})})})]})})})},jN=()=>{const[n]=Ey(),a=sl(),[s,r]=w.useState(!0),[o,c]=w.useState([]),[f,p]=w.useState([]),[m,h]=w.useState(!1),[y,x]=w.useState(!1),[S,T]=w.useState(!1),[E,R]=w.useState(null),[j,M]=w.useState(""),[V,U]=w.useState(""),X=n.get("database"),{TransactionKey:H}=Nt(de=>de),{Rootname:Q}=Qr(de=>de),W=()=>_e(null,null,function*(){try{const de=yield we.get(`${vt}/api/collection/all/?databaseName=${X}&transactiontoken=${H}`);if(de.status===200){const Ve=de.data.data||{};if(Ve.ListOfCollections&&Array.isArray(Ve.ListOfCollections)){const Re=Ve.CollectionSizeMap||[],k=Ve.collectionMetaStatus||[];p(k);const Z=Ve.ListOfCollections.map(I=>{const me=Re.find(G=>{const J=G.folderPath.split("/");return J[J.length-1]===I}),N=k.find(G=>G.name===I);return{name:I,documentCount:me?me.fileCount:0,isEncrypted:(N==null?void 0:N.isEncrypted)||!1,isSchemaNeeded:(N==null?void 0:N.isSchemaNeeded)||!1,schema:(N==null?void 0:N.schema)||{}}});c(Z)}else c([]);r(!1)}}catch(de){console.error("Error fetching collections:",de),r(!1),c([])}});w.useEffect(()=>{if(!X){a("/databases");return}H&&W()},[H,X,a]);const F=()=>{a("/databases")},ce=()=>{W()},Ae=de=>{U(de),x(!0)},be=()=>{W()},Ee=de=>{const Ve=o.find(Re=>Re.name===de);if(Ve&&Ve.isSchemaNeeded){const Re=f.find(k=>k.name===de);Re&&Re.schema&&(R(Re.schema),M(de),T(!0))}};return g.jsxs("div",{className:"container mx-auto px-4 py-6",children:[g.jsxs("div",{className:"flex justify-between items-center mb-6",children:[g.jsxs("div",{children:[g.jsx("div",{className:"flex items-center mb-2",children:g.jsx("button",{onClick:F,className:"text-blue-600 hover:text-blue-800 mr-3",children:"← Back to Databases"})}),g.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Collections"}),g.jsxs("p",{className:"text-gray-600",children:["Collections in database:"," ",g.jsx("span",{className:"font-medium",children:X})]})]}),g.jsxs("button",{onClick:()=>h(!0),className:"bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-lg flex items-center transition-colors",children:[g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:g.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"]})]}),g.jsxs("div",{className:"bg-white rounded-lg shadow-md overflow-hidden",children:[g.jsxs("div",{className:"border-b border-gray-200 bg-gray-50 px-6 py-4",children:[g.jsxs("h3",{className:"text-lg font-medium text-gray-900",children:["Collections in ",X]}),g.jsxs("p",{className:"text-sm text-gray-500",children:["Total:"," ",s?"Loading...":o.length>0?`${o.length} Collections`:"0 Collections"]})]}),s?g.jsx("div",{className:"p-6",children:[1,2,3].map(de=>g.jsxs("div",{className:"animate-pulse flex items-center justify-between py-4 border-b border-gray-100",children:[g.jsxs("div",{children:[g.jsx("div",{className:"h-6 bg-gray-200 rounded w-48 mb-2"}),g.jsx("div",{className:"h-4 bg-gray-100 rounded w-32"})]}),g.jsx("div",{className:"h-8 bg-gray-200 rounded w-24"})]},de))}):g.jsx("ul",{className:"divide-y divide-gray-200",children:o.length>0?o.map(de=>g.jsxs("li",{className:"px-6 py-4 flex items-center justify-between hover:bg-gray-50 transition-colors",children:[g.jsxs("div",{children:[g.jsxs("h4",{className:"text-lg font-medium text-gray-900 flex items-center",children:[de.name,de.isEncrypted?g.jsx("span",{className:"ml-2 text-green-600",title:"Encrypted Collection",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:g.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"})})}):g.jsx("span",{className:"ml-2 text-gray-400",title:"Unencrypted Collection",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:g.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"})})}),de.isSchemaNeeded?g.jsx("button",{onClick:()=>Ee(de.name),className:"ml-2 text-blue-600 hover:text-blue-800 focus:outline-none transition-colors cursor-pointer",title:"View Schema",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:g.jsx("path",{fillRule:"evenodd",d:"M3 4a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm0 4a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm0 4a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm0 4a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"})})}):g.jsx("span",{className:"ml-2 text-gray-400",title:"Schema-less Collection",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:g.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 012-2h12a2 2 0 012 2v4a2 2 0 01-2 2H4a2 2 0 01-2-2v-4z"})})})]}),g.jsxs("p",{className:"text-sm text-gray-500",children:[de.documentCount," documents"]})]}),g.jsxs("div",{className:"flex space-x-2",children:[g.jsx("button",{onClick:()=>a(`/collections/documents?database=${X}&collection=${de.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"}),g.jsx("button",{onClick:()=>Ae(de.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"})]})]},de.name)):g.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.'})})]}),m&&g.jsx(GT,{isOpen:m,onClose:()=>h(!1),onCollectionCreated:ce,databaseName:X}),y&&g.jsx(XT,{isOpen:y,onClose:()=>x(!1),onCollectionDeleted:be,databaseName:X,collectionName:V}),S&&g.jsx(AN,{isOpen:S,onClose:()=>T(!1),schema:E,collectionName:j})]})},NN=({isOpen:n,onClose:a,onDocumentInserted:s,databaseName:r,collectionName:o,onSuccess:c})=>{const[f,p]=w.useState(`{
|
|
74
|
-
|
|
75
|
-
}`),[m,h]=w.useState(""),[y,x]=w.useState(!1),{TransactionKey:S}=Nt(E=>E),T=E=>_e(null,null,function*(){var R;E.preventDefault(),h("");try{const j=JSON.parse(f);x(!0);const M=yield we.post(`${vt}/api/operation/create/?dbName=${r}&collectionName=${o}&transactiontoken=${S}`,K({},j));if(M.status===200||M.status===201){const V=(R=M.data.data)==null?void 0:R.documentId,U=le(K({},j),{documentId:V||`doc_${Date.now()}`,updatedAt:new Date().toISOString()});s(U),a(),typeof c=="function"&&c()}else throw new Error("Failed to insert document")}catch(j){j instanceof SyntaxError?h("Invalid JSON format. Please check your input."):h(`Error inserting document: ${j.message}`),x(!1)}});return n?g.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:g.jsxs("div",{className:"relative bg-white rounded-lg shadow-2xl max-w-2xl w-full mx-4 max-h-[90vh] flex flex-col",children:[g.jsxs("div",{className:"flex justify-between items-center p-5 border-b",children:[g.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[g.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:g.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"]}),g.jsx("button",{onClick:a,className:"text-gray-400 hover:text-gray-500 transition-colors",children:g.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),g.jsxs("div",{className:"p-6 overflow-y-auto flex-grow",children:[g.jsxs("div",{className:"mb-4 flex items-center space-x-2 bg-blue-50 p-3 rounded-md",children:[g.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:g.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"})}),g.jsxs("p",{className:"text-sm text-blue-700",children:["Enter the document data in JSON format to insert into"," ",g.jsx("span",{className:"font-semibold",children:o})]})]}),m&&g.jsx("div",{className:"mb-4 bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:g.jsx("p",{children:m})}),g.jsxs("form",{onSubmit:T,children:[g.jsxs("div",{className:"mb-4",children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Document Data (JSON)"}),g.jsx("textarea",{value:f,onChange:E=>p(E.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}),g.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"The documentId and updatedAt fields will be automatically generated."})]}),g.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[g.jsx("button",{type:"button",onClick:a,className:"px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50 transition-colors",children:"Cancel"}),g.jsx("button",{type:"submit",disabled:y,className:`px-4 py-2 rounded-md text-white flex items-center ${y?"bg-green-500":"bg-green-600 hover:bg-green-700"} transition-colors shadow-md`,children:y?g.jsxs(g.Fragment,{children:[g.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:[g.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),g.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},RN=({isOpen:n,onClose:a,onDocumentUpdated:s,document:r,databaseName:o,collectionName:c})=>{const[f,p]=w.useState(""),[m,h]=w.useState(""),[y,x]=w.useState(!1),{TransactionKey:S}=Nt(E=>E);w.useEffect(()=>{if(r){const E=r,{documentId:R,updatedAt:j}=E,M=st(E,["documentId","updatedAt"]);p(JSON.stringify(M,null,2))}},[r]);const T=E=>_e(null,null,function*(){var R;E.preventDefault(),h("");try{const j=JSON.parse(f);x(!0);const M=yield we.put(`${vt}/api/operation/update/?dbName=${o}&collectionName=${c}&documentId=${r.documentId}&transactiontoken=${S}`,K({},j));if(M.status===200){const V=((R=M.data.data)==null?void 0:R.document)||le(K({},j),{documentId:r.documentId,updatedAt:new Date().toISOString()});s(V),a()}else throw new Error("Failed to update document")}catch(j){j instanceof SyntaxError?h("Invalid JSON format. Please check your input."):h(`Error updating document: ${j.message}`),x(!1)}});return n?g.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:g.jsxs("div",{className:"relative bg-white rounded-lg shadow-2xl max-w-2xl w-full mx-4 max-h-[90vh] flex flex-col",children:[g.jsxs("div",{className:"flex justify-between items-center p-5 border-b",children:[g.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[g.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:g.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"]}),g.jsx("button",{onClick:a,className:"text-gray-400 hover:text-gray-500 transition-colors",children:g.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),g.jsxs("div",{className:"p-6 overflow-y-auto flex-grow",children:[g.jsxs("div",{className:"mb-4 flex items-center space-x-2 bg-indigo-50 p-3 rounded-md",children:[g.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:g.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"})}),g.jsx("p",{className:"text-sm text-indigo-700",children:"Edit the document data in JSON format"})]}),m&&g.jsx("div",{className:"mb-4 bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:g.jsx("p",{children:m})}),g.jsxs("form",{onSubmit:T,children:[g.jsxs("div",{className:"mb-4",children:[g.jsxs("div",{className:"flex justify-between items-center mb-2",children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Document Data (JSON)"}),g.jsxs("div",{className:"flex items-center",children:[g.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:g.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"})}),g.jsxs("span",{className:"text-xs text-gray-500 font-mono",children:["ID: ",r.documentId]})]})]}),g.jsx("textarea",{value:f,onChange:E=>p(E.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}),g.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."})]}),g.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[g.jsx("button",{type:"button",onClick:a,className:"px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50 transition-colors",children:"Cancel"}),g.jsx("button",{type:"submit",disabled:y,className:`px-4 py-2 rounded-md text-white flex items-center ${y?"bg-indigo-500":"bg-indigo-600 hover:bg-indigo-700"} transition-colors shadow-md`,children:y?g.jsxs(g.Fragment,{children:[g.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:[g.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),g.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},CN=({isOpen:n,onClose:a,onDocumentDeleted:s,documentId:r,databaseName:o,collectionName:c})=>{const[f,p]=w.useState(!1),[m,h]=w.useState(""),{TransactionKey:y}=Nt(S=>S),x=()=>_e(null,null,function*(){try{if(p(!0),(yield we.delete(`${vt}/api/operation/delete/?dbName=${o}&collectionName=${c}&documentId=${r}&transactiontoken=${y}`)).status===200)s(r),a();else throw new Error("Failed to delete document")}catch(S){h(`Error deleting document: ${S.message}`),p(!1)}});return n?g.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:g.jsxs("div",{className:"relative bg-white rounded-lg shadow-2xl max-w-md w-full mx-4",children:[g.jsxs("div",{className:"flex justify-between items-center p-5 border-b",children:[g.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[g.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:g.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"]}),g.jsx("button",{onClick:a,className:"text-gray-400 hover:text-gray-500 transition-colors",children:g.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),g.jsxs("div",{className:"p-6",children:[g.jsx("div",{className:"bg-red-50 p-4 rounded-md mb-5",children:g.jsxs("div",{className:"flex",children:[g.jsx("div",{className:"flex-shrink-0",children:g.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:g.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"})})}),g.jsxs("div",{className:"ml-3",children:[g.jsx("h3",{className:"text-sm font-medium text-red-800",children:"Are you sure you want to delete this document?"}),g.jsx("div",{className:"mt-2 text-sm text-red-700",children:g.jsx("p",{children:"This action cannot be undone."})})]})]})}),g.jsxs("div",{className:"mb-5",children:[g.jsx("p",{className:"text-gray-700 mb-2",children:g.jsx("span",{className:"font-medium",children:"Document ID:"})}),g.jsx("div",{className:"bg-gray-50 p-2 rounded border border-gray-200 font-mono text-sm break-all",children:r})]}),g.jsxs("div",{className:"mb-5",children:[g.jsxs("p",{className:"text-gray-700 mb-1",children:[g.jsx("span",{className:"font-medium",children:"Collection:"})," ",c]}),g.jsxs("p",{className:"text-gray-700",children:[g.jsx("span",{className:"font-medium",children:"Database:"})," ",o]})]}),m&&g.jsx("div",{className:"mb-4 bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:g.jsx("p",{children:m})}),g.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[g.jsx("button",{type:"button",onClick:a,className:"px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50 transition-colors",children:"Cancel"}),g.jsx("button",{onClick:x,disabled:f,className:`px-4 py-2 rounded-md text-white flex items-center ${f?"bg-red-500":"bg-red-600 hover:bg-red-700"} transition-colors shadow-md`,children:f?g.jsxs(g.Fragment,{children:[g.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:[g.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),g.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},DN=({isOpen:n,onClose:a,databaseName:s,collectionName:r,onAggregationResults:o})=>{const[c,f]=w.useState('[{ "$match": {} }]'),[p,m]=w.useState(!1),[h,y]=w.useState(null),{TransactionKey:x}=Nt(E=>E),S=()=>_e(null,null,function*(){var E,R;try{m(!0),y(null);const j=JSON.parse(c),M=yield we.post(`${vt}/api/operation/aggregate/?dbName=${s}&collectionName=${r}`,{aggregation:j},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${x}`}});if(M.data&&M.data.data){const V=M.data.data.documents||M.data.data;o(V,j),a()}}catch(j){console.error("Aggregation error:",j),y(((R=(E=j.response)==null?void 0:E.data)==null?void 0:R.message)||j.message||"Failed to run aggregation")}finally{m(!1)}}),T=()=>{y(null),a()};return n?g.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4",children:g.jsxs("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-3xl max-h-[90vh] flex flex-col",children:[g.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:[g.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Run Aggregation Pipeline"}),g.jsx("button",{onClick:T,className:"text-gray-500 hover:text-gray-700 focus:outline-none",children:g.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),g.jsxs("div",{className:"flex-1 overflow-auto p-6",children:[g.jsxs("div",{className:"mb-4",children:[g.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Enter your MongoDB aggregation pipeline as a JSON array. Example:"}),g.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 } }]'}),g.jsxs("p",{className:"text-sm text-gray-600 mb-4",children:["Running on ",g.jsx("span",{className:"font-semibold",children:r})," ","in database ",g.jsx("span",{className:"font-semibold",children:s})]})]}),g.jsxs("div",{className:"mb-4",children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Aggregation Pipeline"}),g.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:c,onChange:E=>f(E.target.value),placeholder:'[{ "$match": {} }]'})]}),h&&g.jsx("div",{className:"bg-red-50 border-l-4 border-red-500 p-4 mb-4",children:g.jsxs("div",{className:"flex",children:[g.jsx("div",{className:"flex-shrink-0",children:g.jsx("svg",{className:"h-5 w-5 text-red-500",viewBox:"0 0 20 20",fill:"currentColor",children:g.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"})})}),g.jsx("div",{className:"ml-3",children:g.jsx("p",{className:"text-sm text-red-700",children:h})})]})})]}),g.jsxs("div",{className:"px-6 py-4 border-t border-gray-200 flex justify-end",children:[g.jsx("button",{onClick:T,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"}),g.jsx("button",{onClick:S,disabled:p,className:`px-4 py-2 text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 rounded-md flex items-center ${p?"opacity-70 cursor-not-allowed":""}`,children:p?g.jsxs(g.Fragment,{children:[g.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:[g.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),g.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..."]}):g.jsxs(g.Fragment,{children:[g.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:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})}),"Run Aggregation"]})})]})]})}):null},ry=()=>{const[n]=Ey(),a=sl(),[s,r]=w.useState(!0),[o,c]=w.useState([]),[f,p]=w.useState(!0),[m,h]=w.useState(1),y=w.useRef(),x=n.get("database"),S=n.get("collection"),{TransactionKey:T}=Nt(ee=>ee),[E,R]=w.useState(!1),[j,M]=w.useState(!1),[V,U]=w.useState(!1),[X,H]=w.useState(!1),[Q,W]=w.useState(null),[F,ce]=w.useState(!1),[Ae,be]=w.useState([]),[Ee,de]=w.useState([]),Ve=w.useCallback((ee=1,fe=!1)=>_e(null,null,function*(){try{r(!0);const Me=yield we.get(`${vt}/api/operation/all/?dbName=${x}&collectionName=${S}&page=${ee}&transactiontoken=${T}`);if(Me.status===200){const zn=Me.data.data.data.documents||[];c(fe?zn:tn=>[...tn,...zn]),p(zn.length===10)}r(!1)}catch(Me){console.error("Error fetching documents:",Me),r(!1)}}),[x,S,T]);w.useEffect(()=>{if(!x||!S){a("/collections");return}ce(!1),be([]),h(1),c([]),Ve(1,!0)},[x,S,a,Ve]);const Re=w.useCallback(ee=>{s||F||(y.current&&y.current.disconnect(),y.current=new IntersectionObserver(fe=>{fe[0].isIntersecting&&f&&(h(Me=>Me+1),Ve(m+1))}),ee&&y.current.observe(ee))},[s,f,Ve,m,F]),k=()=>{a(`/collections?database=${x}`)},Z=ee=>{c(fe=>[ee,...fe])},I=ee=>{W(ee),M(!0)},me=ee=>{W(ee),U(!0)},N=()=>_e(null,null,function*(){try{r(!0);const ee=yield we.post(`${vt}/api/operation/aggregate/?dbName=${x}&collectionName=${S}`,{aggregation:Ae},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${T}`}});ee.data&&ee.data.data&&de(ee.data.data.documents||ee.data.data),r(!1)}catch(ee){console.error("Error re-running aggregation:",ee),r(!1)}}),G=ee=>{c(fe=>fe.map(Me=>Me.documentId===ee.documentId?ee:Me)),F&&N()},J=ee=>{c(fe=>fe.filter(Me=>Me.documentId!==ee)),F&&N()},$=(ee,fe)=>{de(ee),be(fe),ce(!0)},ae=()=>{ce(!1),be([]),de([]),Ve(1,!0)},Se=ee=>new Date(ee).toLocaleString(),ue=ee=>{try{return!Array.isArray(ee)||ee.length===0?"No conditions":ee.map((Me,zn)=>{const tn=Object.keys(Me)[0];return`${tn.replace("$","")}: ${JSON.stringify(Me[tn]).substring(0,30)}${JSON.stringify(Me[tn]).length>30?"...":""}`}).join(", ")}catch(fe){return"Invalid pipeline"}};return g.jsxs("div",{className:"container mx-auto px-4 py-6 max-w-7xl",children:[g.jsxs("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden mb-8",children:[g.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:[g.jsxs("div",{children:[g.jsx("div",{className:"flex items-center mb-2",children:g.jsxs("button",{onClick:k,className:"text-blue-600 hover:text-blue-800 flex items-center transition-colors font-medium",children:[g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-1",viewBox:"0 0 20 20",fill:"currentColor",children:g.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"]})}),g.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Documents"}),g.jsxs("div",{className:"flex items-center mt-1 text-gray-600",children:[g.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:g.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"})}),g.jsx("span",{className:"font-medium",children:S}),g.jsx("span",{className:"mx-2",children:"in"}),g.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:g.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"})}),g.jsx("span",{className:"font-medium",children:x})]})]}),g.jsxs("div",{className:"flex space-x-3",children:[g.jsxs("button",{onClick:()=>H(!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:[g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:g.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"]}),g.jsxs("button",{onClick:()=>R(!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:[g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:g.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"]})]})]}),F&&g.jsxs("div",{className:"bg-indigo-50 px-6 py-3 border-b border-indigo-100 flex justify-between items-center",children:[g.jsxs("div",{className:"flex items-center",children:[g.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:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})}),g.jsxs("div",{children:[g.jsx("span",{className:"text-sm font-medium text-indigo-800",children:"Aggregation Results"}),g.jsxs("p",{className:"text-xs text-indigo-600 mt-0.5",children:["Pipeline: ",ue(Ae)]})]})]}),g.jsxs("button",{onClick:ae,className:"text-indigo-700 hover:text-indigo-900 text-sm font-medium flex items-center",children:[g.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:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Clear Aggregation"]})]}),g.jsxs("div",{className:"p-6",children:[s&&(!F&&o.length===0)?g.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(ee=>g.jsxs("div",{className:"animate-pulse bg-white rounded-lg border border-gray-200 shadow-sm p-4",children:[g.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4 mb-3"}),g.jsx("div",{className:"h-3 bg-gray-100 rounded w-1/2 mb-2"}),g.jsx("div",{className:"h-20 bg-gray-100 rounded mb-3"}),g.jsxs("div",{className:"flex justify-end",children:[g.jsx("div",{className:"h-8 bg-gray-200 rounded w-16 mr-2"}),g.jsx("div",{className:"h-8 bg-gray-200 rounded w-16"})]})]},ee))}):F?Ee.length>0?g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:Ee.map((ee,fe)=>g.jsx("div",{className:"bg-white rounded-lg border border-gray-200 shadow-sm hover:shadow-md transition-shadow overflow-hidden",children:g.jsxs("div",{className:"p-4",children:[g.jsxs("div",{className:"flex items-center justify-between mb-3",children:[g.jsxs("div",{className:"flex items-center",children:[g.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:g.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"})}),g.jsx("div",{className:"font-mono text-indigo-700 font-semibold",children:g.jsx("span",{className:"text-sm",children:ee.documentId?`ID: ${ee.documentId}`:`Result #${fe+1}`})})]}),ee.updatedAt&&g.jsx("span",{className:"text-xs text-gray-500",title:ee.updatedAt,children:Se(ee.updatedAt)})]}),g.jsx("div",{className:"bg-gray-50 rounded p-3 mb-3 h-48 overflow-y-auto",children:g.jsx("pre",{className:"text-xs font-mono whitespace-pre-wrap break-words text-gray-800",children:JSON.stringify(Object.fromEntries(Object.entries(ee).filter(([Me])=>!["documentId","updatedAt"].includes(Me))),null,2)})}),ee.documentId&&g.jsxs("div",{className:"flex justify-end space-x-2",children:[g.jsx("button",{onClick:()=>I(ee),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"}),g.jsx("button",{onClick:()=>me(ee),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"})]})]})},fe))}):g.jsxs("div",{className:"text-center py-12",children:[g.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:g.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"})}),g.jsx("p",{className:"text-gray-500 mb-2",children:"No documents match your aggregation pipeline"}),g.jsx("button",{onClick:ae,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"})]}):o.length>0?g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:o.map((ee,fe)=>g.jsx("div",{ref:!F&&fe===o.length-1?Re:null,className:"bg-white rounded-lg border border-gray-200 shadow-sm hover:shadow-md transition-shadow overflow-hidden",children:g.jsxs("div",{className:"p-4",children:[g.jsxs("div",{className:"flex items-center justify-between mb-3",children:[g.jsxs("div",{className:"flex items-center",children:[g.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:g.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"})}),g.jsx("div",{className:"font-mono text-indigo-700 font-semibold",title:ee.documentId,children:g.jsxs("span",{className:"text-sm",children:["ID: ",ee.documentId]})})]}),g.jsx("span",{className:"text-xs text-gray-500",title:ee.updatedAt,children:Se(ee.updatedAt)})]}),g.jsx("div",{className:"bg-gray-50 rounded p-3 mb-3 h-48 overflow-y-auto",children:g.jsx("pre",{className:"text-xs font-mono whitespace-pre-wrap break-words text-gray-800",children:JSON.stringify(Object.fromEntries(Object.entries(ee).filter(([Me])=>!["documentId","updatedAt"].includes(Me))),null,2)})}),g.jsxs("div",{className:"flex justify-end space-x-2",children:[g.jsx("button",{onClick:()=>I(ee),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"}),g.jsx("button",{onClick:()=>me(ee),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"})]})]})},ee.documentId))}):g.jsxs("div",{className:"text-center py-12",children:[g.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:g.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"})}),g.jsx("p",{className:"text-gray-500 mb-2",children:"No documents found in this collection"}),g.jsx("button",{onClick:()=>R(!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"})]}),s&&o.length>0&&!F&&g.jsx("div",{className:"flex justify-center items-center py-4",children:g.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:[g.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),g.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"})]})}),!s&&!f&&o.length>0&&!F&&g.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."}),F&&Ee.length>0&&g.jsxs("div",{className:"text-center py-4 text-gray-500 text-sm border-t border-gray-100 mt-6",children:["Showing all ",Ee.length," aggregation results."]})]})]}),E&&g.jsx(NN,{isOpen:E,onClose:()=>R(!1),onDocumentInserted:Z,databaseName:x,collectionName:S,onSuccess:()=>Ve(1,!0)}),j&&Q&&g.jsx(RN,{isOpen:j,onClose:()=>M(!1),onDocumentUpdated:G,document:Q,databaseName:x,collectionName:S}),V&&Q&&g.jsx(CN,{isOpen:V,onClose:()=>U(!1),onDocumentDeleted:J,documentId:Q.documentId,databaseName:x,collectionName:S}),X&&g.jsx(DN,{isOpen:X,onClose:()=>H(!1),databaseName:x,collectionName:S,onAggregationResults:$})]})};function MN(){const{loadKey:n}=Nt(r=>r),[a,s]=w.useState(!0);return w.useEffect(()=>{_e(null,null,function*(){try{yield n()}finally{s(!1)}})},[n]),a?g.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:g.jsxs("div",{className:"text-center",children:[g.jsx("div",{className:"spinner-border text-primary mb-3",role:"status",children:g.jsx("span",{className:"sr-only",children:"Loading..."})}),g.jsx("p",{className:"text-gray-600",children:"Loading application..."})]})}):g.jsx(NS,{children:g.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col",children:[g.jsx(yT,{}),g.jsx("main",{className:"flex-grow",children:g.jsxs(aS,{children:[g.jsx(Ei,{path:"/",element:g.jsx(HT,{})}),g.jsx(Ei,{path:"/operations",element:g.jsx(PT,{})}),g.jsx(Ei,{path:"/collections",element:g.jsx(jN,{})}),g.jsx(Ei,{path:"/documents",element:g.jsx(ry,{})}),g.jsx(Ei,{path:"/collections/documents",element:g.jsx(ry,{})})]})}),g.jsx(US,{})]})})}h2.createRoot(document.getElementById("root")).render(g.jsx(w.StrictMode,{children:g.jsx(MN,{})}))});export default ON();
|