axiodb 2.26.74 → 2.27.77

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.
Files changed (41) hide show
  1. package/lib/{caching/cache.operation.js → Memory/memory.operation.js} +1 -1
  2. package/lib/Memory/memory.operation.js.map +1 -0
  3. package/lib/Services/Aggregation/Aggregation.Operation.js +2 -1
  4. package/lib/Services/Aggregation/Aggregation.Operation.js.map +1 -1
  5. package/lib/Services/CRUD Operation/Delete.operation.js +3 -3
  6. package/lib/Services/CRUD Operation/Delete.operation.js.map +1 -1
  7. package/lib/Services/CRUD Operation/Reader.operation.js +3 -3
  8. package/lib/Services/CRUD Operation/Reader.operation.js.map +1 -1
  9. package/lib/Services/CRUD Operation/Update.operation.js +3 -3
  10. package/lib/Services/CRUD Operation/Update.operation.js.map +1 -1
  11. package/lib/config/DB.d.ts +1 -1
  12. package/lib/config/DB.js +2 -2
  13. package/lib/config/DB.js.map +1 -1
  14. package/lib/server/config/GlobalStorage.config.d.ts +66 -0
  15. package/lib/server/config/GlobalStorage.config.js +95 -0
  16. package/lib/server/config/GlobalStorage.config.js.map +1 -0
  17. package/lib/server/config/keys.d.ts +2 -2
  18. package/lib/server/config/keys.js +9 -1
  19. package/lib/server/config/keys.js.map +1 -1
  20. package/lib/server/controller/Key/key.controller.js +4 -2
  21. package/lib/server/controller/Key/key.controller.js.map +1 -1
  22. package/lib/server/controller/Operation/CRUD.controller.d.ts +23 -0
  23. package/lib/server/controller/Operation/CRUD.controller.js +39 -0
  24. package/lib/server/controller/Operation/CRUD.controller.js.map +1 -1
  25. package/lib/server/controller/Stats.controller.d.ts +1 -1
  26. package/lib/server/controller/Stats.controller.js +14 -3
  27. package/lib/server/controller/Stats.controller.js.map +1 -1
  28. package/lib/server/public/AxioControl/.vite/manifest.json +2 -2
  29. package/lib/server/public/AxioControl/assets/index-9nG-BJLn.css +1 -0
  30. package/lib/server/public/AxioControl/assets/index-DjMr8eMS.js +75 -0
  31. package/lib/server/public/AxioControl/index.html +2 -2
  32. package/lib/server/public/AxioControl/sw.js +1 -1
  33. package/lib/server/router/Router.js +5 -1
  34. package/lib/server/router/Router.js.map +1 -1
  35. package/lib/server/router/Routers/Operation.routes.js +1 -0
  36. package/lib/server/router/Routers/Operation.routes.js.map +1 -1
  37. package/package.json +1 -1
  38. package/lib/caching/cache.operation.js.map +0 -1
  39. package/lib/server/public/AxioControl/assets/index-BCa5aR5j.js +0 -81
  40. package/lib/server/public/AxioControl/assets/index-xtzT-Znx.css +0 -1
  41. /package/lib/{caching/cache.operation.d.ts → Memory/memory.operation.d.ts} +0 -0
@@ -1,81 +0,0 @@
1
- var Wb=Object.defineProperty,Ib=Object.defineProperties;var e2=Object.getOwnPropertyDescriptors;var Rr=Object.getOwnPropertySymbols;var gp=Object.prototype.hasOwnProperty,yp=Object.prototype.propertyIsEnumerable;var Si=(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,Z=(n,a)=>{for(var s in a||(a={}))gp.call(a,s)&&pp(n,s,a[s]);if(Rr)for(var s of Rr(a))yp.call(a,s)&&pp(n,s,a[s]);return n},re=(n,a)=>Ib(n,e2(a));var at=(n,a)=>{var s={};for(var r in n)gp.call(n,r)&&a.indexOf(r)<0&&(s[r]=n[r]);if(n!=null&&Rr)for(var r of Rr(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 Be=(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())}),ja=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 ja,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[Si("asyncIterator")]=()=>c,o("next"),o("throw"),o("return"),c},Cc=n=>{var a=n[Si("asyncIterator")],s=!1,r,o={};return a==null?(a=n[Si("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 ja(new Promise(p=>{var m=a[c](f);m instanceof Object||t2("Object expected"),p(m)}),1)}}),o[Si("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[Si("asyncIterator")])?a.call(n):(n=n[Si("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(ut=>{(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:{}},Bs={};/**
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 Bs;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 Bs.Fragment=a,Bs.jsx=s,Bs.jsxs=s,Bs}var bp;function s2(){return bp||(bp=1,Dc.exports=i2()),Dc.exports}var g=s2(),Mc={exports:{}},he={};/**
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 he;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(){}},A=Object.assign,R={};function j(N,P,J){this.props=N,this.context=P,this.refs=R,this.updater=J||T}j.prototype.isReactComponent={},j.prototype.setState=function(N,P){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,P,"setState")},j.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function M(){}M.prototype=j.prototype;function V(N,P,J){this.props=N,this.context=P,this.refs=R,this.updater=J||T}var U=V.prototype=new M;U.constructor=V,A(U,j.prototype),U.isPureReactComponent=!0;var K=Array.isArray,H={H:null,A:null,T:null,S:null,V:null},$=Object.prototype.hasOwnProperty;function W(N,P,J,X,ee,ie){return J=ie.ref,{$$typeof:n,type:N,key:P,ref:J!==void 0?J:null,props:ie}}function F(N,P){return W(N.type,P,void 0,void 0,void 0,N.props)}function ce(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function be(N){var P={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(J){return P[J]})}var xe=/\/+/g;function Ae(N,P){return typeof N=="object"&&N!==null&&N.key!=null?be(""+N.key):P.toString(36)}function de(){}function Le(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(P){N.status==="pending"&&(N.status="fulfilled",N.value=P)},function(P){N.status==="pending"&&(N.status="rejected",N.reason=P)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function je(N,P,J,X,ee){var ie=typeof N;(ie==="undefined"||ie==="boolean")&&(N=null);var ae=!1;if(N===null)ae=!0;else switch(ie){case"bigint":case"string":case"number":ae=!0;break;case"object":switch(N.$$typeof){case n:case a:ae=!0;break;case y:return ae=N._init,je(ae(N._payload),P,J,X,ee)}}if(ae)return ee=ee(N),ae=X===""?"."+Ae(N,0):X,K(ee)?(J="",ae!=null&&(J=ae.replace(xe,"$&/")+"/"),je(ee,P,J,"",function(On){return On})):ee!=null&&(ce(ee)&&(ee=F(ee,J+(ee.key==null||N&&N.key===ee.key?"":(""+ee.key).replace(xe,"$&/")+"/")+ae)),P.push(ee)),1;ae=0;var it=X===""?".":X+":";if(K(N))for(var Ve=0;Ve<N.length;Ve++)X=N[Ve],ie=it+Ae(X,Ve),ae+=je(X,P,J,ie,ee);else if(Ve=S(N),typeof Ve=="function")for(N=Ve.call(N),Ve=0;!(X=N.next()).done;)X=X.value,ie=it+Ae(X,Ve++),ae+=je(X,P,J,ie,ee);else if(ie==="object"){if(typeof N.then=="function")return je(Le(N),P,J,X,ee);throw P=String(N),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return ae}function k(N,P,J){if(N==null)return N;var X=[],ee=0;return je(N,X,"","",function(ie){return P.call(J,ie,ee++)}),X}function Q(N){if(N._status===-1){var P=N._result;P=P(),P.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=P)}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 P=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(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function me(){}return he.Children={map:k,forEach:function(N,P,J){k(N,function(){P.apply(this,arguments)},J)},count:function(N){var P=0;return k(N,function(){P++}),P},toArray:function(N){return k(N,function(P){return P})||[]},only:function(N){if(!ce(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},he.Component=j,he.Fragment=s,he.Profiler=o,he.PureComponent=V,he.StrictMode=r,he.Suspense=m,he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,he.__COMPILER_RUNTIME={__proto__:null,c:function(N){return H.H.useMemoCache(N)}},he.cache=function(N){return function(){return N.apply(null,arguments)}},he.cloneElement=function(N,P,J){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var X=A({},N.props),ee=N.key,ie=void 0;if(P!=null)for(ae in P.ref!==void 0&&(ie=void 0),P.key!==void 0&&(ee=""+P.key),P)!$.call(P,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&P.ref===void 0||(X[ae]=P[ae]);var ae=arguments.length-2;if(ae===1)X.children=J;else if(1<ae){for(var it=Array(ae),Ve=0;Ve<ae;Ve++)it[Ve]=arguments[Ve+2];X.children=it}return W(N.type,ee,void 0,void 0,ie,X)},he.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},he.createElement=function(N,P,J){var X,ee={},ie=null;if(P!=null)for(X in P.key!==void 0&&(ie=""+P.key),P)$.call(P,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(ee[X]=P[X]);var ae=arguments.length-2;if(ae===1)ee.children=J;else if(1<ae){for(var it=Array(ae),Ve=0;Ve<ae;Ve++)it[Ve]=arguments[Ve+2];ee.children=it}if(N&&N.defaultProps)for(X in ae=N.defaultProps,ae)ee[X]===void 0&&(ee[X]=ae[X]);return W(N,ie,void 0,void 0,null,ee)},he.createRef=function(){return{current:null}},he.forwardRef=function(N){return{$$typeof:p,render:N}},he.isValidElement=ce,he.lazy=function(N){return{$$typeof:y,_payload:{_status:-1,_result:N},_init:Q}},he.memo=function(N,P){return{$$typeof:h,type:N,compare:P===void 0?null:P}},he.startTransition=function(N){var P=H.T,J={};H.T=J;try{var X=N(),ee=H.S;ee!==null&&ee(J,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(me,I)}catch(ie){I(ie)}finally{H.T=P}},he.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},he.use=function(N){return H.H.use(N)},he.useActionState=function(N,P,J){return H.H.useActionState(N,P,J)},he.useCallback=function(N,P){return H.H.useCallback(N,P)},he.useContext=function(N){return H.H.useContext(N)},he.useDebugValue=function(){},he.useDeferredValue=function(N,P){return H.H.useDeferredValue(N,P)},he.useEffect=function(N,P,J){var X=H.H;if(typeof J=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return X.useEffect(N,P)},he.useId=function(){return H.H.useId()},he.useImperativeHandle=function(N,P,J){return H.H.useImperativeHandle(N,P,J)},he.useInsertionEffect=function(N,P){return H.H.useInsertionEffect(N,P)},he.useLayoutEffect=function(N,P){return H.H.useLayoutEffect(N,P)},he.useMemo=function(N,P){return H.H.useMemo(N,P)},he.useOptimistic=function(N,P){return H.H.useOptimistic(N,P)},he.useReducer=function(N,P,J){return H.H.useReducer(N,P,J)},he.useRef=function(N){return H.H.useRef(N)},he.useState=function(N){return H.H.useState(N)},he.useSyncExternalStore=function(N,P,J){return H.H.useSyncExternalStore(N,P,J)},he.useTransition=function(){return H.H.useTransition()},he.version="19.1.1",he}var wp;function zf(){return wp||(wp=1,Mc.exports=l2()),Mc.exports}var w=zf();const Cr=a2(w);var Oc={exports:{}},Vs={},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,Q){var I=k.length;k.push(Q);e:for(;0<I;){var me=I-1>>>1,N=k[me];if(0<o(N,Q))k[me]=Q,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 Q=k[0],I=k.pop();if(I!==Q){k[0]=I;e:for(var me=0,N=k.length,P=N>>>1;me<P;){var J=2*(me+1)-1,X=k[J],ee=J+1,ie=k[ee];if(0>o(X,I))ee<N&&0>o(ie,X)?(k[me]=ie,k[ee]=I,me=ee):(k[me]=X,k[J]=I,me=J);else if(ee<N&&0>o(ie,I))k[me]=ie,k[ee]=I,me=ee;else break e}}return Q}function o(k,Q){var I=k.sortIndex-Q.sortIndex;return I!==0?I:k.id-Q.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,A=!1,R=!1,j=!1,M=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate!="undefined"?setImmediate:null;function K(k){for(var Q=s(h);Q!==null;){if(Q.callback===null)r(h);else if(Q.startTime<=k)r(h),Q.sortIndex=Q.expirationTime,a(m,Q);else break;Q=s(h)}}function H(k){if(R=!1,K(k),!A)if(s(m)!==null)A=!0,$||($=!0,Ae());else{var Q=s(h);Q!==null&&je(H,Q.startTime-k)}}var $=!1,W=-1,F=5,ce=-1;function be(){return j?!0:!(n.unstable_now()-ce<F)}function xe(){if(j=!1,$){var k=n.unstable_now();ce=k;var Q=!0;try{e:{A=!1,R&&(R=!1,V(W),W=-1),T=!0;var I=S;try{t:{for(K(k),x=s(m);x!==null&&!(x.expirationTime>k&&be());){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,K(k),Q=!0;break t}x===s(m)&&r(m),K(k)}else r(m);x=s(m)}if(x!==null)Q=!0;else{var P=s(h);P!==null&&je(H,P.startTime-k),Q=!1}}break e}finally{x=null,S=I,T=!1}Q=void 0}}finally{Q?Ae():$=!1}}}var Ae;if(typeof U=="function")Ae=function(){U(xe)};else if(typeof MessageChannel!="undefined"){var de=new MessageChannel,Le=de.port2;de.port1.onmessage=xe,Ae=function(){Le.postMessage(null)}}else Ae=function(){M(xe,0)};function je(k,Q){W=M(function(){k(n.unstable_now())},Q)}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 Q=3;break;default:Q=S}var I=S;S=Q;try{return k()}finally{S=I}},n.unstable_requestPaint=function(){j=!0},n.unstable_runWithPriority=function(k,Q){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var I=S;S=k;try{return Q()}finally{S=I}},n.unstable_scheduleCallback=function(k,Q,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:Q,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,je(H,I-me))):(k.sortIndex=N,a(m,k),A||T||(A=!0,$||($=!0,Ae()))),k},n.unstable_shouldYield=be,n.unstable_wrapCallback=function(k){var Q=S;return function(){var I=S;S=Q;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:{}},dt={};/**
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 dt;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 dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,dt.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)},dt.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()}},dt.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))},dt.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},dt.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})}},dt.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)},dt.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})}},dt.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)},dt.requestFormReset=function(m){r.d.r(m)},dt.unstable_batchedUpdates=function(m,h){return m(h)},dt.useFormState=function(m,h,y){return f.H.useFormState(m,h,y)},dt.useFormStatus=function(){return f.H.useHostTransitionStatus()},dt.version="19.1.1",dt}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 Vs;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"),A=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"),K=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),be=Symbol.for("react.memo_cache_sentinel"),xe=Symbol.iterator;function Ae(e){return e===null||typeof e!="object"?null:(e=xe&&e[xe]||e["@@iterator"],typeof e=="function"?e:null)}var de=Symbol.for("react.client.reference");function Le(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 A:return"Fragment";case j:return"Profiler";case R:return"StrictMode";case H:return"Suspense";case $: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 K: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:Le(e.type)||"Memo";case F:t=e._payload,e=e._init;try{return Le(e(t))}catch(i){}}return null}var je=Array.isArray,k=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=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 P(e){return{current:e}}function J(e){0>N||(e.current=me[N],me[N]=null,N--)}function X(e,t){N++,me[N]=e.current,e.current=t}var ee=P(null),ie=P(null),ae=P(null),it=P(null);function Ve(e,t){switch(X(ae,t),X(ie,e),X(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?G0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=G0(t),e=P0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}J(ee),X(ee,e)}function On(){J(ee),J(ie),J(ae)}function fo(e){e.memoizedState!==null&&X(it,e);var t=ee.current,i=P0(t,e.type);t!==i&&(X(ie,e),X(ee,i))}function hl(e){ie.current===e&&(J(ee),J(ie)),it.current===e&&(J(it),Ds._currentValue=I)}var ho=Object.prototype.hasOwnProperty,mo=n.unstable_scheduleCallback,po=n.unstable_cancelCallback,D1=n.unstable_shouldYield,M1=n.unstable_requestPaint,en=n.unstable_now,O1=n.unstable_getCurrentPriorityLevel,Td=n.unstable_ImmediatePriority,Ed=n.unstable_UserBlockingPriority,ml=n.unstable_NormalPriority,L1=n.unstable_LowPriority,Ad=n.unstable_IdlePriority,z1=n.log,B1=n.unstable_setDisableYieldValue,_i=null,Nt=null;function Ln(e){if(typeof z1=="function"&&B1(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(_i,e)}catch(t){}}var Rt=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 pl=256,gl=4194304;function oa(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 yl(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=oa(l):(v&=b,v!==0?u=oa(v):i||(i=b&~e,i!==0&&(u=oa(i))))):(b=l&~d,b!==0?u=oa(b):v!==0?u=oa(v):i||(i=l&~e,i!==0&&(u=oa(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 Hi(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=pl;return pl<<=1,(pl&4194048)===0&&(pl=256),e}function Nd(){var e=gl;return gl<<=1,(gl&62914560)===0&&(gl=4194304),e}function go(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function ki(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,E=e.expirationTimes,L=e.hiddenUpdates;for(i=v&~i;0<i;){var q=31-Rt(i),G=1<<q;b[q]=0,E[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&=~G}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-Rt(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-Rt(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=Q.p;return e!==0?e:(e=window.event,e===void 0?32:up(e.type))}function q1(e,t){var i=Q.p;try{return Q.p=e,t()}finally{Q.p=i}}var zn=Math.random().toString(36).slice(2),ct="__reactFiber$"+zn,yt="__reactProps$"+zn,Va="__reactContainer$"+zn,xo="__reactEvents$"+zn,Y1="__reactListeners$"+zn,G1="__reactHandles$"+zn,Md="__reactResources$"+zn,qi="__reactMarker$"+zn;function bo(e){delete e[ct],delete e[yt],delete e[xo],delete e[Y1],delete e[G1]}function Ua(e){var t=e[ct];if(t)return t;for(var i=e.parentNode;i;){if(t=i[Va]||i[ct]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=Q0(e);e!==null;){if(i=e[ct])return i;e=Q0(e)}return t}e=i,i=e.parentNode}return null}function _a(e){if(e=e[ct]||e[Va]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Yi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Ha(e){var t=e[Md];return t||(t=e[Md]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[qi]=!0}var Od=new Set,Ld={};function ua(e,t){ka(e,t),ka(e+"Capture",t)}function ka(e,t){for(Ld[e]=t,e=0;e<t.length;e++)Od.add(t[e])}var P1=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:P1.test(e)?Bd[e]=!0:(zd[e]=!0,!1)}function vl(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 xl(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 dn(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 qa(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 G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(B){var z=B}Reflect.construct(e,[],G)}else{try{G.call()}catch(B){z=B}e.call(G.prototype)}}else{try{throw Error()}catch(B){z=B}(G=e())&&typeof G.catch=="function"&&G.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 E=v.split(`
44
- `),L=b.split(`
45
- `);for(u=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;u<L.length&&!L[u].includes("DetermineComponentFrameRoot");)u++;if(l===E.length||u===L.length)for(l=E.length-1,u=L.length-1;1<=l&&0<=u&&E[l]!==L[u];)u--;for(;1<=l&&0<=u;l--,u--)if(E[l]!==L[u]){if(l!==1||u!==1)do if(l--,u--,0>u||E[l]!==L[u]){var q=`
46
- `+E[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:"")?qa(i):""}function K1(e){switch(e.tag){case 26:case 27:case 5:return qa(e.type);case 16:return qa("Lazy");case 13:return qa("Suspense");case 19:return qa("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 qa("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 Vt(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 bl(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 Sl(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 Ut(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=""+Vt(t)):e.value!==""+Vt(t)&&(e.value=""+Vt(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?Ao(e,v,Vt(t)):i!=null?Ao(e,v,Vt(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=""+Vt(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?""+Vt(i):"",t=t!=null?""+Vt(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"&&Sl(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Ya(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=""+Vt(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=""+Vt(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+Vt(i):""}function Yd(e,t,i,l){if(t==null){if(l!=null){if(i!=null)throw Error(r(92));if(je(l)){if(1<l.length)throw Error(r(93));l=l[0]}i=l}i==null&&(i=""),t=i}i=Vt(t),e.defaultValue=i,l=e.textContent,l===i&&l!==""&&l!==null&&(e.value=l)}function Ga(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 Gd(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 Pd(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&&Gd(e,u,l)}else for(var d in t)t.hasOwnProperty(d)&&Gd(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 wl(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 Pa=null,Xa=null;function Xd(e){var t=_a(e);if(t&&(e=t.stateNode)){var i=e[yt]||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="'+Ut(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var l=i[t];if(l!==e&&l.form===e.form){var u=l[yt]||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&&Ya(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,(Pa!==null||Xa!==null)&&(rr(),Pa&&(t=Pa,e=Xa,Xa=Pa=null,Xd(t),e)))for(t=0;t<e.length;t++)Xd(e[t])}}function Gi(e,t){var i=e.stateNode;if(i===null)return null;var l=i[yt]||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 hn=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),Do=!1;if(hn)try{var Pi={};Object.defineProperty(Pi,"passive",{get:function(){Do=!0}}),window.addEventListener("test",Pi,Pi),window.removeEventListener("test",Pi,Pi)}catch(e){Do=!1}var Bn=null,Mo=null,Tl=null;function Zd(){if(Tl)return Tl;var e,t=Mo,i=t.length,l,u="value"in Bn?Bn.value:Bn.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 Tl=u.slice(e,1<l?1-l:void 0)}function El(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 Al(){return!0}function Qd(){return!1}function vt(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)?Al: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=Al)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Al)},persist:function(){},isPersistent:Al}),t}var ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jl=vt(ca),Xi=y({},ca,{view:0,detail:0}),W1=vt(Xi),Oo,Lo,Ki,Nl=y({},Xi,{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!==Ki&&(Ki&&e.type==="mousemove"?(Oo=e.screenX-Ki.screenX,Lo=e.screenY-Ki.screenY):Lo=Oo=0,Ki=e),Oo)},movementY:function(e){return"movementY"in e?e.movementY:Lo}}),Fd=vt(Nl),I1=y({},Nl,{dataTransfer:0}),ex=vt(I1),tx=y({},Xi,{relatedTarget:0}),zo=vt(tx),nx=y({},ca,{animationName:0,elapsedTime:0,pseudoElement:0}),ax=vt(nx),ix=y({},ca,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sx=vt(ix),lx=y({},ca,{data:0}),$d=vt(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({},Xi,{key:function(e){if(e.key){var t=rx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=El(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"?El(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?El(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),dx=vt(fx),hx=y({},Nl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jd=vt(hx),mx=y({},Xi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bo}),px=vt(mx),gx=y({},ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),yx=vt(gx),vx=y({},Nl,{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=vt(vx),bx=y({},ca,{newState:0,oldState:0}),Sx=vt(bx),wx=[9,13,27,32],Vo=hn&&"CompositionEvent"in window,Zi=null;hn&&"documentMode"in document&&(Zi=document.documentMode);var Tx=hn&&"TextEvent"in window&&!Zi,Wd=hn&&(!Vo||Zi&&8<Zi&&11>=Zi),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 Ka=!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(Ka)return e==="compositionend"||!Vo&&th(e,t)?(e=Zd(),Tl=Mo=Bn=null,Ka=!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){Pa?Xa?Xa.push(l):Xa=[l]:Pa=l,t=hr(t,"onChange"),0<t.length&&(i=new jl("onChange","change",null,i,l),e.push({event:i,listeners:t}))}var Qi=null,Fi=null;function Nx(e){_0(e,0)}function Rl(e){var t=Yi(e);if(Hd(t))return e}function sh(e,t){if(e==="change")return t}var lh=!1;if(hn){var Uo;if(hn){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(){Qi&&(Qi.detachEvent("onpropertychange",uh),Fi=Qi=null)}function uh(e){if(e.propertyName==="value"&&Rl(Fi)){var t=[];ih(t,Fi,e,Ro(e)),Kd(Nx,t)}}function Rx(e,t,i){e==="focusin"?(oh(),Qi=t,Fi=i,Qi.attachEvent("onpropertychange",uh)):e==="focusout"&&oh()}function Cx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Rl(Fi)}function Dx(e,t){if(e==="click")return Rl(t)}function Mx(e,t){if(e==="input"||e==="change")return Rl(t)}function Ox(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:Ox;function $i(e,t){if(Ct(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)||!Ct(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=Sl(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=Sl(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=hn&&"documentMode"in document&&11>=document.documentMode,Za=null,ko=null,Ji=null,qo=!1;function mh(e,t,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;qo||Za==null||Za!==Sl(l)||(l=Za,"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}),Ji&&$i(Ji,l)||(Ji=l,l=hr(ko,"onSelect"),0<l.length&&(t=new jl("onSelect","select",null,t,i),e.push({event:t,listeners:l}),t.target=Za)))}function fa(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var Qa={animationend:fa("Animation","AnimationEnd"),animationiteration:fa("Animation","AnimationIteration"),animationstart:fa("Animation","AnimationStart"),transitionrun:fa("Transition","TransitionRun"),transitionstart:fa("Transition","TransitionStart"),transitioncancel:fa("Transition","TransitionCancel"),transitionend:fa("Transition","TransitionEnd")},Yo={},ph={};hn&&(ph=document.createElement("div").style,"AnimationEvent"in window||(delete Qa.animationend.animation,delete Qa.animationiteration.animation,delete Qa.animationstart.animation),"TransitionEvent"in window||delete Qa.transitionend.transition);function da(e){if(Yo[e])return Yo[e];if(!Qa[e])return e;var t=Qa[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in ph)return Yo[e]=t[i];return e}var gh=da("animationend"),yh=da("animationiteration"),vh=da("animationstart"),zx=da("transitionrun"),Bx=da("transitionstart"),Vx=da("transitioncancel"),xh=da("transitionend"),bh=new Map,Go="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(" ");Go.push("scrollEnd");function Qt(e,t){bh.set(e,t),ua(t,[e])}var Sh=new WeakMap;function _t(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 Ht=[],Fa=0,Po=0;function Cl(){for(var e=Fa,t=Po=Fa=0;t<e;){var i=Ht[t];Ht[t++]=null;var l=Ht[t];Ht[t++]=null;var u=Ht[t];Ht[t++]=null;var d=Ht[t];if(Ht[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 Dl(e,t,i,l){Ht[Fa++]=e,Ht[Fa++]=t,Ht[Fa++]=i,Ht[Fa++]=l,Po|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Xo(e,t,i,l){return Dl(e,t,i,l),Ml(e)}function $a(e,t){return Dl(e,null,null,t),Ml(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-Rt(i),e=d.hiddenUpdates,l=e[u],l===null?e[u]=[t]:l.push(t),t.lane=i|536870912),d):null}function Ml(e){if(50<ws)throw ws=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 Ja={};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 Dt(e,t,i,l){return new Ux(e,t,i,l)}function Ko(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mn(e,t){var i=e.alternate;return i===null?(i=Dt(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 Ol(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,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=Dt(31,i,t,u),e.elementType=ce,e.lanes=d,e;case A:return ha(i.children,u,d,t);case R:v=8,u|=24;break;case j:return e=Dt(12,i,t,u|2),e.elementType=j,e.lanes=d,e;case H:return e=Dt(13,i,t,u),e.elementType=H,e.lanes=d,e;case $:return e=Dt(19,i,t,u),e.elementType=$,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 K: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=Dt(v,i,t,u),t.elementType=e,t.type=l,t.lanes=d,t}function ha(e,t,i,l){return e=Dt(7,e,l,t),e.lanes=i,e}function Zo(e,t,i){return e=Dt(6,e,null,t),e.lanes=i,e}function Qo(e,t,i){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Wa=[],Ia=0,Ll=null,zl=0,kt=[],qt=0,ma=null,pn=1,gn="";function pa(e,t){Wa[Ia++]=zl,Wa[Ia++]=Ll,Ll=e,zl=t}function Eh(e,t,i){kt[qt++]=pn,kt[qt++]=gn,kt[qt++]=ma,ma=e;var l=pn;e=gn;var u=32-Rt(l)-1;l&=~(1<<u),i+=1;var d=32-Rt(t)+u;if(30<d){var v=u-u%5;d=(l&(1<<v)-1).toString(32),l>>=v,u-=v,pn=1<<32-Rt(t)+u|i<<u|l,gn=d+e}else pn=1<<d|i<<u|l,gn=e}function Fo(e){e.return!==null&&(pa(e,1),Eh(e,1,0))}function $o(e){for(;e===Ll;)Ll=Wa[--Ia],Wa[Ia]=null,zl=Wa[--Ia],Wa[Ia]=null;for(;e===ma;)ma=kt[--qt],kt[qt]=null,gn=kt[--qt],kt[qt]=null,pn=kt[--qt],kt[qt]=null}var pt=null,Ye=null,Ee=!1,ga=null,tn=!1,Jo=Error(r(519));function ya(e){var t=Error(r(418,""));throw es(_t(t,e)),Jo}function Ah(e){var t=e.stateNode,i=e.type,l=e.memoizedProps;switch(t[ct]=e,t[yt]=l,i){case"dialog":ve("cancel",t),ve("close",t);break;case"iframe":case"object":case"embed":ve("load",t);break;case"video":case"audio":for(i=0;i<Es.length;i++)ve(Es[i],t);break;case"source":ve("error",t);break;case"img":case"image":case"link":ve("error",t),ve("load",t);break;case"details":ve("toggle",t);break;case"input":ve("invalid",t),kd(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),bl(t);break;case"select":ve("invalid",t);break;case"textarea":ve("invalid",t),Yd(t,l.value,l.defaultValue,l.children),bl(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&&(ve("beforetoggle",t),ve("toggle",t)),l.onScroll!=null&&ve("scroll",t),l.onScrollEnd!=null&&ve("scrollend",t),l.onClick!=null&&(t.onclick=mr),t=!0):t=!1,t||ya(e)}function jh(e){for(pt=e.return;pt;)switch(pt.tag){case 5:case 13:tn=!1;return;case 27:case 3:tn=!0;return;default:pt=pt.return}}function Wi(e){if(e!==pt)return!1;if(!Ee)return jh(e),Ee=!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&&Ye&&ya(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){Ye=$t(e.nextSibling);break e}t--}else i!=="$"&&i!=="$!"&&i!=="$?"||t++;e=e.nextSibling}Ye=null}}else t===27?(t=Ye,Jn(e.type)?(e=yc,yc=null,Ye=e):Ye=t):Ye=pt?$t(e.stateNode.nextSibling):null;return!0}function Ii(){Ye=pt=null,Ee=!1}function Nh(){var e=ga;return e!==null&&(St===null?St=e:St.push.apply(St,e),ga=null),e}function es(e){ga===null?ga=[e]:ga.push(e)}var Wo=P(null),va=null,yn=null;function Vn(e,t,i){X(Wo,t._currentValue),t._currentValue=i}function vn(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 E=0;E<t.length;E++)if(b.context===t[E]){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 ts(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;Ct(u.pendingProps.value,v.value)||(e!==null?e.push(b):e=[b])}}else if(u===it.current){if(v=u.alternate,v===null)throw Error(r(387));v.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Ds):e=[Ds])}u=u.return}e!==null&&eu(t,e,i,l),t.flags|=262144}function Bl(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function xa(e){va=e,yn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return Rh(va,e)}function Vl(e,t){return va===null&&xa(e),Rh(e,t)}function Rh(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},yn===null){if(e===null)throw Error(r(308));yn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else yn=yn.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,Je={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function tu(){return{controller:new _x,data:new Map,refCount:0}}function ns(e){e.refCount--,e.refCount===0&&Hx(kx,function(){e.controller.abort()})}var as=null,nu=0,ei=0,ti=null;function qx(e,t){if(as===null){var i=as=[];nu=0,ei=ic(),ti={status:"pending",value:void 0,then:function(l){i.push(l)}}}return nu++,t.then(Ch,Ch),t}function Ch(){if(--nu===0&&as!==null){ti!==null&&(ti.status="fulfilled");var e=as;as=null,ei=0,ti=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 ba=P(null);function au(){var e=ba.current;return e!==null?e:ze.pooledCache}function Ul(e,t){t===null?X(ba,ba.current):X(ba,t.pool)}function Mh(){var e=au();return e===null?null:{parent:Je._currentValue,pool:e}}var is=Error(r(460)),Oh=Error(r(474)),_l=Error(r(542)),iu={then:function(){}};function Lh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Hl(){}function zh(e,t,i){switch(i=e[i],i===void 0?e.push(t):i!==t&&(t.then(Hl,Hl),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(Hl,Hl);else{if(e=ze,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 ss=t,is}}var ss=null;function Bh(){if(ss===null)throw Error(r(459));var e=ss;return ss=null,e}function Vh(e){if(e===is||e===_l)throw Error(r(483))}var Un=!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 _n(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Hn(e,t,i){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ne&2)!==0){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,t=Ml(e),wh(e,null,i),t}return Dl(e,l,t,i),Ml(e)}function ls(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 rs(){if(ou){var e=ti;if(e!==null)throw e}}function os(e,t,i,l){ou=!1;var u=e.updateQueue;Un=!1;var d=u.firstBaseUpdate,v=u.lastBaseUpdate,b=u.shared.pending;if(b!==null){u.shared.pending=null;var E=b,L=E.next;E.next=null,v===null?d=L:v.next=L,v=E;var q=e.alternate;q!==null&&(q=q.updateQueue,b=q.lastBaseUpdate,b!==v&&(b===null?q.firstBaseUpdate=L:b.next=L,q.lastBaseUpdate=E))}if(d!==null){var G=u.baseState;v=0,q=L=E=null,b=d;do{var z=b.lane&-536870913,B=z!==b.lane;if(B?(Se&z)===z:(l&z)===z){z!==0&&z===ei&&(ou=!0),q!==null&&(q=q.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var oe=e,se=b;z=t;var Me=i;switch(se.tag){case 1:if(oe=se.payload,typeof oe=="function"){G=oe.call(Me,G,z);break e}G=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=se.payload,z=typeof oe=="function"?oe.call(Me,G,z):oe,z==null)break e;G=y({},G,z);break e;case 2:Un=!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,E=G):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&&(E=G),u.baseState=E,u.firstBaseUpdate=L,u.lastBaseUpdate=q,d===null&&(u.shared.lanes=0),Zn|=v,e.lanes=v,e.memoizedState=G}}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 ni=P(null),kl=P(0);function Hh(e,t){e=An,X(kl,e),X(ni,t),An=e|t.baseLanes}function uu(){X(kl,An),X(ni,ni.current)}function cu(){An=kl.current,J(ni),J(kl)}var kn=0,pe=null,Ce=null,Qe=null,ql=!1,ai=!1,Sa=!1,Yl=0,us=0,ii=null,Gx=0;function Xe(){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(!Ct(e[i],t[i]))return!1;return!0}function du(e,t,i,l,u,d){return kn=d,pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?wm:Tm,Sa=!1,d=i(l,u),Sa=!1,ai&&(d=qh(t,i,l,u)),kh(e),d}function kh(e){k.H=Ql;var t=Ce!==null&&Ce.next!==null;if(kn=0,Qe=Ce=pe=null,ql=!1,us=0,ii=null,t)throw Error(r(300));e===null||et||(e=e.dependencies,e!==null&&Bl(e)&&(et=!0))}function qh(e,t,i,l){pe=e;var u=0;do{if(ai&&(ii=null),us=0,ai=!1,25<=u)throw Error(r(301));if(u+=1,Qe=Ce=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(ai);return d}function Px(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?cs(t):t,e=e.useState()[0],(Ce!==null?Ce.memoizedState:null)!==e&&(pe.flags|=1024),t}function hu(){var e=Yl!==0;return Yl=0,e}function mu(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function pu(e){if(ql){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ql=!1}kn=0,Qe=Ce=pe=null,ai=!1,us=Yl=0,ii=null}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?pe.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Fe(){if(Ce===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Qe===null?pe.memoizedState:Qe.next;if(t!==null)Qe=t,Ce=e;else{if(e===null)throw pe.alternate===null?Error(r(467)):Error(r(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Qe===null?pe.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function gu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cs(e){var t=us;return us+=1,ii===null&&(ii=[]),e=zh(ii,e,t),t=pe,(Qe===null?t.memoizedState:Qe.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 cs(e);if(e.$$typeof===U)return ft(e)}throw Error(r(438,String(e)))}function yu(e){var t=null,i=pe.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var l=pe.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(),pe.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]=be;return t.index++,i}function xn(e,t){return typeof t=="function"?t(e):t}function Pl(e){var t=Fe();return vu(t,Ce,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,E=null,L=t,q=!1;do{var G=L.lane&-536870913;if(G!==L.lane?(Se&G)===G:(kn&G)===G){var z=L.revertLane;if(z===0)E!==null&&(E=E.next={lane:0,revertLane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),G===ei&&(q=!0);else if((kn&z)===z){L=L.next,z===ei&&(q=!0);continue}else G={lane:0,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},E===null?(b=E=G,v=d):E=E.next=G,pe.lanes|=z,Zn|=z;G=L.action,Sa&&i(d,G),d=L.hasEagerState?L.eagerState:i(d,G)}else z={lane:G,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},E===null?(b=E=z,v=d):E=E.next=z,pe.lanes|=G,Zn|=G;L=L.next}while(L!==null&&L!==t);if(E===null?v=d:E.next=b,!Ct(d,e.memoizedState)&&(et=!0,q&&(i=ti,i!==null)))throw i;e.memoizedState=d,e.baseState=v,e.baseQueue=E,l.lastRenderedState=d}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function xu(e){var t=Fe(),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);Ct(d,t.memoizedState)||(et=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),i.lastRenderedState=d}return[d,l]}function Yh(e,t,i){var l=pe,u=Fe(),d=Ee;if(d){if(i===void 0)throw Error(r(407));i=i()}else i=t();var v=!Ct((Ce||u).memoizedState,i);v&&(u.memoizedState=i,et=!0),u=u.queue;var b=Xh.bind(null,l,u,e);if(fs(2048,8,b,[e]),u.getSnapshot!==t||v||Qe!==null&&Qe.memoizedState.tag&1){if(l.flags|=2048,si(9,Xl(),Ph.bind(null,l,u,i,t),null),ze===null)throw Error(r(349));d||(kn&124)!==0||Gh(l,t,i)}return i}function Gh(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=pe.updateQueue,t===null?(t=gu(),pe.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function Ph(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!Ct(e,i)}catch(l){return!0}}function Zh(e){var t=$a(e,2);t!==null&&Bt(t,e,2)}function bu(e){var t=xt();if(typeof e=="function"){var i=e;if(e=i(),Sa){Ln(!0);try{i()}finally{Ln(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:e},t}function Qh(e,t,i,l){return e.baseState=i,vu(e,Ce,typeof l=="function"?l:xn)}function Xx(e,t,i,l,u){if(Zl(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),E=k.S;E!==null&&E(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(Ee){var i=ze.formState;if(i!==null){e:{var l=pe;if(Ee){if(Ye){t:{for(var u=Ye,d=tn;u.nodeType!==8;){if(!d){u=null;break t}if(u=$t(u.nextSibling),u===null){u=null;break t}}d=u.data,u=d==="F!"||d==="F"?u:null}if(u){Ye=$t(u.nextSibling),l=u.data==="F!";break e}}ya(l)}l=!1}l&&(t=i[0])}}return i=xt(),i.memoizedState=i.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ih,lastRenderedState:t},i.queue=l,i=xm.bind(null,pe,l),l.dispatch=i,l=bu(!1),d=ju.bind(null,pe,!1,l.queue),l=xt(),u={state:t,dispatch:null,action:e,pending:null},l.queue=u,i=Xx.bind(null,pe,u,d,i),u.dispatch=i,l.memoizedState=e,[t,i,!1]}function tm(e){var t=Fe();return nm(t,Ce,e)}function nm(e,t,i){if(t=vu(e,t,Ih)[0],e=Pl(xn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=cs(t)}catch(v){throw v===is?_l:v}else l=t;t=Fe();var u=t.queue,d=u.dispatch;return i!==t.memoizedState&&(pe.flags|=2048,si(9,Xl(),Kx.bind(null,u,i),null)),[l,d,e]}function Kx(e,t){e.action=t}function am(e){var t=Fe(),i=Ce;if(i!==null)return nm(t,i,e);Fe(),t=t.memoizedState,i=Fe();var l=i.queue.dispatch;return i.memoizedState=e,[t,l,!1]}function si(e,t,i,l){return e={tag:e,create:i,deps:l,inst:t,next:null},t=pe.updateQueue,t===null&&(t=gu(),pe.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 Xl(){return{destroy:void 0,resource:void 0}}function im(){return Fe().memoizedState}function Kl(e,t,i,l){var u=xt();l=l===void 0?null:l,pe.flags|=e,u.memoizedState=si(1|t,Xl(),i,l)}function fs(e,t,i,l){var u=Fe();l=l===void 0?null:l;var d=u.memoizedState.inst;Ce!==null&&l!==null&&fu(l,Ce.memoizedState.deps)?u.memoizedState=si(t,d,i,l):(pe.flags|=e,u.memoizedState=si(1|t,d,i,l))}function sm(e,t){Kl(8390656,8,e,t)}function lm(e,t){fs(2048,8,e,t)}function rm(e,t){return fs(4,2,e,t)}function om(e,t){return fs(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,fs(4,4,um.bind(null,t,e),i)}function wu(){}function fm(e,t){var i=Fe();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=Fe();t=t===void 0?null:t;var l=i.memoizedState;if(t!==null&&fu(t,l[1]))return l[0];if(l=e(),Sa){Ln(!0);try{e()}finally{Ln(!1)}}return i.memoizedState=[l,t],l}function Tu(e,t,i){return i===void 0||(kn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=i,e=p0(),pe.lanes|=e,Zn|=e,i)}function hm(e,t,i,l){return Ct(i,t)?i:ni.current!==null?(e=Tu(e,i,l),Ct(e,t)||(et=!0),e):(kn&42)===0?(et=!0,e.memoizedState=i):(e=p0(),pe.lanes|=e,Zn|=e,t)}function mm(e,t,i,l,u){var d=Q.p;Q.p=d!==0&&8>d?d:8;var v=k.T,b={};k.T=b,ju(e,!1,t,i);try{var E=u(),L=k.S;if(L!==null&&L(b,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var q=Yx(E,l);ds(e,t,q,zt(e))}else ds(e,t,l,zt(e))}catch(G){ds(e,t,{then:function(){},status:"rejected",reason:G},zt())}finally{Q.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:xn,lastRenderedState:I},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,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;ds(e,t,{},zt())}function Au(){return ft(Ds)}function ym(){return Fe().memoizedState}function vm(){return Fe().memoizedState}function Qx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=zt();e=_n(i);var l=Hn(t,e,i);l!==null&&(Bt(l,t,i),ls(l,t,i)),t={cache:tu()},e.payload=t;return}t=t.return}}function Fx(e,t,i){var l=zt();i={lane:l,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},Zl(e)?bm(t,i):(i=Xo(e,t,i,l),i!==null&&(Bt(i,e,l),Sm(i,t,l)))}function xm(e,t,i){var l=zt();ds(e,t,i,l)}function ds(e,t,i,l){var u={lane:l,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(Zl(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,Ct(b,v))return Dl(e,t,u,0),ze===null&&Cl(),!1}catch(E){}finally{}if(i=Xo(e,t,u,l),i!==null)return Bt(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},Zl(e)){if(t)throw Error(r(479))}else t=Xo(e,i,l,2),t!==null&&Bt(t,e,2)}function Zl(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function bm(e,t){ai=ql=!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 Ql={readContext:ft,use:Gl,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe},wm={readContext:ft,use:Gl,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:sm,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,Kl(4194308,4,um.bind(null,t,e),i)},useLayoutEffect:function(e,t){return Kl(4194308,4,e,t)},useInsertionEffect:function(e,t){Kl(4,2,e,t)},useMemo:function(e,t){var i=xt();t=t===void 0?null:t;var l=e();if(Sa){Ln(!0);try{e()}finally{Ln(!1)}}return i.memoizedState=[l,t],l},useReducer:function(e,t,i){var l=xt();if(i!==void 0){var u=i(t);if(Sa){Ln(!0);try{i(t)}finally{Ln(!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,pe,e),[l.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:function(e){e=bu(e);var t=e.queue,i=xm.bind(null,pe,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:wu,useDeferredValue:function(e,t){var i=xt();return Tu(i,e,t)},useTransition:function(){var e=bu(!1);return e=mm.bind(null,pe,e.queue,!0,!1),xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var l=pe,u=xt();if(Ee){if(i===void 0)throw Error(r(407));i=i()}else{if(i=t(),ze===null)throw Error(r(349));(Se&124)!==0||Gh(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,si(9,Xl(),Ph.bind(null,l,d,i,t),null),i},useId:function(){var e=xt(),t=ze.identifierPrefix;if(Ee){var i=gn,l=pn;i=(l&~(1<<32-Rt(l)-1)).toString(32)+i,t="«"+t+"R"+i,i=Yl++,0<i&&(t+="H"+i.toString(32)),t+="»"}else i=Gx++,t="«"+t+"r"+i.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Au,useFormState:em,useActionState:em,useOptimistic:function(e){var t=xt();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,pe,!0,i),i.dispatch=t,[e,t]},useMemoCache:yu,useCacheRefresh:function(){return xt().memoizedState=Qx.bind(null,pe)}},Tm={readContext:ft,use:Gl,useCallback:fm,useContext:ft,useEffect:lm,useImperativeHandle:cm,useInsertionEffect:rm,useLayoutEffect:om,useMemo:dm,useReducer:Pl,useRef:im,useState:function(){return Pl(xn)},useDebugValue:wu,useDeferredValue:function(e,t){var i=Fe();return hm(i,Ce.memoizedState,e,t)},useTransition:function(){var e=Pl(xn)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:cs(e),t]},useSyncExternalStore:Yh,useId:ym,useHostTransitionStatus:Au,useFormState:tm,useActionState:tm,useOptimistic:function(e,t){var i=Fe();return Qh(i,Ce,e,t)},useMemoCache:yu,useCacheRefresh:vm},$x={readContext:ft,use:Gl,useCallback:fm,useContext:ft,useEffect:lm,useImperativeHandle:cm,useInsertionEffect:rm,useLayoutEffect:om,useMemo:dm,useReducer:xu,useRef:im,useState:function(){return xu(xn)},useDebugValue:wu,useDeferredValue:function(e,t){var i=Fe();return Ce===null?Tu(i,e,t):hm(i,Ce.memoizedState,e,t)},useTransition:function(){var e=xu(xn)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:cs(e),t]},useSyncExternalStore:Yh,useId:ym,useHostTransitionStatus:Au,useFormState:am,useActionState:am,useOptimistic:function(e,t){var i=Fe();return Ce!==null?Qh(i,Ce,e,t):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:yu,useCacheRefresh:vm},li=null,hs=0;function Fl(e){var t=hs;return hs+=1,li===null&&(li=[]),zh(li,e,t)}function ms(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function $l(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=mn(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 E(D,C,O,Y){var te=O.type;return te===A?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),ms(C,O),C.return=D,C):(C=Ol(O.type,O.key,O.props,null,D.mode,Y),ms(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=ha(O,D.mode,Y,te),C.return=D,C):(C=u(C,O),C.return=D,C)}function G(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=Ol(C.type,C.key,C.props,null,D.mode,O),ms(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),G(D,C,O)}if(je(C)||Ae(C))return C=ha(C,D.mode,O,null),C.return=D,C;if(typeof C.then=="function")return G(D,Fl(C),O);if(C.$$typeof===U)return G(D,Vl(D,C),O);$l(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?E(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(je(O)||Ae(O))return te!==null?null:q(D,C,O,Y,null);if(typeof O.then=="function")return z(D,C,Fl(O),Y);if(O.$$typeof===U)return z(D,C,Vl(D,O),Y);$l(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,E(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 ge=Y._init;return Y=ge(Y._payload),B(D,C,O,Y,te)}if(je(Y)||Ae(Y))return D=D.get(O)||null,q(C,D,Y,te,null);if(typeof Y.then=="function")return B(D,C,O,Fl(Y),te);if(Y.$$typeof===U)return B(D,C,O,Vl(C,Y),te);$l(C,Y)}return null}function oe(D,C,O,Y){for(var te=null,ge=null,ne=C,le=C=0,nt=null;ne!==null&&le<O.length;le++){ne.index>le?(nt=ne,ne=null):nt=ne.sibling;var Te=z(D,ne,O[le],Y);if(Te===null){ne===null&&(ne=nt);break}e&&ne&&Te.alternate===null&&t(D,ne),C=d(Te,C,le),ge===null?te=Te:ge.sibling=Te,ge=Te,ne=nt}if(le===O.length)return i(D,ne),Ee&&pa(D,le),te;if(ne===null){for(;le<O.length;le++)ne=G(D,O[le],Y),ne!==null&&(C=d(ne,C,le),ge===null?te=ne:ge.sibling=ne,ge=ne);return Ee&&pa(D,le),te}for(ne=l(ne);le<O.length;le++)nt=B(ne,D,le,O[le],Y),nt!==null&&(e&&nt.alternate!==null&&ne.delete(nt.key===null?le:nt.key),C=d(nt,C,le),ge===null?te=nt:ge.sibling=nt,ge=nt);return e&&ne.forEach(function(na){return t(D,na)}),Ee&&pa(D,le),te}function se(D,C,O,Y){if(O==null)throw Error(r(151));for(var te=null,ge=null,ne=C,le=C=0,nt=null,Te=O.next();ne!==null&&!Te.done;le++,Te=O.next()){ne.index>le?(nt=ne,ne=null):nt=ne.sibling;var na=z(D,ne,Te.value,Y);if(na===null){ne===null&&(ne=nt);break}e&&ne&&na.alternate===null&&t(D,ne),C=d(na,C,le),ge===null?te=na:ge.sibling=na,ge=na,ne=nt}if(Te.done)return i(D,ne),Ee&&pa(D,le),te;if(ne===null){for(;!Te.done;le++,Te=O.next())Te=G(D,Te.value,Y),Te!==null&&(C=d(Te,C,le),ge===null?te=Te:ge.sibling=Te,ge=Te);return Ee&&pa(D,le),te}for(ne=l(ne);!Te.done;le++,Te=O.next())Te=B(ne,D,le,Te.value,Y),Te!==null&&(e&&Te.alternate!==null&&ne.delete(Te.key===null?le:Te.key),C=d(Te,C,le),ge===null?te=Te:ge.sibling=Te,ge=Te);return e&&ne.forEach(function(Jb){return t(D,Jb)}),Ee&&pa(D,le),te}function Me(D,C,O,Y){if(typeof O=="object"&&O!==null&&O.type===A&&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===A){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),ms(Y,O),Y.return=D,D=Y;break e}i(D,C);break}else t(D,C);C=C.sibling}O.type===A?(Y=ha(O.props.children,D.mode,Y,O.key),Y.return=D,D=Y):(Y=Ol(O.type,O.key,O.props,null,D.mode,Y),ms(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),Me(D,C,O,Y)}if(je(O))return oe(D,C,O,Y);if(Ae(O)){if(te=Ae(O),typeof te!="function")throw Error(r(150));return O=te.call(O),se(D,C,O,Y)}if(typeof O.then=="function")return Me(D,C,Fl(O),Y);if(O.$$typeof===U)return Me(D,C,Vl(D,O),Y);$l(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{hs=0;var te=Me(D,C,O,Y);return li=null,te}catch(ne){if(ne===is||ne===_l)throw ne;var ge=Dt(29,ne,null,D.mode);return ge.lanes=Y,ge.return=D,ge}finally{}}}var ri=Am(!0),jm=Am(!1),Yt=P(null),nn=null;function qn(e){var t=e.alternate;X(We,We.current&1),X(Yt,e),nn===null&&(t===null||ni.current!==null||t.memoizedState!==null)&&(nn=e)}function Nm(e){if(e.tag===22){if(X(We,We.current),X(Yt,e),nn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(nn=e)}}else Yn()}function Yn(){X(We,We.current),X(Yt,Yt.current)}function bn(e){J(Yt),nn===e&&(nn=null),J(We)}var We=P(0);function Jl(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=zt(),u=_n(l);u.payload=t,i!=null&&(u.callback=i),t=Hn(e,u,l),t!==null&&(Bt(t,e,l),ls(t,e,l))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var l=zt(),u=_n(l);u.tag=1,u.payload=t,i!=null&&(u.callback=i),t=Hn(e,u,l),t!==null&&(Bt(t,e,l),ls(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=zt(),l=_n(i);l.tag=2,t!=null&&(l.callback=t),t=Hn(e,l,i),t!==null&&(Bt(t,e,i),ls(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?!$i(i,l)||!$i(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 wa(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 Wl=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){Wl(e)}function Mm(e){console.error(e)}function Om(e){Wl(e)}function Il(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=_n(i),i.tag=3,i.payload={element:null},i.callback=function(){Il(e,t)},i}function zm(e){return e=_n(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"&&(Qn===null?Qn=new Set([this]):Qn.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&&ts(t,i,u,!0),i=Yt.current,i!==null){switch(i.tag){case 13:return nn===null?Iu():i.alternate===null&&Ge===0&&(Ge=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(Ee)return t=Yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==Jo&&(e=Error(r(422),{cause:l}),es(_t(e,i)))):(l!==Jo&&(t=Error(r(423),{cause:l}),es(_t(t,i))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=_t(l,i),u=Cu(e.stateNode,l,u),ru(e,u),Ge!==4&&(Ge=2)),!1;var d=Error(r(520),{cause:l});if(d=_t(d,i),Ss===null?Ss=[d]:Ss.push(d),Ge!==4&&(Ge=2),t===null)return!0;l=_t(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"&&(Qn===null||!Qn.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)),et=!1;function st(e,t,i,l){t.child=e===null?jm(t,null,i,l):ri(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 xa(t),l=du(e,t,i,v,d,u),b=hu(),e!==null&&!et?(mu(e,t,u),Sn(e,t,u)):(Ee&&b&&Fo(t),t.flags|=1,st(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=Ol(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:$i,i(v,l)&&e.ref===t.ref)return Sn(e,t,u)}return t.flags|=1,e=mn(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($i(d,l)&&e.ref===t.ref)if(et=!1,t.pendingProps=l=d,Uu(e,u))(e.flags&131072)!==0&&(et=!0);else return t.lanes=e.lanes,Sn(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&&Ul(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?(Ul(t,d.cachePool),Hh(t,d),Yn(),t.memoizedState=null):(e!==null&&Ul(t,null),uu(),Yn());return st(e,t,u,i),t.child}function qm(e,t,i,l){var u=au();return u=u===null?null:{parent:Je._currentValue,pool:u},t.memoizedState={baseLanes:i,cachePool:u},e!==null&&Ul(t,null),uu(),Nm(t),e!==null&&ts(e,t,l,!0),null}function er(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 xa(t),i=du(e,t,i,l,void 0,u),l=hu(),e!==null&&!et?(mu(e,t,u),Sn(e,t,u)):(Ee&&l&&Fo(t),t.flags|=1,st(e,t,i,u),t.child)}function Ym(e,t,i,l,u,d){return xa(t),t.updateQueue=null,i=qh(t,l,i,u),kh(e),l=hu(),e!==null&&!et?(mu(e,t,d),Sn(e,t,d)):(Ee&&l&&Fo(t),t.flags|=1,st(e,t,i,d),t.child)}function Gm(e,t,i,l,u){if(xa(t),t.stateNode===null){var d=Ja,v=i.contextType;typeof v=="object"&&v!==null&&(d=ft(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?ft(v):Ja,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),os(t,l,d,u),rs(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){d=t.stateNode;var b=t.memoizedProps,E=wa(i,b);d.props=E;var L=d.context,q=i.contextType;v=Ja,typeof q=="object"&&q!==null&&(v=ft(q));var G=i.getDerivedStateFromProps;q=typeof G=="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),Un=!1;var z=t.memoizedState;d.state=z,os(t,l,d,u),rs(),L=t.memoizedState,b||z!==L||Un?(typeof G=="function"&&(Nu(t,i,G,l),L=t.memoizedState),(E=Un||Rm(t,i,E,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=E):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{d=t.stateNode,lu(e,t),v=t.memoizedProps,q=wa(i,v),d.props=q,G=t.pendingProps,z=d.context,L=i.contextType,E=Ja,typeof L=="object"&&L!==null&&(E=ft(L)),b=i.getDerivedStateFromProps,(L=typeof b=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v!==G||z!==E)&&Cm(t,d,l,E),Un=!1,z=t.memoizedState,d.state=z,os(t,l,d,u),rs();var B=t.memoizedState;v!==G||z!==B||Un||e!==null&&e.dependencies!==null&&Bl(e.dependencies)?(typeof b=="function"&&(Nu(t,i,b,l),B=t.memoizedState),(q=Un||Rm(t,i,q,l,z,B,E)||e!==null&&e.dependencies!==null&&Bl(e.dependencies))?(L||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(l,B,E),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(l,B,E)),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=E,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,er(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=ri(t,e.child,null,u),t.child=ri(t,null,i,u)):st(e,t,i,u),t.memoizedState=d.state,e=t.child):e=Sn(e,t,u),e}function Pm(e,t,i,l){return Ii(),t.flags|=256,st(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:(We.current&2)!==0),v&&(u=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(u?qn(t):Yn(),Ee){var b=Ye,E;if(E=b){e:{for(E=b,b=tn;E.nodeType!==8;){if(!b){b=null;break e}if(E=$t(E.nextSibling),E===null){b=null;break e}}b=E}b!==null?(t.memoizedState={dehydrated:b,treeContext:ma!==null?{id:pn,overflow:gn}:null,retryLane:536870912,hydrationErrors:null},E=Dt(18,null,null,0),E.stateNode=b,E.return=t,t.child=E,pt=t,Ye=null,E=!0):E=!1}E||ya(t)}if(b=t.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return gc(b)?t.lanes=32:t.lanes=536870912,null;bn(t)}return b=l.children,l=l.fallback,u?(Yn(),u=t.mode,b=tr({mode:"hidden",children:b},u),l=ha(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):(qn(t),zu(t,b))}if(E=e.memoizedState,E!==null&&(b=E.dehydrated,b!==null)){if(d)t.flags&256?(qn(t),t.flags&=-257,t=Bu(e,t,i)):t.memoizedState!==null?(Yn(),t.child=e.child,t.flags|=128,t=null):(Yn(),u=l.fallback,b=t.mode,l=tr({mode:"visible",children:l.children},b),u=ha(u,b,i,null),u.flags|=2,l.return=t,u.return=t,l.sibling=u,t.child=l,ri(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(qn(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,es({value:l,source:null,stack:null}),t=Bu(e,t,i)}else if(et||ts(e,t,i,!1),v=(i&e.childLanes)!==0,et||v){if(v=ze,v!==null&&(l=i&-i,l=(l&42)!==0?1:yo(l),l=(l&(v.suspendedLanes|i))!==0?0:l,l!==0&&l!==E.retryLane))throw E.retryLane=l,$a(e,l),Bt(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=E.treeContext,Ye=$t(b.nextSibling),pt=t,Ee=!0,ga=null,tn=!1,e!==null&&(kt[qt++]=pn,kt[qt++]=gn,kt[qt++]=ma,pn=e.id,gn=e.overflow,ma=t),t=zu(t,l.children),t.flags|=4096);return t}return u?(Yn(),u=l.fallback,b=t.mode,E=e.child,L=E.sibling,l=mn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,L!==null?u=mn(L,u):(u=ha(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):(E=b.cachePool,E!==null?(L=Je._currentValue,E=E.parent!==L?{parent:L,pool:L}:E):E=Mh(),b={baseLanes:b.baseLanes|i,cachePool:E}),u.memoizedState=b,u.childLanes=Lu(e,v,i),t.memoizedState=Mu,l):(qn(t),i=e.child,e=i.sibling,i=mn(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=tr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function tr(e,t){return e=Dt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Bu(e,t,i){return ri(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(st(e,t,l.children,i),l=We.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(X(We,l),u){case"forwards":for(i=t.child,u=null;i!==null;)e=i.alternate,e!==null&&Jl(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&&Jl(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 Sn(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),Zn|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(ts(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=mn(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=mn(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&&Bl(e)))}function Wx(e,t,i){switch(t.tag){case 3:Ve(t,t.stateNode.containerInfo),Vn(t,Je,e.memoizedState.cache),Ii();break;case 27:case 5:fo(t);break;case 4:Ve(t,t.stateNode.containerInfo);break;case 10:Vn(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(qn(t),t.flags|=128,null):(i&t.child.childLanes)!==0?Xm(e,t,i):(qn(t),e=Sn(e,t,i),e!==null?e.sibling:null);qn(t);break;case 19:var u=(e.flags&128)!==0;if(l=(i&t.childLanes)!==0,l||(ts(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),X(We,We.current),l)break;return null;case 22:case 23:return t.lanes=0,km(e,t,i);case 24:Vn(t,Je,e.memoizedState.cache)}return Sn(e,t,i)}function Qm(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps)et=!0;else{if(!Uu(e,i)&&(t.flags&128)===0)return et=!1,Wx(e,t,i);et=(e.flags&131072)!==0}else et=!1,Ee&&(t.flags&1048576)!==0&&Eh(t,zl,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=wa(l,e),t.tag=1,t=Gm(null,t,l,e,i)):(t.tag=0,t=Du(null,t,l,e,i));else{if(l!=null){if(u=l.$$typeof,u===K){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=Le(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=wa(l,t.pendingProps),Gm(e,t,l,u,i);case 3:e:{if(Ve(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var d=t.memoizedState;u=d.element,lu(e,t),os(t,l,null,i);var v=t.memoizedState;if(l=v.cache,Vn(t,Je,l),l!==d.cache&&eu(t,[Je],i,!0),rs(),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=Pm(e,t,l,i);break e}else if(l!==u){u=_t(Error(r(424)),t),es(u),t=Pm(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(Ye=$t(e.firstChild),pt=t,Ee=!0,ga=null,tn=!0,i=jm(t,null,l,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Ii(),l===u){t=Sn(e,t,i);break e}st(e,t,l,i)}t=t.child}return t;case 26:return er(e,t),e===null?(i=W0(t.type,null,t.pendingProps,null))?t.memoizedState=i:Ee||(i=t.type,e=t.pendingProps,l=pr(ae.current).createElement(i),l[ct]=t,l[yt]=e,rt(l,i,e),Ie(l),t.stateNode=l):t.memoizedState=W0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fo(t),e===null&&Ee&&(l=t.stateNode=F0(t.type,t.pendingProps,ae.current),pt=t,tn=!0,u=Ye,Jn(t.type)?(yc=u,Ye=$t(l.firstChild)):Ye=u),st(e,t,t.pendingProps.children,i),er(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((u=l=Ye)&&(l=jb(l,t.type,t.pendingProps,tn),l!==null?(t.stateNode=l,pt=t,Ye=$t(l.firstChild),tn=!1,u=!0):u=!1),u||ya(t)),fo(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,Px,null,null,i),Ds._currentValue=u),er(e,t),st(e,t,l,i),t.child;case 6:return e===null&&Ee&&((e=i=Ye)&&(i=Nb(i,t.pendingProps,tn),i!==null?(t.stateNode=i,pt=t,Ye=null,e=!0):e=!1),e||ya(t)),null;case 13:return Xm(e,t,i);case 4:return Ve(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=ri(t,null,l,i):st(e,t,l,i),t.child;case 11:return Um(e,t,t.type,t.pendingProps,i);case 7:return st(e,t,t.pendingProps,i),t.child;case 8:return st(e,t,t.pendingProps.children,i),t.child;case 12:return st(e,t,t.pendingProps.children,i),t.child;case 10:return l=t.pendingProps,Vn(t,t.type,l.value),st(e,t,l.children,i),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,xa(t),u=ft(u),l=l(u),t.flags|=1,st(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=tr(l,i),i.ref=t.ref,t.child=i,i.return=t,t=i):(i=mn(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 xa(t),l=ft(Je),e===null?(u=au(),u===null&&(u=ze,d=tu(),u.pooledCache=d,d.refCount++,d!==null&&(u.pooledCacheLanes|=i),u=d),t.memoizedState={parent:l,cache:u},su(t),Vn(t,Je,u)):((e.lanes&i)!==0&&(lu(e,t),os(t,null,null,i),rs()),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),Vn(t,Je,l)):(l=d.cache,Vn(t,Je,l),l!==u.cache&&eu(t,[Je],i,!0))),st(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function wn(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=Yt.current,t!==null&&((Se&4194048)===Se?nn!==null:(Se&62914560)!==Se&&(Se&536870912)===0||t!==nn))throw ss=iu,Oh;e.flags|=8192}}function nr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Nd():536870912,e.lanes|=t,fi|=t)}function ps(e,t){if(!Ee)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 He(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 He(t),null;case 1:return He(t),null;case 3:return i=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),vn(Je),On(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Wi(t)?wn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Nh())),He(t),null;case 26:return i=t.memoizedState,e===null?(wn(t),i!==null?(He(t),Fm(t,i)):(He(t),t.flags&=-16777217)):i?i!==e.memoizedState?(wn(t),He(t),Fm(t,i)):(He(t),t.flags&=-16777217):(e.memoizedProps!==l&&wn(t),He(t),t.flags&=-16777217),null;case 27:hl(t),i=ae.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&wn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return He(t),null}e=ee.current,Wi(t)?Ah(t):(e=F0(u,l,i),t.stateNode=e,wn(t))}return He(t),null;case 5:if(hl(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&wn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return He(t),null}if(e=ee.current,Wi(t))Ah(t);else{switch(u=pr(ae.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[ct]=t,e[yt]=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(rt(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&&wn(t)}}return He(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&wn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=ae.current,Wi(t)){if(e=t.stateNode,i=t.memoizedProps,l=null,u=pt,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[ct]=t,e=!!(e.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||Y0(e.nodeValue,i)),e||ya(t)}else e=pr(e).createTextNode(l),e[ct]=t,t.stateNode=e}return He(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Wi(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[ct]=t}else Ii(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),u=!1}else u=Nh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(bn(t),t):(bn(t),null)}if(bn(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),nr(t,t.updateQueue),He(t),null;case 4:return On(),e===null&&oc(t.stateNode.containerInfo),He(t),null;case 10:return vn(t.type),He(t),null;case 19:if(J(We),u=t.memoizedState,u===null)return He(t),null;if(l=(t.flags&128)!==0,d=u.rendering,d===null)if(l)ps(u,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Jl(e),d!==null){for(t.flags|=128,ps(u,!1),e=d.updateQueue,t.updateQueue=e,nr(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)Th(i,e),i=i.sibling;return X(We,We.current&1|2),t.child}e=e.sibling}u.tail!==null&&en()>sr&&(t.flags|=128,l=!0,ps(u,!1),t.lanes=4194304)}else{if(!l)if(e=Jl(d),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,nr(t,e),ps(u,!0),u.tail===null&&u.tailMode==="hidden"&&!d.alternate&&!Ee)return He(t),null}else 2*en()-u.renderingStartTime>sr&&i!==536870912&&(t.flags|=128,l=!0,ps(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=en(),t.sibling=null,e=We.current,X(We,l?e&1|2:e&1),t):(He(t),null);case 22:case 23:return bn(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&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),i=t.updateQueue,i!==null&&nr(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(ba),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),vn(Je),He(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 vn(Je),On(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return hl(t),null;case 13:if(bn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(We),null;case 4:return On(),null;case 10:return vn(t.type),null;case 22:case 23:return bn(t),cu(),e!==null&&J(ba),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return vn(Je),null;case 25:return null;default:return null}}function $m(e,t){switch($o(t),t.tag){case 3:vn(Je),On();break;case 26:case 27:case 5:hl(t);break;case 4:On();break;case 13:bn(t);break;case 19:J(We);break;case 10:vn(t.type);break;case 22:case 23:bn(t),cu(),e!==null&&J(ba);break;case 24:vn(Je)}}function gs(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){Oe(t,t.return,b)}}function Gn(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 E=i,L=b;try{L()}catch(q){Oe(u,E,q)}}}l=l.next}while(l!==d)}}catch(q){Oe(t,t.return,q)}}function Jm(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{_h(t,i)}catch(l){Oe(e,e.return,l)}}}function Wm(e,t,i){i.props=wa(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(l){Oe(e,t,l)}}function ys(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){Oe(e,t,u)}}function an(e,t){var i=e.ref,l=e.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(u){Oe(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){Oe(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){Oe(e,e.return,u)}}function _u(e,t,i){try{var l=e.stateNode;Sb(l,e.type,i,t),l[yt]=t}catch(u){Oe(e,e.return,u)}}function e0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Jn(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&&Jn(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=mr));else if(l!==4&&(l===27&&Jn(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 ar(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&&Jn(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(ar(e,t,i),e=e.sibling;e!==null;)ar(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]);rt(t,l,i),t[ct]=e,t[yt]=i}catch(d){Oe(e,e.return,d)}}var Tn=!1,Ke=!1,qu=!1,n0=typeof WeakSet=="function"?WeakSet:Set,tt=null;function tb(e,t){if(e=e.containerInfo,fc=Sr,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(se){i=null;break e}var v=0,b=-1,E=-1,L=0,q=0,G=e,z=null;t:for(;;){for(var B;G!==i||u!==0&&G.nodeType!==3||(b=v+u),G!==d||l!==0&&G.nodeType!==3||(E=v+l),G.nodeType===3&&(v+=G.nodeValue.length),(B=G.firstChild)!==null;)z=G,G=B;for(;;){if(G===e)break t;if(z===i&&++L===u&&(b=v),z===d&&++q===l&&(E=v),(B=G.nextSibling)!==null)break;G=z,z=G.parentNode}G=B}i=b===-1||E===-1?null:{start:b,end:E}}else i=null}i=i||{start:0,end:0}}else i=null;for(dc={focusedElem:e,selectionRange:i},Sr=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){switch(t=tt,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 oe=wa(i.type,u,i.elementType===i.type);e=l.getSnapshotBeforeUpdate(oe,d),l.__reactInternalSnapshotBeforeUpdate=e}catch(se){Oe(i,i.return,se)}}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,tt=e;break}tt=t.return}}function a0(e,t,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Pn(e,i),l&4&&gs(5,i);break;case 1:if(Pn(e,i),l&4)if(e=i.stateNode,t===null)try{e.componentDidMount()}catch(v){Oe(i,i.return,v)}else{var u=wa(i.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){Oe(i,i.return,v)}}l&64&&Jm(i),l&512&&ys(i,i.return);break;case 3:if(Pn(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){Oe(i,i.return,v)}}break;case 27:t===null&&l&4&&t0(i);case 26:case 5:Pn(e,i),t===null&&l&4&&Im(i),l&512&&ys(i,i.return);break;case 12:Pn(e,i);break;case 13:Pn(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||Tn,!l){t=t!==null&&t.memoizedState!==null||Ke,u=Tn;var d=Ke;Tn=l,(Ke=t)&&!d?Xn(e,i,(i.subtreeFlags&8772)!==0):Pn(e,i),Tn=u,Ke=d}break;case 30:break;default:Pn(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 Ue=null,bt=!1;function En(e,t,i){for(i=i.child;i!==null;)s0(e,t,i),i=i.sibling}function s0(e,t,i){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(_i,i)}catch(d){}switch(i.tag){case 26:Ke||an(i,t),En(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Ke||an(i,t);var l=Ue,u=bt;Jn(i.type)&&(Ue=i.stateNode,bt=!1),En(e,t,i),js(i.stateNode),Ue=l,bt=u;break;case 5:Ke||an(i,t);case 6:if(l=Ue,u=bt,Ue=null,En(e,t,i),Ue=l,bt=u,Ue!==null)if(bt)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(i.stateNode)}catch(d){Oe(i,t,d)}else try{Ue.removeChild(i.stateNode)}catch(d){Oe(i,t,d)}break;case 18:Ue!==null&&(bt?(e=Ue,Z0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),zs(e)):Z0(Ue,i.stateNode));break;case 4:l=Ue,u=bt,Ue=i.stateNode.containerInfo,bt=!0,En(e,t,i),Ue=l,bt=u;break;case 0:case 11:case 14:case 15:Ke||Gn(2,i,t),Ke||Gn(4,i,t),En(e,t,i);break;case 1:Ke||(an(i,t),l=i.stateNode,typeof l.componentWillUnmount=="function"&&Wm(i,t,l)),En(e,t,i);break;case 21:En(e,t,i);break;case 22:Ke=(l=Ke)||i.memoizedState!==null,En(e,t,i),Ke=l;break;default:En(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{zs(e)}catch(i){Oe(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 Mt(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(Jn(b.type)){Ue=b.stateNode,bt=!1;break e}break;case 5:Ue=b.stateNode,bt=!1;break e;case 3:case 4:Ue=b.stateNode.containerInfo,bt=!0;break e}b=b.return}if(Ue===null)throw Error(r(160));s0(d,v,u),Ue=null,bt=!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 Ft=null;function r0(e,t){var i=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Mt(t,e),Ot(e),l&4&&(Gn(3,e,e.return),gs(3,e),Gn(5,e,e.return));break;case 1:Mt(t,e),Ot(e),l&512&&(Ke||i===null||an(i,i.return)),l&64&&Tn&&(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=Ft;if(Mt(t,e),Ot(e),l&512&&(Ke||i===null||an(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[qi]||d[ct]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=u.createElement(l),u.head.insertBefore(d,u.querySelector("head > title"))),rt(d,l,i),d[ct]=e,Ie(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),rt(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),rt(d,l,i),u.head.appendChild(d);break;default:throw Error(r(468,l))}d[ct]=e,Ie(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:Mt(t,e),Ot(e),l&512&&(Ke||i===null||an(i,i.return)),i!==null&&l&4&&_u(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Mt(t,e),Ot(e),l&512&&(Ke||i===null||an(i,i.return)),e.flags&32){u=e.stateNode;try{Ga(u,"")}catch(B){Oe(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(Mt(t,e),Ot(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,i=e.stateNode;try{i.nodeValue=l}catch(B){Oe(e,e.return,B)}}break;case 3:if(vr=null,u=Ft,Ft=gr(t.containerInfo),Mt(t,e),Ft=u,Ot(e),l&4&&i!==null&&i.memoizedState.isDehydrated)try{zs(t.containerInfo)}catch(B){Oe(e,e.return,B)}qu&&(qu=!1,o0(e));break;case 4:l=Ft,Ft=gr(e.stateNode.containerInfo),Mt(t,e),Ot(e),Ft=l;break;case 12:Mt(t,e),Ot(e);break;case 13:Mt(t,e),Ot(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Qu=en()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yu(e,l)));break;case 22:u=e.memoizedState!==null;var E=i!==null&&i.memoizedState!==null,L=Tn,q=Ke;if(Tn=L||u,Ke=q||E,Mt(t,e),Ke=q,Tn=L,Ot(e),l&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(i===null||E||Tn||Ke||Ta(e)),i=null,t=e;;){if(t.tag===5||t.tag===26){if(i===null){E=i=t;try{if(d=E.stateNode,u)v=d.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{b=E.stateNode;var G=E.memoizedProps.style,z=G!=null&&G.hasOwnProperty("display")?G.display:null;b.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(B){Oe(E,E.return,B)}}}else if(t.tag===6){if(i===null){E=t;try{E.stateNode.nodeValue=u?"":E.memoizedProps}catch(B){Oe(E,E.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:Mt(t,e),Ot(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yu(e,l)));break;case 30:break;case 21:break;default:Mt(t,e),Ot(e)}}function Ot(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);ar(e,d,u);break;case 5:var v=i.stateNode;i.flags&32&&(Ga(v,""),i.flags&=-33);var b=Hu(e);ar(e,b,v);break;case 3:case 4:var E=i.stateNode.containerInfo,L=Hu(e);ku(e,L,E);break;default:throw Error(r(161))}}catch(q){Oe(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 Pn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)a0(e,t.alternate,t),t=t.sibling}function Ta(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Gn(4,t,t.return),Ta(t);break;case 1:an(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&Wm(t,t.return,i),Ta(t);break;case 27:js(t.stateNode);case 26:case 5:an(t,t.return),Ta(t);break;case 22:t.memoizedState===null&&Ta(t);break;case 30:Ta(t);break;default:Ta(t)}e=e.sibling}}function Xn(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:Xn(u,d,i),gs(4,d);break;case 1:if(Xn(u,d,i),l=d,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(L){Oe(l,l.return,L)}if(l=d,u=l.updateQueue,u!==null){var b=l.stateNode;try{var E=u.shared.hiddenCallbacks;if(E!==null)for(u.shared.hiddenCallbacks=null,u=0;u<E.length;u++)Uh(E[u],b)}catch(L){Oe(l,l.return,L)}}i&&v&64&&Jm(d),ys(d,d.return);break;case 27:t0(d);case 26:case 5:Xn(u,d,i),i&&l===null&&v&4&&Im(d),ys(d,d.return);break;case 12:Xn(u,d,i);break;case 13:Xn(u,d,i),i&&v&4&&l0(u,d);break;case 22:d.memoizedState===null&&Xn(u,d,i),ys(d,d.return);break;case 30:break;default:Xn(u,d,i)}t=t.sibling}}function Gu(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&&ns(i))}function Pu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ns(e))}function sn(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:sn(e,t,i,l),u&2048&&gs(9,t);break;case 1:sn(e,t,i,l);break;case 3:sn(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&&ns(e)));break;case 12:if(u&2048){sn(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(E){Oe(t,t.return,E)}}else sn(e,t,i,l);break;case 13:sn(e,t,i,l);break;case 23:break;case 22:d=t.stateNode,v=t.alternate,t.memoizedState!==null?d._visibility&2?sn(e,t,i,l):vs(e,t):d._visibility&2?sn(e,t,i,l):(d._visibility|=2,oi(e,t,i,l,(t.subtreeFlags&10256)!==0)),u&2048&&Gu(v,t);break;case 24:sn(e,t,i,l),u&2048&&Pu(t.alternate,t);break;default:sn(e,t,i,l)}}function oi(e,t,i,l,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var d=e,v=t,b=i,E=l,L=v.flags;switch(v.tag){case 0:case 11:case 15:oi(d,v,b,E,u),gs(8,v);break;case 23:break;case 22:var q=v.stateNode;v.memoizedState!==null?q._visibility&2?oi(d,v,b,E,u):vs(d,v):(q._visibility|=2,oi(d,v,b,E,u)),u&&L&2048&&Gu(v.alternate,v);break;case 24:oi(d,v,b,E,u),u&&L&2048&&Pu(v.alternate,v);break;default:oi(d,v,b,E,u)}t=t.sibling}}function vs(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:vs(i,l),u&2048&&Gu(l.alternate,l);break;case 24:vs(i,l),u&2048&&Pu(l.alternate,l);break;default:vs(i,l)}t=t.sibling}}var xs=8192;function ui(e){if(e.subtreeFlags&xs)for(e=e.child;e!==null;)c0(e),e=e.sibling}function c0(e){switch(e.tag){case 26:ui(e),e.flags&xs&&e.memoizedState!==null&&qb(Ft,e.memoizedState,e.memoizedProps);break;case 5:ui(e);break;case 3:case 4:var t=Ft;Ft=gr(e.stateNode.containerInfo),ui(e),Ft=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=xs,xs=16777216,ui(e),xs=t):ui(e));break;default:ui(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 bs(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];tt=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:bs(e),e.flags&2048&&Gn(9,e,e.return);break;case 3:bs(e);break;case 12:bs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ir(e)):bs(e);break;default:bs(e)}}function ir(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];tt=l,h0(l,e)}f0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Gn(8,t,t.return),ir(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,ir(t));break;default:ir(t)}e=e.sibling}}function h0(e,t){for(;tt!==null;){var i=tt;switch(i.tag){case 0:case 11:case 15:Gn(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:ns(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,tt=l;else e:for(i=e;tt!==null;){l=tt;var u=l.sibling,d=l.return;if(i0(l),l===i){tt=null;break e}if(u!==null){u.return=d,tt=u;break e}tt=d}}}var ab={getCacheForType:function(e){var t=ft(Je),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i}},ib=typeof WeakMap=="function"?WeakMap:Map,Ne=0,ze=null,ye=null,Se=0,Re=0,Lt=null,Kn=!1,ci=!1,Xu=!1,An=0,Ge=0,Zn=0,Ea=0,Ku=0,Gt=0,fi=0,Ss=null,St=null,Zu=!1,Qu=0,sr=1/0,lr=null,Qn=null,lt=0,Fn=null,di=null,hi=0,Fu=0,$u=null,m0=null,ws=0,Ju=null;function zt(){if((Ne&2)!==0&&Se!==0)return Se&-Se;if(k.T!==null){var e=ei;return e!==0?e:ic()}return Dd()}function p0(){Gt===0&&(Gt=(Se&536870912)===0||Ee?jd():536870912);var e=Yt.current;return e!==null&&(e.flags|=32),Gt}function Bt(e,t,i){(e===ze&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(mi(e,0),$n(e,Se,Gt,!1)),ki(e,i),((Ne&2)===0||e!==ze)&&(e===ze&&((Ne&2)===0&&(Ea|=i),Ge===4&&$n(e,Se,Gt,!1)),ln(e))}function g0(e,t,i){if((Ne&6)!==0)throw Error(r(327));var l=!i&&(t&124)===0&&(t&e.expiredLanes)===0||Hi(e,t),u=l?rb(e,t):ec(e,t,!0),d=l;do{if(u===0){ci&&!l&&$n(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=Ss;var E=b.current.memoizedState.isDehydrated;if(E&&(mi(b,v).flags|=256),v=ec(b,v,!1),v!==2){if(Xu&&!E){b.errorRecoveryDisabledLanes|=d,Ea|=d,u=4;break e}d=St,St=u,d!==null&&(St===null?St=d:St.push.apply(St,d))}u=v}if(d=!1,u!==2)continue}}if(u===1){mi(e,0),$n(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:$n(l,t,Gt,!Kn);break e;case 2:St=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(u=Qu+300-en(),10<u)){if($n(l,t,Gt,!Kn),yl(l,0,!0)!==0)break e;l.timeoutHandle=X0(y0.bind(null,l,i,St,lr,Zu,t,Gt,Ea,fi,Kn,d,2,-0,0),u);break e}y0(l,i,St,lr,Zu,t,Gt,Ea,fi,Kn,d,0,-0,0)}}break}while(!0);ln(e)}function y0(e,t,i,l,u,d,v,b,E,L,q,G,z,B){if(e.timeoutHandle=-1,G=t.subtreeFlags,(G&8192||(G&16785408)===16785408)&&(Cs={stylesheets:null,count:0,unsuspend:kb},c0(t),G=Yb(),G!==null)){e.cancelPendingCommit=G(E0.bind(null,e,t,d,i,l,u,v,b,E,q,1,z,B)),$n(e,d,v,!L);return}E0(e,t,d,i,l,u,v,b,E)}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(!Ct(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 $n(e,t,i,l){t&=~Ku,t&=~Ea,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var u=t;0<u;){var d=31-Rt(u),v=1<<d;l[d]=-1,u&=~v}i!==0&&Rd(e,i,t)}function rr(){return(Ne&6)===0?(Ts(0),!1):!0}function Wu(){if(ye!==null){if(Re===0)var e=ye.return;else e=ye,yn=va=null,pu(e),li=null,hs=0,e=ye;for(;e!==null;)$m(e.alternate,e),e=e.return;ye=null}}function mi(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,Tb(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),Wu(),ze=e,ye=i=mn(e.current,null),Se=t,Re=0,Lt=null,Kn=!1,ci=Hi(e,t),Xu=!1,fi=Gt=Ku=Ea=Zn=Ge=0,St=Ss=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-Rt(l),d=1<<u;t|=e[u],l&=~d}return An=t,Cl(),i}function v0(e,t){pe=null,k.H=Ql,t===is||t===_l?(t=Bh(),Re=3):t===Oh?(t=Bh(),Re=4):Re=t===Vm?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Lt=t,ye===null&&(Ge=1,Il(e,_t(t,e.current)))}function x0(){var e=k.H;return k.H=Ql,e===null?Ql:e}function b0(){var e=k.A;return k.A=ab,e}function Iu(){Ge=4,Kn||(Se&4194048)!==Se&&Yt.current!==null||(ci=!0),(Zn&134217727)===0&&(Ea&134217727)===0||ze===null||$n(ze,Se,Gt,!1)}function ec(e,t,i){var l=Ne;Ne|=2;var u=x0(),d=b0();(ze!==e||Se!==t)&&(lr=null,mi(e,t)),t=!1;var v=Ge;e:do try{if(Re!==0&&ye!==null){var b=ye,E=Lt;switch(Re){case 8:Wu(),v=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(t=!0);var L=Re;if(Re=0,Lt=null,pi(e,b,E,L),i&&ci){v=0;break e}break;default:L=Re,Re=0,Lt=null,pi(e,b,E,L)}}lb(),v=Ge;break}catch(q){v0(e,q)}while(!0);return t&&e.shellSuspendCounter++,yn=va=null,Ne=l,k.H=u,k.A=d,ye===null&&(ze=null,Se=0,Cl()),v}function lb(){for(;ye!==null;)S0(ye)}function rb(e,t){var i=Ne;Ne|=2;var l=x0(),u=b0();ze!==e||Se!==t?(lr=null,sr=en()+500,mi(e,t)):ci=Hi(e,t);e:do try{if(Re!==0&&ye!==null){t=ye;var d=Lt;t:switch(Re){case 1:Re=0,Lt=null,pi(e,t,d,1);break;case 2:case 9:if(Lh(d)){Re=0,Lt=null,w0(t);break}t=function(){Re!==2&&Re!==9||ze!==e||(Re=7),ln(e)},d.then(t,t);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:Lh(d)?(Re=0,Lt=null,w0(t)):(Re=0,Lt=null,pi(e,t,d,7));break;case 5:var v=null;switch(ye.tag){case 26:v=ye.memoizedState;case 5:case 27:var b=ye;if(!v||ap(v)){Re=0,Lt=null;var E=b.sibling;if(E!==null)ye=E;else{var L=b.return;L!==null?(ye=L,or(L)):ye=null}break t}}Re=0,Lt=null,pi(e,t,d,5);break;case 6:Re=0,Lt=null,pi(e,t,d,6);break;case 8:Wu(),Ge=6;break e;default:throw Error(r(462))}}ob();break}catch(q){v0(e,q)}while(!0);return yn=va=null,k.H=l,k.A=u,Ne=i,ye!==null?0:(ze=null,Se=0,Cl(),Ge)}function ob(){for(;ye!==null&&!D1();)S0(ye)}function S0(e){var t=Qm(e.alternate,e,An);e.memoizedProps=e.pendingProps,t===null?or(e):ye=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,Se);break;case 11:t=Ym(i,t,t.pendingProps,t.type.render,t.ref,Se);break;case 5:pu(t);default:$m(i,t),t=ye=Th(t,An),t=Qm(i,t,An)}e.memoizedProps=e.pendingProps,t===null?or(e):ye=t}function pi(e,t,i,l){yn=va=null,pu(t),li=null,hs=0;var u=t.return;try{if(Jx(e,u,t,i,Se)){Ge=1,Il(e,_t(i,e.current)),ye=null;return}}catch(d){if(u!==null)throw ye=u,d;Ge=1,Il(e,_t(i,e.current)),ye=null;return}t.flags&32768?(Ee||l===1?e=!0:ci||(Se&536870912)!==0?e=!1:(Kn=e=!0,(l===2||l===9||l===3||l===6)&&(l=Yt.current,l!==null&&l.tag===13&&(l.flags|=16384))),T0(t,e)):or(t)}function or(e){var t=e;do{if((t.flags&32768)!==0){T0(t,Kn);return}e=t.return;var i=Ix(t.alternate,t,An);if(i!==null){ye=i;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);Ge===0&&(Ge=5)}function T0(e,t){do{var i=eb(e.alternate,e);if(i!==null){i.flags&=32767,ye=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){ye=e;return}ye=e=i}while(e!==null);Ge=6,ye=null}function E0(e,t,i,l,u,d,v,b,E){e.cancelPendingCommit=null;do ur();while(lt!==0);if((Ne&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(d=t.lanes|t.childLanes,d|=Po,k1(e,i,d,v,b,E),e===ze&&(ye=ze=null,Se=0),di=t,Fn=e,hi=i,Fu=d,$u=u,m0=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,db(ml,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=Q.p,Q.p=2,v=Ne,Ne|=4;try{tb(e,t,i)}finally{Ne=v,Q.p=u,k.T=l}}lt=1,A0(),j0(),N0()}}function A0(){if(lt===1){lt=0;var e=Fn,t=di,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=k.T,k.T=null;var l=Q.p;Q.p=2;var u=Ne;Ne|=4;try{r0(t,e);var d=dc,v=hh(e.containerInfo),b=d.focusedElem,E=d.selectionRange;if(v!==b&&b&&b.ownerDocument&&dh(b.ownerDocument.documentElement,b)){if(E!==null&&Ho(b)){var L=E.start,q=E.end;if(q===void 0&&(q=L),"selectionStart"in b)b.selectionStart=L,b.selectionEnd=Math.min(q,b.value.length);else{var G=b.ownerDocument||document,z=G&&G.defaultView||window;if(z.getSelection){var B=z.getSelection(),oe=b.textContent.length,se=Math.min(E.start,oe),Me=E.end===void 0?se:Math.min(E.end,oe);!B.extend&&se>Me&&(v=Me,Me=se,se=v);var D=fh(b,se),C=fh(b,Me);if(D&&C&&(B.rangeCount!==1||B.anchorNode!==D.node||B.anchorOffset!==D.offset||B.focusNode!==C.node||B.focusOffset!==C.offset)){var O=G.createRange();O.setStart(D.node,D.offset),B.removeAllRanges(),se>Me?(B.addRange(O),B.extend(C.node,C.offset)):(O.setEnd(C.node,C.offset),B.addRange(O))}}}}for(G=[],B=b;B=B.parentNode;)B.nodeType===1&&G.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<G.length;b++){var Y=G[b];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}Sr=!!fc,dc=fc=null}finally{Ne=u,Q.p=l,k.T=i}}e.current=t,lt=2}}function j0(){if(lt===2){lt=0;var e=Fn,t=di,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=k.T,k.T=null;var l=Q.p;Q.p=2;var u=Ne;Ne|=4;try{a0(e,t.alternate,t)}finally{Ne=u,Q.p=l,k.T=i}}lt=3}}function N0(){if(lt===4||lt===3){lt=0,M1();var e=Fn,t=di,i=hi,l=m0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,di=Fn=null,R0(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Qn=null),vo(i),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(_i,t,void 0,(t.current.flags&128)===128)}catch(E){}if(l!==null){t=k.T,u=Q.p,Q.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,Q.p=u}}(hi&3)!==0&&ur(),ln(e),u=e.pendingLanes,(i&4194090)!==0&&(u&42)!==0?e===Ju?ws++:(ws=0,Ju=e):ws=0,Ts(0)}}function R0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ns(t)))}function ur(e){return A0(),j0(),N0(),C0()}function C0(){if(lt!==5)return!1;var e=Fn,t=Fu;Fu=0;var i=vo(hi),l=k.T,u=Q.p;try{Q.p=32>i?32:i,k.T=null,i=$u,$u=null;var d=Fn,v=hi;if(lt=0,di=Fn=null,hi=0,(Ne&6)!==0)throw Error(r(331));var b=Ne;if(Ne|=4,d0(d.current),u0(d,d.current,v,i),Ne=b,Ts(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(_i,d)}catch(E){}return!0}finally{Q.p=u,k.T=l,R0(e,t)}}function D0(e,t,i){t=_t(i,t),t=Cu(e.stateNode,t,2),e=Hn(e,t,2),e!==null&&(ki(e,2),ln(e))}function Oe(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"&&(Qn===null||!Qn.has(l))){e=_t(i,e),i=zm(2),l=Hn(t,i,2),l!==null&&(Bm(i,l,t,e),ki(l,2),ln(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,ze===e&&(Se&i)===i&&(Ge===4||Ge===3&&(Se&62914560)===Se&&300>en()-Qu?(Ne&2)===0&&mi(e,0):Ku|=i,fi===Se&&(fi=0)),ln(e)}function M0(e,t){t===0&&(t=Nd()),e=$a(e,t),e!==null&&(ki(e,t),ln(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 cr=null,gi=null,nc=!1,fr=!1,ac=!1,Aa=0;function ln(e){e!==gi&&e.next===null&&(gi===null?cr=gi=e:gi=gi.next=e),fr=!0,nc||(nc=!0,mb())}function Ts(e,t){if(!ac&&fr){ac=!0;do for(var i=!1,l=cr;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-Rt(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=Se,d=yl(l,l===ze?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(d&3)===0||Hi(l,d)||(i=!0,B0(l,d));l=l.next}while(i);ac=!1}}function hb(){O0()}function O0(){fr=nc=!1;var e=0;Aa!==0&&(wb()&&(e=Aa),Aa=0);for(var t=en(),i=null,l=cr;l!==null;){var u=l.next,d=L0(l,t);d===0?(l.next=null,i===null?cr=u:i.next=u,u===null&&(gi=i)):(i=l,(e!==0||(d&3)!==0)&&(fr=!0)),l=u}Ts(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-Rt(d),b=1<<v,E=u[v];E===-1?((b&i)===0||(b&l)!==0)&&(u[v]=H1(b,t)):E<=t&&(e.expiredLanes|=b),d&=~b}if(t=ze,i=Se,i=yl(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,i===0||e===t&&(Re===2||Re===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&po(l),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||Hi(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=ml;break;case 268435456:i=Ad;break;default:i=ml}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(lt!==0&&lt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(ur()&&e.callbackNode!==i)return null;var l=Se;return l=yl(e,e===ze?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(g0(e,l,t),L0(e,en()),e.callbackNode!=null&&e.callbackNode===i?z0.bind(null,e):null)}function B0(e,t){if(ur())return null;g0(e,t,!0)}function mb(){Eb(function(){(Ne&6)!==0?mo(Td,hb):O0()})}function ic(){return Aa===0&&(Aa=jd()),Aa}function V0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:wl(""+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[yt]||null).action),v=l.submitter;v&&(t=(t=v[yt]||null)?V0(t.formAction):v.getAttribute("formAction"),t!==null&&(d=t,v=null));var b=new jl("action","action",null,l,u);e.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Aa!==0){var E=v?U0(u,v):new FormData(u);Eu(i,{pending:!0,data:E,method:u.method,action:d},null,E)}}else typeof d=="function"&&(b.preventDefault(),E=v?U0(u,v):new FormData(u),Eu(i,{pending:!0,data:E,method:u.method,action:d},d,E))},currentTarget:u}]})}}for(var sc=0;sc<Go.length;sc++){var lc=Go[sc],gb=lc.toLowerCase(),yb=lc[0].toUpperCase()+lc.slice(1);Qt(gb,"on"+yb)}Qt(gh,"onAnimationEnd"),Qt(yh,"onAnimationIteration"),Qt(vh,"onAnimationStart"),Qt("dblclick","onDoubleClick"),Qt("focusin","onFocus"),Qt("focusout","onBlur"),Qt(zx,"onTransitionRun"),Qt(Bx,"onTransitionStart"),Qt(Vx,"onTransitionCancel"),Qt(xh,"onTransitionEnd"),ka("onMouseEnter",["mouseout","mouseover"]),ka("onMouseLeave",["mouseout","mouseover"]),ka("onPointerEnter",["pointerout","pointerover"]),ka("onPointerLeave",["pointerout","pointerover"]),ua("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ua("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ua("onBeforeInput",["compositionend","keypress","textInput","paste"]),ua("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ua("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ua("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Es="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(Es));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],E=b.instance,L=b.currentTarget;if(b=b.listener,E!==d&&u.isPropagationStopped())break e;d=b,u.currentTarget=L;try{d(u)}catch(q){Wl(q)}u.currentTarget=null,d=E}else for(v=0;v<l.length;v++){if(b=l[v],E=b.instance,L=b.currentTarget,b=b.listener,E!==d&&u.isPropagationStopped())break e;d=b,u.currentTarget=L;try{d(u)}catch(q){Wl(q)}u.currentTarget=null,d=E}}}}function ve(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 dr="_reactListening"+Math.random().toString(36).slice(2);function oc(e){if(!e[dr]){e[dr]=!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[dr]||(t[dr]=!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 E=v.tag;if((E===3||E===4)&&v.stateNode.containerInfo===u)return;v=v.return}for(;b!==null;){if(v=Ua(b),v===null)return;if(E=v.tag,E===5||E===6||E===26||E===27){l=d=v;continue e}b=b.parentNode}}l=l.return}Kd(function(){var L=d,q=Ro(i),G=[];e:{var z=bh.get(e);if(z!==void 0){var B=jl,oe=e;switch(e){case"keypress":if(El(i)===0)break e;case"keydown":case"keyup":B=dx;break;case"focusin":oe="focus",B=zo;break;case"focusout":oe="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 se=(t&4)!==0,Me=!se&&(e==="scroll"||e==="scrollend"),D=se?z!==null?z+"Capture":null:z;se=[];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=Gi(C,D),Y!=null&&se.push(As(C,Y,O))),Me)break;C=C.return}0<se.length&&(z=new B(z,oe,null,i,q),G.push({event:z,listeners:se}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",z&&i!==No&&(oe=i.relatedTarget||i.fromElement)&&(Ua(oe)||oe[Va]))break e;if((B||z)&&(z=q.window===q?q:(z=q.ownerDocument)?z.defaultView||z.parentWindow:window,B?(oe=i.relatedTarget||i.toElement,B=L,oe=oe?Ua(oe):null,oe!==null&&(Me=c(oe),se=oe.tag,oe!==Me||se!==5&&se!==27&&se!==6)&&(oe=null)):(B=null,oe=L),B!==oe)){if(se=Fd,Y="onMouseLeave",D="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(se=Jd,Y="onPointerLeave",D="onPointerEnter",C="pointer"),Me=B==null?z:Yi(B),O=oe==null?z:Yi(oe),z=new se(Y,C+"leave",B,i,q),z.target=Me,z.relatedTarget=O,Y=null,Ua(q)===L&&(se=new se(D,C+"enter",oe,i,q),se.target=O,se.relatedTarget=Me,Y=se),Me=Y,B&&oe)t:{for(se=B,D=oe,C=0,O=se;O;O=yi(O))C++;for(O=0,Y=D;Y;Y=yi(Y))O++;for(;0<C-O;)se=yi(se),C--;for(;0<O-C;)D=yi(D),O--;for(;C--;){if(se===D||D!==null&&se===D.alternate)break t;se=yi(se),D=yi(D)}se=null}else se=null;B!==null&&k0(G,z,B,se,!1),oe!==null&&Me!==null&&k0(G,Me,oe,se,!0)}}e:{if(z=L?Yi(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 ge=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(G,te,i,q);break e}ge&&ge(e,z,L),e==="focusout"&&L&&z.type==="number"&&L.memoizedProps.value!=null&&Ao(z,"number",z.value)}switch(ge=L?Yi(L):window,e){case"focusin":(ah(ge)||ge.contentEditable==="true")&&(Za=ge,ko=L,Ji=null);break;case"focusout":Ji=ko=Za=null;break;case"mousedown":qo=!0;break;case"contextmenu":case"mouseup":case"dragend":qo=!1,mh(G,i,q);break;case"selectionchange":if(Lx)break;case"keydown":case"keyup":mh(G,i,q)}var ne;if(Vo)e:{switch(e){case"compositionstart":var le="onCompositionStart";break e;case"compositionend":le="onCompositionEnd";break e;case"compositionupdate":le="onCompositionUpdate";break e}le=void 0}else Ka?th(e,i)&&(le="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(le="onCompositionStart");le&&(Wd&&i.locale!=="ko"&&(Ka||le!=="onCompositionStart"?le==="onCompositionEnd"&&Ka&&(ne=Zd()):(Bn=q,Mo="value"in Bn?Bn.value:Bn.textContent,Ka=!0)),ge=hr(L,le),0<ge.length&&(le=new $d(le,e,null,i,q),G.push({event:le,listeners:ge}),ne?le.data=ne:(ne=nh(i),ne!==null&&(le.data=ne)))),(ne=Tx?Ex(e,i):Ax(e,i))&&(le=hr(L,"onBeforeInput"),0<le.length&&(ge=new $d("onBeforeInput","beforeinput",null,i,q),G.push({event:ge,listeners:le}),ge.data=ne)),pb(G,e,L,i,q)}_0(G,t)})}function As(e,t,i){return{instance:e,listener:t,currentTarget:i}}function hr(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=Gi(e,i),u!=null&&l.unshift(As(e,u,d)),u=Gi(e,t),u!=null&&l.push(As(e,u,d))),e.tag===3)return l;e=e.return}return[]}function yi(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,E=b.alternate,L=b.stateNode;if(b=b.tag,E!==null&&E===l)break;b!==5&&b!==26&&b!==27||L===null||(E=L,u?(L=Gi(i,d),L!=null&&v.unshift(As(i,L,E))):u||(L=Gi(i,d),L!=null&&v.push(As(i,L,E)))),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 mr(){}function De(e,t,i,l,u,d){switch(i){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Ga(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Ga(e,""+l);break;case"className":xl(e,"class",l);break;case"tabIndex":xl(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":xl(e,i,l);break;case"style":Pd(e,l,d);break;case"data":if(t!=="object"){xl(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=wl(""+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"&&De(e,t,"name",u.name,u,null),De(e,t,"formEncType",u.formEncType,u,null),De(e,t,"formMethod",u.formMethod,u,null),De(e,t,"formTarget",u.formTarget,u,null)):(De(e,t,"encType",u.encType,u,null),De(e,t,"method",u.method,u,null),De(e,t,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(i);break}l=wl(""+l),e.setAttribute(i,l);break;case"onClick":l!=null&&(e.onclick=mr);break;case"onScroll":l!=null&&ve("scroll",e);break;case"onScrollEnd":l!=null&&ve("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=wl(""+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":ve("beforetoggle",e),ve("toggle",e),vl(e,"popover",l);break;case"xlinkActuate":dn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":dn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":dn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":dn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":dn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":dn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":dn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":dn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":dn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":vl(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,vl(e,i,l))}}function cc(e,t,i,l,u,d){switch(i){case"style":Pd(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"?Ga(e,l):(typeof l=="number"||typeof l=="bigint")&&Ga(e,""+l);break;case"onScroll":l!=null&&ve("scroll",e);break;case"onScrollEnd":l!=null&&ve("scrollend",e);break;case"onClick":l!=null&&(e.onclick=mr);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[yt]||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,""):vl(e,i,l)}}}function rt(e,t,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ve("error",e),ve("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:De(e,t,d,v,i,null)}}u&&De(e,t,"srcSet",i.srcSet,i,null),l&&De(e,t,"src",i.src,i,null);return;case"input":ve("invalid",e);var b=d=v=u=null,E=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":E=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:De(e,t,l,q,i,null)}}kd(e,d,b,E,L,v,u,!1),bl(e);return;case"select":ve("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:De(e,t,u,b,i,null)}t=d,i=v,e.multiple=!!l,t!=null?Ya(e,!!l,t,!1):i!=null&&Ya(e,!!l,i,!0);return;case"textarea":ve("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:De(e,t,v,b,i,null)}Yd(e,l,u,d),bl(e);return;case"option":for(E in i)if(i.hasOwnProperty(E)&&(l=i[E],l!=null))switch(E){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:De(e,t,E,l,i,null)}return;case"dialog":ve("beforetoggle",e),ve("toggle",e),ve("cancel",e),ve("close",e);break;case"iframe":case"object":ve("load",e);break;case"video":case"audio":for(l=0;l<Es.length;l++)ve(Es[l],e);break;case"image":ve("error",e),ve("load",e);break;case"details":ve("toggle",e);break;case"embed":case"source":case"link":ve("error",e),ve("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:De(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&&De(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,E=null,L=null,q=null;for(B in i){var G=i[B];if(i.hasOwnProperty(B)&&G!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":E=G;default:l.hasOwnProperty(B)||De(e,t,B,null,l,G)}}for(var z in l){var B=l[z];if(G=i[z],l.hasOwnProperty(z)&&(B!=null||G!=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!==G&&De(e,t,z,B,l,G)}}Eo(e,v,b,E,L,q,d,u);return;case"select":B=v=b=z=null;for(d in i)if(E=i[d],i.hasOwnProperty(d)&&E!=null)switch(d){case"value":break;case"multiple":B=E;default:l.hasOwnProperty(d)||De(e,t,d,null,l,E)}for(u in l)if(d=l[u],E=i[u],l.hasOwnProperty(u)&&(d!=null||E!=null))switch(u){case"value":z=d;break;case"defaultValue":b=d;break;case"multiple":v=d;default:d!==E&&De(e,t,u,d,l,E)}t=b,i=v,l=B,z!=null?Ya(e,!!i,z,!1):!!l!=!!i&&(t!=null?Ya(e,!!i,t,!0):Ya(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:De(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&&De(e,t,v,u,l,d)}qd(e,z,B);return;case"option":for(var oe in i)if(z=i[oe],i.hasOwnProperty(oe)&&z!=null&&!l.hasOwnProperty(oe))switch(oe){case"selected":e.selected=!1;break;default:De(e,t,oe,null,l,z)}for(E in l)if(z=l[E],B=i[E],l.hasOwnProperty(E)&&z!==B&&(z!=null||B!=null))switch(E){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:De(e,t,E,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 se in i)z=i[se],i.hasOwnProperty(se)&&z!=null&&!l.hasOwnProperty(se)&&De(e,t,se,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:De(e,t,L,z,l,B)}return;default:if(jo(t)){for(var Me in i)z=i[Me],i.hasOwnProperty(Me)&&z!==void 0&&!l.hasOwnProperty(Me)&&cc(e,t,Me,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)&&De(e,t,D,null,l,z);for(G in l)z=l[G],B=i[G],!l.hasOwnProperty(G)||z===B||z==null&&B==null||De(e,t,G,z,l,B)}var fc=null,dc=null;function pr(e){return e.nodeType===9?e:e.ownerDocument}function G0(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 P0(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 Jn(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&&js(v.documentElement),i&2&&js(v.body),i&4)for(i=v.head,js(i),v=i.firstChild;v;){var b=v.nextSibling,E=v.nodeName;v[qi]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&v.rel.toLowerCase()==="stylesheet"||i.removeChild(v),v=b}}if(u===0){e.removeChild(d),zs(t);return}u--}else i==="$"||i==="$?"||i==="$!"?u++:l=i.charCodeAt(0)-48;else l=0;i=d}while(i);zs(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[qi])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=$t(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=$t(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 $t(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=pr(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 js(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);bo(e)}var Pt=new Map,$0=new Set;function gr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var jn=Q.d;Q.d={f:Cb,r:Db,D:Mb,C:Ob,L:Lb,m:zb,X:Vb,S:Bb,M:Ub};function Cb(){var e=jn.f(),t=rr();return e||t}function Db(e){var t=_a(e);t!==null&&t.tag===5&&t.type==="form"?gm(t):jn.r(e)}var vi=typeof document=="undefined"?null:document;function J0(e,t,i){var l=vi;if(l&&typeof t=="string"&&t){var u=Ut(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"),rt(t,"link",e),Ie(t),l.head.appendChild(t)))}}function Mb(e){jn.D(e),J0("dns-prefetch",e,null)}function Ob(e,t){jn.C(e,t),J0("preconnect",e,t)}function Lb(e,t,i){jn.L(e,t,i);var l=vi;if(l&&e&&t){var u='link[rel="preload"][as="'+Ut(t)+'"]';t==="image"&&i&&i.imageSrcSet?(u+='[imagesrcset="'+Ut(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(u+='[imagesizes="'+Ut(i.imageSizes)+'"]')):u+='[href="'+Ut(e)+'"]';var d=u;switch(t){case"style":d=xi(e);break;case"script":d=bi(e)}Pt.has(d)||(e=y({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),Pt.set(d,e),l.querySelector(u)!==null||t==="style"&&l.querySelector(Ns(d))||t==="script"&&l.querySelector(Rs(d))||(t=l.createElement("link"),rt(t,"link",e),Ie(t),l.head.appendChild(t)))}}function zb(e,t){jn.m(e,t);var i=vi;if(i&&e){var l=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Ut(l)+'"][href="'+Ut(e)+'"]',d=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=bi(e)}if(!Pt.has(d)&&(e=y({rel:"modulepreload",href:e},t),Pt.set(d,e),i.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Rs(d)))return}l=i.createElement("link"),rt(l,"link",e),Ie(l),i.head.appendChild(l)}}}function Bb(e,t,i){jn.S(e,t,i);var l=vi;if(l&&e){var u=Ha(l).hoistableStyles,d=xi(e);t=t||"default";var v=u.get(d);if(!v){var b={loading:0,preload:null};if(v=l.querySelector(Ns(d)))b.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},i),(i=Pt.get(d))&&vc(e,i);var E=v=l.createElement("link");Ie(E),rt(E,"link",e),E._p=new Promise(function(L,q){E.onload=L,E.onerror=q}),E.addEventListener("load",function(){b.loading|=1}),E.addEventListener("error",function(){b.loading|=2}),b.loading|=4,yr(v,t,l)}v={type:"stylesheet",instance:v,count:1,state:b},u.set(d,v)}}}function Vb(e,t){jn.X(e,t);var i=vi;if(i&&e){var l=Ha(i).hoistableScripts,u=bi(e),d=l.get(u);d||(d=i.querySelector(Rs(u)),d||(e=y({src:e,async:!0},t),(t=Pt.get(u))&&xc(e,t),d=i.createElement("script"),Ie(d),rt(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(u,d))}}function Ub(e,t){jn.M(e,t);var i=vi;if(i&&e){var l=Ha(i).hoistableScripts,u=bi(e),d=l.get(u);d||(d=i.querySelector(Rs(u)),d||(e=y({src:e,async:!0,type:"module"},t),(t=Pt.get(u))&&xc(e,t),d=i.createElement("script"),Ie(d),rt(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=ae.current)?gr(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=xi(i.href),i=Ha(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=xi(i.href);var d=Ha(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(Ns(e)))&&!d._p&&(v.instance=d,v.state.loading=5),Pt.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},Pt.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=bi(i),i=Ha(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 xi(e){return'href="'+Ut(e)+'"'}function Ns(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}),rt(t,"link",i),Ie(t),e.head.appendChild(t))}function bi(e){return'[src="'+Ut(e)+'"]'}function Rs(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~="'+Ut(i.href)+'"]');if(l)return t.instance=l,Ie(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"),Ie(l),rt(l,"style",u),yr(l,i.precedence,e),t.instance=l;case"stylesheet":u=xi(i.href);var d=e.querySelector(Ns(u));if(d)return t.state.loading|=4,t.instance=d,Ie(d),d;l=I0(i),(u=Pt.get(u))&&vc(l,u),d=(e.ownerDocument||e).createElement("link"),Ie(d);var v=d;return v._p=new Promise(function(b,E){v.onload=b,v.onerror=E}),rt(d,"link",l),t.state.loading|=4,yr(d,i.precedence,e),t.instance=d;case"script":return d=bi(i.src),(u=e.querySelector(Rs(d)))?(t.instance=u,Ie(u),u):(l=i,(u=Pt.get(d))&&(l=y({},i),xc(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),Ie(u),rt(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,yr(l,i.precedence,e));return t.instance}function yr(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 vr=null;function tp(e,t,i){if(vr===null){var l=new Map,u=vr=new Map;u.set(i,l)}else u=vr,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[qi]||d[ct]||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 Cs=null;function kb(){}function qb(e,t,i){if(Cs===null)throw Error(r(475));var l=Cs;if(t.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var u=xi(i.href),d=e.querySelector(Ns(u));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=xr.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=d,Ie(d);return}d=e.ownerDocument||e,i=I0(i),(u=Pt.get(u))&&vc(i,u),d=d.createElement("link"),Ie(d);var v=d;v._p=new Promise(function(b,E){v.onload=b,v.onerror=E}),rt(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=xr.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function Yb(){if(Cs===null)throw Error(r(475));var e=Cs;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 xr(){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 br=null;function bc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,br=new Map,t.forEach(Gb,e),br=null,xr.call(e))}function Gb(e,t){if(!(t.state.loading&4)){var i=br.get(e);if(i)var l=i.get(null);else{i=new Map,br.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=xr.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 Ds={$$typeof:U,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function Pb(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,E,L,q,G){return e=new Pb(e,t,i,v,b,E,L,G),t=1,d===!0&&(t|=24),d=Dt(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=Ja,e):Ja}function lp(e,t,i,l,u,d){u=sp(u),l.context===null?l.context=u:l.pendingContext=u,l=_n(t),l.payload={element:i},d=d===void 0?null:d,d!==null&&(l.callback=d),i=Hn(e,l,t),i!==null&&(Bt(i,e,t),ls(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=$a(e,67108864);t!==null&&Bt(t,e,67108864),Sc(e,67108864)}}var Sr=!0;function Xb(e,t,i,l){var u=k.T;k.T=null;var d=Q.p;try{Q.p=2,wc(e,t,i,l)}finally{Q.p=d,k.T=u}}function Kb(e,t,i,l){var u=k.T;k.T=null;var d=Q.p;try{Q.p=8,wc(e,t,i,l)}finally{Q.p=d,k.T=u}}function wc(e,t,i,l){if(Sr){var u=Tc(l);if(u===null)uc(e,t,l,wr,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=_a(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var v=oa(d.pendingLanes);if(v!==0){var b=d;for(b.pendingLanes|=2,b.entangledLanes|=2;v;){var E=1<<31-Rt(v);b.entanglements[1]|=E,v&=~E}ln(d),(Ne&6)===0&&(sr=en()+500,Ts(0))}}break;case 13:b=$a(d,2),b!==null&&Bt(b,d,2),rr(),Sc(d,2)}if(d=Tc(l),d===null&&uc(e,t,l,wr,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 wr=null;function Ec(e){if(wr=null,e=Ua(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 wr=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 ml:case L1:return 32;case Ad:return 268435456;default:return 32}default:return 32}}var Ac=!1,Wn=null,In=null,ea=null,Ms=new Map,Os=new Map,ta=[],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":Wn=null;break;case"dragenter":case"dragleave":In=null;break;case"mouseover":case"mouseout":ea=null;break;case"pointerover":case"pointerout":Ms.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Os.delete(t.pointerId)}}function Ls(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=_a(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 Wn=Ls(Wn,e,t,i,l,u),!0;case"dragenter":return In=Ls(In,e,t,i,l,u),!0;case"mouseover":return ea=Ls(ea,e,t,i,l,u),!0;case"pointerover":var d=u.pointerId;return Ms.set(d,Ls(Ms.get(d)||null,e,t,i,l,u)),!0;case"gotpointercapture":return d=u.pointerId,Os.set(d,Ls(Os.get(d)||null,e,t,i,l,u)),!0}return!1}function fp(e){var t=Ua(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=zt();l=yo(l);var u=$a(i,l);u!==null&&Bt(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 Tr(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=_a(i),t!==null&&op(t),e.blockedOn=i,!1;t.shift()}return!0}function dp(e,t,i){Tr(e)&&i.delete(t)}function Fb(){Ac=!1,Wn!==null&&Tr(Wn)&&(Wn=null),In!==null&&Tr(In)&&(In=null),ea!==null&&Tr(ea)&&(ea=null),Ms.forEach(dp),Os.forEach(dp)}function Er(e,t){e.blockedOn===t&&(e.blockedOn=null,Ac||(Ac=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Fb)))}var Ar=null;function hp(e){Ar!==e&&(Ar=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ar===e&&(Ar=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=_a(i);d!==null&&(e.splice(t,3),t-=3,Eu(d,{pending:!0,data:u,method:i.method,action:l},l,u))}}))}function zs(e){function t(E){return Er(E,e)}Wn!==null&&Er(Wn,e),In!==null&&Er(In,e),ea!==null&&Er(ea,e),Ms.forEach(t),Os.forEach(t);for(var i=0;i<ta.length;i++){var l=ta[i];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ta.length&&(i=ta[0],i.blockedOn===null);)fp(i),i.blockedOn===null&&ta.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[yt]||null;if(typeof d=="function")v||hp(i);else if(v){var b=null;if(d&&d.hasAttribute("formAction")){if(u=d,v=d[yt]||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}jr.prototype.render=jc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var i=t.current,l=zt();lp(i,l,e,t,null,null)},jr.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),rr(),t[Va]=null}};function jr(e){this._internalRoot=e}jr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Dd();e={blockedOn:null,target:e,priority:t};for(var i=0;i<ta.length&&t!==0&&t<ta[i].priority;i++);ta.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"));Q.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 Nr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nr.isDisabled&&Nr.supportsFiber)try{_i=Nr.inject($b),Nt=Nr}catch(e){}}return Vs.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[Va]=t.current,oc(e),new jc(t)},Vs.hydrateRoot=function(e,t,i){if(!o(e))throw Error(r(299));var l=!1,u="",d=Dm,v=Mm,b=Om,E=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&&(E=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,E,L),t.context=sp(null),i=t.current,l=zt(),l=yo(l),u=_n(l),u.callback=null,Hn(i,u,l),i=l,t.current.lanes=i,ki(t,i),ln(t),e[Va]=t.current,oc(e),new jr(t)},Vs.version="19.1.1",Vs}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:Zs(o)}return g2(a,s,null,n)}function qe(n,a){if(n===!1||n===null||typeof n=="undefined")throw new Error(a)}function Wt(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 re(Z({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof a=="string"?Mi(a):a),{state:s,key:a&&a.key||r||p2()})}function Zs({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 Mi(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(re(Z({},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),K=R.createHref(V);try{f.pushState(U,"",K)}catch(H){if(H instanceof DOMException&&H.name==="DataCloneError")throw H;o.location.assign(K)}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),K=R.createHref(V);f.replaceState(U,"",K),c&&m&&m({action:p,location:R.location,delta:0})}function A(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:A,encodeLocation(j){let M=A(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),qe(s,"No window.location.(origin|href) available to create URL");let r=typeof n=="string"?n:Zs(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"?Mi(a):a,c=Rn(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("/")&&(qe(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=Nn([r,m.relativePath]),y=s.concat(m);c.children&&c.children.length>0&&(qe(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=Pr({path:m.relativePath,caseSensitive:m.caseSensitive,end:h},y),S=m.route;if(!x&&h&&s&&!r[r.length-1].route.index&&(x=Pr({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},y)),!x)return null;Object.assign(o,x.params),f.push({params:o,pathname:Nn([c,x.pathname]),pathnameBase:z2(Nn([c,x.pathnameBase])),route:S}),x.pathnameBase!=="/"&&(c=Nn([c,x.pathnameBase]))}return f}function Pr(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 A=p[S]||"";f=c.slice(0,c.length-A.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){Wt(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 Wt(!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 Rn(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"?Mi(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=Mi(n):(o=Z({},n),qe(!o.pathname||!o.pathname.includes("?"),Vc("?","pathname","search",o)),qe(!o.pathname||!o.pathname.includes("#"),Vc("#","pathname","hash",o)),qe(!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 Nn=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 Oi=w.createContext(null);Oi.displayName="DataRouter";var Ir=w.createContext(null);Ir.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 fn=w.createContext(null);fn.displayName="Navigation";var tl=w.createContext(null);tl.displayName="Location";var Mn=w.createContext({outlet:null,matches:[],isDataRoute:!1});Mn.displayName="Route";var Bf=w.createContext(null);Bf.displayName="RouteError";function q2(n,{relative:a}={}){qe(nl(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:r}=w.useContext(fn),{hash:o,pathname:c,search:f}=il(n,{relative:a}),p=c;return s!=="/"&&(p=c==="/"?s:Nn([s,c])),r.createHref({pathname:p,search:f,hash:o})}function nl(){return w.useContext(tl)!=null}function la(){return qe(nl(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(tl).location}var py="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function gy(n){w.useContext(fn).static||w.useLayoutEffect(n)}function al(){let{isDataRoute:n}=w.useContext(Mn);return n?eS():Y2()}function Y2(){qe(nl(),"useNavigate() may be used only in the context of a <Router> component.");let n=w.useContext(Oi),{basename:a,navigator:s}=w.useContext(fn),{matches:r}=w.useContext(Mn),{pathname:o}=la(),c=JSON.stringify(fy(r)),f=w.useRef(!1);return gy(()=>{f.current=!0}),w.useCallback((m,h={})=>{if(Wt(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:Nn([a,y.pathname])),(h.replace?s.replace:s.push)(y,h.state,h)},[a,s,c,o,n])}w.createContext(null);function il(n,{relative:a}={}){let{matches:s}=w.useContext(Mn),{pathname:r}=la(),o=JSON.stringify(fy(s));return w.useMemo(()=>dy(n,JSON.parse(o),r,a==="path"),[n,o,r,a])}function G2(n,a){return yy(n,a)}function yy(n,a,s,r){var M;qe(nl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=w.useContext(fn),{matches:c}=w.useContext(Mn),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=la(),S;if(a){let V=typeof a=="string"?Mi(a):a;qe(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||"/",A=T;if(h!=="/"){let V=h.replace(/^\//,"").split("/");A="/"+T.replace(/^\//,"").split("/").slice(V.length).join("/")}let R=oy(n,{pathname:A});Wt(y||R!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Wt(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:Nn([h,o.encodeLocation?o.encodeLocation(V.pathname).pathname:V.pathname]),pathnameBase:V.pathnameBase==="/"?h:Nn([h,o.encodeLocation?o.encodeLocation(V.pathnameBase).pathname:V.pathnameBase])})),c,s,r);return a&&j?w.createElement(tl.Provider,{value:{location:Z({pathname:"/",search:"",hash:"",state:null,key:"default"},S),navigationType:"POP"}},j):j}function P2(){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(P2,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(Mn.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(Oi);return r&&r.static&&r.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=a.route.id),w.createElement(Mn.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);qe(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,A=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,A=null):p===y&&(S=!0,A=h.route.hydrateFallbackElement||null)));let R=a.concat(o.slice(0,y+1)),j=()=>{let M;return x?M=T:S?M=A: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(Oi);return qe(a,Vf(n)),a}function $2(n){let a=w.useContext(Ir);return qe(a,Vf(n)),a}function J2(n){let a=w.useContext(Mn);return qe(a,Vf(n)),a}function Uf(n){let a=J2(n),s=a.matches[a.matches.length-1];return qe(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)=>Be(null,[f,...p],function*(o,c={}){Wt(s.current,py),s.current&&(typeof o=="number"?n.navigate(o):yield n.navigate(o,Z({fromRouteId:a},c)))}),[n,a])}var Op={};function vy(n,a,s){!a&&!Op[n]&&(Op[n]=!0,Wt(!1,s))}w.memo(tS);function tS({routes:n,future:a,state:s}){return yy(n,void 0,s,a)}function wi(n){qe(!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}){qe(!nl(),"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=Mi(s));let{pathname:m="/",search:h="",hash:y="",state:x=null,key:S="default"}=s,T=w.useMemo(()=>{let A=Rn(m,f);return A==null?null:{location:{pathname:A,search:h,hash:y,state:x,key:S},navigationType:r}},[f,m,h,y,x,S,r]);return Wt(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(fn.Provider,{value:p},w.createElement(tl.Provider,{children:a,value:T}))}function aS({children:n,location:a}){return G2(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}qe(r.type===wi,`[${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>`),qe(!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 Br="get",Vr="application/x-www-form-urlencoded";function eo(n){return n!=null&&typeof n.tagName=="string"}function iS(n){return eo(n)&&n.tagName.toLowerCase()==="button"}function sS(n){return eo(n)&&n.tagName.toLowerCase()==="form"}function lS(n){return eo(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 Dr=null;function cS(){if(Dr===null)try{new FormData(document.createElement("form"),0),Dr=!1}catch(n){Dr=!0}return Dr}var fS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Uc(n){return n!=null&&!fS.has(n)?(Wt(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Vr}"`),null):n}function dS(n,a){let s,r,o,c,f;if(sS(n)){let p=n.getAttribute("action");r=p?Rn(p,a):null,s=n.getAttribute("method")||Br,o=Uc(n.getAttribute("enctype"))||Vr,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?Rn(m,a):null,s=n.getAttribute("formmethod")||p.getAttribute("method")||Br,o=Uc(n.getAttribute("formenctype"))||Uc(p.getAttribute("enctype"))||Vr,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(eo(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Br,r=null,o=Vr,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&&Rn(r.pathname,a)==="/"?r.pathname=`${a.replace(/\/$/,"")}/_root.${s}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${s}`,r}function mS(n,a){return Be(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 Be(this,null,function*(){let r=yield Promise.all(n.map(o=>Be(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"?re(Z({},o),{rel:"prefetch",as:"style"}):re(Z({},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(Oi);return _f(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function SS(){let n=w.useContext(Ir);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)},A=()=>{o(!1),f(!1)};return s?n!=="intent"?[c,S,{}]:[c,S,{onFocus:Us(p,T),onBlur:Us(m,A),onMouseEnter:Us(h,T),onMouseLeave:Us(y,A),onTouchStart:Us(x,T)}]:[!1,S,{}]}function Us(n,a){return s=>{n&&n(s),s.defaultPrevented||a(s)}}function TS(s){var r=s,{page:n}=r,a=at(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,Z({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=at(o,["page","matches"]);let c=la(),{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 K=f.routes[U.route.id];!K||!K.hasLoader||(!x.some($=>$.route.id===U.route.id)&&U.route.id in h&&((H=p[U.route.id])!=null&&H.shouldRevalidate)||K.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]),A=w.useMemo(()=>yS(S,f),[S,f]),R=ES(S);return w.createElement(w.Fragment,null,T.map(j=>w.createElement("link",Z({key:j,rel:"prefetch",as:"fetch",href:j},s))),A.map(j=>w.createElement("link",Z({key:j,rel:"modulepreload",href:j},s))),R.map(({key:j,link:M})=>w.createElement("link",Z({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,qs=w.forwardRef(function(A,T){var R=A,{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=at(R,["onClick","discover","prefetch","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"]);let{basename:j}=w.useContext(fn),M=typeof h=="string"&&wy.test(h),V,U=!1;if(typeof h=="string"&&M&&(V=h,Sy))try{let xe=new URL(window.location.href),Ae=h.startsWith("//")?new URL(xe.protocol+h):new URL(h),de=Rn(Ae.pathname,j);Ae.origin===xe.origin&&de!=null?h=de+Ae.search+Ae.hash:U=!0}catch(xe){Wt(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let K=q2(h,{relative:o}),[H,$,W]=wS(r,S),F=MS(h,{replace:f,state:p,target:m,preventScrollReset:y,relative:o,viewTransition:x});function ce(xe){a&&a(xe),xe.defaultPrevented||F(xe)}let be=w.createElement("a",re(Z(Z({},S),W),{href:V||K,onClick:U||c?a:ce,ref:jS(T,$),target:m,"data-discover":!M&&s==="render"?"true":void 0}));return H&&!M?w.createElement(w.Fragment,null,be,w.createElement(TS,{page:K})):be});qs.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=at(S,["aria-current","caseSensitive","className","end","style","to","viewTransition","children"]);let T=il(f,{relative:h.relative}),A=la(),R=w.useContext(Ir),{navigator:j,basename:M}=w.useContext(fn),V=R!=null&&VS(T)&&p===!0,U=j.encodeLocation?j.encodeLocation(T).pathname:T.pathname,K=A.pathname,H=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;s||(K=K.toLowerCase(),H=H?H.toLowerCase():null,U=U.toLowerCase()),H&&M&&(H=Rn(H,M)||H);const $=U!=="/"&&U.endsWith("/")?U.length-1:U.length;let W=K===U||!o&&K.startsWith(U)&&K.charAt($)==="/",F=H!=null&&(H===U||!o&&H.startsWith(U)&&H.charAt(U.length)==="/"),ce={isActive:W,isPending:F,isTransitioning:V},be=W?a:void 0,xe;typeof r=="function"?xe=r(ce):xe=[r,W?"active":null,F?"pending":null,V?"transitioning":null].filter(Boolean).join(" ");let Ae=typeof c=="function"?c(ce):c;return w.createElement(qs,re(Z({},h),{"aria-current":be,className:xe,ref:y,style:Ae,to:f,viewTransition:p}),typeof m=="function"?m(ce):m)});RS.displayName="NavLink";var CS=w.forwardRef((A,T)=>{var R=A,{discover:n="render",fetcherKey:a,navigate:s,reloadDocument:r,replace:o,state:c,method:f=Br,action:p,onSubmit:m,relative:h,preventScrollReset:y,viewTransition:x}=R,S=at(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),K=H=>{if(m&&m(H),H.defaultPrevented)return;H.preventDefault();let $=H.nativeEvent.submitter,W=($==null?void 0:$.getAttribute("formmethod"))||f;j($||H.currentTarget,{fetcherKey:a,method:W,navigate:s,replace:o,state:c,relative:h,preventScrollReset:y,viewTransition:x})};return w.createElement("form",re(Z({ref:T,method:V,action:M,onSubmit:r?m:K},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(Oi);return qe(a,DS(n)),a}function MS(n,{target:a,replace:s,state:r,preventScrollReset:o,relative:c,viewTransition:f}={}){let p=al(),m=la(),h=il(n,{relative:c});return w.useCallback(y=>{if(oS(y,a)){y.preventDefault();let x=s!==void 0?s:Zs(m)===Zs(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){Wt(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=la(),o=w.useMemo(()=>uS(r.search,s.current?null:a.current),[r.search]),c=al(),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(fn),s=W2();return w.useCallback((c,...f)=>Be(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(fn),r=w.useContext(Mn);qe(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),c=Z({},il(n||".",{relative:a})),f=la();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:Nn([s,c.pathname])),Zs(c)}function VS(n,{relative:a}={}){let s=w.useContext(my);qe(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=il(n,{relative:a});if(!s.isTransitioning)return!1;let c=Rn(s.currentLocation.pathname,r)||s.currentLocation.pathname,f=Rn(s.nextLocation.pathname,r)||s.nextLocation.pathname;return Pr(o.pathname,f)!=null||Pr(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:to,toStringTag:jy}=Symbol,no=(n=>a=>{const s=_S.call(a);return n[s]||(n[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),It=n=>(n=n.toLowerCase(),a=>no(a)===n),ao=n=>a=>typeof a===n,{isArray:Li}=Array,Qs=ao("undefined");function sl(n){return n!==null&&!Qs(n)&&n.constructor!==null&&!Qs(n.constructor)&&Tt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Ny=It("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=ao("string"),Tt=ao("function"),Ry=ao("number"),ll=n=>n!==null&&typeof n=="object",qS=n=>n===!0||n===!1,Ur=n=>{if(no(n)!=="object")return!1;const a=kf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(jy in n)&&!(to in n)},YS=n=>{if(!ll(n)||sl(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch(a){return!1}},GS=It("Date"),PS=It("File"),XS=It("Blob"),KS=It("FileList"),ZS=n=>ll(n)&&Tt(n.pipe),QS=n=>{let a;return n&&(typeof FormData=="function"&&n instanceof FormData||Tt(n.append)&&((a=no(n))==="formdata"||a==="object"&&Tt(n.toString)&&n.toString()==="[object FormData]"))},FS=It("URLSearchParams"),[$S,JS,WS,IS]=["ReadableStream","Request","Response","Headers"].map(It),ew=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rl(n,a,{allOwnKeys:s=!1}={}){if(n===null||typeof n=="undefined")return;let r,o;if(typeof n!="object"&&(n=[n]),Li(n))for(r=0,o=n.length;r<o;r++)a.call(null,n[r],r,n);else{if(sl(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(sl(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 Ca=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Dy=n=>!Qs(n)&&n!==Ca;function rf(){const{caseless:n}=Dy(this)&&this||{},a={},s=(r,o)=>{const c=n&&Cy(a,o)||o;Ur(a[c])&&Ur(r)?a[c]=rf(a[c],r):Ur(r)?a[c]=rf({},r):Li(r)?a[c]=r.slice():a[c]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&rl(arguments[r],s);return a}const tw=(n,a,s,{allOwnKeys:r}={})=>(rl(a,(o,c)=>{s&&Tt(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(Li(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[to]).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=It("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=It("RegExp"),My=(n,a)=>{const s=Object.getOwnPropertyDescriptors(n),r={};rl(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(Tt(n)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const r=n[s];if(Tt(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 Li(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&&Tt(n.append)&&n[jy]==="FormData"&&n[to])}const vw=n=>{const a=new Array(10),s=(r,o)=>{if(ll(r)){if(a.indexOf(r)>=0)return;if(sl(r))return r;if(!("toJSON"in r)){a[o]=r;const c=Li(r)?[]:{};return rl(r,(f,p)=>{const m=s(f,o+1);!Qs(m)&&(c[p]=m)}),a[o]=void 0,c}}return r};return s(n,0)},xw=It("AsyncFunction"),bw=n=>n&&(ll(n)||Tt(n))&&Tt(n.then)&&Tt(n.catch),Oy=((n,a)=>n?setImmediate:a?((s,r)=>(Ca.addEventListener("message",({source:o,data:c})=>{o===Ca&&c===s&&r.length&&r.shift()()},!1),o=>{r.push(o),Ca.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",Tt(Ca.postMessage)),Sw=typeof queueMicrotask!="undefined"?queueMicrotask.bind(Ca):typeof process!="undefined"&&process.nextTick||Oy,ww=n=>n!=null&&Tt(n[to]),_={isArray:Li,isArrayBuffer:Ny,isBuffer:sl,isFormData:QS,isArrayBufferView:HS,isString:kS,isNumber:Ry,isBoolean:qS,isObject:ll,isPlainObject:Ur,isEmptyObject:YS,isReadableStream:$S,isRequest:JS,isResponse:WS,isHeaders:IS,isUndefined:Qs,isDate:GS,isFile:PS,isBlob:XS,isRegExp:dw,isFunction:Tt,isStream:ZS,isURLSearchParams:FS,isTypedArray:rw,isFileList:KS,forEach:rl,merge:rf,extend:tw,trim:ew,stripBOM:nw,inherits:aw,toFlatObject:iw,kindOf:no,kindOfTest:It,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:Ca,isContextDefined:Dy,isSpecCompliantForm:yw,toJSONObject:vw,isAsyncFn:xw,isThenable:bw,setImmediate:Oy,asap:Sw,isIterable:ww};function fe(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(fe,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=fe.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(fe,zy);Object.defineProperty(Ly,"isAxiosError",{value:!0});fe.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"),fe.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 io(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(A){if(A===null)return"";if(_.isDate(A))return A.toISOString();if(_.isBoolean(A))return A.toString();if(!m&&_.isBlob(A))throw new fe("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(A)||_.isTypedArray(A)?m&&typeof Blob=="function"?new Blob([A]):Buffer.from(A):A}function y(A,R,j){let M=A;if(A&&!j&&typeof A=="object"){if(_.endsWith(R,"{}"))R=r?R:R.slice(0,-2),A=JSON.stringify(A);else if(_.isArray(A)&&Ew(A)||(_.isFileList(A)||_.endsWith(R,"[]"))&&(M=_.toArray(A)))return R=By(R),M.forEach(function(U,K){!(_.isUndefined(U)||U===null)&&a.append(f===!0?Bp([R],K,c):f===null?R:R+"[]",h(U))}),!1}return of(A)?!0:(a.append(Bp(j,R,c),h(A)),!1)}const x=[],S=Object.assign(Aw,{defaultVisitor:y,convertValue:h,isVisitable:of});function T(A,R){if(!_.isUndefined(A)){if(x.indexOf(A)!==-1)throw Error("Circular reference detected in "+R.join("."));x.push(A),_.forEach(A,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&&io(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"})),ht=Z(Z({},zw),Dw);function Bw(n,a){return io(n,new ht.classes.URLSearchParams,Z({visitor:function(s,r,o,c){return ht.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 ol={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 io(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||ol.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"?fe.from(p,fe.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:ht.classes.FormData,Blob:ht.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=>{ol.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 _s(n){return n&&String(n).trim().toLowerCase()}function _r(n){return n===!1||n==null?n:_.isArray(n)?n.map(_r):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 Gw(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,s,r)=>s.toUpperCase()+r)}function Pw(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 Et=class{constructor(a){a&&this.set(a)}set(a,s,r){const o=this;function c(p,m,h){const y=_s(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]=_r(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=_s(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=_s(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=_s(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]=_r(o),delete s[c];return}const p=a?Gw(c):String(c).trim();p!==c&&delete s[c],s[p]=_r(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=_s(f);r[p]||(Pw(o,f),r[p]=!0)}return _.isArray(a)?a.forEach(c):c(a),this}};Et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_.reduceDescriptors(Et.prototype,({value:n},a)=>{let s=a[0].toUpperCase()+a.slice(1);return{get:()=>n,set(r){this[s]=r}}});_.freezeMethods(Et);function Hc(n,a){const s=this||ol,r=a||s,o=Et.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 zi(n,a,s){fe.call(this,n==null?"canceled":n,fe.ERR_CANCELED,a,s),this.name="CanceledError"}_.inherits(zi,fe,{__CANCEL__:!0});function qy(n,a,s){const r=s.config.validateStatus;!s.status||!r||r(s.status)?n(s):a(new fe("Request failed with status code "+s.status,[fe.ERR_BAD_REQUEST,fe.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 Xr=(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=ht.hasStandardBrowserEnv?((n,a)=>s=>(s=new URL(s,ht.origin),n.protocol===s.protocol&&n.host===s.host&&(a||n.port===s.port)))(new URL(ht.origin),ht.navigator&&/(msie|trident)/i.test(ht.navigator.userAgent)):()=>!0,Fw=ht.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 Et?Z({},n):n;function Ba(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(Z(Z({},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 Gy=n=>{const a=Ba({},n);let{data:s,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:c,headers:f,auth:p}=a;a.headers=f=Et.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(ht.hasStandardBrowserEnv||ht.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(ht.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=Gy(n);let c=o.data;const f=Et.from(o.headers).normalize();let{responseType:p,onUploadProgress:m,onDownloadProgress:h}=o,y,x,S,T,A;function R(){T&&T(),A&&A(),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=Et.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 fe("Request aborted",fe.ECONNABORTED,n,j)),j=null)},j.onerror=function(){r(new fe("Network Error",fe.ERR_NETWORK,n,j)),j=null},j.ontimeout=function(){let K=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const H=o.transitional||_y;o.timeoutErrorMessage&&(K=o.timeoutErrorMessage),r(new fe(K,H.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,n,j)),j=null},c===void 0&&f.setContentType(null),"setRequestHeader"in j&&_.forEach(f.toJSON(),function(K,H){j.setRequestHeader(H,K)}),_.isUndefined(o.withCredentials)||(j.withCredentials=!!o.withCredentials),p&&p!=="json"&&(j.responseType=o.responseType),h&&([S,A]=Xr(h,!0),j.addEventListener("progress",S)),m&&j.upload&&([x,T]=Xr(m),j.upload.addEventListener("progress",x),j.upload.addEventListener("loadend",T)),(o.cancelToken||o.signal)&&(y=U=>{j&&(r(!U||U.type?new zi(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&&ht.protocols.indexOf(V)===-1){r(new fe("Unsupported protocol "+V+":",fe.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 fe?y:new zi(y instanceof Error?y.message:y))}};let f=a&&setTimeout(()=>{f=null,c(new fe(`timeout ${a} of ms exceeded`,fe.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 ja(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 ja(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 ja(a.read());if(s)break;yield r}}finally{yield new ja(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 Be(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})},so=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Py=so&&typeof ReadableStream=="function",iT=so&&(typeof TextEncoder=="function"?(n=>a=>n.encode(a))(new TextEncoder):n=>Be(null,null,function*(){return new Uint8Array(yield new Response(n).arrayBuffer())})),Xy=(n,...a)=>{try{return!!n(...a)}catch(s){return!1}},sT=Py&&Xy(()=>{let n=!1;const a=new Request(ht.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!a}),Gp=64*1024,cf=Py&&Xy(()=>_.isReadableStream(new Response("").body)),Kr={stream:cf&&(n=>n.body)};so&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!Kr[a]&&(Kr[a]=_.isFunction(n[a])?s=>s[a]():(s,r)=>{throw new fe(`Response type '${a}' is not supported`,fe.ERR_NOT_SUPPORT,r)})})})(new Response);const lT=n=>Be(null,null,function*(){if(n==null)return 0;if(_.isBlob(n))return n.size;if(_.isSpecCompliantForm(n))return(yield new Request(ht.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)=>Be(null,null,function*(){const s=_.toFiniteNumber(n.getContentLength());return s==null?lT(a):s}),oT=so&&(n=>Be(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}=Gy(n);h=h?(h+"").toLowerCase():"text";let T=eT([o,c&&c.toAbortSignal()],f),A;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"}),$;if(_.isFormData(r)&&($=H.headers.get("content-type"))&&y.setContentType($),H.body){const[W,F]=Hp(j,Xr(kp(m)));r=Yp(H.body,Gp,W,F)}}_.isString(x)||(x=x?"include":"omit");const M="credentials"in Request.prototype;A=new Request(a,re(Z({},S),{signal:T,method:s.toUpperCase(),headers:y.normalize().toJSON(),body:r,duplex:"half",credentials:M?x:void 0}));let V=yield fetch(A,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 $=_.toFiniteNumber(V.headers.get("content-length")),[W,F]=p&&Hp($,Xr(kp(p),!0))||[];V=new Response(Yp(V.body,Gp,W,()=>{F&&F(),R&&R()}),H)}h=h||"text";let K=yield Kr[_.findKey(Kr,h)||"text"](V,n);return!U&&R&&R(),yield new Promise((H,$)=>{qy(H,$,{data:K,headers:Et.from(V.headers),status:V.status,statusText:V.statusText,config:n,request:A})})}catch(M){throw R&&R(),M&&M.name==="TypeError"&&/Load failed|fetch/i.test(M.message)?Object.assign(new fe("Network Error",fe.ERR_NETWORK,n,A),{cause:M.cause||M}):fe.from(M,M&&M.code,n,A)}})),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 Pp=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 fe(`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(Pp).join(`
64
- `):" "+Pp(c[0]):"as no adapter specified";throw new fe("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 zi(null,n)}function Xp(n){return kc(n),n.headers=Et.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||ol.adapter)(n).then(function(r){return kc(n),r.data=Hc.call(n,n.transformResponse,r),r.headers=Et.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=Et.from(r.response.headers))),Promise.reject(r)})}const Zy="1.11.0",lo={};["object","boolean","number","function","string","symbol"].forEach((n,a)=>{lo[n]=function(r){return typeof r===n||"a"+(a<1?"n ":" ")+n}});const Kp={};lo.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 fe(o(f," has been removed"+(s?" in "+s:"")),fe.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}};lo.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 fe("options must be an object",fe.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 fe("option "+c+" must be "+m,fe.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new fe("Unknown option "+c,fe.ERR_BAD_OPTION)}}const Hr={assertOptions:cT,validators:lo},rn=Hr.validators;let Oa=class{constructor(a){this.defaults=a||{},this.interceptors={request:new Up,response:new Up}}request(a,s){return Be(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=Ba(this.defaults,s);const{transitional:r,paramsSerializer:o,headers:c}=s;r!==void 0&&Hr.assertOptions(r,{silentJSONParsing:rn.transitional(rn.boolean),forcedJSONParsing:rn.transitional(rn.boolean),clarifyTimeoutError:rn.transitional(rn.boolean)},!1),o!=null&&(_.isFunction(o)?s.paramsSerializer={serialize:o}:Hr.assertOptions(o,{encode:rn.function,serialize:rn.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),Hr.assertOptions(s,{baseUrl:rn.spelling("baseURL"),withXsrfToken:rn.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"],A=>{delete c[A]}),s.headers=Et.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 A=[Xp.bind(this),void 0];for(A.unshift(...p),A.push(...h),S=A.length,y=Promise.resolve(s);x<S;)y=y.then(A[x++],A[x++]);return y}S=p.length;let T=s;for(x=0;x<S;){const A=p[x++],R=p[x++];try{T=A(T)}catch(j){R.call(this,j);break}}try{y=Xp.call(this,T)}catch(A){return Promise.reject(A)}for(x=0,S=h.length;x<S;)y=y.then(h[x++],h[x++]);return y}getUri(a){a=Ba(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){Oa.prototype[a]=function(s,r){return this.request(Ba(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(Ba(p||{},{method:a,headers:r?{"Content-Type":"multipart/form-data"}:{},url:c,data:f}))}}Oa.prototype[a]=s(),Oa.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 zi(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 Oa(n),s=Ay(Oa.prototype.request,a);return _.extend(s,Oa.prototype,a,{allOwnKeys:!0}),_.extend(s,a,null,{allOwnKeys:!0}),s.create=function(o){return Fy(Ba(n,o))},s}const we=Fy(ol);we.Axios=Oa;we.CanceledError=zi;we.CancelToken=fT;we.isCancel=ky;we.VERSION=Zy;we.toFormData=io;we.AxiosError=fe;we.Cancel=we.CanceledError;we.all=function(a){return Promise.all(a)};we.spread=dT;we.isAxiosError=hT;we.mergeConfig=Ba;we.AxiosHeaders=Et;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:GN,isAxiosError:PN,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=Cr.useSyncExternalStore(n.subscribe,Cr.useCallback(()=>a(n.getState()),[n,a]),Cr.useCallback(()=>a(n.getInitialState()),[n,a]));return Cr.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,At=window.location.origin,Zr=$y(n=>({Rootname:"",setRootname:a=>n({Rootname:a})})),jt=$y(n=>({TransactionKey:"",setTransactionKey:a=>n({TransactionKey:a}),loadKey:()=>Be(null,null,function*(){yield we.get(`${At}/api/get-token`).then(a=>{var s,r;a.status===200&&n({TransactionKey:(r=(s=a.data)==null?void 0:s.data)==null?void 0:r.originSessionKey})}).catch(a=>{console.error("Error fetching transaction key:",a)})})})),yT=()=>{const[n,a]=w.useState(!1),{Rootname:s}=Zr(c=>c),{setRootname:r}=Zr(c=>c),{TransactionKey:o}=jt(c=>c);return w.useEffect(()=>{we.get(`${At}/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(qs,{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(qs,{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(qs,{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=>re(Z({},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((A,R)=>({id:`${T}_col${R+1}`,name:A.name||A,type:"collection",documentCount:A.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}=jt(c=>c);return w.useEffect(()=>{we.get(`${At}/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}=jt(S=>S),y=()=>{o(""),m(""),f(!1),a()},x=S=>Be(null,null,function*(){var T,A;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(`${At}/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(((A=(T=R.response)==null?void 0:T.data)==null?void 0:A.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}=jt(m=>m),[c,f]=w.useState(!1);if(!n)return null;const p=()=>Be(null,null,function*(){var m,h;f(!0);try{const y=yield we.delete(`${At}/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=al(),[o,c]=w.useState({}),f=m=>{c(h=>re(Z({},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.'})})]})},GT=()=>{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}=jt(R=>R),{Rootname:x}=Zr(R=>R);w.useEffect(()=>{y&&Be(null,null,function*(){try{const j=yield we.get(`${At}/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=>re(Z({},R),{ListOfDatabases:R.ListOfDatabases.filter(j=>j!==m),TotalDatabases:`${R.ListOfDatabases.length-1} Databases`})),c(!1),h("")},A=R=>{r(j=>re(Z({},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:A}),g.jsx(qT,{isOpen:o,dbName:m,onClose:()=>c(!1),onConfirmDelete:T})]})},PT=({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:A}=jt(M=>M),R=()=>{c(""),p(!1),h(""),T(""),x(!1),a()},j=M=>Be(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 K=yield we.post(`${At}/api/collection/create-collection`,{dbName:r,collectionName:o,crypto:f,key:f?m:""},{params:{transactiontoken:A}});if(K.data.statusCode===200||K.data.statusCode===201)s({name:o,documentCount:0,size:"N/A"}),R();else throw new Error("Failed to create collection")}catch(K){console.error("Error creating collection:",K),T(((U=(V=K.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}=jt(S=>S),y=()=>{m(""),f(!1),a()},x=()=>Be(null,null,function*(){var S,T;f(!0),m("");try{if((yield we.delete(`${At}/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(A){console.error("Error deleting collection:",A),m(((T=(S=A.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},Gf=w.createContext({});function Pf(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,ro=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 Cn=(n,a,s)=>s>a?a:s<n?n:s;let Qf=()=>{};const Dn={},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 Zt=n=>n,KT=(n,a)=>s=>a(n(s)),ul=(...n)=>n.reduce(KT),Fs=(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 on=n=>n*1e3,un=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 cl(n,a,s,r){if(n===a&&s===r)return Zt;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=cl(.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=cl(.42,0,1,1),JT=cl(0,0,.58,1),fv=cl(.42,0,.58,1),WT=n=>Array.isArray(n)&&typeof n[0]!="number",dv=n=>Array.isArray(n)&&typeof n[0]=="number",IT={linear:Zt,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 cl(a,s,r,o)}else if(eE(n))return IT[n];return n},Mr=["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 A=S&&o?s:r;return x&&f.add(y),A.has(y)||A.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=Mr.reduce((U,K)=>(U[K]=tE(c),U),{}),{setup:p,read:m,resolveKeyframes:h,preUpdate:y,update:x,preRender:S,render:T,postRender:A}=f,R=()=>{const U=Dn.useManualTiming?o.timestamp:performance.now();s=!1,Dn.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),A.process(o),o.isProcessing=!1,s&&a&&(r=!1,n(R))},j=()=>{s=!0,r=!0,o.isProcessing||n(R)};return{schedule:Mr.reduce((U,K)=>{const H=f[K];return U[K]=($,W=!1,F=!1)=>(s||j(),H.schedule($,W,F)),U},{}),cancel:U=>{for(let K=0;K<Mr.length;K++)f[Mr[K]].cancel(U)},state:o,steps:f}}const{schedule:_e,cancel:ia,state:ot,steps:qc}=hv(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:Zt,!0);let kr;function aE(){kr=void 0}const wt={now:()=>(kr===void 0&&wt.set(ot.isProcessing||Dn.useManualTiming?ot.timestamp:performance.now()),kr),set:n=>{kr=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,Bi={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},$s=re(Z({},Bi),{transform:n=>Cn(0,1,n)}),Or=re(Z({},Bi),{default:1}),Ys=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=>Cn(0,255,n),Yc=re(Z({},Bi),{transform:n=>Math.round(oE(n))}),Da={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)+", "+Ys($s.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:Da.transform},fl=n=>({test:a=>typeof a=="string"&&a.endsWith(n)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${n}`}),aa=fl("deg"),cn=fl("%"),ue=fl("px"),cE=fl("vh"),fE=fl("vw"),$p=re(Z({},cn),{parse:n=>cn.parse(n)/100,transform:n=>cn.transform(n*100)}),Ti={test:nd("hsl","hue"),parse:pv("hue","saturation","lightness"),transform:({hue:n,saturation:a,lightness:s,alpha:r=1})=>"hsla("+Math.round(n)+", "+cn.transform(Ys(a))+", "+cn.transform(Ys(s))+", "+Ys($s.transform(r))+")"},$e={test:n=>Da.test(n)||hf.test(n)||Ti.test(n),parse:n=>Da.test(n)?Da.parse(n):Ti.test(n)?Ti.parse(n):hf.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Da.transform(n):Ti.transform(n),getAnimatableNone:n=>{const a=$e.parse(n);return a.alpha=0,$e.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 Js(n){const a=n.toString(),s=[],r={color:[],number:[],var:[]},o=[];let c=0;const p=a.replace(gE,m=>($e.test(m)?(r.color.push(c),o.push(yv),s.push($e.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 Js(n).values}function xv(n){const{split:a,types:s}=Js(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+=Ys(o[f]):p===yv?c+=$e.transform(o[f]):c+=o[f]}return c}}const yE=n=>typeof n=="number"?0:$e.test(n)?$e.getAnimatableNone(n):n;function vE(n){const a=vv(n);return xv(n)(a.map(yE))}const sa={test:hE,parse:vv,createTransformer:xv,getAnimatableNone:vE};function Gc(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=Gc(m,p,n+1/3),c=Gc(m,p,n),f=Gc(m,p,n-1/3)}return{red:Math.round(o*255),green:Math.round(c*255),blue:Math.round(f*255),alpha:r}}function Qr(n,a){return s=>s>0?a:n}const ke=(n,a,s)=>n+(a-n)*s,Pc=(n,a,s)=>{const r=n*n,o=s*(a*a-r)+r;return o<0?0:Math.sqrt(o)},bE=[hf,Da,Ti],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===Ti&&(s=xE(s)),s}const Ip=(n,a)=>{const s=Wp(n),r=Wp(a);if(!s||!r)return Qr(n,a);const o=Z({},s);return c=>(o.red=Pc(s.red,r.red,c),o.green=Pc(s.green,r.green,c),o.blue=Pc(s.blue,r.blue,c),o.alpha=ke(s.alpha,r.alpha,c),Da.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=>ke(n,a,s)}function ad(n){return typeof n=="number"?TE:typeof n=="string"?ed(n)?Qr:$e.test(n)?Ip:jE:Array.isArray(n)?bv:typeof n=="object"?$e.test(n)?Ip:EE:Qr}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=Z(Z({},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=sa.createTransformer(a),r=Js(n),o=Js(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):ul(bv(AE(r,o),o.values),s):Qr(n,a)};function Sv(n,a,s){return typeof n=="number"&&typeof a=="number"&&typeof s=="number"?ke(n,a,s):ad(n)(n,a)}const NE=n=>{const a=({timestamp:s})=>n(s);return{start:(s=!0)=>_e.update(a,s),stop:()=>ia(a),now:()=>ot.isProcessing?ot.timestamp:wt.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)})`},Fr=2e4;function id(n){let a=0;const s=50;let r=n.next(a);for(;!r.done&&a<Fr;)a+=s,r=n.next(a);return a>=Fr?1/0:a}function RE(n,a=100,s){const r=s(re(Z({},n),{keyframes:[0,a]})),o=Math.min(id(r),Fr);return{type:"keyframes",ease:c=>r.next(o*c).value/a,duration:un(o)}}const CE=5;function Tv(n,a,s){const r=Math.max(a-CE,0);return nv(s-n(r),a-r)}const Pe={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=Pe.duration,bounce:a=Pe.bounce,velocity:s=Pe.velocity,mass:r=Pe.mass}){let o,c,f=1-a;f=Cn(Pe.minDamping,Pe.maxDamping,f),n=Cn(Pe.minDuration,Pe.maxDuration,un(n)),f<1?(o=h=>{const y=h*f,x=y*n,S=y-s,T=pf(h,f),A=Math.exp(-x);return Xc-S/T*A},c=h=>{const x=h*f*n,S=x*s+s,T=Math.pow(f,2)*Math.pow(h,2)*n,A=Math.exp(-x),R=pf(Math.pow(h,2),f);return(-o(h)+Xc>0?-1:1)*((S-T)*A)/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=on(n),isNaN(m))return{stiffness:Pe.stiffness,damping:Pe.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=Z({velocity:Pe.velocity,stiffness:Pe.stiffness,damping:Pe.damping,mass:Pe.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*Cn(.05,1,1-(n.bounce||0))*Math.sqrt(o);a=re(Z({},a),{mass:Pe.mass,stiffness:o,damping:c})}else{const s=DE(n);a=re(Z(Z({},a),s),{mass:Pe.mass}),a.isResolvedFromDuration=!0}return a}function $r(n=Pe.visualDuration,a=Pe.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(re(Z({},s),{velocity:-un(s.velocity||0)})),A=S||0,R=h/(2*Math.sqrt(m*y)),j=f-c,M=un(Math.sqrt(m/y)),V=Math.abs(j)<5;r||(r=V?Pe.restSpeed.granular:Pe.restSpeed.default),o||(o=V?Pe.restDelta.granular:Pe.restDelta.default);let U;if(R<1){const H=pf(M,R);U=$=>{const W=Math.exp(-R*M*$);return f-W*((A+R*M*j)/H*Math.sin(H*$)+j*Math.cos(H*$))}}else if(R===1)U=H=>f-Math.exp(-M*H)*(j+(A+M*j)*H);else{const H=M*Math.sqrt(R*R-1);U=$=>{const W=Math.exp(-R*M*$),F=Math.min(H*$,300);return f-W*((A+R*M*j)*Math.sinh(F)+H*j*Math.cosh(F))/H}}const K={calculatedDuration:T&&x||null,next:H=>{const $=U(H);if(T)p.done=H>=x;else{let W=H===0?A:0;R<1&&(W=H===0?on(A):Tv(U,H,$));const F=Math.abs(W)<=r,ce=Math.abs(f-$)<=o;p.done=F&&ce}return p.value=p.done?f:$,p},toString:()=>{const H=Math.min(id(K),Fr),$=wv(W=>K.next(H*W).value,H,30);return H+"ms "+$},toTransition:()=>{}};return K}$r.applyToOptions=n=>{const a=RE(n,100,$r);return n.ease=a.ease,n.duration=on(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,A=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),K=F=>{const ce=V(F),be=U(F);S.done=Math.abs(ce)<=h,S.value=S.done?M:be};let H,$;const W=F=>{T(S.value)&&(H=F,$=$r({keyframes:[S.value,A(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!$&&H===void 0&&(ce=!0,K(F),W(F)),H!==void 0&&F>=H?$.next(F-H):(!ce&&K(F),S)}}}function VE(n,a,s){const r=[],o=s||Dn.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]||Zt:a;p=ul(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=Fs(n[x],n[x+1],y);return p[x](S)};return s?y=>h(Cn(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=Fs(0,a,r);n.push(ke(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 Gs({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 GE={decay:gf,inertia:gf,tween:Gs,keyframes:Gs,spring:$r};function Ev(n){typeof n.type=="string"&&(n.type=GE[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 PE=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!==wt.now()&&this.tick(wt.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=Gs,repeat:r=0,repeatDelay:o=0,repeatType:c,velocity:f=0}=a;let{keyframes:p}=a;const m=s||Gs;m!==Gs&&typeof p[0]!="number"&&(this.mixKeyframes=ul(PE,Sv(p[0],p[1])),p=[0,100]);const h=m(re(Z({},a),{keyframes:p}));c==="mirror"&&(this.mirroredGenerator=m(re(Z({},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:A,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,K=r;if(x){const F=Math.min(this.currentTime,o)/p;let ce=Math.floor(F),be=F%1;!be&&F>=1&&(be=1),be===1&&ce--,ce=Math.min(ce,x+1),!!(ce%2)&&(S==="reverse"?(be=1-be,T&&(be-=T/p)):S==="mirror"&&(K=f)),U=Cn(0,1,be)*p}const H=V?{done:!1,value:y[0]}:K.next(U);c&&(H.value=c(H.value));let{done:$}=H;!V&&m!==null&&($=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const W=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);return W&&A!==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 un(this.calculatedDuration)}get time(){return un(this.currentTime)}set time(a){var s;a=on(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(wt.now());const s=this.playbackSpeed!==a;this.playbackSpeed=a,s&&(this.time=un(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(wt.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 Ma=n=>n*180/Math.PI,yf=n=>{const a=Ma(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=>Ma(Math.atan(n[1])),skewY:n=>Ma(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(Ma(Math.atan2(n[6],n[5]))),rotateY:n=>vf(Ma(Math.atan2(-n[2],n[0]))),rotateZ:tg,rotate:tg,skewX:n=>Ma(Math.atan(n[4])),skewY:n=>Ma(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 Vi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ui=new Set(Vi),ig=n=>n===Bi||n===ue,$E=new Set(["x","y","z"]),JE=Vi.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 La={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")};La.translateX=La.x;La.translateY=La.y;const za=new Set;let Sf=!1,wf=!1,Tf=!1;function Av(){if(wf){const n=Array.from(za).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,za.forEach(n=>n.complete(Tf)),za.clear()}function jv(){za.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?(za.add(this),Sf||(Sf=!0,_e.read(jv),_e.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),za.delete(this)}cancel(){this.state==="scheduled"&&(za.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"),ks=([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:ks([0,.65,.55,1]),circOut:ks([.55,0,1,.45]),backIn:ks([.31,.01,.66,-.59]),backOut:ks([.33,1.53,.69,.99])};function Rv(n,a){if(n)return typeof n=="function"?Nv()?wv(n,a):"ease-out":dv(n)?ks(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=at(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 un(Number(a))}get time(){return un(Number(this.animation.currentTime)||0)}set time(a){this.finishedTime=null,this.animation.currentTime=on(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,Zt):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=at(h,["motionValue","onUpdate","onComplete","element"]);if(!s)return;if(a!==void 0){s.set(a);return}const p=new rd(re(Z({},f),{autoplay:!1})),m=on((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"&&(sa.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=at(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=wt.now();const A=Z({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,A,!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=wt.now(),d4(a,c,f,p)||((Dn.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=re(Z({startTime:x,finalKeyframe:s},r),{keyframes:a}),T=!h&&p4(S)?new c4(re(Z({},S),{element:S.motionValue.owner.current})):new rd(S);T.finished.then(()=>this.notifyFinished()).catch(Zt),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",...Vi]),b4={test:n=>n==="auto",parse:n=>n},Lv=n=>a=>a.test(n),zv=[Bi,ue,cn,aa,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=re(Z({},sa),{getAnimatableNone:n=>{const a=n.match(E4);return a?a.map(T4).join(" "):n}}),ug=re(Z({},Bi),{transform:Math.round}),A4={rotate:aa,rotateX:aa,rotateY:aa,rotateZ:aa,scale:Or,scaleX:Or,scaleY:Or,scaleZ:Or,skew:aa,skewX:aa,skewY:aa,distance:ue,translateX:ue,translateY:ue,translateZ:ue,x:ue,y:ue,z:ue,perspective:ue,transformPerspective:ue,opacity:$s,originX:$p,originY:$p,originZ:ue},cd=re(Z({borderWidth:ue,borderTopWidth:ue,borderRightWidth:ue,borderBottomWidth:ue,borderLeftWidth:ue,borderRadius:ue,radius:ue,borderTopLeftRadius:ue,borderTopRightRadius:ue,borderBottomRightRadius:ue,borderBottomLeftRadius:ue,width:ue,maxWidth:ue,height:ue,maxHeight:ue,top:ue,right:ue,bottom:ue,left:ue,padding:ue,paddingTop:ue,paddingRight:ue,paddingBottom:ue,paddingLeft:ue,margin:ue,marginTop:ue,marginRight:ue,marginBottom:ue,marginLeft:ue,backgroundPositionX:ue,backgroundPositionY:ue},A4),{zIndex:ug,fillOpacity:$s,strokeOpacity:$s,numOctaves:ug}),j4=re(Z({},cd),{color:$e,backgroundColor:$e,outlineColor:$e,fill:$e,stroke:$e,borderColor:$e,borderTopColor:$e,borderRightColor:$e,borderBottomColor:$e,borderLeftColor:$e,filter:Af,WebkitFilter:Af}),Bv=n=>j4[n];function Vv(n,a){let s=Bv(n);return s!==Af&&(s=sa),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)&&Js(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 La[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=La[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]=La[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=wt.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=wt.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(),_e.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=wt.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 Ci(n,a){return new O4(n,a)}const{schedule:fd}=hv(queueMicrotask,!1),Jt={x:!1,y:!1};function Hv(){return Jt.x||Jt.y}function L4(n){return n==="x"||n==="y"?Jt[n]?null:(Jt[n]=!0,()=>{Jt[n]=!1}):Jt.x||Jt.y?null:(Jt.x=Jt.y=!0,()=>{Jt.x=Jt.y=!1})}function kv(n,a){const s=D4(n),r=new AbortController,o=re(Z({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 qr=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(qr.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;qr.add(m);const h=a(m,p),y=(T,A)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",S),qr.has(m)&&qr.delete(m),hg(T)&&typeof h=="function"&&h(T,{success:A})},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 mt=n=>!!(n&&n.getVelocity),k4=[...zv,$e,sa],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 G4({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 A=document.createElement("style");p&&(A.nonce=p);const R=r!=null?r:document.head;return R.appendChild(A),A.sheet&&A.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(A)&&R.removeChild(A)}},[a]),g.jsx(Y4,{isPresent:a,childRef:c,sizeRef:f,children:w.cloneElement(n,{ref:c})})}const P4=({children:n,initial:a,isPresent:s,onExitComplete:r,custom:o,presenceAffectsLayout:c,mode:f,anchorX:p,root:m})=>{const h=Pf(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 A of h.values())if(!A)return;r&&r()},register:T=>(h.set(T,!1),()=>h.delete(T))}),[s,h,r]);return c&&x&&(S=Z({},S)),w.useMemo(()=>{h.forEach((T,A)=>h.set(A,!1))},[s]),w.useEffect(()=>{!s&&!h.size&&r&&r()},[s]),f==="popLayout"&&(n=g.jsx(G4,{isPresent:s,anchorX:p,root:m,children:n})),g.jsx(ro.Provider,{value:S,children:n})};function X4(){return new Map}function Gv(n=!0){const a=w.useContext(ro);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 Lr=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]=Gv(f),x=w.useMemo(()=>mg(n),[n]),S=f&&!h?[]:x.map(Lr),T=w.useRef(!0),A=w.useRef(x),R=Pf(()=>new Map),[j,M]=w.useState(x),[V,U]=w.useState(x);Wy(()=>{T.current=!1,A.current=x;for(let $=0;$<V.length;$++){const W=Lr(V[$]);S.includes(W)?R.delete(W):R.get(W)!==!0&&R.set(W,!1)}},[V,S.length,S.join("-")]);const K=[];if(x!==j){let $=[...x];for(let W=0;W<V.length;W++){const F=V[W],ce=Lr(F);S.includes(ce)||($.splice(W,0,F),K.push(F))}return c==="wait"&&K.length&&($=K),U(mg($)),M(x),null}const{forceRender:H}=w.useContext(Gf);return g.jsx(g.Fragment,{children:V.map($=>{const W=Lr($),F=f&&!h?!1:x===V||S.includes(W),ce=()=>{if(R.has(W))R.set(W,!0);else return;let be=!0;R.forEach(xe=>{xe||(be=!1)}),be&&(H==null||H(),U(A.current),f&&(y==null||y()),r&&r())};return g.jsx(P4,{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:$},W)})})},Pv=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"]},Di={};for(const n in pg)Di[n]={isEnabled:a=>pg[n].some(s=>!!a[s])};function Z4(n){for(const a in n)Di[a]=Z(Z({},Di[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 Jr(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=>!Jr(n);function F4(n){typeof n=="function"&&(Xv=a=>a.startsWith("on")?!Jr(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&&Jr(o)||!a&&!Jr(o)||n.draggable&&o.startsWith("onDrag"))&&(r[o]=n[o]);return r}const oo=w.createContext({});function uo(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function Ws(n){return typeof n=="string"||Array.isArray(n)}const md=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pd=["initial",...md];function co(n){return uo(n.animate)||pd.some(a=>Ws(n[a]))}function Kv(n){return!!(co(n)||n.variants)}function J4(n,a){if(co(n)){const{initial:s,animate:r}=n;return{initial:s===!1||Ws(s)?s:void 0,animate:Ws(r)?r:void 0}}return n.inherit!==!1?a:{}}function W4(n){const{initial:a,animate:s}=J4(n,w.useContext(oo));return w.useMemo(()=>({initial:a,animate:s}),[gg(a),gg(s)])}function gg(n){return Array.isArray(n)?n.join(" "):n}const Is={};function I4(n){for(const a in n)Is[a]=n[a],If(a)&&(Is[a].isCSSVariable=!0)}function Zv(n,{layout:a,layoutId:s}){return Ui.has(n)||n.startsWith("origin")||(a||s!==void 0)&&(!!Is[n]||n==="opacity")}const eA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tA=Vi.length;function nA(n,a,s){let r="",o=!0;for(let c=0;c<tA;c++){const f=Vi[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(Ui.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)!mt(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]=ue.transform(-r);const f=ue.transform(a),p=ue.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=at(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:A}=n;T.transform&&(A.transform=T.transform,delete T.transform),(A.transform||T.transformOrigin)&&(A.transformOrigin=(R=T.transformOrigin)!=null?R:"50% 50%",delete T.transformOrigin),A.transform&&(A.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=()=>re(Z({},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),re(Z({},c.attrs),{style:Z({},c.style)})},[a]);if(n.style){const c={};Qv(c,n.style,n),o.style=Z(Z({},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?re(Z(Z({},m),p),{ref:s}):{},{children:y}=a,x=w.useMemo(()=>mt(y)?y.get():y,[y]);return w.createElement(n,re(Z({},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 Yr(n){return mt(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]=Yr(c[T]);let{initial:f,animate:p}=n;const m=co(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"&&!uo(x)){const T=Array.isArray(x)?x:[x];for(let A=0;A<T.length;A++){const R=xd(n,T[A]);if(R){const S=R,{transitionEnd:j,transition:M}=S,V=at(S,["transitionEnd","transition"]);for(const U in V){let K=V[U];if(Array.isArray(K)){const H=y?K.length-1:0;K=K[H]}K!==null&&(o[U]=K)}for(const U in j)o[U]=j[U]}}}return o}const Wv=n=>(a,s)=>{const r=w.useContext(oo),o=w.useContext(ro),c=()=>dA(n,a,r,o);return s?c():Pf(c)};function bd(n,a,s){var c;const{style:r}=n,o={};for(const f in r)(mt(r[f])||a.style&&mt(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(mt(n[o])||mt(a[o])){const c=Vi.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 Ei(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):Ei(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(oo),f=w.useContext(Pv),p=w.useContext(ro),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],A=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(),A.current&&y.animationState&&y.animationState.animateChanges())}),w.useEffect(()=>{y&&(!A.current&&y.animationState&&y.animationState.animateChanges(),A.current&&(queueMicrotask(()=>{var M;(M=window.MotionHandoffMarkAsComplete)==null||M.call(window,T)}),A.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&&Ei(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=re(Z(Z({},w.useContext(hd)),h),{layoutId:SA(h)}),{isStatic:T}=S,A=W4(h),R=o(h,T);if(!T&&Xf){wA();const j=TA(S);x=j.MeasureLayout,A.visualElement=xA(n,R,S,r,j.ProjectionNode)}return g.jsxs(oo.Provider,{value:A,children:[x&&A.visualElement?g.jsx(x,Z({visualElement:A.visualElement},S)):null,fA(n,h,yA(R,A.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(Gf).id;return a&&n!==void 0?a+"-"+n:n}function wA(n,a){w.useContext(Pv).strict}function TA(n){const{drag:a,layout:s}=Di;if(!a&&!s)return{};const r=Z(Z({},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 Ra(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 Wr(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=Wr(n,o,r)),Wr(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&&ji(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&&Ra(c.latestValues)&&ji(n,c.latestValues))}a.x<Sg&&a.x>bg&&(a.x=1),a.y<Sg&&a.y>bg&&(a.y=1)}function Ai(n,a){n.min=n.min+a,n.max=n.max+a}function wg(n,a,s,r,o=.5){const c=ke(n.min,n.max,o);Nf(n,a,s,c,r)}function ji(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&&(Ai(r.x,o.offset.x),Ai(r.y,o.offset.y)),r}const Tg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ni=()=>({x:Tg(),y:Tg()}),Eg=()=>({min:0,max:0}),Ze=()=>({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(mt(o))n.addValue(r,o);else if(mt(c))n.addValue(r,Ci(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,Ci(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=wt.now();this.renderScheduledAt<T&&(this.renderScheduledAt=T,_e.render(this.render,!1,!0))};const{latestValues:m,renderState:h}=f;this.latestValues=m,this.baseTarget=Z({},m),this.initialValues=s.initial?Z({},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=co(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=at(S,["willChange"]);for(const T in x){const A=x[T];m[T]!==void 0&&mt(A)&&A.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(),ia(this.notifyUpdate),ia(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=Ui.has(a);r&&this.onBindTransform&&this.onBindTransform();const o=s.on("change",f=>{this.latestValues[a]=f,this.props.onUpdate&&_e.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 Di){const s=Di[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):Ze()}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=Ci(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)&&sa.test(s)&&(r=Vv(a,s)),this.setBaseTarget(a,mt(r)?r.get():r)),mt(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&&!mt(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;mt(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(Ui.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=Ze}getBaseTargetFromProps(a,s){return a[s]}readValueFromInstance(a,s){if(Ui.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 Ri(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,Ci(s))}function HA(n){return Cf(n)?n[n.length-1]||0:n}function kA(n,a){let f=Ri(n,a)||{},{transitionEnd:r={},transition:o={}}=f,c=at(f,["transitionEnd","transition"]);c=Z(Z({},c),r);for(const p in c){const m=HA(c[p]);_A(n,p,m)}}function qA(n){return!!(mt(n)&&n.add)}function Df(n,a){const s=n.getValue("willChange");if(qA(s))return s.add(a);if(!s&&Dn.WillChange){const r=new Dn.WillChange("auto");n.addValue("willChange",r),r.add(a)}}function f1(n){return n.props[e1]}const YA=n=>n!==null;function GA(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 PA={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:Ui.has(n)?n.startsWith("scale")?XA(a[1]):PA: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=at(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-on(m);const y=re(Z({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=on(y.duration)),y.repeatDelay&&(y.repeatDelay=on(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)),(Dn.instantAnimations||Dn.skipAnimations)&&(x=!0,Ef(y),y.delay=0),y.allowFlatten=!p.type&&!p.ease,x&&!c&&a.get()!==void 0){const S=GA(y.keyframes,p);if(S!==void 0){_e.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=at(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),A=p[S];if(A===void 0||h&&$A(h,S))continue;const R=Z({delay:s},ud(c||{},S)),j=T.get();if(j!==void 0&&!T.isAnimating&&!Array.isArray(A)&&A===j&&!R.velocity)continue;let M=!1;if(window.MotionHandoffAnimation){const U=f1(n);if(U){const K=window.MotionHandoffAnimation(U,S,_e);K!==null&&(R.startTime=K,M=!0)}}Df(n,S),T.start(wd(S,T,A,n.shouldReduceMotion&&Ov.has(S)?{type:!1}:R,n,M));const V=T.animation;V&&m.push(V)}return f&&Promise.all(m).then(()=>{_e.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=Ri(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,re(Z({},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"?Ri(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];(Ws(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=Ri(n,y,m==="exit"?(S=n.presenceContext)==null?void 0:S.custom:void 0);if(x){const T=x,{transition:A,transitionEnd:R}=T,j=at(T,["transition","transitionEnd"]);h=Z(Z(Z({},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={},A=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],K=Ws(U),H=M===m?V.isActive:null;H===!1&&(A=j);let $=U===y[M]&&U!==h[M]&&K;if($&&r&&n.manuallyAnimateOnMount&&($=!1),V.protectedKeys=Z({},T),!V.isActive&&H===null||!U&&!V.prevProp||uo(U)||typeof U=="boolean")continue;const W=ij(V.prevProp,U);let F=W||M===m&&V.isActive&&!$&&K||j>A&&K,ce=!1;const be=Array.isArray(U)?U:[U];let xe=be.reduce(o(M),{});H===!1&&(xe={});const{prevResolvedValues:Ae={}}=V,de=Z(Z({},Ae),xe),Le=Q=>{F=!0,S.has(Q)&&(ce=!0,S.delete(Q)),V.needsAnimating[Q]=!0;const I=n.getValue(Q);I&&(I.liveStyle=!1)};for(const Q in de){const I=xe[Q],me=Ae[Q];if(T.hasOwnProperty(Q))continue;let N=!1;Cf(I)&&Cf(me)?N=!m1(I,me):N=I!==me,N?I!=null?Le(Q):S.add(Q):I!==void 0&&S.has(Q)?Le(Q):V.protectedKeys[Q]=!0}V.prevProp=U,V.prevResolvedValues=xe,V.isActive&&(T=Z(Z({},T),xe)),r&&n.blockInitialAnimation&&(F=!1);const je=$&&W;F&&(!je||ce)&&x.push(...be.map(Q=>{const I={type:M};if(typeof Q=="string"&&r&&!je&&n.manuallyAnimateOnMount&&n.parent){const{parent:me}=n,N=Ri(me,Q);if(me.enteringChildren&&N){const{delayChildren:P}=N.transition||{};I.delay=h1(me.enteringChildren,n,P)}}return{animation:Q,options:I}}))}if(S.size){const j={};if(typeof h.initial!="boolean"){const M=Ri(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 Na(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jg(){return{animate:Na(!0),whileInView:Na(),whileHover:Na(),whileTap:Na(),whileDrag:Na(),whileFocus:Na(),exit:Na()}}class ra{constructor(a){this.isMounted=!1,this.node=a}update(){}}class sj extends ra{constructor(a){super(a),a.animationState||(a.animationState=aj(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();uo(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 ra{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 el(n,a,s,r={passive:!0}){return n.addEventListener(a,s,r),()=>n.removeEventListener(a,s)}function dl(n){return{point:{x:n.pageX,y:n.pageY}}}const uj=n=>a=>dd(a)&&n(a,dl(a));function Ps(n,a,s,r){return el(n,a,uj(s),r)}const g1=1e-4,cj=1-g1,fj=1+g1,y1=.01,dj=0-y1,hj=0+y1;function gt(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=ke(a.min,a.max,n.origin),n.scale=gt(s)/gt(a),n.translate=ke(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 Xs(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+gt(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+gt(a)}function Ks(n,a,s){Cg(n.x,a.x,s.x),Cg(n.y,a.y,s.y)}function Kt(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,A=gj(S.offset,{x:0,y:0})>=this.distanceThreshold;if(!T&&!A)return;const{point:R}=S,{timestamp:j}=ot;this.history.push(re(Z({},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),_e.update(this.updatePoint,!0)},this.handlePointerUp=(S,T)=>{this.end();const{onEnd:A,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&&A&&A(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=dl(a),m=Fc(p,this.transformPagePoint),{point:h}=m,{timestamp:y}=ot;this.history=[re(Z({},h),{timestamp:y})];const{onSessionStart:x}=s;x&&x(a,$c(m,this.history)),this.removeListeners=ul(Ps(this.contextWindow,"pointermove",this.handlePointerMove),Ps(this.contextWindow,"pointerup",this.handlePointerUp),Ps(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),ia(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>on(a)));)s--;if(!r)return{x:0,y:0};const c=un(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?ke(a,n,r.min):Math.max(n,a):s!==void 0&&n>s&&(n=r?ke(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=gt(n),o=gt(a);return o>r?s=Fs(a.min,a.max-r,n.min):r>o&&(s=Fs(n.min,n.max-o,a.min)),Cn(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=Ze(),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(dl(x).point)},f=(x,S)=>{const{drag:T,dragPropagation:A,onDragStart:R}=this.getProps();if(T&&!A&&(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),Kt(M=>{let V=this.getAxisMotionValue(M).get()||0;if(cn.test(V)){const{projection:U}=this.visualElement;if(U&&U.layout){const K=U.layout.layoutBox[M];K&&(V=gt(K)*(parseFloat(V)/100))}}this.originPoint[M]=V}),R&&_e.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:A,onDirectionLock:R,onDrag:j}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:M}=S;if(A&&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=()=>Kt(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&&_e.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||!zr(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&&Ei(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&&Kt(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||!Ei(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=Kt(y=>{if(!zr(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,A=Z(Z({type:"inertia",velocity:r?a[y]:0,bounceStiffness:S,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10},c),x);return this.startAxisValueAnimation(y,A)});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(){Kt(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){Kt(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){Kt(s=>{const{drag:r}=this.getProps();if(!zr(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]-ke(f,p,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:s}=this.getProps(),{projection:r}=this.visualElement;if(!Ei(s)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Kt(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(),Kt(f=>{if(!zr(f,a,null))return;const p=this.getAxisMotionValue(f),{min:m,max:h}=this.constraints[f];p.set(ke(m,h,o[f]))})}addListeners(){if(!this.visualElement.current)return;Aj.set(this.visualElement,this);const a=this.visualElement.current,s=Ps(a,"pointerdown",m=>{const{drag:h,dragListener:y=!0}=this.getProps();h&&y&&this.start(m)}),r=()=>{const{dragConstraints:m}=this.getProps();Ei(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()),_e.read(r);const f=el(window,"resize",()=>this.scalePositionWithinConstraints()),p=o.addEventListener("didUpdate",({delta:m,hasLayoutChanged:h})=>{this.isDragging&&h&&(Kt(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 re(Z({},a),{drag:s,dragDirectionLock:r,dragPropagation:o,dragConstraints:c,dragElastic:f,dragMomentum:p})}}function zr(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 ra{constructor(a){super(a),this.removeGroupControls=Zt,this.removeListeners=Zt,this.controls=new jj(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Zt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Vg=n=>(a,s)=>{n&&_e.postRender(()=>n(a,s))};class Cj extends ra{constructor(){super(...arguments),this.removePointerDownListener=Zt}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&&_e.postRender(()=>o(c,f))}}}mount(){this.removePointerDownListener=Ps(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 Hs={correct:(n,a)=>{if(!a.target)return n;if(typeof n=="string")if(ue.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=sa.parse(n);if(o.length>5)return r;const c=sa.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=ke(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(re(Z({},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()||_e.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]=Gv(),r=w.useContext(Gf);return g.jsx(Mj,re(Z({},n),{layoutGroup:r,switchLayoutGroup:w.useContext(t1),isPresent:a,safeToRemove:s}))}const Oj={borderRadius:re(Z({},Hs),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Hs,borderTopRightRadius:Hs,borderBottomLeftRadius:Hs,borderBottomRightRadius:Hs,boxShadow:Dj};function Lj(n,a,s){const r=mt(n)?n:Ci(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=wt.now(),r=({timestamp:o})=>{const c=o-s;c>=a&&(ia(r),n(c-a))};return _e.setup(r,!0),()=>ia(r)}const w1=["TopLeft","TopRight","BottomLeft","BottomRight"],Uj=w1.length,_g=n=>typeof n=="string"?parseFloat(n):n,Hg=n=>typeof n=="number"||ue.test(n);function _j(n,a,s,r,o,c){var f,p,m,h;o?(n.opacity=ke(0,(f=s.opacity)!=null?f:1,Hj(r)),n.opacityExit=ke((p=a.opacity)!=null?p:1,0,kj(r))):c&&(n.opacity=ke((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(ke(_g(S),_g(T),r),0),(cn.test(T)||cn.test(S))&&(n[x]+="%")):n[x]=T}(a.rotate||s.rotate)&&(n.rotate=ke(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,Zt);function T1(n,a,s){return r=>r<n?0:r>a?1:s(Fs(n,a,r))}function qg(n,a){n.min=a.min,n.max=a.max}function Xt(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 Gg(n,a,s,r,o){return n-=a,n=Wr(n,1/s,r),o!==void 0&&(n=Wr(n,1/o,r)),n}function qj(n,a=0,s=1,r=.5,o,c=n,f=n){if(cn.test(a)&&(a=parseFloat(a),a=ke(f.min,f.max,a/100)-f.min),typeof a!="number")return;let p=ke(c.min,c.max,r);n===c&&(p-=a),n.min=Gg(n.min,a,s,p,o),n.max=Gg(n.max,a,s,p,o)}function Pg(n,a,[s,r,o],c,f){qj(n,a[s],a[r],a[o],a.scale,c,f)}const Yj=["x","scaleX","originX"],Gj=["y","scaleY","originY"];function Xg(n,a,s,r){Pg(n.x,a,Yj,s?s.x:void 0,r?r.x:void 0),Pg(n.y,a,Gj,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 Pj(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 gt(n.x)/gt(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:A}=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) `),A&&(r+=`skewY(${A}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",_e,!(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;_e.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 A=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=re(Z({},ud(A,"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(),ia(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=wt.now();ot.delta=Cn(0,1e3/60,p-ot.timestamp),ot.timestamp=p,ot.isProcessing=!0,qc.update.process(ot),qc.preRender.process(ot),qc.render.process(ot),ot.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,_e.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){_e.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!gt(this.snapshot.measuredBox.x)&&!gt(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=Ze(),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||Ra(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 Ze();const p=f.measureViewportBox();if(!(((h=this.scroll)==null?void 0:h.wasRoot)||this.path.some(uN))){const{scroll:y}=this.root;y&&(Ai(p.x,y.offset.x),Ai(p.y,y.offset.y))}return p}removeElementScroll(f){var m;const p=Ze();if(Xt(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&&Xt(p,f),Ai(p.x,x.offset.x),Ai(p.y,x.offset.y))}return p}applyTransform(f,p=!1){const m=Ze();Xt(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&&ji(m,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),Ra(y.latestValues)&&ji(m,y.latestValues)}return Ra(this.latestValues)&&ji(m,this.latestValues),m}removeTransform(f){const p=Ze();Xt(p,f);for(let m=0;m<this.path.length;m++){const h=this.path[m];if(!h.instance||!Ra(h.latestValues))continue;jf(h.latestValues)&&h.updateSnapshot();const y=Ze(),x=h.measurePageBox();Xt(y,x),Xg(p,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,y)}return Ra(this.latestValues)&&Xg(p,this.latestValues),p}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options=re(Z(Z({},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!==ot.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=ot.timestamp,!this.targetDelta&&!this.relativeTarget){const T=this.getClosestProjectingParent();T&&T.layout&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ze(),this.relativeTargetOrigin=Ze(),Ks(this.relativeTargetOrigin,this.layout.layoutBox,T.layout.layoutBox),Xt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ze(),this.targetWithTransforms=Ze()),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):Xt(this.target,this.layout.layoutBox),s1(this.target,this.targetDelta)):Xt(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=Ze(),this.relativeTargetOrigin=Ze(),Ks(this.relativeTargetOrigin,this.target,T.target),Xt(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 A;const f=this.getLead(),p=!!this.resumingFrom||this!==f;let m=!0;if((this.isProjectionDirty||(A=this.parent)!=null&&A.isProjectionDirty)&&(m=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===ot.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;Xt(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=Ze());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)),Xs(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=Ni(),this.projectionDelta=Ni(),this.projectionDeltaWithTransform=Ni()}setAnimationOrigin(f,p=!1){const m=this.snapshot,h=m?m.latestValues:{},y=Z({},this.latestValues),x=Ni();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const S=Ze(),T=m?m.source:void 0,A=this.layout?this.layout.source:void 0,R=T!==A,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=K=>{const H=K/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&&(Ks(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),sN(this.relativeTarget,this.relativeTargetOrigin,S,H),U&&Pj(this.relativeTarget,U)&&(this.isProjectionDirty=!1),U||(U=Ze()),Xt(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&&(ia(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=_e.update(()=>{Gr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ci(0)),this.currentAnimation=Lj(this.motionValue,[0,1e3],re(Z({},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||Ze();const x=gt(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+x;const S=gt(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+S}Xt(p,m),ji(p,y),Xs(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 A,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=Yr(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=Yr(p==null?void 0:p.pointerEvents)||""),this.hasProjected&&!Ra(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=(A=y.opacity)!=null?A: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 Is){if(y[j]===void 0)continue;const{correct:M,applyTo:V,isCSSVariable:U}=Is[j],K=x==="none"?y[j]:M(y[j],h);if(V){const H=V.length;for(let $=0;$<H;$++)f[V[$]]=K}else U?this.options.visualElement.renderState.vars[j]=K:f[j]=K}this.options.layoutId&&(f.pointerEvents=h===this?Yr(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"?Kt(x=>{const S=f?a.measuredBox[x]:a.layoutBox[x],T=gt(S);S.min=r[x].min,S.max=S.min+T}):R1(c,a.layoutBox,r)&&Kt(x=>{const S=f?a.measuredBox[x]:a.layoutBox[x],T=gt(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=Ni();Xs(p,r,a.layoutBox);const m=Ni();f?Xs(m,n.applyTransform(o,!0),a.measuredBox):Xs(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 A=Ze();Ks(A,a.layoutBox,S.layoutBox);const R=Ze();Ks(R,r,T.layoutBox),A1(A,R)||(y=!0),x.options.layoutRoot&&(n.relativeTarget=R,n.relativeTargetOrigin=A,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=ke(a.translate,0,s),n.scale=ke(a.scale,1,s),n.origin=a.origin,n.originPoint=a.originPoint}function ty(n,a,s,r){n.min=ke(a.min,s.min,r),n.max=ke(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:Zt;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)=>el(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&&_e.postRender(()=>c(a,dl(a)))}class dN extends ra{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 ra{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=ul(el(this.node.current,"focus",()=>this.onFocus()),el(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&&_e.postRender(()=>c(a,dl(a)))}class mN extends ra{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=at(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,Z({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 ra{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=Z(Z(Z(Z({},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=al(),[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),[A,R]=w.useState(null),[j,M]=w.useState(""),[V,U]=w.useState(""),K=n.get("database"),{TransactionKey:H}=jt(de=>de),{Rootname:$}=Zr(de=>de),W=()=>Be(null,null,function*(){try{const de=yield we.get(`${At}/api/collection/all/?databaseName=${K}&transactiontoken=${H}`);if(de.status===200){const Le=de.data.data||{};if(Le.ListOfCollections&&Array.isArray(Le.ListOfCollections)){const je=Le.CollectionSizeMap||[],k=Le.collectionMetaStatus||[];p(k);const Q=Le.ListOfCollections.map(I=>{const me=je.find(P=>{const J=P.folderPath.split("/");return J[J.length-1]===I}),N=k.find(P=>P.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(Q)}else c([]);r(!1)}}catch(de){console.error("Error fetching collections:",de),r(!1),c([])}});w.useEffect(()=>{if(!K){a("/databases");return}H&&W()},[H,K,a]);const F=()=>{a("/databases")},ce=()=>{W()},be=de=>{U(de),x(!0)},xe=()=>{W()},Ae=de=>{const Le=o.find(je=>je.name===de);if(Le&&Le.isSchemaNeeded){const je=f.find(k=>k.name===de);je&&je.schema&&(R(je.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:K})]})]}),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 ",K]}),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:()=>Ae(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=${K}&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:()=>be(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(PT,{isOpen:m,onClose:()=>h(!1),onCollectionCreated:ce,databaseName:K}),y&&g.jsx(XT,{isOpen:y,onClose:()=>x(!1),onCollectionDeleted:xe,databaseName:K,collectionName:V}),S&&g.jsx(AN,{isOpen:S,onClose:()=>T(!1),schema:A,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}=jt(A=>A),T=A=>Be(null,null,function*(){var R;A.preventDefault(),h("");try{const j=JSON.parse(f);x(!0);const M=yield we.post(`${At}/api/operation/create/?dbName=${r}&collectionName=${o}&transactiontoken=${S}`,Z({},j));if(M.status===200||M.status===201){const V=(R=M.data.data)==null?void 0:R.documentId,U=re(Z({},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:A=>p(A.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}=jt(A=>A);w.useEffect(()=>{if(r){const A=r,{documentId:R,updatedAt:j}=A,M=at(A,["documentId","updatedAt"]);p(JSON.stringify(M,null,2))}},[r]);const T=A=>Be(null,null,function*(){var R;A.preventDefault(),h("");try{const j=JSON.parse(f);x(!0);const M=yield we.put(`${At}/api/operation/update/?dbName=${o}&collectionName=${c}&documentId=${r.documentId}&transactiontoken=${S}`,Z({},j));if(M.status===200){const V=((R=M.data.data)==null?void 0:R.document)||re(Z({},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:A=>p(A.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}=jt(S=>S),x=()=>Be(null,null,function*(){try{if(p(!0),(yield we.delete(`${At}/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,onSuccess:o})=>{const[c,f]=w.useState(`[
76
- {
77
- "$match": {
78
-
79
- }
80
- }
81
- ]`),[p,m]=w.useState(null),[h,y]=w.useState(""),[x,S]=w.useState(!1),{TransactionKey:T}=jt(R=>R),A=R=>Be(null,null,function*(){R.preventDefault(),y(""),m(null);try{const j=JSON.parse(c);S(!0);const M=yield we.post(`${At}/api/operation/aggregate/?dbName=${s}&collectionName=${r}&transactiontoken=${T}`,{pipeline:j});if(M.status===200)m(M.data.data||[]),S(!1);else throw new Error("Failed to run aggregation")}catch(j){j instanceof SyntaxError?y("Invalid JSON format. Please check your input."):y(`Error running aggregation: ${j.message}`),S(!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-4xl 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",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 Pipeline"]}),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.jsxs("p",{className:"text-sm text-indigo-700",children:["Enter an aggregation pipeline in JSON format to run against"," ",g.jsx("span",{className:"font-semibold",children:r})]})]}),h&&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:h})}),g.jsxs("form",{onSubmit:A,children:[g.jsxs("div",{className:"mb-4",children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Aggregation Pipeline (JSON Array)"}),g.jsx("textarea",{value:c,onChange:R=>f(R.target.value),className:"w-full h-48 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 aggregation pipeline as JSON array",required:!0}),g.jsxs("p",{className:"mt-2 text-xs text-gray-500",children:["Example: [","{","$match: ","{",'field: "value"',"}","}",", ","{","$sort: ","{","field: 1","}","}","]"]})]}),g.jsxs("div",{className:"flex justify-end space-x-3 mt-6 mb-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:"Close"}),g.jsx("button",{type:"submit",disabled:x,className:`px-4 py-2 rounded-md text-white flex items-center ${x?"bg-indigo-500":"bg-indigo-600 hover:bg-indigo-700"} transition-colors shadow-md`,children:x?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"})]}),"Processing..."]}):"Run Aggregate"})]})]}),p&&g.jsxs("div",{className:"border-t pt-6",children:[g.jsx("h4",{className:"text-lg font-medium text-gray-800 mb-3",children:"Aggregation Results"}),g.jsx("div",{className:"bg-gray-50 p-4 rounded-md border border-gray-200 overflow-auto max-h-80",children:g.jsx("pre",{className:"text-sm font-mono whitespace-pre-wrap break-words text-gray-800",children:JSON.stringify(p,null,2)})})]})]})]})}):null},ry=()=>{const[n]=Ey(),a=al(),[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}=jt(X=>X),[A,R]=w.useState(!1),[j,M]=w.useState(!1),[V,U]=w.useState(!1),[K,H]=w.useState(!1),[$,W]=w.useState(null),[F,ce]=w.useState(""),[be,xe]=w.useState([]),[Ae,de]=w.useState(!1),Le=w.useCallback((X=1,ee=!1)=>Be(null,null,function*(){try{r(!0);const ie=yield we.get(`${At}/api/operation/all/?dbName=${x}&collectionName=${S}&page=${X}&transactiontoken=${T}`);if(ie.status===200){const ae=ie.data.data.data.documents||[];c(ee?ae:it=>[...it,...ae]),p(ae.length===10)}r(!1)}catch(ie){console.error("Error fetching documents:",ie),r(!1)}}),[x,S,T]);w.useEffect(()=>{if(!x||!S){a("/collections");return}h(1),c([]),Le(1,!0)},[x,S,a,Le]);const je=w.useCallback(X=>{s||(y.current&&y.current.disconnect(),y.current=new IntersectionObserver(ee=>{ee[0].isIntersecting&&f&&(h(ie=>ie+1),Le(m+1))}),X&&y.current.observe(X))},[s,f,Le,m]);w.useEffect(()=>{if(!F.trim()){xe(o),de(!1);return}de(!0);try{const X=JSON.parse(F),ee=o.filter(ie=>Object.entries(X).every(([ae,it])=>ie[ae]!==void 0&&JSON.stringify(ie[ae]).toLowerCase().includes(JSON.stringify(it).toLowerCase())));xe(ee)}catch(X){const ee=F.toLowerCase(),ie=o.filter(ae=>JSON.stringify(ae).toLowerCase().includes(ee));xe(ie)}},[o,F]);const k=()=>{a(`/collections?database=${x}`)},Q=X=>{c(ee=>[X,...ee])},I=X=>{W(X),M(!0)},me=X=>{W(X),U(!0)},N=X=>{c(ee=>ee.map(ie=>ie.documentId===X.documentId?X:ie))},P=X=>{c(ee=>ee.filter(ie=>ie.documentId!==X))},J=X=>new Date(X).toLocaleString();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"]})]})]}),g.jsxs("div",{className:"border-b border-gray-200 bg-gray-50 px-6 py-3",children:[g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),g.jsx("input",{type:"text",value:F,onChange:X=>ce(X.target.value),placeholder:'Search documents... (e.g., "John" or {"name": "John"})',className:"pl-10 py-2 pr-4 w-full border border-gray-300 rounded-md focus:ring-indigo-500 focus:border-indigo-500 text-sm"}),F&&g.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3",children:g.jsx("button",{onClick:()=>ce(""),className:"text-gray-400 hover:text-gray-600",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",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"})})})})]}),F&&g.jsxs("div",{className:"mt-2 flex items-center text-sm text-gray-500",children:[g.jsxs("span",{className:"mr-2",children:["Found ",be.length," matching"," ",be.length===1?"document":"documents"]}),Ae&&o.length>0&&g.jsxs("span",{className:"text-indigo-600 font-medium",children:[Math.round(be.length/o.length*100),"% of total"]})]})]}),g.jsxs("div",{className:"p-6",children:[s&&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(X=>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"})]})]},X))}):(F?be:o).length>0?g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:(F?be:o).map((X,ee)=>g.jsx("div",{ref:!F&&ee===o.length-1?je: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:X.documentId,children:g.jsxs("span",{className:"text-sm",children:["ID: ",X.documentId]})})]}),g.jsx("span",{className:"text-xs text-gray-500",title:X.updatedAt,children:J(X.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(X).filter(([ie])=>!["documentId","updatedAt"].includes(ie))),null,2)})}),g.jsxs("div",{className:"flex justify-end space-x-2",children:[g.jsx("button",{onClick:()=>I(X),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(X),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"})]})]})},X.documentId))}):g.jsx("div",{className:"text-center py-12",children:F?g.jsxs(g.Fragment,{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:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),g.jsx("p",{className:"text-gray-500 mb-2",children:"No documents match your search criteria"}),g.jsx("button",{onClick:()=>ce(""),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 Search"})]}):g.jsxs(g.Fragment,{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."})]})]}),A&&g.jsx(NN,{isOpen:A,onClose:()=>R(!1),onDocumentInserted:Q,databaseName:x,collectionName:S,onSuccess:()=>Le(1,!0)}),j&&$&&g.jsx(RN,{isOpen:j,onClose:()=>M(!1),onDocumentUpdated:N,document:$,databaseName:x,collectionName:S}),V&&$&&g.jsx(CN,{isOpen:V,onClose:()=>U(!1),onDocumentDeleted:P,documentId:$.documentId,databaseName:x,collectionName:S}),K&&g.jsx(DN,{isOpen:K,onClose:()=>H(!1),databaseName:x,collectionName:S,onSuccess:()=>Le(1,!0)})]})};function MN(){const{loadKey:n}=jt(r=>r),[a,s]=w.useState(!0);return w.useEffect(()=>{Be(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(wi,{path:"/",element:g.jsx(HT,{})}),g.jsx(wi,{path:"/operations",element:g.jsx(GT,{})}),g.jsx(wi,{path:"/collections",element:g.jsx(jN,{})}),g.jsx(wi,{path:"/documents",element:g.jsx(ry,{})}),g.jsx(wi,{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();