gencow 0.1.112 → 0.1.113

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.
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Bg;function Qv(){if(Bg)return Ne;Bg=1;var a=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),w=Symbol.iterator;function N(R){return R===null||typeof R!="object"?null:(R=w&&R[w]||R["@@iterator"],typeof R=="function"?R:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,D={};function A(R,z,U){this.props=R,this.context=z,this.refs=D,this.updater=U||j}A.prototype.isReactComponent={},A.prototype.setState=function(R,z){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,z,"setState")},A.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function Z(){}Z.prototype=A.prototype;function F(R,z,U){this.props=R,this.context=z,this.refs=D,this.updater=U||j}var se=F.prototype=new Z;se.constructor=F,_(se,A.prototype),se.isPureReactComponent=!0;var ae=Array.isArray;function q(){}var W={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function K(R,z,U){var X=U.ref;return{$$typeof:a,type:R,key:z,ref:X!==void 0?X:null,props:U}}function te(R,z){return K(R.type,z,R.props)}function fe(R){return typeof R=="object"&&R!==null&&R.$$typeof===a}function Y(R){var z={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(U){return z[U]})}var P=/\/+/g;function de(R,z){return typeof R=="object"&&R!==null&&R.key!=null?Y(""+R.key):z.toString(36)}function re(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(q,q):(R.status="pending",R.then(function(z){R.status==="pending"&&(R.status="fulfilled",R.value=z)},function(z){R.status==="pending"&&(R.status="rejected",R.reason=z)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function M(R,z,U,X,Q){var ne=typeof R;(ne==="undefined"||ne==="boolean")&&(R=null);var ve=!1;if(R===null)ve=!0;else switch(ne){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(R.$$typeof){case a:case r:ve=!0;break;case b:return ve=R._init,M(ve(R._payload),z,U,X,Q)}}if(ve)return Q=Q(R),ve=X===""?"."+de(R,0):X,ae(Q)?(U="",ve!=null&&(U=ve.replace(P,"$&/")+"/"),M(Q,z,U,"",function(wt){return wt})):Q!=null&&(fe(Q)&&(Q=te(Q,U+(Q.key==null||R&&R.key===Q.key?"":(""+Q.key).replace(P,"$&/")+"/")+ve)),z.push(Q)),1;ve=0;var pe=X===""?".":X+":";if(ae(R))for(var he=0;he<R.length;he++)X=R[he],ne=pe+de(X,he),ve+=M(X,z,U,ne,Q);else if(he=N(R),typeof he=="function")for(R=he.call(R),he=0;!(X=R.next()).done;)X=X.value,ne=pe+de(X,he++),ve+=M(X,z,U,ne,Q);else if(ne==="object"){if(typeof R.then=="function")return M(re(R),z,U,X,Q);throw z=String(R),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return ve}function $(R,z,U){if(R==null)return R;var X=[],Q=0;return M(R,X,"","",function(ne){return z.call(U,ne,Q++)}),X}function le(R){if(R._status===-1){var z=R._result;z=z(),z.then(function(U){(R._status===0||R._status===-1)&&(R._status=1,R._result=U)},function(U){(R._status===0||R._status===-1)&&(R._status=2,R._result=U)}),R._status===-1&&(R._status=0,R._result=z)}if(R._status===1)return R._result.default;throw R._result}var me=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},I={map:$,forEach:function(R,z,U){$(R,function(){z.apply(this,arguments)},U)},count:function(R){var z=0;return $(R,function(){z++}),z},toArray:function(R){return $(R,function(z){return z})||[]},only:function(R){if(!fe(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return Ne.Activity=p,Ne.Children=I,Ne.Component=A,Ne.Fragment=s,Ne.Profiler=c,Ne.PureComponent=F,Ne.StrictMode=i,Ne.Suspense=v,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(R){return W.H.useMemoCache(R)}},Ne.cache=function(R){return function(){return R.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(R,z,U){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var X=_({},R.props),Q=R.key;if(z!=null)for(ne in z.key!==void 0&&(Q=""+z.key),z)!J.call(z,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&z.ref===void 0||(X[ne]=z[ne]);var ne=arguments.length-2;if(ne===1)X.children=U;else if(1<ne){for(var ve=Array(ne),pe=0;pe<ne;pe++)ve[pe]=arguments[pe+2];X.children=ve}return K(R.type,Q,X)},Ne.createContext=function(R){return R={$$typeof:m,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:f,_context:R},R},Ne.createElement=function(R,z,U){var X,Q={},ne=null;if(z!=null)for(X in z.key!==void 0&&(ne=""+z.key),z)J.call(z,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(Q[X]=z[X]);var ve=arguments.length-2;if(ve===1)Q.children=U;else if(1<ve){for(var pe=Array(ve),he=0;he<ve;he++)pe[he]=arguments[he+2];Q.children=pe}if(R&&R.defaultProps)for(X in ve=R.defaultProps,ve)Q[X]===void 0&&(Q[X]=ve[X]);return K(R,ne,Q)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(R){return{$$typeof:x,render:R}},Ne.isValidElement=fe,Ne.lazy=function(R){return{$$typeof:b,_payload:{_status:-1,_result:R},_init:le}},Ne.memo=function(R,z){return{$$typeof:h,type:R,compare:z===void 0?null:z}},Ne.startTransition=function(R){var z=W.T,U={};W.T=U;try{var X=R(),Q=W.S;Q!==null&&Q(U,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(q,me)}catch(ne){me(ne)}finally{z!==null&&U.types!==null&&(z.types=U.types),W.T=z}},Ne.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},Ne.use=function(R){return W.H.use(R)},Ne.useActionState=function(R,z,U){return W.H.useActionState(R,z,U)},Ne.useCallback=function(R,z){return W.H.useCallback(R,z)},Ne.useContext=function(R){return W.H.useContext(R)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(R,z){return W.H.useDeferredValue(R,z)},Ne.useEffect=function(R,z){return W.H.useEffect(R,z)},Ne.useEffectEvent=function(R){return W.H.useEffectEvent(R)},Ne.useId=function(){return W.H.useId()},Ne.useImperativeHandle=function(R,z,U){return W.H.useImperativeHandle(R,z,U)},Ne.useInsertionEffect=function(R,z){return W.H.useInsertionEffect(R,z)},Ne.useLayoutEffect=function(R,z){return W.H.useLayoutEffect(R,z)},Ne.useMemo=function(R,z){return W.H.useMemo(R,z)},Ne.useOptimistic=function(R,z){return W.H.useOptimistic(R,z)},Ne.useReducer=function(R,z,U){return W.H.useReducer(R,z,U)},Ne.useRef=function(R){return W.H.useRef(R)},Ne.useState=function(R){return W.H.useState(R)},Ne.useSyncExternalStore=function(R,z,U){return W.H.useSyncExternalStore(R,z,U)},Ne.useTransition=function(){return W.H.useTransition()},Ne.version="19.2.3",Ne}var Lg;function Rc(){return Lg||(Lg=1,Ku.exports=Qv()),Ku.exports}var S=Rc();const ee=jh(S);var Ju={exports:{}},Xs={},Iu={exports:{}},Wu={};/**
17
+ */var Bg;function Qv(){if(Bg)return Ne;Bg=1;var a=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),w=Symbol.iterator;function N(R){return R===null||typeof R!="object"?null:(R=w&&R[w]||R["@@iterator"],typeof R=="function"?R:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,D={};function A(R,z,U){this.props=R,this.context=z,this.refs=D,this.updater=U||j}A.prototype.isReactComponent={},A.prototype.setState=function(R,z){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,z,"setState")},A.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function Z(){}Z.prototype=A.prototype;function F(R,z,U){this.props=R,this.context=z,this.refs=D,this.updater=U||j}var se=F.prototype=new Z;se.constructor=F,_(se,A.prototype),se.isPureReactComponent=!0;var ae=Array.isArray;function q(){}var W={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function K(R,z,U){var X=U.ref;return{$$typeof:a,type:R,key:z,ref:X!==void 0?X:null,props:U}}function te(R,z){return K(R.type,z,R.props)}function fe(R){return typeof R=="object"&&R!==null&&R.$$typeof===a}function Y(R){var z={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(U){return z[U]})}var P=/\/+/g;function de(R,z){return typeof R=="object"&&R!==null&&R.key!=null?Y(""+R.key):z.toString(36)}function re(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(q,q):(R.status="pending",R.then(function(z){R.status==="pending"&&(R.status="fulfilled",R.value=z)},function(z){R.status==="pending"&&(R.status="rejected",R.reason=z)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function M(R,z,U,X,Q){var ne=typeof R;(ne==="undefined"||ne==="boolean")&&(R=null);var ve=!1;if(R===null)ve=!0;else switch(ne){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(R.$$typeof){case a:case r:ve=!0;break;case b:return ve=R._init,M(ve(R._payload),z,U,X,Q)}}if(ve)return Q=Q(R),ve=X===""?"."+de(R,0):X,ae(Q)?(U="",ve!=null&&(U=ve.replace(P,"$&/")+"/"),M(Q,z,U,"",function(wt){return wt})):Q!=null&&(fe(Q)&&(Q=te(Q,U+(Q.key==null||R&&R.key===Q.key?"":(""+Q.key).replace(P,"$&/")+"/")+ve)),z.push(Q)),1;ve=0;var pe=X===""?".":X+":";if(ae(R))for(var he=0;he<R.length;he++)X=R[he],ne=pe+de(X,he),ve+=M(X,z,U,ne,Q);else if(he=N(R),typeof he=="function")for(R=he.call(R),he=0;!(X=R.next()).done;)X=X.value,ne=pe+de(X,he++),ve+=M(X,z,U,ne,Q);else if(ne==="object"){if(typeof R.then=="function")return M(re(R),z,U,X,Q);throw z=String(R),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return ve}function G(R,z,U){if(R==null)return R;var X=[],Q=0;return M(R,X,"","",function(ne){return z.call(U,ne,Q++)}),X}function le(R){if(R._status===-1){var z=R._result;z=z(),z.then(function(U){(R._status===0||R._status===-1)&&(R._status=1,R._result=U)},function(U){(R._status===0||R._status===-1)&&(R._status=2,R._result=U)}),R._status===-1&&(R._status=0,R._result=z)}if(R._status===1)return R._result.default;throw R._result}var me=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},I={map:G,forEach:function(R,z,U){G(R,function(){z.apply(this,arguments)},U)},count:function(R){var z=0;return G(R,function(){z++}),z},toArray:function(R){return G(R,function(z){return z})||[]},only:function(R){if(!fe(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return Ne.Activity=p,Ne.Children=I,Ne.Component=A,Ne.Fragment=s,Ne.Profiler=c,Ne.PureComponent=F,Ne.StrictMode=i,Ne.Suspense=v,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(R){return W.H.useMemoCache(R)}},Ne.cache=function(R){return function(){return R.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(R,z,U){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var X=_({},R.props),Q=R.key;if(z!=null)for(ne in z.key!==void 0&&(Q=""+z.key),z)!J.call(z,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&z.ref===void 0||(X[ne]=z[ne]);var ne=arguments.length-2;if(ne===1)X.children=U;else if(1<ne){for(var ve=Array(ne),pe=0;pe<ne;pe++)ve[pe]=arguments[pe+2];X.children=ve}return K(R.type,Q,X)},Ne.createContext=function(R){return R={$$typeof:m,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:f,_context:R},R},Ne.createElement=function(R,z,U){var X,Q={},ne=null;if(z!=null)for(X in z.key!==void 0&&(ne=""+z.key),z)J.call(z,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(Q[X]=z[X]);var ve=arguments.length-2;if(ve===1)Q.children=U;else if(1<ve){for(var pe=Array(ve),he=0;he<ve;he++)pe[he]=arguments[he+2];Q.children=pe}if(R&&R.defaultProps)for(X in ve=R.defaultProps,ve)Q[X]===void 0&&(Q[X]=ve[X]);return K(R,ne,Q)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(R){return{$$typeof:x,render:R}},Ne.isValidElement=fe,Ne.lazy=function(R){return{$$typeof:b,_payload:{_status:-1,_result:R},_init:le}},Ne.memo=function(R,z){return{$$typeof:h,type:R,compare:z===void 0?null:z}},Ne.startTransition=function(R){var z=W.T,U={};W.T=U;try{var X=R(),Q=W.S;Q!==null&&Q(U,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(q,me)}catch(ne){me(ne)}finally{z!==null&&U.types!==null&&(z.types=U.types),W.T=z}},Ne.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},Ne.use=function(R){return W.H.use(R)},Ne.useActionState=function(R,z,U){return W.H.useActionState(R,z,U)},Ne.useCallback=function(R,z){return W.H.useCallback(R,z)},Ne.useContext=function(R){return W.H.useContext(R)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(R,z){return W.H.useDeferredValue(R,z)},Ne.useEffect=function(R,z){return W.H.useEffect(R,z)},Ne.useEffectEvent=function(R){return W.H.useEffectEvent(R)},Ne.useId=function(){return W.H.useId()},Ne.useImperativeHandle=function(R,z,U){return W.H.useImperativeHandle(R,z,U)},Ne.useInsertionEffect=function(R,z){return W.H.useInsertionEffect(R,z)},Ne.useLayoutEffect=function(R,z){return W.H.useLayoutEffect(R,z)},Ne.useMemo=function(R,z){return W.H.useMemo(R,z)},Ne.useOptimistic=function(R,z){return W.H.useOptimistic(R,z)},Ne.useReducer=function(R,z,U){return W.H.useReducer(R,z,U)},Ne.useRef=function(R){return W.H.useRef(R)},Ne.useState=function(R){return W.H.useState(R)},Ne.useSyncExternalStore=function(R,z,U){return W.H.useSyncExternalStore(R,z,U)},Ne.useTransition=function(){return W.H.useTransition()},Ne.version="19.2.3",Ne}var Lg;function Rc(){return Lg||(Lg=1,Ku.exports=Qv()),Ku.exports}var S=Rc();const ee=jh(S);var Ju={exports:{}},Xs={},Iu={exports:{}},Wu={};/**
18
18
  * @license React
19
19
  * scheduler.production.js
20
20
  *
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Vg;function Zv(){return Vg||(Vg=1,(function(a){function r(M,$){var le=M.length;M.push($);e:for(;0<le;){var me=le-1>>>1,I=M[me];if(0<c(I,$))M[me]=$,M[le]=I,le=me;else break e}}function s(M){return M.length===0?null:M[0]}function i(M){if(M.length===0)return null;var $=M[0],le=M.pop();if(le!==$){M[0]=le;e:for(var me=0,I=M.length,R=I>>>1;me<R;){var z=2*(me+1)-1,U=M[z],X=z+1,Q=M[X];if(0>c(U,le))X<I&&0>c(Q,U)?(M[me]=Q,M[X]=le,me=X):(M[me]=U,M[z]=le,me=z);else if(X<I&&0>c(Q,le))M[me]=Q,M[X]=le,me=X;else break e}}return $}function c(M,$){var le=M.sortIndex-$.sortIndex;return le!==0?le:M.id-$.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var m=Date,x=m.now();a.unstable_now=function(){return m.now()-x}}var v=[],h=[],b=1,p=null,w=3,N=!1,j=!1,_=!1,D=!1,A=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function se(M){for(var $=s(h);$!==null;){if($.callback===null)i(h);else if($.startTime<=M)i(h),$.sortIndex=$.expirationTime,r(v,$);else break;$=s(h)}}function ae(M){if(_=!1,se(M),!j)if(s(v)!==null)j=!0,q||(q=!0,Y());else{var $=s(h);$!==null&&re(ae,$.startTime-M)}}var q=!1,W=-1,J=5,K=-1;function te(){return D?!0:!(a.unstable_now()-K<J)}function fe(){if(D=!1,q){var M=a.unstable_now();K=M;var $=!0;try{e:{j=!1,_&&(_=!1,Z(W),W=-1),N=!0;var le=w;try{t:{for(se(M),p=s(v);p!==null&&!(p.expirationTime>M&&te());){var me=p.callback;if(typeof me=="function"){p.callback=null,w=p.priorityLevel;var I=me(p.expirationTime<=M);if(M=a.unstable_now(),typeof I=="function"){p.callback=I,se(M),$=!0;break t}p===s(v)&&i(v),se(M)}else i(v);p=s(v)}if(p!==null)$=!0;else{var R=s(h);R!==null&&re(ae,R.startTime-M),$=!1}}break e}finally{p=null,w=le,N=!1}$=void 0}}finally{$?Y():q=!1}}}var Y;if(typeof F=="function")Y=function(){F(fe)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,de=P.port2;P.port1.onmessage=fe,Y=function(){de.postMessage(null)}}else Y=function(){A(fe,0)};function re(M,$){W=A(function(){M(a.unstable_now())},$)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(M){M.callback=null},a.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<M?Math.floor(1e3/M):5},a.unstable_getCurrentPriorityLevel=function(){return w},a.unstable_next=function(M){switch(w){case 1:case 2:case 3:var $=3;break;default:$=w}var le=w;w=$;try{return M()}finally{w=le}},a.unstable_requestPaint=function(){D=!0},a.unstable_runWithPriority=function(M,$){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var le=w;w=M;try{return $()}finally{w=le}},a.unstable_scheduleCallback=function(M,$,le){var me=a.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?me+le:me):le=me,M){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=le+I,M={id:b++,callback:$,priorityLevel:M,startTime:le,expirationTime:I,sortIndex:-1},le>me?(M.sortIndex=le,r(h,M),s(v)===null&&M===s(h)&&(_?(Z(W),W=-1):_=!0,re(ae,le-me))):(M.sortIndex=I,r(v,M),j||N||(j=!0,q||(q=!0,Y()))),M},a.unstable_shouldYield=te,a.unstable_wrapCallback=function(M){var $=w;return function(){var le=w;w=$;try{return M.apply(this,arguments)}finally{w=le}}}})(Wu)),Wu}var $g;function Kv(){return $g||($g=1,Iu.exports=Zv()),Iu.exports}var Pu={exports:{}},bt={};/**
25
+ */var Vg;function Zv(){return Vg||(Vg=1,(function(a){function r(M,G){var le=M.length;M.push(G);e:for(;0<le;){var me=le-1>>>1,I=M[me];if(0<c(I,G))M[me]=G,M[le]=I,le=me;else break e}}function s(M){return M.length===0?null:M[0]}function i(M){if(M.length===0)return null;var G=M[0],le=M.pop();if(le!==G){M[0]=le;e:for(var me=0,I=M.length,R=I>>>1;me<R;){var z=2*(me+1)-1,U=M[z],X=z+1,Q=M[X];if(0>c(U,le))X<I&&0>c(Q,U)?(M[me]=Q,M[X]=le,me=X):(M[me]=U,M[z]=le,me=z);else if(X<I&&0>c(Q,le))M[me]=Q,M[X]=le,me=X;else break e}}return G}function c(M,G){var le=M.sortIndex-G.sortIndex;return le!==0?le:M.id-G.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var m=Date,x=m.now();a.unstable_now=function(){return m.now()-x}}var v=[],h=[],b=1,p=null,w=3,N=!1,j=!1,_=!1,D=!1,A=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function se(M){for(var G=s(h);G!==null;){if(G.callback===null)i(h);else if(G.startTime<=M)i(h),G.sortIndex=G.expirationTime,r(v,G);else break;G=s(h)}}function ae(M){if(_=!1,se(M),!j)if(s(v)!==null)j=!0,q||(q=!0,Y());else{var G=s(h);G!==null&&re(ae,G.startTime-M)}}var q=!1,W=-1,J=5,K=-1;function te(){return D?!0:!(a.unstable_now()-K<J)}function fe(){if(D=!1,q){var M=a.unstable_now();K=M;var G=!0;try{e:{j=!1,_&&(_=!1,Z(W),W=-1),N=!0;var le=w;try{t:{for(se(M),p=s(v);p!==null&&!(p.expirationTime>M&&te());){var me=p.callback;if(typeof me=="function"){p.callback=null,w=p.priorityLevel;var I=me(p.expirationTime<=M);if(M=a.unstable_now(),typeof I=="function"){p.callback=I,se(M),G=!0;break t}p===s(v)&&i(v),se(M)}else i(v);p=s(v)}if(p!==null)G=!0;else{var R=s(h);R!==null&&re(ae,R.startTime-M),G=!1}}break e}finally{p=null,w=le,N=!1}G=void 0}}finally{G?Y():q=!1}}}var Y;if(typeof F=="function")Y=function(){F(fe)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,de=P.port2;P.port1.onmessage=fe,Y=function(){de.postMessage(null)}}else Y=function(){A(fe,0)};function re(M,G){W=A(function(){M(a.unstable_now())},G)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(M){M.callback=null},a.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<M?Math.floor(1e3/M):5},a.unstable_getCurrentPriorityLevel=function(){return w},a.unstable_next=function(M){switch(w){case 1:case 2:case 3:var G=3;break;default:G=w}var le=w;w=G;try{return M()}finally{w=le}},a.unstable_requestPaint=function(){D=!0},a.unstable_runWithPriority=function(M,G){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var le=w;w=M;try{return G()}finally{w=le}},a.unstable_scheduleCallback=function(M,G,le){var me=a.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?me+le:me):le=me,M){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=le+I,M={id:b++,callback:G,priorityLevel:M,startTime:le,expirationTime:I,sortIndex:-1},le>me?(M.sortIndex=le,r(h,M),s(v)===null&&M===s(h)&&(_?(Z(W),W=-1):_=!0,re(ae,le-me))):(M.sortIndex=I,r(v,M),j||N||(j=!0,q||(q=!0,Y()))),M},a.unstable_shouldYield=te,a.unstable_wrapCallback=function(M){var G=w;return function(){var le=w;w=G;try{return M.apply(this,arguments)}finally{w=le}}}})(Wu)),Wu}var Gg;function Kv(){return Gg||(Gg=1,Iu.exports=Zv()),Iu.exports}var Pu={exports:{}},bt={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Gg;function Jv(){if(Gg)return bt;Gg=1;var a=Rc();function r(v){var h="https://react.dev/errors/"+v;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)h+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var i={d:{f:s,r:function(){throw Error(r(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(v,h,b){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:p==null?null:""+p,children:v,containerInfo:h,implementation:b}}var m=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(v,h){if(v==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,bt.createPortal=function(v,h){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(r(299));return f(v,h,null,b)},bt.flushSync=function(v){var h=m.T,b=i.p;try{if(m.T=null,i.p=2,v)return v()}finally{m.T=h,i.p=b,i.d.f()}},bt.preconnect=function(v,h){typeof v=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(v,h))},bt.prefetchDNS=function(v){typeof v=="string"&&i.d.D(v)},bt.preinit=function(v,h){if(typeof v=="string"&&h&&typeof h.as=="string"){var b=h.as,p=x(b,h.crossOrigin),w=typeof h.integrity=="string"?h.integrity:void 0,N=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;b==="style"?i.d.S(v,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:w,fetchPriority:N}):b==="script"&&i.d.X(v,{crossOrigin:p,integrity:w,fetchPriority:N,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},bt.preinitModule=function(v,h){if(typeof v=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var b=x(h.as,h.crossOrigin);i.d.M(v,{crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(v)},bt.preload=function(v,h){if(typeof v=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var b=h.as,p=x(b,h.crossOrigin);i.d.L(v,b,{crossOrigin:p,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})}},bt.preloadModule=function(v,h){if(typeof v=="string")if(h){var b=x(h.as,h.crossOrigin);i.d.m(v,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(v)},bt.requestFormReset=function(v){i.d.r(v)},bt.unstable_batchedUpdates=function(v,h){return v(h)},bt.useFormState=function(v,h,b){return m.H.useFormState(v,h,b)},bt.useFormStatus=function(){return m.H.useHostTransitionStatus()},bt.version="19.2.3",bt}var qg;function Rh(){if(qg)return Pu.exports;qg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(r){console.error(r)}}return a(),Pu.exports=Jv(),Pu.exports}/**
33
+ */var $g;function Jv(){if($g)return bt;$g=1;var a=Rc();function r(v){var h="https://react.dev/errors/"+v;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)h+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var i={d:{f:s,r:function(){throw Error(r(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(v,h,b){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:p==null?null:""+p,children:v,containerInfo:h,implementation:b}}var m=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(v,h){if(v==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,bt.createPortal=function(v,h){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(r(299));return f(v,h,null,b)},bt.flushSync=function(v){var h=m.T,b=i.p;try{if(m.T=null,i.p=2,v)return v()}finally{m.T=h,i.p=b,i.d.f()}},bt.preconnect=function(v,h){typeof v=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(v,h))},bt.prefetchDNS=function(v){typeof v=="string"&&i.d.D(v)},bt.preinit=function(v,h){if(typeof v=="string"&&h&&typeof h.as=="string"){var b=h.as,p=x(b,h.crossOrigin),w=typeof h.integrity=="string"?h.integrity:void 0,N=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;b==="style"?i.d.S(v,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:w,fetchPriority:N}):b==="script"&&i.d.X(v,{crossOrigin:p,integrity:w,fetchPriority:N,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},bt.preinitModule=function(v,h){if(typeof v=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var b=x(h.as,h.crossOrigin);i.d.M(v,{crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(v)},bt.preload=function(v,h){if(typeof v=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var b=h.as,p=x(b,h.crossOrigin);i.d.L(v,b,{crossOrigin:p,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})}},bt.preloadModule=function(v,h){if(typeof v=="string")if(h){var b=x(h.as,h.crossOrigin);i.d.m(v,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(v)},bt.requestFormReset=function(v){i.d.r(v)},bt.unstable_batchedUpdates=function(v,h){return v(h)},bt.useFormState=function(v,h,b){return m.H.useFormState(v,h,b)},bt.useFormStatus=function(){return m.H.useHostTransitionStatus()},bt.version="19.2.3",bt}var qg;function Rh(){if(qg)return Pu.exports;qg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(r){console.error(r)}}return a(),Pu.exports=Jv(),Pu.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,15 +38,15 @@
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var Yg;function Iv(){if(Yg)return Xs;Yg=1;var a=Kv(),r=Rc(),s=Rh();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}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 c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(f(e)!==e)throw Error(i(188))}function h(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(i(188));return t!==e?null:e}for(var n=e,l=t;;){var o=n.return;if(o===null)break;var u=o.alternate;if(u===null){if(l=o.return,l!==null){n=l;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===n)return v(o),e;if(u===l)return v(o),t;u=u.sibling}throw Error(i(188))}if(n.return!==l.return)n=o,l=u;else{for(var g=!1,y=o.child;y;){if(y===n){g=!0,n=o,l=u;break}if(y===l){g=!0,l=o,n=u;break}y=y.sibling}if(!g){for(y=u.child;y;){if(y===n){g=!0,n=u,l=o;break}if(y===l){g=!0,l=u,n=o;break}y=y.sibling}if(!g)throw Error(i(189))}}if(n.alternate!==l)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,w=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),F=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),te=Symbol.for("react.memo_cache_sentinel"),fe=Symbol.iterator;function Y(e){return e===null||typeof e!="object"?null:(e=fe&&e[fe]||e["@@iterator"],typeof e=="function"?e:null)}var P=Symbol.for("react.client.reference");function de(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===P?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case A:return"Profiler";case D:return"StrictMode";case ae:return"Suspense";case q:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case F:return e.displayName||"Context";case Z:return(e._context.displayName||"Context")+".Consumer";case se: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:de(e.type)||"Memo";case J:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}var re=Array.isArray,M=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},me=[],I=-1;function R(e){return{current:e}}function z(e){0>I||(e.current=me[I],me[I]=null,I--)}function U(e,t){I++,me[I]=e.current,e.current=t}var X=R(null),Q=R(null),ne=R(null),ve=R(null);function pe(e,t){switch(U(ne,t),U(Q,e),U(X,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?sg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=sg(t),e=ig(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}z(X),U(X,e)}function he(){z(X),z(Q),z(ne)}function wt(e){e.memoizedState!==null&&U(ve,e);var t=X.current,n=ig(t,e.type);t!==n&&(U(Q,e),U(X,n))}function ut(e){Q.current===e&&(z(X),z(Q)),ve.current===e&&(z(ve),$s._currentValue=le)}var ct,Zn;function vt(e){if(ct===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ct=t&&t[1]||"",Zn=-1<n.stack.indexOf(`
41
+ */var Yg;function Iv(){if(Yg)return Xs;Yg=1;var a=Kv(),r=Rc(),s=Rh();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}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 c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(f(e)!==e)throw Error(i(188))}function h(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(i(188));return t!==e?null:e}for(var n=e,l=t;;){var o=n.return;if(o===null)break;var u=o.alternate;if(u===null){if(l=o.return,l!==null){n=l;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===n)return v(o),e;if(u===l)return v(o),t;u=u.sibling}throw Error(i(188))}if(n.return!==l.return)n=o,l=u;else{for(var g=!1,y=o.child;y;){if(y===n){g=!0,n=o,l=u;break}if(y===l){g=!0,l=o,n=u;break}y=y.sibling}if(!g){for(y=u.child;y;){if(y===n){g=!0,n=u,l=o;break}if(y===l){g=!0,l=u,n=o;break}y=y.sibling}if(!g)throw Error(i(189))}}if(n.alternate!==l)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,w=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),F=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),te=Symbol.for("react.memo_cache_sentinel"),fe=Symbol.iterator;function Y(e){return e===null||typeof e!="object"?null:(e=fe&&e[fe]||e["@@iterator"],typeof e=="function"?e:null)}var P=Symbol.for("react.client.reference");function de(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===P?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case A:return"Profiler";case D:return"StrictMode";case ae:return"Suspense";case q:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case F:return e.displayName||"Context";case Z:return(e._context.displayName||"Context")+".Consumer";case se: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:de(e.type)||"Memo";case J:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}var re=Array.isArray,M=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},me=[],I=-1;function R(e){return{current:e}}function z(e){0>I||(e.current=me[I],me[I]=null,I--)}function U(e,t){I++,me[I]=e.current,e.current=t}var X=R(null),Q=R(null),ne=R(null),ve=R(null);function pe(e,t){switch(U(ne,t),U(Q,e),U(X,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?sg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=sg(t),e=ig(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}z(X),U(X,e)}function he(){z(X),z(Q),z(ne)}function wt(e){e.memoizedState!==null&&U(ve,e);var t=X.current,n=ig(t,e.type);t!==n&&(U(Q,e),U(X,n))}function ut(e){Q.current===e&&(z(X),z(Q)),ve.current===e&&(z(ve),Gs._currentValue=le)}var ct,Zn;function vt(e){if(ct===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ct=t&&t[1]||"",Zn=-1<n.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+ct+e+Zn}var Jl=!1;function nl(e,t){if(!e||Jl)return"";Jl=!0;var n=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 H=B}Reflect.construct(e,[],G)}else{try{G.call()}catch(B){H=B}e.call(G.prototype)}}else{try{throw Error()}catch(B){H=B}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(B){if(B&&H&&typeof B.stack=="string")return[B.stack,H.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),g=u[0],y=u[1];if(g&&y){var C=g.split(`
43
+ `+ct+e+Zn}var Jl=!1;function nl(e,t){if(!e||Jl)return"";Jl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(B){var H=B}Reflect.construct(e,[],$)}else{try{$.call()}catch(B){H=B}e.call($.prototype)}}else{try{throw Error()}catch(B){H=B}($=e())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(B){if(B&&H&&typeof B.stack=="string")return[B.stack,H.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),g=u[0],y=u[1];if(g&&y){var C=g.split(`
44
44
  `),k=y.split(`
45
45
  `);for(o=l=0;l<C.length&&!C[l].includes("DetermineComponentFrameRoot");)l++;for(;o<k.length&&!k[o].includes("DetermineComponentFrameRoot");)o++;if(l===C.length||o===k.length)for(l=C.length-1,o=k.length-1;1<=l&&0<=o&&C[l]!==k[o];)o--;for(;1<=l&&0<=o;l--,o--)if(C[l]!==k[o]){if(l!==1||o!==1)do if(l--,o--,0>o||C[l]!==k[o]){var L=`
46
46
  `+C[l].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),L}while(1<=l&&0<=o);break}}}finally{Jl=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?vt(n):""}function Ta(e,t){switch(e.tag){case 26:case 27:case 5:return vt(e.type);case 16:return vt("Lazy");case 13:return e.child!==t&&t!==null?vt("Suspense Fallback"):vt("Suspense");case 19:return vt("SuspenseList");case 0:case 15:return nl(e.type,!1);case 11:return nl(e.type.render,!1);case 1:return nl(e.type,!0);case 31:return vt("Activity");default:return""}}function Il(e){try{var t="",n=null;do t+=Ta(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
47
47
  Error generating stack: `+l.message+`
48
- `+l.stack}}var Bt=Object.prototype.hasOwnProperty,Wl=a.unstable_scheduleCallback,Pl=a.unstable_cancelCallback,Nt=a.unstable_shouldYield,Kn=a.unstable_requestPaint,Ct=a.unstable_now,kr=a.unstable_getCurrentPriorityLevel,Aa=a.unstable_ImmediatePriority,ai=a.unstable_UserBlockingPriority,Da=a.unstable_NormalPriority,es=a.unstable_LowPriority,Cn=a.unstable_IdlePriority,li=a.log,Jn=a.unstable_setDisableYieldValue,Oa=null,jt=null;function rn(e){if(typeof li=="function"&&Jn(e),jt&&typeof jt.setStrictMode=="function")try{jt.setStrictMode(Oa,e)}catch{}}var xt=Math.clz32?Math.clz32:pn,Hr=Math.log,ts=Math.LN2;function pn(e){return e>>>=0,e===0?32:31-(Hr(e)/ts|0)|0}var al=256,ll=262144,ka=4194304;function vn(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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;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 we(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var o=0,u=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var y=l&134217727;return y!==0?(l=y&~u,l!==0?o=vn(l):(g&=y,g!==0?o=vn(g):n||(n=y&~e,n!==0&&(o=vn(n))))):(y=l&~u,y!==0?o=vn(y):g!==0?o=vn(g):n||(n=l&~e,n!==0&&(o=vn(n)))),o===0?0:t!==0&&t!==o&&(t&u)===0&&(u=o&-o,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:o}function Fe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function it(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 yt(){var e=ka;return ka<<=1,(ka&62914560)===0&&(ka=4194304),e}function In(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ke(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Et(e,t,n,l,o,u){var g=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var y=e.entanglements,C=e.expirationTimes,k=e.hiddenUpdates;for(n=g&~n;0<n;){var L=31-xt(n),G=1<<L;y[L]=0,C[L]=-1;var H=k[L];if(H!==null)for(k[L]=null,L=0;L<H.length;L++){var B=H[L];B!==null&&(B.lane&=-536870913)}n&=~G}l!==0&&Ha(e,l,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(g&~t))}function Ha(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-xt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function _t(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-xt(n),o=1<<l;o&t|e[l]&t&&(e[l]|=t),n&=~o}}function Mt(e,t){var n=t&-t;return n=(n&42)!==0?1:sl(n),(n&(e.suspendedLanes|t))!==0?0:n}function sl(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 on(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ur(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:Mg(e.type))}function Yc(e,t){var n=$.p;try{return $.p=e,t()}finally{$.p=n}}var Wn=Math.random().toString(36).slice(2),dt="__reactFiber$"+Wn,zt="__reactProps$"+Wn,il="__reactContainer$"+Wn,Br="__reactEvents$"+Wn,Op="__reactListeners$"+Wn,kp="__reactHandles$"+Wn,Fc="__reactResources$"+Wn,ns="__reactMarker$"+Wn;function Lr(e){delete e[dt],delete e[zt],delete e[Br],delete e[Op],delete e[kp]}function rl(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[il]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mg(e);e!==null;){if(n=e[dt])return n;e=mg(e)}return t}e=n,n=e.parentNode}return null}function ol(e){if(e=e[dt]||e[il]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function as(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function ul(e){var t=e[Fc];return t||(t=e[Fc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function rt(e){e[ns]=!0}var Xc=new Set,Qc={};function Ua(e,t){cl(e,t),cl(e+"Capture",t)}function cl(e,t){for(Qc[e]=t,e=0;e<t.length;e++)Xc.add(t[e])}var Hp=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]*$"),Zc={},Kc={};function Up(e){return Bt.call(Kc,e)?!0:Bt.call(Zc,e)?!1:Hp.test(e)?Kc[e]=!0:(Zc[e]=!0,!1)}function si(e,t,n){if(Up(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){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,""+n)}}function ii(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function jn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bp(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(g){n=""+g,u.call(this,g)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(g){n=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vr(e){if(!e._valueTracker){var t=Jc(e)?"checked":"value";e._valueTracker=Bp(e,t,""+e[t])}}function Ic(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=Jc(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function ri(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Lp=/[\n"\\]/g;function Jt(e){return e.replace(Lp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function $r(e,t,n,l,o,u,g,y){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Kt(t)):e.value!==""+Kt(t)&&(e.value=""+Kt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Gr(e,g,Kt(t)):n!=null?Gr(e,g,Kt(n)):l!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Kt(y):e.removeAttribute("name")}function Wc(e,t,n,l,o,u,g,y){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Vr(e);return}n=n!=null?""+Kt(n):"",t=t!=null?""+Kt(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=y?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),Vr(e)}function Gr(e,t,n){t==="number"&&ri(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function dl(e,t,n,l){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Kt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Pc(e,t,n){if(t!=null&&(t=""+Kt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Kt(n):""}function ed(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(i(92));if(re(l)){if(1<l.length)throw Error(i(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Kt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),Vr(e)}function fl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vp=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 td(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||Vp.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function nd(e,t,n){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&n[o]!==l&&td(e,o,l)}else for(var u in t)t.hasOwnProperty(u)&&td(e,u,t[u])}function qr(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 $p=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"]]),Gp=/^[\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 oi(e){return Gp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Rn(){}var Yr=null;function Fr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ml=null,gl=null;function ad(e){var t=ol(e);if(t&&(e=t.stateNode)){var n=e[zt]||null;e:switch(e=t.stateNode,t.type){case"input":if($r(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Jt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var o=l[zt]||null;if(!o)throw Error(i(90));$r(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Ic(l)}break e;case"textarea":Pc(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&dl(e,!!n.multiple,t,!1)}}}var Xr=!1;function ld(e,t,n){if(Xr)return e(t,n);Xr=!0;try{var l=e(t);return l}finally{if(Xr=!1,(ml!==null||gl!==null)&&(Ki(),ml&&(t=ml,e=gl,gl=ml=null,ad(t),e)))for(t=0;t<e.length;t++)ad(e[t])}}function ls(e,t){var n=e.stateNode;if(n===null)return null;var l=n[zt]||null;if(l===null)return null;n=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(n&&typeof n!="function")throw Error(i(231,t,typeof n));return n}var En=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qr=!1;if(En)try{var ss={};Object.defineProperty(ss,"passive",{get:function(){Qr=!0}}),window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{Qr=!1}var Pn=null,Zr=null,ui=null;function sd(){if(ui)return ui;var e,t=Zr,n=t.length,l,o="value"in Pn?Pn.value:Pn.textContent,u=o.length;for(e=0;e<n&&t[e]===o[e];e++);var g=n-e;for(l=1;l<=g&&t[n-l]===o[u-l];l++);return ui=o.slice(e,1<l?1-l:void 0)}function ci(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 di(){return!0}function id(){return!1}function Tt(e){function t(n,l,o,u,g){this._reactName=n,this._targetInst=o,this.type=l,this.nativeEvent=u,this.target=g,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(u):u[y]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?di:id,this.isPropagationStopped=id,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=di)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=di)},persist:function(){},isPersistent:di}),t}var Ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fi=Tt(Ba),is=p({},Ba,{view:0,detail:0}),qp=Tt(is),Kr,Jr,rs,mi=p({},is,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wr,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!==rs&&(rs&&e.type==="mousemove"?(Kr=e.screenX-rs.screenX,Jr=e.screenY-rs.screenY):Jr=Kr=0,rs=e),Kr)},movementY:function(e){return"movementY"in e?e.movementY:Jr}}),rd=Tt(mi),Yp=p({},mi,{dataTransfer:0}),Fp=Tt(Yp),Xp=p({},is,{relatedTarget:0}),Ir=Tt(Xp),Qp=p({},Ba,{animationName:0,elapsedTime:0,pseudoElement:0}),Zp=Tt(Qp),Kp=p({},Ba,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jp=Tt(Kp),Ip=p({},Ba,{data:0}),od=Tt(Ip),Wp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pp={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"},e0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function t0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=e0[e])?!!t[e]:!1}function Wr(){return t0}var n0=p({},is,{key:function(e){if(e.key){var t=Wp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ci(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Pp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wr,charCode:function(e){return e.type==="keypress"?ci(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ci(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),a0=Tt(n0),l0=p({},mi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ud=Tt(l0),s0=p({},is,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wr}),i0=Tt(s0),r0=p({},Ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),o0=Tt(r0),u0=p({},mi,{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}),c0=Tt(u0),d0=p({},Ba,{newState:0,oldState:0}),f0=Tt(d0),m0=[9,13,27,32],Pr=En&&"CompositionEvent"in window,os=null;En&&"documentMode"in document&&(os=document.documentMode);var g0=En&&"TextEvent"in window&&!os,cd=En&&(!Pr||os&&8<os&&11>=os),dd=" ",fd=!1;function md(e,t){switch(e){case"keyup":return m0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hl=!1;function h0(e,t){switch(e){case"compositionend":return gd(t);case"keypress":return t.which!==32?null:(fd=!0,dd);case"textInput":return e=t.data,e===dd&&fd?null:e;default:return null}}function p0(e,t){if(hl)return e==="compositionend"||!Pr&&md(e,t)?(e=sd(),ui=Zr=Pn=null,hl=!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 cd&&t.locale!=="ko"?null:t.data;default:return null}}var v0={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 hd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!v0[e.type]:t==="textarea"}function pd(e,t,n,l){ml?gl?gl.push(l):gl=[l]:ml=l,t=nr(t,"onChange"),0<t.length&&(n=new fi("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var us=null,cs=null;function x0(e){Pm(e,0)}function gi(e){var t=as(e);if(Ic(t))return e}function vd(e,t){if(e==="change")return t}var xd=!1;if(En){var eo;if(En){var to="oninput"in document;if(!to){var yd=document.createElement("div");yd.setAttribute("oninput","return;"),to=typeof yd.oninput=="function"}eo=to}else eo=!1;xd=eo&&(!document.documentMode||9<document.documentMode)}function bd(){us&&(us.detachEvent("onpropertychange",Sd),cs=us=null)}function Sd(e){if(e.propertyName==="value"&&gi(cs)){var t=[];pd(t,cs,e,Fr(e)),ld(x0,t)}}function y0(e,t,n){e==="focusin"?(bd(),us=t,cs=n,us.attachEvent("onpropertychange",Sd)):e==="focusout"&&bd()}function b0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gi(cs)}function S0(e,t){if(e==="click")return gi(t)}function w0(e,t){if(e==="input"||e==="change")return gi(t)}function N0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lt=typeof Object.is=="function"?Object.is:N0;function ds(e,t){if(Lt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var o=n[l];if(!Bt.call(t,o)||!Lt(e[o],t[o]))return!1}return!0}function wd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nd(e,t){var n=wd(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=wd(n)}}function Cd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ri(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ri(e.document)}return t}function no(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 C0=En&&"documentMode"in document&&11>=document.documentMode,pl=null,ao=null,fs=null,lo=!1;function Rd(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;lo||pl==null||pl!==ri(l)||(l=pl,"selectionStart"in l&&no(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}),fs&&ds(fs,l)||(fs=l,l=nr(ao,"onSelect"),0<l.length&&(t=new fi("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=pl)))}function La(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var vl={animationend:La("Animation","AnimationEnd"),animationiteration:La("Animation","AnimationIteration"),animationstart:La("Animation","AnimationStart"),transitionrun:La("Transition","TransitionRun"),transitionstart:La("Transition","TransitionStart"),transitioncancel:La("Transition","TransitionCancel"),transitionend:La("Transition","TransitionEnd")},so={},Ed={};En&&(Ed=document.createElement("div").style,"AnimationEvent"in window||(delete vl.animationend.animation,delete vl.animationiteration.animation,delete vl.animationstart.animation),"TransitionEvent"in window||delete vl.transitionend.transition);function Va(e){if(so[e])return so[e];if(!vl[e])return e;var t=vl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ed)return so[e]=t[n];return e}var _d=Va("animationend"),Md=Va("animationiteration"),zd=Va("animationstart"),j0=Va("transitionrun"),R0=Va("transitionstart"),E0=Va("transitioncancel"),Td=Va("transitionend"),Ad=new Map,io="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(" ");io.push("scrollEnd");function un(e,t){Ad.set(e,t),Ua(t,[e])}var hi=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)},It=[],xl=0,ro=0;function pi(){for(var e=xl,t=ro=xl=0;t<e;){var n=It[t];It[t++]=null;var l=It[t];It[t++]=null;var o=It[t];It[t++]=null;var u=It[t];if(It[t++]=null,l!==null&&o!==null){var g=l.pending;g===null?o.next=o:(o.next=g.next,g.next=o),l.pending=o}u!==0&&Dd(n,o,u)}}function vi(e,t,n,l){It[xl++]=e,It[xl++]=t,It[xl++]=n,It[xl++]=l,ro|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function oo(e,t,n,l){return vi(e,t,n,l),xi(e)}function $a(e,t){return vi(e,null,null,t),xi(e)}function Dd(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var o=!1,u=e.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(o=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,o&&t!==null&&(o=31-xt(n),e=u.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=n|536870912),u):null}function xi(e){if(50<Os)throw Os=0,xu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var yl={};function _0(e,t,n,l){this.tag=e,this.key=n,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 Vt(e,t,n,l){return new _0(e,t,n,l)}function uo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _n(e,t){var n=e.alternate;return n===null?(n=Vt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Od(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function yi(e,t,n,l,o,u){var g=0;if(l=e,typeof e=="function")uo(e)&&(g=1);else if(typeof e=="string")g=Dv(e,n,X.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case K:return e=Vt(31,n,t,o),e.elementType=K,e.lanes=u,e;case _:return Ga(n.children,o,u,t);case D:g=8,o|=24;break;case A:return e=Vt(12,n,t,o|2),e.elementType=A,e.lanes=u,e;case ae:return e=Vt(13,n,t,o),e.elementType=ae,e.lanes=u,e;case q:return e=Vt(19,n,t,o),e.elementType=q,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:g=10;break e;case Z:g=9;break e;case se:g=11;break e;case W:g=14;break e;case J:g=16,l=null;break e}g=29,n=Error(i(130,e===null?"null":typeof e,"")),l=null}return t=Vt(g,n,t,o),t.elementType=e,t.type=l,t.lanes=u,t}function Ga(e,t,n,l){return e=Vt(7,e,l,t),e.lanes=n,e}function co(e,t,n){return e=Vt(6,e,null,t),e.lanes=n,e}function kd(e){var t=Vt(18,null,null,0);return t.stateNode=e,t}function fo(e,t,n){return t=Vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Hd=new WeakMap;function Wt(e,t){if(typeof e=="object"&&e!==null){var n=Hd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Il(t)},Hd.set(e,t),t)}return{value:e,source:t,stack:Il(t)}}var bl=[],Sl=0,bi=null,ms=0,Pt=[],en=0,ea=null,xn=1,yn="";function Mn(e,t){bl[Sl++]=ms,bl[Sl++]=bi,bi=e,ms=t}function Ud(e,t,n){Pt[en++]=xn,Pt[en++]=yn,Pt[en++]=ea,ea=e;var l=xn;e=yn;var o=32-xt(l)-1;l&=~(1<<o),n+=1;var u=32-xt(t)+o;if(30<u){var g=o-o%5;u=(l&(1<<g)-1).toString(32),l>>=g,o-=g,xn=1<<32-xt(t)+o|n<<o|l,yn=u+e}else xn=1<<u|n<<o|l,yn=e}function mo(e){e.return!==null&&(Mn(e,1),Ud(e,1,0))}function go(e){for(;e===bi;)bi=bl[--Sl],bl[Sl]=null,ms=bl[--Sl],bl[Sl]=null;for(;e===ea;)ea=Pt[--en],Pt[en]=null,yn=Pt[--en],Pt[en]=null,xn=Pt[--en],Pt[en]=null}function Bd(e,t){Pt[en++]=xn,Pt[en++]=yn,Pt[en++]=ea,xn=t.id,yn=t.overflow,ea=e}var ft=null,qe=null,De=!1,ta=null,tn=!1,ho=Error(i(519));function na(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw gs(Wt(t,e)),ho}function Ld(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[dt]=e,t[zt]=l,n){case"dialog":Me("cancel",t),Me("close",t);break;case"iframe":case"object":case"embed":Me("load",t);break;case"video":case"audio":for(n=0;n<Hs.length;n++)Me(Hs[n],t);break;case"source":Me("error",t);break;case"img":case"image":case"link":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"input":Me("invalid",t),Wc(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Me("invalid",t);break;case"textarea":Me("invalid",t),ed(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||ag(t.textContent,n)?(l.popover!=null&&(Me("beforetoggle",t),Me("toggle",t)),l.onScroll!=null&&Me("scroll",t),l.onScrollEnd!=null&&Me("scrollend",t),l.onClick!=null&&(t.onclick=Rn),t=!0):t=!1,t||na(e,!0)}function Vd(e){for(ft=e.return;ft;)switch(ft.tag){case 5:case 31:case 13:tn=!1;return;case 27:case 3:tn=!0;return;default:ft=ft.return}}function wl(e){if(e!==ft)return!1;if(!De)return Vd(e),De=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Du(e.type,e.memoizedProps)),n=!n),n&&qe&&na(e),Vd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));qe=fg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));qe=fg(e)}else t===27?(t=qe,pa(e.type)?(e=Bu,Bu=null,qe=e):qe=t):qe=ft?an(e.stateNode.nextSibling):null;return!0}function qa(){qe=ft=null,De=!1}function po(){var e=ta;return e!==null&&(kt===null?kt=e:kt.push.apply(kt,e),ta=null),e}function gs(e){ta===null?ta=[e]:ta.push(e)}var vo=R(null),Ya=null,zn=null;function aa(e,t,n){U(vo,t._currentValue),t._currentValue=n}function Tn(e){e._currentValue=vo.current,z(vo)}function xo(e,t,n){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===n)break;e=e.return}}function yo(e,t,n,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){var g=o.child;u=u.firstContext;e:for(;u!==null;){var y=u;u=o;for(var C=0;C<t.length;C++)if(y.context===t[C]){u.lanes|=n,y=u.alternate,y!==null&&(y.lanes|=n),xo(u.return,n,e),l||(g=null);break e}u=y.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(i(341));g.lanes|=n,u=g.alternate,u!==null&&(u.lanes|=n),xo(g,n,e),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===e){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function Nl(e,t,n,l){e=null;for(var o=t,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var g=o.alternate;if(g===null)throw Error(i(387));if(g=g.memoizedProps,g!==null){var y=o.type;Lt(o.pendingProps.value,g.value)||(e!==null?e.push(y):e=[y])}}else if(o===ve.current){if(g=o.alternate,g===null)throw Error(i(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push($s):e=[$s])}o=o.return}e!==null&&yo(t,e,n,l),t.flags|=262144}function Si(e){for(e=e.firstContext;e!==null;){if(!Lt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Fa(e){Ya=e,zn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return $d(Ya,e)}function wi(e,t){return Ya===null&&Fa(e),$d(e,t)}function $d(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},zn===null){if(e===null)throw Error(i(308));zn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else zn=zn.next=t;return n}var M0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},z0=a.unstable_scheduleCallback,T0=a.unstable_NormalPriority,et={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bo(){return{controller:new M0,data:new Map,refCount:0}}function hs(e){e.refCount--,e.refCount===0&&z0(T0,function(){e.controller.abort()})}var ps=null,So=0,Cl=0,jl=null;function A0(e,t){if(ps===null){var n=ps=[];So=0,Cl=Cu(),jl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return So++,t.then(Gd,Gd),t}function Gd(){if(--So===0&&ps!==null){jl!==null&&(jl.status="fulfilled");var e=ps;ps=null,Cl=0,jl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function D0(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),l}var qd=M.S;M.S=function(e,t){Em=Ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&A0(e,t),qd!==null&&qd(e,t)};var Xa=R(null);function wo(){var e=Xa.current;return e!==null?e:Ge.pooledCache}function Ni(e,t){t===null?U(Xa,Xa.current):U(Xa,t.pool)}function Yd(){var e=wo();return e===null?null:{parent:et._currentValue,pool:e}}var Rl=Error(i(460)),No=Error(i(474)),Ci=Error(i(542)),ji={then:function(){}};function Fd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Xd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Rn,Rn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zd(e),e;default:if(typeof t.status=="string")t.then(Rn,Rn);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zd(e),e}throw Za=t,Rl}}function Qa(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Za=n,Rl):n}}var Za=null;function Qd(){if(Za===null)throw Error(i(459));var e=Za;return Za=null,e}function Zd(e){if(e===Rl||e===Ci)throw Error(i(483))}var El=null,vs=0;function Ri(e){var t=vs;return vs+=1,El===null&&(El=[]),Xd(El,e,t)}function xs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ei(e,t){throw t.$$typeof===w?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Kd(e){function t(T,E){if(e){var O=T.deletions;O===null?(T.deletions=[E],T.flags|=16):O.push(E)}}function n(T,E){if(!e)return null;for(;E!==null;)t(T,E),E=E.sibling;return null}function l(T){for(var E=new Map;T!==null;)T.key!==null?E.set(T.key,T):E.set(T.index,T),T=T.sibling;return E}function o(T,E){return T=_n(T,E),T.index=0,T.sibling=null,T}function u(T,E,O){return T.index=O,e?(O=T.alternate,O!==null?(O=O.index,O<E?(T.flags|=67108866,E):O):(T.flags|=67108866,E)):(T.flags|=1048576,E)}function g(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function y(T,E,O,V){return E===null||E.tag!==6?(E=co(O,T.mode,V),E.return=T,E):(E=o(E,O),E.return=T,E)}function C(T,E,O,V){var ge=O.type;return ge===_?L(T,E,O.props.children,V,O.key):E!==null&&(E.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===J&&Qa(ge)===E.type)?(E=o(E,O.props),xs(E,O),E.return=T,E):(E=yi(O.type,O.key,O.props,null,T.mode,V),xs(E,O),E.return=T,E)}function k(T,E,O,V){return E===null||E.tag!==4||E.stateNode.containerInfo!==O.containerInfo||E.stateNode.implementation!==O.implementation?(E=fo(O,T.mode,V),E.return=T,E):(E=o(E,O.children||[]),E.return=T,E)}function L(T,E,O,V,ge){return E===null||E.tag!==7?(E=Ga(O,T.mode,V,ge),E.return=T,E):(E=o(E,O),E.return=T,E)}function G(T,E,O){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=co(""+E,T.mode,O),E.return=T,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case N:return O=yi(E.type,E.key,E.props,null,T.mode,O),xs(O,E),O.return=T,O;case j:return E=fo(E,T.mode,O),E.return=T,E;case J:return E=Qa(E),G(T,E,O)}if(re(E)||Y(E))return E=Ga(E,T.mode,O,null),E.return=T,E;if(typeof E.then=="function")return G(T,Ri(E),O);if(E.$$typeof===F)return G(T,wi(T,E),O);Ei(T,E)}return null}function H(T,E,O,V){var ge=E!==null?E.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return ge!==null?null:y(T,E,""+O,V);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case N:return O.key===ge?C(T,E,O,V):null;case j:return O.key===ge?k(T,E,O,V):null;case J:return O=Qa(O),H(T,E,O,V)}if(re(O)||Y(O))return ge!==null?null:L(T,E,O,V,null);if(typeof O.then=="function")return H(T,E,Ri(O),V);if(O.$$typeof===F)return H(T,E,wi(T,O),V);Ei(T,O)}return null}function B(T,E,O,V,ge){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return T=T.get(O)||null,y(E,T,""+V,ge);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case N:return T=T.get(V.key===null?O:V.key)||null,C(E,T,V,ge);case j:return T=T.get(V.key===null?O:V.key)||null,k(E,T,V,ge);case J:return V=Qa(V),B(T,E,O,V,ge)}if(re(V)||Y(V))return T=T.get(O)||null,L(E,T,V,ge,null);if(typeof V.then=="function")return B(T,E,O,Ri(V),ge);if(V.$$typeof===F)return B(T,E,O,wi(E,V),ge);Ei(E,V)}return null}function ie(T,E,O,V){for(var ge=null,Oe=null,ce=E,je=E=0,Ae=null;ce!==null&&je<O.length;je++){ce.index>je?(Ae=ce,ce=null):Ae=ce.sibling;var ke=H(T,ce,O[je],V);if(ke===null){ce===null&&(ce=Ae);break}e&&ce&&ke.alternate===null&&t(T,ce),E=u(ke,E,je),Oe===null?ge=ke:Oe.sibling=ke,Oe=ke,ce=Ae}if(je===O.length)return n(T,ce),De&&Mn(T,je),ge;if(ce===null){for(;je<O.length;je++)ce=G(T,O[je],V),ce!==null&&(E=u(ce,E,je),Oe===null?ge=ce:Oe.sibling=ce,Oe=ce);return De&&Mn(T,je),ge}for(ce=l(ce);je<O.length;je++)Ae=B(ce,T,je,O[je],V),Ae!==null&&(e&&Ae.alternate!==null&&ce.delete(Ae.key===null?je:Ae.key),E=u(Ae,E,je),Oe===null?ge=Ae:Oe.sibling=Ae,Oe=Ae);return e&&ce.forEach(function(Sa){return t(T,Sa)}),De&&Mn(T,je),ge}function xe(T,E,O,V){if(O==null)throw Error(i(151));for(var ge=null,Oe=null,ce=E,je=E=0,Ae=null,ke=O.next();ce!==null&&!ke.done;je++,ke=O.next()){ce.index>je?(Ae=ce,ce=null):Ae=ce.sibling;var Sa=H(T,ce,ke.value,V);if(Sa===null){ce===null&&(ce=Ae);break}e&&ce&&Sa.alternate===null&&t(T,ce),E=u(Sa,E,je),Oe===null?ge=Sa:Oe.sibling=Sa,Oe=Sa,ce=Ae}if(ke.done)return n(T,ce),De&&Mn(T,je),ge;if(ce===null){for(;!ke.done;je++,ke=O.next())ke=G(T,ke.value,V),ke!==null&&(E=u(ke,E,je),Oe===null?ge=ke:Oe.sibling=ke,Oe=ke);return De&&Mn(T,je),ge}for(ce=l(ce);!ke.done;je++,ke=O.next())ke=B(ce,T,je,ke.value,V),ke!==null&&(e&&ke.alternate!==null&&ce.delete(ke.key===null?je:ke.key),E=u(ke,E,je),Oe===null?ge=ke:Oe.sibling=ke,Oe=ke);return e&&ce.forEach(function(Yv){return t(T,Yv)}),De&&Mn(T,je),ge}function $e(T,E,O,V){if(typeof O=="object"&&O!==null&&O.type===_&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case N:e:{for(var ge=O.key;E!==null;){if(E.key===ge){if(ge=O.type,ge===_){if(E.tag===7){n(T,E.sibling),V=o(E,O.props.children),V.return=T,T=V;break e}}else if(E.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===J&&Qa(ge)===E.type){n(T,E.sibling),V=o(E,O.props),xs(V,O),V.return=T,T=V;break e}n(T,E);break}else t(T,E);E=E.sibling}O.type===_?(V=Ga(O.props.children,T.mode,V,O.key),V.return=T,T=V):(V=yi(O.type,O.key,O.props,null,T.mode,V),xs(V,O),V.return=T,T=V)}return g(T);case j:e:{for(ge=O.key;E!==null;){if(E.key===ge)if(E.tag===4&&E.stateNode.containerInfo===O.containerInfo&&E.stateNode.implementation===O.implementation){n(T,E.sibling),V=o(E,O.children||[]),V.return=T,T=V;break e}else{n(T,E);break}else t(T,E);E=E.sibling}V=fo(O,T.mode,V),V.return=T,T=V}return g(T);case J:return O=Qa(O),$e(T,E,O,V)}if(re(O))return ie(T,E,O,V);if(Y(O)){if(ge=Y(O),typeof ge!="function")throw Error(i(150));return O=ge.call(O),xe(T,E,O,V)}if(typeof O.then=="function")return $e(T,E,Ri(O),V);if(O.$$typeof===F)return $e(T,E,wi(T,O),V);Ei(T,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,E!==null&&E.tag===6?(n(T,E.sibling),V=o(E,O),V.return=T,T=V):(n(T,E),V=co(O,T.mode,V),V.return=T,T=V),g(T)):n(T,E)}return function(T,E,O,V){try{vs=0;var ge=$e(T,E,O,V);return El=null,ge}catch(ce){if(ce===Rl||ce===Ci)throw ce;var Oe=Vt(29,ce,null,T.mode);return Oe.lanes=V,Oe.return=T,Oe}finally{}}}var Ka=Kd(!0),Jd=Kd(!1),la=!1;function Co(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jo(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 sa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ia(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(He&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=xi(e),Dd(e,null,n),t}return vi(e,l,t,n),xi(e)}function ys(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,_t(e,n)}}function Ro(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var o=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var g={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?o=u=g:u=u.next=g,n=n.next}while(n!==null);u===null?o=u=t:u=u.next=t}else o=u=t;n={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Eo=!1;function bs(){if(Eo){var e=jl;if(e!==null)throw e}}function Ss(e,t,n,l){Eo=!1;var o=e.updateQueue;la=!1;var u=o.firstBaseUpdate,g=o.lastBaseUpdate,y=o.shared.pending;if(y!==null){o.shared.pending=null;var C=y,k=C.next;C.next=null,g===null?u=k:g.next=k,g=C;var L=e.alternate;L!==null&&(L=L.updateQueue,y=L.lastBaseUpdate,y!==g&&(y===null?L.firstBaseUpdate=k:y.next=k,L.lastBaseUpdate=C))}if(u!==null){var G=o.baseState;g=0,L=k=C=null,y=u;do{var H=y.lane&-536870913,B=H!==y.lane;if(B?(Te&H)===H:(l&H)===H){H!==0&&H===Cl&&(Eo=!0),L!==null&&(L=L.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var ie=e,xe=y;H=t;var $e=n;switch(xe.tag){case 1:if(ie=xe.payload,typeof ie=="function"){G=ie.call($e,G,H);break e}G=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=xe.payload,H=typeof ie=="function"?ie.call($e,G,H):ie,H==null)break e;G=p({},G,H);break e;case 2:la=!0}}H=y.callback,H!==null&&(e.flags|=64,B&&(e.flags|=8192),B=o.callbacks,B===null?o.callbacks=[H]:B.push(H))}else B={lane:H,tag:y.tag,payload:y.payload,callback:y.callback,next:null},L===null?(k=L=B,C=G):L=L.next=B,g|=H;if(y=y.next,y===null){if(y=o.shared.pending,y===null)break;B=y,y=B.next,B.next=null,o.lastBaseUpdate=B,o.shared.pending=null}}while(!0);L===null&&(C=G),o.baseState=C,o.firstBaseUpdate=k,o.lastBaseUpdate=L,u===null&&(o.shared.lanes=0),da|=g,e.lanes=g,e.memoizedState=G}}function Id(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Wd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Id(n[e],t)}var _l=R(null),_i=R(0);function Pd(e,t){e=Vn,U(_i,e),U(_l,t),Vn=e|t.baseLanes}function _o(){U(_i,Vn),U(_l,_l.current)}function Mo(){Vn=_i.current,z(_l),z(_i)}var $t=R(null),nn=null;function ra(e){var t=e.alternate;U(We,We.current&1),U($t,e),nn===null&&(t===null||_l.current!==null||t.memoizedState!==null)&&(nn=e)}function zo(e){U(We,We.current),U($t,e),nn===null&&(nn=e)}function ef(e){e.tag===22?(U(We,We.current),U($t,e),nn===null&&(nn=e)):oa()}function oa(){U(We,We.current),U($t,$t.current)}function Gt(e){z($t),nn===e&&(nn=null),z(We)}var We=R(0);function Mi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Hu(n)||Uu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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}var An=0,Ce=null,Le=null,tt=null,zi=!1,Ml=!1,Ja=!1,Ti=0,ws=0,zl=null,O0=0;function Je(){throw Error(i(321))}function To(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Lt(e[n],t[n]))return!1;return!0}function Ao(e,t,n,l,o,u){return An=u,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Bf:Qo,Ja=!1,u=n(l,o),Ja=!1,Ml&&(u=nf(t,n,l,o)),tf(e),u}function tf(e){M.H=js;var t=Le!==null&&Le.next!==null;if(An=0,tt=Le=Ce=null,zi=!1,ws=0,zl=null,t)throw Error(i(300));e===null||nt||(e=e.dependencies,e!==null&&Si(e)&&(nt=!0))}function nf(e,t,n,l){Ce=e;var o=0;do{if(Ml&&(zl=null),ws=0,Ml=!1,25<=o)throw Error(i(301));if(o+=1,tt=Le=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}M.H=Lf,u=t(n,l)}while(Ml);return u}function k0(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?Ns(t):t,e=e.useState()[0],(Le!==null?Le.memoizedState:null)!==e&&(Ce.flags|=1024),t}function Do(){var e=Ti!==0;return Ti=0,e}function Oo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ko(e){if(zi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zi=!1}An=0,tt=Le=Ce=null,Ml=!1,ws=Ti=0,zl=null}function Rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?Ce.memoizedState=tt=e:tt=tt.next=e,tt}function Pe(){if(Le===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=tt===null?Ce.memoizedState:tt.next;if(t!==null)tt=t,Le=e;else{if(e===null)throw Ce.alternate===null?Error(i(467)):Error(i(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},tt===null?Ce.memoizedState=tt=e:tt=tt.next=e}return tt}function Ai(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ns(e){var t=ws;return ws+=1,zl===null&&(zl=[]),e=Xd(zl,e,t),t=Ce,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Bf:Qo),e}function Di(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ns(e);if(e.$$typeof===F)return mt(e)}throw Error(i(438,String(e)))}function Ho(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Ce.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Ai(),Ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=te;return t.index++,n}function Dn(e,t){return typeof t=="function"?t(e):t}function Oi(e){var t=Pe();return Uo(t,Le,e)}function Uo(e,t,n){var l=e.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=n;var o=e.baseQueue,u=l.pending;if(u!==null){if(o!==null){var g=o.next;o.next=u.next,u.next=g}t.baseQueue=o=u,l.pending=null}if(u=e.baseState,o===null)e.memoizedState=u;else{t=o.next;var y=g=null,C=null,k=t,L=!1;do{var G=k.lane&-536870913;if(G!==k.lane?(Te&G)===G:(An&G)===G){var H=k.revertLane;if(H===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),G===Cl&&(L=!0);else if((An&H)===H){k=k.next,H===Cl&&(L=!0);continue}else G={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},C===null?(y=C=G,g=u):C=C.next=G,Ce.lanes|=H,da|=H;G=k.action,Ja&&n(u,G),u=k.hasEagerState?k.eagerState:n(u,G)}else H={lane:G,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},C===null?(y=C=H,g=u):C=C.next=H,Ce.lanes|=G,da|=G;k=k.next}while(k!==null&&k!==t);if(C===null?g=u:C.next=y,!Lt(u,e.memoizedState)&&(nt=!0,L&&(n=jl,n!==null)))throw n;e.memoizedState=u,e.baseState=g,e.baseQueue=C,l.lastRenderedState=u}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Bo(e){var t=Pe(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var l=n.dispatch,o=n.pending,u=t.memoizedState;if(o!==null){n.pending=null;var g=o=o.next;do u=e(u,g.action),g=g.next;while(g!==o);Lt(u,t.memoizedState)||(nt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,l]}function af(e,t,n){var l=Ce,o=Pe(),u=De;if(u){if(n===void 0)throw Error(i(407));n=n()}else n=t();var g=!Lt((Le||o).memoizedState,n);if(g&&(o.memoizedState=n,nt=!0),o=o.queue,$o(rf.bind(null,l,o,e),[e]),o.getSnapshot!==t||g||tt!==null&&tt.memoizedState.tag&1){if(l.flags|=2048,Tl(9,{destroy:void 0},sf.bind(null,l,o,n,t),null),Ge===null)throw Error(i(349));u||(An&127)!==0||lf(l,t,n)}return n}function lf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=Ai(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function sf(e,t,n,l){t.value=n,t.getSnapshot=l,of(t)&&uf(e)}function rf(e,t,n){return n(function(){of(t)&&uf(e)})}function of(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Lt(e,n)}catch{return!0}}function uf(e){var t=$a(e,2);t!==null&&Ht(t,e,2)}function Lo(e){var t=Rt();if(typeof e=="function"){var n=e;if(e=n(),Ja){rn(!0);try{n()}finally{rn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:e},t}function cf(e,t,n,l){return e.baseState=n,Uo(e,Le,typeof l=="function"?l:Dn)}function H0(e,t,n,l,o){if(Ui(e))throw Error(i(485));if(e=t.action,e!==null){var u={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){u.listeners.push(g)}};M.T!==null?n(!0):u.isTransition=!1,l(u),n=t.pending,n===null?(u.next=t.pending=u,df(t,u)):(u.next=n.next,t.pending=n.next=u)}}function df(e,t){var n=t.action,l=t.payload,o=e.state;if(t.isTransition){var u=M.T,g={};M.T=g;try{var y=n(o,l),C=M.S;C!==null&&C(g,y),ff(e,t,y)}catch(k){Vo(e,t,k)}finally{u!==null&&g.types!==null&&(u.types=g.types),M.T=u}}else try{u=n(o,l),ff(e,t,u)}catch(k){Vo(e,t,k)}}function ff(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){mf(e,t,l)},function(l){return Vo(e,t,l)}):mf(e,t,n)}function mf(e,t,n){t.status="fulfilled",t.value=n,gf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,df(e,n)))}function Vo(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,gf(t),t=t.next;while(t!==l)}e.action=null}function gf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function hf(e,t){return t}function pf(e,t){if(De){var n=Ge.formState;if(n!==null){e:{var l=Ce;if(De){if(qe){t:{for(var o=qe,u=tn;o.nodeType!==8;){if(!u){o=null;break t}if(o=an(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){qe=an(o.nextSibling),l=o.data==="F!";break e}}na(l)}l=!1}l&&(t=n[0])}}return n=Rt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hf,lastRenderedState:t},n.queue=l,n=kf.bind(null,Ce,l),l.dispatch=n,l=Lo(!1),u=Xo.bind(null,Ce,!1,l.queue),l=Rt(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,n=H0.bind(null,Ce,o,u,n),o.dispatch=n,l.memoizedState=e,[t,n,!1]}function vf(e){var t=Pe();return xf(t,Le,e)}function xf(e,t,n){if(t=Uo(e,t,hf)[0],e=Oi(Dn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Ns(t)}catch(g){throw g===Rl?Ci:g}else l=t;t=Pe();var o=t.queue,u=o.dispatch;return n!==t.memoizedState&&(Ce.flags|=2048,Tl(9,{destroy:void 0},U0.bind(null,o,n),null)),[l,u,e]}function U0(e,t){e.action=t}function yf(e){var t=Pe(),n=Le;if(n!==null)return xf(t,n,e);Pe(),t=t.memoizedState,n=Pe();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Tl(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=Ai(),Ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function bf(){return Pe().memoizedState}function ki(e,t,n,l){var o=Rt();Ce.flags|=e,o.memoizedState=Tl(1|t,{destroy:void 0},n,l===void 0?null:l)}function Hi(e,t,n,l){var o=Pe();l=l===void 0?null:l;var u=o.memoizedState.inst;Le!==null&&l!==null&&To(l,Le.memoizedState.deps)?o.memoizedState=Tl(t,u,n,l):(Ce.flags|=e,o.memoizedState=Tl(1|t,u,n,l))}function Sf(e,t){ki(8390656,8,e,t)}function $o(e,t){Hi(2048,8,e,t)}function B0(e){Ce.flags|=4;var t=Ce.updateQueue;if(t===null)t=Ai(),Ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function wf(e){var t=Pe().memoizedState;return B0({ref:t,nextImpl:e}),function(){if((He&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Nf(e,t){return Hi(4,2,e,t)}function Cf(e,t){return Hi(4,4,e,t)}function jf(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Rf(e,t,n){n=n!=null?n.concat([e]):null,Hi(4,4,jf.bind(null,t,e),n)}function Go(){}function Ef(e,t){var n=Pe();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&To(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function _f(e,t){var n=Pe();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&To(t,l[1]))return l[0];if(l=e(),Ja){rn(!0);try{e()}finally{rn(!1)}}return n.memoizedState=[l,t],l}function qo(e,t,n){return n===void 0||(An&1073741824)!==0&&(Te&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Mm(),Ce.lanes|=e,da|=e,n)}function Mf(e,t,n,l){return Lt(n,t)?n:_l.current!==null?(e=qo(e,n,l),Lt(e,t)||(nt=!0),e):(An&42)===0||(An&1073741824)!==0&&(Te&261930)===0?(nt=!0,e.memoizedState=n):(e=Mm(),Ce.lanes|=e,da|=e,t)}function zf(e,t,n,l,o){var u=$.p;$.p=u!==0&&8>u?u:8;var g=M.T,y={};M.T=y,Xo(e,!1,t,n);try{var C=o(),k=M.S;if(k!==null&&k(y,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var L=D0(C,l);Cs(e,t,L,Ft(e))}else Cs(e,t,l,Ft(e))}catch(G){Cs(e,t,{then:function(){},status:"rejected",reason:G},Ft())}finally{$.p=u,g!==null&&y.types!==null&&(g.types=y.types),M.T=g}}function L0(){}function Yo(e,t,n,l){if(e.tag!==5)throw Error(i(476));var o=Tf(e).queue;zf(e,o,t,le,n===null?L0:function(){return Af(e),n(l)})}function Tf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:le},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Af(e){var t=Tf(e);t.next===null&&(t=e.alternate.memoizedState),Cs(e,t.next.queue,{},Ft())}function Fo(){return mt($s)}function Df(){return Pe().memoizedState}function Of(){return Pe().memoizedState}function V0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ft();e=sa(n);var l=ia(t,e,n);l!==null&&(Ht(l,t,n),ys(l,t,n)),t={cache:bo()},e.payload=t;return}t=t.return}}function $0(e,t,n){var l=Ft();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ui(e)?Hf(t,n):(n=oo(e,t,n,l),n!==null&&(Ht(n,e,l),Uf(n,t,l)))}function kf(e,t,n){var l=Ft();Cs(e,t,n,l)}function Cs(e,t,n,l){var o={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ui(e))Hf(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var g=t.lastRenderedState,y=u(g,n);if(o.hasEagerState=!0,o.eagerState=y,Lt(y,g))return vi(e,t,o,0),Ge===null&&pi(),!1}catch{}finally{}if(n=oo(e,t,o,l),n!==null)return Ht(n,e,l),Uf(n,t,l),!0}return!1}function Xo(e,t,n,l){if(l={lane:2,revertLane:Cu(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ui(e)){if(t)throw Error(i(479))}else t=oo(e,n,l,2),t!==null&&Ht(t,e,2)}function Ui(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function Hf(e,t){Ml=zi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Uf(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,_t(e,n)}}var js={readContext:mt,use:Di,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je};js.useEffectEvent=Je;var Bf={readContext:mt,use:Di,useCallback:function(e,t){return Rt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:Sf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ki(4194308,4,jf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ki(4194308,4,e,t)},useInsertionEffect:function(e,t){ki(4,2,e,t)},useMemo:function(e,t){var n=Rt();t=t===void 0?null:t;var l=e();if(Ja){rn(!0);try{e()}finally{rn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=Rt();if(n!==void 0){var o=n(t);if(Ja){rn(!0);try{n(t)}finally{rn(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=$0.bind(null,Ce,e),[l.memoizedState,e]},useRef:function(e){var t=Rt();return e={current:e},t.memoizedState=e},useState:function(e){e=Lo(e);var t=e.queue,n=kf.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Go,useDeferredValue:function(e,t){var n=Rt();return qo(n,e,t)},useTransition:function(){var e=Lo(!1);return e=zf.bind(null,Ce,e.queue,!0,!1),Rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Ce,o=Rt();if(De){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Ge===null)throw Error(i(349));(Te&127)!==0||lf(l,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,Sf(rf.bind(null,l,u,e),[e]),l.flags|=2048,Tl(9,{destroy:void 0},sf.bind(null,l,u,n,t),null),n},useId:function(){var e=Rt(),t=Ge.identifierPrefix;if(De){var n=yn,l=xn;n=(l&~(1<<32-xt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Ti++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=O0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Fo,useFormState:pf,useActionState:pf,useOptimistic:function(e){var t=Rt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Xo.bind(null,Ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:Ho,useCacheRefresh:function(){return Rt().memoizedState=V0.bind(null,Ce)},useEffectEvent:function(e){var t=Rt(),n={impl:e};return t.memoizedState=n,function(){if((He&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Qo={readContext:mt,use:Di,useCallback:Ef,useContext:mt,useEffect:$o,useImperativeHandle:Rf,useInsertionEffect:Nf,useLayoutEffect:Cf,useMemo:_f,useReducer:Oi,useRef:bf,useState:function(){return Oi(Dn)},useDebugValue:Go,useDeferredValue:function(e,t){var n=Pe();return Mf(n,Le.memoizedState,e,t)},useTransition:function(){var e=Oi(Dn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Ns(e),t]},useSyncExternalStore:af,useId:Df,useHostTransitionStatus:Fo,useFormState:vf,useActionState:vf,useOptimistic:function(e,t){var n=Pe();return cf(n,Le,e,t)},useMemoCache:Ho,useCacheRefresh:Of};Qo.useEffectEvent=wf;var Lf={readContext:mt,use:Di,useCallback:Ef,useContext:mt,useEffect:$o,useImperativeHandle:Rf,useInsertionEffect:Nf,useLayoutEffect:Cf,useMemo:_f,useReducer:Bo,useRef:bf,useState:function(){return Bo(Dn)},useDebugValue:Go,useDeferredValue:function(e,t){var n=Pe();return Le===null?qo(n,e,t):Mf(n,Le.memoizedState,e,t)},useTransition:function(){var e=Bo(Dn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Ns(e),t]},useSyncExternalStore:af,useId:Df,useHostTransitionStatus:Fo,useFormState:yf,useActionState:yf,useOptimistic:function(e,t){var n=Pe();return Le!==null?cf(n,Le,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Ho,useCacheRefresh:Of};Lf.useEffectEvent=wf;function Zo(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:p({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ko={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Ft(),o=sa(l);o.payload=t,n!=null&&(o.callback=n),t=ia(e,o,l),t!==null&&(Ht(t,e,l),ys(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Ft(),o=sa(l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=ia(e,o,l),t!==null&&(Ht(t,e,l),ys(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ft(),l=sa(n);l.tag=2,t!=null&&(l.callback=t),t=ia(e,l,n),t!==null&&(Ht(t,e,n),ys(t,e,n))}};function Vf(e,t,n,l,o,u,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,g):t.prototype&&t.prototype.isPureReactComponent?!ds(n,l)||!ds(o,u):!0}function $f(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Ko.enqueueReplaceState(t,t.state,null)}function Ia(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=p({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Gf(e){hi(e)}function qf(e){console.error(e)}function Yf(e){hi(e)}function Bi(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Ff(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Jo(e,t,n){return n=sa(n),n.tag=3,n.payload={element:null},n.callback=function(){Bi(e,t)},n}function Xf(e){return e=sa(e),e.tag=3,e}function Qf(e,t,n,l){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var u=l.value;e.payload=function(){return o(u)},e.callback=function(){Ff(t,n,l)}}var g=n.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Ff(t,n,l),typeof o!="function"&&(fa===null?fa=new Set([this]):fa.add(this));var y=l.stack;this.componentDidCatch(l.value,{componentStack:y!==null?y:""})})}function G0(e,t,n,l,o){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Nl(t,n,o,!0),n=$t.current,n!==null){switch(n.tag){case 31:case 13:return nn===null?Ji():n.alternate===null&&Ie===0&&(Ie=3),n.flags&=-257,n.flags|=65536,n.lanes=o,l===ji?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Su(e,l,o)),!1;case 22:return n.flags|=65536,l===ji?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Su(e,l,o)),!1}throw Error(i(435,n.tag))}return Su(e,l,o),Ji(),!1}if(De)return t=$t.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==ho&&(e=Error(i(422),{cause:l}),gs(Wt(e,n)))):(l!==ho&&(t=Error(i(423),{cause:l}),gs(Wt(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=Wt(l,n),o=Jo(e.stateNode,l,o),Ro(e,o),Ie!==4&&(Ie=2)),!1;var u=Error(i(520),{cause:l});if(u=Wt(u,n),Ds===null?Ds=[u]:Ds.push(u),Ie!==4&&(Ie=2),t===null)return!0;l=Wt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Jo(n.stateNode,l,e),Ro(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(fa===null||!fa.has(u))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Xf(o),Qf(o,e,n,l),Ro(n,o),!1}n=n.return}while(n!==null);return!1}var Io=Error(i(461)),nt=!1;function gt(e,t,n,l){t.child=e===null?Jd(t,null,n,l):Ka(t,e.child,n,l)}function Zf(e,t,n,l,o){n=n.render;var u=t.ref;if("ref"in l){var g={};for(var y in l)y!=="ref"&&(g[y]=l[y])}else g=l;return Fa(t),l=Ao(e,t,n,g,u,o),y=Do(),e!==null&&!nt?(Oo(e,t,o),On(e,t,o)):(De&&y&&mo(t),t.flags|=1,gt(e,t,l,o),t.child)}function Kf(e,t,n,l,o){if(e===null){var u=n.type;return typeof u=="function"&&!uo(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,Jf(e,t,u,l,o)):(e=yi(n.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!su(e,o)){var g=u.memoizedProps;if(n=n.compare,n=n!==null?n:ds,n(g,l)&&e.ref===t.ref)return On(e,t,o)}return t.flags|=1,e=_n(u,l),e.ref=t.ref,e.return=t,t.child=e}function Jf(e,t,n,l,o){if(e!==null){var u=e.memoizedProps;if(ds(u,l)&&e.ref===t.ref)if(nt=!1,t.pendingProps=l=u,su(e,o))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,On(e,t,o)}return Wo(e,t,n,l,o)}function If(e,t,n,l){var o=l.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~u}else l=0,t.child=null;return Wf(e,t,u,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ni(t,u!==null?u.cachePool:null),u!==null?Pd(t,u):_o(),ef(t);else return l=t.lanes=536870912,Wf(e,t,u!==null?u.baseLanes|n:n,n,l)}else u!==null?(Ni(t,u.cachePool),Pd(t,u),oa(),t.memoizedState=null):(e!==null&&Ni(t,null),_o(),oa());return gt(e,t,o,n),t.child}function Rs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Wf(e,t,n,l,o){var u=wo();return u=u===null?null:{parent:et._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&Ni(t,null),_o(),ef(t),e!==null&&Nl(e,t,l,!0),t.childLanes=o,null}function Li(e,t){return t=$i({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Pf(e,t,n){return Ka(t,e.child,null,n),e=Li(t,t.pendingProps),e.flags|=2,Gt(t),t.memoizedState=null,e}function q0(e,t,n){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(De){if(l.mode==="hidden")return e=Li(t,l),t.lanes=536870912,Rs(null,e);if(zo(t),(e=qe)?(e=dg(e,tn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ea!==null?{id:xn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},n=kd(e),n.return=t,t.child=n,ft=t,qe=null)):e=null,e===null)throw na(t);return t.lanes=536870912,null}return Li(t,l)}var u=e.memoizedState;if(u!==null){var g=u.dehydrated;if(zo(t),o)if(t.flags&256)t.flags&=-257,t=Pf(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(nt||Nl(e,t,n,!1),o=(n&e.childLanes)!==0,nt||o){if(l=Ge,l!==null&&(g=Mt(l,n),g!==0&&g!==u.retryLane))throw u.retryLane=g,$a(e,g),Ht(l,e,g),Io;Ji(),t=Pf(e,t,n)}else e=u.treeContext,qe=an(g.nextSibling),ft=t,De=!0,ta=null,tn=!1,e!==null&&Bd(t,e),t=Li(t,l),t.flags|=4096;return t}return e=_n(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Vi(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Wo(e,t,n,l,o){return Fa(t),n=Ao(e,t,n,l,void 0,o),l=Do(),e!==null&&!nt?(Oo(e,t,o),On(e,t,o)):(De&&l&&mo(t),t.flags|=1,gt(e,t,n,o),t.child)}function em(e,t,n,l,o,u){return Fa(t),t.updateQueue=null,n=nf(t,l,n,o),tf(e),l=Do(),e!==null&&!nt?(Oo(e,t,u),On(e,t,u)):(De&&l&&mo(t),t.flags|=1,gt(e,t,n,u),t.child)}function tm(e,t,n,l,o){if(Fa(t),t.stateNode===null){var u=yl,g=n.contextType;typeof g=="object"&&g!==null&&(u=mt(g)),u=new n(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Ko,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},Co(t),g=n.contextType,u.context=typeof g=="object"&&g!==null?mt(g):yl,u.state=t.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(Zo(t,n,g,l),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(g=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),g!==u.state&&Ko.enqueueReplaceState(u,u.state,null),Ss(t,l,u,o),bs(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var y=t.memoizedProps,C=Ia(n,y);u.props=C;var k=u.context,L=n.contextType;g=yl,typeof L=="object"&&L!==null&&(g=mt(L));var G=n.getDerivedStateFromProps;L=typeof G=="function"||typeof u.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,L||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(y||k!==g)&&$f(t,u,l,g),la=!1;var H=t.memoizedState;u.state=H,Ss(t,l,u,o),bs(),k=t.memoizedState,y||H!==k||la?(typeof G=="function"&&(Zo(t,n,G,l),k=t.memoizedState),(C=la||Vf(t,n,C,l,H,k,g))?(L||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=k),u.props=l,u.state=k,u.context=g,l=C):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,jo(e,t),g=t.memoizedProps,L=Ia(n,g),u.props=L,G=t.pendingProps,H=u.context,k=n.contextType,C=yl,typeof k=="object"&&k!==null&&(C=mt(k)),y=n.getDerivedStateFromProps,(k=typeof y=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(g!==G||H!==C)&&$f(t,u,l,C),la=!1,H=t.memoizedState,u.state=H,Ss(t,l,u,o),bs();var B=t.memoizedState;g!==G||H!==B||la||e!==null&&e.dependencies!==null&&Si(e.dependencies)?(typeof y=="function"&&(Zo(t,n,y,l),B=t.memoizedState),(L=la||Vf(t,n,L,l,H,B,C)||e!==null&&e.dependencies!==null&&Si(e.dependencies))?(k||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,B,C),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,B,C)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||g===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=B),u.props=l,u.state=B,u.context=C,l=L):(typeof u.componentDidUpdate!="function"||g===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,Vi(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=Ka(t,e.child,null,o),t.child=Ka(t,null,n,o)):gt(e,t,n,o),t.memoizedState=u.state,e=t.child):e=On(e,t,o),e}function nm(e,t,n,l){return qa(),t.flags|=256,gt(e,t,n,l),t.child}var Po={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function eu(e){return{baseLanes:e,cachePool:Yd()}}function tu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Yt),e}function am(e,t,n){var l=t.pendingProps,o=!1,u=(t.flags&128)!==0,g;if((g=u)||(g=e!==null&&e.memoizedState===null?!1:(We.current&2)!==0),g&&(o=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(De){if(o?ra(t):oa(),(e=qe)?(e=dg(e,tn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ea!==null?{id:xn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},n=kd(e),n.return=t,t.child=n,ft=t,qe=null)):e=null,e===null)throw na(t);return Uu(e)?t.lanes=32:t.lanes=536870912,null}var y=l.children;return l=l.fallback,o?(oa(),o=t.mode,y=$i({mode:"hidden",children:y},o),l=Ga(l,o,n,null),y.return=t,l.return=t,y.sibling=l,t.child=y,l=t.child,l.memoizedState=eu(n),l.childLanes=tu(e,g,n),t.memoizedState=Po,Rs(null,l)):(ra(t),nu(t,y))}var C=e.memoizedState;if(C!==null&&(y=C.dehydrated,y!==null)){if(u)t.flags&256?(ra(t),t.flags&=-257,t=au(e,t,n)):t.memoizedState!==null?(oa(),t.child=e.child,t.flags|=128,t=null):(oa(),y=l.fallback,o=t.mode,l=$i({mode:"visible",children:l.children},o),y=Ga(y,o,n,null),y.flags|=2,l.return=t,y.return=t,l.sibling=y,t.child=l,Ka(t,e.child,null,n),l=t.child,l.memoizedState=eu(n),l.childLanes=tu(e,g,n),t.memoizedState=Po,t=Rs(null,l));else if(ra(t),Uu(y)){if(g=y.nextSibling&&y.nextSibling.dataset,g)var k=g.dgst;g=k,l=Error(i(419)),l.stack="",l.digest=g,gs({value:l,source:null,stack:null}),t=au(e,t,n)}else if(nt||Nl(e,t,n,!1),g=(n&e.childLanes)!==0,nt||g){if(g=Ge,g!==null&&(l=Mt(g,n),l!==0&&l!==C.retryLane))throw C.retryLane=l,$a(e,l),Ht(g,e,l),Io;Hu(y)||Ji(),t=au(e,t,n)}else Hu(y)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,qe=an(y.nextSibling),ft=t,De=!0,ta=null,tn=!1,e!==null&&Bd(t,e),t=nu(t,l.children),t.flags|=4096);return t}return o?(oa(),y=l.fallback,o=t.mode,C=e.child,k=C.sibling,l=_n(C,{mode:"hidden",children:l.children}),l.subtreeFlags=C.subtreeFlags&65011712,k!==null?y=_n(k,y):(y=Ga(y,o,n,null),y.flags|=2),y.return=t,l.return=t,l.sibling=y,t.child=l,Rs(null,l),l=t.child,y=e.child.memoizedState,y===null?y=eu(n):(o=y.cachePool,o!==null?(C=et._currentValue,o=o.parent!==C?{parent:C,pool:C}:o):o=Yd(),y={baseLanes:y.baseLanes|n,cachePool:o}),l.memoizedState=y,l.childLanes=tu(e,g,n),t.memoizedState=Po,Rs(e.child,l)):(ra(t),n=e.child,e=n.sibling,n=_n(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=n,t.memoizedState=null,n)}function nu(e,t){return t=$i({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function $i(e,t){return e=Vt(22,e,null,t),e.lanes=0,e}function au(e,t,n){return Ka(t,e.child,null,n),e=nu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lm(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),xo(e.return,t,n)}function lu(e,t,n,l,o,u){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:o,treeForkCount:u}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=l,g.tail=n,g.tailMode=o,g.treeForkCount=u)}function sm(e,t,n){var l=t.pendingProps,o=l.revealOrder,u=l.tail;l=l.children;var g=We.current,y=(g&2)!==0;if(y?(g=g&1|2,t.flags|=128):g&=1,U(We,g),gt(e,t,l,n),l=De?ms:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lm(e,n,t);else if(e.tag===19)lm(e,n,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}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Mi(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),lu(t,!1,o,n,u,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Mi(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}lu(t,!0,n,null,u,l);break;case"together":lu(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function On(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),da|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Nl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=_n(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=_n(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function su(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Si(e)))}function Y0(e,t,n){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),aa(t,et,e.memoizedState.cache),qa();break;case 27:case 5:wt(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:aa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,zo(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(ra(t),t.flags|=128,null):(n&t.child.childLanes)!==0?am(e,t,n):(ra(t),e=On(e,t,n),e!==null?e.sibling:null);ra(t);break;case 19:var o=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(Nl(e,t,n,!1),l=(n&t.childLanes)!==0),o){if(l)return sm(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),U(We,We.current),l)break;return null;case 22:return t.lanes=0,If(e,t,n,t.pendingProps);case 24:aa(t,et,e.memoizedState.cache)}return On(e,t,n)}function im(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!su(e,n)&&(t.flags&128)===0)return nt=!1,Y0(e,t,n);nt=(e.flags&131072)!==0}else nt=!1,De&&(t.flags&1048576)!==0&&Ud(t,ms,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Qa(t.elementType),t.type=e,typeof e=="function")uo(e)?(l=Ia(e,l),t.tag=1,t=tm(null,t,e,l,n)):(t.tag=0,t=Wo(null,t,e,l,n));else{if(e!=null){var o=e.$$typeof;if(o===se){t.tag=11,t=Zf(null,t,e,l,n);break e}else if(o===W){t.tag=14,t=Kf(null,t,e,l,n);break e}}throw t=de(e)||e,Error(i(306,t,""))}}return t;case 0:return Wo(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,o=Ia(l,t.pendingProps),tm(e,t,l,o,n);case 3:e:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));l=t.pendingProps;var u=t.memoizedState;o=u.element,jo(e,t),Ss(t,l,null,n);var g=t.memoizedState;if(l=g.cache,aa(t,et,l),l!==u.cache&&yo(t,[et],n,!0),bs(),l=g.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=nm(e,t,l,n);break e}else if(l!==o){o=Wt(Error(i(424)),t),gs(o),t=nm(e,t,l,n);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(qe=an(e.firstChild),ft=t,De=!0,ta=null,tn=!0,n=Jd(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(qa(),l===o){t=On(e,t,n);break e}gt(e,t,l,n)}t=t.child}return t;case 26:return Vi(e,t),e===null?(n=vg(t.type,null,t.pendingProps,null))?t.memoizedState=n:De||(n=t.type,e=t.pendingProps,l=ar(ne.current).createElement(n),l[dt]=t,l[zt]=e,ht(l,n,e),rt(l),t.stateNode=l):t.memoizedState=vg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return wt(t),e===null&&De&&(l=t.stateNode=gg(t.type,t.pendingProps,ne.current),ft=t,tn=!0,o=qe,pa(t.type)?(Bu=o,qe=an(l.firstChild)):qe=o),gt(e,t,t.pendingProps.children,n),Vi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&De&&((o=l=qe)&&(l=bv(l,t.type,t.pendingProps,tn),l!==null?(t.stateNode=l,ft=t,qe=an(l.firstChild),tn=!1,o=!0):o=!1),o||na(t)),wt(t),o=t.type,u=t.pendingProps,g=e!==null?e.memoizedProps:null,l=u.children,Du(o,u)?l=null:g!==null&&Du(o,g)&&(t.flags|=32),t.memoizedState!==null&&(o=Ao(e,t,k0,null,null,n),$s._currentValue=o),Vi(e,t),gt(e,t,l,n),t.child;case 6:return e===null&&De&&((e=n=qe)&&(n=Sv(n,t.pendingProps,tn),n!==null?(t.stateNode=n,ft=t,qe=null,e=!0):e=!1),e||na(t)),null;case 13:return am(e,t,n);case 4:return pe(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ka(t,null,l,n):gt(e,t,l,n),t.child;case 11:return Zf(e,t,t.type,t.pendingProps,n);case 7:return gt(e,t,t.pendingProps,n),t.child;case 8:return gt(e,t,t.pendingProps.children,n),t.child;case 12:return gt(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,aa(t,t.type,l.value),gt(e,t,l.children,n),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,Fa(t),o=mt(o),l=l(o),t.flags|=1,gt(e,t,l,n),t.child;case 14:return Kf(e,t,t.type,t.pendingProps,n);case 15:return Jf(e,t,t.type,t.pendingProps,n);case 19:return sm(e,t,n);case 31:return q0(e,t,n);case 22:return If(e,t,n,t.pendingProps);case 24:return Fa(t),l=mt(et),e===null?(o=wo(),o===null&&(o=Ge,u=bo(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=n),o=u),t.memoizedState={parent:l,cache:o},Co(t),aa(t,et,o)):((e.lanes&n)!==0&&(jo(e,t),Ss(t,null,null,n),bs()),o=e.memoizedState,u=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),aa(t,et,l)):(l=u.cache,aa(t,et,l),l!==o.cache&&yo(t,[et],n,!0))),gt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function kn(e){e.flags|=4}function iu(e,t,n,l,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Dm())e.flags|=8192;else throw Za=ji,No}else e.flags&=-16777217}function rm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!wg(t))if(Dm())e.flags|=8192;else throw Za=ji,No}function Gi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?yt():536870912,e.lanes|=t,kl|=t)}function Es(e,t){if(!De)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function F0(e,t,n){var l=t.pendingProps;switch(go(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return Ye(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Tn(et),he(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(wl(t)?kn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,po())),Ye(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(kn(t),u!==null?(Ye(t),rm(t,u)):(Ye(t),iu(t,o,null,l,n))):u?u!==e.memoizedState?(kn(t),Ye(t),rm(t,u)):(Ye(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&kn(t),Ye(t),iu(t,o,e,l,n)),null;case 27:if(ut(t),n=ne.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&kn(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return Ye(t),null}e=X.current,wl(t)?Ld(t):(e=gg(o,l,n),t.stateNode=e,kn(t))}return Ye(t),null;case 5:if(ut(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&kn(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return Ye(t),null}if(u=X.current,wl(t))Ld(t);else{var g=ar(ne.current);switch(u){case 1:u=g.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=g.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=g.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?g.createElement("select",{is:l.is}):g.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?g.createElement(o,{is:l.is}):g.createElement(o)}}u[dt]=t,u[zt]=l;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)u.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=u;e:switch(ht(u,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&kn(t)}}return Ye(t),iu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&kn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(i(166));if(e=ne.current,wl(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,o=ft,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||ag(e.nodeValue,n)),e||na(t,!0)}else e=ar(e).createTextNode(l),e[dt]=t,t.stateNode=e}return Ye(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=wl(t),n!==null){if(e===null){if(!l)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[dt]=t}else qa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),e=!1}else n=po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Gt(t),t):(Gt(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Ye(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=wl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(i(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));o[dt]=t}else qa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),o=!1}else o=po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Gt(t),t):(Gt(t),null)}return Gt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==o&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Gi(t,t.updateQueue),Ye(t),null);case 4:return he(),e===null&&_u(t.stateNode.containerInfo),Ye(t),null;case 10:return Tn(t.type),Ye(t),null;case 19:if(z(We),l=t.memoizedState,l===null)return Ye(t),null;if(o=(t.flags&128)!==0,u=l.rendering,u===null)if(o)Es(l,!1);else{if(Ie!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Mi(e),u!==null){for(t.flags|=128,Es(l,!1),e=u.updateQueue,t.updateQueue=e,Gi(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Od(n,e),n=n.sibling;return U(We,We.current&1|2),De&&Mn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Ct()>Qi&&(t.flags|=128,o=!0,Es(l,!1),t.lanes=4194304)}else{if(!o)if(e=Mi(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Gi(t,e),Es(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!De)return Ye(t),null}else 2*Ct()-l.renderingStartTime>Qi&&n!==536870912&&(t.flags|=128,o=!0,Es(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ct(),e.sibling=null,n=We.current,U(We,o?n&1|2:n&1),De&&Mn(t,l.treeForkCount),e):(Ye(t),null);case 22:case 23:return Gt(t),Mo(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),n=t.updateQueue,n!==null&&Gi(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&z(Xa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Tn(et),Ye(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function X0(e,t){switch(go(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tn(et),he(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ut(t),null;case 31:if(t.memoizedState!==null){if(Gt(t),t.alternate===null)throw Error(i(340));qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Gt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return z(We),null;case 4:return he(),null;case 10:return Tn(t.type),null;case 22:case 23:return Gt(t),Mo(),e!==null&&z(Xa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Tn(et),null;case 25:return null;default:return null}}function om(e,t){switch(go(t),t.tag){case 3:Tn(et),he();break;case 26:case 27:case 5:ut(t);break;case 4:he();break;case 31:t.memoizedState!==null&&Gt(t);break;case 13:Gt(t);break;case 19:z(We);break;case 10:Tn(t.type);break;case 22:case 23:Gt(t),Mo(),e!==null&&z(Xa);break;case 24:Tn(et)}}function _s(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var o=l.next;n=o;do{if((n.tag&e)===e){l=void 0;var u=n.create,g=n.inst;l=u(),g.destroy=l}n=n.next}while(n!==o)}}catch(y){Be(t,t.return,y)}}function ua(e,t,n){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var u=o.next;l=u;do{if((l.tag&e)===e){var g=l.inst,y=g.destroy;if(y!==void 0){g.destroy=void 0,o=t;var C=n,k=y;try{k()}catch(L){Be(o,C,L)}}}l=l.next}while(l!==u)}}catch(L){Be(t,t.return,L)}}function um(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Wd(t,n)}catch(l){Be(e,e.return,l)}}}function cm(e,t,n){n.props=Ia(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Be(e,t,l)}}function Ms(e,t){try{var n=e.ref;if(n!==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 n=="function"?e.refCleanup=n(l):n.current=l}}catch(o){Be(e,t,o)}}function bn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(o){Be(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Be(e,t,o)}else n.current=null}function dm(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(o){Be(e,e.return,o)}}function ru(e,t,n){try{var l=e.stateNode;gv(l,e.type,n,t),l[zt]=t}catch(o){Be(e,e.return,o)}}function fm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&pa(e.type)||e.tag===4}function ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fm(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&&pa(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 uu(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Rn));else if(l!==4&&(l===27&&pa(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(uu(e,t,n),e=e.sibling;e!==null;)uu(e,t,n),e=e.sibling}function qi(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&pa(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(qi(e,t,n),e=e.sibling;e!==null;)qi(e,t,n),e=e.sibling}function mm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ht(t,l,n),t[dt]=e,t[zt]=n}catch(u){Be(e,e.return,u)}}var Hn=!1,at=!1,cu=!1,gm=typeof WeakSet=="function"?WeakSet:Set,ot=null;function Q0(e,t){if(e=e.containerInfo,Tu=cr,e=jd(e),no(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var o=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var g=0,y=-1,C=-1,k=0,L=0,G=e,H=null;t:for(;;){for(var B;G!==n||o!==0&&G.nodeType!==3||(y=g+o),G!==u||l!==0&&G.nodeType!==3||(C=g+l),G.nodeType===3&&(g+=G.nodeValue.length),(B=G.firstChild)!==null;)H=G,G=B;for(;;){if(G===e)break t;if(H===n&&++k===o&&(y=g),H===u&&++L===l&&(C=g),(B=G.nextSibling)!==null)break;G=H,H=G.parentNode}G=B}n=y===-1||C===-1?null:{start:y,end:C}}else n=null}n=n||{start:0,end:0}}else n=null;for(Au={focusedElem:e,selectionRange:n},cr=!1,ot=t;ot!==null;)if(t=ot,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ot=e;else for(;ot!==null;){switch(t=ot,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,o=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var ie=Ia(n.type,o);e=l.getSnapshotBeforeUpdate(ie,u),l.__reactInternalSnapshotBeforeUpdate=e}catch(xe){Be(n,n.return,xe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ku(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ku(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(i(163))}if(e=t.sibling,e!==null){e.return=t.return,ot=e;break}ot=t.return}}function hm(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Bn(e,n),l&4&&_s(5,n);break;case 1:if(Bn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(g){Be(n,n.return,g)}else{var o=Ia(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Be(n,n.return,g)}}l&64&&um(n),l&512&&Ms(n,n.return);break;case 3:if(Bn(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Wd(e,t)}catch(g){Be(n,n.return,g)}}break;case 27:t===null&&l&4&&mm(n);case 26:case 5:Bn(e,n),t===null&&l&4&&dm(n),l&512&&Ms(n,n.return);break;case 12:Bn(e,n);break;case 31:Bn(e,n),l&4&&xm(e,n);break;case 13:Bn(e,n),l&4&&ym(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=nv.bind(null,n),wv(e,n))));break;case 22:if(l=n.memoizedState!==null||Hn,!l){t=t!==null&&t.memoizedState!==null||at,o=Hn;var u=at;Hn=l,(at=t)&&!u?Ln(e,n,(n.subtreeFlags&8772)!==0):Bn(e,n),Hn=o,at=u}break;case 30:break;default:Bn(e,n)}}function pm(e){var t=e.alternate;t!==null&&(e.alternate=null,pm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Lr(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 Xe=null,At=!1;function Un(e,t,n){for(n=n.child;n!==null;)vm(e,t,n),n=n.sibling}function vm(e,t,n){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(Oa,n)}catch{}switch(n.tag){case 26:at||bn(n,t),Un(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:at||bn(n,t);var l=Xe,o=At;pa(n.type)&&(Xe=n.stateNode,At=!1),Un(e,t,n),Bs(n.stateNode),Xe=l,At=o;break;case 5:at||bn(n,t);case 6:if(l=Xe,o=At,Xe=null,Un(e,t,n),Xe=l,At=o,Xe!==null)if(At)try{(Xe.nodeType===9?Xe.body:Xe.nodeName==="HTML"?Xe.ownerDocument.body:Xe).removeChild(n.stateNode)}catch(u){Be(n,t,u)}else try{Xe.removeChild(n.stateNode)}catch(u){Be(n,t,u)}break;case 18:Xe!==null&&(At?(e=Xe,ug(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ql(e)):ug(Xe,n.stateNode));break;case 4:l=Xe,o=At,Xe=n.stateNode.containerInfo,At=!0,Un(e,t,n),Xe=l,At=o;break;case 0:case 11:case 14:case 15:ua(2,n,t),at||ua(4,n,t),Un(e,t,n);break;case 1:at||(bn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&cm(n,t,l)),Un(e,t,n);break;case 21:Un(e,t,n);break;case 22:at=(l=at)||n.memoizedState!==null,Un(e,t,n),at=l;break;default:Un(e,t,n)}}function xm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ql(e)}catch(n){Be(t,t.return,n)}}}function ym(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ql(e)}catch(n){Be(t,t.return,n)}}function Z0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gm),t;default:throw Error(i(435,e.tag))}}function Yi(e,t){var n=Z0(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var o=av.bind(null,e,l);l.then(o,o)}})}function Dt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var o=n[l],u=e,g=t,y=g;e:for(;y!==null;){switch(y.tag){case 27:if(pa(y.type)){Xe=y.stateNode,At=!1;break e}break;case 5:Xe=y.stateNode,At=!1;break e;case 3:case 4:Xe=y.stateNode.containerInfo,At=!0;break e}y=y.return}if(Xe===null)throw Error(i(160));vm(u,g,o),Xe=null,At=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bm(t,e),t=t.sibling}var cn=null;function bm(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dt(t,e),Ot(e),l&4&&(ua(3,e,e.return),_s(3,e),ua(5,e,e.return));break;case 1:Dt(t,e),Ot(e),l&512&&(at||n===null||bn(n,n.return)),l&64&&Hn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var o=cn;if(Dt(t,e),Ot(e),l&512&&(at||n===null||bn(n,n.return)),l&4){var u=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":u=o.getElementsByTagName("title")[0],(!u||u[ns]||u[dt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(l),o.head.insertBefore(u,o.querySelector("head > title"))),ht(u,l,n),u[dt]=e,rt(u),l=u;break e;case"link":var g=bg("link","href",o).get(l+(n.href||""));if(g){for(var y=0;y<g.length;y++)if(u=g[y],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){g.splice(y,1);break t}}u=o.createElement(l),ht(u,l,n),o.head.appendChild(u);break;case"meta":if(g=bg("meta","content",o).get(l+(n.content||""))){for(y=0;y<g.length;y++)if(u=g[y],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){g.splice(y,1);break t}}u=o.createElement(l),ht(u,l,n),o.head.appendChild(u);break;default:throw Error(i(468,l))}u[dt]=e,rt(u),l=u}e.stateNode=l}else Sg(o,e.type,e.stateNode);else e.stateNode=yg(o,l,e.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?Sg(o,e.type,e.stateNode):yg(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&ru(e,e.memoizedProps,n.memoizedProps)}break;case 27:Dt(t,e),Ot(e),l&512&&(at||n===null||bn(n,n.return)),n!==null&&l&4&&ru(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Dt(t,e),Ot(e),l&512&&(at||n===null||bn(n,n.return)),e.flags&32){o=e.stateNode;try{fl(o,"")}catch(ie){Be(e,e.return,ie)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,ru(e,o,n!==null?n.memoizedProps:o)),l&1024&&(cu=!0);break;case 6:if(Dt(t,e),Ot(e),l&4){if(e.stateNode===null)throw Error(i(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ie){Be(e,e.return,ie)}}break;case 3:if(ir=null,o=cn,cn=lr(t.containerInfo),Dt(t,e),cn=o,Ot(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{ql(t.containerInfo)}catch(ie){Be(e,e.return,ie)}cu&&(cu=!1,Sm(e));break;case 4:l=cn,cn=lr(e.stateNode.containerInfo),Dt(t,e),Ot(e),cn=l;break;case 12:Dt(t,e),Ot(e);break;case 31:Dt(t,e),Ot(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yi(e,l)));break;case 13:Dt(t,e),Ot(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Xi=Ct()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yi(e,l)));break;case 22:o=e.memoizedState!==null;var C=n!==null&&n.memoizedState!==null,k=Hn,L=at;if(Hn=k||o,at=L||C,Dt(t,e),at=L,Hn=k,Ot(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||C||Hn||at||Wa(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){C=n=t;try{if(u=C.stateNode,o)g=u.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{y=C.stateNode;var G=C.memoizedProps.style,H=G!=null&&G.hasOwnProperty("display")?G.display:null;y.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(ie){Be(C,C.return,ie)}}}else if(t.tag===6){if(n===null){C=t;try{C.stateNode.nodeValue=o?"":C.memoizedProps}catch(ie){Be(C,C.return,ie)}}}else if(t.tag===18){if(n===null){C=t;try{var B=C.stateNode;o?cg(B,!0):cg(C.stateNode,!1)}catch(ie){Be(C,C.return,ie)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Yi(e,n))));break;case 19:Dt(t,e),Ot(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yi(e,l)));break;case 30:break;case 21:break;default:Dt(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(fm(l)){n=l;break}l=l.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var o=n.stateNode,u=ou(e);qi(e,u,o);break;case 5:var g=n.stateNode;n.flags&32&&(fl(g,""),n.flags&=-33);var y=ou(e);qi(e,y,g);break;case 3:case 4:var C=n.stateNode.containerInfo,k=ou(e);uu(e,k,C);break;default:throw Error(i(161))}}catch(L){Be(e,e.return,L)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Bn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)hm(e,t.alternate,t),t=t.sibling}function Wa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ua(4,t,t.return),Wa(t);break;case 1:bn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&cm(t,t.return,n),Wa(t);break;case 27:Bs(t.stateNode);case 26:case 5:bn(t,t.return),Wa(t);break;case 22:t.memoizedState===null&&Wa(t);break;case 30:Wa(t);break;default:Wa(t)}e=e.sibling}}function Ln(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,u=t,g=u.flags;switch(u.tag){case 0:case 11:case 15:Ln(o,u,n),_s(4,u);break;case 1:if(Ln(o,u,n),l=u,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(k){Be(l,l.return,k)}if(l=u,o=l.updateQueue,o!==null){var y=l.stateNode;try{var C=o.shared.hiddenCallbacks;if(C!==null)for(o.shared.hiddenCallbacks=null,o=0;o<C.length;o++)Id(C[o],y)}catch(k){Be(l,l.return,k)}}n&&g&64&&um(u),Ms(u,u.return);break;case 27:mm(u);case 26:case 5:Ln(o,u,n),n&&l===null&&g&4&&dm(u),Ms(u,u.return);break;case 12:Ln(o,u,n);break;case 31:Ln(o,u,n),n&&g&4&&xm(o,u);break;case 13:Ln(o,u,n),n&&g&4&&ym(o,u);break;case 22:u.memoizedState===null&&Ln(o,u,n),Ms(u,u.return);break;case 30:break;default:Ln(o,u,n)}t=t.sibling}}function du(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&hs(n))}function fu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hs(e))}function dn(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)wm(e,t,n,l),t=t.sibling}function wm(e,t,n,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:dn(e,t,n,l),o&2048&&_s(9,t);break;case 1:dn(e,t,n,l);break;case 3:dn(e,t,n,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hs(e)));break;case 12:if(o&2048){dn(e,t,n,l),e=t.stateNode;try{var u=t.memoizedProps,g=u.id,y=u.onPostCommit;typeof y=="function"&&y(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Be(t,t.return,C)}}else dn(e,t,n,l);break;case 31:dn(e,t,n,l);break;case 13:dn(e,t,n,l);break;case 23:break;case 22:u=t.stateNode,g=t.alternate,t.memoizedState!==null?u._visibility&2?dn(e,t,n,l):zs(e,t):u._visibility&2?dn(e,t,n,l):(u._visibility|=2,Al(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&du(g,t);break;case 24:dn(e,t,n,l),o&2048&&fu(t.alternate,t);break;default:dn(e,t,n,l)}}function Al(e,t,n,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,g=t,y=n,C=l,k=g.flags;switch(g.tag){case 0:case 11:case 15:Al(u,g,y,C,o),_s(8,g);break;case 23:break;case 22:var L=g.stateNode;g.memoizedState!==null?L._visibility&2?Al(u,g,y,C,o):zs(u,g):(L._visibility|=2,Al(u,g,y,C,o)),o&&k&2048&&du(g.alternate,g);break;case 24:Al(u,g,y,C,o),o&&k&2048&&fu(g.alternate,g);break;default:Al(u,g,y,C,o)}t=t.sibling}}function zs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,o=l.flags;switch(l.tag){case 22:zs(n,l),o&2048&&du(l.alternate,l);break;case 24:zs(n,l),o&2048&&fu(l.alternate,l);break;default:zs(n,l)}t=t.sibling}}var Ts=8192;function Dl(e,t,n){if(e.subtreeFlags&Ts)for(e=e.child;e!==null;)Nm(e,t,n),e=e.sibling}function Nm(e,t,n){switch(e.tag){case 26:Dl(e,t,n),e.flags&Ts&&e.memoizedState!==null&&Ov(n,cn,e.memoizedState,e.memoizedProps);break;case 5:Dl(e,t,n);break;case 3:case 4:var l=cn;cn=lr(e.stateNode.containerInfo),Dl(e,t,n),cn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Ts,Ts=16777216,Dl(e,t,n),Ts=l):Dl(e,t,n));break;default:Dl(e,t,n)}}function Cm(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 As(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];ot=l,Rm(l,e)}Cm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jm(e),e=e.sibling}function jm(e){switch(e.tag){case 0:case 11:case 15:As(e),e.flags&2048&&ua(9,e,e.return);break;case 3:As(e);break;case 12:As(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fi(e)):As(e);break;default:As(e)}}function Fi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];ot=l,Rm(l,e)}Cm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ua(8,t,t.return),Fi(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Fi(t));break;default:Fi(t)}e=e.sibling}}function Rm(e,t){for(;ot!==null;){var n=ot;switch(n.tag){case 0:case 11:case 15:ua(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:hs(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,ot=l;else e:for(n=e;ot!==null;){l=ot;var o=l.sibling,u=l.return;if(pm(l),l===n){ot=null;break e}if(o!==null){o.return=u,ot=o;break e}ot=u}}}var K0={getCacheForType:function(e){var t=mt(et),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return mt(et).controller.signal}},J0=typeof WeakMap=="function"?WeakMap:Map,He=0,Ge=null,_e=null,Te=0,Ue=0,qt=null,ca=!1,Ol=!1,mu=!1,Vn=0,Ie=0,da=0,Pa=0,gu=0,Yt=0,kl=0,Ds=null,kt=null,hu=!1,Xi=0,Em=0,Qi=1/0,Zi=null,fa=null,lt=0,ma=null,Hl=null,$n=0,pu=0,vu=null,_m=null,Os=0,xu=null;function Ft(){return(He&2)!==0&&Te!==0?Te&-Te:M.T!==null?Cu():Ur()}function Mm(){if(Yt===0)if((Te&536870912)===0||De){var e=ll;ll<<=1,(ll&3932160)===0&&(ll=262144),Yt=e}else Yt=536870912;return e=$t.current,e!==null&&(e.flags|=32),Yt}function Ht(e,t,n){(e===Ge&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)&&(Ul(e,0),ga(e,Te,Yt,!1)),Ke(e,n),((He&2)===0||e!==Ge)&&(e===Ge&&((He&2)===0&&(Pa|=n),Ie===4&&ga(e,Te,Yt,!1)),Sn(e))}function zm(e,t,n){if((He&6)!==0)throw Error(i(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Fe(e,t),o=l?P0(e,t):bu(e,t,!0),u=l;do{if(o===0){Ol&&!l&&ga(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!I0(n)){o=bu(e,t,!1),u=!1;continue}if(o===2){if(u=t,e.errorRecoveryDisabledLanes&u)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var y=e;o=Ds;var C=y.current.memoizedState.isDehydrated;if(C&&(Ul(y,g).flags|=256),g=bu(y,g,!1),g!==2){if(mu&&!C){y.errorRecoveryDisabledLanes|=u,Pa|=u,o=4;break e}u=kt,kt=o,u!==null&&(kt===null?kt=u:kt.push.apply(kt,u))}o=g}if(u=!1,o!==2)continue}}if(o===1){Ul(e,0),ga(e,t,0,!0);break}e:{switch(l=e,u=o,u){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:ga(l,t,Yt,!ca);break e;case 2:kt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(o=Xi+300-Ct(),10<o)){if(ga(l,t,Yt,!ca),we(l,0,!0)!==0)break e;$n=t,l.timeoutHandle=rg(Tm.bind(null,l,n,kt,Zi,hu,t,Yt,Pa,kl,ca,u,"Throttled",-0,0),o);break e}Tm(l,n,kt,Zi,hu,t,Yt,Pa,kl,ca,u,null,-0,0)}}break}while(!0);Sn(e)}function Tm(e,t,n,l,o,u,g,y,C,k,L,G,H,B){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Rn},Nm(t,u,G);var ie=(u&62914560)===u?Xi-Ct():(u&4194048)===u?Em-Ct():0;if(ie=kv(G,ie),ie!==null){$n=u,e.cancelPendingCommit=ie(Lm.bind(null,e,t,u,n,l,o,g,y,C,L,G,null,H,B)),ga(e,u,g,!k);return}}Lm(e,t,u,n,l,o,g,y,C)}function I0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var o=n[l],u=o.getSnapshot;o=o.value;try{if(!Lt(u(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 ga(e,t,n,l){t&=~gu,t&=~Pa,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var u=31-xt(o),g=1<<u;l[u]=-1,o&=~g}n!==0&&Ha(e,n,t)}function Ki(){return(He&6)===0?(ks(0),!1):!0}function yu(){if(_e!==null){if(Ue===0)var e=_e.return;else e=_e,zn=Ya=null,ko(e),El=null,vs=0,e=_e;for(;e!==null;)om(e.alternate,e),e=e.return;_e=null}}function Ul(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,vv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),$n=0,yu(),Ge=e,_e=n=_n(e.current,null),Te=t,Ue=0,qt=null,ca=!1,Ol=Fe(e,t),mu=!1,kl=Yt=gu=Pa=da=Ie=0,kt=Ds=null,hu=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-xt(l),u=1<<o;t|=e[o],l&=~u}return Vn=t,pi(),n}function Am(e,t){Ce=null,M.H=js,t===Rl||t===Ci?(t=Qd(),Ue=3):t===No?(t=Qd(),Ue=4):Ue=t===Io?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,qt=t,_e===null&&(Ie=1,Bi(e,Wt(t,e.current)))}function Dm(){var e=$t.current;return e===null?!0:(Te&4194048)===Te?nn===null:(Te&62914560)===Te||(Te&536870912)!==0?e===nn:!1}function Om(){var e=M.H;return M.H=js,e===null?js:e}function km(){var e=M.A;return M.A=K0,e}function Ji(){Ie=4,ca||(Te&4194048)!==Te&&$t.current!==null||(Ol=!0),(da&134217727)===0&&(Pa&134217727)===0||Ge===null||ga(Ge,Te,Yt,!1)}function bu(e,t,n){var l=He;He|=2;var o=Om(),u=km();(Ge!==e||Te!==t)&&(Zi=null,Ul(e,t)),t=!1;var g=Ie;e:do try{if(Ue!==0&&_e!==null){var y=_e,C=qt;switch(Ue){case 8:yu(),g=6;break e;case 3:case 2:case 9:case 6:$t.current===null&&(t=!0);var k=Ue;if(Ue=0,qt=null,Bl(e,y,C,k),n&&Ol){g=0;break e}break;default:k=Ue,Ue=0,qt=null,Bl(e,y,C,k)}}W0(),g=Ie;break}catch(L){Am(e,L)}while(!0);return t&&e.shellSuspendCounter++,zn=Ya=null,He=l,M.H=o,M.A=u,_e===null&&(Ge=null,Te=0,pi()),g}function W0(){for(;_e!==null;)Hm(_e)}function P0(e,t){var n=He;He|=2;var l=Om(),o=km();Ge!==e||Te!==t?(Zi=null,Qi=Ct()+500,Ul(e,t)):Ol=Fe(e,t);e:do try{if(Ue!==0&&_e!==null){t=_e;var u=qt;t:switch(Ue){case 1:Ue=0,qt=null,Bl(e,t,u,1);break;case 2:case 9:if(Fd(u)){Ue=0,qt=null,Um(t);break}t=function(){Ue!==2&&Ue!==9||Ge!==e||(Ue=7),Sn(e)},u.then(t,t);break e;case 3:Ue=7;break e;case 4:Ue=5;break e;case 7:Fd(u)?(Ue=0,qt=null,Um(t)):(Ue=0,qt=null,Bl(e,t,u,7));break;case 5:var g=null;switch(_e.tag){case 26:g=_e.memoizedState;case 5:case 27:var y=_e;if(g?wg(g):y.stateNode.complete){Ue=0,qt=null;var C=y.sibling;if(C!==null)_e=C;else{var k=y.return;k!==null?(_e=k,Ii(k)):_e=null}break t}}Ue=0,qt=null,Bl(e,t,u,5);break;case 6:Ue=0,qt=null,Bl(e,t,u,6);break;case 8:yu(),Ie=6;break e;default:throw Error(i(462))}}ev();break}catch(L){Am(e,L)}while(!0);return zn=Ya=null,M.H=l,M.A=o,He=n,_e!==null?0:(Ge=null,Te=0,pi(),Ie)}function ev(){for(;_e!==null&&!Nt();)Hm(_e)}function Hm(e){var t=im(e.alternate,e,Vn);e.memoizedProps=e.pendingProps,t===null?Ii(e):_e=t}function Um(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=em(n,t,t.pendingProps,t.type,void 0,Te);break;case 11:t=em(n,t,t.pendingProps,t.type.render,t.ref,Te);break;case 5:ko(t);default:om(n,t),t=_e=Od(t,Vn),t=im(n,t,Vn)}e.memoizedProps=e.pendingProps,t===null?Ii(e):_e=t}function Bl(e,t,n,l){zn=Ya=null,ko(t),El=null,vs=0;var o=t.return;try{if(G0(e,o,t,n,Te)){Ie=1,Bi(e,Wt(n,e.current)),_e=null;return}}catch(u){if(o!==null)throw _e=o,u;Ie=1,Bi(e,Wt(n,e.current)),_e=null;return}t.flags&32768?(De||l===1?e=!0:Ol||(Te&536870912)!==0?e=!1:(ca=e=!0,(l===2||l===9||l===3||l===6)&&(l=$t.current,l!==null&&l.tag===13&&(l.flags|=16384))),Bm(t,e)):Ii(t)}function Ii(e){var t=e;do{if((t.flags&32768)!==0){Bm(t,ca);return}e=t.return;var n=F0(t.alternate,t,Vn);if(n!==null){_e=n;return}if(t=t.sibling,t!==null){_e=t;return}_e=t=e}while(t!==null);Ie===0&&(Ie=5)}function Bm(e,t){do{var n=X0(e.alternate,e);if(n!==null){n.flags&=32767,_e=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){_e=e;return}_e=e=n}while(e!==null);Ie=6,_e=null}function Lm(e,t,n,l,o,u,g,y,C){e.cancelPendingCommit=null;do Wi();while(lt!==0);if((He&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(u=t.lanes|t.childLanes,u|=ro,Et(e,n,u,g,y,C),e===Ge&&(_e=Ge=null,Te=0),Hl=t,ma=e,$n=n,pu=u,vu=o,_m=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,lv(Da,function(){return Ym(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null,o=$.p,$.p=2,g=He,He|=4;try{Q0(e,t,n)}finally{He=g,$.p=o,M.T=l}}lt=1,Vm(),$m(),Gm()}}function Vm(){if(lt===1){lt=0;var e=ma,t=Hl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=M.T,M.T=null;var l=$.p;$.p=2;var o=He;He|=4;try{bm(t,e);var u=Au,g=jd(e.containerInfo),y=u.focusedElem,C=u.selectionRange;if(g!==y&&y&&y.ownerDocument&&Cd(y.ownerDocument.documentElement,y)){if(C!==null&&no(y)){var k=C.start,L=C.end;if(L===void 0&&(L=k),"selectionStart"in y)y.selectionStart=k,y.selectionEnd=Math.min(L,y.value.length);else{var G=y.ownerDocument||document,H=G&&G.defaultView||window;if(H.getSelection){var B=H.getSelection(),ie=y.textContent.length,xe=Math.min(C.start,ie),$e=C.end===void 0?xe:Math.min(C.end,ie);!B.extend&&xe>$e&&(g=$e,$e=xe,xe=g);var T=Nd(y,xe),E=Nd(y,$e);if(T&&E&&(B.rangeCount!==1||B.anchorNode!==T.node||B.anchorOffset!==T.offset||B.focusNode!==E.node||B.focusOffset!==E.offset)){var O=G.createRange();O.setStart(T.node,T.offset),B.removeAllRanges(),xe>$e?(B.addRange(O),B.extend(E.node,E.offset)):(O.setEnd(E.node,E.offset),B.addRange(O))}}}}for(G=[],B=y;B=B.parentNode;)B.nodeType===1&&G.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<G.length;y++){var V=G[y];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}cr=!!Tu,Au=Tu=null}finally{He=o,$.p=l,M.T=n}}e.current=t,lt=2}}function $m(){if(lt===2){lt=0;var e=ma,t=Hl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=M.T,M.T=null;var l=$.p;$.p=2;var o=He;He|=4;try{hm(e,t.alternate,t)}finally{He=o,$.p=l,M.T=n}}lt=3}}function Gm(){if(lt===4||lt===3){lt=0,Kn();var e=ma,t=Hl,n=$n,l=_m;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,Hl=ma=null,qm(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(fa=null),on(n),t=t.stateNode,jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(Oa,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=M.T,o=$.p,$.p=2,M.T=null;try{for(var u=e.onRecoverableError,g=0;g<l.length;g++){var y=l[g];u(y.value,{componentStack:y.stack})}}finally{M.T=t,$.p=o}}($n&3)!==0&&Wi(),Sn(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===xu?Os++:(Os=0,xu=e):Os=0,ks(0)}}function qm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,hs(t)))}function Wi(){return Vm(),$m(),Gm(),Ym()}function Ym(){if(lt!==5)return!1;var e=ma,t=pu;pu=0;var n=on($n),l=M.T,o=$.p;try{$.p=32>n?32:n,M.T=null,n=vu,vu=null;var u=ma,g=$n;if(lt=0,Hl=ma=null,$n=0,(He&6)!==0)throw Error(i(331));var y=He;if(He|=4,jm(u.current),wm(u,u.current,g,n),He=y,ks(0,!1),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(Oa,u)}catch{}return!0}finally{$.p=o,M.T=l,qm(e,t)}}function Fm(e,t,n){t=Wt(n,t),t=Jo(e.stateNode,t,2),e=ia(e,t,2),e!==null&&(Ke(e,2),Sn(e))}function Be(e,t,n){if(e.tag===3)Fm(e,e,n);else for(;t!==null;){if(t.tag===3){Fm(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(fa===null||!fa.has(l))){e=Wt(n,e),n=Xf(2),l=ia(t,n,2),l!==null&&(Qf(n,l,t,e),Ke(l,2),Sn(l));break}}t=t.return}}function Su(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new J0;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(n)||(mu=!0,o.add(n),e=tv.bind(null,e,t,n),t.then(e,e))}function tv(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ge===e&&(Te&n)===n&&(Ie===4||Ie===3&&(Te&62914560)===Te&&300>Ct()-Xi?(He&2)===0&&Ul(e,0):gu|=n,kl===Te&&(kl=0)),Sn(e)}function Xm(e,t){t===0&&(t=yt()),e=$a(e,t),e!==null&&(Ke(e,t),Sn(e))}function nv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xm(e,n)}function av(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(i(314))}l!==null&&l.delete(t),Xm(e,n)}function lv(e,t){return Wl(e,t)}var Pi=null,Ll=null,wu=!1,er=!1,Nu=!1,ha=0;function Sn(e){e!==Ll&&e.next===null&&(Ll===null?Pi=Ll=e:Ll=Ll.next=e),er=!0,wu||(wu=!0,iv())}function ks(e,t){if(!Nu&&er){Nu=!0;do for(var n=!1,l=Pi;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var u=0;else{var g=l.suspendedLanes,y=l.pingedLanes;u=(1<<31-xt(42|e)+1)-1,u&=o&~(g&~y),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Jm(l,u))}else u=Te,u=we(l,l===Ge?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||Fe(l,u)||(n=!0,Jm(l,u));l=l.next}while(n);Nu=!1}}function sv(){Qm()}function Qm(){er=wu=!1;var e=0;ha!==0&&pv()&&(e=ha);for(var t=Ct(),n=null,l=Pi;l!==null;){var o=l.next,u=Zm(l,t);u===0?(l.next=null,n===null?Pi=o:n.next=o,o===null&&(Ll=n)):(n=l,(e!==0||(u&3)!==0)&&(er=!0)),l=o}lt!==0&&lt!==5||ks(e),ha!==0&&(ha=0)}function Zm(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var g=31-xt(u),y=1<<g,C=o[g];C===-1?((y&n)===0||(y&l)!==0)&&(o[g]=it(y,t)):C<=t&&(e.expiredLanes|=y),u&=~y}if(t=Ge,n=Te,n=we(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Pl(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Fe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Pl(l),on(n)){case 2:case 8:n=ai;break;case 32:n=Da;break;case 268435456:n=Cn;break;default:n=Da}return l=Km.bind(null,e),n=Wl(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Pl(l),e.callbackPriority=2,e.callbackNode=null,2}function Km(e,t){if(lt!==0&&lt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Wi()&&e.callbackNode!==n)return null;var l=Te;return l=we(e,e===Ge?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(zm(e,l,t),Zm(e,Ct()),e.callbackNode!=null&&e.callbackNode===n?Km.bind(null,e):null)}function Jm(e,t){if(Wi())return null;zm(e,t,!0)}function iv(){xv(function(){(He&6)!==0?Wl(Aa,sv):Qm()})}function Cu(){if(ha===0){var e=Cl;e===0&&(e=al,al<<=1,(al&261888)===0&&(al=256)),ha=e}return ha}function Im(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:oi(""+e)}function Wm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function rv(e,t,n,l,o){if(t==="submit"&&n&&n.stateNode===o){var u=Im((o[zt]||null).action),g=l.submitter;g&&(t=(t=g[zt]||null)?Im(t.formAction):g.getAttribute("formAction"),t!==null&&(u=t,g=null));var y=new fi("action","action",null,l,o);e.push({event:y,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ha!==0){var C=g?Wm(o,g):new FormData(o);Yo(n,{pending:!0,data:C,method:o.method,action:u},null,C)}}else typeof u=="function"&&(y.preventDefault(),C=g?Wm(o,g):new FormData(o),Yo(n,{pending:!0,data:C,method:o.method,action:u},u,C))},currentTarget:o}]})}}for(var ju=0;ju<io.length;ju++){var Ru=io[ju],ov=Ru.toLowerCase(),uv=Ru[0].toUpperCase()+Ru.slice(1);un(ov,"on"+uv)}un(_d,"onAnimationEnd"),un(Md,"onAnimationIteration"),un(zd,"onAnimationStart"),un("dblclick","onDoubleClick"),un("focusin","onFocus"),un("focusout","onBlur"),un(j0,"onTransitionRun"),un(R0,"onTransitionStart"),un(E0,"onTransitionCancel"),un(Td,"onTransitionEnd"),cl("onMouseEnter",["mouseout","mouseover"]),cl("onMouseLeave",["mouseout","mouseover"]),cl("onPointerEnter",["pointerout","pointerover"]),cl("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 Hs="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(" "),cv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hs));function Pm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],o=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var g=l.length-1;0<=g;g--){var y=l[g],C=y.instance,k=y.currentTarget;if(y=y.listener,C!==u&&o.isPropagationStopped())break e;u=y,o.currentTarget=k;try{u(o)}catch(L){hi(L)}o.currentTarget=null,u=C}else for(g=0;g<l.length;g++){if(y=l[g],C=y.instance,k=y.currentTarget,y=y.listener,C!==u&&o.isPropagationStopped())break e;u=y,o.currentTarget=k;try{u(o)}catch(L){hi(L)}o.currentTarget=null,u=C}}}}function Me(e,t){var n=t[Br];n===void 0&&(n=t[Br]=new Set);var l=e+"__bubble";n.has(l)||(eg(t,e,2,!1),n.add(l))}function Eu(e,t,n){var l=0;t&&(l|=4),eg(n,e,l,t)}var tr="_reactListening"+Math.random().toString(36).slice(2);function _u(e){if(!e[tr]){e[tr]=!0,Xc.forEach(function(n){n!=="selectionchange"&&(cv.has(n)||Eu(n,!1,e),Eu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[tr]||(t[tr]=!0,Eu("selectionchange",!1,t))}}function eg(e,t,n,l){switch(Mg(t)){case 2:var o=Bv;break;case 8:o=Lv;break;default:o=qu}n=o.bind(null,t,n,e),o=void 0,!Qr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Mu(e,t,n,l,o){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var y=l.stateNode.containerInfo;if(y===o)break;if(g===4)for(g=l.return;g!==null;){var C=g.tag;if((C===3||C===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;y!==null;){if(g=rl(y),g===null)return;if(C=g.tag,C===5||C===6||C===26||C===27){l=u=g;continue e}y=y.parentNode}}l=l.return}ld(function(){var k=u,L=Fr(n),G=[];e:{var H=Ad.get(e);if(H!==void 0){var B=fi,ie=e;switch(e){case"keypress":if(ci(n)===0)break e;case"keydown":case"keyup":B=a0;break;case"focusin":ie="focus",B=Ir;break;case"focusout":ie="blur",B=Ir;break;case"beforeblur":case"afterblur":B=Ir;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=rd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=Fp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=i0;break;case _d:case Md:case zd:B=Zp;break;case Td:B=o0;break;case"scroll":case"scrollend":B=qp;break;case"wheel":B=c0;break;case"copy":case"cut":case"paste":B=Jp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=ud;break;case"toggle":case"beforetoggle":B=f0}var xe=(t&4)!==0,$e=!xe&&(e==="scroll"||e==="scrollend"),T=xe?H!==null?H+"Capture":null:H;xe=[];for(var E=k,O;E!==null;){var V=E;if(O=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||O===null||T===null||(V=ls(E,T),V!=null&&xe.push(Us(E,V,O))),$e)break;E=E.return}0<xe.length&&(H=new B(H,ie,null,n,L),G.push({event:H,listeners:xe}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",H&&n!==Yr&&(ie=n.relatedTarget||n.fromElement)&&(rl(ie)||ie[il]))break e;if((B||H)&&(H=L.window===L?L:(H=L.ownerDocument)?H.defaultView||H.parentWindow:window,B?(ie=n.relatedTarget||n.toElement,B=k,ie=ie?rl(ie):null,ie!==null&&($e=f(ie),xe=ie.tag,ie!==$e||xe!==5&&xe!==27&&xe!==6)&&(ie=null)):(B=null,ie=k),B!==ie)){if(xe=rd,V="onMouseLeave",T="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(xe=ud,V="onPointerLeave",T="onPointerEnter",E="pointer"),$e=B==null?H:as(B),O=ie==null?H:as(ie),H=new xe(V,E+"leave",B,n,L),H.target=$e,H.relatedTarget=O,V=null,rl(L)===k&&(xe=new xe(T,E+"enter",ie,n,L),xe.target=O,xe.relatedTarget=$e,V=xe),$e=V,B&&ie)t:{for(xe=dv,T=B,E=ie,O=0,V=T;V;V=xe(V))O++;V=0;for(var ge=E;ge;ge=xe(ge))V++;for(;0<O-V;)T=xe(T),O--;for(;0<V-O;)E=xe(E),V--;for(;O--;){if(T===E||E!==null&&T===E.alternate){xe=T;break t}T=xe(T),E=xe(E)}xe=null}else xe=null;B!==null&&tg(G,H,B,xe,!1),ie!==null&&$e!==null&&tg(G,$e,ie,xe,!0)}}e:{if(H=k?as(k):window,B=H.nodeName&&H.nodeName.toLowerCase(),B==="select"||B==="input"&&H.type==="file")var Oe=vd;else if(hd(H))if(xd)Oe=w0;else{Oe=b0;var ce=y0}else B=H.nodeName,!B||B.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?k&&qr(k.elementType)&&(Oe=vd):Oe=S0;if(Oe&&(Oe=Oe(e,k))){pd(G,Oe,n,L);break e}ce&&ce(e,H,k),e==="focusout"&&k&&H.type==="number"&&k.memoizedProps.value!=null&&Gr(H,"number",H.value)}switch(ce=k?as(k):window,e){case"focusin":(hd(ce)||ce.contentEditable==="true")&&(pl=ce,ao=k,fs=null);break;case"focusout":fs=ao=pl=null;break;case"mousedown":lo=!0;break;case"contextmenu":case"mouseup":case"dragend":lo=!1,Rd(G,n,L);break;case"selectionchange":if(C0)break;case"keydown":case"keyup":Rd(G,n,L)}var je;if(Pr)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else hl?md(e,n)&&(Ae="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ae="onCompositionStart");Ae&&(cd&&n.locale!=="ko"&&(hl||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&hl&&(je=sd()):(Pn=L,Zr="value"in Pn?Pn.value:Pn.textContent,hl=!0)),ce=nr(k,Ae),0<ce.length&&(Ae=new od(Ae,e,null,n,L),G.push({event:Ae,listeners:ce}),je?Ae.data=je:(je=gd(n),je!==null&&(Ae.data=je)))),(je=g0?h0(e,n):p0(e,n))&&(Ae=nr(k,"onBeforeInput"),0<Ae.length&&(ce=new od("onBeforeInput","beforeinput",null,n,L),G.push({event:ce,listeners:Ae}),ce.data=je)),rv(G,e,k,n,L)}Pm(G,t)})}function Us(e,t,n){return{instance:e,listener:t,currentTarget:n}}function nr(e,t){for(var n=t+"Capture",l=[];e!==null;){var o=e,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=ls(e,n),o!=null&&l.unshift(Us(e,o,u)),o=ls(e,t),o!=null&&l.push(Us(e,o,u))),e.tag===3)return l;e=e.return}return[]}function dv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tg(e,t,n,l,o){for(var u=t._reactName,g=[];n!==null&&n!==l;){var y=n,C=y.alternate,k=y.stateNode;if(y=y.tag,C!==null&&C===l)break;y!==5&&y!==26&&y!==27||k===null||(C=k,o?(k=ls(n,u),k!=null&&g.unshift(Us(n,k,C))):o||(k=ls(n,u),k!=null&&g.push(Us(n,k,C)))),n=n.return}g.length!==0&&e.push({event:t,listeners:g})}var fv=/\r\n?/g,mv=/\u0000|\uFFFD/g;function ng(e){return(typeof e=="string"?e:""+e).replace(fv,`
49
- `).replace(mv,"")}function ag(e,t){return t=ng(t),ng(e)===t}function Ve(e,t,n,l,o,u){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||fl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&fl(e,""+l);break;case"className":ii(e,"class",l);break;case"tabIndex":ii(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ii(e,n,l);break;case"style":nd(e,l,u);break;case"data":if(t!=="object"){ii(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=oi(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"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 u=="function"&&(n==="formAction"?(t!=="input"&&Ve(e,t,"name",o.name,o,null),Ve(e,t,"formEncType",o.formEncType,o,null),Ve(e,t,"formMethod",o.formMethod,o,null),Ve(e,t,"formTarget",o.formTarget,o,null)):(Ve(e,t,"encType",o.encType,o,null),Ve(e,t,"method",o.method,o,null),Ve(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=oi(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=Rn);break;case"onScroll":l!=null&&Me("scroll",e);break;case"onScrollEnd":l!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(i(60));e.innerHTML=n}}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}n=oi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);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(n,""+l):e.removeAttribute(n);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(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":Me("beforetoggle",e),Me("toggle",e),si(e,"popover",l);break;case"xlinkActuate":jn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":jn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":jn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":jn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":jn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":jn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":jn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":jn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":jn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":si(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=$p.get(n)||n,si(e,n,l))}}function zu(e,t,n,l,o,u){switch(n){case"style":nd(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(i(60));e.innerHTML=n}}break;case"children":typeof l=="string"?fl(e,l):(typeof l=="number"||typeof l=="bigint")&&fl(e,""+l);break;case"onScroll":l!=null&&Me("scroll",e);break;case"onScrollEnd":l!=null&&Me("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Rn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qc.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),u=e[zt]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,o),typeof l=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,o);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):si(e,n,l)}}}function ht(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var l=!1,o=!1,u;for(u in n)if(n.hasOwnProperty(u)){var g=n[u];if(g!=null)switch(u){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ve(e,t,u,g,n,null)}}o&&Ve(e,t,"srcSet",n.srcSet,n,null),l&&Ve(e,t,"src",n.src,n,null);return;case"input":Me("invalid",e);var y=u=g=o=null,C=null,k=null;for(l in n)if(n.hasOwnProperty(l)){var L=n[l];if(L!=null)switch(l){case"name":o=L;break;case"type":g=L;break;case"checked":C=L;break;case"defaultChecked":k=L;break;case"value":u=L;break;case"defaultValue":y=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(i(137,t));break;default:Ve(e,t,l,L,n,null)}}Wc(e,u,y,C,k,g,o,!1);return;case"select":Me("invalid",e),l=g=u=null;for(o in n)if(n.hasOwnProperty(o)&&(y=n[o],y!=null))switch(o){case"value":u=y;break;case"defaultValue":g=y;break;case"multiple":l=y;default:Ve(e,t,o,y,n,null)}t=u,n=g,e.multiple=!!l,t!=null?dl(e,!!l,t,!1):n!=null&&dl(e,!!l,n,!0);return;case"textarea":Me("invalid",e),u=o=l=null;for(g in n)if(n.hasOwnProperty(g)&&(y=n[g],y!=null))switch(g){case"value":l=y;break;case"defaultValue":o=y;break;case"children":u=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(i(91));break;default:Ve(e,t,g,y,n,null)}ed(e,l,o,u);return;case"option":for(C in n)if(n.hasOwnProperty(C)&&(l=n[C],l!=null))switch(C){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ve(e,t,C,l,n,null)}return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(l=0;l<Hs.length;l++)Me(Hs[l],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("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(k in n)if(n.hasOwnProperty(k)&&(l=n[k],l!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ve(e,t,k,l,n,null)}return;default:if(qr(t)){for(L in n)n.hasOwnProperty(L)&&(l=n[L],l!==void 0&&zu(e,t,L,l,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(l=n[y],l!=null&&Ve(e,t,y,l,n,null))}function gv(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,g=null,y=null,C=null,k=null,L=null;for(B in n){var G=n[B];if(n.hasOwnProperty(B)&&G!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":C=G;default:l.hasOwnProperty(B)||Ve(e,t,B,null,l,G)}}for(var H in l){var B=l[H];if(G=n[H],l.hasOwnProperty(H)&&(B!=null||G!=null))switch(H){case"type":u=B;break;case"name":o=B;break;case"checked":k=B;break;case"defaultChecked":L=B;break;case"value":g=B;break;case"defaultValue":y=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(i(137,t));break;default:B!==G&&Ve(e,t,H,B,l,G)}}$r(e,g,y,C,k,L,u,o);return;case"select":B=g=y=H=null;for(u in n)if(C=n[u],n.hasOwnProperty(u)&&C!=null)switch(u){case"value":break;case"multiple":B=C;default:l.hasOwnProperty(u)||Ve(e,t,u,null,l,C)}for(o in l)if(u=l[o],C=n[o],l.hasOwnProperty(o)&&(u!=null||C!=null))switch(o){case"value":H=u;break;case"defaultValue":y=u;break;case"multiple":g=u;default:u!==C&&Ve(e,t,o,u,l,C)}t=y,n=g,l=B,H!=null?dl(e,!!n,H,!1):!!l!=!!n&&(t!=null?dl(e,!!n,t,!0):dl(e,!!n,n?[]:"",!1));return;case"textarea":B=H=null;for(y in n)if(o=n[y],n.hasOwnProperty(y)&&o!=null&&!l.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Ve(e,t,y,null,l,o)}for(g in l)if(o=l[g],u=n[g],l.hasOwnProperty(g)&&(o!=null||u!=null))switch(g){case"value":H=o;break;case"defaultValue":B=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(i(91));break;default:o!==u&&Ve(e,t,g,o,l,u)}Pc(e,H,B);return;case"option":for(var ie in n)if(H=n[ie],n.hasOwnProperty(ie)&&H!=null&&!l.hasOwnProperty(ie))switch(ie){case"selected":e.selected=!1;break;default:Ve(e,t,ie,null,l,H)}for(C in l)if(H=l[C],B=n[C],l.hasOwnProperty(C)&&H!==B&&(H!=null||B!=null))switch(C){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Ve(e,t,C,H,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 xe in n)H=n[xe],n.hasOwnProperty(xe)&&H!=null&&!l.hasOwnProperty(xe)&&Ve(e,t,xe,null,l,H);for(k in l)if(H=l[k],B=n[k],l.hasOwnProperty(k)&&H!==B&&(H!=null||B!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(i(137,t));break;default:Ve(e,t,k,H,l,B)}return;default:if(qr(t)){for(var $e in n)H=n[$e],n.hasOwnProperty($e)&&H!==void 0&&!l.hasOwnProperty($e)&&zu(e,t,$e,void 0,l,H);for(L in l)H=l[L],B=n[L],!l.hasOwnProperty(L)||H===B||H===void 0&&B===void 0||zu(e,t,L,H,l,B);return}}for(var T in n)H=n[T],n.hasOwnProperty(T)&&H!=null&&!l.hasOwnProperty(T)&&Ve(e,t,T,null,l,H);for(G in l)H=l[G],B=n[G],!l.hasOwnProperty(G)||H===B||H==null&&B==null||Ve(e,t,G,H,l,B)}function lg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var o=n[l],u=o.transferSize,g=o.initiatorType,y=o.duration;if(u&&y&&lg(g)){for(g=0,y=o.responseEnd,l+=1;l<n.length;l++){var C=n[l],k=C.startTime;if(k>y)break;var L=C.transferSize,G=C.initiatorType;L&&lg(G)&&(C=C.responseEnd,g+=L*(C<y?1:(y-k)/(C-k)))}if(--l,t+=8*(u+g)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Tu=null,Au=null;function ar(e){return e.nodeType===9?e:e.ownerDocument}function sg(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 ig(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 Du(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 Ou=null;function pv(){var e=window.event;return e&&e.type==="popstate"?e===Ou?!1:(Ou=e,!0):(Ou=null,!1)}var rg=typeof setTimeout=="function"?setTimeout:void 0,vv=typeof clearTimeout=="function"?clearTimeout:void 0,og=typeof Promise=="function"?Promise:void 0,xv=typeof queueMicrotask=="function"?queueMicrotask:typeof og<"u"?function(e){return og.resolve(null).then(e).catch(yv)}:rg;function yv(e){setTimeout(function(){throw e})}function pa(e){return e==="head"}function ug(e,t){var n=t,l=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(o),ql(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Bs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Bs(n);for(var u=n.firstChild;u;){var g=u.nextSibling,y=u.nodeName;u[ns]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=g}}else n==="body"&&Bs(e.ownerDocument.body);n=o}while(n);ql(t)}function cg(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function ku(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ku(n),Lr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function bv(e,t,n,l){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ns])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=an(e.nextSibling),e===null)break}return null}function Sv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=an(e.nextSibling),e===null))return null;return e}function dg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=an(e.nextSibling),e===null))return null;return e}function Hu(e){return e.data==="$?"||e.data==="$~"}function Uu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function wv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function an(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==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Bu=null;function fg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return an(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function mg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function gg(e,t,n){switch(t=ar(n),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Bs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Lr(e)}var ln=new Map,hg=new Set;function lr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Gn=$.d;$.d={f:Nv,r:Cv,D:jv,C:Rv,L:Ev,m:_v,X:zv,S:Mv,M:Tv};function Nv(){var e=Gn.f(),t=Ki();return e||t}function Cv(e){var t=ol(e);t!==null&&t.tag===5&&t.type==="form"?Af(t):Gn.r(e)}var Vl=typeof document>"u"?null:document;function pg(e,t,n){var l=Vl;if(l&&typeof t=="string"&&t){var o=Jt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),hg.has(o)||(hg.add(o),e={rel:e,crossOrigin:n,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),ht(t,"link",e),rt(t),l.head.appendChild(t)))}}function jv(e){Gn.D(e),pg("dns-prefetch",e,null)}function Rv(e,t){Gn.C(e,t),pg("preconnect",e,t)}function Ev(e,t,n){Gn.L(e,t,n);var l=Vl;if(l&&e&&t){var o='link[rel="preload"][as="'+Jt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Jt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Jt(n.imageSizes)+'"]')):o+='[href="'+Jt(e)+'"]';var u=o;switch(t){case"style":u=$l(e);break;case"script":u=Gl(e)}ln.has(u)||(e=p({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ln.set(u,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(Ls(u))||t==="script"&&l.querySelector(Vs(u))||(t=l.createElement("link"),ht(t,"link",e),rt(t),l.head.appendChild(t)))}}function _v(e,t){Gn.m(e,t);var n=Vl;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Jt(l)+'"][href="'+Jt(e)+'"]',u=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Gl(e)}if(!ln.has(u)&&(e=p({rel:"modulepreload",href:e},t),ln.set(u,e),n.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Vs(u)))return}l=n.createElement("link"),ht(l,"link",e),rt(l),n.head.appendChild(l)}}}function Mv(e,t,n){Gn.S(e,t,n);var l=Vl;if(l&&e){var o=ul(l).hoistableStyles,u=$l(e);t=t||"default";var g=o.get(u);if(!g){var y={loading:0,preload:null};if(g=l.querySelector(Ls(u)))y.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ln.get(u))&&Lu(e,n);var C=g=l.createElement("link");rt(C),ht(C,"link",e),C._p=new Promise(function(k,L){C.onload=k,C.onerror=L}),C.addEventListener("load",function(){y.loading|=1}),C.addEventListener("error",function(){y.loading|=2}),y.loading|=4,sr(g,t,l)}g={type:"stylesheet",instance:g,count:1,state:y},o.set(u,g)}}}function zv(e,t){Gn.X(e,t);var n=Vl;if(n&&e){var l=ul(n).hoistableScripts,o=Gl(e),u=l.get(o);u||(u=n.querySelector(Vs(o)),u||(e=p({src:e,async:!0},t),(t=ln.get(o))&&Vu(e,t),u=n.createElement("script"),rt(u),ht(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(o,u))}}function Tv(e,t){Gn.M(e,t);var n=Vl;if(n&&e){var l=ul(n).hoistableScripts,o=Gl(e),u=l.get(o);u||(u=n.querySelector(Vs(o)),u||(e=p({src:e,async:!0,type:"module"},t),(t=ln.get(o))&&Vu(e,t),u=n.createElement("script"),rt(u),ht(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(o,u))}}function vg(e,t,n,l){var o=(o=ne.current)?lr(o):null;if(!o)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=$l(n.href),n=ul(o).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=$l(n.href);var u=ul(o).hoistableStyles,g=u.get(e);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,g),(u=o.querySelector(Ls(e)))&&!u._p&&(g.instance=u,g.state.loading=5),ln.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ln.set(e,n),u||Av(o,e,n,g.state))),t&&l===null)throw Error(i(528,""));return g}if(t&&l!==null)throw Error(i(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Gl(n),n=ul(o).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function $l(e){return'href="'+Jt(e)+'"'}function Ls(e){return'link[rel="stylesheet"]['+e+"]"}function xg(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Av(e,t,n,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}),ht(t,"link",n),rt(t),e.head.appendChild(t))}function Gl(e){return'[src="'+Jt(e)+'"]'}function Vs(e){return"script[async]"+e}function yg(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Jt(n.href)+'"]');if(l)return t.instance=l,rt(l),l;var o=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),rt(l),ht(l,"style",o),sr(l,n.precedence,e),t.instance=l;case"stylesheet":o=$l(n.href);var u=e.querySelector(Ls(o));if(u)return t.state.loading|=4,t.instance=u,rt(u),u;l=xg(n),(o=ln.get(o))&&Lu(l,o),u=(e.ownerDocument||e).createElement("link"),rt(u);var g=u;return g._p=new Promise(function(y,C){g.onload=y,g.onerror=C}),ht(u,"link",l),t.state.loading|=4,sr(u,n.precedence,e),t.instance=u;case"script":return u=Gl(n.src),(o=e.querySelector(Vs(u)))?(t.instance=o,rt(o),o):(l=n,(o=ln.get(u))&&(l=p({},n),Vu(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),rt(o),ht(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,sr(l,n.precedence,e));return t.instance}function sr(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,u=o,g=0;g<l.length;g++){var y=l[g];if(y.dataset.precedence===t)u=y;else if(u!==o)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Lu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Vu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ir=null;function bg(e,t,n){if(ir===null){var l=new Map,o=ir=new Map;o.set(n,l)}else o=ir,l=o.get(n),l||(l=new Map,o.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var u=n[o];if(!(u[ns]||u[dt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var g=u.getAttribute(t)||"";g=e+g;var y=l.get(g);y?y.push(u):l.set(g,[u])}}return l}function Sg(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Dv(e,t,n){if(n===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 wg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ov(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=$l(l.href),u=t.querySelector(Ls(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=rr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,rt(u);return}u=t.ownerDocument||t,l=xg(l),(o=ln.get(o))&&Lu(l,o),u=u.createElement("link"),rt(u);var g=u;g._p=new Promise(function(y,C){g.onload=y,g.onerror=C}),ht(u,"link",l),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=rr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var $u=0;function kv(e,t){return e.stylesheets&&e.count===0&&ur(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&ur(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&$u===0&&($u=62500*hv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ur(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>$u?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function rr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ur(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var or=null;function ur(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,or=new Map,t.forEach(Hv,e),or=null,rr.call(e))}function Hv(e,t){if(!(t.state.loading&4)){var n=or.get(e);if(n)var l=n.get(null);else{n=new Map,or.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var g=o[u];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(n.set(g.dataset.precedence,g),l=g)}l&&n.set(null,l)}o=t.instance,g=o.getAttribute("data-precedence"),u=n.get(g)||l,u===l&&n.set(null,o),n.set(g,o),this.count++,l=rr.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),u?u.parentNode.insertBefore(o,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var $s={$$typeof:F,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function Uv(e,t,n,l,o,u,g,y,C){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=In(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=In(0),this.hiddenUpdates=In(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function Ng(e,t,n,l,o,u,g,y,C,k,L,G){return e=new Uv(e,t,n,g,C,k,L,G,y),t=1,u===!0&&(t|=24),u=Vt(3,null,null,t),e.current=u,u.stateNode=e,t=bo(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:t},Co(u),e}function Cg(e){return e?(e=yl,e):yl}function jg(e,t,n,l,o,u){o=Cg(o),l.context===null?l.context=o:l.pendingContext=o,l=sa(t),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=ia(e,l,t),n!==null&&(Ht(n,e,t),ys(n,e,t))}function Rg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Gu(e,t){Rg(e,t),(e=e.alternate)&&Rg(e,t)}function Eg(e){if(e.tag===13||e.tag===31){var t=$a(e,67108864);t!==null&&Ht(t,e,67108864),Gu(e,67108864)}}function _g(e){if(e.tag===13||e.tag===31){var t=Ft();t=sl(t);var n=$a(e,t);n!==null&&Ht(n,e,t),Gu(e,t)}}var cr=!0;function Bv(e,t,n,l){var o=M.T;M.T=null;var u=$.p;try{$.p=2,qu(e,t,n,l)}finally{$.p=u,M.T=o}}function Lv(e,t,n,l){var o=M.T;M.T=null;var u=$.p;try{$.p=8,qu(e,t,n,l)}finally{$.p=u,M.T=o}}function qu(e,t,n,l){if(cr){var o=Yu(l);if(o===null)Mu(e,t,l,dr,n),zg(e,l);else if($v(o,e,t,n,l))l.stopPropagation();else if(zg(e,l),t&4&&-1<Vv.indexOf(e)){for(;o!==null;){var u=ol(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var g=vn(u.pendingLanes);if(g!==0){var y=u;for(y.pendingLanes|=2,y.entangledLanes|=2;g;){var C=1<<31-xt(g);y.entanglements[1]|=C,g&=~C}Sn(u),(He&6)===0&&(Qi=Ct()+500,ks(0))}}break;case 31:case 13:y=$a(u,2),y!==null&&Ht(y,u,2),Ki(),Gu(u,2)}if(u=Yu(l),u===null&&Mu(e,t,l,dr,n),u===o)break;o=u}o!==null&&l.stopPropagation()}else Mu(e,t,l,null,n)}}function Yu(e){return e=Fr(e),Fu(e)}var dr=null;function Fu(e){if(dr=null,e=rl(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=m(t),e!==null)return e;e=null}else if(n===31){if(e=x(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return dr=e,null}function Mg(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(kr()){case Aa:return 2;case ai:return 8;case Da:case es:return 32;case Cn:return 268435456;default:return 32}default:return 32}}var Xu=!1,va=null,xa=null,ya=null,Gs=new Map,qs=new Map,ba=[],Vv="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 zg(e,t){switch(e){case"focusin":case"focusout":va=null;break;case"dragenter":case"dragleave":xa=null;break;case"mouseover":case"mouseout":ya=null;break;case"pointerover":case"pointerout":Gs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qs.delete(t.pointerId)}}function Ys(e,t,n,l,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[o]},t!==null&&(t=ol(t),t!==null&&Eg(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function $v(e,t,n,l,o){switch(t){case"focusin":return va=Ys(va,e,t,n,l,o),!0;case"dragenter":return xa=Ys(xa,e,t,n,l,o),!0;case"mouseover":return ya=Ys(ya,e,t,n,l,o),!0;case"pointerover":var u=o.pointerId;return Gs.set(u,Ys(Gs.get(u)||null,e,t,n,l,o)),!0;case"gotpointercapture":return u=o.pointerId,qs.set(u,Ys(qs.get(u)||null,e,t,n,l,o)),!0}return!1}function Tg(e){var t=rl(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=m(n),t!==null){e.blockedOn=t,Yc(e.priority,function(){_g(n)});return}}else if(t===31){if(t=x(n),t!==null){e.blockedOn=t,Yc(e.priority,function(){_g(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yu(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Yr=l,n.target.dispatchEvent(l),Yr=null}else return t=ol(n),t!==null&&Eg(t),e.blockedOn=n,!1;t.shift()}return!0}function Ag(e,t,n){fr(e)&&n.delete(t)}function Gv(){Xu=!1,va!==null&&fr(va)&&(va=null),xa!==null&&fr(xa)&&(xa=null),ya!==null&&fr(ya)&&(ya=null),Gs.forEach(Ag),qs.forEach(Ag)}function mr(e,t){e.blockedOn===t&&(e.blockedOn=null,Xu||(Xu=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Gv)))}var gr=null;function Dg(e){gr!==e&&(gr=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){gr===e&&(gr=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(Fu(l||n)===null)continue;break}var u=ol(n);u!==null&&(e.splice(t,3),t-=3,Yo(u,{pending:!0,data:o,method:n.method,action:l},l,o))}}))}function ql(e){function t(C){return mr(C,e)}va!==null&&mr(va,e),xa!==null&&mr(xa,e),ya!==null&&mr(ya,e),Gs.forEach(t),qs.forEach(t);for(var n=0;n<ba.length;n++){var l=ba[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ba.length&&(n=ba[0],n.blockedOn===null);)Tg(n),n.blockedOn===null&&ba.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var o=n[l],u=n[l+1],g=o[zt]||null;if(typeof u=="function")g||Dg(n);else if(g){var y=null;if(u&&u.hasAttribute("formAction")){if(o=u,g=u[zt]||null)y=g.formAction;else if(Fu(o)!==null)continue}else y=g.action;typeof y=="function"?n[l+1]=y:(n.splice(l,3),l-=3),Dg(n)}}}function Og(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(g){return o=g})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Qu(e){this._internalRoot=e}hr.prototype.render=Qu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current,l=Ft();jg(n,l,e,t,null,null)},hr.prototype.unmount=Qu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jg(e.current,2,null,e,null,null),Ki(),t[il]=null}};function hr(e){this._internalRoot=e}hr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ur();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ba.length&&t!==0&&t<ba[n].priority;n++);ba.splice(n,0,e),n===0&&Tg(e)}};var kg=r.version;if(kg!=="19.2.3")throw Error(i(527,kg,"19.2.3"));$.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=h(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var qv={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var pr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pr.isDisabled&&pr.supportsFiber)try{Oa=pr.inject(qv),jt=pr}catch{}}return Xs.createRoot=function(e,t){if(!c(e))throw Error(i(299));var n=!1,l="",o=Gf,u=qf,g=Yf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=Ng(e,1,!1,null,null,n,l,null,o,u,g,Og),e[il]=t.current,_u(e),new Qu(t)},Xs.hydrateRoot=function(e,t,n){if(!c(e))throw Error(i(299));var l=!1,o="",u=Gf,g=qf,y=Yf,C=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(C=n.formState)),t=Ng(e,1,!0,t,n??null,l,o,C,u,g,y,Og),t.context=Cg(null),n=t.current,l=Ft(),l=sl(l),o=sa(l),o.callback=null,ia(n,o,l),n=l,t.current.lanes=n,Ke(t,n),Sn(t),e[il]=t.current,_u(e),new hr(t)},Xs.version="19.2.3",Xs}var Fg;function Wv(){if(Fg)return Ju.exports;Fg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(r){console.error(r)}}return a(),Ju.exports=Iv(),Ju.exports}var Pv=Wv();/**
48
+ `+l.stack}}var Bt=Object.prototype.hasOwnProperty,Wl=a.unstable_scheduleCallback,Pl=a.unstable_cancelCallback,Nt=a.unstable_shouldYield,Kn=a.unstable_requestPaint,Ct=a.unstable_now,kr=a.unstable_getCurrentPriorityLevel,Aa=a.unstable_ImmediatePriority,ai=a.unstable_UserBlockingPriority,Da=a.unstable_NormalPriority,es=a.unstable_LowPriority,Cn=a.unstable_IdlePriority,li=a.log,Jn=a.unstable_setDisableYieldValue,Oa=null,jt=null;function rn(e){if(typeof li=="function"&&Jn(e),jt&&typeof jt.setStrictMode=="function")try{jt.setStrictMode(Oa,e)}catch{}}var xt=Math.clz32?Math.clz32:pn,Hr=Math.log,ts=Math.LN2;function pn(e){return e>>>=0,e===0?32:31-(Hr(e)/ts|0)|0}var al=256,ll=262144,ka=4194304;function vn(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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;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 we(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var o=0,u=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var y=l&134217727;return y!==0?(l=y&~u,l!==0?o=vn(l):(g&=y,g!==0?o=vn(g):n||(n=y&~e,n!==0&&(o=vn(n))))):(y=l&~u,y!==0?o=vn(y):g!==0?o=vn(g):n||(n=l&~e,n!==0&&(o=vn(n)))),o===0?0:t!==0&&t!==o&&(t&u)===0&&(u=o&-o,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:o}function Fe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function it(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 yt(){var e=ka;return ka<<=1,(ka&62914560)===0&&(ka=4194304),e}function In(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ke(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Et(e,t,n,l,o,u){var g=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var y=e.entanglements,C=e.expirationTimes,k=e.hiddenUpdates;for(n=g&~n;0<n;){var L=31-xt(n),$=1<<L;y[L]=0,C[L]=-1;var H=k[L];if(H!==null)for(k[L]=null,L=0;L<H.length;L++){var B=H[L];B!==null&&(B.lane&=-536870913)}n&=~$}l!==0&&Ha(e,l,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(g&~t))}function Ha(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-xt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function _t(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-xt(n),o=1<<l;o&t|e[l]&t&&(e[l]|=t),n&=~o}}function Mt(e,t){var n=t&-t;return n=(n&42)!==0?1:sl(n),(n&(e.suspendedLanes|t))!==0?0:n}function sl(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 on(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ur(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:Mg(e.type))}function Yc(e,t){var n=G.p;try{return G.p=e,t()}finally{G.p=n}}var Wn=Math.random().toString(36).slice(2),dt="__reactFiber$"+Wn,zt="__reactProps$"+Wn,il="__reactContainer$"+Wn,Br="__reactEvents$"+Wn,Op="__reactListeners$"+Wn,kp="__reactHandles$"+Wn,Fc="__reactResources$"+Wn,ns="__reactMarker$"+Wn;function Lr(e){delete e[dt],delete e[zt],delete e[Br],delete e[Op],delete e[kp]}function rl(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[il]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mg(e);e!==null;){if(n=e[dt])return n;e=mg(e)}return t}e=n,n=e.parentNode}return null}function ol(e){if(e=e[dt]||e[il]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function as(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function ul(e){var t=e[Fc];return t||(t=e[Fc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function rt(e){e[ns]=!0}var Xc=new Set,Qc={};function Ua(e,t){cl(e,t),cl(e+"Capture",t)}function cl(e,t){for(Qc[e]=t,e=0;e<t.length;e++)Xc.add(t[e])}var Hp=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]*$"),Zc={},Kc={};function Up(e){return Bt.call(Kc,e)?!0:Bt.call(Zc,e)?!1:Hp.test(e)?Kc[e]=!0:(Zc[e]=!0,!1)}function si(e,t,n){if(Up(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){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,""+n)}}function ii(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function jn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bp(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(g){n=""+g,u.call(this,g)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(g){n=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vr(e){if(!e._valueTracker){var t=Jc(e)?"checked":"value";e._valueTracker=Bp(e,t,""+e[t])}}function Ic(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=Jc(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function ri(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Lp=/[\n"\\]/g;function Jt(e){return e.replace(Lp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Gr(e,t,n,l,o,u,g,y){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Kt(t)):e.value!==""+Kt(t)&&(e.value=""+Kt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?$r(e,g,Kt(t)):n!=null?$r(e,g,Kt(n)):l!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Kt(y):e.removeAttribute("name")}function Wc(e,t,n,l,o,u,g,y){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Vr(e);return}n=n!=null?""+Kt(n):"",t=t!=null?""+Kt(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=y?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),Vr(e)}function $r(e,t,n){t==="number"&&ri(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function dl(e,t,n,l){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Kt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Pc(e,t,n){if(t!=null&&(t=""+Kt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Kt(n):""}function ed(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(i(92));if(re(l)){if(1<l.length)throw Error(i(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Kt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),Vr(e)}function fl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vp=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 td(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||Vp.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function nd(e,t,n){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&n[o]!==l&&td(e,o,l)}else for(var u in t)t.hasOwnProperty(u)&&td(e,u,t[u])}function qr(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 Gp=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"]]),$p=/^[\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 oi(e){return $p.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Rn(){}var Yr=null;function Fr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ml=null,gl=null;function ad(e){var t=ol(e);if(t&&(e=t.stateNode)){var n=e[zt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Gr(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Jt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var o=l[zt]||null;if(!o)throw Error(i(90));Gr(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Ic(l)}break e;case"textarea":Pc(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&dl(e,!!n.multiple,t,!1)}}}var Xr=!1;function ld(e,t,n){if(Xr)return e(t,n);Xr=!0;try{var l=e(t);return l}finally{if(Xr=!1,(ml!==null||gl!==null)&&(Ki(),ml&&(t=ml,e=gl,gl=ml=null,ad(t),e)))for(t=0;t<e.length;t++)ad(e[t])}}function ls(e,t){var n=e.stateNode;if(n===null)return null;var l=n[zt]||null;if(l===null)return null;n=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(n&&typeof n!="function")throw Error(i(231,t,typeof n));return n}var En=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qr=!1;if(En)try{var ss={};Object.defineProperty(ss,"passive",{get:function(){Qr=!0}}),window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{Qr=!1}var Pn=null,Zr=null,ui=null;function sd(){if(ui)return ui;var e,t=Zr,n=t.length,l,o="value"in Pn?Pn.value:Pn.textContent,u=o.length;for(e=0;e<n&&t[e]===o[e];e++);var g=n-e;for(l=1;l<=g&&t[n-l]===o[u-l];l++);return ui=o.slice(e,1<l?1-l:void 0)}function ci(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 di(){return!0}function id(){return!1}function Tt(e){function t(n,l,o,u,g){this._reactName=n,this._targetInst=o,this.type=l,this.nativeEvent=u,this.target=g,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(u):u[y]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?di:id,this.isPropagationStopped=id,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=di)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=di)},persist:function(){},isPersistent:di}),t}var Ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fi=Tt(Ba),is=p({},Ba,{view:0,detail:0}),qp=Tt(is),Kr,Jr,rs,mi=p({},is,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wr,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!==rs&&(rs&&e.type==="mousemove"?(Kr=e.screenX-rs.screenX,Jr=e.screenY-rs.screenY):Jr=Kr=0,rs=e),Kr)},movementY:function(e){return"movementY"in e?e.movementY:Jr}}),rd=Tt(mi),Yp=p({},mi,{dataTransfer:0}),Fp=Tt(Yp),Xp=p({},is,{relatedTarget:0}),Ir=Tt(Xp),Qp=p({},Ba,{animationName:0,elapsedTime:0,pseudoElement:0}),Zp=Tt(Qp),Kp=p({},Ba,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jp=Tt(Kp),Ip=p({},Ba,{data:0}),od=Tt(Ip),Wp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pp={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"},e0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function t0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=e0[e])?!!t[e]:!1}function Wr(){return t0}var n0=p({},is,{key:function(e){if(e.key){var t=Wp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ci(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Pp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wr,charCode:function(e){return e.type==="keypress"?ci(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ci(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),a0=Tt(n0),l0=p({},mi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ud=Tt(l0),s0=p({},is,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wr}),i0=Tt(s0),r0=p({},Ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),o0=Tt(r0),u0=p({},mi,{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}),c0=Tt(u0),d0=p({},Ba,{newState:0,oldState:0}),f0=Tt(d0),m0=[9,13,27,32],Pr=En&&"CompositionEvent"in window,os=null;En&&"documentMode"in document&&(os=document.documentMode);var g0=En&&"TextEvent"in window&&!os,cd=En&&(!Pr||os&&8<os&&11>=os),dd=" ",fd=!1;function md(e,t){switch(e){case"keyup":return m0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hl=!1;function h0(e,t){switch(e){case"compositionend":return gd(t);case"keypress":return t.which!==32?null:(fd=!0,dd);case"textInput":return e=t.data,e===dd&&fd?null:e;default:return null}}function p0(e,t){if(hl)return e==="compositionend"||!Pr&&md(e,t)?(e=sd(),ui=Zr=Pn=null,hl=!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 cd&&t.locale!=="ko"?null:t.data;default:return null}}var v0={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 hd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!v0[e.type]:t==="textarea"}function pd(e,t,n,l){ml?gl?gl.push(l):gl=[l]:ml=l,t=nr(t,"onChange"),0<t.length&&(n=new fi("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var us=null,cs=null;function x0(e){Pm(e,0)}function gi(e){var t=as(e);if(Ic(t))return e}function vd(e,t){if(e==="change")return t}var xd=!1;if(En){var eo;if(En){var to="oninput"in document;if(!to){var yd=document.createElement("div");yd.setAttribute("oninput","return;"),to=typeof yd.oninput=="function"}eo=to}else eo=!1;xd=eo&&(!document.documentMode||9<document.documentMode)}function bd(){us&&(us.detachEvent("onpropertychange",Sd),cs=us=null)}function Sd(e){if(e.propertyName==="value"&&gi(cs)){var t=[];pd(t,cs,e,Fr(e)),ld(x0,t)}}function y0(e,t,n){e==="focusin"?(bd(),us=t,cs=n,us.attachEvent("onpropertychange",Sd)):e==="focusout"&&bd()}function b0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gi(cs)}function S0(e,t){if(e==="click")return gi(t)}function w0(e,t){if(e==="input"||e==="change")return gi(t)}function N0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lt=typeof Object.is=="function"?Object.is:N0;function ds(e,t){if(Lt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var o=n[l];if(!Bt.call(t,o)||!Lt(e[o],t[o]))return!1}return!0}function wd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nd(e,t){var n=wd(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=wd(n)}}function Cd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ri(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ri(e.document)}return t}function no(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 C0=En&&"documentMode"in document&&11>=document.documentMode,pl=null,ao=null,fs=null,lo=!1;function Rd(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;lo||pl==null||pl!==ri(l)||(l=pl,"selectionStart"in l&&no(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}),fs&&ds(fs,l)||(fs=l,l=nr(ao,"onSelect"),0<l.length&&(t=new fi("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=pl)))}function La(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var vl={animationend:La("Animation","AnimationEnd"),animationiteration:La("Animation","AnimationIteration"),animationstart:La("Animation","AnimationStart"),transitionrun:La("Transition","TransitionRun"),transitionstart:La("Transition","TransitionStart"),transitioncancel:La("Transition","TransitionCancel"),transitionend:La("Transition","TransitionEnd")},so={},Ed={};En&&(Ed=document.createElement("div").style,"AnimationEvent"in window||(delete vl.animationend.animation,delete vl.animationiteration.animation,delete vl.animationstart.animation),"TransitionEvent"in window||delete vl.transitionend.transition);function Va(e){if(so[e])return so[e];if(!vl[e])return e;var t=vl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ed)return so[e]=t[n];return e}var _d=Va("animationend"),Md=Va("animationiteration"),zd=Va("animationstart"),j0=Va("transitionrun"),R0=Va("transitionstart"),E0=Va("transitioncancel"),Td=Va("transitionend"),Ad=new Map,io="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(" ");io.push("scrollEnd");function un(e,t){Ad.set(e,t),Ua(t,[e])}var hi=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)},It=[],xl=0,ro=0;function pi(){for(var e=xl,t=ro=xl=0;t<e;){var n=It[t];It[t++]=null;var l=It[t];It[t++]=null;var o=It[t];It[t++]=null;var u=It[t];if(It[t++]=null,l!==null&&o!==null){var g=l.pending;g===null?o.next=o:(o.next=g.next,g.next=o),l.pending=o}u!==0&&Dd(n,o,u)}}function vi(e,t,n,l){It[xl++]=e,It[xl++]=t,It[xl++]=n,It[xl++]=l,ro|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function oo(e,t,n,l){return vi(e,t,n,l),xi(e)}function Ga(e,t){return vi(e,null,null,t),xi(e)}function Dd(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var o=!1,u=e.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(o=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,o&&t!==null&&(o=31-xt(n),e=u.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=n|536870912),u):null}function xi(e){if(50<Os)throw Os=0,xu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var yl={};function _0(e,t,n,l){this.tag=e,this.key=n,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 Vt(e,t,n,l){return new _0(e,t,n,l)}function uo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _n(e,t){var n=e.alternate;return n===null?(n=Vt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Od(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function yi(e,t,n,l,o,u){var g=0;if(l=e,typeof e=="function")uo(e)&&(g=1);else if(typeof e=="string")g=Dv(e,n,X.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case K:return e=Vt(31,n,t,o),e.elementType=K,e.lanes=u,e;case _:return $a(n.children,o,u,t);case D:g=8,o|=24;break;case A:return e=Vt(12,n,t,o|2),e.elementType=A,e.lanes=u,e;case ae:return e=Vt(13,n,t,o),e.elementType=ae,e.lanes=u,e;case q:return e=Vt(19,n,t,o),e.elementType=q,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:g=10;break e;case Z:g=9;break e;case se:g=11;break e;case W:g=14;break e;case J:g=16,l=null;break e}g=29,n=Error(i(130,e===null?"null":typeof e,"")),l=null}return t=Vt(g,n,t,o),t.elementType=e,t.type=l,t.lanes=u,t}function $a(e,t,n,l){return e=Vt(7,e,l,t),e.lanes=n,e}function co(e,t,n){return e=Vt(6,e,null,t),e.lanes=n,e}function kd(e){var t=Vt(18,null,null,0);return t.stateNode=e,t}function fo(e,t,n){return t=Vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Hd=new WeakMap;function Wt(e,t){if(typeof e=="object"&&e!==null){var n=Hd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Il(t)},Hd.set(e,t),t)}return{value:e,source:t,stack:Il(t)}}var bl=[],Sl=0,bi=null,ms=0,Pt=[],en=0,ea=null,xn=1,yn="";function Mn(e,t){bl[Sl++]=ms,bl[Sl++]=bi,bi=e,ms=t}function Ud(e,t,n){Pt[en++]=xn,Pt[en++]=yn,Pt[en++]=ea,ea=e;var l=xn;e=yn;var o=32-xt(l)-1;l&=~(1<<o),n+=1;var u=32-xt(t)+o;if(30<u){var g=o-o%5;u=(l&(1<<g)-1).toString(32),l>>=g,o-=g,xn=1<<32-xt(t)+o|n<<o|l,yn=u+e}else xn=1<<u|n<<o|l,yn=e}function mo(e){e.return!==null&&(Mn(e,1),Ud(e,1,0))}function go(e){for(;e===bi;)bi=bl[--Sl],bl[Sl]=null,ms=bl[--Sl],bl[Sl]=null;for(;e===ea;)ea=Pt[--en],Pt[en]=null,yn=Pt[--en],Pt[en]=null,xn=Pt[--en],Pt[en]=null}function Bd(e,t){Pt[en++]=xn,Pt[en++]=yn,Pt[en++]=ea,xn=t.id,yn=t.overflow,ea=e}var ft=null,qe=null,De=!1,ta=null,tn=!1,ho=Error(i(519));function na(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw gs(Wt(t,e)),ho}function Ld(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[dt]=e,t[zt]=l,n){case"dialog":Me("cancel",t),Me("close",t);break;case"iframe":case"object":case"embed":Me("load",t);break;case"video":case"audio":for(n=0;n<Hs.length;n++)Me(Hs[n],t);break;case"source":Me("error",t);break;case"img":case"image":case"link":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"input":Me("invalid",t),Wc(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Me("invalid",t);break;case"textarea":Me("invalid",t),ed(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||ag(t.textContent,n)?(l.popover!=null&&(Me("beforetoggle",t),Me("toggle",t)),l.onScroll!=null&&Me("scroll",t),l.onScrollEnd!=null&&Me("scrollend",t),l.onClick!=null&&(t.onclick=Rn),t=!0):t=!1,t||na(e,!0)}function Vd(e){for(ft=e.return;ft;)switch(ft.tag){case 5:case 31:case 13:tn=!1;return;case 27:case 3:tn=!0;return;default:ft=ft.return}}function wl(e){if(e!==ft)return!1;if(!De)return Vd(e),De=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Du(e.type,e.memoizedProps)),n=!n),n&&qe&&na(e),Vd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));qe=fg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));qe=fg(e)}else t===27?(t=qe,pa(e.type)?(e=Bu,Bu=null,qe=e):qe=t):qe=ft?an(e.stateNode.nextSibling):null;return!0}function qa(){qe=ft=null,De=!1}function po(){var e=ta;return e!==null&&(kt===null?kt=e:kt.push.apply(kt,e),ta=null),e}function gs(e){ta===null?ta=[e]:ta.push(e)}var vo=R(null),Ya=null,zn=null;function aa(e,t,n){U(vo,t._currentValue),t._currentValue=n}function Tn(e){e._currentValue=vo.current,z(vo)}function xo(e,t,n){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===n)break;e=e.return}}function yo(e,t,n,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){var g=o.child;u=u.firstContext;e:for(;u!==null;){var y=u;u=o;for(var C=0;C<t.length;C++)if(y.context===t[C]){u.lanes|=n,y=u.alternate,y!==null&&(y.lanes|=n),xo(u.return,n,e),l||(g=null);break e}u=y.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(i(341));g.lanes|=n,u=g.alternate,u!==null&&(u.lanes|=n),xo(g,n,e),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===e){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function Nl(e,t,n,l){e=null;for(var o=t,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var g=o.alternate;if(g===null)throw Error(i(387));if(g=g.memoizedProps,g!==null){var y=o.type;Lt(o.pendingProps.value,g.value)||(e!==null?e.push(y):e=[y])}}else if(o===ve.current){if(g=o.alternate,g===null)throw Error(i(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Gs):e=[Gs])}o=o.return}e!==null&&yo(t,e,n,l),t.flags|=262144}function Si(e){for(e=e.firstContext;e!==null;){if(!Lt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Fa(e){Ya=e,zn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return Gd(Ya,e)}function wi(e,t){return Ya===null&&Fa(e),Gd(e,t)}function Gd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},zn===null){if(e===null)throw Error(i(308));zn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else zn=zn.next=t;return n}var M0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},z0=a.unstable_scheduleCallback,T0=a.unstable_NormalPriority,et={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bo(){return{controller:new M0,data:new Map,refCount:0}}function hs(e){e.refCount--,e.refCount===0&&z0(T0,function(){e.controller.abort()})}var ps=null,So=0,Cl=0,jl=null;function A0(e,t){if(ps===null){var n=ps=[];So=0,Cl=Cu(),jl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return So++,t.then($d,$d),t}function $d(){if(--So===0&&ps!==null){jl!==null&&(jl.status="fulfilled");var e=ps;ps=null,Cl=0,jl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function D0(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),l}var qd=M.S;M.S=function(e,t){Em=Ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&A0(e,t),qd!==null&&qd(e,t)};var Xa=R(null);function wo(){var e=Xa.current;return e!==null?e:$e.pooledCache}function Ni(e,t){t===null?U(Xa,Xa.current):U(Xa,t.pool)}function Yd(){var e=wo();return e===null?null:{parent:et._currentValue,pool:e}}var Rl=Error(i(460)),No=Error(i(474)),Ci=Error(i(542)),ji={then:function(){}};function Fd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Xd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Rn,Rn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zd(e),e;default:if(typeof t.status=="string")t.then(Rn,Rn);else{if(e=$e,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zd(e),e}throw Za=t,Rl}}function Qa(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Za=n,Rl):n}}var Za=null;function Qd(){if(Za===null)throw Error(i(459));var e=Za;return Za=null,e}function Zd(e){if(e===Rl||e===Ci)throw Error(i(483))}var El=null,vs=0;function Ri(e){var t=vs;return vs+=1,El===null&&(El=[]),Xd(El,e,t)}function xs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ei(e,t){throw t.$$typeof===w?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Kd(e){function t(T,E){if(e){var O=T.deletions;O===null?(T.deletions=[E],T.flags|=16):O.push(E)}}function n(T,E){if(!e)return null;for(;E!==null;)t(T,E),E=E.sibling;return null}function l(T){for(var E=new Map;T!==null;)T.key!==null?E.set(T.key,T):E.set(T.index,T),T=T.sibling;return E}function o(T,E){return T=_n(T,E),T.index=0,T.sibling=null,T}function u(T,E,O){return T.index=O,e?(O=T.alternate,O!==null?(O=O.index,O<E?(T.flags|=67108866,E):O):(T.flags|=67108866,E)):(T.flags|=1048576,E)}function g(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function y(T,E,O,V){return E===null||E.tag!==6?(E=co(O,T.mode,V),E.return=T,E):(E=o(E,O),E.return=T,E)}function C(T,E,O,V){var ge=O.type;return ge===_?L(T,E,O.props.children,V,O.key):E!==null&&(E.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===J&&Qa(ge)===E.type)?(E=o(E,O.props),xs(E,O),E.return=T,E):(E=yi(O.type,O.key,O.props,null,T.mode,V),xs(E,O),E.return=T,E)}function k(T,E,O,V){return E===null||E.tag!==4||E.stateNode.containerInfo!==O.containerInfo||E.stateNode.implementation!==O.implementation?(E=fo(O,T.mode,V),E.return=T,E):(E=o(E,O.children||[]),E.return=T,E)}function L(T,E,O,V,ge){return E===null||E.tag!==7?(E=$a(O,T.mode,V,ge),E.return=T,E):(E=o(E,O),E.return=T,E)}function $(T,E,O){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=co(""+E,T.mode,O),E.return=T,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case N:return O=yi(E.type,E.key,E.props,null,T.mode,O),xs(O,E),O.return=T,O;case j:return E=fo(E,T.mode,O),E.return=T,E;case J:return E=Qa(E),$(T,E,O)}if(re(E)||Y(E))return E=$a(E,T.mode,O,null),E.return=T,E;if(typeof E.then=="function")return $(T,Ri(E),O);if(E.$$typeof===F)return $(T,wi(T,E),O);Ei(T,E)}return null}function H(T,E,O,V){var ge=E!==null?E.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return ge!==null?null:y(T,E,""+O,V);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case N:return O.key===ge?C(T,E,O,V):null;case j:return O.key===ge?k(T,E,O,V):null;case J:return O=Qa(O),H(T,E,O,V)}if(re(O)||Y(O))return ge!==null?null:L(T,E,O,V,null);if(typeof O.then=="function")return H(T,E,Ri(O),V);if(O.$$typeof===F)return H(T,E,wi(T,O),V);Ei(T,O)}return null}function B(T,E,O,V,ge){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return T=T.get(O)||null,y(E,T,""+V,ge);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case N:return T=T.get(V.key===null?O:V.key)||null,C(E,T,V,ge);case j:return T=T.get(V.key===null?O:V.key)||null,k(E,T,V,ge);case J:return V=Qa(V),B(T,E,O,V,ge)}if(re(V)||Y(V))return T=T.get(O)||null,L(E,T,V,ge,null);if(typeof V.then=="function")return B(T,E,O,Ri(V),ge);if(V.$$typeof===F)return B(T,E,O,wi(E,V),ge);Ei(E,V)}return null}function ie(T,E,O,V){for(var ge=null,Oe=null,ce=E,je=E=0,Ae=null;ce!==null&&je<O.length;je++){ce.index>je?(Ae=ce,ce=null):Ae=ce.sibling;var ke=H(T,ce,O[je],V);if(ke===null){ce===null&&(ce=Ae);break}e&&ce&&ke.alternate===null&&t(T,ce),E=u(ke,E,je),Oe===null?ge=ke:Oe.sibling=ke,Oe=ke,ce=Ae}if(je===O.length)return n(T,ce),De&&Mn(T,je),ge;if(ce===null){for(;je<O.length;je++)ce=$(T,O[je],V),ce!==null&&(E=u(ce,E,je),Oe===null?ge=ce:Oe.sibling=ce,Oe=ce);return De&&Mn(T,je),ge}for(ce=l(ce);je<O.length;je++)Ae=B(ce,T,je,O[je],V),Ae!==null&&(e&&Ae.alternate!==null&&ce.delete(Ae.key===null?je:Ae.key),E=u(Ae,E,je),Oe===null?ge=Ae:Oe.sibling=Ae,Oe=Ae);return e&&ce.forEach(function(Sa){return t(T,Sa)}),De&&Mn(T,je),ge}function xe(T,E,O,V){if(O==null)throw Error(i(151));for(var ge=null,Oe=null,ce=E,je=E=0,Ae=null,ke=O.next();ce!==null&&!ke.done;je++,ke=O.next()){ce.index>je?(Ae=ce,ce=null):Ae=ce.sibling;var Sa=H(T,ce,ke.value,V);if(Sa===null){ce===null&&(ce=Ae);break}e&&ce&&Sa.alternate===null&&t(T,ce),E=u(Sa,E,je),Oe===null?ge=Sa:Oe.sibling=Sa,Oe=Sa,ce=Ae}if(ke.done)return n(T,ce),De&&Mn(T,je),ge;if(ce===null){for(;!ke.done;je++,ke=O.next())ke=$(T,ke.value,V),ke!==null&&(E=u(ke,E,je),Oe===null?ge=ke:Oe.sibling=ke,Oe=ke);return De&&Mn(T,je),ge}for(ce=l(ce);!ke.done;je++,ke=O.next())ke=B(ce,T,je,ke.value,V),ke!==null&&(e&&ke.alternate!==null&&ce.delete(ke.key===null?je:ke.key),E=u(ke,E,je),Oe===null?ge=ke:Oe.sibling=ke,Oe=ke);return e&&ce.forEach(function(Yv){return t(T,Yv)}),De&&Mn(T,je),ge}function Ge(T,E,O,V){if(typeof O=="object"&&O!==null&&O.type===_&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case N:e:{for(var ge=O.key;E!==null;){if(E.key===ge){if(ge=O.type,ge===_){if(E.tag===7){n(T,E.sibling),V=o(E,O.props.children),V.return=T,T=V;break e}}else if(E.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===J&&Qa(ge)===E.type){n(T,E.sibling),V=o(E,O.props),xs(V,O),V.return=T,T=V;break e}n(T,E);break}else t(T,E);E=E.sibling}O.type===_?(V=$a(O.props.children,T.mode,V,O.key),V.return=T,T=V):(V=yi(O.type,O.key,O.props,null,T.mode,V),xs(V,O),V.return=T,T=V)}return g(T);case j:e:{for(ge=O.key;E!==null;){if(E.key===ge)if(E.tag===4&&E.stateNode.containerInfo===O.containerInfo&&E.stateNode.implementation===O.implementation){n(T,E.sibling),V=o(E,O.children||[]),V.return=T,T=V;break e}else{n(T,E);break}else t(T,E);E=E.sibling}V=fo(O,T.mode,V),V.return=T,T=V}return g(T);case J:return O=Qa(O),Ge(T,E,O,V)}if(re(O))return ie(T,E,O,V);if(Y(O)){if(ge=Y(O),typeof ge!="function")throw Error(i(150));return O=ge.call(O),xe(T,E,O,V)}if(typeof O.then=="function")return Ge(T,E,Ri(O),V);if(O.$$typeof===F)return Ge(T,E,wi(T,O),V);Ei(T,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,E!==null&&E.tag===6?(n(T,E.sibling),V=o(E,O),V.return=T,T=V):(n(T,E),V=co(O,T.mode,V),V.return=T,T=V),g(T)):n(T,E)}return function(T,E,O,V){try{vs=0;var ge=Ge(T,E,O,V);return El=null,ge}catch(ce){if(ce===Rl||ce===Ci)throw ce;var Oe=Vt(29,ce,null,T.mode);return Oe.lanes=V,Oe.return=T,Oe}finally{}}}var Ka=Kd(!0),Jd=Kd(!1),la=!1;function Co(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jo(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 sa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ia(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(He&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=xi(e),Dd(e,null,n),t}return vi(e,l,t,n),xi(e)}function ys(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,_t(e,n)}}function Ro(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var o=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var g={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?o=u=g:u=u.next=g,n=n.next}while(n!==null);u===null?o=u=t:u=u.next=t}else o=u=t;n={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Eo=!1;function bs(){if(Eo){var e=jl;if(e!==null)throw e}}function Ss(e,t,n,l){Eo=!1;var o=e.updateQueue;la=!1;var u=o.firstBaseUpdate,g=o.lastBaseUpdate,y=o.shared.pending;if(y!==null){o.shared.pending=null;var C=y,k=C.next;C.next=null,g===null?u=k:g.next=k,g=C;var L=e.alternate;L!==null&&(L=L.updateQueue,y=L.lastBaseUpdate,y!==g&&(y===null?L.firstBaseUpdate=k:y.next=k,L.lastBaseUpdate=C))}if(u!==null){var $=o.baseState;g=0,L=k=C=null,y=u;do{var H=y.lane&-536870913,B=H!==y.lane;if(B?(Te&H)===H:(l&H)===H){H!==0&&H===Cl&&(Eo=!0),L!==null&&(L=L.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var ie=e,xe=y;H=t;var Ge=n;switch(xe.tag){case 1:if(ie=xe.payload,typeof ie=="function"){$=ie.call(Ge,$,H);break e}$=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=xe.payload,H=typeof ie=="function"?ie.call(Ge,$,H):ie,H==null)break e;$=p({},$,H);break e;case 2:la=!0}}H=y.callback,H!==null&&(e.flags|=64,B&&(e.flags|=8192),B=o.callbacks,B===null?o.callbacks=[H]:B.push(H))}else B={lane:H,tag:y.tag,payload:y.payload,callback:y.callback,next:null},L===null?(k=L=B,C=$):L=L.next=B,g|=H;if(y=y.next,y===null){if(y=o.shared.pending,y===null)break;B=y,y=B.next,B.next=null,o.lastBaseUpdate=B,o.shared.pending=null}}while(!0);L===null&&(C=$),o.baseState=C,o.firstBaseUpdate=k,o.lastBaseUpdate=L,u===null&&(o.shared.lanes=0),da|=g,e.lanes=g,e.memoizedState=$}}function Id(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Wd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Id(n[e],t)}var _l=R(null),_i=R(0);function Pd(e,t){e=Vn,U(_i,e),U(_l,t),Vn=e|t.baseLanes}function _o(){U(_i,Vn),U(_l,_l.current)}function Mo(){Vn=_i.current,z(_l),z(_i)}var Gt=R(null),nn=null;function ra(e){var t=e.alternate;U(We,We.current&1),U(Gt,e),nn===null&&(t===null||_l.current!==null||t.memoizedState!==null)&&(nn=e)}function zo(e){U(We,We.current),U(Gt,e),nn===null&&(nn=e)}function ef(e){e.tag===22?(U(We,We.current),U(Gt,e),nn===null&&(nn=e)):oa()}function oa(){U(We,We.current),U(Gt,Gt.current)}function $t(e){z(Gt),nn===e&&(nn=null),z(We)}var We=R(0);function Mi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Hu(n)||Uu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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}var An=0,Ce=null,Le=null,tt=null,zi=!1,Ml=!1,Ja=!1,Ti=0,ws=0,zl=null,O0=0;function Je(){throw Error(i(321))}function To(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Lt(e[n],t[n]))return!1;return!0}function Ao(e,t,n,l,o,u){return An=u,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Bf:Qo,Ja=!1,u=n(l,o),Ja=!1,Ml&&(u=nf(t,n,l,o)),tf(e),u}function tf(e){M.H=js;var t=Le!==null&&Le.next!==null;if(An=0,tt=Le=Ce=null,zi=!1,ws=0,zl=null,t)throw Error(i(300));e===null||nt||(e=e.dependencies,e!==null&&Si(e)&&(nt=!0))}function nf(e,t,n,l){Ce=e;var o=0;do{if(Ml&&(zl=null),ws=0,Ml=!1,25<=o)throw Error(i(301));if(o+=1,tt=Le=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}M.H=Lf,u=t(n,l)}while(Ml);return u}function k0(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?Ns(t):t,e=e.useState()[0],(Le!==null?Le.memoizedState:null)!==e&&(Ce.flags|=1024),t}function Do(){var e=Ti!==0;return Ti=0,e}function Oo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ko(e){if(zi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zi=!1}An=0,tt=Le=Ce=null,Ml=!1,ws=Ti=0,zl=null}function Rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?Ce.memoizedState=tt=e:tt=tt.next=e,tt}function Pe(){if(Le===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=tt===null?Ce.memoizedState:tt.next;if(t!==null)tt=t,Le=e;else{if(e===null)throw Ce.alternate===null?Error(i(467)):Error(i(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},tt===null?Ce.memoizedState=tt=e:tt=tt.next=e}return tt}function Ai(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ns(e){var t=ws;return ws+=1,zl===null&&(zl=[]),e=Xd(zl,e,t),t=Ce,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Bf:Qo),e}function Di(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ns(e);if(e.$$typeof===F)return mt(e)}throw Error(i(438,String(e)))}function Ho(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Ce.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Ai(),Ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=te;return t.index++,n}function Dn(e,t){return typeof t=="function"?t(e):t}function Oi(e){var t=Pe();return Uo(t,Le,e)}function Uo(e,t,n){var l=e.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=n;var o=e.baseQueue,u=l.pending;if(u!==null){if(o!==null){var g=o.next;o.next=u.next,u.next=g}t.baseQueue=o=u,l.pending=null}if(u=e.baseState,o===null)e.memoizedState=u;else{t=o.next;var y=g=null,C=null,k=t,L=!1;do{var $=k.lane&-536870913;if($!==k.lane?(Te&$)===$:(An&$)===$){var H=k.revertLane;if(H===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),$===Cl&&(L=!0);else if((An&H)===H){k=k.next,H===Cl&&(L=!0);continue}else $={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},C===null?(y=C=$,g=u):C=C.next=$,Ce.lanes|=H,da|=H;$=k.action,Ja&&n(u,$),u=k.hasEagerState?k.eagerState:n(u,$)}else H={lane:$,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},C===null?(y=C=H,g=u):C=C.next=H,Ce.lanes|=$,da|=$;k=k.next}while(k!==null&&k!==t);if(C===null?g=u:C.next=y,!Lt(u,e.memoizedState)&&(nt=!0,L&&(n=jl,n!==null)))throw n;e.memoizedState=u,e.baseState=g,e.baseQueue=C,l.lastRenderedState=u}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Bo(e){var t=Pe(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var l=n.dispatch,o=n.pending,u=t.memoizedState;if(o!==null){n.pending=null;var g=o=o.next;do u=e(u,g.action),g=g.next;while(g!==o);Lt(u,t.memoizedState)||(nt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,l]}function af(e,t,n){var l=Ce,o=Pe(),u=De;if(u){if(n===void 0)throw Error(i(407));n=n()}else n=t();var g=!Lt((Le||o).memoizedState,n);if(g&&(o.memoizedState=n,nt=!0),o=o.queue,Go(rf.bind(null,l,o,e),[e]),o.getSnapshot!==t||g||tt!==null&&tt.memoizedState.tag&1){if(l.flags|=2048,Tl(9,{destroy:void 0},sf.bind(null,l,o,n,t),null),$e===null)throw Error(i(349));u||(An&127)!==0||lf(l,t,n)}return n}function lf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=Ai(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function sf(e,t,n,l){t.value=n,t.getSnapshot=l,of(t)&&uf(e)}function rf(e,t,n){return n(function(){of(t)&&uf(e)})}function of(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Lt(e,n)}catch{return!0}}function uf(e){var t=Ga(e,2);t!==null&&Ht(t,e,2)}function Lo(e){var t=Rt();if(typeof e=="function"){var n=e;if(e=n(),Ja){rn(!0);try{n()}finally{rn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:e},t}function cf(e,t,n,l){return e.baseState=n,Uo(e,Le,typeof l=="function"?l:Dn)}function H0(e,t,n,l,o){if(Ui(e))throw Error(i(485));if(e=t.action,e!==null){var u={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){u.listeners.push(g)}};M.T!==null?n(!0):u.isTransition=!1,l(u),n=t.pending,n===null?(u.next=t.pending=u,df(t,u)):(u.next=n.next,t.pending=n.next=u)}}function df(e,t){var n=t.action,l=t.payload,o=e.state;if(t.isTransition){var u=M.T,g={};M.T=g;try{var y=n(o,l),C=M.S;C!==null&&C(g,y),ff(e,t,y)}catch(k){Vo(e,t,k)}finally{u!==null&&g.types!==null&&(u.types=g.types),M.T=u}}else try{u=n(o,l),ff(e,t,u)}catch(k){Vo(e,t,k)}}function ff(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){mf(e,t,l)},function(l){return Vo(e,t,l)}):mf(e,t,n)}function mf(e,t,n){t.status="fulfilled",t.value=n,gf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,df(e,n)))}function Vo(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,gf(t),t=t.next;while(t!==l)}e.action=null}function gf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function hf(e,t){return t}function pf(e,t){if(De){var n=$e.formState;if(n!==null){e:{var l=Ce;if(De){if(qe){t:{for(var o=qe,u=tn;o.nodeType!==8;){if(!u){o=null;break t}if(o=an(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){qe=an(o.nextSibling),l=o.data==="F!";break e}}na(l)}l=!1}l&&(t=n[0])}}return n=Rt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hf,lastRenderedState:t},n.queue=l,n=kf.bind(null,Ce,l),l.dispatch=n,l=Lo(!1),u=Xo.bind(null,Ce,!1,l.queue),l=Rt(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,n=H0.bind(null,Ce,o,u,n),o.dispatch=n,l.memoizedState=e,[t,n,!1]}function vf(e){var t=Pe();return xf(t,Le,e)}function xf(e,t,n){if(t=Uo(e,t,hf)[0],e=Oi(Dn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Ns(t)}catch(g){throw g===Rl?Ci:g}else l=t;t=Pe();var o=t.queue,u=o.dispatch;return n!==t.memoizedState&&(Ce.flags|=2048,Tl(9,{destroy:void 0},U0.bind(null,o,n),null)),[l,u,e]}function U0(e,t){e.action=t}function yf(e){var t=Pe(),n=Le;if(n!==null)return xf(t,n,e);Pe(),t=t.memoizedState,n=Pe();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Tl(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=Ai(),Ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function bf(){return Pe().memoizedState}function ki(e,t,n,l){var o=Rt();Ce.flags|=e,o.memoizedState=Tl(1|t,{destroy:void 0},n,l===void 0?null:l)}function Hi(e,t,n,l){var o=Pe();l=l===void 0?null:l;var u=o.memoizedState.inst;Le!==null&&l!==null&&To(l,Le.memoizedState.deps)?o.memoizedState=Tl(t,u,n,l):(Ce.flags|=e,o.memoizedState=Tl(1|t,u,n,l))}function Sf(e,t){ki(8390656,8,e,t)}function Go(e,t){Hi(2048,8,e,t)}function B0(e){Ce.flags|=4;var t=Ce.updateQueue;if(t===null)t=Ai(),Ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function wf(e){var t=Pe().memoizedState;return B0({ref:t,nextImpl:e}),function(){if((He&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Nf(e,t){return Hi(4,2,e,t)}function Cf(e,t){return Hi(4,4,e,t)}function jf(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Rf(e,t,n){n=n!=null?n.concat([e]):null,Hi(4,4,jf.bind(null,t,e),n)}function $o(){}function Ef(e,t){var n=Pe();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&To(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function _f(e,t){var n=Pe();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&To(t,l[1]))return l[0];if(l=e(),Ja){rn(!0);try{e()}finally{rn(!1)}}return n.memoizedState=[l,t],l}function qo(e,t,n){return n===void 0||(An&1073741824)!==0&&(Te&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Mm(),Ce.lanes|=e,da|=e,n)}function Mf(e,t,n,l){return Lt(n,t)?n:_l.current!==null?(e=qo(e,n,l),Lt(e,t)||(nt=!0),e):(An&42)===0||(An&1073741824)!==0&&(Te&261930)===0?(nt=!0,e.memoizedState=n):(e=Mm(),Ce.lanes|=e,da|=e,t)}function zf(e,t,n,l,o){var u=G.p;G.p=u!==0&&8>u?u:8;var g=M.T,y={};M.T=y,Xo(e,!1,t,n);try{var C=o(),k=M.S;if(k!==null&&k(y,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var L=D0(C,l);Cs(e,t,L,Ft(e))}else Cs(e,t,l,Ft(e))}catch($){Cs(e,t,{then:function(){},status:"rejected",reason:$},Ft())}finally{G.p=u,g!==null&&y.types!==null&&(g.types=y.types),M.T=g}}function L0(){}function Yo(e,t,n,l){if(e.tag!==5)throw Error(i(476));var o=Tf(e).queue;zf(e,o,t,le,n===null?L0:function(){return Af(e),n(l)})}function Tf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:le},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Af(e){var t=Tf(e);t.next===null&&(t=e.alternate.memoizedState),Cs(e,t.next.queue,{},Ft())}function Fo(){return mt(Gs)}function Df(){return Pe().memoizedState}function Of(){return Pe().memoizedState}function V0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ft();e=sa(n);var l=ia(t,e,n);l!==null&&(Ht(l,t,n),ys(l,t,n)),t={cache:bo()},e.payload=t;return}t=t.return}}function G0(e,t,n){var l=Ft();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ui(e)?Hf(t,n):(n=oo(e,t,n,l),n!==null&&(Ht(n,e,l),Uf(n,t,l)))}function kf(e,t,n){var l=Ft();Cs(e,t,n,l)}function Cs(e,t,n,l){var o={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ui(e))Hf(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var g=t.lastRenderedState,y=u(g,n);if(o.hasEagerState=!0,o.eagerState=y,Lt(y,g))return vi(e,t,o,0),$e===null&&pi(),!1}catch{}finally{}if(n=oo(e,t,o,l),n!==null)return Ht(n,e,l),Uf(n,t,l),!0}return!1}function Xo(e,t,n,l){if(l={lane:2,revertLane:Cu(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ui(e)){if(t)throw Error(i(479))}else t=oo(e,n,l,2),t!==null&&Ht(t,e,2)}function Ui(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function Hf(e,t){Ml=zi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Uf(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,_t(e,n)}}var js={readContext:mt,use:Di,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je};js.useEffectEvent=Je;var Bf={readContext:mt,use:Di,useCallback:function(e,t){return Rt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:Sf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ki(4194308,4,jf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ki(4194308,4,e,t)},useInsertionEffect:function(e,t){ki(4,2,e,t)},useMemo:function(e,t){var n=Rt();t=t===void 0?null:t;var l=e();if(Ja){rn(!0);try{e()}finally{rn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=Rt();if(n!==void 0){var o=n(t);if(Ja){rn(!0);try{n(t)}finally{rn(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=G0.bind(null,Ce,e),[l.memoizedState,e]},useRef:function(e){var t=Rt();return e={current:e},t.memoizedState=e},useState:function(e){e=Lo(e);var t=e.queue,n=kf.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:$o,useDeferredValue:function(e,t){var n=Rt();return qo(n,e,t)},useTransition:function(){var e=Lo(!1);return e=zf.bind(null,Ce,e.queue,!0,!1),Rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Ce,o=Rt();if(De){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),$e===null)throw Error(i(349));(Te&127)!==0||lf(l,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,Sf(rf.bind(null,l,u,e),[e]),l.flags|=2048,Tl(9,{destroy:void 0},sf.bind(null,l,u,n,t),null),n},useId:function(){var e=Rt(),t=$e.identifierPrefix;if(De){var n=yn,l=xn;n=(l&~(1<<32-xt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Ti++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=O0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Fo,useFormState:pf,useActionState:pf,useOptimistic:function(e){var t=Rt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Xo.bind(null,Ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:Ho,useCacheRefresh:function(){return Rt().memoizedState=V0.bind(null,Ce)},useEffectEvent:function(e){var t=Rt(),n={impl:e};return t.memoizedState=n,function(){if((He&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Qo={readContext:mt,use:Di,useCallback:Ef,useContext:mt,useEffect:Go,useImperativeHandle:Rf,useInsertionEffect:Nf,useLayoutEffect:Cf,useMemo:_f,useReducer:Oi,useRef:bf,useState:function(){return Oi(Dn)},useDebugValue:$o,useDeferredValue:function(e,t){var n=Pe();return Mf(n,Le.memoizedState,e,t)},useTransition:function(){var e=Oi(Dn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Ns(e),t]},useSyncExternalStore:af,useId:Df,useHostTransitionStatus:Fo,useFormState:vf,useActionState:vf,useOptimistic:function(e,t){var n=Pe();return cf(n,Le,e,t)},useMemoCache:Ho,useCacheRefresh:Of};Qo.useEffectEvent=wf;var Lf={readContext:mt,use:Di,useCallback:Ef,useContext:mt,useEffect:Go,useImperativeHandle:Rf,useInsertionEffect:Nf,useLayoutEffect:Cf,useMemo:_f,useReducer:Bo,useRef:bf,useState:function(){return Bo(Dn)},useDebugValue:$o,useDeferredValue:function(e,t){var n=Pe();return Le===null?qo(n,e,t):Mf(n,Le.memoizedState,e,t)},useTransition:function(){var e=Bo(Dn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Ns(e),t]},useSyncExternalStore:af,useId:Df,useHostTransitionStatus:Fo,useFormState:yf,useActionState:yf,useOptimistic:function(e,t){var n=Pe();return Le!==null?cf(n,Le,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Ho,useCacheRefresh:Of};Lf.useEffectEvent=wf;function Zo(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:p({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ko={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Ft(),o=sa(l);o.payload=t,n!=null&&(o.callback=n),t=ia(e,o,l),t!==null&&(Ht(t,e,l),ys(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Ft(),o=sa(l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=ia(e,o,l),t!==null&&(Ht(t,e,l),ys(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ft(),l=sa(n);l.tag=2,t!=null&&(l.callback=t),t=ia(e,l,n),t!==null&&(Ht(t,e,n),ys(t,e,n))}};function Vf(e,t,n,l,o,u,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,g):t.prototype&&t.prototype.isPureReactComponent?!ds(n,l)||!ds(o,u):!0}function Gf(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Ko.enqueueReplaceState(t,t.state,null)}function Ia(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=p({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function $f(e){hi(e)}function qf(e){console.error(e)}function Yf(e){hi(e)}function Bi(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Ff(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Jo(e,t,n){return n=sa(n),n.tag=3,n.payload={element:null},n.callback=function(){Bi(e,t)},n}function Xf(e){return e=sa(e),e.tag=3,e}function Qf(e,t,n,l){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var u=l.value;e.payload=function(){return o(u)},e.callback=function(){Ff(t,n,l)}}var g=n.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Ff(t,n,l),typeof o!="function"&&(fa===null?fa=new Set([this]):fa.add(this));var y=l.stack;this.componentDidCatch(l.value,{componentStack:y!==null?y:""})})}function $0(e,t,n,l,o){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Nl(t,n,o,!0),n=Gt.current,n!==null){switch(n.tag){case 31:case 13:return nn===null?Ji():n.alternate===null&&Ie===0&&(Ie=3),n.flags&=-257,n.flags|=65536,n.lanes=o,l===ji?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Su(e,l,o)),!1;case 22:return n.flags|=65536,l===ji?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Su(e,l,o)),!1}throw Error(i(435,n.tag))}return Su(e,l,o),Ji(),!1}if(De)return t=Gt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==ho&&(e=Error(i(422),{cause:l}),gs(Wt(e,n)))):(l!==ho&&(t=Error(i(423),{cause:l}),gs(Wt(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=Wt(l,n),o=Jo(e.stateNode,l,o),Ro(e,o),Ie!==4&&(Ie=2)),!1;var u=Error(i(520),{cause:l});if(u=Wt(u,n),Ds===null?Ds=[u]:Ds.push(u),Ie!==4&&(Ie=2),t===null)return!0;l=Wt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Jo(n.stateNode,l,e),Ro(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(fa===null||!fa.has(u))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Xf(o),Qf(o,e,n,l),Ro(n,o),!1}n=n.return}while(n!==null);return!1}var Io=Error(i(461)),nt=!1;function gt(e,t,n,l){t.child=e===null?Jd(t,null,n,l):Ka(t,e.child,n,l)}function Zf(e,t,n,l,o){n=n.render;var u=t.ref;if("ref"in l){var g={};for(var y in l)y!=="ref"&&(g[y]=l[y])}else g=l;return Fa(t),l=Ao(e,t,n,g,u,o),y=Do(),e!==null&&!nt?(Oo(e,t,o),On(e,t,o)):(De&&y&&mo(t),t.flags|=1,gt(e,t,l,o),t.child)}function Kf(e,t,n,l,o){if(e===null){var u=n.type;return typeof u=="function"&&!uo(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,Jf(e,t,u,l,o)):(e=yi(n.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!su(e,o)){var g=u.memoizedProps;if(n=n.compare,n=n!==null?n:ds,n(g,l)&&e.ref===t.ref)return On(e,t,o)}return t.flags|=1,e=_n(u,l),e.ref=t.ref,e.return=t,t.child=e}function Jf(e,t,n,l,o){if(e!==null){var u=e.memoizedProps;if(ds(u,l)&&e.ref===t.ref)if(nt=!1,t.pendingProps=l=u,su(e,o))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,On(e,t,o)}return Wo(e,t,n,l,o)}function If(e,t,n,l){var o=l.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~u}else l=0,t.child=null;return Wf(e,t,u,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ni(t,u!==null?u.cachePool:null),u!==null?Pd(t,u):_o(),ef(t);else return l=t.lanes=536870912,Wf(e,t,u!==null?u.baseLanes|n:n,n,l)}else u!==null?(Ni(t,u.cachePool),Pd(t,u),oa(),t.memoizedState=null):(e!==null&&Ni(t,null),_o(),oa());return gt(e,t,o,n),t.child}function Rs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Wf(e,t,n,l,o){var u=wo();return u=u===null?null:{parent:et._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&Ni(t,null),_o(),ef(t),e!==null&&Nl(e,t,l,!0),t.childLanes=o,null}function Li(e,t){return t=Gi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Pf(e,t,n){return Ka(t,e.child,null,n),e=Li(t,t.pendingProps),e.flags|=2,$t(t),t.memoizedState=null,e}function q0(e,t,n){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(De){if(l.mode==="hidden")return e=Li(t,l),t.lanes=536870912,Rs(null,e);if(zo(t),(e=qe)?(e=dg(e,tn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ea!==null?{id:xn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},n=kd(e),n.return=t,t.child=n,ft=t,qe=null)):e=null,e===null)throw na(t);return t.lanes=536870912,null}return Li(t,l)}var u=e.memoizedState;if(u!==null){var g=u.dehydrated;if(zo(t),o)if(t.flags&256)t.flags&=-257,t=Pf(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(nt||Nl(e,t,n,!1),o=(n&e.childLanes)!==0,nt||o){if(l=$e,l!==null&&(g=Mt(l,n),g!==0&&g!==u.retryLane))throw u.retryLane=g,Ga(e,g),Ht(l,e,g),Io;Ji(),t=Pf(e,t,n)}else e=u.treeContext,qe=an(g.nextSibling),ft=t,De=!0,ta=null,tn=!1,e!==null&&Bd(t,e),t=Li(t,l),t.flags|=4096;return t}return e=_n(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Vi(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Wo(e,t,n,l,o){return Fa(t),n=Ao(e,t,n,l,void 0,o),l=Do(),e!==null&&!nt?(Oo(e,t,o),On(e,t,o)):(De&&l&&mo(t),t.flags|=1,gt(e,t,n,o),t.child)}function em(e,t,n,l,o,u){return Fa(t),t.updateQueue=null,n=nf(t,l,n,o),tf(e),l=Do(),e!==null&&!nt?(Oo(e,t,u),On(e,t,u)):(De&&l&&mo(t),t.flags|=1,gt(e,t,n,u),t.child)}function tm(e,t,n,l,o){if(Fa(t),t.stateNode===null){var u=yl,g=n.contextType;typeof g=="object"&&g!==null&&(u=mt(g)),u=new n(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Ko,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},Co(t),g=n.contextType,u.context=typeof g=="object"&&g!==null?mt(g):yl,u.state=t.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(Zo(t,n,g,l),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(g=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),g!==u.state&&Ko.enqueueReplaceState(u,u.state,null),Ss(t,l,u,o),bs(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var y=t.memoizedProps,C=Ia(n,y);u.props=C;var k=u.context,L=n.contextType;g=yl,typeof L=="object"&&L!==null&&(g=mt(L));var $=n.getDerivedStateFromProps;L=typeof $=="function"||typeof u.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,L||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(y||k!==g)&&Gf(t,u,l,g),la=!1;var H=t.memoizedState;u.state=H,Ss(t,l,u,o),bs(),k=t.memoizedState,y||H!==k||la?(typeof $=="function"&&(Zo(t,n,$,l),k=t.memoizedState),(C=la||Vf(t,n,C,l,H,k,g))?(L||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=k),u.props=l,u.state=k,u.context=g,l=C):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,jo(e,t),g=t.memoizedProps,L=Ia(n,g),u.props=L,$=t.pendingProps,H=u.context,k=n.contextType,C=yl,typeof k=="object"&&k!==null&&(C=mt(k)),y=n.getDerivedStateFromProps,(k=typeof y=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(g!==$||H!==C)&&Gf(t,u,l,C),la=!1,H=t.memoizedState,u.state=H,Ss(t,l,u,o),bs();var B=t.memoizedState;g!==$||H!==B||la||e!==null&&e.dependencies!==null&&Si(e.dependencies)?(typeof y=="function"&&(Zo(t,n,y,l),B=t.memoizedState),(L=la||Vf(t,n,L,l,H,B,C)||e!==null&&e.dependencies!==null&&Si(e.dependencies))?(k||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,B,C),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,B,C)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||g===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=B),u.props=l,u.state=B,u.context=C,l=L):(typeof u.componentDidUpdate!="function"||g===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,Vi(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=Ka(t,e.child,null,o),t.child=Ka(t,null,n,o)):gt(e,t,n,o),t.memoizedState=u.state,e=t.child):e=On(e,t,o),e}function nm(e,t,n,l){return qa(),t.flags|=256,gt(e,t,n,l),t.child}var Po={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function eu(e){return{baseLanes:e,cachePool:Yd()}}function tu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Yt),e}function am(e,t,n){var l=t.pendingProps,o=!1,u=(t.flags&128)!==0,g;if((g=u)||(g=e!==null&&e.memoizedState===null?!1:(We.current&2)!==0),g&&(o=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(De){if(o?ra(t):oa(),(e=qe)?(e=dg(e,tn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ea!==null?{id:xn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},n=kd(e),n.return=t,t.child=n,ft=t,qe=null)):e=null,e===null)throw na(t);return Uu(e)?t.lanes=32:t.lanes=536870912,null}var y=l.children;return l=l.fallback,o?(oa(),o=t.mode,y=Gi({mode:"hidden",children:y},o),l=$a(l,o,n,null),y.return=t,l.return=t,y.sibling=l,t.child=y,l=t.child,l.memoizedState=eu(n),l.childLanes=tu(e,g,n),t.memoizedState=Po,Rs(null,l)):(ra(t),nu(t,y))}var C=e.memoizedState;if(C!==null&&(y=C.dehydrated,y!==null)){if(u)t.flags&256?(ra(t),t.flags&=-257,t=au(e,t,n)):t.memoizedState!==null?(oa(),t.child=e.child,t.flags|=128,t=null):(oa(),y=l.fallback,o=t.mode,l=Gi({mode:"visible",children:l.children},o),y=$a(y,o,n,null),y.flags|=2,l.return=t,y.return=t,l.sibling=y,t.child=l,Ka(t,e.child,null,n),l=t.child,l.memoizedState=eu(n),l.childLanes=tu(e,g,n),t.memoizedState=Po,t=Rs(null,l));else if(ra(t),Uu(y)){if(g=y.nextSibling&&y.nextSibling.dataset,g)var k=g.dgst;g=k,l=Error(i(419)),l.stack="",l.digest=g,gs({value:l,source:null,stack:null}),t=au(e,t,n)}else if(nt||Nl(e,t,n,!1),g=(n&e.childLanes)!==0,nt||g){if(g=$e,g!==null&&(l=Mt(g,n),l!==0&&l!==C.retryLane))throw C.retryLane=l,Ga(e,l),Ht(g,e,l),Io;Hu(y)||Ji(),t=au(e,t,n)}else Hu(y)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,qe=an(y.nextSibling),ft=t,De=!0,ta=null,tn=!1,e!==null&&Bd(t,e),t=nu(t,l.children),t.flags|=4096);return t}return o?(oa(),y=l.fallback,o=t.mode,C=e.child,k=C.sibling,l=_n(C,{mode:"hidden",children:l.children}),l.subtreeFlags=C.subtreeFlags&65011712,k!==null?y=_n(k,y):(y=$a(y,o,n,null),y.flags|=2),y.return=t,l.return=t,l.sibling=y,t.child=l,Rs(null,l),l=t.child,y=e.child.memoizedState,y===null?y=eu(n):(o=y.cachePool,o!==null?(C=et._currentValue,o=o.parent!==C?{parent:C,pool:C}:o):o=Yd(),y={baseLanes:y.baseLanes|n,cachePool:o}),l.memoizedState=y,l.childLanes=tu(e,g,n),t.memoizedState=Po,Rs(e.child,l)):(ra(t),n=e.child,e=n.sibling,n=_n(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=n,t.memoizedState=null,n)}function nu(e,t){return t=Gi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Gi(e,t){return e=Vt(22,e,null,t),e.lanes=0,e}function au(e,t,n){return Ka(t,e.child,null,n),e=nu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lm(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),xo(e.return,t,n)}function lu(e,t,n,l,o,u){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:o,treeForkCount:u}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=l,g.tail=n,g.tailMode=o,g.treeForkCount=u)}function sm(e,t,n){var l=t.pendingProps,o=l.revealOrder,u=l.tail;l=l.children;var g=We.current,y=(g&2)!==0;if(y?(g=g&1|2,t.flags|=128):g&=1,U(We,g),gt(e,t,l,n),l=De?ms:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lm(e,n,t);else if(e.tag===19)lm(e,n,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}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Mi(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),lu(t,!1,o,n,u,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Mi(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}lu(t,!0,n,null,u,l);break;case"together":lu(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function On(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),da|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Nl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=_n(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=_n(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function su(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Si(e)))}function Y0(e,t,n){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),aa(t,et,e.memoizedState.cache),qa();break;case 27:case 5:wt(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:aa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,zo(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(ra(t),t.flags|=128,null):(n&t.child.childLanes)!==0?am(e,t,n):(ra(t),e=On(e,t,n),e!==null?e.sibling:null);ra(t);break;case 19:var o=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(Nl(e,t,n,!1),l=(n&t.childLanes)!==0),o){if(l)return sm(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),U(We,We.current),l)break;return null;case 22:return t.lanes=0,If(e,t,n,t.pendingProps);case 24:aa(t,et,e.memoizedState.cache)}return On(e,t,n)}function im(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!su(e,n)&&(t.flags&128)===0)return nt=!1,Y0(e,t,n);nt=(e.flags&131072)!==0}else nt=!1,De&&(t.flags&1048576)!==0&&Ud(t,ms,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Qa(t.elementType),t.type=e,typeof e=="function")uo(e)?(l=Ia(e,l),t.tag=1,t=tm(null,t,e,l,n)):(t.tag=0,t=Wo(null,t,e,l,n));else{if(e!=null){var o=e.$$typeof;if(o===se){t.tag=11,t=Zf(null,t,e,l,n);break e}else if(o===W){t.tag=14,t=Kf(null,t,e,l,n);break e}}throw t=de(e)||e,Error(i(306,t,""))}}return t;case 0:return Wo(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,o=Ia(l,t.pendingProps),tm(e,t,l,o,n);case 3:e:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));l=t.pendingProps;var u=t.memoizedState;o=u.element,jo(e,t),Ss(t,l,null,n);var g=t.memoizedState;if(l=g.cache,aa(t,et,l),l!==u.cache&&yo(t,[et],n,!0),bs(),l=g.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=nm(e,t,l,n);break e}else if(l!==o){o=Wt(Error(i(424)),t),gs(o),t=nm(e,t,l,n);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(qe=an(e.firstChild),ft=t,De=!0,ta=null,tn=!0,n=Jd(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(qa(),l===o){t=On(e,t,n);break e}gt(e,t,l,n)}t=t.child}return t;case 26:return Vi(e,t),e===null?(n=vg(t.type,null,t.pendingProps,null))?t.memoizedState=n:De||(n=t.type,e=t.pendingProps,l=ar(ne.current).createElement(n),l[dt]=t,l[zt]=e,ht(l,n,e),rt(l),t.stateNode=l):t.memoizedState=vg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return wt(t),e===null&&De&&(l=t.stateNode=gg(t.type,t.pendingProps,ne.current),ft=t,tn=!0,o=qe,pa(t.type)?(Bu=o,qe=an(l.firstChild)):qe=o),gt(e,t,t.pendingProps.children,n),Vi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&De&&((o=l=qe)&&(l=bv(l,t.type,t.pendingProps,tn),l!==null?(t.stateNode=l,ft=t,qe=an(l.firstChild),tn=!1,o=!0):o=!1),o||na(t)),wt(t),o=t.type,u=t.pendingProps,g=e!==null?e.memoizedProps:null,l=u.children,Du(o,u)?l=null:g!==null&&Du(o,g)&&(t.flags|=32),t.memoizedState!==null&&(o=Ao(e,t,k0,null,null,n),Gs._currentValue=o),Vi(e,t),gt(e,t,l,n),t.child;case 6:return e===null&&De&&((e=n=qe)&&(n=Sv(n,t.pendingProps,tn),n!==null?(t.stateNode=n,ft=t,qe=null,e=!0):e=!1),e||na(t)),null;case 13:return am(e,t,n);case 4:return pe(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ka(t,null,l,n):gt(e,t,l,n),t.child;case 11:return Zf(e,t,t.type,t.pendingProps,n);case 7:return gt(e,t,t.pendingProps,n),t.child;case 8:return gt(e,t,t.pendingProps.children,n),t.child;case 12:return gt(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,aa(t,t.type,l.value),gt(e,t,l.children,n),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,Fa(t),o=mt(o),l=l(o),t.flags|=1,gt(e,t,l,n),t.child;case 14:return Kf(e,t,t.type,t.pendingProps,n);case 15:return Jf(e,t,t.type,t.pendingProps,n);case 19:return sm(e,t,n);case 31:return q0(e,t,n);case 22:return If(e,t,n,t.pendingProps);case 24:return Fa(t),l=mt(et),e===null?(o=wo(),o===null&&(o=$e,u=bo(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=n),o=u),t.memoizedState={parent:l,cache:o},Co(t),aa(t,et,o)):((e.lanes&n)!==0&&(jo(e,t),Ss(t,null,null,n),bs()),o=e.memoizedState,u=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),aa(t,et,l)):(l=u.cache,aa(t,et,l),l!==o.cache&&yo(t,[et],n,!0))),gt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function kn(e){e.flags|=4}function iu(e,t,n,l,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Dm())e.flags|=8192;else throw Za=ji,No}else e.flags&=-16777217}function rm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!wg(t))if(Dm())e.flags|=8192;else throw Za=ji,No}function $i(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?yt():536870912,e.lanes|=t,kl|=t)}function Es(e,t){if(!De)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function F0(e,t,n){var l=t.pendingProps;switch(go(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return Ye(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Tn(et),he(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(wl(t)?kn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,po())),Ye(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(kn(t),u!==null?(Ye(t),rm(t,u)):(Ye(t),iu(t,o,null,l,n))):u?u!==e.memoizedState?(kn(t),Ye(t),rm(t,u)):(Ye(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&kn(t),Ye(t),iu(t,o,e,l,n)),null;case 27:if(ut(t),n=ne.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&kn(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return Ye(t),null}e=X.current,wl(t)?Ld(t):(e=gg(o,l,n),t.stateNode=e,kn(t))}return Ye(t),null;case 5:if(ut(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&kn(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return Ye(t),null}if(u=X.current,wl(t))Ld(t);else{var g=ar(ne.current);switch(u){case 1:u=g.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=g.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=g.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?g.createElement("select",{is:l.is}):g.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?g.createElement(o,{is:l.is}):g.createElement(o)}}u[dt]=t,u[zt]=l;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)u.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=u;e:switch(ht(u,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&kn(t)}}return Ye(t),iu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&kn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(i(166));if(e=ne.current,wl(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,o=ft,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||ag(e.nodeValue,n)),e||na(t,!0)}else e=ar(e).createTextNode(l),e[dt]=t,t.stateNode=e}return Ye(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=wl(t),n!==null){if(e===null){if(!l)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[dt]=t}else qa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),e=!1}else n=po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?($t(t),t):($t(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Ye(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=wl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(i(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));o[dt]=t}else qa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),o=!1}else o=po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?($t(t),t):($t(t),null)}return $t(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==o&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),$i(t,t.updateQueue),Ye(t),null);case 4:return he(),e===null&&_u(t.stateNode.containerInfo),Ye(t),null;case 10:return Tn(t.type),Ye(t),null;case 19:if(z(We),l=t.memoizedState,l===null)return Ye(t),null;if(o=(t.flags&128)!==0,u=l.rendering,u===null)if(o)Es(l,!1);else{if(Ie!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Mi(e),u!==null){for(t.flags|=128,Es(l,!1),e=u.updateQueue,t.updateQueue=e,$i(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Od(n,e),n=n.sibling;return U(We,We.current&1|2),De&&Mn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Ct()>Qi&&(t.flags|=128,o=!0,Es(l,!1),t.lanes=4194304)}else{if(!o)if(e=Mi(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,$i(t,e),Es(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!De)return Ye(t),null}else 2*Ct()-l.renderingStartTime>Qi&&n!==536870912&&(t.flags|=128,o=!0,Es(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ct(),e.sibling=null,n=We.current,U(We,o?n&1|2:n&1),De&&Mn(t,l.treeForkCount),e):(Ye(t),null);case 22:case 23:return $t(t),Mo(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),n=t.updateQueue,n!==null&&$i(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&z(Xa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Tn(et),Ye(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function X0(e,t){switch(go(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tn(et),he(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ut(t),null;case 31:if(t.memoizedState!==null){if($t(t),t.alternate===null)throw Error(i(340));qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if($t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return z(We),null;case 4:return he(),null;case 10:return Tn(t.type),null;case 22:case 23:return $t(t),Mo(),e!==null&&z(Xa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Tn(et),null;case 25:return null;default:return null}}function om(e,t){switch(go(t),t.tag){case 3:Tn(et),he();break;case 26:case 27:case 5:ut(t);break;case 4:he();break;case 31:t.memoizedState!==null&&$t(t);break;case 13:$t(t);break;case 19:z(We);break;case 10:Tn(t.type);break;case 22:case 23:$t(t),Mo(),e!==null&&z(Xa);break;case 24:Tn(et)}}function _s(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var o=l.next;n=o;do{if((n.tag&e)===e){l=void 0;var u=n.create,g=n.inst;l=u(),g.destroy=l}n=n.next}while(n!==o)}}catch(y){Be(t,t.return,y)}}function ua(e,t,n){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var u=o.next;l=u;do{if((l.tag&e)===e){var g=l.inst,y=g.destroy;if(y!==void 0){g.destroy=void 0,o=t;var C=n,k=y;try{k()}catch(L){Be(o,C,L)}}}l=l.next}while(l!==u)}}catch(L){Be(t,t.return,L)}}function um(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Wd(t,n)}catch(l){Be(e,e.return,l)}}}function cm(e,t,n){n.props=Ia(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Be(e,t,l)}}function Ms(e,t){try{var n=e.ref;if(n!==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 n=="function"?e.refCleanup=n(l):n.current=l}}catch(o){Be(e,t,o)}}function bn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(o){Be(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Be(e,t,o)}else n.current=null}function dm(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(o){Be(e,e.return,o)}}function ru(e,t,n){try{var l=e.stateNode;gv(l,e.type,n,t),l[zt]=t}catch(o){Be(e,e.return,o)}}function fm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&pa(e.type)||e.tag===4}function ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fm(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&&pa(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 uu(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Rn));else if(l!==4&&(l===27&&pa(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(uu(e,t,n),e=e.sibling;e!==null;)uu(e,t,n),e=e.sibling}function qi(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&pa(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(qi(e,t,n),e=e.sibling;e!==null;)qi(e,t,n),e=e.sibling}function mm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ht(t,l,n),t[dt]=e,t[zt]=n}catch(u){Be(e,e.return,u)}}var Hn=!1,at=!1,cu=!1,gm=typeof WeakSet=="function"?WeakSet:Set,ot=null;function Q0(e,t){if(e=e.containerInfo,Tu=cr,e=jd(e),no(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var o=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var g=0,y=-1,C=-1,k=0,L=0,$=e,H=null;t:for(;;){for(var B;$!==n||o!==0&&$.nodeType!==3||(y=g+o),$!==u||l!==0&&$.nodeType!==3||(C=g+l),$.nodeType===3&&(g+=$.nodeValue.length),(B=$.firstChild)!==null;)H=$,$=B;for(;;){if($===e)break t;if(H===n&&++k===o&&(y=g),H===u&&++L===l&&(C=g),(B=$.nextSibling)!==null)break;$=H,H=$.parentNode}$=B}n=y===-1||C===-1?null:{start:y,end:C}}else n=null}n=n||{start:0,end:0}}else n=null;for(Au={focusedElem:e,selectionRange:n},cr=!1,ot=t;ot!==null;)if(t=ot,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ot=e;else for(;ot!==null;){switch(t=ot,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,o=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var ie=Ia(n.type,o);e=l.getSnapshotBeforeUpdate(ie,u),l.__reactInternalSnapshotBeforeUpdate=e}catch(xe){Be(n,n.return,xe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ku(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ku(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(i(163))}if(e=t.sibling,e!==null){e.return=t.return,ot=e;break}ot=t.return}}function hm(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Bn(e,n),l&4&&_s(5,n);break;case 1:if(Bn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(g){Be(n,n.return,g)}else{var o=Ia(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Be(n,n.return,g)}}l&64&&um(n),l&512&&Ms(n,n.return);break;case 3:if(Bn(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Wd(e,t)}catch(g){Be(n,n.return,g)}}break;case 27:t===null&&l&4&&mm(n);case 26:case 5:Bn(e,n),t===null&&l&4&&dm(n),l&512&&Ms(n,n.return);break;case 12:Bn(e,n);break;case 31:Bn(e,n),l&4&&xm(e,n);break;case 13:Bn(e,n),l&4&&ym(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=nv.bind(null,n),wv(e,n))));break;case 22:if(l=n.memoizedState!==null||Hn,!l){t=t!==null&&t.memoizedState!==null||at,o=Hn;var u=at;Hn=l,(at=t)&&!u?Ln(e,n,(n.subtreeFlags&8772)!==0):Bn(e,n),Hn=o,at=u}break;case 30:break;default:Bn(e,n)}}function pm(e){var t=e.alternate;t!==null&&(e.alternate=null,pm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Lr(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 Xe=null,At=!1;function Un(e,t,n){for(n=n.child;n!==null;)vm(e,t,n),n=n.sibling}function vm(e,t,n){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(Oa,n)}catch{}switch(n.tag){case 26:at||bn(n,t),Un(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:at||bn(n,t);var l=Xe,o=At;pa(n.type)&&(Xe=n.stateNode,At=!1),Un(e,t,n),Bs(n.stateNode),Xe=l,At=o;break;case 5:at||bn(n,t);case 6:if(l=Xe,o=At,Xe=null,Un(e,t,n),Xe=l,At=o,Xe!==null)if(At)try{(Xe.nodeType===9?Xe.body:Xe.nodeName==="HTML"?Xe.ownerDocument.body:Xe).removeChild(n.stateNode)}catch(u){Be(n,t,u)}else try{Xe.removeChild(n.stateNode)}catch(u){Be(n,t,u)}break;case 18:Xe!==null&&(At?(e=Xe,ug(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ql(e)):ug(Xe,n.stateNode));break;case 4:l=Xe,o=At,Xe=n.stateNode.containerInfo,At=!0,Un(e,t,n),Xe=l,At=o;break;case 0:case 11:case 14:case 15:ua(2,n,t),at||ua(4,n,t),Un(e,t,n);break;case 1:at||(bn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&cm(n,t,l)),Un(e,t,n);break;case 21:Un(e,t,n);break;case 22:at=(l=at)||n.memoizedState!==null,Un(e,t,n),at=l;break;default:Un(e,t,n)}}function xm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ql(e)}catch(n){Be(t,t.return,n)}}}function ym(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ql(e)}catch(n){Be(t,t.return,n)}}function Z0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gm),t;default:throw Error(i(435,e.tag))}}function Yi(e,t){var n=Z0(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var o=av.bind(null,e,l);l.then(o,o)}})}function Dt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var o=n[l],u=e,g=t,y=g;e:for(;y!==null;){switch(y.tag){case 27:if(pa(y.type)){Xe=y.stateNode,At=!1;break e}break;case 5:Xe=y.stateNode,At=!1;break e;case 3:case 4:Xe=y.stateNode.containerInfo,At=!0;break e}y=y.return}if(Xe===null)throw Error(i(160));vm(u,g,o),Xe=null,At=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bm(t,e),t=t.sibling}var cn=null;function bm(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dt(t,e),Ot(e),l&4&&(ua(3,e,e.return),_s(3,e),ua(5,e,e.return));break;case 1:Dt(t,e),Ot(e),l&512&&(at||n===null||bn(n,n.return)),l&64&&Hn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var o=cn;if(Dt(t,e),Ot(e),l&512&&(at||n===null||bn(n,n.return)),l&4){var u=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":u=o.getElementsByTagName("title")[0],(!u||u[ns]||u[dt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(l),o.head.insertBefore(u,o.querySelector("head > title"))),ht(u,l,n),u[dt]=e,rt(u),l=u;break e;case"link":var g=bg("link","href",o).get(l+(n.href||""));if(g){for(var y=0;y<g.length;y++)if(u=g[y],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){g.splice(y,1);break t}}u=o.createElement(l),ht(u,l,n),o.head.appendChild(u);break;case"meta":if(g=bg("meta","content",o).get(l+(n.content||""))){for(y=0;y<g.length;y++)if(u=g[y],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){g.splice(y,1);break t}}u=o.createElement(l),ht(u,l,n),o.head.appendChild(u);break;default:throw Error(i(468,l))}u[dt]=e,rt(u),l=u}e.stateNode=l}else Sg(o,e.type,e.stateNode);else e.stateNode=yg(o,l,e.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?Sg(o,e.type,e.stateNode):yg(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&ru(e,e.memoizedProps,n.memoizedProps)}break;case 27:Dt(t,e),Ot(e),l&512&&(at||n===null||bn(n,n.return)),n!==null&&l&4&&ru(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Dt(t,e),Ot(e),l&512&&(at||n===null||bn(n,n.return)),e.flags&32){o=e.stateNode;try{fl(o,"")}catch(ie){Be(e,e.return,ie)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,ru(e,o,n!==null?n.memoizedProps:o)),l&1024&&(cu=!0);break;case 6:if(Dt(t,e),Ot(e),l&4){if(e.stateNode===null)throw Error(i(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ie){Be(e,e.return,ie)}}break;case 3:if(ir=null,o=cn,cn=lr(t.containerInfo),Dt(t,e),cn=o,Ot(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{ql(t.containerInfo)}catch(ie){Be(e,e.return,ie)}cu&&(cu=!1,Sm(e));break;case 4:l=cn,cn=lr(e.stateNode.containerInfo),Dt(t,e),Ot(e),cn=l;break;case 12:Dt(t,e),Ot(e);break;case 31:Dt(t,e),Ot(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yi(e,l)));break;case 13:Dt(t,e),Ot(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Xi=Ct()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yi(e,l)));break;case 22:o=e.memoizedState!==null;var C=n!==null&&n.memoizedState!==null,k=Hn,L=at;if(Hn=k||o,at=L||C,Dt(t,e),at=L,Hn=k,Ot(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||C||Hn||at||Wa(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){C=n=t;try{if(u=C.stateNode,o)g=u.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{y=C.stateNode;var $=C.memoizedProps.style,H=$!=null&&$.hasOwnProperty("display")?$.display:null;y.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(ie){Be(C,C.return,ie)}}}else if(t.tag===6){if(n===null){C=t;try{C.stateNode.nodeValue=o?"":C.memoizedProps}catch(ie){Be(C,C.return,ie)}}}else if(t.tag===18){if(n===null){C=t;try{var B=C.stateNode;o?cg(B,!0):cg(C.stateNode,!1)}catch(ie){Be(C,C.return,ie)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Yi(e,n))));break;case 19:Dt(t,e),Ot(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yi(e,l)));break;case 30:break;case 21:break;default:Dt(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(fm(l)){n=l;break}l=l.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var o=n.stateNode,u=ou(e);qi(e,u,o);break;case 5:var g=n.stateNode;n.flags&32&&(fl(g,""),n.flags&=-33);var y=ou(e);qi(e,y,g);break;case 3:case 4:var C=n.stateNode.containerInfo,k=ou(e);uu(e,k,C);break;default:throw Error(i(161))}}catch(L){Be(e,e.return,L)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Bn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)hm(e,t.alternate,t),t=t.sibling}function Wa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ua(4,t,t.return),Wa(t);break;case 1:bn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&cm(t,t.return,n),Wa(t);break;case 27:Bs(t.stateNode);case 26:case 5:bn(t,t.return),Wa(t);break;case 22:t.memoizedState===null&&Wa(t);break;case 30:Wa(t);break;default:Wa(t)}e=e.sibling}}function Ln(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,u=t,g=u.flags;switch(u.tag){case 0:case 11:case 15:Ln(o,u,n),_s(4,u);break;case 1:if(Ln(o,u,n),l=u,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(k){Be(l,l.return,k)}if(l=u,o=l.updateQueue,o!==null){var y=l.stateNode;try{var C=o.shared.hiddenCallbacks;if(C!==null)for(o.shared.hiddenCallbacks=null,o=0;o<C.length;o++)Id(C[o],y)}catch(k){Be(l,l.return,k)}}n&&g&64&&um(u),Ms(u,u.return);break;case 27:mm(u);case 26:case 5:Ln(o,u,n),n&&l===null&&g&4&&dm(u),Ms(u,u.return);break;case 12:Ln(o,u,n);break;case 31:Ln(o,u,n),n&&g&4&&xm(o,u);break;case 13:Ln(o,u,n),n&&g&4&&ym(o,u);break;case 22:u.memoizedState===null&&Ln(o,u,n),Ms(u,u.return);break;case 30:break;default:Ln(o,u,n)}t=t.sibling}}function du(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&hs(n))}function fu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hs(e))}function dn(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)wm(e,t,n,l),t=t.sibling}function wm(e,t,n,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:dn(e,t,n,l),o&2048&&_s(9,t);break;case 1:dn(e,t,n,l);break;case 3:dn(e,t,n,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hs(e)));break;case 12:if(o&2048){dn(e,t,n,l),e=t.stateNode;try{var u=t.memoizedProps,g=u.id,y=u.onPostCommit;typeof y=="function"&&y(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Be(t,t.return,C)}}else dn(e,t,n,l);break;case 31:dn(e,t,n,l);break;case 13:dn(e,t,n,l);break;case 23:break;case 22:u=t.stateNode,g=t.alternate,t.memoizedState!==null?u._visibility&2?dn(e,t,n,l):zs(e,t):u._visibility&2?dn(e,t,n,l):(u._visibility|=2,Al(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&du(g,t);break;case 24:dn(e,t,n,l),o&2048&&fu(t.alternate,t);break;default:dn(e,t,n,l)}}function Al(e,t,n,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,g=t,y=n,C=l,k=g.flags;switch(g.tag){case 0:case 11:case 15:Al(u,g,y,C,o),_s(8,g);break;case 23:break;case 22:var L=g.stateNode;g.memoizedState!==null?L._visibility&2?Al(u,g,y,C,o):zs(u,g):(L._visibility|=2,Al(u,g,y,C,o)),o&&k&2048&&du(g.alternate,g);break;case 24:Al(u,g,y,C,o),o&&k&2048&&fu(g.alternate,g);break;default:Al(u,g,y,C,o)}t=t.sibling}}function zs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,o=l.flags;switch(l.tag){case 22:zs(n,l),o&2048&&du(l.alternate,l);break;case 24:zs(n,l),o&2048&&fu(l.alternate,l);break;default:zs(n,l)}t=t.sibling}}var Ts=8192;function Dl(e,t,n){if(e.subtreeFlags&Ts)for(e=e.child;e!==null;)Nm(e,t,n),e=e.sibling}function Nm(e,t,n){switch(e.tag){case 26:Dl(e,t,n),e.flags&Ts&&e.memoizedState!==null&&Ov(n,cn,e.memoizedState,e.memoizedProps);break;case 5:Dl(e,t,n);break;case 3:case 4:var l=cn;cn=lr(e.stateNode.containerInfo),Dl(e,t,n),cn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Ts,Ts=16777216,Dl(e,t,n),Ts=l):Dl(e,t,n));break;default:Dl(e,t,n)}}function Cm(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 As(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];ot=l,Rm(l,e)}Cm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jm(e),e=e.sibling}function jm(e){switch(e.tag){case 0:case 11:case 15:As(e),e.flags&2048&&ua(9,e,e.return);break;case 3:As(e);break;case 12:As(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fi(e)):As(e);break;default:As(e)}}function Fi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];ot=l,Rm(l,e)}Cm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ua(8,t,t.return),Fi(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Fi(t));break;default:Fi(t)}e=e.sibling}}function Rm(e,t){for(;ot!==null;){var n=ot;switch(n.tag){case 0:case 11:case 15:ua(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:hs(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,ot=l;else e:for(n=e;ot!==null;){l=ot;var o=l.sibling,u=l.return;if(pm(l),l===n){ot=null;break e}if(o!==null){o.return=u,ot=o;break e}ot=u}}}var K0={getCacheForType:function(e){var t=mt(et),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return mt(et).controller.signal}},J0=typeof WeakMap=="function"?WeakMap:Map,He=0,$e=null,_e=null,Te=0,Ue=0,qt=null,ca=!1,Ol=!1,mu=!1,Vn=0,Ie=0,da=0,Pa=0,gu=0,Yt=0,kl=0,Ds=null,kt=null,hu=!1,Xi=0,Em=0,Qi=1/0,Zi=null,fa=null,lt=0,ma=null,Hl=null,Gn=0,pu=0,vu=null,_m=null,Os=0,xu=null;function Ft(){return(He&2)!==0&&Te!==0?Te&-Te:M.T!==null?Cu():Ur()}function Mm(){if(Yt===0)if((Te&536870912)===0||De){var e=ll;ll<<=1,(ll&3932160)===0&&(ll=262144),Yt=e}else Yt=536870912;return e=Gt.current,e!==null&&(e.flags|=32),Yt}function Ht(e,t,n){(e===$e&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)&&(Ul(e,0),ga(e,Te,Yt,!1)),Ke(e,n),((He&2)===0||e!==$e)&&(e===$e&&((He&2)===0&&(Pa|=n),Ie===4&&ga(e,Te,Yt,!1)),Sn(e))}function zm(e,t,n){if((He&6)!==0)throw Error(i(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Fe(e,t),o=l?P0(e,t):bu(e,t,!0),u=l;do{if(o===0){Ol&&!l&&ga(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!I0(n)){o=bu(e,t,!1),u=!1;continue}if(o===2){if(u=t,e.errorRecoveryDisabledLanes&u)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var y=e;o=Ds;var C=y.current.memoizedState.isDehydrated;if(C&&(Ul(y,g).flags|=256),g=bu(y,g,!1),g!==2){if(mu&&!C){y.errorRecoveryDisabledLanes|=u,Pa|=u,o=4;break e}u=kt,kt=o,u!==null&&(kt===null?kt=u:kt.push.apply(kt,u))}o=g}if(u=!1,o!==2)continue}}if(o===1){Ul(e,0),ga(e,t,0,!0);break}e:{switch(l=e,u=o,u){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:ga(l,t,Yt,!ca);break e;case 2:kt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(o=Xi+300-Ct(),10<o)){if(ga(l,t,Yt,!ca),we(l,0,!0)!==0)break e;Gn=t,l.timeoutHandle=rg(Tm.bind(null,l,n,kt,Zi,hu,t,Yt,Pa,kl,ca,u,"Throttled",-0,0),o);break e}Tm(l,n,kt,Zi,hu,t,Yt,Pa,kl,ca,u,null,-0,0)}}break}while(!0);Sn(e)}function Tm(e,t,n,l,o,u,g,y,C,k,L,$,H,B){if(e.timeoutHandle=-1,$=t.subtreeFlags,$&8192||($&16785408)===16785408){$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Rn},Nm(t,u,$);var ie=(u&62914560)===u?Xi-Ct():(u&4194048)===u?Em-Ct():0;if(ie=kv($,ie),ie!==null){Gn=u,e.cancelPendingCommit=ie(Lm.bind(null,e,t,u,n,l,o,g,y,C,L,$,null,H,B)),ga(e,u,g,!k);return}}Lm(e,t,u,n,l,o,g,y,C)}function I0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var o=n[l],u=o.getSnapshot;o=o.value;try{if(!Lt(u(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 ga(e,t,n,l){t&=~gu,t&=~Pa,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var u=31-xt(o),g=1<<u;l[u]=-1,o&=~g}n!==0&&Ha(e,n,t)}function Ki(){return(He&6)===0?(ks(0),!1):!0}function yu(){if(_e!==null){if(Ue===0)var e=_e.return;else e=_e,zn=Ya=null,ko(e),El=null,vs=0,e=_e;for(;e!==null;)om(e.alternate,e),e=e.return;_e=null}}function Ul(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,vv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Gn=0,yu(),$e=e,_e=n=_n(e.current,null),Te=t,Ue=0,qt=null,ca=!1,Ol=Fe(e,t),mu=!1,kl=Yt=gu=Pa=da=Ie=0,kt=Ds=null,hu=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-xt(l),u=1<<o;t|=e[o],l&=~u}return Vn=t,pi(),n}function Am(e,t){Ce=null,M.H=js,t===Rl||t===Ci?(t=Qd(),Ue=3):t===No?(t=Qd(),Ue=4):Ue=t===Io?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,qt=t,_e===null&&(Ie=1,Bi(e,Wt(t,e.current)))}function Dm(){var e=Gt.current;return e===null?!0:(Te&4194048)===Te?nn===null:(Te&62914560)===Te||(Te&536870912)!==0?e===nn:!1}function Om(){var e=M.H;return M.H=js,e===null?js:e}function km(){var e=M.A;return M.A=K0,e}function Ji(){Ie=4,ca||(Te&4194048)!==Te&&Gt.current!==null||(Ol=!0),(da&134217727)===0&&(Pa&134217727)===0||$e===null||ga($e,Te,Yt,!1)}function bu(e,t,n){var l=He;He|=2;var o=Om(),u=km();($e!==e||Te!==t)&&(Zi=null,Ul(e,t)),t=!1;var g=Ie;e:do try{if(Ue!==0&&_e!==null){var y=_e,C=qt;switch(Ue){case 8:yu(),g=6;break e;case 3:case 2:case 9:case 6:Gt.current===null&&(t=!0);var k=Ue;if(Ue=0,qt=null,Bl(e,y,C,k),n&&Ol){g=0;break e}break;default:k=Ue,Ue=0,qt=null,Bl(e,y,C,k)}}W0(),g=Ie;break}catch(L){Am(e,L)}while(!0);return t&&e.shellSuspendCounter++,zn=Ya=null,He=l,M.H=o,M.A=u,_e===null&&($e=null,Te=0,pi()),g}function W0(){for(;_e!==null;)Hm(_e)}function P0(e,t){var n=He;He|=2;var l=Om(),o=km();$e!==e||Te!==t?(Zi=null,Qi=Ct()+500,Ul(e,t)):Ol=Fe(e,t);e:do try{if(Ue!==0&&_e!==null){t=_e;var u=qt;t:switch(Ue){case 1:Ue=0,qt=null,Bl(e,t,u,1);break;case 2:case 9:if(Fd(u)){Ue=0,qt=null,Um(t);break}t=function(){Ue!==2&&Ue!==9||$e!==e||(Ue=7),Sn(e)},u.then(t,t);break e;case 3:Ue=7;break e;case 4:Ue=5;break e;case 7:Fd(u)?(Ue=0,qt=null,Um(t)):(Ue=0,qt=null,Bl(e,t,u,7));break;case 5:var g=null;switch(_e.tag){case 26:g=_e.memoizedState;case 5:case 27:var y=_e;if(g?wg(g):y.stateNode.complete){Ue=0,qt=null;var C=y.sibling;if(C!==null)_e=C;else{var k=y.return;k!==null?(_e=k,Ii(k)):_e=null}break t}}Ue=0,qt=null,Bl(e,t,u,5);break;case 6:Ue=0,qt=null,Bl(e,t,u,6);break;case 8:yu(),Ie=6;break e;default:throw Error(i(462))}}ev();break}catch(L){Am(e,L)}while(!0);return zn=Ya=null,M.H=l,M.A=o,He=n,_e!==null?0:($e=null,Te=0,pi(),Ie)}function ev(){for(;_e!==null&&!Nt();)Hm(_e)}function Hm(e){var t=im(e.alternate,e,Vn);e.memoizedProps=e.pendingProps,t===null?Ii(e):_e=t}function Um(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=em(n,t,t.pendingProps,t.type,void 0,Te);break;case 11:t=em(n,t,t.pendingProps,t.type.render,t.ref,Te);break;case 5:ko(t);default:om(n,t),t=_e=Od(t,Vn),t=im(n,t,Vn)}e.memoizedProps=e.pendingProps,t===null?Ii(e):_e=t}function Bl(e,t,n,l){zn=Ya=null,ko(t),El=null,vs=0;var o=t.return;try{if($0(e,o,t,n,Te)){Ie=1,Bi(e,Wt(n,e.current)),_e=null;return}}catch(u){if(o!==null)throw _e=o,u;Ie=1,Bi(e,Wt(n,e.current)),_e=null;return}t.flags&32768?(De||l===1?e=!0:Ol||(Te&536870912)!==0?e=!1:(ca=e=!0,(l===2||l===9||l===3||l===6)&&(l=Gt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Bm(t,e)):Ii(t)}function Ii(e){var t=e;do{if((t.flags&32768)!==0){Bm(t,ca);return}e=t.return;var n=F0(t.alternate,t,Vn);if(n!==null){_e=n;return}if(t=t.sibling,t!==null){_e=t;return}_e=t=e}while(t!==null);Ie===0&&(Ie=5)}function Bm(e,t){do{var n=X0(e.alternate,e);if(n!==null){n.flags&=32767,_e=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){_e=e;return}_e=e=n}while(e!==null);Ie=6,_e=null}function Lm(e,t,n,l,o,u,g,y,C){e.cancelPendingCommit=null;do Wi();while(lt!==0);if((He&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(u=t.lanes|t.childLanes,u|=ro,Et(e,n,u,g,y,C),e===$e&&(_e=$e=null,Te=0),Hl=t,ma=e,Gn=n,pu=u,vu=o,_m=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,lv(Da,function(){return Ym(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null,o=G.p,G.p=2,g=He,He|=4;try{Q0(e,t,n)}finally{He=g,G.p=o,M.T=l}}lt=1,Vm(),Gm(),$m()}}function Vm(){if(lt===1){lt=0;var e=ma,t=Hl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=M.T,M.T=null;var l=G.p;G.p=2;var o=He;He|=4;try{bm(t,e);var u=Au,g=jd(e.containerInfo),y=u.focusedElem,C=u.selectionRange;if(g!==y&&y&&y.ownerDocument&&Cd(y.ownerDocument.documentElement,y)){if(C!==null&&no(y)){var k=C.start,L=C.end;if(L===void 0&&(L=k),"selectionStart"in y)y.selectionStart=k,y.selectionEnd=Math.min(L,y.value.length);else{var $=y.ownerDocument||document,H=$&&$.defaultView||window;if(H.getSelection){var B=H.getSelection(),ie=y.textContent.length,xe=Math.min(C.start,ie),Ge=C.end===void 0?xe:Math.min(C.end,ie);!B.extend&&xe>Ge&&(g=Ge,Ge=xe,xe=g);var T=Nd(y,xe),E=Nd(y,Ge);if(T&&E&&(B.rangeCount!==1||B.anchorNode!==T.node||B.anchorOffset!==T.offset||B.focusNode!==E.node||B.focusOffset!==E.offset)){var O=$.createRange();O.setStart(T.node,T.offset),B.removeAllRanges(),xe>Ge?(B.addRange(O),B.extend(E.node,E.offset)):(O.setEnd(E.node,E.offset),B.addRange(O))}}}}for($=[],B=y;B=B.parentNode;)B.nodeType===1&&$.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<$.length;y++){var V=$[y];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}cr=!!Tu,Au=Tu=null}finally{He=o,G.p=l,M.T=n}}e.current=t,lt=2}}function Gm(){if(lt===2){lt=0;var e=ma,t=Hl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=M.T,M.T=null;var l=G.p;G.p=2;var o=He;He|=4;try{hm(e,t.alternate,t)}finally{He=o,G.p=l,M.T=n}}lt=3}}function $m(){if(lt===4||lt===3){lt=0,Kn();var e=ma,t=Hl,n=Gn,l=_m;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,Hl=ma=null,qm(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(fa=null),on(n),t=t.stateNode,jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(Oa,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=M.T,o=G.p,G.p=2,M.T=null;try{for(var u=e.onRecoverableError,g=0;g<l.length;g++){var y=l[g];u(y.value,{componentStack:y.stack})}}finally{M.T=t,G.p=o}}(Gn&3)!==0&&Wi(),Sn(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===xu?Os++:(Os=0,xu=e):Os=0,ks(0)}}function qm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,hs(t)))}function Wi(){return Vm(),Gm(),$m(),Ym()}function Ym(){if(lt!==5)return!1;var e=ma,t=pu;pu=0;var n=on(Gn),l=M.T,o=G.p;try{G.p=32>n?32:n,M.T=null,n=vu,vu=null;var u=ma,g=Gn;if(lt=0,Hl=ma=null,Gn=0,(He&6)!==0)throw Error(i(331));var y=He;if(He|=4,jm(u.current),wm(u,u.current,g,n),He=y,ks(0,!1),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(Oa,u)}catch{}return!0}finally{G.p=o,M.T=l,qm(e,t)}}function Fm(e,t,n){t=Wt(n,t),t=Jo(e.stateNode,t,2),e=ia(e,t,2),e!==null&&(Ke(e,2),Sn(e))}function Be(e,t,n){if(e.tag===3)Fm(e,e,n);else for(;t!==null;){if(t.tag===3){Fm(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(fa===null||!fa.has(l))){e=Wt(n,e),n=Xf(2),l=ia(t,n,2),l!==null&&(Qf(n,l,t,e),Ke(l,2),Sn(l));break}}t=t.return}}function Su(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new J0;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(n)||(mu=!0,o.add(n),e=tv.bind(null,e,t,n),t.then(e,e))}function tv(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,$e===e&&(Te&n)===n&&(Ie===4||Ie===3&&(Te&62914560)===Te&&300>Ct()-Xi?(He&2)===0&&Ul(e,0):gu|=n,kl===Te&&(kl=0)),Sn(e)}function Xm(e,t){t===0&&(t=yt()),e=Ga(e,t),e!==null&&(Ke(e,t),Sn(e))}function nv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xm(e,n)}function av(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(i(314))}l!==null&&l.delete(t),Xm(e,n)}function lv(e,t){return Wl(e,t)}var Pi=null,Ll=null,wu=!1,er=!1,Nu=!1,ha=0;function Sn(e){e!==Ll&&e.next===null&&(Ll===null?Pi=Ll=e:Ll=Ll.next=e),er=!0,wu||(wu=!0,iv())}function ks(e,t){if(!Nu&&er){Nu=!0;do for(var n=!1,l=Pi;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var u=0;else{var g=l.suspendedLanes,y=l.pingedLanes;u=(1<<31-xt(42|e)+1)-1,u&=o&~(g&~y),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Jm(l,u))}else u=Te,u=we(l,l===$e?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||Fe(l,u)||(n=!0,Jm(l,u));l=l.next}while(n);Nu=!1}}function sv(){Qm()}function Qm(){er=wu=!1;var e=0;ha!==0&&pv()&&(e=ha);for(var t=Ct(),n=null,l=Pi;l!==null;){var o=l.next,u=Zm(l,t);u===0?(l.next=null,n===null?Pi=o:n.next=o,o===null&&(Ll=n)):(n=l,(e!==0||(u&3)!==0)&&(er=!0)),l=o}lt!==0&&lt!==5||ks(e),ha!==0&&(ha=0)}function Zm(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var g=31-xt(u),y=1<<g,C=o[g];C===-1?((y&n)===0||(y&l)!==0)&&(o[g]=it(y,t)):C<=t&&(e.expiredLanes|=y),u&=~y}if(t=$e,n=Te,n=we(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Pl(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Fe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Pl(l),on(n)){case 2:case 8:n=ai;break;case 32:n=Da;break;case 268435456:n=Cn;break;default:n=Da}return l=Km.bind(null,e),n=Wl(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Pl(l),e.callbackPriority=2,e.callbackNode=null,2}function Km(e,t){if(lt!==0&&lt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Wi()&&e.callbackNode!==n)return null;var l=Te;return l=we(e,e===$e?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(zm(e,l,t),Zm(e,Ct()),e.callbackNode!=null&&e.callbackNode===n?Km.bind(null,e):null)}function Jm(e,t){if(Wi())return null;zm(e,t,!0)}function iv(){xv(function(){(He&6)!==0?Wl(Aa,sv):Qm()})}function Cu(){if(ha===0){var e=Cl;e===0&&(e=al,al<<=1,(al&261888)===0&&(al=256)),ha=e}return ha}function Im(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:oi(""+e)}function Wm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function rv(e,t,n,l,o){if(t==="submit"&&n&&n.stateNode===o){var u=Im((o[zt]||null).action),g=l.submitter;g&&(t=(t=g[zt]||null)?Im(t.formAction):g.getAttribute("formAction"),t!==null&&(u=t,g=null));var y=new fi("action","action",null,l,o);e.push({event:y,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ha!==0){var C=g?Wm(o,g):new FormData(o);Yo(n,{pending:!0,data:C,method:o.method,action:u},null,C)}}else typeof u=="function"&&(y.preventDefault(),C=g?Wm(o,g):new FormData(o),Yo(n,{pending:!0,data:C,method:o.method,action:u},u,C))},currentTarget:o}]})}}for(var ju=0;ju<io.length;ju++){var Ru=io[ju],ov=Ru.toLowerCase(),uv=Ru[0].toUpperCase()+Ru.slice(1);un(ov,"on"+uv)}un(_d,"onAnimationEnd"),un(Md,"onAnimationIteration"),un(zd,"onAnimationStart"),un("dblclick","onDoubleClick"),un("focusin","onFocus"),un("focusout","onBlur"),un(j0,"onTransitionRun"),un(R0,"onTransitionStart"),un(E0,"onTransitionCancel"),un(Td,"onTransitionEnd"),cl("onMouseEnter",["mouseout","mouseover"]),cl("onMouseLeave",["mouseout","mouseover"]),cl("onPointerEnter",["pointerout","pointerover"]),cl("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 Hs="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(" "),cv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hs));function Pm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],o=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var g=l.length-1;0<=g;g--){var y=l[g],C=y.instance,k=y.currentTarget;if(y=y.listener,C!==u&&o.isPropagationStopped())break e;u=y,o.currentTarget=k;try{u(o)}catch(L){hi(L)}o.currentTarget=null,u=C}else for(g=0;g<l.length;g++){if(y=l[g],C=y.instance,k=y.currentTarget,y=y.listener,C!==u&&o.isPropagationStopped())break e;u=y,o.currentTarget=k;try{u(o)}catch(L){hi(L)}o.currentTarget=null,u=C}}}}function Me(e,t){var n=t[Br];n===void 0&&(n=t[Br]=new Set);var l=e+"__bubble";n.has(l)||(eg(t,e,2,!1),n.add(l))}function Eu(e,t,n){var l=0;t&&(l|=4),eg(n,e,l,t)}var tr="_reactListening"+Math.random().toString(36).slice(2);function _u(e){if(!e[tr]){e[tr]=!0,Xc.forEach(function(n){n!=="selectionchange"&&(cv.has(n)||Eu(n,!1,e),Eu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[tr]||(t[tr]=!0,Eu("selectionchange",!1,t))}}function eg(e,t,n,l){switch(Mg(t)){case 2:var o=Bv;break;case 8:o=Lv;break;default:o=qu}n=o.bind(null,t,n,e),o=void 0,!Qr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Mu(e,t,n,l,o){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var y=l.stateNode.containerInfo;if(y===o)break;if(g===4)for(g=l.return;g!==null;){var C=g.tag;if((C===3||C===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;y!==null;){if(g=rl(y),g===null)return;if(C=g.tag,C===5||C===6||C===26||C===27){l=u=g;continue e}y=y.parentNode}}l=l.return}ld(function(){var k=u,L=Fr(n),$=[];e:{var H=Ad.get(e);if(H!==void 0){var B=fi,ie=e;switch(e){case"keypress":if(ci(n)===0)break e;case"keydown":case"keyup":B=a0;break;case"focusin":ie="focus",B=Ir;break;case"focusout":ie="blur",B=Ir;break;case"beforeblur":case"afterblur":B=Ir;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=rd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=Fp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=i0;break;case _d:case Md:case zd:B=Zp;break;case Td:B=o0;break;case"scroll":case"scrollend":B=qp;break;case"wheel":B=c0;break;case"copy":case"cut":case"paste":B=Jp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=ud;break;case"toggle":case"beforetoggle":B=f0}var xe=(t&4)!==0,Ge=!xe&&(e==="scroll"||e==="scrollend"),T=xe?H!==null?H+"Capture":null:H;xe=[];for(var E=k,O;E!==null;){var V=E;if(O=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||O===null||T===null||(V=ls(E,T),V!=null&&xe.push(Us(E,V,O))),Ge)break;E=E.return}0<xe.length&&(H=new B(H,ie,null,n,L),$.push({event:H,listeners:xe}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",H&&n!==Yr&&(ie=n.relatedTarget||n.fromElement)&&(rl(ie)||ie[il]))break e;if((B||H)&&(H=L.window===L?L:(H=L.ownerDocument)?H.defaultView||H.parentWindow:window,B?(ie=n.relatedTarget||n.toElement,B=k,ie=ie?rl(ie):null,ie!==null&&(Ge=f(ie),xe=ie.tag,ie!==Ge||xe!==5&&xe!==27&&xe!==6)&&(ie=null)):(B=null,ie=k),B!==ie)){if(xe=rd,V="onMouseLeave",T="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(xe=ud,V="onPointerLeave",T="onPointerEnter",E="pointer"),Ge=B==null?H:as(B),O=ie==null?H:as(ie),H=new xe(V,E+"leave",B,n,L),H.target=Ge,H.relatedTarget=O,V=null,rl(L)===k&&(xe=new xe(T,E+"enter",ie,n,L),xe.target=O,xe.relatedTarget=Ge,V=xe),Ge=V,B&&ie)t:{for(xe=dv,T=B,E=ie,O=0,V=T;V;V=xe(V))O++;V=0;for(var ge=E;ge;ge=xe(ge))V++;for(;0<O-V;)T=xe(T),O--;for(;0<V-O;)E=xe(E),V--;for(;O--;){if(T===E||E!==null&&T===E.alternate){xe=T;break t}T=xe(T),E=xe(E)}xe=null}else xe=null;B!==null&&tg($,H,B,xe,!1),ie!==null&&Ge!==null&&tg($,Ge,ie,xe,!0)}}e:{if(H=k?as(k):window,B=H.nodeName&&H.nodeName.toLowerCase(),B==="select"||B==="input"&&H.type==="file")var Oe=vd;else if(hd(H))if(xd)Oe=w0;else{Oe=b0;var ce=y0}else B=H.nodeName,!B||B.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?k&&qr(k.elementType)&&(Oe=vd):Oe=S0;if(Oe&&(Oe=Oe(e,k))){pd($,Oe,n,L);break e}ce&&ce(e,H,k),e==="focusout"&&k&&H.type==="number"&&k.memoizedProps.value!=null&&$r(H,"number",H.value)}switch(ce=k?as(k):window,e){case"focusin":(hd(ce)||ce.contentEditable==="true")&&(pl=ce,ao=k,fs=null);break;case"focusout":fs=ao=pl=null;break;case"mousedown":lo=!0;break;case"contextmenu":case"mouseup":case"dragend":lo=!1,Rd($,n,L);break;case"selectionchange":if(C0)break;case"keydown":case"keyup":Rd($,n,L)}var je;if(Pr)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else hl?md(e,n)&&(Ae="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ae="onCompositionStart");Ae&&(cd&&n.locale!=="ko"&&(hl||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&hl&&(je=sd()):(Pn=L,Zr="value"in Pn?Pn.value:Pn.textContent,hl=!0)),ce=nr(k,Ae),0<ce.length&&(Ae=new od(Ae,e,null,n,L),$.push({event:Ae,listeners:ce}),je?Ae.data=je:(je=gd(n),je!==null&&(Ae.data=je)))),(je=g0?h0(e,n):p0(e,n))&&(Ae=nr(k,"onBeforeInput"),0<Ae.length&&(ce=new od("onBeforeInput","beforeinput",null,n,L),$.push({event:ce,listeners:Ae}),ce.data=je)),rv($,e,k,n,L)}Pm($,t)})}function Us(e,t,n){return{instance:e,listener:t,currentTarget:n}}function nr(e,t){for(var n=t+"Capture",l=[];e!==null;){var o=e,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=ls(e,n),o!=null&&l.unshift(Us(e,o,u)),o=ls(e,t),o!=null&&l.push(Us(e,o,u))),e.tag===3)return l;e=e.return}return[]}function dv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tg(e,t,n,l,o){for(var u=t._reactName,g=[];n!==null&&n!==l;){var y=n,C=y.alternate,k=y.stateNode;if(y=y.tag,C!==null&&C===l)break;y!==5&&y!==26&&y!==27||k===null||(C=k,o?(k=ls(n,u),k!=null&&g.unshift(Us(n,k,C))):o||(k=ls(n,u),k!=null&&g.push(Us(n,k,C)))),n=n.return}g.length!==0&&e.push({event:t,listeners:g})}var fv=/\r\n?/g,mv=/\u0000|\uFFFD/g;function ng(e){return(typeof e=="string"?e:""+e).replace(fv,`
49
+ `).replace(mv,"")}function ag(e,t){return t=ng(t),ng(e)===t}function Ve(e,t,n,l,o,u){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||fl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&fl(e,""+l);break;case"className":ii(e,"class",l);break;case"tabIndex":ii(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ii(e,n,l);break;case"style":nd(e,l,u);break;case"data":if(t!=="object"){ii(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=oi(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"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 u=="function"&&(n==="formAction"?(t!=="input"&&Ve(e,t,"name",o.name,o,null),Ve(e,t,"formEncType",o.formEncType,o,null),Ve(e,t,"formMethod",o.formMethod,o,null),Ve(e,t,"formTarget",o.formTarget,o,null)):(Ve(e,t,"encType",o.encType,o,null),Ve(e,t,"method",o.method,o,null),Ve(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=oi(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=Rn);break;case"onScroll":l!=null&&Me("scroll",e);break;case"onScrollEnd":l!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(i(60));e.innerHTML=n}}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}n=oi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);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(n,""+l):e.removeAttribute(n);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(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":Me("beforetoggle",e),Me("toggle",e),si(e,"popover",l);break;case"xlinkActuate":jn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":jn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":jn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":jn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":jn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":jn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":jn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":jn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":jn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":si(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Gp.get(n)||n,si(e,n,l))}}function zu(e,t,n,l,o,u){switch(n){case"style":nd(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(i(60));e.innerHTML=n}}break;case"children":typeof l=="string"?fl(e,l):(typeof l=="number"||typeof l=="bigint")&&fl(e,""+l);break;case"onScroll":l!=null&&Me("scroll",e);break;case"onScrollEnd":l!=null&&Me("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Rn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qc.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),u=e[zt]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,o),typeof l=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,o);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):si(e,n,l)}}}function ht(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var l=!1,o=!1,u;for(u in n)if(n.hasOwnProperty(u)){var g=n[u];if(g!=null)switch(u){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ve(e,t,u,g,n,null)}}o&&Ve(e,t,"srcSet",n.srcSet,n,null),l&&Ve(e,t,"src",n.src,n,null);return;case"input":Me("invalid",e);var y=u=g=o=null,C=null,k=null;for(l in n)if(n.hasOwnProperty(l)){var L=n[l];if(L!=null)switch(l){case"name":o=L;break;case"type":g=L;break;case"checked":C=L;break;case"defaultChecked":k=L;break;case"value":u=L;break;case"defaultValue":y=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(i(137,t));break;default:Ve(e,t,l,L,n,null)}}Wc(e,u,y,C,k,g,o,!1);return;case"select":Me("invalid",e),l=g=u=null;for(o in n)if(n.hasOwnProperty(o)&&(y=n[o],y!=null))switch(o){case"value":u=y;break;case"defaultValue":g=y;break;case"multiple":l=y;default:Ve(e,t,o,y,n,null)}t=u,n=g,e.multiple=!!l,t!=null?dl(e,!!l,t,!1):n!=null&&dl(e,!!l,n,!0);return;case"textarea":Me("invalid",e),u=o=l=null;for(g in n)if(n.hasOwnProperty(g)&&(y=n[g],y!=null))switch(g){case"value":l=y;break;case"defaultValue":o=y;break;case"children":u=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(i(91));break;default:Ve(e,t,g,y,n,null)}ed(e,l,o,u);return;case"option":for(C in n)if(n.hasOwnProperty(C)&&(l=n[C],l!=null))switch(C){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ve(e,t,C,l,n,null)}return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(l=0;l<Hs.length;l++)Me(Hs[l],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("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(k in n)if(n.hasOwnProperty(k)&&(l=n[k],l!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ve(e,t,k,l,n,null)}return;default:if(qr(t)){for(L in n)n.hasOwnProperty(L)&&(l=n[L],l!==void 0&&zu(e,t,L,l,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(l=n[y],l!=null&&Ve(e,t,y,l,n,null))}function gv(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,g=null,y=null,C=null,k=null,L=null;for(B in n){var $=n[B];if(n.hasOwnProperty(B)&&$!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":C=$;default:l.hasOwnProperty(B)||Ve(e,t,B,null,l,$)}}for(var H in l){var B=l[H];if($=n[H],l.hasOwnProperty(H)&&(B!=null||$!=null))switch(H){case"type":u=B;break;case"name":o=B;break;case"checked":k=B;break;case"defaultChecked":L=B;break;case"value":g=B;break;case"defaultValue":y=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(i(137,t));break;default:B!==$&&Ve(e,t,H,B,l,$)}}Gr(e,g,y,C,k,L,u,o);return;case"select":B=g=y=H=null;for(u in n)if(C=n[u],n.hasOwnProperty(u)&&C!=null)switch(u){case"value":break;case"multiple":B=C;default:l.hasOwnProperty(u)||Ve(e,t,u,null,l,C)}for(o in l)if(u=l[o],C=n[o],l.hasOwnProperty(o)&&(u!=null||C!=null))switch(o){case"value":H=u;break;case"defaultValue":y=u;break;case"multiple":g=u;default:u!==C&&Ve(e,t,o,u,l,C)}t=y,n=g,l=B,H!=null?dl(e,!!n,H,!1):!!l!=!!n&&(t!=null?dl(e,!!n,t,!0):dl(e,!!n,n?[]:"",!1));return;case"textarea":B=H=null;for(y in n)if(o=n[y],n.hasOwnProperty(y)&&o!=null&&!l.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Ve(e,t,y,null,l,o)}for(g in l)if(o=l[g],u=n[g],l.hasOwnProperty(g)&&(o!=null||u!=null))switch(g){case"value":H=o;break;case"defaultValue":B=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(i(91));break;default:o!==u&&Ve(e,t,g,o,l,u)}Pc(e,H,B);return;case"option":for(var ie in n)if(H=n[ie],n.hasOwnProperty(ie)&&H!=null&&!l.hasOwnProperty(ie))switch(ie){case"selected":e.selected=!1;break;default:Ve(e,t,ie,null,l,H)}for(C in l)if(H=l[C],B=n[C],l.hasOwnProperty(C)&&H!==B&&(H!=null||B!=null))switch(C){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Ve(e,t,C,H,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 xe in n)H=n[xe],n.hasOwnProperty(xe)&&H!=null&&!l.hasOwnProperty(xe)&&Ve(e,t,xe,null,l,H);for(k in l)if(H=l[k],B=n[k],l.hasOwnProperty(k)&&H!==B&&(H!=null||B!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(i(137,t));break;default:Ve(e,t,k,H,l,B)}return;default:if(qr(t)){for(var Ge in n)H=n[Ge],n.hasOwnProperty(Ge)&&H!==void 0&&!l.hasOwnProperty(Ge)&&zu(e,t,Ge,void 0,l,H);for(L in l)H=l[L],B=n[L],!l.hasOwnProperty(L)||H===B||H===void 0&&B===void 0||zu(e,t,L,H,l,B);return}}for(var T in n)H=n[T],n.hasOwnProperty(T)&&H!=null&&!l.hasOwnProperty(T)&&Ve(e,t,T,null,l,H);for($ in l)H=l[$],B=n[$],!l.hasOwnProperty($)||H===B||H==null&&B==null||Ve(e,t,$,H,l,B)}function lg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var o=n[l],u=o.transferSize,g=o.initiatorType,y=o.duration;if(u&&y&&lg(g)){for(g=0,y=o.responseEnd,l+=1;l<n.length;l++){var C=n[l],k=C.startTime;if(k>y)break;var L=C.transferSize,$=C.initiatorType;L&&lg($)&&(C=C.responseEnd,g+=L*(C<y?1:(y-k)/(C-k)))}if(--l,t+=8*(u+g)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Tu=null,Au=null;function ar(e){return e.nodeType===9?e:e.ownerDocument}function sg(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 ig(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 Du(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 Ou=null;function pv(){var e=window.event;return e&&e.type==="popstate"?e===Ou?!1:(Ou=e,!0):(Ou=null,!1)}var rg=typeof setTimeout=="function"?setTimeout:void 0,vv=typeof clearTimeout=="function"?clearTimeout:void 0,og=typeof Promise=="function"?Promise:void 0,xv=typeof queueMicrotask=="function"?queueMicrotask:typeof og<"u"?function(e){return og.resolve(null).then(e).catch(yv)}:rg;function yv(e){setTimeout(function(){throw e})}function pa(e){return e==="head"}function ug(e,t){var n=t,l=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(o),ql(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Bs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Bs(n);for(var u=n.firstChild;u;){var g=u.nextSibling,y=u.nodeName;u[ns]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=g}}else n==="body"&&Bs(e.ownerDocument.body);n=o}while(n);ql(t)}function cg(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function ku(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ku(n),Lr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function bv(e,t,n,l){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ns])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=an(e.nextSibling),e===null)break}return null}function Sv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=an(e.nextSibling),e===null))return null;return e}function dg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=an(e.nextSibling),e===null))return null;return e}function Hu(e){return e.data==="$?"||e.data==="$~"}function Uu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function wv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function an(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==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Bu=null;function fg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return an(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function mg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function gg(e,t,n){switch(t=ar(n),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Bs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Lr(e)}var ln=new Map,hg=new Set;function lr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var $n=G.d;G.d={f:Nv,r:Cv,D:jv,C:Rv,L:Ev,m:_v,X:zv,S:Mv,M:Tv};function Nv(){var e=$n.f(),t=Ki();return e||t}function Cv(e){var t=ol(e);t!==null&&t.tag===5&&t.type==="form"?Af(t):$n.r(e)}var Vl=typeof document>"u"?null:document;function pg(e,t,n){var l=Vl;if(l&&typeof t=="string"&&t){var o=Jt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),hg.has(o)||(hg.add(o),e={rel:e,crossOrigin:n,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),ht(t,"link",e),rt(t),l.head.appendChild(t)))}}function jv(e){$n.D(e),pg("dns-prefetch",e,null)}function Rv(e,t){$n.C(e,t),pg("preconnect",e,t)}function Ev(e,t,n){$n.L(e,t,n);var l=Vl;if(l&&e&&t){var o='link[rel="preload"][as="'+Jt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Jt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Jt(n.imageSizes)+'"]')):o+='[href="'+Jt(e)+'"]';var u=o;switch(t){case"style":u=Gl(e);break;case"script":u=$l(e)}ln.has(u)||(e=p({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ln.set(u,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(Ls(u))||t==="script"&&l.querySelector(Vs(u))||(t=l.createElement("link"),ht(t,"link",e),rt(t),l.head.appendChild(t)))}}function _v(e,t){$n.m(e,t);var n=Vl;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Jt(l)+'"][href="'+Jt(e)+'"]',u=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=$l(e)}if(!ln.has(u)&&(e=p({rel:"modulepreload",href:e},t),ln.set(u,e),n.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Vs(u)))return}l=n.createElement("link"),ht(l,"link",e),rt(l),n.head.appendChild(l)}}}function Mv(e,t,n){$n.S(e,t,n);var l=Vl;if(l&&e){var o=ul(l).hoistableStyles,u=Gl(e);t=t||"default";var g=o.get(u);if(!g){var y={loading:0,preload:null};if(g=l.querySelector(Ls(u)))y.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ln.get(u))&&Lu(e,n);var C=g=l.createElement("link");rt(C),ht(C,"link",e),C._p=new Promise(function(k,L){C.onload=k,C.onerror=L}),C.addEventListener("load",function(){y.loading|=1}),C.addEventListener("error",function(){y.loading|=2}),y.loading|=4,sr(g,t,l)}g={type:"stylesheet",instance:g,count:1,state:y},o.set(u,g)}}}function zv(e,t){$n.X(e,t);var n=Vl;if(n&&e){var l=ul(n).hoistableScripts,o=$l(e),u=l.get(o);u||(u=n.querySelector(Vs(o)),u||(e=p({src:e,async:!0},t),(t=ln.get(o))&&Vu(e,t),u=n.createElement("script"),rt(u),ht(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(o,u))}}function Tv(e,t){$n.M(e,t);var n=Vl;if(n&&e){var l=ul(n).hoistableScripts,o=$l(e),u=l.get(o);u||(u=n.querySelector(Vs(o)),u||(e=p({src:e,async:!0,type:"module"},t),(t=ln.get(o))&&Vu(e,t),u=n.createElement("script"),rt(u),ht(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(o,u))}}function vg(e,t,n,l){var o=(o=ne.current)?lr(o):null;if(!o)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Gl(n.href),n=ul(o).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Gl(n.href);var u=ul(o).hoistableStyles,g=u.get(e);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,g),(u=o.querySelector(Ls(e)))&&!u._p&&(g.instance=u,g.state.loading=5),ln.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ln.set(e,n),u||Av(o,e,n,g.state))),t&&l===null)throw Error(i(528,""));return g}if(t&&l!==null)throw Error(i(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=$l(n),n=ul(o).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Gl(e){return'href="'+Jt(e)+'"'}function Ls(e){return'link[rel="stylesheet"]['+e+"]"}function xg(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Av(e,t,n,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}),ht(t,"link",n),rt(t),e.head.appendChild(t))}function $l(e){return'[src="'+Jt(e)+'"]'}function Vs(e){return"script[async]"+e}function yg(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Jt(n.href)+'"]');if(l)return t.instance=l,rt(l),l;var o=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),rt(l),ht(l,"style",o),sr(l,n.precedence,e),t.instance=l;case"stylesheet":o=Gl(n.href);var u=e.querySelector(Ls(o));if(u)return t.state.loading|=4,t.instance=u,rt(u),u;l=xg(n),(o=ln.get(o))&&Lu(l,o),u=(e.ownerDocument||e).createElement("link"),rt(u);var g=u;return g._p=new Promise(function(y,C){g.onload=y,g.onerror=C}),ht(u,"link",l),t.state.loading|=4,sr(u,n.precedence,e),t.instance=u;case"script":return u=$l(n.src),(o=e.querySelector(Vs(u)))?(t.instance=o,rt(o),o):(l=n,(o=ln.get(u))&&(l=p({},n),Vu(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),rt(o),ht(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,sr(l,n.precedence,e));return t.instance}function sr(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,u=o,g=0;g<l.length;g++){var y=l[g];if(y.dataset.precedence===t)u=y;else if(u!==o)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Lu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Vu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ir=null;function bg(e,t,n){if(ir===null){var l=new Map,o=ir=new Map;o.set(n,l)}else o=ir,l=o.get(n),l||(l=new Map,o.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var u=n[o];if(!(u[ns]||u[dt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var g=u.getAttribute(t)||"";g=e+g;var y=l.get(g);y?y.push(u):l.set(g,[u])}}return l}function Sg(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Dv(e,t,n){if(n===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 wg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ov(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Gl(l.href),u=t.querySelector(Ls(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=rr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,rt(u);return}u=t.ownerDocument||t,l=xg(l),(o=ln.get(o))&&Lu(l,o),u=u.createElement("link"),rt(u);var g=u;g._p=new Promise(function(y,C){g.onload=y,g.onerror=C}),ht(u,"link",l),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=rr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Gu=0;function kv(e,t){return e.stylesheets&&e.count===0&&ur(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&ur(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Gu===0&&(Gu=62500*hv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ur(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Gu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function rr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ur(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var or=null;function ur(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,or=new Map,t.forEach(Hv,e),or=null,rr.call(e))}function Hv(e,t){if(!(t.state.loading&4)){var n=or.get(e);if(n)var l=n.get(null);else{n=new Map,or.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var g=o[u];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(n.set(g.dataset.precedence,g),l=g)}l&&n.set(null,l)}o=t.instance,g=o.getAttribute("data-precedence"),u=n.get(g)||l,u===l&&n.set(null,o),n.set(g,o),this.count++,l=rr.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),u?u.parentNode.insertBefore(o,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Gs={$$typeof:F,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function Uv(e,t,n,l,o,u,g,y,C){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=In(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=In(0),this.hiddenUpdates=In(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function Ng(e,t,n,l,o,u,g,y,C,k,L,$){return e=new Uv(e,t,n,g,C,k,L,$,y),t=1,u===!0&&(t|=24),u=Vt(3,null,null,t),e.current=u,u.stateNode=e,t=bo(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:t},Co(u),e}function Cg(e){return e?(e=yl,e):yl}function jg(e,t,n,l,o,u){o=Cg(o),l.context===null?l.context=o:l.pendingContext=o,l=sa(t),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=ia(e,l,t),n!==null&&(Ht(n,e,t),ys(n,e,t))}function Rg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function $u(e,t){Rg(e,t),(e=e.alternate)&&Rg(e,t)}function Eg(e){if(e.tag===13||e.tag===31){var t=Ga(e,67108864);t!==null&&Ht(t,e,67108864),$u(e,67108864)}}function _g(e){if(e.tag===13||e.tag===31){var t=Ft();t=sl(t);var n=Ga(e,t);n!==null&&Ht(n,e,t),$u(e,t)}}var cr=!0;function Bv(e,t,n,l){var o=M.T;M.T=null;var u=G.p;try{G.p=2,qu(e,t,n,l)}finally{G.p=u,M.T=o}}function Lv(e,t,n,l){var o=M.T;M.T=null;var u=G.p;try{G.p=8,qu(e,t,n,l)}finally{G.p=u,M.T=o}}function qu(e,t,n,l){if(cr){var o=Yu(l);if(o===null)Mu(e,t,l,dr,n),zg(e,l);else if(Gv(o,e,t,n,l))l.stopPropagation();else if(zg(e,l),t&4&&-1<Vv.indexOf(e)){for(;o!==null;){var u=ol(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var g=vn(u.pendingLanes);if(g!==0){var y=u;for(y.pendingLanes|=2,y.entangledLanes|=2;g;){var C=1<<31-xt(g);y.entanglements[1]|=C,g&=~C}Sn(u),(He&6)===0&&(Qi=Ct()+500,ks(0))}}break;case 31:case 13:y=Ga(u,2),y!==null&&Ht(y,u,2),Ki(),$u(u,2)}if(u=Yu(l),u===null&&Mu(e,t,l,dr,n),u===o)break;o=u}o!==null&&l.stopPropagation()}else Mu(e,t,l,null,n)}}function Yu(e){return e=Fr(e),Fu(e)}var dr=null;function Fu(e){if(dr=null,e=rl(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=m(t),e!==null)return e;e=null}else if(n===31){if(e=x(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return dr=e,null}function Mg(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(kr()){case Aa:return 2;case ai:return 8;case Da:case es:return 32;case Cn:return 268435456;default:return 32}default:return 32}}var Xu=!1,va=null,xa=null,ya=null,$s=new Map,qs=new Map,ba=[],Vv="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 zg(e,t){switch(e){case"focusin":case"focusout":va=null;break;case"dragenter":case"dragleave":xa=null;break;case"mouseover":case"mouseout":ya=null;break;case"pointerover":case"pointerout":$s.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qs.delete(t.pointerId)}}function Ys(e,t,n,l,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[o]},t!==null&&(t=ol(t),t!==null&&Eg(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Gv(e,t,n,l,o){switch(t){case"focusin":return va=Ys(va,e,t,n,l,o),!0;case"dragenter":return xa=Ys(xa,e,t,n,l,o),!0;case"mouseover":return ya=Ys(ya,e,t,n,l,o),!0;case"pointerover":var u=o.pointerId;return $s.set(u,Ys($s.get(u)||null,e,t,n,l,o)),!0;case"gotpointercapture":return u=o.pointerId,qs.set(u,Ys(qs.get(u)||null,e,t,n,l,o)),!0}return!1}function Tg(e){var t=rl(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=m(n),t!==null){e.blockedOn=t,Yc(e.priority,function(){_g(n)});return}}else if(t===31){if(t=x(n),t!==null){e.blockedOn=t,Yc(e.priority,function(){_g(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yu(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Yr=l,n.target.dispatchEvent(l),Yr=null}else return t=ol(n),t!==null&&Eg(t),e.blockedOn=n,!1;t.shift()}return!0}function Ag(e,t,n){fr(e)&&n.delete(t)}function $v(){Xu=!1,va!==null&&fr(va)&&(va=null),xa!==null&&fr(xa)&&(xa=null),ya!==null&&fr(ya)&&(ya=null),$s.forEach(Ag),qs.forEach(Ag)}function mr(e,t){e.blockedOn===t&&(e.blockedOn=null,Xu||(Xu=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,$v)))}var gr=null;function Dg(e){gr!==e&&(gr=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){gr===e&&(gr=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(Fu(l||n)===null)continue;break}var u=ol(n);u!==null&&(e.splice(t,3),t-=3,Yo(u,{pending:!0,data:o,method:n.method,action:l},l,o))}}))}function ql(e){function t(C){return mr(C,e)}va!==null&&mr(va,e),xa!==null&&mr(xa,e),ya!==null&&mr(ya,e),$s.forEach(t),qs.forEach(t);for(var n=0;n<ba.length;n++){var l=ba[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ba.length&&(n=ba[0],n.blockedOn===null);)Tg(n),n.blockedOn===null&&ba.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var o=n[l],u=n[l+1],g=o[zt]||null;if(typeof u=="function")g||Dg(n);else if(g){var y=null;if(u&&u.hasAttribute("formAction")){if(o=u,g=u[zt]||null)y=g.formAction;else if(Fu(o)!==null)continue}else y=g.action;typeof y=="function"?n[l+1]=y:(n.splice(l,3),l-=3),Dg(n)}}}function Og(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(g){return o=g})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Qu(e){this._internalRoot=e}hr.prototype.render=Qu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current,l=Ft();jg(n,l,e,t,null,null)},hr.prototype.unmount=Qu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jg(e.current,2,null,e,null,null),Ki(),t[il]=null}};function hr(e){this._internalRoot=e}hr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ur();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ba.length&&t!==0&&t<ba[n].priority;n++);ba.splice(n,0,e),n===0&&Tg(e)}};var kg=r.version;if(kg!=="19.2.3")throw Error(i(527,kg,"19.2.3"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=h(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var qv={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var pr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pr.isDisabled&&pr.supportsFiber)try{Oa=pr.inject(qv),jt=pr}catch{}}return Xs.createRoot=function(e,t){if(!c(e))throw Error(i(299));var n=!1,l="",o=$f,u=qf,g=Yf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=Ng(e,1,!1,null,null,n,l,null,o,u,g,Og),e[il]=t.current,_u(e),new Qu(t)},Xs.hydrateRoot=function(e,t,n){if(!c(e))throw Error(i(299));var l=!1,o="",u=$f,g=qf,y=Yf,C=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(C=n.formState)),t=Ng(e,1,!0,t,n??null,l,o,C,u,g,y,Og),t.context=Cg(null),n=t.current,l=Ft(),l=sl(l),o=sa(l),o.callback=null,ia(n,o,l),n=l,t.current.lanes=n,Ke(t,n),Sn(t),e[il]=t.current,_u(e),new hr(t)},Xs.version="19.2.3",Xs}var Fg;function Wv(){if(Fg)return Ju.exports;Fg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(r){console.error(r)}}return a(),Ju.exports=Iv(),Ju.exports}var Pv=Wv();/**
50
50
  * react-router v7.13.1
51
51
  *
52
52
  * Copyright (c) Remix Software Inc.
@@ -57,7 +57,7 @@ Error generating stack: `+l.message+`
57
57
  * @license MIT
58
58
  */var Xg="popstate";function Qg(a){return typeof a=="object"&&a!=null&&"pathname"in a&&"search"in a&&"hash"in a&&"state"in a&&"key"in a}function ex(a={}){function r(i,c){var h;let f=(h=c.state)==null?void 0:h.masked,{pathname:m,search:x,hash:v}=f||i.location;return hc("",{pathname:m,search:x,hash:v},c.state&&c.state.usr||null,c.state&&c.state.key||"default",f?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function s(i,c){return typeof c=="string"?c:Ws(c)}return nx(r,s,null,a)}function Ze(a,r){if(a===!1||a===null||typeof a>"u")throw new Error(r)}function sn(a,r){if(!a){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function tx(){return Math.random().toString(36).substring(2,10)}function Zg(a,r){return{usr:a.state,key:a.key,idx:r,masked:a.unstable_mask?{pathname:a.pathname,search:a.search,hash:a.hash}:void 0}}function hc(a,r,s=null,i,c){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof r=="string"?Xl(r):r,state:s,key:r&&r.key||i||tx(),unstable_mask:c}}function Ws({pathname:a="/",search:r="",hash:s=""}){return r&&r!=="?"&&(a+=r.charAt(0)==="?"?r:"?"+r),s&&s!=="#"&&(a+=s.charAt(0)==="#"?s:"#"+s),a}function Xl(a){let r={};if(a){let s=a.indexOf("#");s>=0&&(r.hash=a.substring(s),a=a.substring(0,s));let i=a.indexOf("?");i>=0&&(r.search=a.substring(i),a=a.substring(0,i)),a&&(r.pathname=a)}return r}function nx(a,r,s,i={}){let{window:c=document.defaultView,v5Compat:f=!1}=i,m=c.history,x="POP",v=null,h=b();h==null&&(h=0,m.replaceState({...m.state,idx:h},""));function b(){return(m.state||{idx:null}).idx}function p(){x="POP";let D=b(),A=D==null?null:D-h;h=D,v&&v({action:x,location:_.location,delta:A})}function w(D,A){x="PUSH";let Z=Qg(D)?D:hc(_.location,D,A);h=b()+1;let F=Zg(Z,h),se=_.createHref(Z.unstable_mask||Z);try{m.pushState(F,"",se)}catch(ae){if(ae instanceof DOMException&&ae.name==="DataCloneError")throw ae;c.location.assign(se)}f&&v&&v({action:x,location:_.location,delta:1})}function N(D,A){x="REPLACE";let Z=Qg(D)?D:hc(_.location,D,A);h=b();let F=Zg(Z,h),se=_.createHref(Z.unstable_mask||Z);m.replaceState(F,"",se),f&&v&&v({action:x,location:_.location,delta:0})}function j(D){return ax(D)}let _={get action(){return x},get location(){return a(c,m)},listen(D){if(v)throw new Error("A history only accepts one active listener");return c.addEventListener(Xg,p),v=D,()=>{c.removeEventListener(Xg,p),v=null}},createHref(D){return r(c,D)},createURL:j,encodeLocation(D){let A=j(D);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:w,replace:N,go(D){return m.go(D)}};return _}function ax(a,r=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Ze(s,"No window.location.(origin|href) available to create URL");let i=typeof a=="string"?a:Ws(a);return i=i.replace(/ $/,"%20"),!r&&i.startsWith("//")&&(i=s+i),new URL(i,s)}function Eh(a,r,s="/"){return lx(a,r,s,!1)}function lx(a,r,s,i){let c=typeof r=="string"?Xl(r):r,f=Qn(c.pathname||"/",s);if(f==null)return null;let m=_h(a);sx(m);let x=null;for(let v=0;x==null&&v<m.length;++v){let h=px(f);x=gx(m[v],h,i)}return x}function _h(a,r=[],s=[],i="",c=!1){let f=(m,x,v=c,h)=>{let b={relativePath:h===void 0?m.path||"":h,caseSensitive:m.caseSensitive===!0,childrenIndex:x,route:m};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(i)&&v)return;Ze(b.relativePath.startsWith(i),`Absolute route path "${b.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(i.length)}let p=Nn([i,b.relativePath]),w=s.concat(b);m.children&&m.children.length>0&&(Ze(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),_h(m.children,r,w,p,v)),!(m.path==null&&!m.index)&&r.push({path:p,score:fx(p,m.index),routesMeta:w})};return a.forEach((m,x)=>{var v;if(m.path===""||!((v=m.path)!=null&&v.includes("?")))f(m,x);else for(let h of Mh(m.path))f(m,x,!0,h)}),r}function Mh(a){let r=a.split("/");if(r.length===0)return[];let[s,...i]=r,c=s.endsWith("?"),f=s.replace(/\?$/,"");if(i.length===0)return c?[f,""]:[f];let m=Mh(i.join("/")),x=[];return x.push(...m.map(v=>v===""?f:[f,v].join("/"))),c&&x.push(...m),x.map(v=>a.startsWith("/")&&v===""?"/":v)}function sx(a){a.sort((r,s)=>r.score!==s.score?s.score-r.score:mx(r.routesMeta.map(i=>i.childrenIndex),s.routesMeta.map(i=>i.childrenIndex)))}var ix=/^:[\w-]+$/,rx=3,ox=2,ux=1,cx=10,dx=-2,Kg=a=>a==="*";function fx(a,r){let s=a.split("/"),i=s.length;return s.some(Kg)&&(i+=dx),r&&(i+=ox),s.filter(c=>!Kg(c)).reduce((c,f)=>c+(ix.test(f)?rx:f===""?ux:cx),i)}function mx(a,r){return a.length===r.length&&a.slice(0,-1).every((i,c)=>i===r[c])?a[a.length-1]-r[r.length-1]:0}function gx(a,r,s=!1){let{routesMeta:i}=a,c={},f="/",m=[];for(let x=0;x<i.length;++x){let v=i[x],h=x===i.length-1,b=f==="/"?r:r.slice(f.length)||"/",p=Er({path:v.relativePath,caseSensitive:v.caseSensitive,end:h},b),w=v.route;if(!p&&h&&s&&!i[i.length-1].route.index&&(p=Er({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},b)),!p)return null;Object.assign(c,p.params),m.push({params:c,pathname:Nn([f,p.pathname]),pathnameBase:bx(Nn([f,p.pathnameBase])),route:w}),p.pathnameBase!=="/"&&(f=Nn([f,p.pathnameBase]))}return m}function Er(a,r){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[s,i]=hx(a.path,a.caseSensitive,a.end),c=r.match(s);if(!c)return null;let f=c[0],m=f.replace(/(.)\/+$/,"$1"),x=c.slice(1);return{params:i.reduce((h,{paramName:b,isOptional:p},w)=>{if(b==="*"){let j=x[w]||"";m=f.slice(0,f.length-j.length).replace(/(.)\/+$/,"$1")}const N=x[w];return p&&!N?h[b]=void 0:h[b]=(N||"").replace(/%2F/g,"/"),h},{}),pathname:f,pathnameBase:m,pattern:a}}function hx(a,r=!1,s=!0){sn(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let i=[],c="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,x,v,h,b)=>{if(i.push({paramName:x,isOptional:v!=null}),v){let p=b.charAt(h+m.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(i.push({paramName:"*"}),c+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?c+="\\/*$":a!==""&&a!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,r?void 0:"i"),i]}function px(a){try{return a.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return sn(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),a}}function Qn(a,r){if(r==="/")return a;if(!a.toLowerCase().startsWith(r.toLowerCase()))return null;let s=r.endsWith("/")?r.length-1:r.length,i=a.charAt(s);return i&&i!=="/"?null:a.slice(s)||"/"}var vx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function xx(a,r="/"){let{pathname:s,search:i="",hash:c=""}=typeof a=="string"?Xl(a):a,f;return s?(s=s.replace(/\/\/+/g,"/"),s.startsWith("/")?f=Jg(s.substring(1),"/"):f=Jg(s,r)):f=r,{pathname:f,search:Sx(i),hash:wx(c)}}function Jg(a,r){let s=r.replace(/\/+$/,"").split("/");return a.split("/").forEach(c=>{c===".."?s.length>1&&s.pop():c!=="."&&s.push(c)}),s.length>1?s.join("/"):"/"}function ec(a,r,s,i){return`Cannot include a '${a}' character in a manually specified \`to.${r}\` field [${JSON.stringify(i)}]. 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 yx(a){return a.filter((r,s)=>s===0||r.route.path&&r.route.path.length>0)}function Ec(a){let r=yx(a);return r.map((s,i)=>i===r.length-1?s.pathname:s.pathnameBase)}function Tr(a,r,s,i=!1){let c;typeof a=="string"?c=Xl(a):(c={...a},Ze(!c.pathname||!c.pathname.includes("?"),ec("?","pathname","search",c)),Ze(!c.pathname||!c.pathname.includes("#"),ec("#","pathname","hash",c)),Ze(!c.search||!c.search.includes("#"),ec("#","search","hash",c)));let f=a===""||c.pathname==="",m=f?"/":c.pathname,x;if(m==null)x=s;else{let p=r.length-1;if(!i&&m.startsWith("..")){let w=m.split("/");for(;w[0]==="..";)w.shift(),p-=1;c.pathname=w.join("/")}x=p>=0?r[p]:"/"}let v=xx(c,x),h=m&&m!=="/"&&m.endsWith("/"),b=(f||m===".")&&s.endsWith("/");return!v.pathname.endsWith("/")&&(h||b)&&(v.pathname+="/"),v}var Nn=a=>a.join("/").replace(/\/\/+/g,"/"),bx=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),Sx=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,wx=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,Nx=class{constructor(a,r,s,i=!1){this.status=a,this.statusText=r||"",this.internal=i,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function Cx(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function jx(a){return a.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var zh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Th(a,r){let s=a;if(typeof s!="string"||!vx.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let i=s,c=!1;if(zh)try{let f=new URL(window.location.href),m=s.startsWith("//")?new URL(f.protocol+s):new URL(s),x=Qn(m.pathname,r);m.origin===f.origin&&x!=null?s=x+m.search+m.hash:c=!0}catch{sn(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:c,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ah=["POST","PUT","PATCH","DELETE"];new Set(Ah);var Rx=["GET",...Ah];new Set(Rx);var Ql=S.createContext(null);Ql.displayName="DataRouter";var Ar=S.createContext(null);Ar.displayName="DataRouterState";var Ex=S.createContext(!1),Dh=S.createContext({isTransitioning:!1});Dh.displayName="ViewTransition";var _x=S.createContext(new Map);_x.displayName="Fetchers";var Mx=S.createContext(null);Mx.displayName="Await";var Zt=S.createContext(null);Zt.displayName="Navigation";var ei=S.createContext(null);ei.displayName="Location";var gn=S.createContext({outlet:null,matches:[],isDataRoute:!1});gn.displayName="Route";var _c=S.createContext(null);_c.displayName="RouteError";var Oh="REACT_ROUTER_ERROR",zx="REDIRECT",Tx="ROUTE_ERROR_RESPONSE";function Ax(a){if(a.startsWith(`${Oh}:${zx}:{`))try{let r=JSON.parse(a.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function Dx(a){if(a.startsWith(`${Oh}:${Tx}:{`))try{let r=JSON.parse(a.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new Nx(r.status,r.statusText,r.data)}catch{}}function Ox(a,{relative:r}={}){Ze(Zl(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:i}=S.useContext(Zt),{hash:c,pathname:f,search:m}=ni(a,{relative:r}),x=f;return s!=="/"&&(x=f==="/"?s:Nn([s,f])),i.createHref({pathname:x,search:m,hash:c})}function Zl(){return S.useContext(ei)!=null}function hn(){return Ze(Zl(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(ei).location}var kh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Hh(a){S.useContext(Zt).static||S.useLayoutEffect(a)}function ti(){let{isDataRoute:a}=S.useContext(gn);return a?Kx():kx()}function kx(){Ze(Zl(),"useNavigate() may be used only in the context of a <Router> component.");let a=S.useContext(Ql),{basename:r,navigator:s}=S.useContext(Zt),{matches:i}=S.useContext(gn),{pathname:c}=hn(),f=JSON.stringify(Ec(i)),m=S.useRef(!1);return Hh(()=>{m.current=!0}),S.useCallback((v,h={})=>{if(sn(m.current,kh),!m.current)return;if(typeof v=="number"){s.go(v);return}let b=Tr(v,JSON.parse(f),c,h.relative==="path");a==null&&r!=="/"&&(b.pathname=b.pathname==="/"?r:Nn([r,b.pathname])),(h.replace?s.replace:s.push)(b,h.state,h)},[r,s,f,c,a])}var Hx=S.createContext(null);function Ux(a){let r=S.useContext(gn).outlet;return S.useMemo(()=>r&&S.createElement(Hx.Provider,{value:a},r),[r,a])}function ni(a,{relative:r}={}){let{matches:s}=S.useContext(gn),{pathname:i}=hn(),c=JSON.stringify(Ec(s));return S.useMemo(()=>Tr(a,JSON.parse(c),i,r==="path"),[a,c,i,r])}function Bx(a,r){return Uh(a,r)}function Uh(a,r,s){var D;Ze(Zl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=S.useContext(Zt),{matches:c}=S.useContext(gn),f=c[c.length-1],m=f?f.params:{},x=f?f.pathname:"/",v=f?f.pathnameBase:"/",h=f&&f.route;{let A=h&&h.path||"";Lh(x,!h||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${A}">) 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
59
 
60
- Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let b=hn(),p;if(r){let A=typeof r=="string"?Xl(r):r;Ze(v==="/"||((D=A.pathname)==null?void 0:D.startsWith(v)),`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 "${v}" but pathname "${A.pathname}" was given in the \`location\` prop.`),p=A}else p=b;let w=p.pathname||"/",N=w;if(v!=="/"){let A=v.replace(/^\//,"").split("/");N="/"+w.replace(/^\//,"").split("/").slice(A.length).join("/")}let j=Eh(a,{pathname:N});sn(h||j!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),sn(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.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 _=qx(j&&j.map(A=>Object.assign({},A,{params:Object.assign({},m,A.params),pathname:Nn([v,i.encodeLocation?i.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?v:Nn([v,i.encodeLocation?i.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),c,s);return r&&_?S.createElement(ei.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...p},navigationType:"POP"}},_):_}function Lx(){let a=Zx(),r=Cx(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),s=a instanceof Error?a.stack:null,i="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:i},f={padding:"2px 4px",backgroundColor:i},m=null;return console.error("Error handled by React Router default ErrorBoundary:",a),m=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:f},"ErrorBoundary")," or"," ",S.createElement("code",{style:f},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},r),s?S.createElement("pre",{style:c},s):null,m)}var Vx=S.createElement(Lx,null),Bh=class extends S.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,r){return r.location!==a.location||r.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:r.error,location:r.location,revalidation:a.revalidation||r.revalidation}}componentDidCatch(a,r){this.props.onError?this.props.onError(a,r):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const s=Dx(a.digest);s&&(a=s)}let r=a!==void 0?S.createElement(gn.Provider,{value:this.props.routeContext},S.createElement(_c.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?S.createElement($x,{error:a},r):r}};Bh.contextType=Ex;var tc=new WeakMap;function $x({children:a,error:r}){let{basename:s}=S.useContext(Zt);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let i=Ax(r.digest);if(i){let c=tc.get(r);if(c)throw c;let f=Th(i.location,s);if(zh&&!tc.get(r))if(f.isExternal||i.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const m=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:i.replace}));throw tc.set(r,m),m}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function Gx({routeContext:a,match:r,children:s}){let i=S.useContext(Ql);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),S.createElement(gn.Provider,{value:a},s)}function qx(a,r=[],s){let i=s==null?void 0:s.state;if(a==null){if(!i)return null;if(i.errors)a=i.matches;else if(r.length===0&&!i.initialized&&i.matches.length>0)a=i.matches;else return null}let c=a,f=i==null?void 0:i.errors;if(f!=null){let b=c.findIndex(p=>p.route.id&&(f==null?void 0:f[p.route.id])!==void 0);Ze(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,b+1))}let m=!1,x=-1;if(s&&i){m=i.renderFallback;for(let b=0;b<c.length;b++){let p=c[b];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(x=b),p.route.id){let{loaderData:w,errors:N}=i,j=p.route.loader&&!w.hasOwnProperty(p.route.id)&&(!N||N[p.route.id]===void 0);if(p.route.lazy||j){s.isStatic&&(m=!0),x>=0?c=c.slice(0,x+1):c=[c[0]];break}}}}let v=s==null?void 0:s.onError,h=i&&v?(b,p)=>{var w,N;v(b,{location:i.location,params:((N=(w=i.matches)==null?void 0:w[0])==null?void 0:N.params)??{},unstable_pattern:jx(i.matches),errorInfo:p})}:void 0;return c.reduceRight((b,p,w)=>{let N,j=!1,_=null,D=null;i&&(N=f&&p.route.id?f[p.route.id]:void 0,_=p.route.errorElement||Vx,m&&(x<0&&w===0?(Lh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,D=null):x===w&&(j=!0,D=p.route.hydrateFallbackElement||null)));let A=r.concat(c.slice(0,w+1)),Z=()=>{let F;return N?F=_:j?F=D:p.route.Component?F=S.createElement(p.route.Component,null):p.route.element?F=p.route.element:F=b,S.createElement(Gx,{match:p,routeContext:{outlet:b,matches:A,isDataRoute:i!=null},children:F})};return i&&(p.route.ErrorBoundary||p.route.errorElement||w===0)?S.createElement(Bh,{location:i.location,revalidation:i.revalidation,component:_,error:N,children:Z(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:h}):Z()},null)}function Mc(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Yx(a){let r=S.useContext(Ql);return Ze(r,Mc(a)),r}function Fx(a){let r=S.useContext(Ar);return Ze(r,Mc(a)),r}function Xx(a){let r=S.useContext(gn);return Ze(r,Mc(a)),r}function zc(a){let r=Xx(a),s=r.matches[r.matches.length-1];return Ze(s.route.id,`${a} can only be used on routes that contain a unique "id"`),s.route.id}function Qx(){return zc("useRouteId")}function Zx(){var i;let a=S.useContext(_c),r=Fx("useRouteError"),s=zc("useRouteError");return a!==void 0?a:(i=r.errors)==null?void 0:i[s]}function Kx(){let{router:a}=Yx("useNavigate"),r=zc("useNavigate"),s=S.useRef(!1);return Hh(()=>{s.current=!0}),S.useCallback(async(c,f={})=>{sn(s.current,kh),s.current&&(typeof c=="number"?await a.navigate(c):await a.navigate(c,{fromRouteId:r,...f}))},[a,r])}var Ig={};function Lh(a,r,s){!r&&!Ig[a]&&(Ig[a]=!0,sn(!1,s))}S.memo(Jx);function Jx({routes:a,future:r,state:s,isStatic:i,onError:c}){return Uh(a,void 0,{state:s,isStatic:i,onError:c})}function Ix({to:a,replace:r,state:s,relative:i}){Ze(Zl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=S.useContext(Zt);sn(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=S.useContext(gn),{pathname:m}=hn(),x=ti(),v=Tr(a,Ec(f),m,i==="path"),h=JSON.stringify(v);return S.useEffect(()=>{x(JSON.parse(h),{replace:r,state:s,relative:i})},[x,h,i,r,s]),null}function Wx(a){return Ux(a.context)}function fn(a){Ze(!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 Px({basename:a="/",children:r=null,location:s,navigationType:i="POP",navigator:c,static:f=!1,unstable_useTransitions:m}){Ze(!Zl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let x=a.replace(/^\/*/,"/"),v=S.useMemo(()=>({basename:x,navigator:c,static:f,unstable_useTransitions:m,future:{}}),[x,c,f,m]);typeof s=="string"&&(s=Xl(s));let{pathname:h="/",search:b="",hash:p="",state:w=null,key:N="default",unstable_mask:j}=s,_=S.useMemo(()=>{let D=Qn(h,x);return D==null?null:{location:{pathname:D,search:b,hash:p,state:w,key:N,unstable_mask:j},navigationType:i}},[x,h,b,p,w,N,i,j]);return sn(_!=null,`<Router basename="${x}"> is not able to match the URL "${h}${b}${p}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:S.createElement(Zt.Provider,{value:v},S.createElement(ei.Provider,{children:r,value:_}))}function ey({children:a,location:r}){return Bx(pc(a),r)}function pc(a,r=[]){let s=[];return S.Children.forEach(a,(i,c)=>{if(!S.isValidElement(i))return;let f=[...r,c];if(i.type===S.Fragment){s.push.apply(s,pc(i.props.children,f));return}Ze(i.type===fn,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ze(!i.props.index||!i.props.children,"An index route cannot have child routes.");let m={id:i.props.id||f.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(m.children=pc(i.props.children,f)),s.push(m)}),s}var jr="get",Rr="application/x-www-form-urlencoded";function Dr(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function ty(a){return Dr(a)&&a.tagName.toLowerCase()==="button"}function ny(a){return Dr(a)&&a.tagName.toLowerCase()==="form"}function ay(a){return Dr(a)&&a.tagName.toLowerCase()==="input"}function ly(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function sy(a,r){return a.button===0&&(!r||r==="_self")&&!ly(a)}function vc(a=""){return new URLSearchParams(typeof a=="string"||Array.isArray(a)||a instanceof URLSearchParams?a:Object.keys(a).reduce((r,s)=>{let i=a[s];return r.concat(Array.isArray(i)?i.map(c=>[s,c]):[[s,i]])},[]))}function iy(a,r){let s=vc(a);return r&&r.forEach((i,c)=>{s.has(c)||r.getAll(c).forEach(f=>{s.append(c,f)})}),s}var vr=null;function ry(){if(vr===null)try{new FormData(document.createElement("form"),0),vr=!1}catch{vr=!0}return vr}var oy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function nc(a){return a!=null&&!oy.has(a)?(sn(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Rr}"`),null):a}function uy(a,r){let s,i,c,f,m;if(ny(a)){let x=a.getAttribute("action");i=x?Qn(x,r):null,s=a.getAttribute("method")||jr,c=nc(a.getAttribute("enctype"))||Rr,f=new FormData(a)}else if(ty(a)||ay(a)&&(a.type==="submit"||a.type==="image")){let x=a.form;if(x==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=a.getAttribute("formaction")||x.getAttribute("action");if(i=v?Qn(v,r):null,s=a.getAttribute("formmethod")||x.getAttribute("method")||jr,c=nc(a.getAttribute("formenctype"))||nc(x.getAttribute("enctype"))||Rr,f=new FormData(x,a),!ry()){let{name:h,type:b,value:p}=a;if(b==="image"){let w=h?`${h}.`:"";f.append(`${w}x`,"0"),f.append(`${w}y`,"0")}else h&&f.append(h,p)}}else{if(Dr(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=jr,i=null,c=Rr,m=a}return f&&c==="text/plain"&&(m=f,f=void 0),{action:i,method:s.toLowerCase(),encType:c,formData:f,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Tc(a,r){if(a===!1||a===null||typeof a>"u")throw new Error(r)}function cy(a,r,s,i){let c=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return s?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${i}`:c.pathname=`${c.pathname}.${i}`:c.pathname==="/"?c.pathname=`_root.${i}`:r&&Qn(c.pathname,r)==="/"?c.pathname=`${r.replace(/\/$/,"")}/_root.${i}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${i}`,c}async function dy(a,r){if(a.id in r)return r[a.id];try{let s=await import(a.module);return r[a.id]=s,s}catch(s){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function fy(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function my(a,r,s){let i=await Promise.all(a.map(async c=>{let f=r.routes[c.route.id];if(f){let m=await dy(f,s);return m.links?m.links():[]}return[]}));return vy(i.flat(1).filter(fy).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Wg(a,r,s,i,c,f){let m=(v,h)=>s[h]?v.route.id!==s[h].route.id:!0,x=(v,h)=>{var b;return s[h].pathname!==v.pathname||((b=s[h].route.path)==null?void 0:b.endsWith("*"))&&s[h].params["*"]!==v.params["*"]};return f==="assets"?r.filter((v,h)=>m(v,h)||x(v,h)):f==="data"?r.filter((v,h)=>{var p;let b=i.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(m(v,h)||x(v,h))return!0;if(v.route.shouldRevalidate){let w=v.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((p=s[0])==null?void 0:p.params)||{},nextUrl:new URL(a,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function gy(a,r,{includeHydrateFallback:s}={}){return hy(a.map(i=>{let c=r.routes[i.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),s&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function hy(a){return[...new Set(a)]}function py(a){let r={},s=Object.keys(a).sort();for(let i of s)r[i]=a[i];return r}function vy(a,r){let s=new Set;return new Set(r),a.reduce((i,c)=>{let f=JSON.stringify(py(c));return s.has(f)||(s.add(f),i.push({key:f,link:c})),i},[])}function Vh(){let a=S.useContext(Ql);return Tc(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function xy(){let a=S.useContext(Ar);return Tc(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var Ac=S.createContext(void 0);Ac.displayName="FrameworkContext";function $h(){let a=S.useContext(Ac);return Tc(a,"You must render this element inside a <HydratedRouter> element"),a}function yy(a,r){let s=S.useContext(Ac),[i,c]=S.useState(!1),[f,m]=S.useState(!1),{onFocus:x,onBlur:v,onMouseEnter:h,onMouseLeave:b,onTouchStart:p}=r,w=S.useRef(null);S.useEffect(()=>{if(a==="render"&&m(!0),a==="viewport"){let _=A=>{A.forEach(Z=>{m(Z.isIntersecting)})},D=new IntersectionObserver(_,{threshold:.5});return w.current&&D.observe(w.current),()=>{D.disconnect()}}},[a]),S.useEffect(()=>{if(i){let _=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(_)}}},[i]);let N=()=>{c(!0)},j=()=>{c(!1),m(!1)};return s?a!=="intent"?[f,w,{}]:[f,w,{onFocus:Qs(x,N),onBlur:Qs(v,j),onMouseEnter:Qs(h,N),onMouseLeave:Qs(b,j),onTouchStart:Qs(p,N)}]:[!1,w,{}]}function Qs(a,r){return s=>{a&&a(s),s.defaultPrevented||r(s)}}function by({page:a,...r}){let{router:s}=Vh(),i=S.useMemo(()=>Eh(s.routes,a,s.basename),[s.routes,a,s.basename]);return i?S.createElement(wy,{page:a,matches:i,...r}):null}function Sy(a){let{manifest:r,routeModules:s}=$h(),[i,c]=S.useState([]);return S.useEffect(()=>{let f=!1;return my(a,r,s).then(m=>{f||c(m)}),()=>{f=!0}},[a,r,s]),i}function wy({page:a,matches:r,...s}){let i=hn(),{future:c,manifest:f,routeModules:m}=$h(),{basename:x}=Vh(),{loaderData:v,matches:h}=xy(),b=S.useMemo(()=>Wg(a,r,h,f,i,"data"),[a,r,h,f,i]),p=S.useMemo(()=>Wg(a,r,h,f,i,"assets"),[a,r,h,f,i]),w=S.useMemo(()=>{if(a===i.pathname+i.search+i.hash)return[];let _=new Set,D=!1;if(r.forEach(Z=>{var se;let F=f.routes[Z.route.id];!F||!F.hasLoader||(!b.some(ae=>ae.route.id===Z.route.id)&&Z.route.id in v&&((se=m[Z.route.id])!=null&&se.shouldRevalidate)||F.hasClientLoader?D=!0:_.add(Z.route.id))}),_.size===0)return[];let A=cy(a,x,c.unstable_trailingSlashAwareDataRequests,"data");return D&&_.size>0&&A.searchParams.set("_routes",r.filter(Z=>_.has(Z.route.id)).map(Z=>Z.route.id).join(",")),[A.pathname+A.search]},[x,c.unstable_trailingSlashAwareDataRequests,v,i,f,b,r,a,m]),N=S.useMemo(()=>gy(p,f),[p,f]),j=Sy(p);return S.createElement(S.Fragment,null,w.map(_=>S.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...s})),N.map(_=>S.createElement("link",{key:_,rel:"modulepreload",href:_,...s})),j.map(({key:_,link:D})=>S.createElement("link",{key:_,nonce:s.nonce,...D,crossOrigin:D.crossOrigin??s.crossOrigin})))}function Ny(...a){return r=>{a.forEach(s=>{typeof s=="function"?s(r):s!=null&&(s.current=r)})}}var Cy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Cy&&(window.__reactRouterVersion="7.13.1")}catch{}function jy({basename:a,children:r,unstable_useTransitions:s,window:i}){let c=S.useRef();c.current==null&&(c.current=ex({window:i,v5Compat:!0}));let f=c.current,[m,x]=S.useState({action:f.action,location:f.location}),v=S.useCallback(h=>{s===!1?x(h):S.startTransition(()=>x(h))},[s]);return S.useLayoutEffect(()=>f.listen(v),[f,v]),S.createElement(Px,{basename:a,children:r,location:m.location,navigationType:m.action,navigator:f,unstable_useTransitions:s})}var Gh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dc=S.forwardRef(function({onClick:r,discover:s="render",prefetch:i="none",relative:c,reloadDocument:f,replace:m,unstable_mask:x,state:v,target:h,to:b,preventScrollReset:p,viewTransition:w,unstable_defaultShouldRevalidate:N,...j},_){let{basename:D,navigator:A,unstable_useTransitions:Z}=S.useContext(Zt),F=typeof b=="string"&&Gh.test(b),se=Th(b,D);b=se.to;let ae=Ox(b,{relative:c}),q=hn(),W=null;if(x){let re=Tr(x,[],q.unstable_mask?q.unstable_mask.pathname:"/",!0);D!=="/"&&(re.pathname=re.pathname==="/"?D:Nn([D,re.pathname])),W=A.createHref(re)}let[J,K,te]=yy(i,j),fe=My(b,{replace:m,unstable_mask:x,state:v,target:h,preventScrollReset:p,relative:c,viewTransition:w,unstable_defaultShouldRevalidate:N,unstable_useTransitions:Z});function Y(re){r&&r(re),re.defaultPrevented||fe(re)}let P=!(se.isExternal||f),de=S.createElement("a",{...j,...te,href:(P?W:void 0)||se.absoluteURL||ae,onClick:P?Y:r,ref:Ny(_,K),target:h,"data-discover":!F&&s==="render"?"true":void 0});return J&&!F?S.createElement(S.Fragment,null,de,S.createElement(by,{page:ae})):de});Dc.displayName="Link";var Ry=S.forwardRef(function({"aria-current":r="page",caseSensitive:s=!1,className:i="",end:c=!1,style:f,to:m,viewTransition:x,children:v,...h},b){let p=ni(m,{relative:h.relative}),w=hn(),N=S.useContext(Ar),{navigator:j,basename:_}=S.useContext(Zt),D=N!=null&&ky(p)&&x===!0,A=j.encodeLocation?j.encodeLocation(p).pathname:p.pathname,Z=w.pathname,F=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;s||(Z=Z.toLowerCase(),F=F?F.toLowerCase():null,A=A.toLowerCase()),F&&_&&(F=Qn(F,_)||F);const se=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let ae=Z===A||!c&&Z.startsWith(A)&&Z.charAt(se)==="/",q=F!=null&&(F===A||!c&&F.startsWith(A)&&F.charAt(A.length)==="/"),W={isActive:ae,isPending:q,isTransitioning:D},J=ae?r:void 0,K;typeof i=="function"?K=i(W):K=[i,ae?"active":null,q?"pending":null,D?"transitioning":null].filter(Boolean).join(" ");let te=typeof f=="function"?f(W):f;return S.createElement(Dc,{...h,"aria-current":J,className:K,ref:b,style:te,to:m,viewTransition:x},typeof v=="function"?v(W):v)});Ry.displayName="NavLink";var Ey=S.forwardRef(({discover:a="render",fetcherKey:r,navigate:s,reloadDocument:i,replace:c,state:f,method:m=jr,action:x,onSubmit:v,relative:h,preventScrollReset:b,viewTransition:p,unstable_defaultShouldRevalidate:w,...N},j)=>{let{unstable_useTransitions:_}=S.useContext(Zt),D=Dy(),A=Oy(x,{relative:h}),Z=m.toLowerCase()==="get"?"get":"post",F=typeof x=="string"&&Gh.test(x),se=ae=>{if(v&&v(ae),ae.defaultPrevented)return;ae.preventDefault();let q=ae.nativeEvent.submitter,W=(q==null?void 0:q.getAttribute("formmethod"))||m,J=()=>D(q||ae.currentTarget,{fetcherKey:r,method:W,navigate:s,replace:c,state:f,relative:h,preventScrollReset:b,viewTransition:p,unstable_defaultShouldRevalidate:w});_&&s!==!1?S.startTransition(()=>J()):J()};return S.createElement("form",{ref:j,method:Z,action:A,onSubmit:i?v:se,...N,"data-discover":!F&&a==="render"?"true":void 0})});Ey.displayName="Form";function _y(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qh(a){let r=S.useContext(Ql);return Ze(r,_y(a)),r}function My(a,{target:r,replace:s,unstable_mask:i,state:c,preventScrollReset:f,relative:m,viewTransition:x,unstable_defaultShouldRevalidate:v,unstable_useTransitions:h}={}){let b=ti(),p=hn(),w=ni(a,{relative:m});return S.useCallback(N=>{if(sy(N,r)){N.preventDefault();let j=s!==void 0?s:Ws(p)===Ws(w),_=()=>b(a,{replace:j,unstable_mask:i,state:c,preventScrollReset:f,relative:m,viewTransition:x,unstable_defaultShouldRevalidate:v});h?S.startTransition(()=>_()):_()}},[p,b,w,s,i,c,r,a,f,m,x,v,h])}function zy(a){sn(typeof URLSearchParams<"u","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 r=S.useRef(vc(a)),s=S.useRef(!1),i=hn(),c=S.useMemo(()=>iy(i.search,s.current?null:r.current),[i.search]),f=ti(),m=S.useCallback((x,v)=>{const h=vc(typeof x=="function"?x(new URLSearchParams(c)):x);s.current=!0,f("?"+h,v)},[f,c]);return[c,m]}var Ty=0,Ay=()=>`__${String(++Ty)}__`;function Dy(){let{router:a}=qh("useSubmit"),{basename:r}=S.useContext(Zt),s=Qx(),i=a.fetch,c=a.navigate;return S.useCallback(async(f,m={})=>{let{action:x,method:v,encType:h,formData:b,body:p}=uy(f,r);if(m.navigate===!1){let w=m.fetcherKey||Ay();await i(w,s,m.action||x,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:b,body:p,formMethod:m.method||v,formEncType:m.encType||h,flushSync:m.flushSync})}else await c(m.action||x,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:b,body:p,formMethod:m.method||v,formEncType:m.encType||h,replace:m.replace,state:m.state,fromRouteId:s,flushSync:m.flushSync,viewTransition:m.viewTransition})},[i,c,r,s])}function Oy(a,{relative:r}={}){let{basename:s}=S.useContext(Zt),i=S.useContext(gn);Ze(i,"useFormAction must be used inside a RouteContext");let[c]=i.matches.slice(-1),f={...ni(a||".",{relative:r})},m=hn();if(a==null){f.search=m.search;let x=new URLSearchParams(f.search),v=x.getAll("index");if(v.some(b=>b==="")){x.delete("index"),v.filter(p=>p).forEach(p=>x.append("index",p));let b=x.toString();f.search=b?`?${b}`:""}}return(!a||a===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(f.pathname=f.pathname==="/"?s:Nn([s,f.pathname])),Ws(f)}function ky(a,{relative:r}={}){let s=S.useContext(Dh);Ze(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=qh("useViewTransitionState"),c=ni(a,{relative:r});if(!s.isTransitioning)return!1;let f=Qn(s.currentLocation.pathname,i)||s.currentLocation.pathname,m=Qn(s.nextLocation.pathname,i)||s.nextLocation.pathname;return Er(c.pathname,m)!=null||Er(c.pathname,f)!=null}var Hy=Rh();const Uy=jh(Hy),Pg=a=>{let r;const s=new Set,i=(h,b)=>{const p=typeof h=="function"?h(r):h;if(!Object.is(p,r)){const w=r;r=b??(typeof p!="object"||p===null)?p:Object.assign({},r,p),s.forEach(N=>N(r,w))}},c=()=>r,x={setState:i,getState:c,getInitialState:()=>v,subscribe:h=>(s.add(h),()=>s.delete(h))},v=r=a(i,c,x);return x},By=(a=>a?Pg(a):Pg),Ly=a=>a;function Vy(a,r=Ly){const s=ee.useSyncExternalStore(a.subscribe,ee.useCallback(()=>r(a.getState()),[a,r]),ee.useCallback(()=>r(a.getInitialState()),[a,r]));return ee.useDebugValue(s),s}const eh=a=>{const r=By(a),s=i=>Vy(r,i);return Object.assign(s,r),s},$y=(a=>a?eh(a):eh);function Gy(a){return $y((r,s)=>({apiBase:a,tables:{},selectedTable:null,functions:{queries:[]},status:null,setApiBase:i=>r({apiBase:i}),setSelectedTable:i=>r({selectedTable:i}),fetchTables:async()=>{const i=await fetch(`${s().apiBase}/_admin/tables`);if(!i.ok)return;const c=await i.json();r({tables:c})},fetchTableData:async(i,c=50,f=0)=>{const m=await fetch(`${s().apiBase}/_admin/data/${i}?limit=${c}&offset=${f}`);return m.ok?m.json():{data:[],total:0}},fetchFunctions:async()=>{const i=await fetch(`${s().apiBase}/_admin/functions`);if(!i.ok)return;const c=await i.json();r({functions:c})},fetchStatus:async()=>{try{const i=await fetch(`${s().apiBase}/_admin/status`);if(!i.ok)return;const c=await i.json();r({status:c})}catch{}},insertRow:async(i,c)=>{await fetch(`${s().apiBase}/_admin/data/${i}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)})},deleteRow:async(i,c)=>{await fetch(`${s().apiBase}/_admin/data/${i}/${c}`,{method:"DELETE"})}}))}const qy=typeof window<"u"?window.location.origin:"http://localhost:5456",Xt=Gy(qy),Yy=S.createContext(null);function Ma(){const a=S.useContext(Yy);return a||{apiBase:typeof window<"u"?window.location.origin:"http://localhost:5456",appStatus:"running",backendStatus:"running",hasStatic:!1}}/**
60
+ Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let b=hn(),p;if(r){let A=typeof r=="string"?Xl(r):r;Ze(v==="/"||((D=A.pathname)==null?void 0:D.startsWith(v)),`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 "${v}" but pathname "${A.pathname}" was given in the \`location\` prop.`),p=A}else p=b;let w=p.pathname||"/",N=w;if(v!=="/"){let A=v.replace(/^\//,"").split("/");N="/"+w.replace(/^\//,"").split("/").slice(A.length).join("/")}let j=Eh(a,{pathname:N});sn(h||j!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),sn(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.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 _=qx(j&&j.map(A=>Object.assign({},A,{params:Object.assign({},m,A.params),pathname:Nn([v,i.encodeLocation?i.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?v:Nn([v,i.encodeLocation?i.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),c,s);return r&&_?S.createElement(ei.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...p},navigationType:"POP"}},_):_}function Lx(){let a=Zx(),r=Cx(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),s=a instanceof Error?a.stack:null,i="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:i},f={padding:"2px 4px",backgroundColor:i},m=null;return console.error("Error handled by React Router default ErrorBoundary:",a),m=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:f},"ErrorBoundary")," or"," ",S.createElement("code",{style:f},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},r),s?S.createElement("pre",{style:c},s):null,m)}var Vx=S.createElement(Lx,null),Bh=class extends S.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,r){return r.location!==a.location||r.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:r.error,location:r.location,revalidation:a.revalidation||r.revalidation}}componentDidCatch(a,r){this.props.onError?this.props.onError(a,r):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const s=Dx(a.digest);s&&(a=s)}let r=a!==void 0?S.createElement(gn.Provider,{value:this.props.routeContext},S.createElement(_c.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?S.createElement(Gx,{error:a},r):r}};Bh.contextType=Ex;var tc=new WeakMap;function Gx({children:a,error:r}){let{basename:s}=S.useContext(Zt);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let i=Ax(r.digest);if(i){let c=tc.get(r);if(c)throw c;let f=Th(i.location,s);if(zh&&!tc.get(r))if(f.isExternal||i.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const m=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:i.replace}));throw tc.set(r,m),m}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function $x({routeContext:a,match:r,children:s}){let i=S.useContext(Ql);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),S.createElement(gn.Provider,{value:a},s)}function qx(a,r=[],s){let i=s==null?void 0:s.state;if(a==null){if(!i)return null;if(i.errors)a=i.matches;else if(r.length===0&&!i.initialized&&i.matches.length>0)a=i.matches;else return null}let c=a,f=i==null?void 0:i.errors;if(f!=null){let b=c.findIndex(p=>p.route.id&&(f==null?void 0:f[p.route.id])!==void 0);Ze(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,b+1))}let m=!1,x=-1;if(s&&i){m=i.renderFallback;for(let b=0;b<c.length;b++){let p=c[b];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(x=b),p.route.id){let{loaderData:w,errors:N}=i,j=p.route.loader&&!w.hasOwnProperty(p.route.id)&&(!N||N[p.route.id]===void 0);if(p.route.lazy||j){s.isStatic&&(m=!0),x>=0?c=c.slice(0,x+1):c=[c[0]];break}}}}let v=s==null?void 0:s.onError,h=i&&v?(b,p)=>{var w,N;v(b,{location:i.location,params:((N=(w=i.matches)==null?void 0:w[0])==null?void 0:N.params)??{},unstable_pattern:jx(i.matches),errorInfo:p})}:void 0;return c.reduceRight((b,p,w)=>{let N,j=!1,_=null,D=null;i&&(N=f&&p.route.id?f[p.route.id]:void 0,_=p.route.errorElement||Vx,m&&(x<0&&w===0?(Lh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,D=null):x===w&&(j=!0,D=p.route.hydrateFallbackElement||null)));let A=r.concat(c.slice(0,w+1)),Z=()=>{let F;return N?F=_:j?F=D:p.route.Component?F=S.createElement(p.route.Component,null):p.route.element?F=p.route.element:F=b,S.createElement($x,{match:p,routeContext:{outlet:b,matches:A,isDataRoute:i!=null},children:F})};return i&&(p.route.ErrorBoundary||p.route.errorElement||w===0)?S.createElement(Bh,{location:i.location,revalidation:i.revalidation,component:_,error:N,children:Z(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:h}):Z()},null)}function Mc(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Yx(a){let r=S.useContext(Ql);return Ze(r,Mc(a)),r}function Fx(a){let r=S.useContext(Ar);return Ze(r,Mc(a)),r}function Xx(a){let r=S.useContext(gn);return Ze(r,Mc(a)),r}function zc(a){let r=Xx(a),s=r.matches[r.matches.length-1];return Ze(s.route.id,`${a} can only be used on routes that contain a unique "id"`),s.route.id}function Qx(){return zc("useRouteId")}function Zx(){var i;let a=S.useContext(_c),r=Fx("useRouteError"),s=zc("useRouteError");return a!==void 0?a:(i=r.errors)==null?void 0:i[s]}function Kx(){let{router:a}=Yx("useNavigate"),r=zc("useNavigate"),s=S.useRef(!1);return Hh(()=>{s.current=!0}),S.useCallback(async(c,f={})=>{sn(s.current,kh),s.current&&(typeof c=="number"?await a.navigate(c):await a.navigate(c,{fromRouteId:r,...f}))},[a,r])}var Ig={};function Lh(a,r,s){!r&&!Ig[a]&&(Ig[a]=!0,sn(!1,s))}S.memo(Jx);function Jx({routes:a,future:r,state:s,isStatic:i,onError:c}){return Uh(a,void 0,{state:s,isStatic:i,onError:c})}function Ix({to:a,replace:r,state:s,relative:i}){Ze(Zl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=S.useContext(Zt);sn(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=S.useContext(gn),{pathname:m}=hn(),x=ti(),v=Tr(a,Ec(f),m,i==="path"),h=JSON.stringify(v);return S.useEffect(()=>{x(JSON.parse(h),{replace:r,state:s,relative:i})},[x,h,i,r,s]),null}function Wx(a){return Ux(a.context)}function fn(a){Ze(!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 Px({basename:a="/",children:r=null,location:s,navigationType:i="POP",navigator:c,static:f=!1,unstable_useTransitions:m}){Ze(!Zl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let x=a.replace(/^\/*/,"/"),v=S.useMemo(()=>({basename:x,navigator:c,static:f,unstable_useTransitions:m,future:{}}),[x,c,f,m]);typeof s=="string"&&(s=Xl(s));let{pathname:h="/",search:b="",hash:p="",state:w=null,key:N="default",unstable_mask:j}=s,_=S.useMemo(()=>{let D=Qn(h,x);return D==null?null:{location:{pathname:D,search:b,hash:p,state:w,key:N,unstable_mask:j},navigationType:i}},[x,h,b,p,w,N,i,j]);return sn(_!=null,`<Router basename="${x}"> is not able to match the URL "${h}${b}${p}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:S.createElement(Zt.Provider,{value:v},S.createElement(ei.Provider,{children:r,value:_}))}function ey({children:a,location:r}){return Bx(pc(a),r)}function pc(a,r=[]){let s=[];return S.Children.forEach(a,(i,c)=>{if(!S.isValidElement(i))return;let f=[...r,c];if(i.type===S.Fragment){s.push.apply(s,pc(i.props.children,f));return}Ze(i.type===fn,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ze(!i.props.index||!i.props.children,"An index route cannot have child routes.");let m={id:i.props.id||f.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(m.children=pc(i.props.children,f)),s.push(m)}),s}var jr="get",Rr="application/x-www-form-urlencoded";function Dr(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function ty(a){return Dr(a)&&a.tagName.toLowerCase()==="button"}function ny(a){return Dr(a)&&a.tagName.toLowerCase()==="form"}function ay(a){return Dr(a)&&a.tagName.toLowerCase()==="input"}function ly(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function sy(a,r){return a.button===0&&(!r||r==="_self")&&!ly(a)}function vc(a=""){return new URLSearchParams(typeof a=="string"||Array.isArray(a)||a instanceof URLSearchParams?a:Object.keys(a).reduce((r,s)=>{let i=a[s];return r.concat(Array.isArray(i)?i.map(c=>[s,c]):[[s,i]])},[]))}function iy(a,r){let s=vc(a);return r&&r.forEach((i,c)=>{s.has(c)||r.getAll(c).forEach(f=>{s.append(c,f)})}),s}var vr=null;function ry(){if(vr===null)try{new FormData(document.createElement("form"),0),vr=!1}catch{vr=!0}return vr}var oy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function nc(a){return a!=null&&!oy.has(a)?(sn(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Rr}"`),null):a}function uy(a,r){let s,i,c,f,m;if(ny(a)){let x=a.getAttribute("action");i=x?Qn(x,r):null,s=a.getAttribute("method")||jr,c=nc(a.getAttribute("enctype"))||Rr,f=new FormData(a)}else if(ty(a)||ay(a)&&(a.type==="submit"||a.type==="image")){let x=a.form;if(x==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=a.getAttribute("formaction")||x.getAttribute("action");if(i=v?Qn(v,r):null,s=a.getAttribute("formmethod")||x.getAttribute("method")||jr,c=nc(a.getAttribute("formenctype"))||nc(x.getAttribute("enctype"))||Rr,f=new FormData(x,a),!ry()){let{name:h,type:b,value:p}=a;if(b==="image"){let w=h?`${h}.`:"";f.append(`${w}x`,"0"),f.append(`${w}y`,"0")}else h&&f.append(h,p)}}else{if(Dr(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=jr,i=null,c=Rr,m=a}return f&&c==="text/plain"&&(m=f,f=void 0),{action:i,method:s.toLowerCase(),encType:c,formData:f,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Tc(a,r){if(a===!1||a===null||typeof a>"u")throw new Error(r)}function cy(a,r,s,i){let c=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return s?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${i}`:c.pathname=`${c.pathname}.${i}`:c.pathname==="/"?c.pathname=`_root.${i}`:r&&Qn(c.pathname,r)==="/"?c.pathname=`${r.replace(/\/$/,"")}/_root.${i}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${i}`,c}async function dy(a,r){if(a.id in r)return r[a.id];try{let s=await import(a.module);return r[a.id]=s,s}catch(s){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function fy(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function my(a,r,s){let i=await Promise.all(a.map(async c=>{let f=r.routes[c.route.id];if(f){let m=await dy(f,s);return m.links?m.links():[]}return[]}));return vy(i.flat(1).filter(fy).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Wg(a,r,s,i,c,f){let m=(v,h)=>s[h]?v.route.id!==s[h].route.id:!0,x=(v,h)=>{var b;return s[h].pathname!==v.pathname||((b=s[h].route.path)==null?void 0:b.endsWith("*"))&&s[h].params["*"]!==v.params["*"]};return f==="assets"?r.filter((v,h)=>m(v,h)||x(v,h)):f==="data"?r.filter((v,h)=>{var p;let b=i.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(m(v,h)||x(v,h))return!0;if(v.route.shouldRevalidate){let w=v.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((p=s[0])==null?void 0:p.params)||{},nextUrl:new URL(a,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function gy(a,r,{includeHydrateFallback:s}={}){return hy(a.map(i=>{let c=r.routes[i.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),s&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function hy(a){return[...new Set(a)]}function py(a){let r={},s=Object.keys(a).sort();for(let i of s)r[i]=a[i];return r}function vy(a,r){let s=new Set;return new Set(r),a.reduce((i,c)=>{let f=JSON.stringify(py(c));return s.has(f)||(s.add(f),i.push({key:f,link:c})),i},[])}function Vh(){let a=S.useContext(Ql);return Tc(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function xy(){let a=S.useContext(Ar);return Tc(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var Ac=S.createContext(void 0);Ac.displayName="FrameworkContext";function Gh(){let a=S.useContext(Ac);return Tc(a,"You must render this element inside a <HydratedRouter> element"),a}function yy(a,r){let s=S.useContext(Ac),[i,c]=S.useState(!1),[f,m]=S.useState(!1),{onFocus:x,onBlur:v,onMouseEnter:h,onMouseLeave:b,onTouchStart:p}=r,w=S.useRef(null);S.useEffect(()=>{if(a==="render"&&m(!0),a==="viewport"){let _=A=>{A.forEach(Z=>{m(Z.isIntersecting)})},D=new IntersectionObserver(_,{threshold:.5});return w.current&&D.observe(w.current),()=>{D.disconnect()}}},[a]),S.useEffect(()=>{if(i){let _=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(_)}}},[i]);let N=()=>{c(!0)},j=()=>{c(!1),m(!1)};return s?a!=="intent"?[f,w,{}]:[f,w,{onFocus:Qs(x,N),onBlur:Qs(v,j),onMouseEnter:Qs(h,N),onMouseLeave:Qs(b,j),onTouchStart:Qs(p,N)}]:[!1,w,{}]}function Qs(a,r){return s=>{a&&a(s),s.defaultPrevented||r(s)}}function by({page:a,...r}){let{router:s}=Vh(),i=S.useMemo(()=>Eh(s.routes,a,s.basename),[s.routes,a,s.basename]);return i?S.createElement(wy,{page:a,matches:i,...r}):null}function Sy(a){let{manifest:r,routeModules:s}=Gh(),[i,c]=S.useState([]);return S.useEffect(()=>{let f=!1;return my(a,r,s).then(m=>{f||c(m)}),()=>{f=!0}},[a,r,s]),i}function wy({page:a,matches:r,...s}){let i=hn(),{future:c,manifest:f,routeModules:m}=Gh(),{basename:x}=Vh(),{loaderData:v,matches:h}=xy(),b=S.useMemo(()=>Wg(a,r,h,f,i,"data"),[a,r,h,f,i]),p=S.useMemo(()=>Wg(a,r,h,f,i,"assets"),[a,r,h,f,i]),w=S.useMemo(()=>{if(a===i.pathname+i.search+i.hash)return[];let _=new Set,D=!1;if(r.forEach(Z=>{var se;let F=f.routes[Z.route.id];!F||!F.hasLoader||(!b.some(ae=>ae.route.id===Z.route.id)&&Z.route.id in v&&((se=m[Z.route.id])!=null&&se.shouldRevalidate)||F.hasClientLoader?D=!0:_.add(Z.route.id))}),_.size===0)return[];let A=cy(a,x,c.unstable_trailingSlashAwareDataRequests,"data");return D&&_.size>0&&A.searchParams.set("_routes",r.filter(Z=>_.has(Z.route.id)).map(Z=>Z.route.id).join(",")),[A.pathname+A.search]},[x,c.unstable_trailingSlashAwareDataRequests,v,i,f,b,r,a,m]),N=S.useMemo(()=>gy(p,f),[p,f]),j=Sy(p);return S.createElement(S.Fragment,null,w.map(_=>S.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...s})),N.map(_=>S.createElement("link",{key:_,rel:"modulepreload",href:_,...s})),j.map(({key:_,link:D})=>S.createElement("link",{key:_,nonce:s.nonce,...D,crossOrigin:D.crossOrigin??s.crossOrigin})))}function Ny(...a){return r=>{a.forEach(s=>{typeof s=="function"?s(r):s!=null&&(s.current=r)})}}var Cy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Cy&&(window.__reactRouterVersion="7.13.1")}catch{}function jy({basename:a,children:r,unstable_useTransitions:s,window:i}){let c=S.useRef();c.current==null&&(c.current=ex({window:i,v5Compat:!0}));let f=c.current,[m,x]=S.useState({action:f.action,location:f.location}),v=S.useCallback(h=>{s===!1?x(h):S.startTransition(()=>x(h))},[s]);return S.useLayoutEffect(()=>f.listen(v),[f,v]),S.createElement(Px,{basename:a,children:r,location:m.location,navigationType:m.action,navigator:f,unstable_useTransitions:s})}var $h=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dc=S.forwardRef(function({onClick:r,discover:s="render",prefetch:i="none",relative:c,reloadDocument:f,replace:m,unstable_mask:x,state:v,target:h,to:b,preventScrollReset:p,viewTransition:w,unstable_defaultShouldRevalidate:N,...j},_){let{basename:D,navigator:A,unstable_useTransitions:Z}=S.useContext(Zt),F=typeof b=="string"&&$h.test(b),se=Th(b,D);b=se.to;let ae=Ox(b,{relative:c}),q=hn(),W=null;if(x){let re=Tr(x,[],q.unstable_mask?q.unstable_mask.pathname:"/",!0);D!=="/"&&(re.pathname=re.pathname==="/"?D:Nn([D,re.pathname])),W=A.createHref(re)}let[J,K,te]=yy(i,j),fe=My(b,{replace:m,unstable_mask:x,state:v,target:h,preventScrollReset:p,relative:c,viewTransition:w,unstable_defaultShouldRevalidate:N,unstable_useTransitions:Z});function Y(re){r&&r(re),re.defaultPrevented||fe(re)}let P=!(se.isExternal||f),de=S.createElement("a",{...j,...te,href:(P?W:void 0)||se.absoluteURL||ae,onClick:P?Y:r,ref:Ny(_,K),target:h,"data-discover":!F&&s==="render"?"true":void 0});return J&&!F?S.createElement(S.Fragment,null,de,S.createElement(by,{page:ae})):de});Dc.displayName="Link";var Ry=S.forwardRef(function({"aria-current":r="page",caseSensitive:s=!1,className:i="",end:c=!1,style:f,to:m,viewTransition:x,children:v,...h},b){let p=ni(m,{relative:h.relative}),w=hn(),N=S.useContext(Ar),{navigator:j,basename:_}=S.useContext(Zt),D=N!=null&&ky(p)&&x===!0,A=j.encodeLocation?j.encodeLocation(p).pathname:p.pathname,Z=w.pathname,F=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;s||(Z=Z.toLowerCase(),F=F?F.toLowerCase():null,A=A.toLowerCase()),F&&_&&(F=Qn(F,_)||F);const se=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let ae=Z===A||!c&&Z.startsWith(A)&&Z.charAt(se)==="/",q=F!=null&&(F===A||!c&&F.startsWith(A)&&F.charAt(A.length)==="/"),W={isActive:ae,isPending:q,isTransitioning:D},J=ae?r:void 0,K;typeof i=="function"?K=i(W):K=[i,ae?"active":null,q?"pending":null,D?"transitioning":null].filter(Boolean).join(" ");let te=typeof f=="function"?f(W):f;return S.createElement(Dc,{...h,"aria-current":J,className:K,ref:b,style:te,to:m,viewTransition:x},typeof v=="function"?v(W):v)});Ry.displayName="NavLink";var Ey=S.forwardRef(({discover:a="render",fetcherKey:r,navigate:s,reloadDocument:i,replace:c,state:f,method:m=jr,action:x,onSubmit:v,relative:h,preventScrollReset:b,viewTransition:p,unstable_defaultShouldRevalidate:w,...N},j)=>{let{unstable_useTransitions:_}=S.useContext(Zt),D=Dy(),A=Oy(x,{relative:h}),Z=m.toLowerCase()==="get"?"get":"post",F=typeof x=="string"&&$h.test(x),se=ae=>{if(v&&v(ae),ae.defaultPrevented)return;ae.preventDefault();let q=ae.nativeEvent.submitter,W=(q==null?void 0:q.getAttribute("formmethod"))||m,J=()=>D(q||ae.currentTarget,{fetcherKey:r,method:W,navigate:s,replace:c,state:f,relative:h,preventScrollReset:b,viewTransition:p,unstable_defaultShouldRevalidate:w});_&&s!==!1?S.startTransition(()=>J()):J()};return S.createElement("form",{ref:j,method:Z,action:A,onSubmit:i?v:se,...N,"data-discover":!F&&a==="render"?"true":void 0})});Ey.displayName="Form";function _y(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qh(a){let r=S.useContext(Ql);return Ze(r,_y(a)),r}function My(a,{target:r,replace:s,unstable_mask:i,state:c,preventScrollReset:f,relative:m,viewTransition:x,unstable_defaultShouldRevalidate:v,unstable_useTransitions:h}={}){let b=ti(),p=hn(),w=ni(a,{relative:m});return S.useCallback(N=>{if(sy(N,r)){N.preventDefault();let j=s!==void 0?s:Ws(p)===Ws(w),_=()=>b(a,{replace:j,unstable_mask:i,state:c,preventScrollReset:f,relative:m,viewTransition:x,unstable_defaultShouldRevalidate:v});h?S.startTransition(()=>_()):_()}},[p,b,w,s,i,c,r,a,f,m,x,v,h])}function zy(a){sn(typeof URLSearchParams<"u","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 r=S.useRef(vc(a)),s=S.useRef(!1),i=hn(),c=S.useMemo(()=>iy(i.search,s.current?null:r.current),[i.search]),f=ti(),m=S.useCallback((x,v)=>{const h=vc(typeof x=="function"?x(new URLSearchParams(c)):x);s.current=!0,f("?"+h,v)},[f,c]);return[c,m]}var Ty=0,Ay=()=>`__${String(++Ty)}__`;function Dy(){let{router:a}=qh("useSubmit"),{basename:r}=S.useContext(Zt),s=Qx(),i=a.fetch,c=a.navigate;return S.useCallback(async(f,m={})=>{let{action:x,method:v,encType:h,formData:b,body:p}=uy(f,r);if(m.navigate===!1){let w=m.fetcherKey||Ay();await i(w,s,m.action||x,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:b,body:p,formMethod:m.method||v,formEncType:m.encType||h,flushSync:m.flushSync})}else await c(m.action||x,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:b,body:p,formMethod:m.method||v,formEncType:m.encType||h,replace:m.replace,state:m.state,fromRouteId:s,flushSync:m.flushSync,viewTransition:m.viewTransition})},[i,c,r,s])}function Oy(a,{relative:r}={}){let{basename:s}=S.useContext(Zt),i=S.useContext(gn);Ze(i,"useFormAction must be used inside a RouteContext");let[c]=i.matches.slice(-1),f={...ni(a||".",{relative:r})},m=hn();if(a==null){f.search=m.search;let x=new URLSearchParams(f.search),v=x.getAll("index");if(v.some(b=>b==="")){x.delete("index"),v.filter(p=>p).forEach(p=>x.append("index",p));let b=x.toString();f.search=b?`?${b}`:""}}return(!a||a===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(f.pathname=f.pathname==="/"?s:Nn([s,f.pathname])),Ws(f)}function ky(a,{relative:r}={}){let s=S.useContext(Dh);Ze(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=qh("useViewTransitionState"),c=ni(a,{relative:r});if(!s.isTransitioning)return!1;let f=Qn(s.currentLocation.pathname,i)||s.currentLocation.pathname,m=Qn(s.nextLocation.pathname,i)||s.nextLocation.pathname;return Er(c.pathname,m)!=null||Er(c.pathname,f)!=null}var Hy=Rh();const Uy=jh(Hy),Pg=a=>{let r;const s=new Set,i=(h,b)=>{const p=typeof h=="function"?h(r):h;if(!Object.is(p,r)){const w=r;r=b??(typeof p!="object"||p===null)?p:Object.assign({},r,p),s.forEach(N=>N(r,w))}},c=()=>r,x={setState:i,getState:c,getInitialState:()=>v,subscribe:h=>(s.add(h),()=>s.delete(h))},v=r=a(i,c,x);return x},By=(a=>a?Pg(a):Pg),Ly=a=>a;function Vy(a,r=Ly){const s=ee.useSyncExternalStore(a.subscribe,ee.useCallback(()=>r(a.getState()),[a,r]),ee.useCallback(()=>r(a.getInitialState()),[a,r]));return ee.useDebugValue(s),s}const eh=a=>{const r=By(a),s=i=>Vy(r,i);return Object.assign(s,r),s},Gy=(a=>a?eh(a):eh);function $y(a){return Gy((r,s)=>({apiBase:a,tables:{},selectedTable:null,functions:{queries:[]},status:null,setApiBase:i=>r({apiBase:i}),setSelectedTable:i=>r({selectedTable:i}),fetchTables:async()=>{const i=await fetch(`${s().apiBase}/_admin/tables`);if(!i.ok)return;const c=await i.json();r({tables:c})},fetchTableData:async(i,c=50,f=0)=>{const m=await fetch(`${s().apiBase}/_admin/data/${i}?limit=${c}&offset=${f}`);return m.ok?m.json():{data:[],total:0}},fetchFunctions:async()=>{const i=await fetch(`${s().apiBase}/_admin/functions`);if(!i.ok)return;const c=await i.json();r({functions:c})},fetchStatus:async()=>{try{const i=await fetch(`${s().apiBase}/_admin/status`);if(!i.ok)return;const c=await i.json();r({status:c})}catch{}},insertRow:async(i,c)=>{await fetch(`${s().apiBase}/_admin/data/${i}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)})},deleteRow:async(i,c)=>{await fetch(`${s().apiBase}/_admin/data/${i}/${c}`,{method:"DELETE"})}}))}const qy=typeof window<"u"?window.location.origin:"http://localhost:5456",Xt=$y(qy),Yy=S.createContext(null);function Ma(){const a=S.useContext(Yy);return a||{apiBase:typeof window<"u"?window.location.origin:"http://localhost:5456",appStatus:"running",backendStatus:"running",hasStatic:!1}}/**
61
61
  * table-core
62
62
  *
63
63
  * Copyright (c) TanStack
@@ -78,72 +78,72 @@ Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}
78
78
  * LICENSE.md file in the root directory of this source tree.
79
79
  *
80
80
  * @license MIT
81
- */function ah(a,r){return a?Db(a)?S.createElement(a,r):a:null}function Db(a){return Ob(a)||typeof a=="function"||kb(a)}function Ob(a){return typeof a=="function"&&(()=>{const r=Object.getPrototypeOf(a);return r.prototype&&r.prototype.isReactComponent})()}function kb(a){return typeof a=="object"&&typeof a.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(a.$$typeof.description)}function Hb(a){const r={state:{},onStateChange:()=>{},renderFallbackValue:null,...a},[s]=S.useState(()=>({current:zb(r)})),[i,c]=S.useState(()=>s.current.initialState);return s.current.setOptions(f=>({...f,...a,state:{...i,...a.state},onStateChange:m=>{c(m),a.onStateChange==null||a.onStateChange(m)}})),s.current}function Ph(a){var r,s,i="";if(typeof a=="string"||typeof a=="number")i+=a;else if(typeof a=="object")if(Array.isArray(a)){var c=a.length;for(r=0;r<c;r++)a[r]&&(s=Ph(a[r]))&&(i&&(i+=" "),i+=s)}else for(s in a)a[s]&&(i&&(i+=" "),i+=s);return i}function Ub(){for(var a,r,s=0,i="",c=arguments.length;s<c;s++)(a=arguments[s])&&(r=Ph(a))&&(i&&(i+=" "),i+=r);return i}const Bb=(a,r)=>{const s=new Array(a.length+r.length);for(let i=0;i<a.length;i++)s[i]=a[i];for(let i=0;i<r.length;i++)s[a.length+i]=r[i];return s},Lb=(a,r)=>({classGroupId:a,validator:r}),ep=(a=new Map,r=null,s)=>({nextPart:a,validators:r,classGroupId:s}),_r="-",lh=[],Vb="arbitrary..",$b=a=>{const r=qb(a),{conflictingClassGroups:s,conflictingClassGroupModifiers:i}=a;return{getClassGroupId:m=>{if(m.startsWith("[")&&m.endsWith("]"))return Gb(m);const x=m.split(_r),v=x[0]===""&&x.length>1?1:0;return tp(x,v,r)},getConflictingClassGroupIds:(m,x)=>{if(x){const v=i[m],h=s[m];return v?h?Bb(h,v):v:h||lh}return s[m]||lh}}},tp=(a,r,s)=>{if(a.length-r===0)return s.classGroupId;const c=a[r],f=s.nextPart.get(c);if(f){const h=tp(a,r+1,f);if(h)return h}const m=s.validators;if(m===null)return;const x=r===0?a.join(_r):a.slice(r).join(_r),v=m.length;for(let h=0;h<v;h++){const b=m[h];if(b.validator(x))return b.classGroupId}},Gb=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=a.slice(1,-1),s=r.indexOf(":"),i=r.slice(0,s);return i?Vb+i:void 0})(),qb=a=>{const{theme:r,classGroups:s}=a;return Yb(s,r)},Yb=(a,r)=>{const s=ep();for(const i in a){const c=a[i];Uc(c,s,i,r)}return s},Uc=(a,r,s,i)=>{const c=a.length;for(let f=0;f<c;f++){const m=a[f];Fb(m,r,s,i)}},Fb=(a,r,s,i)=>{if(typeof a=="string"){Xb(a,r,s);return}if(typeof a=="function"){Qb(a,r,s,i);return}Zb(a,r,s,i)},Xb=(a,r,s)=>{const i=a===""?r:np(r,a);i.classGroupId=s},Qb=(a,r,s,i)=>{if(Kb(a)){Uc(a(i),r,s,i);return}r.validators===null&&(r.validators=[]),r.validators.push(Lb(s,a))},Zb=(a,r,s,i)=>{const c=Object.entries(a),f=c.length;for(let m=0;m<f;m++){const[x,v]=c[m];Uc(v,np(r,x),s,i)}},np=(a,r)=>{let s=a;const i=r.split(_r),c=i.length;for(let f=0;f<c;f++){const m=i[f];let x=s.nextPart.get(m);x||(x=ep(),s.nextPart.set(m,x)),s=x}return s},Kb=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,Jb=a=>{if(a<1)return{get:()=>{},set:()=>{}};let r=0,s=Object.create(null),i=Object.create(null);const c=(f,m)=>{s[f]=m,r++,r>a&&(r=0,i=s,s=Object.create(null))};return{get(f){let m=s[f];if(m!==void 0)return m;if((m=i[f])!==void 0)return c(f,m),m},set(f,m){f in s?s[f]=m:c(f,m)}}},Nc="!",sh=":",Ib=[],ih=(a,r,s,i,c)=>({modifiers:a,hasImportantModifier:r,baseClassName:s,maybePostfixModifierPosition:i,isExternal:c}),Wb=a=>{const{prefix:r,experimentalParseClassName:s}=a;let i=c=>{const f=[];let m=0,x=0,v=0,h;const b=c.length;for(let _=0;_<b;_++){const D=c[_];if(m===0&&x===0){if(D===sh){f.push(c.slice(v,_)),v=_+1;continue}if(D==="/"){h=_;continue}}D==="["?m++:D==="]"?m--:D==="("?x++:D===")"&&x--}const p=f.length===0?c:c.slice(v);let w=p,N=!1;p.endsWith(Nc)?(w=p.slice(0,-1),N=!0):p.startsWith(Nc)&&(w=p.slice(1),N=!0);const j=h&&h>v?h-v:void 0;return ih(f,N,w,j)};if(r){const c=r+sh,f=i;i=m=>m.startsWith(c)?f(m.slice(c.length)):ih(Ib,!1,m,void 0,!0)}if(s){const c=i;i=f=>s({className:f,parseClassName:c})}return i},Pb=a=>{const r=new Map;return a.orderSensitiveModifiers.forEach((s,i)=>{r.set(s,1e6+i)}),s=>{const i=[];let c=[];for(let f=0;f<s.length;f++){const m=s[f],x=m[0]==="[",v=r.has(m);x||v?(c.length>0&&(c.sort(),i.push(...c),c=[]),i.push(m)):c.push(m)}return c.length>0&&(c.sort(),i.push(...c)),i}},e1=a=>({cache:Jb(a.cacheSize),parseClassName:Wb(a),sortModifiers:Pb(a),...$b(a)}),t1=/\s+/,n1=(a,r)=>{const{parseClassName:s,getClassGroupId:i,getConflictingClassGroupIds:c,sortModifiers:f}=r,m=[],x=a.trim().split(t1);let v="";for(let h=x.length-1;h>=0;h-=1){const b=x[h],{isExternal:p,modifiers:w,hasImportantModifier:N,baseClassName:j,maybePostfixModifierPosition:_}=s(b);if(p){v=b+(v.length>0?" "+v:v);continue}let D=!!_,A=i(D?j.substring(0,_):j);if(!A){if(!D){v=b+(v.length>0?" "+v:v);continue}if(A=i(j),!A){v=b+(v.length>0?" "+v:v);continue}D=!1}const Z=w.length===0?"":w.length===1?w[0]:f(w).join(":"),F=N?Z+Nc:Z,se=F+A;if(m.indexOf(se)>-1)continue;m.push(se);const ae=c(A,D);for(let q=0;q<ae.length;++q){const W=ae[q];m.push(F+W)}v=b+(v.length>0?" "+v:v)}return v},a1=(...a)=>{let r=0,s,i,c="";for(;r<a.length;)(s=a[r++])&&(i=ap(s))&&(c&&(c+=" "),c+=i);return c},ap=a=>{if(typeof a=="string")return a;let r,s="";for(let i=0;i<a.length;i++)a[i]&&(r=ap(a[i]))&&(s&&(s+=" "),s+=r);return s},l1=(a,...r)=>{let s,i,c,f;const m=v=>{const h=r.reduce((b,p)=>p(b),a());return s=e1(h),i=s.cache.get,c=s.cache.set,f=x,x(v)},x=v=>{const h=i(v);if(h)return h;const b=n1(v,s);return c(v,b),b};return f=m,(...v)=>f(a1(...v))},s1=[],st=a=>{const r=s=>s[a]||s1;return r.isThemeGetter=!0,r},lp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,sp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,i1=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,r1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,o1=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,u1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,c1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,d1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wa=a=>i1.test(a),Re=a=>!!a&&!Number.isNaN(Number(a)),Na=a=>!!a&&Number.isInteger(Number(a)),cc=a=>a.endsWith("%")&&Re(a.slice(0,-1)),qn=a=>r1.test(a),ip=()=>!0,f1=a=>o1.test(a)&&!u1.test(a),Bc=()=>!1,m1=a=>c1.test(a),g1=a=>d1.test(a),h1=a=>!oe(a)&&!ue(a),p1=a=>za(a,up,Bc),oe=a=>lp.test(a),el=a=>za(a,cp,f1),rh=a=>za(a,C1,Re),v1=a=>za(a,fp,ip),x1=a=>za(a,dp,Bc),oh=a=>za(a,rp,Bc),y1=a=>za(a,op,g1),Sr=a=>za(a,mp,m1),ue=a=>sp.test(a),Ks=a=>tl(a,cp),b1=a=>tl(a,dp),uh=a=>tl(a,rp),S1=a=>tl(a,up),w1=a=>tl(a,op),wr=a=>tl(a,mp,!0),N1=a=>tl(a,fp,!0),za=(a,r,s)=>{const i=lp.exec(a);return i?i[1]?r(i[1]):s(i[2]):!1},tl=(a,r,s=!1)=>{const i=sp.exec(a);return i?i[1]?r(i[1]):s:!1},rp=a=>a==="position"||a==="percentage",op=a=>a==="image"||a==="url",up=a=>a==="length"||a==="size"||a==="bg-size",cp=a=>a==="length",C1=a=>a==="number",dp=a=>a==="family-name",fp=a=>a==="number"||a==="weight",mp=a=>a==="shadow",j1=()=>{const a=st("color"),r=st("font"),s=st("text"),i=st("font-weight"),c=st("tracking"),f=st("leading"),m=st("breakpoint"),x=st("container"),v=st("spacing"),h=st("radius"),b=st("shadow"),p=st("inset-shadow"),w=st("text-shadow"),N=st("drop-shadow"),j=st("blur"),_=st("perspective"),D=st("aspect"),A=st("ease"),Z=st("animate"),F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],se=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ae=()=>[...se(),ue,oe],q=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],J=()=>[ue,oe,v],K=()=>[wa,"full","auto",...J()],te=()=>[Na,"none","subgrid",ue,oe],fe=()=>["auto",{span:["full",Na,ue,oe]},Na,ue,oe],Y=()=>[Na,"auto",ue,oe],P=()=>["auto","min","max","fr",ue,oe],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...J()],$=()=>[wa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...J()],le=()=>[wa,"screen","full","dvw","lvw","svw","min","max","fit",...J()],me=()=>[wa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...J()],I=()=>[a,ue,oe],R=()=>[...se(),uh,oh,{position:[ue,oe]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],U=()=>["auto","cover","contain",S1,p1,{size:[ue,oe]}],X=()=>[cc,Ks,el],Q=()=>["","none","full",h,ue,oe],ne=()=>["",Re,Ks,el],ve=()=>["solid","dashed","dotted","double"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>[Re,cc,uh,oh],wt=()=>["","none",j,ue,oe],ut=()=>["none",Re,ue,oe],ct=()=>["none",Re,ue,oe],Zn=()=>[Re,ue,oe],vt=()=>[wa,"full",...J()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qn],breakpoint:[qn],color:[ip],container:[qn],"drop-shadow":[qn],ease:["in","out","in-out"],font:[h1],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qn],shadow:[qn],spacing:["px",Re],text:[qn],"text-shadow":[qn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wa,oe,ue,D]}],container:["container"],columns:[{columns:[Re,oe,ue,x]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ae()}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[Na,"auto",ue,oe]}],basis:[{basis:[wa,"full","auto",x,...J()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Re,wa,"auto","initial","none",oe]}],grow:[{grow:["",Re,ue,oe]}],shrink:[{shrink:["",Re,ue,oe]}],order:[{order:[Na,"first","last","none",ue,oe]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:fe()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:fe()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:J()}],"gap-x":[{"gap-x":J()}],"gap-y":[{"gap-y":J()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:J()}],px:[{px:J()}],py:[{py:J()}],ps:[{ps:J()}],pe:[{pe:J()}],pbs:[{pbs:J()}],pbe:[{pbe:J()}],pt:[{pt:J()}],pr:[{pr:J()}],pb:[{pb:J()}],pl:[{pl:J()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":J()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":J()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...le()]}],"min-inline-size":[{"min-inline":["auto",...le()]}],"max-inline-size":[{"max-inline":["none",...le()]}],"block-size":[{block:["auto",...me()]}],"min-block-size":[{"min-block":["auto",...me()]}],"max-block-size":[{"max-block":["none",...me()]}],w:[{w:[x,"screen",...$()]}],"min-w":[{"min-w":[x,"screen","none",...$()]}],"max-w":[{"max-w":[x,"screen","none","prose",{screen:[m]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",s,Ks,el]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,N1,v1]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",cc,oe]}],"font-family":[{font:[b1,x1,r]}],"font-features":[{"font-features":[oe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,ue,oe]}],"line-clamp":[{"line-clamp":[Re,"none",ue,rh]}],leading:[{leading:[f,...J()]}],"list-image":[{"list-image":["none",ue,oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ue,oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[Re,"from-font","auto",ue,el]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[Re,"auto",ue,oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:J()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue,oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ue,oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:U()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Na,ue,oe],radial:["",ue,oe],conic:[Na,ue,oe]},w1,y1]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-bs":[{"border-bs":ne()}],"border-w-be":[{"border-be":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ve(),"hidden","none"]}],"divide-style":[{divide:[...ve(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Re,ue,oe]}],"outline-w":[{outline:["",Re,Ks,el]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",b,wr,Sr]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",p,wr,Sr]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[Re,el]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",w,wr,Sr]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[Re,ue,oe]}],"mix-blend":[{"mix-blend":[...pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Re]}],"mask-image-linear-from-pos":[{"mask-linear-from":he()}],"mask-image-linear-to-pos":[{"mask-linear-to":he()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":he()}],"mask-image-t-to-pos":[{"mask-t-to":he()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":he()}],"mask-image-r-to-pos":[{"mask-r-to":he()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":he()}],"mask-image-b-to-pos":[{"mask-b-to":he()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":he()}],"mask-image-l-to-pos":[{"mask-l-to":he()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":he()}],"mask-image-x-to-pos":[{"mask-x-to":he()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":he()}],"mask-image-y-to-pos":[{"mask-y-to":he()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[ue,oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":he()}],"mask-image-radial-to-pos":[{"mask-radial-to":he()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":se()}],"mask-image-conic-pos":[{"mask-conic":[Re]}],"mask-image-conic-from-pos":[{"mask-conic-from":he()}],"mask-image-conic-to-pos":[{"mask-conic-to":he()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:U()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ue,oe]}],filter:[{filter:["","none",ue,oe]}],blur:[{blur:wt()}],brightness:[{brightness:[Re,ue,oe]}],contrast:[{contrast:[Re,ue,oe]}],"drop-shadow":[{"drop-shadow":["","none",N,wr,Sr]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",Re,ue,oe]}],"hue-rotate":[{"hue-rotate":[Re,ue,oe]}],invert:[{invert:["",Re,ue,oe]}],saturate:[{saturate:[Re,ue,oe]}],sepia:[{sepia:["",Re,ue,oe]}],"backdrop-filter":[{"backdrop-filter":["","none",ue,oe]}],"backdrop-blur":[{"backdrop-blur":wt()}],"backdrop-brightness":[{"backdrop-brightness":[Re,ue,oe]}],"backdrop-contrast":[{"backdrop-contrast":[Re,ue,oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Re,ue,oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Re,ue,oe]}],"backdrop-invert":[{"backdrop-invert":["",Re,ue,oe]}],"backdrop-opacity":[{"backdrop-opacity":[Re,ue,oe]}],"backdrop-saturate":[{"backdrop-saturate":[Re,ue,oe]}],"backdrop-sepia":[{"backdrop-sepia":["",Re,ue,oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":J()}],"border-spacing-x":[{"border-spacing-x":J()}],"border-spacing-y":[{"border-spacing-y":J()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ue,oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Re,"initial",ue,oe]}],ease:[{ease:["linear","initial",A,ue,oe]}],delay:[{delay:[Re,ue,oe]}],animate:[{animate:["none",Z,ue,oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,ue,oe]}],"perspective-origin":[{"perspective-origin":ae()}],rotate:[{rotate:ut()}],"rotate-x":[{"rotate-x":ut()}],"rotate-y":[{"rotate-y":ut()}],"rotate-z":[{"rotate-z":ut()}],scale:[{scale:ct()}],"scale-x":[{"scale-x":ct()}],"scale-y":[{"scale-y":ct()}],"scale-z":[{"scale-z":ct()}],"scale-3d":["scale-3d"],skew:[{skew:Zn()}],"skew-x":[{"skew-x":Zn()}],"skew-y":[{"skew-y":Zn()}],transform:[{transform:[ue,oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:ae()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:vt()}],"translate-x":[{"translate-x":vt()}],"translate-y":[{"translate-y":vt()}],"translate-z":[{"translate-z":vt()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ue,oe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":J()}],"scroll-mx":[{"scroll-mx":J()}],"scroll-my":[{"scroll-my":J()}],"scroll-ms":[{"scroll-ms":J()}],"scroll-me":[{"scroll-me":J()}],"scroll-mbs":[{"scroll-mbs":J()}],"scroll-mbe":[{"scroll-mbe":J()}],"scroll-mt":[{"scroll-mt":J()}],"scroll-mr":[{"scroll-mr":J()}],"scroll-mb":[{"scroll-mb":J()}],"scroll-ml":[{"scroll-ml":J()}],"scroll-p":[{"scroll-p":J()}],"scroll-px":[{"scroll-px":J()}],"scroll-py":[{"scroll-py":J()}],"scroll-ps":[{"scroll-ps":J()}],"scroll-pe":[{"scroll-pe":J()}],"scroll-pbs":[{"scroll-pbs":J()}],"scroll-pbe":[{"scroll-pbe":J()}],"scroll-pt":[{"scroll-pt":J()}],"scroll-pr":[{"scroll-pr":J()}],"scroll-pb":[{"scroll-pb":J()}],"scroll-pl":[{"scroll-pl":J()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ue,oe]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[Re,Ks,el,rh]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},R1=l1(j1);function Ee(...a){return R1(Ub(a))}function E1({className:a,...r}){return d.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:d.jsx("table",{"data-slot":"table",className:Ee("w-full caption-bottom text-sm",a),...r})})}function _1({className:a,...r}){return d.jsx("thead",{"data-slot":"table-header",className:Ee("[&_tr]:border-b",a),...r})}function M1({className:a,...r}){return d.jsx("tbody",{"data-slot":"table-body",className:Ee("[&_tr:last-child]:border-0",a),...r})}function dc({className:a,...r}){return d.jsx("tr",{"data-slot":"table-row",className:Ee("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",a),...r})}function z1({className:a,...r}){return d.jsx("th",{"data-slot":"table-head",className:Ee("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...r})}function ch({className:a,...r}){return d.jsx("td",{"data-slot":"table-cell",className:Ee("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...r})}/**
81
+ */function ah(a,r){return a?Db(a)?S.createElement(a,r):a:null}function Db(a){return Ob(a)||typeof a=="function"||kb(a)}function Ob(a){return typeof a=="function"&&(()=>{const r=Object.getPrototypeOf(a);return r.prototype&&r.prototype.isReactComponent})()}function kb(a){return typeof a=="object"&&typeof a.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(a.$$typeof.description)}function Hb(a){const r={state:{},onStateChange:()=>{},renderFallbackValue:null,...a},[s]=S.useState(()=>({current:zb(r)})),[i,c]=S.useState(()=>s.current.initialState);return s.current.setOptions(f=>({...f,...a,state:{...i,...a.state},onStateChange:m=>{c(m),a.onStateChange==null||a.onStateChange(m)}})),s.current}function Ph(a){var r,s,i="";if(typeof a=="string"||typeof a=="number")i+=a;else if(typeof a=="object")if(Array.isArray(a)){var c=a.length;for(r=0;r<c;r++)a[r]&&(s=Ph(a[r]))&&(i&&(i+=" "),i+=s)}else for(s in a)a[s]&&(i&&(i+=" "),i+=s);return i}function ep(){for(var a,r,s=0,i="",c=arguments.length;s<c;s++)(a=arguments[s])&&(r=Ph(a))&&(i&&(i+=" "),i+=r);return i}const Ub=(a,r)=>{const s=new Array(a.length+r.length);for(let i=0;i<a.length;i++)s[i]=a[i];for(let i=0;i<r.length;i++)s[a.length+i]=r[i];return s},Bb=(a,r)=>({classGroupId:a,validator:r}),tp=(a=new Map,r=null,s)=>({nextPart:a,validators:r,classGroupId:s}),_r="-",lh=[],Lb="arbitrary..",Vb=a=>{const r=$b(a),{conflictingClassGroups:s,conflictingClassGroupModifiers:i}=a;return{getClassGroupId:m=>{if(m.startsWith("[")&&m.endsWith("]"))return Gb(m);const x=m.split(_r),v=x[0]===""&&x.length>1?1:0;return np(x,v,r)},getConflictingClassGroupIds:(m,x)=>{if(x){const v=i[m],h=s[m];return v?h?Ub(h,v):v:h||lh}return s[m]||lh}}},np=(a,r,s)=>{if(a.length-r===0)return s.classGroupId;const c=a[r],f=s.nextPart.get(c);if(f){const h=np(a,r+1,f);if(h)return h}const m=s.validators;if(m===null)return;const x=r===0?a.join(_r):a.slice(r).join(_r),v=m.length;for(let h=0;h<v;h++){const b=m[h];if(b.validator(x))return b.classGroupId}},Gb=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=a.slice(1,-1),s=r.indexOf(":"),i=r.slice(0,s);return i?Lb+i:void 0})(),$b=a=>{const{theme:r,classGroups:s}=a;return qb(s,r)},qb=(a,r)=>{const s=tp();for(const i in a){const c=a[i];Uc(c,s,i,r)}return s},Uc=(a,r,s,i)=>{const c=a.length;for(let f=0;f<c;f++){const m=a[f];Yb(m,r,s,i)}},Yb=(a,r,s,i)=>{if(typeof a=="string"){Fb(a,r,s);return}if(typeof a=="function"){Xb(a,r,s,i);return}Qb(a,r,s,i)},Fb=(a,r,s)=>{const i=a===""?r:ap(r,a);i.classGroupId=s},Xb=(a,r,s,i)=>{if(Zb(a)){Uc(a(i),r,s,i);return}r.validators===null&&(r.validators=[]),r.validators.push(Bb(s,a))},Qb=(a,r,s,i)=>{const c=Object.entries(a),f=c.length;for(let m=0;m<f;m++){const[x,v]=c[m];Uc(v,ap(r,x),s,i)}},ap=(a,r)=>{let s=a;const i=r.split(_r),c=i.length;for(let f=0;f<c;f++){const m=i[f];let x=s.nextPart.get(m);x||(x=tp(),s.nextPart.set(m,x)),s=x}return s},Zb=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,Kb=a=>{if(a<1)return{get:()=>{},set:()=>{}};let r=0,s=Object.create(null),i=Object.create(null);const c=(f,m)=>{s[f]=m,r++,r>a&&(r=0,i=s,s=Object.create(null))};return{get(f){let m=s[f];if(m!==void 0)return m;if((m=i[f])!==void 0)return c(f,m),m},set(f,m){f in s?s[f]=m:c(f,m)}}},Nc="!",sh=":",Jb=[],ih=(a,r,s,i,c)=>({modifiers:a,hasImportantModifier:r,baseClassName:s,maybePostfixModifierPosition:i,isExternal:c}),Ib=a=>{const{prefix:r,experimentalParseClassName:s}=a;let i=c=>{const f=[];let m=0,x=0,v=0,h;const b=c.length;for(let _=0;_<b;_++){const D=c[_];if(m===0&&x===0){if(D===sh){f.push(c.slice(v,_)),v=_+1;continue}if(D==="/"){h=_;continue}}D==="["?m++:D==="]"?m--:D==="("?x++:D===")"&&x--}const p=f.length===0?c:c.slice(v);let w=p,N=!1;p.endsWith(Nc)?(w=p.slice(0,-1),N=!0):p.startsWith(Nc)&&(w=p.slice(1),N=!0);const j=h&&h>v?h-v:void 0;return ih(f,N,w,j)};if(r){const c=r+sh,f=i;i=m=>m.startsWith(c)?f(m.slice(c.length)):ih(Jb,!1,m,void 0,!0)}if(s){const c=i;i=f=>s({className:f,parseClassName:c})}return i},Wb=a=>{const r=new Map;return a.orderSensitiveModifiers.forEach((s,i)=>{r.set(s,1e6+i)}),s=>{const i=[];let c=[];for(let f=0;f<s.length;f++){const m=s[f],x=m[0]==="[",v=r.has(m);x||v?(c.length>0&&(c.sort(),i.push(...c),c=[]),i.push(m)):c.push(m)}return c.length>0&&(c.sort(),i.push(...c)),i}},Pb=a=>({cache:Kb(a.cacheSize),parseClassName:Ib(a),sortModifiers:Wb(a),...Vb(a)}),e1=/\s+/,t1=(a,r)=>{const{parseClassName:s,getClassGroupId:i,getConflictingClassGroupIds:c,sortModifiers:f}=r,m=[],x=a.trim().split(e1);let v="";for(let h=x.length-1;h>=0;h-=1){const b=x[h],{isExternal:p,modifiers:w,hasImportantModifier:N,baseClassName:j,maybePostfixModifierPosition:_}=s(b);if(p){v=b+(v.length>0?" "+v:v);continue}let D=!!_,A=i(D?j.substring(0,_):j);if(!A){if(!D){v=b+(v.length>0?" "+v:v);continue}if(A=i(j),!A){v=b+(v.length>0?" "+v:v);continue}D=!1}const Z=w.length===0?"":w.length===1?w[0]:f(w).join(":"),F=N?Z+Nc:Z,se=F+A;if(m.indexOf(se)>-1)continue;m.push(se);const ae=c(A,D);for(let q=0;q<ae.length;++q){const W=ae[q];m.push(F+W)}v=b+(v.length>0?" "+v:v)}return v},n1=(...a)=>{let r=0,s,i,c="";for(;r<a.length;)(s=a[r++])&&(i=lp(s))&&(c&&(c+=" "),c+=i);return c},lp=a=>{if(typeof a=="string")return a;let r,s="";for(let i=0;i<a.length;i++)a[i]&&(r=lp(a[i]))&&(s&&(s+=" "),s+=r);return s},a1=(a,...r)=>{let s,i,c,f;const m=v=>{const h=r.reduce((b,p)=>p(b),a());return s=Pb(h),i=s.cache.get,c=s.cache.set,f=x,x(v)},x=v=>{const h=i(v);if(h)return h;const b=t1(v,s);return c(v,b),b};return f=m,(...v)=>f(n1(...v))},l1=[],st=a=>{const r=s=>s[a]||l1;return r.isThemeGetter=!0,r},sp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ip=/^\((?:(\w[\w-]*):)?(.+)\)$/i,s1=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,i1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,r1=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,o1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,u1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,c1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wa=a=>s1.test(a),Re=a=>!!a&&!Number.isNaN(Number(a)),Na=a=>!!a&&Number.isInteger(Number(a)),cc=a=>a.endsWith("%")&&Re(a.slice(0,-1)),qn=a=>i1.test(a),rp=()=>!0,d1=a=>r1.test(a)&&!o1.test(a),Bc=()=>!1,f1=a=>u1.test(a),m1=a=>c1.test(a),g1=a=>!oe(a)&&!ue(a),h1=a=>za(a,cp,Bc),oe=a=>sp.test(a),el=a=>za(a,dp,d1),rh=a=>za(a,N1,Re),p1=a=>za(a,mp,rp),v1=a=>za(a,fp,Bc),oh=a=>za(a,op,Bc),x1=a=>za(a,up,m1),Sr=a=>za(a,gp,f1),ue=a=>ip.test(a),Ks=a=>tl(a,dp),y1=a=>tl(a,fp),uh=a=>tl(a,op),b1=a=>tl(a,cp),S1=a=>tl(a,up),wr=a=>tl(a,gp,!0),w1=a=>tl(a,mp,!0),za=(a,r,s)=>{const i=sp.exec(a);return i?i[1]?r(i[1]):s(i[2]):!1},tl=(a,r,s=!1)=>{const i=ip.exec(a);return i?i[1]?r(i[1]):s:!1},op=a=>a==="position"||a==="percentage",up=a=>a==="image"||a==="url",cp=a=>a==="length"||a==="size"||a==="bg-size",dp=a=>a==="length",N1=a=>a==="number",fp=a=>a==="family-name",mp=a=>a==="number"||a==="weight",gp=a=>a==="shadow",C1=()=>{const a=st("color"),r=st("font"),s=st("text"),i=st("font-weight"),c=st("tracking"),f=st("leading"),m=st("breakpoint"),x=st("container"),v=st("spacing"),h=st("radius"),b=st("shadow"),p=st("inset-shadow"),w=st("text-shadow"),N=st("drop-shadow"),j=st("blur"),_=st("perspective"),D=st("aspect"),A=st("ease"),Z=st("animate"),F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],se=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ae=()=>[...se(),ue,oe],q=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],J=()=>[ue,oe,v],K=()=>[wa,"full","auto",...J()],te=()=>[Na,"none","subgrid",ue,oe],fe=()=>["auto",{span:["full",Na,ue,oe]},Na,ue,oe],Y=()=>[Na,"auto",ue,oe],P=()=>["auto","min","max","fr",ue,oe],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...J()],G=()=>[wa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...J()],le=()=>[wa,"screen","full","dvw","lvw","svw","min","max","fit",...J()],me=()=>[wa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...J()],I=()=>[a,ue,oe],R=()=>[...se(),uh,oh,{position:[ue,oe]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],U=()=>["auto","cover","contain",b1,h1,{size:[ue,oe]}],X=()=>[cc,Ks,el],Q=()=>["","none","full",h,ue,oe],ne=()=>["",Re,Ks,el],ve=()=>["solid","dashed","dotted","double"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>[Re,cc,uh,oh],wt=()=>["","none",j,ue,oe],ut=()=>["none",Re,ue,oe],ct=()=>["none",Re,ue,oe],Zn=()=>[Re,ue,oe],vt=()=>[wa,"full",...J()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qn],breakpoint:[qn],color:[rp],container:[qn],"drop-shadow":[qn],ease:["in","out","in-out"],font:[g1],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qn],shadow:[qn],spacing:["px",Re],text:[qn],"text-shadow":[qn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wa,oe,ue,D]}],container:["container"],columns:[{columns:[Re,oe,ue,x]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ae()}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[Na,"auto",ue,oe]}],basis:[{basis:[wa,"full","auto",x,...J()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Re,wa,"auto","initial","none",oe]}],grow:[{grow:["",Re,ue,oe]}],shrink:[{shrink:["",Re,ue,oe]}],order:[{order:[Na,"first","last","none",ue,oe]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:fe()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:fe()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:J()}],"gap-x":[{"gap-x":J()}],"gap-y":[{"gap-y":J()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:J()}],px:[{px:J()}],py:[{py:J()}],ps:[{ps:J()}],pe:[{pe:J()}],pbs:[{pbs:J()}],pbe:[{pbe:J()}],pt:[{pt:J()}],pr:[{pr:J()}],pb:[{pb:J()}],pl:[{pl:J()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":J()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":J()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],"inline-size":[{inline:["auto",...le()]}],"min-inline-size":[{"min-inline":["auto",...le()]}],"max-inline-size":[{"max-inline":["none",...le()]}],"block-size":[{block:["auto",...me()]}],"min-block-size":[{"min-block":["auto",...me()]}],"max-block-size":[{"max-block":["none",...me()]}],w:[{w:[x,"screen",...G()]}],"min-w":[{"min-w":[x,"screen","none",...G()]}],"max-w":[{"max-w":[x,"screen","none","prose",{screen:[m]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",s,Ks,el]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,w1,p1]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",cc,oe]}],"font-family":[{font:[y1,v1,r]}],"font-features":[{"font-features":[oe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,ue,oe]}],"line-clamp":[{"line-clamp":[Re,"none",ue,rh]}],leading:[{leading:[f,...J()]}],"list-image":[{"list-image":["none",ue,oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ue,oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[Re,"from-font","auto",ue,el]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[Re,"auto",ue,oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:J()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue,oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ue,oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:U()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Na,ue,oe],radial:["",ue,oe],conic:[Na,ue,oe]},S1,x1]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-bs":[{"border-bs":ne()}],"border-w-be":[{"border-be":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ve(),"hidden","none"]}],"divide-style":[{divide:[...ve(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Re,ue,oe]}],"outline-w":[{outline:["",Re,Ks,el]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",b,wr,Sr]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",p,wr,Sr]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[Re,el]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",w,wr,Sr]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[Re,ue,oe]}],"mix-blend":[{"mix-blend":[...pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Re]}],"mask-image-linear-from-pos":[{"mask-linear-from":he()}],"mask-image-linear-to-pos":[{"mask-linear-to":he()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":he()}],"mask-image-t-to-pos":[{"mask-t-to":he()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":he()}],"mask-image-r-to-pos":[{"mask-r-to":he()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":he()}],"mask-image-b-to-pos":[{"mask-b-to":he()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":he()}],"mask-image-l-to-pos":[{"mask-l-to":he()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":he()}],"mask-image-x-to-pos":[{"mask-x-to":he()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":he()}],"mask-image-y-to-pos":[{"mask-y-to":he()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[ue,oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":he()}],"mask-image-radial-to-pos":[{"mask-radial-to":he()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":se()}],"mask-image-conic-pos":[{"mask-conic":[Re]}],"mask-image-conic-from-pos":[{"mask-conic-from":he()}],"mask-image-conic-to-pos":[{"mask-conic-to":he()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:U()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ue,oe]}],filter:[{filter:["","none",ue,oe]}],blur:[{blur:wt()}],brightness:[{brightness:[Re,ue,oe]}],contrast:[{contrast:[Re,ue,oe]}],"drop-shadow":[{"drop-shadow":["","none",N,wr,Sr]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",Re,ue,oe]}],"hue-rotate":[{"hue-rotate":[Re,ue,oe]}],invert:[{invert:["",Re,ue,oe]}],saturate:[{saturate:[Re,ue,oe]}],sepia:[{sepia:["",Re,ue,oe]}],"backdrop-filter":[{"backdrop-filter":["","none",ue,oe]}],"backdrop-blur":[{"backdrop-blur":wt()}],"backdrop-brightness":[{"backdrop-brightness":[Re,ue,oe]}],"backdrop-contrast":[{"backdrop-contrast":[Re,ue,oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Re,ue,oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Re,ue,oe]}],"backdrop-invert":[{"backdrop-invert":["",Re,ue,oe]}],"backdrop-opacity":[{"backdrop-opacity":[Re,ue,oe]}],"backdrop-saturate":[{"backdrop-saturate":[Re,ue,oe]}],"backdrop-sepia":[{"backdrop-sepia":["",Re,ue,oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":J()}],"border-spacing-x":[{"border-spacing-x":J()}],"border-spacing-y":[{"border-spacing-y":J()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ue,oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Re,"initial",ue,oe]}],ease:[{ease:["linear","initial",A,ue,oe]}],delay:[{delay:[Re,ue,oe]}],animate:[{animate:["none",Z,ue,oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,ue,oe]}],"perspective-origin":[{"perspective-origin":ae()}],rotate:[{rotate:ut()}],"rotate-x":[{"rotate-x":ut()}],"rotate-y":[{"rotate-y":ut()}],"rotate-z":[{"rotate-z":ut()}],scale:[{scale:ct()}],"scale-x":[{"scale-x":ct()}],"scale-y":[{"scale-y":ct()}],"scale-z":[{"scale-z":ct()}],"scale-3d":["scale-3d"],skew:[{skew:Zn()}],"skew-x":[{"skew-x":Zn()}],"skew-y":[{"skew-y":Zn()}],transform:[{transform:[ue,oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:ae()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:vt()}],"translate-x":[{"translate-x":vt()}],"translate-y":[{"translate-y":vt()}],"translate-z":[{"translate-z":vt()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ue,oe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":J()}],"scroll-mx":[{"scroll-mx":J()}],"scroll-my":[{"scroll-my":J()}],"scroll-ms":[{"scroll-ms":J()}],"scroll-me":[{"scroll-me":J()}],"scroll-mbs":[{"scroll-mbs":J()}],"scroll-mbe":[{"scroll-mbe":J()}],"scroll-mt":[{"scroll-mt":J()}],"scroll-mr":[{"scroll-mr":J()}],"scroll-mb":[{"scroll-mb":J()}],"scroll-ml":[{"scroll-ml":J()}],"scroll-p":[{"scroll-p":J()}],"scroll-px":[{"scroll-px":J()}],"scroll-py":[{"scroll-py":J()}],"scroll-ps":[{"scroll-ps":J()}],"scroll-pe":[{"scroll-pe":J()}],"scroll-pbs":[{"scroll-pbs":J()}],"scroll-pbe":[{"scroll-pbe":J()}],"scroll-pt":[{"scroll-pt":J()}],"scroll-pr":[{"scroll-pr":J()}],"scroll-pb":[{"scroll-pb":J()}],"scroll-pl":[{"scroll-pl":J()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ue,oe]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[Re,Ks,el,rh]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},j1=a1(C1);function Ee(...a){return j1(ep(a))}function R1({className:a,...r}){return d.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:d.jsx("table",{"data-slot":"table",className:Ee("w-full caption-bottom text-sm",a),...r})})}function E1({className:a,...r}){return d.jsx("thead",{"data-slot":"table-header",className:Ee("[&_tr]:border-b",a),...r})}function _1({className:a,...r}){return d.jsx("tbody",{"data-slot":"table-body",className:Ee("[&_tr:last-child]:border-0",a),...r})}function dc({className:a,...r}){return d.jsx("tr",{"data-slot":"table-row",className:Ee("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",a),...r})}function M1({className:a,...r}){return d.jsx("th",{"data-slot":"table-head",className:Ee("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...r})}function ch({className:a,...r}){return d.jsx("td",{"data-slot":"table-cell",className:Ee("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...r})}/**
82
82
  * @license lucide-react v0.575.0 - ISC
83
83
  *
84
84
  * This source code is licensed under the ISC license.
85
85
  * See the LICENSE file in the root directory of this source tree.
86
- */const gp=(...a)=>a.filter((r,s,i)=>!!r&&r.trim()!==""&&i.indexOf(r)===s).join(" ").trim();/**
86
+ */const hp=(...a)=>a.filter((r,s,i)=>!!r&&r.trim()!==""&&i.indexOf(r)===s).join(" ").trim();/**
87
87
  * @license lucide-react v0.575.0 - ISC
88
88
  *
89
89
  * This source code is licensed under the ISC license.
90
90
  * See the LICENSE file in the root directory of this source tree.
91
- */const T1=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
91
+ */const z1=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
92
92
  * @license lucide-react v0.575.0 - ISC
93
93
  *
94
94
  * This source code is licensed under the ISC license.
95
95
  * See the LICENSE file in the root directory of this source tree.
96
- */const A1=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,s,i)=>i?i.toUpperCase():s.toLowerCase());/**
96
+ */const T1=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,s,i)=>i?i.toUpperCase():s.toLowerCase());/**
97
97
  * @license lucide-react v0.575.0 - ISC
98
98
  *
99
99
  * This source code is licensed under the ISC license.
100
100
  * See the LICENSE file in the root directory of this source tree.
101
- */const dh=a=>{const r=A1(a);return r.charAt(0).toUpperCase()+r.slice(1)};/**
101
+ */const dh=a=>{const r=T1(a);return r.charAt(0).toUpperCase()+r.slice(1)};/**
102
102
  * @license lucide-react v0.575.0 - ISC
103
103
  *
104
104
  * This source code is licensed under the ISC license.
105
105
  * See the LICENSE file in the root directory of this source tree.
106
- */var D1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
106
+ */var A1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
107
107
  * @license lucide-react v0.575.0 - ISC
108
108
  *
109
109
  * This source code is licensed under the ISC license.
110
110
  * See the LICENSE file in the root directory of this source tree.
111
- */const O1=a=>{for(const r in a)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1};/**
111
+ */const D1=a=>{for(const r in a)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1};/**
112
112
  * @license lucide-react v0.575.0 - ISC
113
113
  *
114
114
  * This source code is licensed under the ISC license.
115
115
  * See the LICENSE file in the root directory of this source tree.
116
- */const k1=S.forwardRef(({color:a="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:i,className:c="",children:f,iconNode:m,...x},v)=>S.createElement("svg",{ref:v,...D1,width:r,height:r,stroke:a,strokeWidth:i?Number(s)*24/Number(r):s,className:gp("lucide",c),...!f&&!O1(x)&&{"aria-hidden":"true"},...x},[...m.map(([h,b])=>S.createElement(h,b)),...Array.isArray(f)?f:[f]]));/**
116
+ */const O1=S.forwardRef(({color:a="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:i,className:c="",children:f,iconNode:m,...x},v)=>S.createElement("svg",{ref:v,...A1,width:r,height:r,stroke:a,strokeWidth:i?Number(s)*24/Number(r):s,className:hp("lucide",c),...!f&&!D1(x)&&{"aria-hidden":"true"},...x},[...m.map(([h,b])=>S.createElement(h,b)),...Array.isArray(f)?f:[f]]));/**
117
117
  * @license lucide-react v0.575.0 - ISC
118
118
  *
119
119
  * This source code is licensed under the ISC license.
120
120
  * See the LICENSE file in the root directory of this source tree.
121
- */const ye=(a,r)=>{const s=S.forwardRef(({className:i,...c},f)=>S.createElement(k1,{ref:f,iconNode:r,className:gp(`lucide-${T1(dh(a))}`,`lucide-${a}`,i),...c}));return s.displayName=dh(a),s};/**
121
+ */const ye=(a,r)=>{const s=S.forwardRef(({className:i,...c},f)=>S.createElement(O1,{ref:f,iconNode:r,className:hp(`lucide-${z1(dh(a))}`,`lucide-${a}`,i),...c}));return s.displayName=dh(a),s};/**
122
122
  * @license lucide-react v0.575.0 - ISC
123
123
  *
124
124
  * This source code is licensed under the ISC license.
125
125
  * See the LICENSE file in the root directory of this source tree.
126
- */const H1=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],hp=ye("arrow-down",H1);/**
126
+ */const k1=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],pp=ye("arrow-down",k1);/**
127
127
  * @license lucide-react v0.575.0 - ISC
128
128
  *
129
129
  * This source code is licensed under the ISC license.
130
130
  * See the LICENSE file in the root directory of this source tree.
131
- */const U1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Mr=ye("arrow-left",U1);/**
131
+ */const H1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Mr=ye("arrow-left",H1);/**
132
132
  * @license lucide-react v0.575.0 - ISC
133
133
  *
134
134
  * This source code is licensed under the ISC license.
135
135
  * See the LICENSE file in the root directory of this source tree.
136
- */const B1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Lc=ye("arrow-right",B1);/**
136
+ */const U1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Lc=ye("arrow-right",U1);/**
137
137
  * @license lucide-react v0.575.0 - ISC
138
138
  *
139
139
  * This source code is licensed under the ISC license.
140
140
  * See the LICENSE file in the root directory of this source tree.
141
- */const L1=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],pp=ye("arrow-up-down",L1);/**
141
+ */const B1=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],vp=ye("arrow-up-down",B1);/**
142
142
  * @license lucide-react v0.575.0 - ISC
143
143
  *
144
144
  * This source code is licensed under the ISC license.
145
145
  * See the LICENSE file in the root directory of this source tree.
146
- */const V1=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],$1=ye("arrow-up",V1);/**
146
+ */const L1=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],V1=ye("arrow-up",L1);/**
147
147
  * @license lucide-react v0.575.0 - ISC
148
148
  *
149
149
  * This source code is licensed under the ISC license.
@@ -153,220 +153,220 @@ Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}
153
153
  *
154
154
  * This source code is licensed under the ISC license.
155
155
  * See the LICENSE file in the root directory of this source tree.
156
- */const q1=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],Y1=ye("calendar-clock",q1);/**
156
+ */const $1=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],q1=ye("calendar-clock",$1);/**
157
157
  * @license lucide-react v0.575.0 - ISC
158
158
  *
159
159
  * This source code is licensed under the ISC license.
160
160
  * See the LICENSE file in the root directory of this source tree.
161
- */const F1=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Vc=ye("chart-column",F1);/**
161
+ */const Y1=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Vc=ye("chart-column",Y1);/**
162
162
  * @license lucide-react v0.575.0 - ISC
163
163
  *
164
164
  * This source code is licensed under the ISC license.
165
165
  * See the LICENSE file in the root directory of this source tree.
166
- */const X1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Q1=ye("check",X1);/**
166
+ */const F1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],X1=ye("check",F1);/**
167
167
  * @license lucide-react v0.575.0 - ISC
168
168
  *
169
169
  * This source code is licensed under the ISC license.
170
170
  * See the LICENSE file in the root directory of this source tree.
171
- */const Z1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],K1=ye("chevron-down",Z1);/**
171
+ */const Q1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Z1=ye("chevron-down",Q1);/**
172
172
  * @license lucide-react v0.575.0 - ISC
173
173
  *
174
174
  * This source code is licensed under the ISC license.
175
175
  * See the LICENSE file in the root directory of this source tree.
176
- */const J1=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],vp=ye("chevron-left",J1);/**
176
+ */const K1=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],xp=ye("chevron-left",K1);/**
177
177
  * @license lucide-react v0.575.0 - ISC
178
178
  *
179
179
  * This source code is licensed under the ISC license.
180
180
  * See the LICENSE file in the root directory of this source tree.
181
- */const I1=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Yl=ye("chevron-right",I1);/**
181
+ */const J1=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Yl=ye("chevron-right",J1);/**
182
182
  * @license lucide-react v0.575.0 - ISC
183
183
  *
184
184
  * This source code is licensed under the ISC license.
185
185
  * See the LICENSE file in the root directory of this source tree.
186
- */const W1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],xp=ye("circle-alert",W1);/**
186
+ */const I1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],yp=ye("circle-alert",I1);/**
187
187
  * @license lucide-react v0.575.0 - ISC
188
188
  *
189
189
  * This source code is licensed under the ISC license.
190
190
  * See the LICENSE file in the root directory of this source tree.
191
- */const P1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],yp=ye("circle-check",P1);/**
191
+ */const W1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],bp=ye("circle-check",W1);/**
192
192
  * @license lucide-react v0.575.0 - ISC
193
193
  *
194
194
  * This source code is licensed under the ISC license.
195
195
  * See the LICENSE file in the root directory of this source tree.
196
- */const eS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Xn=ye("clock",eS);/**
196
+ */const P1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Xn=ye("clock",P1);/**
197
197
  * @license lucide-react v0.575.0 - ISC
198
198
  *
199
199
  * This source code is licensed under the ISC license.
200
200
  * See the LICENSE file in the root directory of this source tree.
201
- */const tS=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],Ca=ye("code-xml",tS);/**
201
+ */const eS=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],Ca=ye("code-xml",eS);/**
202
202
  * @license lucide-react v0.575.0 - ISC
203
203
  *
204
204
  * This source code is licensed under the ISC license.
205
205
  * See the LICENSE file in the root directory of this source tree.
206
- */const nS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],aS=ye("columns-3",nS);/**
206
+ */const tS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],nS=ye("columns-3",tS);/**
207
207
  * @license lucide-react v0.575.0 - ISC
208
208
  *
209
209
  * This source code is licensed under the ISC license.
210
210
  * See the LICENSE file in the root directory of this source tree.
211
- */const lS=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],ja=ye("database",lS);/**
211
+ */const aS=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],ja=ye("database",aS);/**
212
212
  * @license lucide-react v0.575.0 - ISC
213
213
  *
214
214
  * This source code is licensed under the ISC license.
215
215
  * See the LICENSE file in the root directory of this source tree.
216
- */const sS=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],iS=ye("download",sS);/**
216
+ */const lS=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],sS=ye("download",lS);/**
217
217
  * @license lucide-react v0.575.0 - ISC
218
218
  *
219
219
  * This source code is licensed under the ISC license.
220
220
  * See the LICENSE file in the root directory of this source tree.
221
- */const rS=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],oS=ye("eye-off",rS);/**
221
+ */const iS=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],rS=ye("eye-off",iS);/**
222
222
  * @license lucide-react v0.575.0 - ISC
223
223
  *
224
224
  * This source code is licensed under the ISC license.
225
225
  * See the LICENSE file in the root directory of this source tree.
226
- */const uS=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],cS=ye("eye",uS);/**
226
+ */const oS=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],uS=ye("eye",oS);/**
227
227
  * @license lucide-react v0.575.0 - ISC
228
228
  *
229
229
  * This source code is licensed under the ISC license.
230
230
  * See the LICENSE file in the root directory of this source tree.
231
- */const dS=[["path",{d:"M14.5 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v3.8",key:"1kchwa"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M11.7 14.2 7 17l-4.7-2.8",key:"1yk8tc"}],["path",{d:"M3 13.1a2 2 0 0 0-.999 1.76v3.24a2 2 0 0 0 .969 1.78L6 21.7a2 2 0 0 0 2.03.01L11 19.9a2 2 0 0 0 1-1.76V14.9a2 2 0 0 0-.97-1.78L8 11.3a2 2 0 0 0-2.03-.01z",key:"19flxy"}],["path",{d:"M7 17v5",key:"1yj1jh"}]],zr=ye("file-box",dS);/**
231
+ */const cS=[["path",{d:"M14.5 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v3.8",key:"1kchwa"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M11.7 14.2 7 17l-4.7-2.8",key:"1yk8tc"}],["path",{d:"M3 13.1a2 2 0 0 0-.999 1.76v3.24a2 2 0 0 0 .969 1.78L6 21.7a2 2 0 0 0 2.03.01L11 19.9a2 2 0 0 0 1-1.76V14.9a2 2 0 0 0-.97-1.78L8 11.3a2 2 0 0 0-2.03-.01z",key:"19flxy"}],["path",{d:"M7 17v5",key:"1yj1jh"}]],zr=ye("file-box",cS);/**
232
232
  * @license lucide-react v0.575.0 - ISC
233
233
  *
234
234
  * This source code is licensed under the ISC license.
235
235
  * See the LICENSE file in the root directory of this source tree.
236
- */const fS=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],mS=ye("file-text",fS);/**
236
+ */const dS=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],fS=ye("file-text",dS);/**
237
237
  * @license lucide-react v0.575.0 - ISC
238
238
  *
239
239
  * This source code is licensed under the ISC license.
240
240
  * See the LICENSE file in the root directory of this source tree.
241
- */const gS=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],hS=ye("file",gS);/**
241
+ */const mS=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],gS=ye("file",mS);/**
242
242
  * @license lucide-react v0.575.0 - ISC
243
243
  *
244
244
  * This source code is licensed under the ISC license.
245
245
  * See the LICENSE file in the root directory of this source tree.
246
- */const pS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Kl=ye("globe",pS);/**
246
+ */const hS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Kl=ye("globe",hS);/**
247
247
  * @license lucide-react v0.575.0 - ISC
248
248
  *
249
249
  * This source code is licensed under the ISC license.
250
250
  * See the LICENSE file in the root directory of this source tree.
251
- */const vS=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],bp=ye("hard-drive",vS);/**
251
+ */const pS=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],Sp=ye("hard-drive",pS);/**
252
252
  * @license lucide-react v0.575.0 - ISC
253
253
  *
254
254
  * This source code is licensed under the ISC license.
255
255
  * See the LICENSE file in the root directory of this source tree.
256
- */const xS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],yS=ye("info",xS);/**
256
+ */const vS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],xS=ye("info",vS);/**
257
257
  * @license lucide-react v0.575.0 - ISC
258
258
  *
259
259
  * This source code is licensed under the ISC license.
260
260
  * See the LICENSE file in the root directory of this source tree.
261
- */const bS=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],SS=ye("layout-grid",bS);/**
261
+ */const yS=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],bS=ye("layout-grid",yS);/**
262
262
  * @license lucide-react v0.575.0 - ISC
263
263
  *
264
264
  * This source code is licensed under the ISC license.
265
265
  * See the LICENSE file in the root directory of this source tree.
266
- */const wS=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],NS=ye("link-2",wS);/**
266
+ */const SS=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],wS=ye("link-2",SS);/**
267
267
  * @license lucide-react v0.575.0 - ISC
268
268
  *
269
269
  * This source code is licensed under the ISC license.
270
270
  * See the LICENSE file in the root directory of this source tree.
271
- */const CS=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Sp=ye("loader-circle",CS);/**
271
+ */const NS=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],wp=ye("loader-circle",NS);/**
272
272
  * @license lucide-react v0.575.0 - ISC
273
273
  *
274
274
  * This source code is licensed under the ISC license.
275
275
  * See the LICENSE file in the root directory of this source tree.
276
- */const jS=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],RS=ye("monitor",jS);/**
276
+ */const CS=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],jS=ye("monitor",CS);/**
277
277
  * @license lucide-react v0.575.0 - ISC
278
278
  *
279
279
  * This source code is licensed under the ISC license.
280
280
  * See the LICENSE file in the root directory of this source tree.
281
- */const ES=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],_S=ye("moon",ES);/**
281
+ */const RS=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],ES=ye("moon",RS);/**
282
282
  * @license lucide-react v0.575.0 - ISC
283
283
  *
284
284
  * This source code is licensed under the ISC license.
285
285
  * See the LICENSE file in the root directory of this source tree.
286
- */const MS=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],wp=ye("play",MS);/**
286
+ */const _S=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Np=ye("play",_S);/**
287
287
  * @license lucide-react v0.575.0 - ISC
288
288
  *
289
289
  * This source code is licensed under the ISC license.
290
290
  * See the LICENSE file in the root directory of this source tree.
291
- */const zS=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],_a=ye("refresh-cw",zS);/**
291
+ */const MS=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],_a=ye("refresh-cw",MS);/**
292
292
  * @license lucide-react v0.575.0 - ISC
293
293
  *
294
294
  * This source code is licensed under the ISC license.
295
295
  * See the LICENSE file in the root directory of this source tree.
296
- */const TS=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],Np=ye("rocket",TS);/**
296
+ */const zS=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],Cp=ye("rocket",zS);/**
297
297
  * @license lucide-react v0.575.0 - ISC
298
298
  *
299
299
  * This source code is licensed under the ISC license.
300
300
  * See the LICENSE file in the root directory of this source tree.
301
- */const AS=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],DS=ye("rotate-ccw",AS);/**
301
+ */const TS=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],AS=ye("rotate-ccw",TS);/**
302
302
  * @license lucide-react v0.575.0 - ISC
303
303
  *
304
304
  * This source code is licensed under the ISC license.
305
305
  * See the LICENSE file in the root directory of this source tree.
306
- */const OS=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],Ps=ye("scroll-text",OS);/**
306
+ */const DS=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],Ps=ye("scroll-text",DS);/**
307
307
  * @license lucide-react v0.575.0 - ISC
308
308
  *
309
309
  * This source code is licensed under the ISC license.
310
310
  * See the LICENSE file in the root directory of this source tree.
311
- */const kS=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],$c=ye("search",kS);/**
311
+ */const OS=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Gc=ye("search",OS);/**
312
312
  * @license lucide-react v0.575.0 - ISC
313
313
  *
314
314
  * This source code is licensed under the ISC license.
315
315
  * See the LICENSE file in the root directory of this source tree.
316
- */const HS=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Gc=ye("settings",HS);/**
316
+ */const kS=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],$c=ye("settings",kS);/**
317
317
  * @license lucide-react v0.575.0 - ISC
318
318
  *
319
319
  * This source code is licensed under the ISC license.
320
320
  * See the LICENSE file in the root directory of this source tree.
321
- */const US=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],mh=ye("shield",US);/**
321
+ */const HS=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],mh=ye("shield",HS);/**
322
322
  * @license lucide-react v0.575.0 - ISC
323
323
  *
324
324
  * This source code is licensed under the ISC license.
325
325
  * See the LICENSE file in the root directory of this source tree.
326
- */const BS=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],LS=ye("sun",BS);/**
326
+ */const US=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],BS=ye("sun",US);/**
327
327
  * @license lucide-react v0.575.0 - ISC
328
328
  *
329
329
  * This source code is licensed under the ISC license.
330
330
  * See the LICENSE file in the root directory of this source tree.
331
- */const VS=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],Cp=ye("table-2",VS);/**
331
+ */const LS=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],jp=ye("table-2",LS);/**
332
332
  * @license lucide-react v0.575.0 - ISC
333
333
  *
334
334
  * This source code is licensed under the ISC license.
335
335
  * See the LICENSE file in the root directory of this source tree.
336
- */const $S=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],GS=ye("timer",$S);/**
336
+ */const VS=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],GS=ye("timer",VS);/**
337
337
  * @license lucide-react v0.575.0 - ISC
338
338
  *
339
339
  * This source code is licensed under the ISC license.
340
340
  * See the LICENSE file in the root directory of this source tree.
341
- */const qS=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Cc=ye("trash-2",qS);/**
341
+ */const $S=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Cc=ye("trash-2",$S);/**
342
342
  * @license lucide-react v0.575.0 - ISC
343
343
  *
344
344
  * This source code is licensed under the ISC license.
345
345
  * See the LICENSE file in the root directory of this source tree.
346
- */const YS=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],gh=ye("triangle-alert",YS);/**
346
+ */const qS=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],gh=ye("triangle-alert",qS);/**
347
347
  * @license lucide-react v0.575.0 - ISC
348
348
  *
349
349
  * This source code is licensed under the ISC license.
350
350
  * See the LICENSE file in the root directory of this source tree.
351
- */const FS=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Nr=ye("upload",FS);/**
351
+ */const YS=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Nr=ye("upload",YS);/**
352
352
  * @license lucide-react v0.575.0 - ISC
353
353
  *
354
354
  * This source code is licensed under the ISC license.
355
355
  * See the LICENSE file in the root directory of this source tree.
356
- */const XS=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],QS=ye("user",XS);/**
356
+ */const FS=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],XS=ye("user",FS);/**
357
357
  * @license lucide-react v0.575.0 - ISC
358
358
  *
359
359
  * This source code is licensed under the ISC license.
360
360
  * See the LICENSE file in the root directory of this source tree.
361
- */const ZS=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],jp=ye("users",ZS);/**
361
+ */const QS=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Rp=ye("users",QS);/**
362
362
  * @license lucide-react v0.575.0 - ISC
363
363
  *
364
364
  * This source code is licensed under the ISC license.
365
365
  * See the LICENSE file in the root directory of this source tree.
366
- */const KS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],qc=ye("x",KS);/**
366
+ */const ZS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],qc=ye("x",ZS);/**
367
367
  * @license lucide-react v0.575.0 - ISC
368
368
  *
369
369
  * This source code is licensed under the ISC license.
370
370
  * See the LICENSE file in the root directory of this source tree.
371
- */const JS=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Fl=ye("zap",JS);function Rp({data:a,columns:r,loading:s=!1,onRowClick:i,onCellClick:c,rowKeyField:f="id",className:m}){const[x,v]=S.useState([]),[h]=S.useState("onChange"),b=S.useMemo(()=>r.map(N=>({accessorKey:N.accessorKey,header:({column:j})=>{const _=j.getIsSorted();return d.jsxs("button",{className:Ee("flex items-center gap-1 text-xs font-semibold select-none",N.enableSorting!==!1&&"cursor-pointer hover:text-foreground"),onClick:()=>{N.enableSorting!==!1&&j.toggleSorting()},title:N.headerTooltip,children:[N.header,N.enableSorting!==!1&&(_==="asc"?d.jsx($1,{className:"h-3 w-3"}):_==="desc"?d.jsx(hp,{className:"h-3 w-3"}):d.jsx(pp,{className:"h-3 w-3 opacity-30"}))]})},cell:N.cell?N.cell:j=>{const _=j.getValue();return _==null?d.jsx("span",{className:"text-muted-foreground italic",children:"null"}):typeof _=="boolean"?d.jsx("span",{className:_?"text-green-500":"text-red-500",children:_?"true":"false"}):d.jsx("span",{className:"block truncate",children:String(_)})},size:N.minWidth||150,minSize:N.minWidth||80,maxSize:N.maxWidth||400,enableSorting:N.enableSorting!==!1,enableResizing:!0,meta:{cellClassName:N.cellClassName}})),[r]),p=Hb({data:a,columns:b,state:{sorting:x},onSortingChange:v,getCoreRowModel:Tb(),getSortedRowModel:Ab(),columnResizeMode:h,enableColumnResizing:!0}),w=S.useCallback((N,j)=>{const _=r.find(D=>D.accessorKey===N);return _!=null&&_.cellClassName?typeof _.cellClassName=="function"?_.cellClassName(j):_.cellClassName:""},[r]);return d.jsxs("div",{className:Ee("relative h-full overflow-auto",m),children:[s&&d.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-background/60",children:d.jsx(Sp,{className:"h-5 w-5 animate-spin text-muted-foreground"})}),d.jsxs(E1,{className:"table-fixed",children:[d.jsx(_1,{className:"sticky top-0 z-[5] bg-muted/80 backdrop-blur-sm",children:p.getHeaderGroups().map(N=>d.jsx(dc,{className:"border-b border-border hover:bg-transparent",children:N.headers.map(j=>d.jsxs(z1,{className:"text-muted-foreground text-xs px-3 py-2.5 relative select-none",style:{width:j.getSize(),minWidth:j.column.columnDef.minSize,maxWidth:j.column.columnDef.maxSize},children:[j.isPlaceholder?null:ah(j.column.columnDef.header,j.getContext()),d.jsx("div",{onMouseDown:j.getResizeHandler(),onTouchStart:j.getResizeHandler(),className:Ee("absolute right-0 top-0 h-full w-1 cursor-col-resize select-none touch-none","hover:bg-primary/40 active:bg-primary/60",j.column.getIsResizing()&&"bg-primary/60")})]},j.id))},N.id))}),d.jsx(M1,{children:p.getRowModel().rows.length===0&&!s?d.jsx(dc,{children:d.jsx(ch,{colSpan:b.length,className:"h-24 text-center text-muted-foreground",children:"No data"})}):p.getRowModel().rows.map((N,j)=>d.jsx(dc,{className:Ee("border-b border-border transition-colors",j%2===1&&"bg-muted/30",i&&"cursor-pointer"),onClick:()=>i==null?void 0:i(N.original),children:N.getVisibleCells().map(_=>{const D=_.column.id,A=_.getValue(),Z=w(D,A);return d.jsx(ch,{className:Ee("px-3 py-2.5 text-xs overflow-hidden text-ellipsis",Z),style:{width:_.column.getSize(),minWidth:_.column.columnDef.minSize,maxWidth:_.column.columnDef.maxSize},onClick:F=>{c==null||c(N.original,D,F)},children:ah(_.column.columnDef.cell,_.getContext())},_.id)})},N.original[f]??j))})]})]})}function IS(a){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",r.appendChild(s),s.styleSheet?s.styleSheet.cssText=a:s.appendChild(document.createTextNode(a))}const WS=a=>{switch(a){case"success":return t2;case"info":return a2;case"warning":return n2;case"error":return l2;default:return null}},PS=Array(12).fill(0),e2=({visible:a,className:r})=>ee.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":a},ee.createElement("div",{className:"sonner-spinner"},PS.map((s,i)=>ee.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),t2=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),n2=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),a2=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("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 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),l2=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),s2=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ee.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ee.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),i2=()=>{const[a,r]=ee.useState(document.hidden);return ee.useEffect(()=>{const s=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",s),()=>window.removeEventListener("visibilitychange",s)},[]),a};let jc=1;class r2{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{const s=this.subscribers.indexOf(r);this.subscribers.splice(s,1)}),this.publish=r=>{this.subscribers.forEach(s=>s(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var s;const{message:i,...c}=r,f=typeof(r==null?void 0:r.id)=="number"||((s=r.id)==null?void 0:s.length)>0?r.id:jc++,m=this.toasts.find(v=>v.id===f),x=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(f)&&this.dismissedToasts.delete(f),m?this.toasts=this.toasts.map(v=>v.id===f?(this.publish({...v,...r,id:f,title:i}),{...v,...r,id:f,dismissible:x,title:i}):v):this.addToast({title:i,...c,dismissible:x,id:f}),f},this.dismiss=r=>(r?(this.dismissedToasts.add(r),requestAnimationFrame(()=>this.subscribers.forEach(s=>s({id:r,dismiss:!0})))):this.toasts.forEach(s=>{this.subscribers.forEach(i=>i({id:s.id,dismiss:!0}))}),r),this.message=(r,s)=>this.create({...s,message:r}),this.error=(r,s)=>this.create({...s,message:r,type:"error"}),this.success=(r,s)=>this.create({...s,type:"success",message:r}),this.info=(r,s)=>this.create({...s,type:"info",message:r}),this.warning=(r,s)=>this.create({...s,type:"warning",message:r}),this.loading=(r,s)=>this.create({...s,type:"loading",message:r}),this.promise=(r,s)=>{if(!s)return;let i;s.loading!==void 0&&(i=this.create({...s,promise:r,type:"loading",message:s.loading,description:typeof s.description!="function"?s.description:void 0}));const c=Promise.resolve(r instanceof Function?r():r);let f=i!==void 0,m;const x=c.then(async h=>{if(m=["resolve",h],ee.isValidElement(h))f=!1,this.create({id:i,type:"default",message:h});else if(u2(h)&&!h.ok){f=!1;const p=typeof s.error=="function"?await s.error(`HTTP error! status: ${h.status}`):s.error,w=typeof s.description=="function"?await s.description(`HTTP error! status: ${h.status}`):s.description,j=typeof p=="object"&&!ee.isValidElement(p)?p:{message:p};this.create({id:i,type:"error",description:w,...j})}else if(h instanceof Error){f=!1;const p=typeof s.error=="function"?await s.error(h):s.error,w=typeof s.description=="function"?await s.description(h):s.description,j=typeof p=="object"&&!ee.isValidElement(p)?p:{message:p};this.create({id:i,type:"error",description:w,...j})}else if(s.success!==void 0){f=!1;const p=typeof s.success=="function"?await s.success(h):s.success,w=typeof s.description=="function"?await s.description(h):s.description,j=typeof p=="object"&&!ee.isValidElement(p)?p:{message:p};this.create({id:i,type:"success",description:w,...j})}}).catch(async h=>{if(m=["reject",h],s.error!==void 0){f=!1;const b=typeof s.error=="function"?await s.error(h):s.error,p=typeof s.description=="function"?await s.description(h):s.description,N=typeof b=="object"&&!ee.isValidElement(b)?b:{message:b};this.create({id:i,type:"error",description:p,...N})}}).finally(()=>{f&&(this.dismiss(i),i=void 0),s.finally==null||s.finally.call(s)}),v=()=>new Promise((h,b)=>x.then(()=>m[0]==="reject"?b(m[1]):h(m[1])).catch(b));return typeof i!="string"&&typeof i!="number"?{unwrap:v}:Object.assign(i,{unwrap:v})},this.custom=(r,s)=>{const i=(s==null?void 0:s.id)||jc++;return this.create({jsx:r(i),id:i,...s}),i},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ut=new r2,o2=(a,r)=>{const s=(r==null?void 0:r.id)||jc++;return Ut.addToast({title:a,...r,id:s}),s},u2=a=>a&&typeof a=="object"&&"ok"in a&&typeof a.ok=="boolean"&&"status"in a&&typeof a.status=="number",c2=o2,d2=()=>Ut.toasts,f2=()=>Ut.getActiveToasts(),pt=Object.assign(c2,{success:Ut.success,info:Ut.info,warning:Ut.warning,error:Ut.error,custom:Ut.custom,message:Ut.message,promise:Ut.promise,dismiss:Ut.dismiss,loading:Ut.loading},{getHistory:d2,getToasts:f2});IS("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Cr(a){return a.label!==void 0}const m2=3,g2="24px",h2="16px",hh=4e3,p2=356,v2=14,x2=45,y2=200;function wn(...a){return a.filter(Boolean).join(" ")}function b2(a){const[r,s]=a.split("-"),i=[];return r&&i.push(r),s&&i.push(s),i}const S2=a=>{var r,s,i,c,f,m,x,v,h;const{invert:b,toast:p,unstyled:w,interacting:N,setHeights:j,visibleToasts:_,heights:D,index:A,toasts:Z,expanded:F,removeToast:se,defaultRichColors:ae,closeButton:q,style:W,cancelButtonStyle:J,actionButtonStyle:K,className:te="",descriptionClassName:fe="",duration:Y,position:P,gap:de,expandByDefault:re,classNames:M,icons:$,closeButtonAriaLabel:le="Close toast"}=a,[me,I]=ee.useState(null),[R,z]=ee.useState(null),[U,X]=ee.useState(!1),[Q,ne]=ee.useState(!1),[ve,pe]=ee.useState(!1),[he,wt]=ee.useState(!1),[ut,ct]=ee.useState(!1),[Zn,vt]=ee.useState(0),[Jl,nl]=ee.useState(0),Ta=ee.useRef(p.duration||Y||hh),Il=ee.useRef(null),Bt=ee.useRef(null),Wl=A===0,Pl=A+1<=_,Nt=p.type,Kn=p.dismissible!==!1,Ct=p.className||"",kr=p.descriptionClassName||"",Aa=ee.useMemo(()=>D.findIndex(we=>we.toastId===p.id)||0,[D,p.id]),ai=ee.useMemo(()=>{var we;return(we=p.closeButton)!=null?we:q},[p.closeButton,q]),Da=ee.useMemo(()=>p.duration||Y||hh,[p.duration,Y]),es=ee.useRef(0),Cn=ee.useRef(0),li=ee.useRef(0),Jn=ee.useRef(null),[Oa,jt]=P.split("-"),rn=ee.useMemo(()=>D.reduce((we,Fe,it)=>it>=Aa?we:we+Fe.height,0),[D,Aa]),xt=i2(),Hr=p.invert||b,ts=Nt==="loading";Cn.current=ee.useMemo(()=>Aa*de+rn,[Aa,rn]),ee.useEffect(()=>{Ta.current=Da},[Da]),ee.useEffect(()=>{X(!0)},[]),ee.useEffect(()=>{const we=Bt.current;if(we){const Fe=we.getBoundingClientRect().height;return nl(Fe),j(it=>[{toastId:p.id,height:Fe,position:p.position},...it]),()=>j(it=>it.filter(yt=>yt.toastId!==p.id))}},[j,p.id]),ee.useLayoutEffect(()=>{if(!U)return;const we=Bt.current,Fe=we.style.height;we.style.height="auto";const it=we.getBoundingClientRect().height;we.style.height=Fe,nl(it),j(yt=>yt.find(Ke=>Ke.toastId===p.id)?yt.map(Ke=>Ke.toastId===p.id?{...Ke,height:it}:Ke):[{toastId:p.id,height:it,position:p.position},...yt])},[U,p.title,p.description,j,p.id,p.jsx,p.action,p.cancel]);const pn=ee.useCallback(()=>{ne(!0),vt(Cn.current),j(we=>we.filter(Fe=>Fe.toastId!==p.id)),setTimeout(()=>{se(p)},y2)},[p,se,j,Cn]);ee.useEffect(()=>{if(p.promise&&Nt==="loading"||p.duration===1/0||p.type==="loading")return;let we;return F||N||xt?(()=>{if(li.current<es.current){const yt=new Date().getTime()-es.current;Ta.current=Ta.current-yt}li.current=new Date().getTime()})():(()=>{Ta.current!==1/0&&(es.current=new Date().getTime(),we=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),pn()},Ta.current))})(),()=>clearTimeout(we)},[F,N,p,Nt,xt,pn]),ee.useEffect(()=>{p.delete&&(pn(),p.onDismiss==null||p.onDismiss.call(p,p))},[pn,p.delete]);function al(){var we;if($!=null&&$.loading){var Fe;return ee.createElement("div",{className:wn(M==null?void 0:M.loader,p==null||(Fe=p.classNames)==null?void 0:Fe.loader,"sonner-loader"),"data-visible":Nt==="loading"},$.loading)}return ee.createElement(e2,{className:wn(M==null?void 0:M.loader,p==null||(we=p.classNames)==null?void 0:we.loader),visible:Nt==="loading"})}const ll=p.icon||($==null?void 0:$[Nt])||WS(Nt);var ka,vn;return ee.createElement("li",{tabIndex:0,ref:Bt,className:wn(te,Ct,M==null?void 0:M.toast,p==null||(r=p.classNames)==null?void 0:r.toast,M==null?void 0:M.default,M==null?void 0:M[Nt],p==null||(s=p.classNames)==null?void 0:s[Nt]),"data-sonner-toast":"","data-rich-colors":(ka=p.richColors)!=null?ka:ae,"data-styled":!(p.jsx||p.unstyled||w),"data-mounted":U,"data-promise":!!p.promise,"data-swiped":ut,"data-removed":Q,"data-visible":Pl,"data-y-position":Oa,"data-x-position":jt,"data-index":A,"data-front":Wl,"data-swiping":ve,"data-dismissible":Kn,"data-type":Nt,"data-invert":Hr,"data-swipe-out":he,"data-swipe-direction":R,"data-expanded":!!(F||re&&U),"data-testid":p.testId,style:{"--index":A,"--toasts-before":A,"--z-index":Z.length-A,"--offset":`${Q?Zn:Cn.current}px`,"--initial-height":re?"auto":`${Jl}px`,...W,...p.style},onDragEnd:()=>{pe(!1),I(null),Jn.current=null},onPointerDown:we=>{we.button!==2&&(ts||!Kn||(Il.current=new Date,vt(Cn.current),we.target.setPointerCapture(we.pointerId),we.target.tagName!=="BUTTON"&&(pe(!0),Jn.current={x:we.clientX,y:we.clientY})))},onPointerUp:()=>{var we,Fe,it;if(he||!Kn)return;Jn.current=null;const yt=Number(((we=Bt.current)==null?void 0:we.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),In=Number(((Fe=Bt.current)==null?void 0:Fe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ke=new Date().getTime()-((it=Il.current)==null?void 0:it.getTime()),Et=me==="x"?yt:In,Ha=Math.abs(Et)/Ke;if(Math.abs(Et)>=x2||Ha>.11){vt(Cn.current),p.onDismiss==null||p.onDismiss.call(p,p),z(me==="x"?yt>0?"right":"left":In>0?"down":"up"),pn(),wt(!0);return}else{var _t,Mt;(_t=Bt.current)==null||_t.style.setProperty("--swipe-amount-x","0px"),(Mt=Bt.current)==null||Mt.style.setProperty("--swipe-amount-y","0px")}ct(!1),pe(!1),I(null)},onPointerMove:we=>{var Fe,it,yt;if(!Jn.current||!Kn||((Fe=window.getSelection())==null?void 0:Fe.toString().length)>0)return;const Ke=we.clientY-Jn.current.y,Et=we.clientX-Jn.current.x;var Ha;const _t=(Ha=a.swipeDirections)!=null?Ha:b2(P);!me&&(Math.abs(Et)>1||Math.abs(Ke)>1)&&I(Math.abs(Et)>Math.abs(Ke)?"x":"y");let Mt={x:0,y:0};const sl=on=>1/(1.5+Math.abs(on)/20);if(me==="y"){if(_t.includes("top")||_t.includes("bottom"))if(_t.includes("top")&&Ke<0||_t.includes("bottom")&&Ke>0)Mt.y=Ke;else{const on=Ke*sl(Ke);Mt.y=Math.abs(on)<Math.abs(Ke)?on:Ke}}else if(me==="x"&&(_t.includes("left")||_t.includes("right")))if(_t.includes("left")&&Et<0||_t.includes("right")&&Et>0)Mt.x=Et;else{const on=Et*sl(Et);Mt.x=Math.abs(on)<Math.abs(Et)?on:Et}(Math.abs(Mt.x)>0||Math.abs(Mt.y)>0)&&ct(!0),(it=Bt.current)==null||it.style.setProperty("--swipe-amount-x",`${Mt.x}px`),(yt=Bt.current)==null||yt.style.setProperty("--swipe-amount-y",`${Mt.y}px`)}},ai&&!p.jsx&&Nt!=="loading"?ee.createElement("button",{"aria-label":le,"data-disabled":ts,"data-close-button":!0,onClick:ts||!Kn?()=>{}:()=>{pn(),p.onDismiss==null||p.onDismiss.call(p,p)},className:wn(M==null?void 0:M.closeButton,p==null||(i=p.classNames)==null?void 0:i.closeButton)},(vn=$==null?void 0:$.close)!=null?vn:s2):null,(Nt||p.icon||p.promise)&&p.icon!==null&&(($==null?void 0:$[Nt])!==null||p.icon)?ee.createElement("div",{"data-icon":"",className:wn(M==null?void 0:M.icon,p==null||(c=p.classNames)==null?void 0:c.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||al():null,p.type!=="loading"?ll:null):null,ee.createElement("div",{"data-content":"",className:wn(M==null?void 0:M.content,p==null||(f=p.classNames)==null?void 0:f.content)},ee.createElement("div",{"data-title":"",className:wn(M==null?void 0:M.title,p==null||(m=p.classNames)==null?void 0:m.title)},p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title),p.description?ee.createElement("div",{"data-description":"",className:wn(fe,kr,M==null?void 0:M.description,p==null||(x=p.classNames)==null?void 0:x.description)},typeof p.description=="function"?p.description():p.description):null),ee.isValidElement(p.cancel)?p.cancel:p.cancel&&Cr(p.cancel)?ee.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||J,onClick:we=>{Cr(p.cancel)&&Kn&&(p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,we),pn())},className:wn(M==null?void 0:M.cancelButton,p==null||(v=p.classNames)==null?void 0:v.cancelButton)},p.cancel.label):null,ee.isValidElement(p.action)?p.action:p.action&&Cr(p.action)?ee.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||K,onClick:we=>{Cr(p.action)&&(p.action.onClick==null||p.action.onClick.call(p.action,we),!we.defaultPrevented&&pn())},className:wn(M==null?void 0:M.actionButton,p==null||(h=p.classNames)==null?void 0:h.actionButton)},p.action.label):null)};function ph(){if(typeof window>"u"||typeof document>"u")return"ltr";const a=document.documentElement.getAttribute("dir");return a==="auto"||!a?window.getComputedStyle(document.documentElement).direction:a}function w2(a,r){const s={};return[a,r].forEach((i,c)=>{const f=c===1,m=f?"--mobile-offset":"--offset",x=f?h2:g2;function v(h){["top","right","bottom","left"].forEach(b=>{s[`${m}-${b}`]=typeof h=="number"?`${h}px`:h})}typeof i=="number"||typeof i=="string"?v(i):typeof i=="object"?["top","right","bottom","left"].forEach(h=>{i[h]===void 0?s[`${m}-${h}`]=x:s[`${m}-${h}`]=typeof i[h]=="number"?`${i[h]}px`:i[h]}):v(x)}),s}const N2=ee.forwardRef(function(r,s){const{id:i,invert:c,position:f="bottom-right",hotkey:m=["altKey","KeyT"],expand:x,closeButton:v,className:h,offset:b,mobileOffset:p,theme:w="light",richColors:N,duration:j,style:_,visibleToasts:D=m2,toastOptions:A,dir:Z=ph(),gap:F=v2,icons:se,containerAriaLabel:ae="Notifications"}=r,[q,W]=ee.useState([]),J=ee.useMemo(()=>i?q.filter(U=>U.toasterId===i):q.filter(U=>!U.toasterId),[q,i]),K=ee.useMemo(()=>Array.from(new Set([f].concat(J.filter(U=>U.position).map(U=>U.position)))),[J,f]),[te,fe]=ee.useState([]),[Y,P]=ee.useState(!1),[de,re]=ee.useState(!1),[M,$]=ee.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),le=ee.useRef(null),me=m.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=ee.useRef(null),R=ee.useRef(!1),z=ee.useCallback(U=>{W(X=>{var Q;return(Q=X.find(ne=>ne.id===U.id))!=null&&Q.delete||Ut.dismiss(U.id),X.filter(({id:ne})=>ne!==U.id)})},[]);return ee.useEffect(()=>Ut.subscribe(U=>{if(U.dismiss){requestAnimationFrame(()=>{W(X=>X.map(Q=>Q.id===U.id?{...Q,delete:!0}:Q))});return}setTimeout(()=>{Uy.flushSync(()=>{W(X=>{const Q=X.findIndex(ne=>ne.id===U.id);return Q!==-1?[...X.slice(0,Q),{...X[Q],...U},...X.slice(Q+1)]:[U,...X]})})})}),[q]),ee.useEffect(()=>{if(w!=="system"){$(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;const U=window.matchMedia("(prefers-color-scheme: dark)");try{U.addEventListener("change",({matches:X})=>{$(X?"dark":"light")})}catch{U.addListener(({matches:Q})=>{try{$(Q?"dark":"light")}catch(ne){console.error(ne)}})}},[w]),ee.useEffect(()=>{q.length<=1&&P(!1)},[q]),ee.useEffect(()=>{const U=X=>{var Q;if(m.every(pe=>X[pe]||X.code===pe)){var ve;P(!0),(ve=le.current)==null||ve.focus()}X.code==="Escape"&&(document.activeElement===le.current||(Q=le.current)!=null&&Q.contains(document.activeElement))&&P(!1)};return document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)},[m]),ee.useEffect(()=>{if(le.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,R.current=!1)}},[le.current]),ee.createElement("section",{ref:s,"aria-label":`${ae} ${me}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},K.map((U,X)=>{var Q;const[ne,ve]=U.split("-");return J.length?ee.createElement("ol",{key:U,dir:Z==="auto"?ph():Z,tabIndex:-1,ref:le,className:h,"data-sonner-toaster":!0,"data-sonner-theme":M,"data-y-position":ne,"data-x-position":ve,style:{"--front-toast-height":`${((Q=te[0])==null?void 0:Q.height)||0}px`,"--width":`${p2}px`,"--gap":`${F}px`,..._,...w2(b,p)},onBlur:pe=>{R.current&&!pe.currentTarget.contains(pe.relatedTarget)&&(R.current=!1,I.current&&(I.current.focus({preventScroll:!0}),I.current=null))},onFocus:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||R.current||(R.current=!0,I.current=pe.relatedTarget)},onMouseEnter:()=>P(!0),onMouseMove:()=>P(!0),onMouseLeave:()=>{de||P(!1)},onDragEnd:()=>P(!1),onPointerDown:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||re(!0)},onPointerUp:()=>re(!1)},J.filter(pe=>!pe.position&&X===0||pe.position===U).map((pe,he)=>{var wt,ut;return ee.createElement(S2,{key:pe.id,icons:se,index:he,toast:pe,defaultRichColors:N,duration:(wt=A==null?void 0:A.duration)!=null?wt:j,className:A==null?void 0:A.className,descriptionClassName:A==null?void 0:A.descriptionClassName,invert:c,visibleToasts:D,closeButton:(ut=A==null?void 0:A.closeButton)!=null?ut:v,interacting:de,position:U,style:A==null?void 0:A.style,unstyled:A==null?void 0:A.unstyled,classNames:A==null?void 0:A.classNames,cancelButtonStyle:A==null?void 0:A.cancelButtonStyle,actionButtonStyle:A==null?void 0:A.actionButtonStyle,closeButtonAriaLabel:A==null?void 0:A.closeButtonAriaLabel,removeToast:z,toasts:J.filter(ct=>ct.position==pe.position),heights:te.filter(ct=>ct.position==pe.position),setHeights:fe,expandByDefault:x,gap:F,expanded:Y,swipeDirections:r.swipeDirections})})):null}))});function Ep(a){var r,s,i="";if(typeof a=="string"||typeof a=="number")i+=a;else if(typeof a=="object")if(Array.isArray(a)){var c=a.length;for(r=0;r<c;r++)a[r]&&(s=Ep(a[r]))&&(i&&(i+=" "),i+=s)}else for(s in a)a[s]&&(i&&(i+=" "),i+=s);return i}function C2(){for(var a,r,s=0,i="",c=arguments.length;s<c;s++)(a=arguments[s])&&(r=Ep(a))&&(i&&(i+=" "),i+=r);return i}const vh=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,xh=C2,_p=(a,r)=>s=>{var i;if((r==null?void 0:r.variants)==null)return xh(a,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:c,defaultVariants:f}=r,m=Object.keys(c).map(h=>{const b=s==null?void 0:s[h],p=f==null?void 0:f[h];if(b===null)return null;const w=vh(b)||vh(p);return c[h][w]}),x=s&&Object.entries(s).reduce((h,b)=>{let[p,w]=b;return w===void 0||(h[p]=w),h},{}),v=r==null||(i=r.compoundVariants)===null||i===void 0?void 0:i.reduce((h,b)=>{let{class:p,className:w,...N}=b;return Object.entries(N).every(j=>{let[_,D]=j;return Array.isArray(D)?D.includes({...f,...x}[_]):{...f,...x}[_]===D})?[...h,p,w]:h},[]);return xh(a,m,v,s==null?void 0:s.class,s==null?void 0:s.className)};function yh(a,r){if(typeof a=="function")return a(r);a!=null&&(a.current=r)}function j2(...a){return r=>{let s=!1;const i=a.map(c=>{const f=yh(c,r);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let c=0;c<i.length;c++){const f=i[c];typeof f=="function"?f():yh(a[c],null)}}}}function R2(a){const r=E2(a),s=S.forwardRef((i,c)=>{const{children:f,...m}=i,x=S.Children.toArray(f),v=x.find(M2);if(v){const h=v.props.children,b=x.map(p=>p===v?S.Children.count(h)>1?S.Children.only(null):S.isValidElement(h)?h.props.children:null:p);return d.jsx(r,{...m,ref:c,children:S.isValidElement(h)?S.cloneElement(h,void 0,b):null})}return d.jsx(r,{...m,ref:c,children:f})});return s.displayName=`${a}.Slot`,s}var Mp=R2("Slot");function E2(a){const r=S.forwardRef((s,i)=>{const{children:c,...f}=s;if(S.isValidElement(c)){const m=T2(c),x=z2(f,c.props);return c.type!==S.Fragment&&(x.ref=i?j2(i,m):m),S.cloneElement(c,x)}return S.Children.count(c)>1?S.Children.only(null):null});return r.displayName=`${a}.SlotClone`,r}var _2=Symbol("radix.slottable");function M2(a){return S.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===_2}function z2(a,r){const s={...r};for(const i in r){const c=a[i],f=r[i];/^on[A-Z]/.test(i)?c&&f?s[i]=(...x)=>{const v=f(...x);return c(...x),v}:c&&(s[i]=c):i==="style"?s[i]={...c,...f}:i==="className"&&(s[i]=[c,f].filter(Boolean).join(" "))}return{...a,...s}}function T2(a){var i,c;let r=(i=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:i.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?a.ref:(r=(c=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:c.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?a.props.ref:a.props.ref||a.ref)}const A2=_p("inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function Qe({className:a,variant:r="default",asChild:s=!1,...i}){const c=s?Mp:"span";return d.jsx(c,{"data-slot":"badge","data-variant":r,className:Ee(A2({variant:r}),a),...i})}const D2=_p("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function ze({className:a,variant:r="default",size:s="default",asChild:i=!1,...c}){const f=i?Mp:"button";return d.jsx(f,{"data-slot":"button","data-variant":r,"data-size":s,className:Ee(D2({variant:r,size:s,className:a})),...c})}const O2=new Set(["id","created_at","createdAt","updated_at","updatedAt"]);function k2(a){const r=a.toLowerCase();return r.includes("timestamp")||r.includes("date")?"datetime":r.includes("json")?"textarea":r.includes("bool")?"boolean":r.includes("int")||r.includes("float")||r.includes("numeric")||r.includes("decimal")||r.includes("real")||r.includes("double")?"number":r.includes("text")&&!r.includes("varchar")?"textarea":"text"}function H2(a){if(!a)return"";try{const r=new Date(a);if(isNaN(r.getTime()))return"";const s=r.getTimezoneOffset()*6e4;return new Date(r.getTime()-s).toISOString().slice(0,19)}catch{return""}}function U2(a){const r=a.toLowerCase();return r.includes("int")||r.includes("float")||r.includes("numeric")?"text-blue-400 bg-blue-500/10":r.includes("bool")?"text-amber-400 bg-amber-500/10":r.includes("timestamp")||r.includes("date")?"text-green-400 bg-green-500/10":r.includes("json")?"text-purple-400 bg-purple-500/10":"text-zinc-400 bg-zinc-500/10"}function zp({row:a,columns:r,tableName:s,allTables:i,onClose:c,onDataChanged:f,onNavigateToTable:m}){const{apiBase:x}=Xt(),[v,h]=S.useState(null),[b,p]=S.useState(""),[w,N]=S.useState(!1),[j,_]=S.useState(!1);if(!a)return null;const D=a.id,A=S.useMemo(()=>{var P;if(!i)return[];const Y=[];for(const[de,re]of Object.entries(i))if(de!==s)for(const M of re)((P=M.references)==null?void 0:P.table)===s&&Y.push({table:de,column:M.column});return Y},[i,s]),[Z,F]=S.useState({});S.useEffect(()=>{if(A.length===0||!D)return;let Y=!1;async function P(){const de={};for(const re of A)try{const M=re.table.replace(/[^a-zA-Z0-9_]/g,""),$=await fetch(`${x}/_admin/data/${M}?limit=0&offset=0`);if($.ok){const le=await $.json();de[`${re.table}.${re.column}`]=le.total||0}}catch{}Y||F(de)}return P(),()=>{Y=!0}},[A,D,x]);const se=(Y,P,de)=>{h(Y),P==null?de&&(de.toLowerCase().includes("timestamp")||de.toLowerCase().includes("date"))?p(new Date().toISOString()):p(""):p(typeof P=="object"?JSON.stringify(P,null,2):String(P))},ae=S.useCallback(async(Y,P,de)=>{N(!0);try{let re=P;const M=de.toLowerCase();if(M.includes("timestamp")||M.includes("date"))if(P==="")re=null;else{const $=new Date(P);re=isNaN($.getTime())?null:$.toISOString()}else if(M.includes("int")||M.includes("float")||M.includes("numeric")||M.includes("real")||M.includes("double")||M.includes("decimal"))re=P===""?null:Number(P);else if(M.includes("bool"))re=P==="true";else if(M.includes("json"))try{re=JSON.parse(P)}catch{pt.error("Invalid JSON"),N(!1);return}else P===""&&(re=null);await fetch(`${x}/_admin/data/${s}/${D}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[Y]:re})}),pt.success(`Updated ${Y}`),f()}catch(re){console.error("Failed to update:",re),pt.error("Failed to update field")}N(!1),h(null)},[x,s,D,f]),q=S.useCallback(async Y=>{N(!0);try{await fetch(`${x}/_admin/data/${s}/${D}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[Y]:null})}),pt.success(`${Y} set to null`),f()}catch{pt.error("Failed to set null")}N(!1),h(null)},[x,s,D,f]),W=()=>{h(null),p("")},J=S.useCallback(async(Y,P)=>{const de=!P;N(!0);try{await fetch(`${x}/_admin/data/${s}/${D}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[Y]:de})}),pt.success(`${Y} = ${de}`),f()}catch{pt.error("Failed to toggle")}N(!1)},[x,s,D,f]),K=S.useCallback(async()=>{try{const{deleteRow:Y}=Xt.getState();await Y(s,D),pt.success("Row deleted"),f(),c()}catch{pt.error("Failed to delete row")}},[s,D,f,c]),te=(Y,P,de)=>{Y.key==="Enter"&&!Y.shiftKey?(Y.preventDefault(),ae(P,b,de)):Y.key==="Escape"&&W()},fe=(Y,P)=>Y==null?"null":typeof Y=="boolean"?Y?"true":"false":P.toLowerCase().includes("timestamp")||P.toLowerCase().includes("date")?new Date(Y).toLocaleString():typeof Y=="object"?JSON.stringify(Y,null,2):String(Y);return d.jsxs("div",{className:"h-full flex flex-col border-l border-border bg-background w-[400px] max-w-[400px] overflow-x-hidden",children:[d.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border shrink-0",children:[d.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[d.jsx("h3",{className:"font-semibold text-foreground text-sm",children:"Row Detail"}),d.jsx(Qe,{variant:"outline",className:"text-[10px] font-mono border-border text-muted-foreground shrink-0",children:String(D).length>16?String(D).slice(0,16)+"…":String(D)})]}),d.jsx(ze,{variant:"ghost",size:"icon",className:"h-7 w-7 text-muted-foreground hover:text-foreground",onClick:c,children:d.jsx(qc,{className:"h-4 w-4"})})]}),d.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:d.jsxs("div",{className:"p-4 space-y-4",children:[r.map(Y=>{const P=a[Y.column],de=k2(Y.type),re=O2.has(Y.column)||!!Y.references,M=v===Y.column,$=P==null,le=Y.nullable&&!re&&!$;return d.jsxs("div",{className:"space-y-1.5",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:Y.column}),d.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded font-mono ${U2(Y.type)}`,children:Y.type.split("(")[0]}),Y.nullable&&d.jsx("span",{className:"text-[10px] text-muted-foreground/50",children:"nullable"}),Y.references&&d.jsxs("span",{className:"inline-flex items-center gap-0.5 text-[10px] px-1.5 py-0.5 rounded font-medium bg-violet-500/10 text-violet-400",children:[d.jsx(Lc,{className:"h-2.5 w-2.5"}),Y.references.table]})]}),M?d.jsxs("div",{className:"space-y-2",children:[de==="datetime"?d.jsx("input",{type:"datetime-local",step:"1",value:H2(b),onChange:me=>{me.target.value?p(new Date(me.target.value).toISOString()):p("")},onKeyDown:me=>te(me,Y.column,Y.type),autoFocus:!0,className:"w-full rounded-md border border-primary/50 bg-background px-3 py-2 text-xs text-foreground focus:outline-none focus:ring-1 focus:ring-primary/50"}):de==="textarea"?d.jsx("textarea",{value:b,onChange:me=>p(me.target.value),onKeyDown:me=>te(me,Y.column,Y.type),rows:6,autoFocus:!0,className:"w-full rounded-md border border-primary/50 bg-background px-3 py-2 text-xs text-foreground font-mono resize-y focus:outline-none focus:ring-1 focus:ring-primary/50"}):d.jsx("input",{type:de==="number"?"number":"text",value:b,onChange:me=>p(me.target.value),onKeyDown:me=>te(me,Y.column,Y.type),autoFocus:!0,className:"w-full rounded-md border border-primary/50 bg-background px-3 py-2 text-xs text-foreground focus:outline-none focus:ring-1 focus:ring-primary/50"}),d.jsxs("div",{className:"flex items-center gap-1.5",children:[d.jsxs(ze,{variant:"default",size:"sm",className:"h-6 text-[11px] px-2",disabled:w,onClick:()=>ae(Y.column,b,Y.type),children:[d.jsx(Q1,{className:"h-3 w-3 mr-1"}),"Save"]}),Y.nullable&&d.jsx(ze,{variant:"ghost",size:"sm",className:"h-6 text-[11px] px-2 text-amber-500 hover:text-amber-400 hover:bg-amber-500/10",disabled:w,onClick:()=>q(Y.column),children:"Set null"}),d.jsx(ze,{variant:"ghost",size:"sm",className:"h-6 text-[11px] px-2 text-muted-foreground",onClick:W,children:"Cancel"})]})]}):de==="boolean"&&!re?d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("button",{onClick:()=>!$&&J(Y.column,P),disabled:w||$,className:Ee("flex items-center gap-2 rounded-md border border-border px-3 py-2 text-xs flex-1 transition-colors text-left",$?"bg-muted/30 cursor-default":"hover:bg-accent/50"),children:$?d.jsx("span",{className:"text-muted-foreground italic",children:"null"}):d.jsxs(d.Fragment,{children:[d.jsx("div",{className:`w-8 h-4 rounded-full transition-colors relative ${P?"bg-green-500":"bg-zinc-600"}`,children:d.jsx("div",{className:`absolute top-0.5 w-3 h-3 rounded-full bg-white transition-transform ${P?"translate-x-4":"translate-x-0.5"}`})}),d.jsx("span",{className:P?"text-green-400":"text-muted-foreground",children:P?"true":"false"})]})}),Y.nullable&&($?d.jsx(ze,{variant:"ghost",size:"sm",className:"h-8 text-[10px] px-2 text-muted-foreground hover:text-foreground shrink-0",disabled:w,onClick:()=>J(Y.column,!0),children:"Set value"}):d.jsx(ze,{variant:"ghost",size:"sm",className:"h-8 text-[10px] px-2 text-amber-500 hover:text-amber-400 hover:bg-amber-500/10 shrink-0",disabled:w,onClick:()=>q(Y.column),children:"Set null"}))]}):Y.references&&P!==null&&P!==void 0?d.jsxs("div",{onClick:()=>m==null?void 0:m(Y.references.table,String(P)),className:"flex items-center gap-2 rounded-md border border-violet-500/20 px-3 py-2 text-xs cursor-pointer hover:bg-violet-500/5 hover:border-violet-500/40 transition-colors group",children:[d.jsx(NS,{className:"h-3 w-3 text-violet-400 shrink-0"}),d.jsx("span",{className:"text-violet-400 truncate flex-1 group-hover:underline",children:String(P)}),d.jsx(Yl,{className:"h-3 w-3 text-violet-400/50 group-hover:text-violet-400 transition-colors"})]}):d.jsxs("div",{className:"flex items-center gap-1.5",children:[d.jsx("div",{onClick:()=>!re&&se(Y.column,P,Y.type),className:Ee("rounded-md border border-border px-3 py-2 text-xs overflow-hidden flex-1",re?"bg-muted/30 text-muted-foreground cursor-default":"hover:bg-accent/50 hover:border-primary/30 cursor-pointer transition-colors",$?"text-muted-foreground italic":typeof P=="object"?"font-mono text-foreground whitespace-pre-wrap break-all max-h-24 overflow-y-auto":"text-foreground truncate"),children:fe(P,Y.type)}),le&&d.jsx(ze,{variant:"ghost",size:"sm",className:"h-8 text-[10px] px-2 text-amber-500 hover:text-amber-400 hover:bg-amber-500/10 shrink-0",disabled:w,onClick:()=>q(Y.column),children:"Set null"})]})]},Y.column)}),A.length>0&&d.jsxs("div",{className:"pt-3 mt-3 border-t border-border space-y-2",children:[d.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-medium text-muted-foreground",children:[d.jsx(Mr,{className:"h-3 w-3"}),"Referenced by"]}),A.map(Y=>{const P=`${Y.table}.${Y.column}`,de=Z[P];return d.jsxs("button",{onClick:()=>m==null?void 0:m(Y.table),className:"flex items-center gap-2 w-full rounded-md border border-emerald-500/20 px-3 py-2 text-xs hover:bg-emerald-500/5 hover:border-emerald-500/40 transition-colors group text-left",children:[d.jsx(Mr,{className:"h-3 w-3 text-emerald-400 shrink-0"}),d.jsxs("span",{className:"text-emerald-400 flex-1 truncate group-hover:underline",children:[Y.table,d.jsxs("span",{className:"text-emerald-400/50 ml-1",children:[".",Y.column]})]}),de!==void 0&&d.jsxs("span",{className:"text-[10px] text-muted-foreground bg-muted/50 rounded px-1.5 py-0.5 shrink-0",children:[de," rows"]}),d.jsx(Yl,{className:"h-3 w-3 text-emerald-400/50 group-hover:text-emerald-400 transition-colors shrink-0"})]},P)})]})," "]})}),d.jsx("div",{className:"p-4 border-t border-border",children:j?d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs(ze,{variant:"destructive",size:"sm",className:"flex-1 text-xs",onClick:K,children:[d.jsx(Cc,{className:"h-3 w-3 mr-1.5"}),"Confirm Delete"]}),d.jsxs(ze,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:()=>_(!1),children:[d.jsx(DS,{className:"h-3 w-3 mr-1"}),"Cancel"]})]}):d.jsxs(ze,{variant:"ghost",size:"sm",className:"w-full text-xs text-destructive hover:text-destructive hover:bg-destructive/10",onClick:()=>_(!0),children:[d.jsx(Cc,{className:"h-3 w-3 mr-1.5"}),"Delete Row"]})})]})}function B2(a){return a.backendStatus!==void 0?a.backendStatus==="none"&&!!a.hasStatic:!!a.staticOnly}function L2(){const{tables:a,selectedTable:r,setSelectedTable:s,fetchTables:i,fetchTableData:c,deleteRow:f}=Xt(),[m,x]=S.useState([]),[v,h]=S.useState(0),[b,p]=S.useState(!0),[w,N]=S.useState(0),[j,_]=S.useState(!1),[D,A]=S.useState(null),Z=S.useRef(null),F=50,se=Ma(),{appStatus:ae}=se,q=B2(se),[W,J]=S.useState(!1),K=ti(),[te]=zy(),fe=te.get("table");S.useEffect(()=>{fe&&fe!==r&&s(fe)},[fe]),S.useEffect(()=>{i().then(()=>{p(!1),J(!1),s(fe||"")}).catch(()=>{p(!1),J(!0)})},[i]);const Y=S.useCallback(z=>{s(z);const U=new URLSearchParams(te.toString());U.set("table",z),K(`?${U.toString()}`,{replace:!0}),N(0),_(!1)},[K,te,s]),P=S.useCallback(()=>{s("");const z=new URLSearchParams(te.toString());z.delete("table"),K(`?${z.toString()}`,{replace:!0}),x([]),h(0)},[K,te,s]),de=S.useCallback(async()=>{if(!r)return;p(!0);const z=await c(r,F,w*F);x(z.data||[]),h(z.total||0),p(!1)},[r,w,c]);S.useEffect(()=>{de()},[de]),S.useEffect(()=>{const U=Xt.getState().apiBase.replace(/^http/,"ws")+"/ws";let X=null,Q=null,ne=!0;function ve(){ne&&(X=new WebSocket(U),X.onmessage=pe=>{try{const he=JSON.parse(pe.data),wt=he.type==="invalidate"&&Array.isArray(he.queries)?he.queries:he.type==="query:updated"&&he.query?[he.query]:[],ut=Xt.getState().selectedTable;ut&&wt.some(ct=>ct.includes(ut))&&de()}catch{}},X.onclose=()=>{ne&&(Q=setTimeout(ve,3e3))})}return ve(),()=>{ne=!1,Q&&clearTimeout(Q),X==null||X.close()}},[de]),S.useEffect(()=>{function z(U){Z.current&&!Z.current.contains(U.target)&&_(!1)}if(j)return document.addEventListener("mousedown",z),()=>document.removeEventListener("mousedown",z)},[j]);const re=Object.keys(a),M=r?a[r]||[]:[],$=S.useMemo(()=>M.map(z=>({accessorKey:z.column,header:z.column,minWidth:z.type.includes("timestamp")?200:100,maxWidth:z.type.includes("text")?300:250,headerTooltip:z.references?`${z.column} (${z.type}) → ${z.references.table}.${z.references.column}`:`${z.column} (${z.type})${z.nullable?" | nullable":""}`,cellClassName:U=>z.column==="id"?"text-indigo-400 font-mono text-[11px]":z.references&&U!==null&&U!==void 0?"text-violet-400 cursor-pointer underline decoration-violet-400/30":U==null?"text-muted-foreground italic":typeof U=="boolean"?U?"text-green-500":"text-red-500":"",cell:z.type.includes("timestamp")?U=>{const X=U.getValue();return X==null?d.jsx("span",{className:"text-muted-foreground italic",children:"null"}):d.jsx("span",{children:new Date(X).toLocaleString()})}:void 0})),[M]),le=S.useCallback(z=>{A(U=>U&&U.id===z.id?null:z)},[]),me=S.useCallback((z,U,X)=>{const Q=M.find(ne=>ne.column===U);if(Q!=null&&Q.references&&z[U]!==null&&z[U]!==void 0){X.stopPropagation();const ne=Q.references.table,ve=String(z[U]),pe=new URLSearchParams(te.toString());pe.set("table",ne),pe.set("fkHighlight",ve),K(`?${pe.toString()}`,{replace:!1}),s(ne),N(0)}},[M,K,te,s]),I=te.get("fkHighlight");S.useEffect(()=>{if(I&&m.length>0){const z=m.find(U=>String(U.id)===I);if(z){A(z);const U=new URLSearchParams(te.toString());U.delete("fkHighlight"),K(`?${U.toString()}`,{replace:!0})}}},[I,m]),S.useEffect(()=>{if(D&&m.length>0){const z=m.find(U=>U.id===D.id);A(z||null)}},[m]);const R=Math.ceil(v/F);return r?d.jsxs("div",{className:"flex h-full flex-col",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs(ze,{variant:"ghost",size:"sm",onClick:P,className:"gap-1.5 text-muted-foreground hover:text-foreground",children:[d.jsx(Mr,{className:"h-3.5 w-3.5"}),"All Tables"]}),d.jsx("div",{className:"w-px h-5 bg-border"}),d.jsxs("div",{className:"relative",ref:Z,children:[d.jsxs("button",{onClick:()=>_(z=>!z),className:Ee("flex items-center gap-2 rounded-md px-2.5 py-1.5 text-sm font-semibold transition-colors","hover:bg-accent/50 text-foreground",j&&"bg-accent/50"),children:[d.jsx(ja,{className:"h-3.5 w-3.5 text-primary"}),r,d.jsx(K1,{className:Ee("h-3.5 w-3.5 text-muted-foreground transition-transform",j&&"rotate-180")})]}),j&&d.jsx("div",{className:"absolute top-full left-0 mt-1 z-50 min-w-[200px] max-h-[300px] overflow-y-auto rounded-lg border border-border bg-popover shadow-lg",children:d.jsx("div",{className:"p-1",children:re.map(z=>{var U;return d.jsxs("button",{onClick:()=>Y(z),className:Ee("flex w-full items-center gap-2 rounded-md px-3 py-2 text-sm transition-colors text-left",z===r?"bg-primary/10 text-primary font-medium":"text-foreground hover:bg-accent/50"),children:[d.jsx(ja,{className:"h-3.5 w-3.5 shrink-0"}),d.jsx("span",{className:"truncate",children:z}),d.jsxs(Qe,{variant:"secondary",className:"ml-auto text-[10px] shrink-0",children:[((U=a[z])==null?void 0:U.length)||0," cols"]})]},z)})})})]}),v>0&&d.jsxs(Qe,{variant:"outline",className:"text-xs border-border text-muted-foreground",children:[v," rows"]})]}),d.jsx("div",{className:"flex items-center gap-2",children:d.jsx(ze,{variant:"ghost",size:"sm",onClick:de,className:"text-muted-foreground hover:text-foreground",children:d.jsx(_a,{className:"h-3.5 w-3.5"})})})]}),d.jsxs("div",{className:"flex-1 min-h-0 relative overflow-hidden",children:[d.jsx(Rp,{data:m,columns:$,loading:b,onRowClick:le,onCellClick:me}),D&&d.jsx("div",{className:"absolute top-0 right-0 h-full z-10 shadow-2xl animate-in slide-in-from-right duration-200",children:d.jsx(zp,{row:D,columns:M,tableName:r,allTables:a,onClose:()=>A(null),onDataChanged:de,onNavigateToTable:(z,U)=>{A(null);const X=new URLSearchParams(te.toString());X.set("table",z),U&&X.set("fkHighlight",U),K(`?${X.toString()}`,{replace:!1}),s(z),N(0)}})})]}),d.jsxs("div",{className:"flex items-center justify-between border-t border-border px-4 py-2 bg-background",children:[d.jsx("span",{className:"text-xs text-muted-foreground",children:v===0?"No data":`${w*F+1}–${Math.min((w+1)*F,v)} of ${v}`}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs("span",{className:"text-xs text-muted-foreground",children:["Page ",w+1," of ",Math.max(R,1)]}),d.jsxs("div",{className:"flex gap-1",children:[d.jsx(ze,{variant:"outline",size:"icon",className:"h-7 w-7 border-border",disabled:w===0,onClick:()=>N(z=>z-1),children:d.jsx(vp,{className:"h-3.5 w-3.5"})}),d.jsx(ze,{variant:"outline",size:"icon",className:"h-7 w-7 border-border",disabled:w+1>=R,onClick:()=>N(z=>z+1),children:d.jsx(Yl,{className:"h-3.5 w-3.5"})})]})]})]})]}):d.jsxs("div",{className:"flex h-full flex-col",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(ja,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("h2",{className:"font-semibold text-foreground",children:"Data"}),d.jsxs(Qe,{variant:"outline",className:"text-xs border-border text-muted-foreground",children:[re.length," tables"]})]}),d.jsx(ze,{variant:"ghost",size:"sm",onClick:()=>{p(!0),i().then(()=>p(!1))},className:"text-muted-foreground hover:text-foreground",children:d.jsx(_a,{className:"h-3.5 w-3.5"})})]}),d.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:q?d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center",children:[d.jsx(Kl,{className:"h-12 w-12 text-cyan-500/30 mb-4"}),d.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:"Static Hosting"}),d.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm",children:["이 앱은 정적 파일만 호스팅합니다.",d.jsx("br",{}),"서버 프로세스가 없으므로 데이터베이스가 사용되지 않습니다."]})]}):(W||ae&&ae!=="running")&&re.length===0?d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center",children:[d.jsx(ja,{className:"h-12 w-12 text-amber-500/30 mb-4"}),d.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:"App is not running"}),d.jsx("p",{className:"text-sm text-muted-foreground max-w-sm",children:"Database tables cannot be loaded while the app is stopped or crashed. Use the banner above to restart the app."})]}):re.length===0?d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center",children:[d.jsx(ja,{className:"h-12 w-12 text-muted-foreground/30 mb-4"}),d.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:"No tables yet"}),d.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm",children:["Define a schema in your ",d.jsx("code",{className:"bg-muted px-1 rounded text-xs",children:"gencow/schema.ts"})," file and run the server to create tables."]})]}):d.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",children:re.map(z=>{const U=(a[z]||[]).filter(Q=>Q.references).map(Q=>Q.references.table).filter((Q,ne,ve)=>ve.indexOf(Q)===ne),X=[];for(const[Q,ne]of Object.entries(a))Q!==z&&ne.some(ve=>{var pe;return((pe=ve.references)==null?void 0:pe.table)===z})&&X.push(Q);return d.jsxs("button",{onClick:()=>Y(z),className:Ee("group relative flex flex-col items-start gap-2.5 rounded-lg border border-border p-4","bg-card hover:bg-accent/50 hover:border-primary/30","transition-all duration-150 text-left","focus:outline-none focus:ring-2 focus:ring-primary/50 focus:ring-offset-1 focus:ring-offset-background"),children:[d.jsxs("div",{className:"flex items-center gap-2.5 w-full",children:[d.jsx("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-primary/10 text-primary",children:d.jsx(Cp,{className:"h-4 w-4"})}),d.jsx("span",{className:"font-medium text-sm text-foreground truncate flex-1",children:z})]}),d.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[d.jsx(aS,{className:"h-3 w-3"}),a[z].length," columns"]}),(U.length>0||X.length>0)&&d.jsxs("div",{className:"flex flex-wrap gap-1 w-full",children:[U.map(Q=>d.jsxs("span",{onClick:ne=>{ne.stopPropagation(),Y(Q)},className:"inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-[10px] font-medium bg-violet-500/10 text-violet-400 hover:bg-violet-500/20 cursor-pointer transition-colors",children:[d.jsx(Lc,{className:"h-2.5 w-2.5"}),Q]},`out-${Q}`)),X.map(Q=>d.jsxs("span",{onClick:ne=>{ne.stopPropagation(),Y(Q)},className:"inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-[10px] font-medium bg-emerald-500/10 text-emerald-400 hover:bg-emerald-500/20 cursor-pointer transition-colors",children:[d.jsx(Mr,{className:"h-2.5 w-2.5"}),Q]},`in-${Q}`))]}),d.jsx(Yl,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground/0 group-hover:text-muted-foreground transition-colors"})]},z)})})})]})}function Fn({className:a}){return d.jsx("div",{className:Ee("animate-pulse rounded-md bg-muted",a)})}function V2({cards:a=8}){return d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 p-4",children:Array.from({length:a}).map((r,s)=>d.jsxs("div",{className:"rounded-lg border border-border p-4 space-y-3",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Fn,{className:"h-4 w-4 rounded"}),d.jsx(Fn,{className:"h-4 w-24"})]}),d.jsx(Fn,{className:"h-3 w-full"}),d.jsx(Fn,{className:"h-3 w-2/3"}),d.jsxs("div",{className:"flex gap-2 pt-2",children:[d.jsx(Fn,{className:"h-5 w-14 rounded-full"}),d.jsx(Fn,{className:"h-5 w-14 rounded-full"})]})]},s))})}function $2({cards:a=4}){return d.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 p-4",children:Array.from({length:a}).map((r,s)=>d.jsxs("div",{className:"rounded-lg border border-border p-4 space-y-3",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Fn,{className:"h-4 w-4 rounded"}),d.jsx(Fn,{className:"h-3 w-16"})]}),d.jsx(Fn,{className:"h-8 w-20"})]},s))})}function G2(a){return a.backendStatus!==void 0?a.backendStatus==="none"&&!!a.hasStatic:!!a.staticOnly}function q2(){const{apiBase:a}=Xt(),[r,s]=S.useState([]),[i,c]=S.useState([]),[f,m]=S.useState(null),[x,v]=S.useState("query"),[h,b]=S.useState("{}"),[p,w]=S.useState({status:"idle"}),[N,j]=S.useState("card"),[_,D]=S.useState(!0),A=Ma(),{appStatus:Z}=A,F=G2(A),[se,ae]=S.useState(!1),q=S.useCallback(async()=>{if(Z&&Z!=="running"){ae(!0),D(!1);return}D(!0);try{const te=await fetch(`${a}/_admin/functions`);if(!te.ok&&(te.status===502||te.status===503)){ae(!0),D(!1);return}const fe=await te.json();s(fe.queries||[]),c(fe.mutations||[]),ae(!1)}catch(te){console.error("Failed to fetch functions:",te),ae(!0)}D(!1)},[a,Z]);S.useEffect(()=>{q()},[q]);function W(te,fe){m(te),v(fe),b("{}"),w({status:"idle"})}async function J(){if(!f)return;w({status:"loading"});const te=performance.now();try{let fe={};try{fe=JSON.parse(h)}catch{w({status:"error",error:"Invalid JSON in arguments"});return}const P=await fetch(`${a}${x==="query"?"/api/query":"/api/mutation"}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:f,args:fe})}),de=Math.round(performance.now()-te),re=await P.json();P.ok?(w({status:"success",data:re,duration:de}),pt.success(`${f} completed in ${de}ms`)):(w({status:"error",error:re.error||`HTTP ${P.status}`,duration:de}),pt.error(`${f} failed: ${re.error||`HTTP ${P.status}`}`))}catch(fe){const Y=Math.round(performance.now()-te),P=fe instanceof Error?fe.message:String(fe);w({status:"error",error:P,duration:Y})}}const K=f!==null;return d.jsxs("div",{className:"flex h-full",children:[d.jsxs("div",{className:Ee("flex flex-col border-r border-border transition-all min-w-0 shrink-0",K?"w-[320px]":"w-full"),children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Ca,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("h2",{className:"font-semibold text-foreground",children:"Functions"}),d.jsxs(Qe,{variant:"outline",className:"text-xs border-border text-muted-foreground",children:[r.length+i.length," total"]})]}),d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx(ze,{variant:N==="card"?"default":"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>j("card"),children:d.jsx(SS,{className:"h-3.5 w-3.5"})}),d.jsx(ze,{variant:N==="table"?"default":"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>j("table"),children:d.jsx(Cp,{className:"h-3.5 w-3.5"})})]})]}),_?d.jsx(V2,{cards:6}):se?F?d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center p-8",children:[d.jsx(Kl,{className:"h-12 w-12 text-cyan-500/30 mb-4"}),d.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:"Static Hosting"}),d.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm",children:["이 앱은 정적 파일만 호스팅합니다.",d.jsx("br",{}),"서버 프로세스가 없으므로 Functions이 등록되지 않습니다."]})]}):d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center p-8",children:[d.jsx(Ca,{className:"h-12 w-12 text-amber-500/30 mb-4"}),d.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:"App is not running"}),d.jsx("p",{className:"text-sm text-muted-foreground max-w-sm",children:"Functions cannot be loaded while the app is stopped or crashed. Use the banner above to restart the app."})]}):r.length===0&&i.length===0?d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center p-8",children:[d.jsx(Ca,{className:"h-12 w-12 text-muted-foreground/30 mb-4"}),d.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:"No functions registered"}),d.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm",children:["Define queries and mutations in your ",d.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:"gencow/"})," directory to see them here."]})]}):d.jsxs("div",{className:"flex-1 overflow-auto p-4 space-y-6",children:[d.jsx(bh,{title:"Queries",icon:d.jsx(Ca,{className:"h-3.5 w-3.5 text-blue-400"}),count:r.length,items:r.map(te=>({name:te,type:"query"})),selectedFn:f,viewMode:N,onSelect:te=>W(te,"query"),badgeClass:"bg-blue-500/10 text-blue-400 border-blue-500/20",iconColor:"text-blue-500"}),d.jsx(bh,{title:"Mutations",icon:d.jsx(Fl,{className:"h-3.5 w-3.5 text-orange-400"}),count:i.length,items:i.map(te=>({name:te.name,type:"mutation",invalidates:te.invalidates})),selectedFn:f,viewMode:N,onSelect:te=>W(te,"mutation"),badgeClass:"bg-orange-500/10 text-orange-400 border-orange-500/20",iconColor:"text-orange-500"})]})]}),K&&d.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[x==="query"?d.jsx(Ca,{className:"h-4 w-4 text-blue-500"}):d.jsx(Fl,{className:"h-4 w-4 text-orange-500"}),d.jsx("span",{className:"font-mono text-sm font-medium",children:f}),d.jsx(Qe,{className:Ee("text-[10px]",x==="query"?"bg-blue-500/10 text-blue-400 border-blue-500/20":"bg-orange-500/10 text-orange-400 border-orange-500/20"),children:x})]}),d.jsx(ze,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>m(null),children:d.jsx(qc,{className:"h-4 w-4"})})]}),d.jsxs("div",{className:"flex-1 overflow-auto p-4 space-y-4",children:[x==="mutation"&&(()=>{const te=i.find(fe=>fe.name===f);return te!=null&&te.invalidates.length?d.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[d.jsx("span",{children:"Invalidates:"}),te.invalidates.map(fe=>d.jsx(Qe,{variant:"secondary",className:"text-[10px] font-mono",children:fe},fe))]}):null})(),d.jsxs("div",{children:[d.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1.5 block",children:"Arguments (JSON)"}),d.jsx("textarea",{className:"w-full h-32 rounded-md border border-border bg-background px-3 py-2 font-mono text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-primary/50 resize-none",value:h,onChange:te=>b(te.target.value),placeholder:'{ "key": "value" }',spellCheck:!1})]}),d.jsxs(ze,{onClick:J,disabled:p.status==="loading",className:"gap-2",children:[p.status==="loading"?d.jsx(Sp,{className:"h-4 w-4 animate-spin"}):d.jsx(wp,{className:"h-4 w-4"}),x==="query"?"Run Query":"Run Mutation"]}),p.status!=="idle"&&p.status!=="loading"&&d.jsxs("div",{className:"space-y-2",children:[d.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[p.status==="success"?d.jsx(yp,{className:"h-3.5 w-3.5 text-green-500"}):d.jsx(xp,{className:"h-3.5 w-3.5 text-red-500"}),d.jsx("span",{className:p.status==="success"?"text-green-500":"text-red-500",children:p.status==="success"?"Success":"Error"}),p.duration!==void 0&&d.jsxs("span",{className:"text-muted-foreground",children:[p.duration,"ms"]})]}),d.jsx("pre",{className:Ee("rounded-md border p-3 font-mono text-xs overflow-auto max-h-80",p.status==="success"?"border-green-500/20 bg-green-500/5 text-green-300":"border-red-500/20 bg-red-500/5 text-red-300"),children:p.status==="success"?JSON.stringify(p.data,null,2):p.error})]})]})]})]})}function bh({title:a,icon:r,count:s,items:i,selectedFn:c,viewMode:f,onSelect:m,badgeClass:x,iconColor:v}){return s===0?null:d.jsxs("div",{children:[d.jsxs("h3",{className:"text-sm font-medium text-muted-foreground mb-3 flex items-center gap-2",children:[r,a,d.jsx(Qe,{variant:"outline",className:"text-[10px]",children:s})]}),f==="card"?d.jsx("div",{className:"space-y-1",children:i.map(h=>d.jsxs("div",{className:Ee("flex items-center gap-2 px-3 py-2 rounded-md border border-border cursor-pointer transition-colors hover:border-primary/50",c===h.name&&"border-primary bg-primary/5"),onClick:()=>m(h.name),children:[h.type==="query"?d.jsx(Ca,{className:Ee("h-3.5 w-3.5 shrink-0",v)}):d.jsx(Fl,{className:Ee("h-3.5 w-3.5 shrink-0",v)}),d.jsx("span",{className:"text-sm font-mono truncate",children:h.name}),d.jsx(Qe,{className:Ee("text-[10px] shrink-0",x),children:h.type}),h.invalidates&&h.invalidates.length>0&&d.jsxs(d.Fragment,{children:[d.jsx(Lc,{className:"h-3 w-3 text-muted-foreground shrink-0"}),h.invalidates.map(b=>d.jsx(Qe,{variant:"secondary",className:"text-[10px] font-mono shrink-0 hidden sm:inline-flex",children:b},b))]}),d.jsx(Yl,{className:"ml-auto h-3.5 w-3.5 text-muted-foreground shrink-0"})]},h.name))}):d.jsx("div",{className:"rounded-md border border-border overflow-x-auto",children:d.jsxs("table",{className:"w-full text-sm table-fixed",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"border-b border-border bg-muted/30",children:[d.jsx("th",{className:"text-left px-3 py-2 text-xs font-medium text-muted-foreground w-[45%]",children:"Name"}),d.jsx("th",{className:"text-left px-3 py-2 text-xs font-medium text-muted-foreground w-[20%]",children:"Type"}),d.jsx("th",{className:"text-left px-3 py-2 text-xs font-medium text-muted-foreground w-[35%]",children:"Invalidates"})]})}),d.jsx("tbody",{children:i.map(h=>{var b;return d.jsxs("tr",{className:Ee("border-b border-border cursor-pointer transition-colors hover:bg-accent/50",c===h.name&&"bg-primary/5"),onClick:()=>m(h.name),children:[d.jsx("td",{className:"px-3 py-2 font-mono text-xs truncate",children:h.name}),d.jsx("td",{className:"px-3 py-2",children:d.jsx(Qe,{className:Ee("text-[10px]",x),children:h.type})}),d.jsx("td",{className:"px-3 py-2",children:d.jsx("div",{className:"flex flex-wrap gap-1",children:(b=h.invalidates)==null?void 0:b.map(p=>d.jsx(Qe,{variant:"secondary",className:"text-[10px] font-mono",children:p},p))})})]},h.name)})})]})})]})}function Y2(a){return a.backendStatus!==void 0?a.backendStatus==="none"&&!!a.hasStatic:!!a.staticOnly}const F2={30:"#6B7280",31:"#EF4444",32:"#22C55E",33:"#EAB308",34:"#3B82F6",35:"#A855F7",36:"#06B6D4",37:"#E5E7EB",90:"#9CA3AF",91:"#FCA5A5",92:"#86EFAC",93:"#FDE047",94:"#93C5FD",95:"#D8B4FE",96:"#67E8F9",97:"#F9FAFB"};function X2(a){return a.replace(/\x1b\[([0-9;]*)m/g,(r,s)=>{if(!s||s==="0")return"</span>";const i=s.split(";");for(const c of i){const f=F2[c];if(f)return`<span style="color:${f}">`;if(c==="1")return'<span style="font-weight:bold">';if(c==="2")return'<span style="opacity:0.7">';if(c==="4")return'<span style="text-decoration:underline">'}return""})}function Q2(a){return a.replace(/\x1b\[[0-9;]*m/g,"")}const Z2=["/_admin/status","/_admin/logs","/_admin/tables","/_admin/functions","/_admin/files","/_admin/scheduler","/_admin/env","GET /favicon.ico"];function K2(a){const r=Q2(a);return Z2.some(s=>r.includes(s))}const J2={info:"bg-blue-500/10 text-blue-400 border-blue-500/20",warn:"bg-yellow-500/10 text-yellow-400 border-yellow-500/20",error:"bg-red-500/10 text-red-400 border-red-500/20"},I2={info:"text-blue-400",warn:"text-yellow-400",error:"text-red-400"};function W2({apiBase:a}){const[r,s]=S.useState([]),[i,c]=S.useState(!1);return S.useEffect(()=>{const f=a.match(/\/_proxy\/([^/]+)/);if(!f){c(!0);return}const m=f[1],v=`${a.replace(/\/_proxy\/.*$/,"")}/api/apps/${m}/logs?lines=100`,h=localStorage.getItem("apiKey")||"";fetch(v,{headers:h?{Authorization:`Bearer ${h}`}:{}}).then(async b=>{if(!b.ok){c(!0);return}const p=await b.json();s(p.logs||[]),c(!0)}).catch(()=>c(!0))},[a]),i?r.length>0?d.jsxs("div",{className:"flex flex-col gap-2 py-4 px-2",children:[d.jsxs("div",{className:"flex items-center gap-2 px-2",children:[d.jsx(Ps,{className:"h-4 w-4 text-amber-500"}),d.jsxs("span",{className:"text-xs font-medium text-amber-500",children:["Last logs before shutdown (",r.length," lines)"]})]}),d.jsx("pre",{className:"p-3 rounded-lg bg-black/30 text-xs text-muted-foreground overflow-x-auto max-h-[60vh] overflow-y-auto font-mono leading-relaxed border border-amber-500/20",children:r.join(`
372
- `)}),d.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"Use the banner above to restart the app."})]}):d.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center gap-3",children:[d.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-amber-500/10",children:d.jsx(Ps,{className:"h-5 w-5 text-amber-500"})}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"App is not running — logs are unavailable."}),d.jsx("p",{className:"text-xs text-muted-foreground",children:"Use the banner above to restart the app."})]}):null}function P2(){const{apiBase:a}=Xt(),r=Ma(),{appStatus:s}=r,i=Y2(r),[c,f]=S.useState([]),[m,x]=S.useState("all"),[v,h]=S.useState(!0),[b,p]=S.useState(!0),[w,N]=S.useState(!1),[j,_]=S.useState(!0),[D,A]=S.useState(!1),Z=S.useRef(null),F=S.useRef(null);if(i)return d.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center gap-3",children:[d.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-cyan-500/10",children:d.jsx(Kl,{className:"h-5 w-5 text-cyan-500"})}),d.jsx("p",{className:"text-sm font-medium text-foreground",children:"Static Hosting"}),d.jsxs("p",{className:"text-xs text-muted-foreground max-w-xs",children:["이 앱은 정적 파일만 호스팅합니다.",d.jsx("br",{}),"서버 프로세스가 없으므로 실시간 로그가 생성되지 않습니다."]})]});const se=S.useCallback(async()=>{if(s&&s!=="running"){A(!0),_(!1);return}try{const q=await fetch(`${a}/_admin/logs?limit=200&level=${m}`);if(!q.ok&&(q.status===502||q.status===503)){A(!0),_(!1);return}const W=await q.json();f(W),A(!1),_(!1)}catch(q){console.error("Failed to fetch logs:",q),A(!0),_(!1)}},[a,m,s]);S.useEffect(()=>{se()},[se]),S.useEffect(()=>{if(D||s&&s!=="running")return;const q=a.replace(/^http/,"ws")+"/ws";let W,J;function K(){W=new WebSocket(q),F.current=W,W.onopen=()=>{N(!0),W.send(JSON.stringify({type:"log:subscribe"}))},W.onmessage=te=>{try{const fe=JSON.parse(te.data);fe.type==="log:entry"&&fe.data&&f(Y=>{const P=[...Y,fe.data];return P.length>500?P.slice(-500):P})}catch{}},W.onclose=()=>{N(!1),F.current=null,J=setTimeout(K,3e3)},W.onerror=()=>{W.close()}}return K(),()=>{clearTimeout(J),F.current&&(F.current.close(),F.current=null)}},[a,D,s]),S.useEffect(()=>{b&&Z.current&&(Z.current.scrollTop=Z.current.scrollHeight)},[c,b]);const ae=c.filter(q=>!(m!=="all"&&q.level!==m||v&&K2(q.message)));return d.jsxs("div",{className:"flex h-full flex-col",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Ps,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("h2",{className:"font-semibold text-foreground",children:"Logs"}),d.jsx(Qe,{variant:"outline",className:"text-xs border-border text-muted-foreground",children:ae.length}),d.jsxs("div",{className:"flex items-center gap-1 text-[10px] text-muted-foreground ml-2",children:[d.jsx("div",{className:Ee("h-1.5 w-1.5 rounded-full",w?"bg-green-500":"bg-red-500")}),w?"Live":"Polling"]})]}),d.jsxs("div",{className:"flex items-center gap-1.5",children:[["all","info","warn","error"].map(q=>d.jsx(ze,{variant:m===q?"default":"outline",size:"sm",className:"h-7 text-xs capitalize",onClick:()=>x(q),children:q},q)),d.jsx("div",{className:"w-px h-5 bg-border mx-0.5"}),d.jsxs(ze,{variant:v?"default":"outline",size:"sm",className:"h-7 text-xs gap-1",onClick:()=>h(q=>!q),title:v?"System logs hidden":"Showing system logs",children:[v?d.jsx(oS,{className:"h-3 w-3"}):d.jsx(cS,{className:"h-3 w-3"}),"System"]}),d.jsx(ze,{variant:b?"default":"outline",size:"sm",className:"h-7 text-xs gap-1",onClick:()=>p(q=>!q),children:d.jsx(hp,{className:"h-3 w-3"})}),d.jsx(ze,{variant:"ghost",size:"sm",onClick:se,className:"h-7",children:d.jsx(_a,{className:"h-3.5 w-3.5"})})]})]}),d.jsx("div",{ref:Z,className:"flex-1 overflow-y-auto",children:d.jsxs("div",{className:"p-2 space-y-px font-mono text-xs",children:[ae.map(q=>d.jsxs("div",{className:Ee("flex items-start gap-2 px-3 py-1.5 rounded hover:bg-accent/50 transition-colors",q.level==="error"&&"bg-red-500/5"),children:[d.jsx("span",{className:"text-muted-foreground whitespace-nowrap flex-shrink-0",children:new Date(q.timestamp).toLocaleTimeString()}),d.jsx(Qe,{variant:"outline",className:Ee("text-[10px] px-1.5 py-0 flex-shrink-0",J2[q.level]),children:q.level}),q.source&&d.jsx(Qe,{variant:"secondary",className:"text-[10px] px-1.5 py-0 flex-shrink-0",children:q.source}),d.jsx("span",{className:Ee("break-all",I2[q.level]),dangerouslySetInnerHTML:{__html:X2(q.message)}})]},q.id)),D&&!j&&d.jsx(W2,{apiBase:a}),!D&&ae.length===0&&!j&&d.jsx("div",{className:"text-center text-muted-foreground py-8",children:v?"No application logs yet. System logs are hidden — click the System button to show them.":"No logs yet. Interact with the API to generate logs."})]})})]})}function ew(a){return a<1024?`${a} B`:a<1024*1024?`${(a/1024).toFixed(1)} KB`:`${(a/1024/1024).toFixed(1)} MB`}function tw(){const{apiBase:a,deleteRow:r}=Xt(),[s,i]=S.useState([]),[c,f]=S.useState(!0),[m,x]=S.useState(!1),[v,h]=S.useState(!1),[b,p]=S.useState(null),[w,N]=S.useState(null),j=S.useRef(null),{appStatus:_}=Ma(),[D,A]=S.useState(!1),Z=S.useCallback(async()=>{if(_&&_!=="running"){A(!0),f(!1);return}try{const K=await fetch(`${a}/_admin/files`);if(!K.ok&&(K.status===502||K.status===503)){A(!0),f(!1);return}if(!K.ok){f(!1);return}const te=await K.json();i(te),A(!1)}catch(K){console.error("Failed to fetch files:",K),A(!0)}f(!1)},[a,_]);S.useEffect(()=>{Z()},[Z]);async function F(K){if(!K||K.length===0)return;x(!0),p(null);let te=0,fe=0;for(const Y of Array.from(K))try{const P=new FormData;P.append("file",Y),(await fetch(`${a}/_admin/files/upload`,{method:"POST",body:P})).ok?te++:fe++}catch{fe++}x(!1),fe===0?pt.success(`${te} file(s) uploaded successfully`):pt.error(`${te} uploaded, ${fe} failed`),Z(),setTimeout(()=>p(null),3e3)}function se(K){K.preventDefault(),h(!0)}function ae(K){K.preventDefault(),h(!1)}function q(K){K.preventDefault(),h(!1),F(K.dataTransfer.files)}async function W(K){if(w!==K){N(K),setTimeout(()=>N(null),3e3);return}await r("files",K),N(null),pt.success("File deleted"),Z()}const J=K=>K.startsWith("image/");return d.jsxs("div",{className:"flex h-full flex-col",onDragOver:se,onDragLeave:ae,onDrop:q,children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(zr,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("h2",{className:"font-semibold text-foreground",children:"File Storage"}),d.jsxs(Qe,{variant:"outline",className:"text-xs border-border text-muted-foreground",children:[s.length," files"]})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("input",{ref:j,type:"file",className:"hidden",multiple:!0,onChange:K=>F(K.target.files)}),d.jsxs(ze,{variant:"outline",size:"sm",className:"gap-1.5",onClick:()=>{var K;return(K=j.current)==null?void 0:K.click()},disabled:m,children:[d.jsx(Nr,{className:"h-3.5 w-3.5"}),"Upload"]}),d.jsx(ze,{variant:"ghost",size:"sm",onClick:Z,className:"text-muted-foreground",children:d.jsx(_a,{className:"h-3.5 w-3.5"})})]})]}),b&&d.jsxs("div",{className:Ee("flex items-center gap-2 px-4 py-2 text-xs border-b",b.type==="success"?"bg-green-500/10 text-green-400 border-green-500/20":"bg-red-500/10 text-red-400 border-red-500/20"),children:[b.type==="success"?d.jsx(yp,{className:"h-3.5 w-3.5"}):d.jsx(xp,{className:"h-3.5 w-3.5"}),b.message]}),v&&d.jsx("div",{className:"absolute inset-0 z-50 bg-primary/10 border-2 border-dashed border-primary rounded-lg flex items-center justify-center backdrop-blur-sm",children:d.jsxs("div",{className:"text-center",children:[d.jsx(Nr,{className:"h-12 w-12 text-primary mx-auto mb-2"}),d.jsx("p",{className:"text-lg font-medium text-primary",children:"Drop files here"})]})}),d.jsx("div",{className:"flex-1 overflow-auto",children:d.jsxs("div",{className:"p-4 space-y-1",children:[s.map(K=>d.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-md border border-border hover:bg-accent/50 transition-colors",children:[J(K.type)?d.jsx("div",{className:"h-10 w-10 rounded bg-muted flex items-center justify-center overflow-hidden shrink-0",children:d.jsx("img",{src:`${a}/api/storage/${K.storage_id}`,alt:K.name,className:"h-full w-full object-cover",loading:"lazy"})}):d.jsx("div",{className:"h-10 w-10 rounded bg-muted flex items-center justify-center shrink-0",children:d.jsx(hS,{className:"h-5 w-5 text-muted-foreground"})}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:K.name}),d.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[d.jsx("span",{children:K.type}),d.jsx("span",{children:"·"}),d.jsx("span",{children:ew(Number(K.size))}),d.jsx("span",{children:"·"}),d.jsx("span",{children:new Date(K.created_at).toLocaleString()})]})]}),d.jsxs(Qe,{variant:"secondary",className:"text-[10px] font-mono shrink-0",children:[K.storage_id.slice(0,8),"…"]}),d.jsx(ze,{variant:"ghost",size:"icon",className:"h-7 w-7 shrink-0 text-muted-foreground hover:text-foreground",onClick:()=>{const te=document.createElement("a");te.href=`${a}/api/storage/${K.storage_id}`,te.download=K.name,te.click()},title:"Download",children:d.jsx(iS,{className:"h-3.5 w-3.5"})}),d.jsx(ze,{variant:"ghost",size:"icon",className:Ee("h-7 w-7 shrink-0",w===K.id?"text-red-400 bg-red-500/10":"text-muted-foreground hover:text-red-400"),onClick:()=>W(K.id),title:w===K.id?"Click again to confirm":"Delete",children:w===K.id?d.jsx(qc,{className:"h-3.5 w-3.5"}):d.jsx(Cc,{className:"h-3.5 w-3.5"})})]},K.id)),D&&!c&&d.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center gap-3",children:[d.jsx(zr,{className:"h-12 w-12 text-amber-500/30"}),d.jsx("h3",{className:"text-lg font-medium text-foreground",children:"App is not running"}),d.jsx("p",{className:"text-sm text-muted-foreground max-w-sm",children:"File storage is unavailable while the app is stopped or crashed. Use the banner above to restart the app."})]}),!D&&s.length===0&&!c&&d.jsxs("div",{className:"text-center text-muted-foreground py-12",children:[d.jsx(Nr,{className:"mx-auto h-12 w-12 mb-3 opacity-30"}),d.jsx("p",{className:"font-medium",children:"No files uploaded yet"}),d.jsx("p",{className:"text-xs mt-1",children:"Drag & drop files here or click Upload"}),d.jsxs(ze,{variant:"outline",size:"sm",className:"mt-3",onClick:()=>{var K;return(K=j.current)==null?void 0:K.click()},children:[d.jsx(Nr,{className:"mr-1.5 h-3.5 w-3.5"}),"Choose Files"]})]})]})})]})}const nw=[{column:"id",type:"text",nullable:!1,default:null},{column:"name",type:"text",nullable:!0,default:null},{column:"email",type:"text",nullable:!1,default:null},{column:"email_verified",type:"boolean",nullable:!1,default:null},{column:"image",type:"text",nullable:!0,default:null},{column:"created_at",type:"timestamp",nullable:!1,default:null},{column:"updated_at",type:"timestamp",nullable:!1,default:null}],aw=[{accessorKey:"id",header:"ID",minWidth:120,maxWidth:180,cellClassName:"font-mono text-[11px] text-indigo-400",cell:a=>{const r=a.getValue();return r?r.length>12?r.slice(0,12)+"…":r:""}},{accessorKey:"name",header:"Name",minWidth:150,maxWidth:250,cellClassName:a=>a?"":"text-muted-foreground italic",cell:a=>a.getValue()||"No name"},{accessorKey:"email",header:"Email",minWidth:200,maxWidth:300},{accessorKey:"email_verified",header:"Verified",minWidth:100,maxWidth:120,cellClassName:a=>a?"text-green-500 font-medium":"text-muted-foreground",cell:a=>a.getValue()?"✓ Yes":"No"},{accessorKey:"created_at",header:"Created",minWidth:170,maxWidth:220,cell:a=>{const r=a.getValue();return r?new Date(r).toLocaleString():""}}];function lw(){const{apiBase:a}=Xt(),[r,s]=S.useState([]),[i,c]=S.useState(0),[f,m]=S.useState(!0),[x,v]=S.useState(0),[h,b]=S.useState(""),[p,w]=S.useState(""),[N,j]=S.useState(null),_=50,{appStatus:D}=Ma(),[A,Z]=S.useState(!1),F=S.useCallback(async()=>{if(D&&D!=="running"){Z(!0),m(!1);return}m(!0);try{const q=new URLSearchParams;q.set("page",String(x)),q.set("limit",String(_)),h&&q.set("search",h);const W=await fetch(`${a}/_admin/auth/users?${q}`);if(!W.ok&&(W.status===502||W.status===503)){Z(!0),m(!1);return}if(!W.ok){m(!1);return}const J=await W.json(),K=(J.data||[]).map(te=>({id:te.id,name:te.name,email:te.email,email_verified:te.emailVerified,image:te.image,created_at:te.createdAt,updated_at:te.updatedAt}));s(K),c(J.total||0),Z(!1)}catch(q){console.error("Failed to fetch users:",q),s([]),c(0),Z(!0)}m(!1)},[a,x,h,D]);S.useEffect(()=>{F()},[F]),S.useEffect(()=>{const q=setTimeout(()=>{b(p),v(0)},300);return()=>clearTimeout(q)},[p]);const se=S.useCallback(q=>{j(W=>W&&W.id===q.id?null:q)},[]);S.useEffect(()=>{if(N&&r.length>0){const q=r.find(W=>W.id===N.id);j(q||null)}},[r]);const ae=Math.ceil(i/_);return d.jsxs("div",{className:"flex h-full flex-col",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(mh,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("h2",{className:"font-semibold text-foreground",children:"Auth"}),d.jsxs(Qe,{variant:"outline",className:"text-xs border-border text-muted-foreground",children:[i," users"]})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs("div",{className:"relative",children:[d.jsx($c,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground"}),d.jsx("input",{type:"text",placeholder:"Search users...",value:p,onChange:q=>w(q.target.value),className:"h-8 w-48 rounded-md border border-border bg-background pl-8 pr-3 text-xs text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-primary/50"})]}),d.jsx(ze,{variant:"ghost",size:"sm",onClick:F,className:"text-muted-foreground hover:text-foreground",children:d.jsx(_a,{className:"h-3.5 w-3.5"})})]})]}),d.jsxs("div",{className:"flex-1 min-h-0 relative overflow-hidden",children:[A&&!f?d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center",children:[d.jsx(mh,{className:"h-12 w-12 text-amber-500/30 mb-4"}),d.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:"App is not running"}),d.jsx("p",{className:"text-sm text-muted-foreground max-w-sm",children:"Auth users cannot be loaded while the app is stopped or crashed. Use the banner above to restart the app."})]}):r.length===0&&!f?d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center",children:[d.jsx(QS,{className:"h-12 w-12 text-muted-foreground/30 mb-4"}),d.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:h?"No users found":"No users registered yet"}),d.jsx("p",{className:"text-sm text-muted-foreground max-w-sm",children:h?`No users match "${h}". Try a different search term.`:"Use POST /api/auth/signup to register users."})]}):d.jsx(Rp,{data:r,columns:aw,loading:f,onRowClick:se}),N&&d.jsx("div",{className:"absolute top-0 right-0 h-full z-10 shadow-2xl animate-in slide-in-from-right duration-200",children:d.jsx(zp,{row:N,columns:nw,tableName:"user",onClose:()=>j(null),onDataChanged:F})})]}),d.jsxs("div",{className:"flex items-center justify-between border-t border-border px-4 py-2 bg-background",children:[d.jsx("span",{className:"text-xs text-muted-foreground",children:i===0?"No users":`${x*_+1}–${Math.min((x+1)*_,i)} of ${i}`}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs("span",{className:"text-xs text-muted-foreground",children:["Page ",x+1," of ",Math.max(ae,1)]}),d.jsxs("div",{className:"flex gap-1",children:[d.jsx(ze,{variant:"outline",size:"icon",className:"h-7 w-7 border-border",disabled:x===0,onClick:()=>v(q=>q-1),children:d.jsx(vp,{className:"h-3.5 w-3.5"})}),d.jsx(ze,{variant:"outline",size:"icon",className:"h-7 w-7 border-border",disabled:x+1>=ae,onClick:()=>v(q=>q+1),children:d.jsx(Yl,{className:"h-3.5 w-3.5"})})]})]})]})]})}function sw(a){const r=a.trim().split(/\s+/);if(r.length<5)return a;const[s,i,c,f,m]=r;if(s==="*"&&i==="*")return"Every minute";if(i==="*"&&s.startsWith("*/"))return`Every ${s.slice(2)} minutes`;if(s==="0"&&i==="*")return"Every hour";if(i.startsWith("*/"))return`Every ${i.slice(2)} hours`;if(s==="0"&&i==="0"&&c==="*"&&f==="*"&&m==="*")return"Daily at midnight";if(s==="0"&&c==="*"&&f==="*"&&m==="*")return`Daily at ${i}:00`;if(s!=="*"&&i!=="*"&&c==="*"&&f==="*"&&m==="*")return`Daily at ${i}:${s.padStart(2,"0")}`;if(m==="1-5"||m==="MON-FRI")return`Weekdays at ${i}:${s.padStart(2,"0")}`;const v={0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday",7:"Sunday",SUN:"Sunday",MON:"Monday",TUE:"Tuesday",WED:"Wednesday",THU:"Thursday",FRI:"Friday",SAT:"Saturday"}[m.toUpperCase()];return v&&c==="*"&&f==="*"?`Every ${v} at ${i}:${s.padStart(2,"0")}`:c==="1"&&f==="*"?`Monthly on the 1st at ${i}:${s.padStart(2,"0")}`:a}function iw(){const{apiBase:a}=Xt(),[r,s]=S.useState(null),{appStatus:i}=Ma(),[c,f]=S.useState(!1),m=S.useCallback(async()=>{if(i&&i!=="running"){f(!0);return}try{const x=await fetch(`${a}/_admin/scheduler`);if(!x.ok&&(x.status===502||x.status===503)){f(!0);return}if(!x.ok)return;s(await x.json()),f(!1)}catch(x){console.error("Failed to fetch scheduler:",x),f(!0)}},[a,i]);return S.useEffect(()=>{if(c||i&&i!=="running")return;m();const x=setInterval(m,5e3);return()=>clearInterval(x)},[m,c,i]),c||i&&i!=="running"?d.jsxs("div",{className:"flex h-full flex-col",children:[d.jsx("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Xn,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("h2",{className:"font-semibold text-foreground",children:"Scheduler"})]})}),d.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-center p-8",children:[d.jsx(Xn,{className:"h-12 w-12 text-amber-500/30 mb-4"}),d.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:"App is not running"}),d.jsx("p",{className:"text-sm text-muted-foreground max-w-sm",children:"Scheduler info is unavailable while the app is stopped or crashed. Use the banner above to restart the app."})]})]}):r?d.jsxs("div",{className:"flex h-full flex-col",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Xn,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("h2",{className:"font-semibold text-foreground",children:"Scheduler"})]}),d.jsx(ze,{variant:"ghost",size:"sm",onClick:m,className:"text-muted-foreground",children:d.jsx(_a,{className:"h-3.5 w-3.5"})})]}),d.jsxs("div",{className:"flex-1 overflow-auto p-4 space-y-6",children:[d.jsxs("div",{children:[d.jsxs("h3",{className:"text-sm font-medium text-muted-foreground mb-3 flex items-center gap-2",children:[d.jsx(GS,{className:"h-3.5 w-3.5"}),"Cron Jobs",d.jsx(Qe,{variant:"outline",className:"text-[10px]",children:r.crons.length})]}),d.jsxs("div",{className:"space-y-1",children:[r.crons.map((x,v)=>d.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md border border-border hover:bg-accent/50 transition-colors",children:[d.jsx(wp,{className:"h-3.5 w-3.5 text-green-500 shrink-0"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-mono font-medium truncate",children:x.name}),d.jsx("p",{className:"text-xs text-muted-foreground",children:sw(x.pattern)})]}),d.jsx(Qe,{variant:"secondary",className:"font-mono text-[10px] shrink-0",children:x.pattern})]},`${x.name}-${v}`)),r.crons.length===0&&d.jsxs("div",{className:"text-center text-muted-foreground py-8",children:[d.jsx(Y1,{className:"mx-auto h-10 w-10 mb-2 opacity-30"}),d.jsx("p",{className:"text-sm",children:"No cron jobs registered"}),d.jsx("p",{className:"text-xs mt-1",children:"Define cron jobs in gencow/crons.ts"})]})]})]}),d.jsxs("div",{children:[d.jsxs("h3",{className:"text-sm font-medium text-muted-foreground mb-3 flex items-center gap-2",children:[d.jsx(Xn,{className:"h-3.5 w-3.5"}),"Pending Scheduled Jobs",d.jsx(Qe,{variant:"outline",className:"text-[10px]",children:r.pendingJobs.length})]}),d.jsxs("div",{className:"space-y-1",children:[r.pendingJobs.map(x=>d.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md border border-border hover:bg-accent/50 transition-colors",children:[d.jsx(Xn,{className:"h-3.5 w-3.5 text-yellow-500 animate-pulse shrink-0"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-mono font-medium truncate",children:x.action}),d.jsxs("p",{className:"text-xs text-muted-foreground",children:["Scheduled for ",new Date(x.scheduledAt).toLocaleString()]})]}),d.jsx(Qe,{variant:"secondary",className:"text-[10px] shrink-0",children:(()=>{const v=new Date(x.scheduledAt).getTime()-Date.now();return v<0?"overdue":v<6e4?`${Math.round(v/1e3)}s`:v<36e5?`${Math.round(v/6e4)}m`:`${Math.round(v/36e5)}h`})()})]},x.id)),r.pendingJobs.length===0&&d.jsx("p",{className:"text-xs text-muted-foreground text-center py-4",children:"No pending scheduled jobs"})]})]})]})]}):null}function rw(){const[a,r]=S.useState([]),[s,i]=S.useState(!0),c=Xt(x=>x.apiBase),f=S.useCallback(async()=>{try{const x=await fetch(`${c}/_admin/settings/env-vars`);x.ok&&r(await x.json())}catch{}i(!1)},[c]);if(S.useEffect(()=>{f()},[f]),s)return d.jsx($2,{cards:2});const m=a.filter(x=>x.source==="env"||x.source==="both");return d.jsxs("div",{className:"space-y-3",children:[d.jsxs("div",{className:"flex items-start gap-2 text-xs bg-blue-500/10 border border-blue-500/20 rounded px-3 py-2 text-blue-600 dark:text-blue-400",children:[d.jsx(yS,{className:"h-3.5 w-3.5 mt-0.5 shrink-0"}),d.jsxs("div",{children:[d.jsx("span",{className:"font-medium",children:"읽기 전용"})," — 환경변수는"," ",d.jsx("code",{className:"bg-blue-500/10 px-1 py-0.5 rounded font-mono",children:".env"})," 파일을 직접 편집하세요. 클라우드에서는"," ",d.jsx("code",{className:"bg-blue-500/10 px-1 py-0.5 rounded font-mono",children:"gencow env set KEY=VALUE"})," 를 사용하세요."]})]}),m.length>0?d.jsxs("div",{className:"border border-border rounded-lg overflow-hidden",children:[d.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-muted/50 border-b border-border",children:[d.jsx(mS,{className:"h-3.5 w-3.5 text-muted-foreground"}),d.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:".env"})]}),d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"bg-muted/30 border-b border-border",children:[d.jsx("th",{className:"text-left px-3 py-2 font-medium text-muted-foreground text-xs",children:"Name"}),d.jsx("th",{className:"text-left px-3 py-2 font-medium text-muted-foreground text-xs",children:"Value"})]})}),d.jsx("tbody",{children:m.map(x=>d.jsxs("tr",{className:"border-b last:border-b-0 border-border",children:[d.jsx("td",{className:"px-3 py-2",children:d.jsx("code",{className:"text-xs font-mono bg-muted px-1.5 py-0.5 rounded",children:x.name})}),d.jsx("td",{className:"px-3 py-2",children:d.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:x.maskedValue})})]},x.name))})]})]}):d.jsx("div",{className:"text-xs text-muted-foreground text-center py-6 border border-dashed border-border rounded-lg",children:"No environment variables in .env file"})]})}function ow(a){if(!a||a==="unknown")return"Unknown";const r=a.match(/^(PostgreSQL|PGlite)\s*[\d.]+/i);return r?r[0]:a.split(" on ")[0]||a}const uw={vector:"bg-purple-500/15 text-purple-600",pg_search:"bg-blue-500/15 text-blue-600",pgmq:"bg-amber-500/15 text-amber-600",plpgsql:"bg-muted text-muted-foreground"};function cw({appStatus:a}={}){const{status:r,fetchStatus:s}=Xt(),i=Ma(),c=a||i.appStatus;if(S.useEffect(()=>{if(c&&c!=="running")return;s();const j=setInterval(s,5e3);return()=>clearInterval(j)},[s,c]),!r)return null;const f=r.memory,m=r.platform,x=Math.floor(r.uptime)||0,v=Math.floor(x/3600),h=Math.floor(x%3600/60),b=x%60,p=ow((m==null?void 0:m.dbVersion)||""),w=(m==null?void 0:m.extensions)||[],N=[{label:"Status",value:a==="crashed"?d.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[d.jsx("span",{className:"h-2 w-2 rounded-full bg-red-500"}),d.jsx("span",{className:"text-red-500 font-medium",children:"Crashed"})]}):a==="stopped"?d.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[d.jsx("span",{className:"h-2 w-2 rounded-full bg-muted-foreground"}),d.jsx("span",{className:"text-muted-foreground font-medium",children:"Stopped"})]}):a==="idle"?d.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[d.jsx("span",{className:"h-2 w-2 rounded-full bg-blue-400"}),d.jsx("span",{className:"text-blue-400 font-medium",children:"Idle"})]}):a==="failed"?d.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[d.jsx("span",{className:"h-2 w-2 rounded-full bg-orange-500"}),d.jsx("span",{className:"text-orange-500 font-medium",children:"Failed"})]}):d.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[d.jsx("span",{className:"h-2 w-2 rounded-full bg-green-500 animate-pulse"}),d.jsx("span",{className:"text-green-600 font-medium",children:"Running"})]})},{label:"Uptime",value:d.jsxs("span",{className:"font-mono",children:[v,"h ",h,"m ",b,"s"]})},{label:"Memory",value:d.jsxs("span",{children:[d.jsxs("span",{className:"font-mono",children:[Math.round(((f==null?void 0:f.rss)||0)/1024/1024)," MB"]}),d.jsxs("span",{className:"text-muted-foreground ml-2",children:["(Heap ",Math.round(((f==null?void 0:f.heapUsed)||0)/1024/1024)," MB)"]})]})},{label:"Runtime",value:d.jsx(Qe,{variant:"secondary",children:m==null?void 0:m.runtime})},{label:"Framework",value:d.jsxs("span",{children:[m==null?void 0:m.framework," + ",m==null?void 0:m.orm]})},{label:"Database",value:d.jsx("span",{children:p})},{label:"Extensions",value:w.length===0?d.jsx("span",{className:"text-muted-foreground",children:"No extensions"}):d.jsx("span",{className:"inline-flex flex-wrap gap-1",children:w.map(j=>d.jsxs(Qe,{variant:"secondary",className:uw[j.name]||"",children:[j.name," ",j.version]},j.name))})}];return d.jsxs("div",{className:"space-y-3",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(RS,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("h2",{className:"text-sm font-semibold text-foreground",children:"Server Status"})]}),d.jsx("div",{className:"rounded-lg border border-border overflow-hidden",children:d.jsx("table",{className:"w-full text-sm",children:d.jsx("tbody",{className:"divide-y divide-border",children:N.map(j=>d.jsxs("tr",{children:[d.jsx("td",{className:"px-4 py-2.5 text-muted-foreground w-28 whitespace-nowrap bg-muted/30",children:j.label}),d.jsx("td",{className:"px-4 py-2.5 text-foreground",children:j.value})]},j.label))})})})]})}function fc(a){if(a===0)return"0 B";const r=1024,s=["B","KB","MB","GB"],i=Math.floor(Math.log(a)/Math.log(r));return`${(a/Math.pow(r,i)).toFixed(1)} ${s[i]}`}function Sh(a){return a<1e3?`${a.toFixed(0)} ms`:a<6e4?`${(a/1e3).toFixed(1)} sec`:`${(a/6e4).toFixed(1)} min`}function Is(a){return a=Math.round(a),a>=1e6?`${(a/1e6).toFixed(1)}M`:a>=1e4?`${(a/1e3).toFixed(1)}K`:a.toLocaleString()}function wh(a){return a<1e3?`${a} tokens`:a<1e6?`${(a/1e3).toFixed(1)}K tokens`:`${(a/1e6).toFixed(2)}M tokens`}const dw=[{key:"apiCalls",label:"API Calls",icon:Kl,format:a=>`${a.toLocaleString()} calls`},{key:"functionMs",label:"Function Time",icon:Fl,format:Sh},{key:"realtimeMs",label:"Realtime",icon:Xn,format:Sh},{key:"dbStorageBytes",label:"DB Storage",icon:ja,format:fc},{key:"fileStorageBytes",label:"File Storage",icon:bp,format:fc},{key:"bandwidthBytes",label:"Bandwidth",icon:pp,format:fc},{key:"aiInputTokens",label:"AI Input",icon:fh,format:wh},{key:"aiOutputTokens",label:"AI Output",icon:fh,format:wh}],fw={apiCalls:"API Calls",functionMs:"Functions",realtimeMs:"Realtime",dbStorage:"DB Storage",fileStorage:"File Storage",bandwidth:"Bandwidth",ai:"AI",staticStorage:"Static Storage",staticBandwidth:"Static Bandwidth",staticRequests:"Static Requests"};function mw({showCredits:a=!0}={}){const{apiBase:r}=Ma(),[s,i]=S.useState(null),[c,f]=S.useState(!0),[m,x]=S.useState(null),v=S.useCallback(async()=>{f(!0);try{const h=await fetch(`${r}/_admin/usage`);if(!h.ok){let p;try{const w=await h.json();p=w.hint||w.error||`서버 오류 (${h.status})`}catch{p=h.status===502?"앱 서버에 연결할 수 없습니다. 앱이 실행 중인지 확인해주세요.":h.status===503?"앱 서버가 준비 중입니다. 잠시 후 다시 시도해주세요.":`서버 오류 (${h.status})`}i({available:!1,error:p});return}const b=await h.json();i(b),x(new Date)}catch{i({available:!1,error:"Failed to connect to server"})}finally{f(!1)}},[r]);return S.useEffect(()=>{v()},[v]),d.jsxs("div",{className:"flex h-full flex-col",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Vc,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("h2",{className:"font-semibold text-foreground",children:"Usage"})]}),d.jsx(ze,{variant:"ghost",size:"sm",onClick:v,disabled:c,className:"text-muted-foreground hover:text-foreground",children:d.jsx(_a,{className:`h-3.5 w-3.5 ${c?"animate-spin":""}`})})]}),d.jsx("div",{className:"flex-1 overflow-y-auto",children:d.jsxs("div",{className:"p-6 space-y-6 max-w-4xl",children:[c&&!s&&d.jsx("div",{className:"flex items-center justify-center py-12",children:d.jsx(_a,{className:"h-6 w-6 animate-spin text-muted-foreground"})}),s&&!s.available&&d.jsx(hw,{message:s.message||s.error}),s&&s.available&&d.jsxs(d.Fragment,{children:[d.jsx(gw,{appId:s.appId,apiBase:r}),a&&d.jsx(pw,{credits:s.credits,plan:s.plan,breakdown:s.breakdown,spendCap:s.spendCap}),s.period&&d.jsxs("div",{className:"text-xs text-muted-foreground",children:["Current Period: ",new Date(s.period.start).toLocaleDateString()," – ",new Date(s.period.end).toLocaleDateString()]}),d.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:dw.map(h=>{var w;const b=((w=s.usage)==null?void 0:w[h.key])||0,p=h.icon;return d.jsxs("div",{className:"rounded-lg border border-border bg-card p-4 space-y-1",children:[d.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[d.jsx(p,{className:"h-3.5 w-3.5"}),h.label]}),d.jsx("div",{className:"text-lg font-semibold text-foreground",children:h.format(b)})]},h.key)})}),s.breakdown&&d.jsx(vw,{breakdown:s.breakdown}),m&&d.jsxs("div",{className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[d.jsx(Xn,{className:"h-3 w-3"}),"Last updated: ",m.toLocaleTimeString()]})]})]})})]})}function gw({appId:a,apiBase:r}){var b;const i=r.includes("/_proxy/")?(b=r.split("/_proxy/")[1])==null?void 0:b.split("/")[0]:a,c=i?`https://${i}.gencow.app`:null,f=c?`${c}/api`:null,[m,x]=S.useState(null);function v(p,w){navigator.clipboard.writeText(p),x(w),setTimeout(()=>x(null),2e3)}const h=[{label:"App URL",value:c,key:"url"},{label:"API Endpoint",value:f,key:"api"},{label:"App ID",value:a||i,key:"id"}].filter(p=>p.value);return h.length===0?null:d.jsxs("div",{className:"rounded-lg border border-border bg-card p-5 space-y-3",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Np,{className:"h-4 w-4 text-primary"}),d.jsx("span",{className:"text-sm font-medium text-foreground",children:"Deploy Info"}),d.jsxs("div",{className:"ml-auto flex items-center gap-1.5",children:[d.jsx("div",{className:"h-2 w-2 rounded-full bg-emerald-500"}),d.jsx("span",{className:"text-xs text-emerald-500 font-medium",children:"Deployed"})]})]}),d.jsx("div",{className:"space-y-2",children:h.map(p=>d.jsxs("div",{className:"flex items-center justify-between rounded-md bg-muted/50 px-3 py-2",children:[d.jsxs("div",{className:"space-y-0.5 min-w-0 flex-1",children:[d.jsx("div",{className:"text-xs text-muted-foreground",children:p.label}),d.jsx("div",{className:"text-sm font-mono text-foreground truncate",children:p.key==="url"||p.key==="api"?d.jsx("a",{href:p.value,target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary transition-colors",children:p.value}):p.value})]}),d.jsx("button",{onClick:()=>v(p.value,p.key),className:"ml-2 shrink-0 rounded-md p-1.5 text-muted-foreground hover:bg-accent hover:text-foreground transition-colors",title:"Copy",children:m===p.key?d.jsx("span",{className:"text-xs text-emerald-500",children:"✓"}):d.jsx(Kl,{className:"h-3.5 w-3.5"})})]},p.key))})]})}function hw({message:a}){return d.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center space-y-4",children:[d.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-primary/10",children:d.jsx(Np,{className:"h-6 w-6 text-primary"})}),d.jsxs("div",{className:"space-y-1",children:[d.jsx("h3",{className:"font-medium text-foreground",children:"Usage Metering"}),d.jsx("p",{className:"text-sm text-muted-foreground max-w-xs",children:a||"Usage metering is available for deployed apps. Deploy with: gencow deploy"})]})]})}function pw({credits:a,plan:r,breakdown:s,spendCap:i}){if(!a)return null;const c=!a.total||a.total<=0,f=s?Object.values(s).reduce((b,p)=>b+p,0):0,m=Math.max(f,a.used),x=c?0:m/a.total*100,v=Math.max(0,100-x);let h="bg-emerald-500";return c||(v<20?h="bg-red-500":v<50&&(h="bg-amber-500")),d.jsxs("div",{className:"rounded-lg border border-border bg-card p-5 space-y-3",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Fl,{className:"h-4 w-4 text-primary"}),d.jsx("span",{className:"text-sm font-medium text-foreground",children:"Credits"})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[i&&d.jsxs("span",{className:`rounded-full px-2 py-0.5 text-xs font-medium ${i.enabled?"bg-amber-500/10 text-amber-600":"bg-emerald-500/10 text-emerald-600"}`,children:["Spend Cap ",i.enabled?"ON":"OFF"]}),r&&d.jsx("span",{className:"rounded-full bg-primary/10 px-2.5 py-0.5 text-xs font-medium text-primary",children:r})]})]}),d.jsxs("div",{className:"space-y-1.5",children:[!c&&d.jsx("div",{className:"h-2.5 w-full rounded-full bg-muted overflow-hidden",children:d.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${h}`,style:{width:`${Math.min(x,100)}%`}})}),d.jsxs("div",{className:"flex items-center justify-between text-xs",children:[d.jsxs("span",{className:"text-muted-foreground",children:[Is(m)," ",c?"cr used":`/ ${Is(a.total)} cr used`]}),d.jsx("span",{className:"font-medium text-foreground",children:c?"Unlimited":`${Is(Math.max(0,a.total-m))} cr remaining`})]})]})]})}function vw({breakdown:a}){const r=Object.entries(a).filter(([,c])=>c>0);if(r.length===0)return null;const s=r.reduce((c,[,f])=>c+f,0),i=Math.max(...r.map(([,c])=>c));return d.jsxs("div",{className:"rounded-lg border border-border bg-card p-5 space-y-3",children:[d.jsx("h3",{className:"text-sm font-medium text-foreground",children:"Credit Breakdown"}),d.jsx("div",{className:"space-y-2",children:r.sort(([,c],[,f])=>f-c).map(([c,f])=>d.jsxs("div",{className:"space-y-1",children:[d.jsxs("div",{className:"flex items-center justify-between text-xs",children:[d.jsx("span",{className:"text-muted-foreground",children:fw[c]||c}),d.jsxs("span",{className:"font-medium text-foreground",children:[Is(f)," cr"]})]}),d.jsx("div",{className:"h-1.5 w-full rounded-full bg-muted overflow-hidden",children:d.jsx("div",{className:"h-full rounded-full bg-primary/60 transition-all duration-500",style:{width:`${f/i*100}%`}})})]},c))}),d.jsxs("div",{className:"flex items-center justify-between border-t border-border pt-2 text-xs",children:[d.jsx("span",{className:"text-muted-foreground",children:"Total"}),d.jsxs("span",{className:"font-semibold text-foreground",children:[Is(s)," cr"]})]})]})}function xw({children:a,appStatus:r}={}){return d.jsxs("div",{className:"flex h-full flex-col",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Gc,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("h2",{className:"font-semibold text-foreground",children:"Settings"})]}),d.jsx("div",{className:"h-8","aria-hidden":"true"})]}),d.jsx("div",{className:"flex-1 overflow-y-auto",children:d.jsxs("div",{className:"p-6 space-y-6 max-w-4xl",children:[d.jsx(rw,{}),d.jsx(cw,{appStatus:r}),a,d.jsx(yw,{})]})})]})}function yw(){const[a,r]=S.useState(!1),[s,i]=S.useState(""),[c,f]=S.useState(!1),m=async()=>{f(!0);const x=Xt.getState().apiBase;try{const v=await fetch(`${x}/_admin/reset`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({confirm:"delete all data"})}),h=await v.json().catch(()=>({}));if(!v.ok){pt.error(h.error||"Reset failed");return}const b=Array.isArray(h.truncated)?h.truncated.length:0,p=h.seeded?" + seed executed":"";pt.success(`✅ ${b} tables truncated${p}`)}catch{pt.error("Failed to connect to server")}finally{f(!1),r(!1),i("")}};return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"rounded-lg border border-destructive/30 bg-destructive/5",children:d.jsx("div",{className:"p-5",children:d.jsxs("div",{className:"flex items-start gap-3",children:[d.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-md bg-destructive/10 text-destructive",children:d.jsx(gh,{className:"h-4.5 w-4.5"})}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("h3",{className:"text-sm font-semibold text-destructive",children:"Reset Database"}),d.jsxs("p",{className:"text-sm text-muted-foreground mt-1 leading-relaxed",children:["Truncate all user data tables and re-run"," ",d.jsx("code",{className:"bg-muted px-1 py-0.5 rounded text-xs font-mono",children:"seed.ts"}),". System tables (auth, files) are preserved."," ",d.jsx("span",{className:"text-destructive font-medium",children:"This action cannot be undone."})]})]}),d.jsx(ze,{variant:"destructive",size:"sm",onClick:()=>r(!0),className:"shrink-0",children:"Reset DB"})]})})}),a&&d.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[d.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:()=>{r(!1),i("")}}),d.jsx("div",{className:"relative z-10 w-full max-w-md mx-4 rounded-lg border border-border bg-background shadow-2xl animate-in fade-in zoom-in-95 duration-200",children:d.jsxs("div",{className:"p-6 space-y-4",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-destructive/10",children:d.jsx(gh,{className:"h-5 w-5 text-destructive"})}),d.jsxs("div",{children:[d.jsx("h3",{className:"text-base font-semibold text-foreground",children:"Are you absolutely sure?"}),d.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:"This will permanently delete all data in user tables."})]})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsxs("label",{className:"text-sm text-muted-foreground",children:["Type"," ",d.jsx("span",{className:"font-mono font-semibold text-foreground px-1 py-0.5 bg-muted rounded",children:"delete all data"})," ","to confirm:"]}),d.jsx("input",{type:"text",value:s,onChange:x=>i(x.target.value),placeholder:"delete all data",className:"w-full rounded-md border border-border bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground/50 focus:outline-none focus:ring-2 focus:ring-destructive/50 focus:border-destructive",autoFocus:!0,onKeyDown:x=>{x.key==="Enter"&&s==="delete all data"&&m(),x.key==="Escape"&&(r(!1),i(""))}})]}),d.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[d.jsx(ze,{variant:"ghost",size:"sm",onClick:()=>{r(!1),i("")},children:"Cancel"}),d.jsx(ze,{variant:"destructive",size:"sm",disabled:s!=="delete all data"||c,onClick:m,children:c?"Resetting...":"I understand, reset database"})]})]})})]})]})}const Tp=S.createContext(void 0),Nh="gencow-theme";function Ap(){return typeof window>"u"||window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function mc(a){return a==="system"?Ap():a}function gc(a){const r=document.documentElement;r.classList.remove("light","dark"),r.classList.add(a)}function bw({children:a,defaultTheme:r="dark"}){const[s,i]=S.useState(()=>typeof window>"u"?r:localStorage.getItem(Nh)||r),[c,f]=S.useState(()=>mc(s)),m=S.useCallback(x=>{i(x),localStorage.setItem(Nh,x);const v=mc(x);f(v),gc(v)},[]);return S.useEffect(()=>{const x=mc(s);if(f(x),gc(x),s==="system"){const v=window.matchMedia("(prefers-color-scheme: dark)"),h=()=>{const b=Ap();f(b),gc(b)};return v.addEventListener("change",h),()=>v.removeEventListener("change",h)}},[s]),d.jsx(Tp.Provider,{value:{theme:s,setTheme:m,resolvedTheme:c},children:a})}function Dp(){const a=S.useContext(Tp);if(!a)throw new Error("useTheme must be used within a ThemeProvider");return a}function Sw(){const{theme:a,setTheme:r}=Dp();return d.jsx(ze,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>r(a==="dark"?"light":"dark"),title:a==="dark"?"Switch to light mode":"Switch to dark mode",children:a==="dark"?d.jsx(LS,{className:"h-4 w-4"}):d.jsx(_S,{className:"h-4 w-4"})})}const ww=[{path:"/usage",label:"Usage",icon:Vc},{path:"/data",label:"Data",icon:ja},{path:"/functions",label:"Functions",icon:Ca},{path:"/logs",label:"Logs",icon:Ps},{path:"/files",label:"File Storage",icon:zr},{path:"/scheduler",label:"Scheduler",icon:Xn},{path:"/auth",label:"Auth",icon:jp},{path:"/hosting",label:"Hosting",icon:Kl,cloudOnly:!0},{path:"/backups",label:"Backups",icon:bp,cloudOnly:!0},{path:"/settings",label:"Settings",icon:Gc}];function Nw({basePath:a="",hideLogo:r=!1,isCloud:s}){const i=hn().pathname,c=s??r,f=ww.filter(m=>!m.cloudOnly||c);return d.jsxs("aside",{className:Ee("flex flex-col bg-card",r?"flex-1":"h-screen w-60 border-r border-border"),children:[!r&&d.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-4 h-12",children:[d.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-primary",children:d.jsx(Fl,{className:"h-4 w-4 text-primary-foreground"})}),d.jsxs("div",{children:[d.jsx("h1",{className:"text-sm font-bold",children:"Gencow"}),d.jsx("p",{className:"text-xs text-muted-foreground",children:"Dashboard"})]})]}),d.jsx("nav",{className:"flex flex-1 flex-col gap-1 p-2",children:f.map(m=>{const x=`${a}${m.path}`,v=i.startsWith(x),h=m.icon;return d.jsxs(Dc,{to:x,className:Ee("flex items-center gap-3 rounded-md px-3 py-2 text-sm transition-colors",v?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:[d.jsx(h,{className:"h-4 w-4"}),m.label]},m.path)})}),d.jsxs("div",{className:"border-t border-border p-3 space-y-2",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[d.jsx("div",{className:"h-2 w-2 rounded-full bg-green-500"}),"Connected"]}),d.jsx(Sw,{})]}),d.jsxs("button",{onClick:()=>window.dispatchEvent(new KeyboardEvent("keydown",{key:"k",metaKey:!0})),className:"flex w-full items-center gap-2 rounded-md border border-border px-2.5 py-1.5 text-xs text-muted-foreground hover:bg-accent hover:text-foreground transition-colors",children:[d.jsx($c,{className:"h-3 w-3"}),d.jsx("span",{className:"flex-1 text-left",children:"Search..."}),d.jsx("kbd",{className:"rounded border border-border bg-muted px-1 text-[10px]",children:"⌘K"})]})]})]})}const Ch=[{id:"data",label:"Go to Data",icon:ja,href:"/data",group:"Navigation"},{id:"functions",label:"Go to Functions",icon:Ca,href:"/functions",group:"Navigation"},{id:"logs",label:"Go to Logs",icon:Ps,href:"/logs",group:"Navigation"},{id:"files",label:"Go to File Storage",icon:zr,href:"/files",group:"Navigation"},{id:"scheduler",label:"Go to Scheduler",icon:Xn,href:"/scheduler",group:"Navigation"},{id:"auth",label:"Go to Auth",icon:jp,href:"/auth",group:"Navigation"},{id:"usage",label:"Go to Usage",icon:Vc,href:"/usage",group:"Navigation"},{id:"settings",label:"Go to Settings",icon:Gc,href:"/settings",group:"Navigation"}];function Cw(){const[a,r]=S.useState(!1),[s,i]=S.useState(""),[c,f]=S.useState(0),m=S.useRef(null),x=ti();S.useEffect(()=>{function w(N){(N.metaKey||N.ctrlKey)&&N.key==="k"&&(N.preventDefault(),r(j=>!j)),N.key==="Escape"&&r(!1)}return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[]),S.useEffect(()=>{a&&(i(""),f(0),setTimeout(()=>{var w;return(w=m.current)==null?void 0:w.focus()},50))},[a]);const v=S.useMemo(()=>{if(!s.trim())return Ch;const w=s.toLowerCase();return Ch.filter(N=>N.label.toLowerCase().includes(w)||N.id.toLowerCase().includes(w))},[s]);S.useEffect(()=>{f(0)},[v.length]);const h=S.useCallback(w=>{r(!1),w.href&&x(w.href)},[x]);function b(w){w.key==="ArrowDown"?(w.preventDefault(),f(N=>Math.min(N+1,v.length-1))):w.key==="ArrowUp"?(w.preventDefault(),f(N=>Math.max(N-1,0))):w.key==="Enter"&&v[c]&&(w.preventDefault(),h(v[c]))}if(!a)return null;const p=new Map;for(const w of v){const N=p.get(w.group)||[];N.push(w),p.set(w.group,N)}return d.jsxs("div",{className:"fixed inset-0 z-[100] flex items-start justify-center pt-[20vh]",onClick:()=>r(!1),children:[d.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm"}),d.jsxs("div",{className:"relative w-full max-w-lg rounded-xl border border-border bg-card shadow-2xl overflow-hidden",onClick:w=>w.stopPropagation(),children:[d.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-4 py-3",children:[d.jsx($c,{className:"h-4 w-4 text-muted-foreground shrink-0"}),d.jsx("input",{ref:m,value:s,onChange:w=>i(w.target.value),onKeyDown:b,placeholder:"Type a command or search...",className:"flex-1 bg-transparent text-sm text-foreground placeholder:text-muted-foreground focus:outline-none",spellCheck:!1}),d.jsx("kbd",{className:"hidden sm:inline-flex items-center gap-0.5 rounded border border-border bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground",children:"ESC"})]}),d.jsxs("div",{className:"max-h-72 overflow-auto p-2",children:[v.length===0&&d.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"No results found"}),Array.from(p.entries()).map(([w,N])=>d.jsxs("div",{children:[d.jsx("div",{className:"px-2 py-1.5 text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:w}),N.map(j=>{const _=v.indexOf(j),D=j.icon;return d.jsxs("button",{className:Ee("flex w-full items-center gap-3 rounded-md px-3 py-2 text-sm transition-colors",_===c?"bg-primary/10 text-primary":"text-foreground hover:bg-accent"),onClick:()=>h(j),onMouseEnter:()=>f(_),children:[d.jsx(D,{className:"h-4 w-4 shrink-0"}),d.jsx("span",{children:j.label})]},j.id)})]},w))]}),d.jsxs("div",{className:"flex items-center justify-between border-t border-border px-4 py-2 text-[10px] text-muted-foreground",children:[d.jsx("span",{children:"↑↓ Navigate"}),d.jsx("span",{children:"↵ Select"}),d.jsx("span",{children:"ESC Close"})]})]})]})}function jw(){const{resolvedTheme:a}=Dp();return d.jsxs("div",{className:"flex h-screen bg-background text-foreground",children:[d.jsx(Nw,{}),d.jsx("main",{className:"flex-1 overflow-hidden",children:d.jsx(Wx,{})}),d.jsx(Cw,{}),d.jsx(N2,{theme:a,position:"bottom-right",richColors:!0,closeButton:!0,style:{zIndex:50},toastOptions:{style:{background:"var(--card)",border:"1px solid var(--border)",color:"var(--foreground)",opacity:1}}})]})}function Rw(){return d.jsx(ey,{children:d.jsxs(fn,{element:d.jsx(jw,{}),children:[d.jsx(fn,{index:!0,element:d.jsx(Ix,{to:"/data",replace:!0})}),d.jsx(fn,{path:"data",element:d.jsx(L2,{})}),d.jsx(fn,{path:"functions",element:d.jsx(q2,{})}),d.jsx(fn,{path:"logs",element:d.jsx(P2,{})}),d.jsx(fn,{path:"files",element:d.jsx(tw,{})}),d.jsx(fn,{path:"scheduler",element:d.jsx(iw,{})}),d.jsx(fn,{path:"auth",element:d.jsx(lw,{})}),d.jsx(fn,{path:"settings",element:d.jsx(xw,{})}),d.jsx(fn,{path:"usage",element:d.jsx(mw,{})})]})})}Pv.createRoot(document.getElementById("root")).render(d.jsx(S.StrictMode,{children:d.jsx(jy,{basename:"/_dashboard",children:d.jsx(bw,{defaultTheme:"dark",children:d.jsx(Rw,{})})})}));
371
+ */const KS=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Fl=ye("zap",KS);function Ep({data:a,columns:r,loading:s=!1,onRowClick:i,onCellClick:c,rowKeyField:f="id",className:m}){const[x,v]=S.useState([]),[h]=S.useState("onChange"),b=S.useMemo(()=>r.map(N=>({accessorKey:N.accessorKey,header:({column:j})=>{const _=j.getIsSorted();return d.jsxs("button",{className:Ee("flex items-center gap-1 text-xs font-semibold select-none",N.enableSorting!==!1&&"cursor-pointer hover:text-foreground"),onClick:()=>{N.enableSorting!==!1&&j.toggleSorting()},title:N.headerTooltip,children:[N.header,N.enableSorting!==!1&&(_==="asc"?d.jsx(V1,{className:"h-3 w-3"}):_==="desc"?d.jsx(pp,{className:"h-3 w-3"}):d.jsx(vp,{className:"h-3 w-3 opacity-30"}))]})},cell:N.cell?N.cell:j=>{const _=j.getValue();return _==null?d.jsx("span",{className:"text-muted-foreground italic",children:"null"}):typeof _=="boolean"?d.jsx("span",{className:_?"text-green-500":"text-red-500",children:_?"true":"false"}):d.jsx("span",{className:"block truncate",children:String(_)})},size:N.minWidth||150,minSize:N.minWidth||80,maxSize:N.maxWidth||400,enableSorting:N.enableSorting!==!1,enableResizing:!0,meta:{cellClassName:N.cellClassName}})),[r]),p=Hb({data:a,columns:b,state:{sorting:x},onSortingChange:v,getCoreRowModel:Tb(),getSortedRowModel:Ab(),columnResizeMode:h,enableColumnResizing:!0}),w=S.useCallback((N,j)=>{const _=r.find(D=>D.accessorKey===N);return _!=null&&_.cellClassName?typeof _.cellClassName=="function"?_.cellClassName(j):_.cellClassName:""},[r]);return d.jsxs("div",{className:Ee("relative h-full overflow-auto",m),children:[s&&d.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-background/60",children:d.jsx(wp,{className:"h-5 w-5 animate-spin text-muted-foreground"})}),d.jsxs(R1,{className:"table-fixed",children:[d.jsx(E1,{className:"sticky top-0 z-[5] bg-muted/80 backdrop-blur-sm",children:p.getHeaderGroups().map(N=>d.jsx(dc,{className:"border-b border-border hover:bg-transparent",children:N.headers.map(j=>d.jsxs(M1,{className:"text-muted-foreground text-xs px-3 py-2.5 relative select-none",style:{width:j.getSize(),minWidth:j.column.columnDef.minSize,maxWidth:j.column.columnDef.maxSize},children:[j.isPlaceholder?null:ah(j.column.columnDef.header,j.getContext()),d.jsx("div",{onMouseDown:j.getResizeHandler(),onTouchStart:j.getResizeHandler(),className:Ee("absolute right-0 top-0 h-full w-1 cursor-col-resize select-none touch-none","hover:bg-primary/40 active:bg-primary/60",j.column.getIsResizing()&&"bg-primary/60")})]},j.id))},N.id))}),d.jsx(_1,{children:p.getRowModel().rows.length===0&&!s?d.jsx(dc,{children:d.jsx(ch,{colSpan:b.length,className:"h-24 text-center text-muted-foreground",children:"No data"})}):p.getRowModel().rows.map((N,j)=>d.jsx(dc,{className:Ee("border-b border-border transition-colors",j%2===1&&"bg-muted/30",i&&"cursor-pointer"),onClick:()=>i==null?void 0:i(N.original),children:N.getVisibleCells().map(_=>{const D=_.column.id,A=_.getValue(),Z=w(D,A);return d.jsx(ch,{className:Ee("px-3 py-2.5 text-xs overflow-hidden text-ellipsis",Z),style:{width:_.column.getSize(),minWidth:_.column.columnDef.minSize,maxWidth:_.column.columnDef.maxSize},onClick:F=>{c==null||c(N.original,D,F)},children:ah(_.column.columnDef.cell,_.getContext())},_.id)})},N.original[f]??j))})]})]})}function JS(a){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",r.appendChild(s),s.styleSheet?s.styleSheet.cssText=a:s.appendChild(document.createTextNode(a))}const IS=a=>{switch(a){case"success":return e2;case"info":return n2;case"warning":return t2;case"error":return a2;default:return null}},WS=Array(12).fill(0),PS=({visible:a,className:r})=>ee.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":a},ee.createElement("div",{className:"sonner-spinner"},WS.map((s,i)=>ee.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),e2=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),t2=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),n2=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("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 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),a2=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),l2=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ee.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ee.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),s2=()=>{const[a,r]=ee.useState(document.hidden);return ee.useEffect(()=>{const s=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",s),()=>window.removeEventListener("visibilitychange",s)},[]),a};let jc=1;class i2{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{const s=this.subscribers.indexOf(r);this.subscribers.splice(s,1)}),this.publish=r=>{this.subscribers.forEach(s=>s(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var s;const{message:i,...c}=r,f=typeof(r==null?void 0:r.id)=="number"||((s=r.id)==null?void 0:s.length)>0?r.id:jc++,m=this.toasts.find(v=>v.id===f),x=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(f)&&this.dismissedToasts.delete(f),m?this.toasts=this.toasts.map(v=>v.id===f?(this.publish({...v,...r,id:f,title:i}),{...v,...r,id:f,dismissible:x,title:i}):v):this.addToast({title:i,...c,dismissible:x,id:f}),f},this.dismiss=r=>(r?(this.dismissedToasts.add(r),requestAnimationFrame(()=>this.subscribers.forEach(s=>s({id:r,dismiss:!0})))):this.toasts.forEach(s=>{this.subscribers.forEach(i=>i({id:s.id,dismiss:!0}))}),r),this.message=(r,s)=>this.create({...s,message:r}),this.error=(r,s)=>this.create({...s,message:r,type:"error"}),this.success=(r,s)=>this.create({...s,type:"success",message:r}),this.info=(r,s)=>this.create({...s,type:"info",message:r}),this.warning=(r,s)=>this.create({...s,type:"warning",message:r}),this.loading=(r,s)=>this.create({...s,type:"loading",message:r}),this.promise=(r,s)=>{if(!s)return;let i;s.loading!==void 0&&(i=this.create({...s,promise:r,type:"loading",message:s.loading,description:typeof s.description!="function"?s.description:void 0}));const c=Promise.resolve(r instanceof Function?r():r);let f=i!==void 0,m;const x=c.then(async h=>{if(m=["resolve",h],ee.isValidElement(h))f=!1,this.create({id:i,type:"default",message:h});else if(o2(h)&&!h.ok){f=!1;const p=typeof s.error=="function"?await s.error(`HTTP error! status: ${h.status}`):s.error,w=typeof s.description=="function"?await s.description(`HTTP error! status: ${h.status}`):s.description,j=typeof p=="object"&&!ee.isValidElement(p)?p:{message:p};this.create({id:i,type:"error",description:w,...j})}else if(h instanceof Error){f=!1;const p=typeof s.error=="function"?await s.error(h):s.error,w=typeof s.description=="function"?await s.description(h):s.description,j=typeof p=="object"&&!ee.isValidElement(p)?p:{message:p};this.create({id:i,type:"error",description:w,...j})}else if(s.success!==void 0){f=!1;const p=typeof s.success=="function"?await s.success(h):s.success,w=typeof s.description=="function"?await s.description(h):s.description,j=typeof p=="object"&&!ee.isValidElement(p)?p:{message:p};this.create({id:i,type:"success",description:w,...j})}}).catch(async h=>{if(m=["reject",h],s.error!==void 0){f=!1;const b=typeof s.error=="function"?await s.error(h):s.error,p=typeof s.description=="function"?await s.description(h):s.description,N=typeof b=="object"&&!ee.isValidElement(b)?b:{message:b};this.create({id:i,type:"error",description:p,...N})}}).finally(()=>{f&&(this.dismiss(i),i=void 0),s.finally==null||s.finally.call(s)}),v=()=>new Promise((h,b)=>x.then(()=>m[0]==="reject"?b(m[1]):h(m[1])).catch(b));return typeof i!="string"&&typeof i!="number"?{unwrap:v}:Object.assign(i,{unwrap:v})},this.custom=(r,s)=>{const i=(s==null?void 0:s.id)||jc++;return this.create({jsx:r(i),id:i,...s}),i},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ut=new i2,r2=(a,r)=>{const s=(r==null?void 0:r.id)||jc++;return Ut.addToast({title:a,...r,id:s}),s},o2=a=>a&&typeof a=="object"&&"ok"in a&&typeof a.ok=="boolean"&&"status"in a&&typeof a.status=="number",u2=r2,c2=()=>Ut.toasts,d2=()=>Ut.getActiveToasts(),pt=Object.assign(u2,{success:Ut.success,info:Ut.info,warning:Ut.warning,error:Ut.error,custom:Ut.custom,message:Ut.message,promise:Ut.promise,dismiss:Ut.dismiss,loading:Ut.loading},{getHistory:c2,getToasts:d2});JS("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Cr(a){return a.label!==void 0}const f2=3,m2="24px",g2="16px",hh=4e3,h2=356,p2=14,v2=45,x2=200;function wn(...a){return a.filter(Boolean).join(" ")}function y2(a){const[r,s]=a.split("-"),i=[];return r&&i.push(r),s&&i.push(s),i}const b2=a=>{var r,s,i,c,f,m,x,v,h;const{invert:b,toast:p,unstyled:w,interacting:N,setHeights:j,visibleToasts:_,heights:D,index:A,toasts:Z,expanded:F,removeToast:se,defaultRichColors:ae,closeButton:q,style:W,cancelButtonStyle:J,actionButtonStyle:K,className:te="",descriptionClassName:fe="",duration:Y,position:P,gap:de,expandByDefault:re,classNames:M,icons:G,closeButtonAriaLabel:le="Close toast"}=a,[me,I]=ee.useState(null),[R,z]=ee.useState(null),[U,X]=ee.useState(!1),[Q,ne]=ee.useState(!1),[ve,pe]=ee.useState(!1),[he,wt]=ee.useState(!1),[ut,ct]=ee.useState(!1),[Zn,vt]=ee.useState(0),[Jl,nl]=ee.useState(0),Ta=ee.useRef(p.duration||Y||hh),Il=ee.useRef(null),Bt=ee.useRef(null),Wl=A===0,Pl=A+1<=_,Nt=p.type,Kn=p.dismissible!==!1,Ct=p.className||"",kr=p.descriptionClassName||"",Aa=ee.useMemo(()=>D.findIndex(we=>we.toastId===p.id)||0,[D,p.id]),ai=ee.useMemo(()=>{var we;return(we=p.closeButton)!=null?we:q},[p.closeButton,q]),Da=ee.useMemo(()=>p.duration||Y||hh,[p.duration,Y]),es=ee.useRef(0),Cn=ee.useRef(0),li=ee.useRef(0),Jn=ee.useRef(null),[Oa,jt]=P.split("-"),rn=ee.useMemo(()=>D.reduce((we,Fe,it)=>it>=Aa?we:we+Fe.height,0),[D,Aa]),xt=s2(),Hr=p.invert||b,ts=Nt==="loading";Cn.current=ee.useMemo(()=>Aa*de+rn,[Aa,rn]),ee.useEffect(()=>{Ta.current=Da},[Da]),ee.useEffect(()=>{X(!0)},[]),ee.useEffect(()=>{const we=Bt.current;if(we){const Fe=we.getBoundingClientRect().height;return nl(Fe),j(it=>[{toastId:p.id,height:Fe,position:p.position},...it]),()=>j(it=>it.filter(yt=>yt.toastId!==p.id))}},[j,p.id]),ee.useLayoutEffect(()=>{if(!U)return;const we=Bt.current,Fe=we.style.height;we.style.height="auto";const it=we.getBoundingClientRect().height;we.style.height=Fe,nl(it),j(yt=>yt.find(Ke=>Ke.toastId===p.id)?yt.map(Ke=>Ke.toastId===p.id?{...Ke,height:it}:Ke):[{toastId:p.id,height:it,position:p.position},...yt])},[U,p.title,p.description,j,p.id,p.jsx,p.action,p.cancel]);const pn=ee.useCallback(()=>{ne(!0),vt(Cn.current),j(we=>we.filter(Fe=>Fe.toastId!==p.id)),setTimeout(()=>{se(p)},x2)},[p,se,j,Cn]);ee.useEffect(()=>{if(p.promise&&Nt==="loading"||p.duration===1/0||p.type==="loading")return;let we;return F||N||xt?(()=>{if(li.current<es.current){const yt=new Date().getTime()-es.current;Ta.current=Ta.current-yt}li.current=new Date().getTime()})():(()=>{Ta.current!==1/0&&(es.current=new Date().getTime(),we=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),pn()},Ta.current))})(),()=>clearTimeout(we)},[F,N,p,Nt,xt,pn]),ee.useEffect(()=>{p.delete&&(pn(),p.onDismiss==null||p.onDismiss.call(p,p))},[pn,p.delete]);function al(){var we;if(G!=null&&G.loading){var Fe;return ee.createElement("div",{className:wn(M==null?void 0:M.loader,p==null||(Fe=p.classNames)==null?void 0:Fe.loader,"sonner-loader"),"data-visible":Nt==="loading"},G.loading)}return ee.createElement(PS,{className:wn(M==null?void 0:M.loader,p==null||(we=p.classNames)==null?void 0:we.loader),visible:Nt==="loading"})}const ll=p.icon||(G==null?void 0:G[Nt])||IS(Nt);var ka,vn;return ee.createElement("li",{tabIndex:0,ref:Bt,className:wn(te,Ct,M==null?void 0:M.toast,p==null||(r=p.classNames)==null?void 0:r.toast,M==null?void 0:M.default,M==null?void 0:M[Nt],p==null||(s=p.classNames)==null?void 0:s[Nt]),"data-sonner-toast":"","data-rich-colors":(ka=p.richColors)!=null?ka:ae,"data-styled":!(p.jsx||p.unstyled||w),"data-mounted":U,"data-promise":!!p.promise,"data-swiped":ut,"data-removed":Q,"data-visible":Pl,"data-y-position":Oa,"data-x-position":jt,"data-index":A,"data-front":Wl,"data-swiping":ve,"data-dismissible":Kn,"data-type":Nt,"data-invert":Hr,"data-swipe-out":he,"data-swipe-direction":R,"data-expanded":!!(F||re&&U),"data-testid":p.testId,style:{"--index":A,"--toasts-before":A,"--z-index":Z.length-A,"--offset":`${Q?Zn:Cn.current}px`,"--initial-height":re?"auto":`${Jl}px`,...W,...p.style},onDragEnd:()=>{pe(!1),I(null),Jn.current=null},onPointerDown:we=>{we.button!==2&&(ts||!Kn||(Il.current=new Date,vt(Cn.current),we.target.setPointerCapture(we.pointerId),we.target.tagName!=="BUTTON"&&(pe(!0),Jn.current={x:we.clientX,y:we.clientY})))},onPointerUp:()=>{var we,Fe,it;if(he||!Kn)return;Jn.current=null;const yt=Number(((we=Bt.current)==null?void 0:we.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),In=Number(((Fe=Bt.current)==null?void 0:Fe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ke=new Date().getTime()-((it=Il.current)==null?void 0:it.getTime()),Et=me==="x"?yt:In,Ha=Math.abs(Et)/Ke;if(Math.abs(Et)>=v2||Ha>.11){vt(Cn.current),p.onDismiss==null||p.onDismiss.call(p,p),z(me==="x"?yt>0?"right":"left":In>0?"down":"up"),pn(),wt(!0);return}else{var _t,Mt;(_t=Bt.current)==null||_t.style.setProperty("--swipe-amount-x","0px"),(Mt=Bt.current)==null||Mt.style.setProperty("--swipe-amount-y","0px")}ct(!1),pe(!1),I(null)},onPointerMove:we=>{var Fe,it,yt;if(!Jn.current||!Kn||((Fe=window.getSelection())==null?void 0:Fe.toString().length)>0)return;const Ke=we.clientY-Jn.current.y,Et=we.clientX-Jn.current.x;var Ha;const _t=(Ha=a.swipeDirections)!=null?Ha:y2(P);!me&&(Math.abs(Et)>1||Math.abs(Ke)>1)&&I(Math.abs(Et)>Math.abs(Ke)?"x":"y");let Mt={x:0,y:0};const sl=on=>1/(1.5+Math.abs(on)/20);if(me==="y"){if(_t.includes("top")||_t.includes("bottom"))if(_t.includes("top")&&Ke<0||_t.includes("bottom")&&Ke>0)Mt.y=Ke;else{const on=Ke*sl(Ke);Mt.y=Math.abs(on)<Math.abs(Ke)?on:Ke}}else if(me==="x"&&(_t.includes("left")||_t.includes("right")))if(_t.includes("left")&&Et<0||_t.includes("right")&&Et>0)Mt.x=Et;else{const on=Et*sl(Et);Mt.x=Math.abs(on)<Math.abs(Et)?on:Et}(Math.abs(Mt.x)>0||Math.abs(Mt.y)>0)&&ct(!0),(it=Bt.current)==null||it.style.setProperty("--swipe-amount-x",`${Mt.x}px`),(yt=Bt.current)==null||yt.style.setProperty("--swipe-amount-y",`${Mt.y}px`)}},ai&&!p.jsx&&Nt!=="loading"?ee.createElement("button",{"aria-label":le,"data-disabled":ts,"data-close-button":!0,onClick:ts||!Kn?()=>{}:()=>{pn(),p.onDismiss==null||p.onDismiss.call(p,p)},className:wn(M==null?void 0:M.closeButton,p==null||(i=p.classNames)==null?void 0:i.closeButton)},(vn=G==null?void 0:G.close)!=null?vn:l2):null,(Nt||p.icon||p.promise)&&p.icon!==null&&((G==null?void 0:G[Nt])!==null||p.icon)?ee.createElement("div",{"data-icon":"",className:wn(M==null?void 0:M.icon,p==null||(c=p.classNames)==null?void 0:c.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||al():null,p.type!=="loading"?ll:null):null,ee.createElement("div",{"data-content":"",className:wn(M==null?void 0:M.content,p==null||(f=p.classNames)==null?void 0:f.content)},ee.createElement("div",{"data-title":"",className:wn(M==null?void 0:M.title,p==null||(m=p.classNames)==null?void 0:m.title)},p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title),p.description?ee.createElement("div",{"data-description":"",className:wn(fe,kr,M==null?void 0:M.description,p==null||(x=p.classNames)==null?void 0:x.description)},typeof p.description=="function"?p.description():p.description):null),ee.isValidElement(p.cancel)?p.cancel:p.cancel&&Cr(p.cancel)?ee.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||J,onClick:we=>{Cr(p.cancel)&&Kn&&(p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,we),pn())},className:wn(M==null?void 0:M.cancelButton,p==null||(v=p.classNames)==null?void 0:v.cancelButton)},p.cancel.label):null,ee.isValidElement(p.action)?p.action:p.action&&Cr(p.action)?ee.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||K,onClick:we=>{Cr(p.action)&&(p.action.onClick==null||p.action.onClick.call(p.action,we),!we.defaultPrevented&&pn())},className:wn(M==null?void 0:M.actionButton,p==null||(h=p.classNames)==null?void 0:h.actionButton)},p.action.label):null)};function ph(){if(typeof window>"u"||typeof document>"u")return"ltr";const a=document.documentElement.getAttribute("dir");return a==="auto"||!a?window.getComputedStyle(document.documentElement).direction:a}function S2(a,r){const s={};return[a,r].forEach((i,c)=>{const f=c===1,m=f?"--mobile-offset":"--offset",x=f?g2:m2;function v(h){["top","right","bottom","left"].forEach(b=>{s[`${m}-${b}`]=typeof h=="number"?`${h}px`:h})}typeof i=="number"||typeof i=="string"?v(i):typeof i=="object"?["top","right","bottom","left"].forEach(h=>{i[h]===void 0?s[`${m}-${h}`]=x:s[`${m}-${h}`]=typeof i[h]=="number"?`${i[h]}px`:i[h]}):v(x)}),s}const w2=ee.forwardRef(function(r,s){const{id:i,invert:c,position:f="bottom-right",hotkey:m=["altKey","KeyT"],expand:x,closeButton:v,className:h,offset:b,mobileOffset:p,theme:w="light",richColors:N,duration:j,style:_,visibleToasts:D=f2,toastOptions:A,dir:Z=ph(),gap:F=p2,icons:se,containerAriaLabel:ae="Notifications"}=r,[q,W]=ee.useState([]),J=ee.useMemo(()=>i?q.filter(U=>U.toasterId===i):q.filter(U=>!U.toasterId),[q,i]),K=ee.useMemo(()=>Array.from(new Set([f].concat(J.filter(U=>U.position).map(U=>U.position)))),[J,f]),[te,fe]=ee.useState([]),[Y,P]=ee.useState(!1),[de,re]=ee.useState(!1),[M,G]=ee.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),le=ee.useRef(null),me=m.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=ee.useRef(null),R=ee.useRef(!1),z=ee.useCallback(U=>{W(X=>{var Q;return(Q=X.find(ne=>ne.id===U.id))!=null&&Q.delete||Ut.dismiss(U.id),X.filter(({id:ne})=>ne!==U.id)})},[]);return ee.useEffect(()=>Ut.subscribe(U=>{if(U.dismiss){requestAnimationFrame(()=>{W(X=>X.map(Q=>Q.id===U.id?{...Q,delete:!0}:Q))});return}setTimeout(()=>{Uy.flushSync(()=>{W(X=>{const Q=X.findIndex(ne=>ne.id===U.id);return Q!==-1?[...X.slice(0,Q),{...X[Q],...U},...X.slice(Q+1)]:[U,...X]})})})}),[q]),ee.useEffect(()=>{if(w!=="system"){G(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?G("dark"):G("light")),typeof window>"u")return;const U=window.matchMedia("(prefers-color-scheme: dark)");try{U.addEventListener("change",({matches:X})=>{G(X?"dark":"light")})}catch{U.addListener(({matches:Q})=>{try{G(Q?"dark":"light")}catch(ne){console.error(ne)}})}},[w]),ee.useEffect(()=>{q.length<=1&&P(!1)},[q]),ee.useEffect(()=>{const U=X=>{var Q;if(m.every(pe=>X[pe]||X.code===pe)){var ve;P(!0),(ve=le.current)==null||ve.focus()}X.code==="Escape"&&(document.activeElement===le.current||(Q=le.current)!=null&&Q.contains(document.activeElement))&&P(!1)};return document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)},[m]),ee.useEffect(()=>{if(le.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,R.current=!1)}},[le.current]),ee.createElement("section",{ref:s,"aria-label":`${ae} ${me}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},K.map((U,X)=>{var Q;const[ne,ve]=U.split("-");return J.length?ee.createElement("ol",{key:U,dir:Z==="auto"?ph():Z,tabIndex:-1,ref:le,className:h,"data-sonner-toaster":!0,"data-sonner-theme":M,"data-y-position":ne,"data-x-position":ve,style:{"--front-toast-height":`${((Q=te[0])==null?void 0:Q.height)||0}px`,"--width":`${h2}px`,"--gap":`${F}px`,..._,...S2(b,p)},onBlur:pe=>{R.current&&!pe.currentTarget.contains(pe.relatedTarget)&&(R.current=!1,I.current&&(I.current.focus({preventScroll:!0}),I.current=null))},onFocus:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||R.current||(R.current=!0,I.current=pe.relatedTarget)},onMouseEnter:()=>P(!0),onMouseMove:()=>P(!0),onMouseLeave:()=>{de||P(!1)},onDragEnd:()=>P(!1),onPointerDown:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||re(!0)},onPointerUp:()=>re(!1)},J.filter(pe=>!pe.position&&X===0||pe.position===U).map((pe,he)=>{var wt,ut;return ee.createElement(b2,{key:pe.id,icons:se,index:he,toast:pe,defaultRichColors:N,duration:(wt=A==null?void 0:A.duration)!=null?wt:j,className:A==null?void 0:A.className,descriptionClassName:A==null?void 0:A.descriptionClassName,invert:c,visibleToasts:D,closeButton:(ut=A==null?void 0:A.closeButton)!=null?ut:v,interacting:de,position:U,style:A==null?void 0:A.style,unstyled:A==null?void 0:A.unstyled,classNames:A==null?void 0:A.classNames,cancelButtonStyle:A==null?void 0:A.cancelButtonStyle,actionButtonStyle:A==null?void 0:A.actionButtonStyle,closeButtonAriaLabel:A==null?void 0:A.closeButtonAriaLabel,removeToast:z,toasts:J.filter(ct=>ct.position==pe.position),heights:te.filter(ct=>ct.position==pe.position),setHeights:fe,expandByDefault:x,gap:F,expanded:Y,swipeDirections:r.swipeDirections})})):null}))}),vh=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,xh=ep,_p=(a,r)=>s=>{var i;if((r==null?void 0:r.variants)==null)return xh(a,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:c,defaultVariants:f}=r,m=Object.keys(c).map(h=>{const b=s==null?void 0:s[h],p=f==null?void 0:f[h];if(b===null)return null;const w=vh(b)||vh(p);return c[h][w]}),x=s&&Object.entries(s).reduce((h,b)=>{let[p,w]=b;return w===void 0||(h[p]=w),h},{}),v=r==null||(i=r.compoundVariants)===null||i===void 0?void 0:i.reduce((h,b)=>{let{class:p,className:w,...N}=b;return Object.entries(N).every(j=>{let[_,D]=j;return Array.isArray(D)?D.includes({...f,...x}[_]):{...f,...x}[_]===D})?[...h,p,w]:h},[]);return xh(a,m,v,s==null?void 0:s.class,s==null?void 0:s.className)};function yh(a,r){if(typeof a=="function")return a(r);a!=null&&(a.current=r)}function N2(...a){return r=>{let s=!1;const i=a.map(c=>{const f=yh(c,r);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let c=0;c<i.length;c++){const f=i[c];typeof f=="function"?f():yh(a[c],null)}}}}function C2(a){const r=j2(a),s=S.forwardRef((i,c)=>{const{children:f,...m}=i,x=S.Children.toArray(f),v=x.find(E2);if(v){const h=v.props.children,b=x.map(p=>p===v?S.Children.count(h)>1?S.Children.only(null):S.isValidElement(h)?h.props.children:null:p);return d.jsx(r,{...m,ref:c,children:S.isValidElement(h)?S.cloneElement(h,void 0,b):null})}return d.jsx(r,{...m,ref:c,children:f})});return s.displayName=`${a}.Slot`,s}var Mp=C2("Slot");function j2(a){const r=S.forwardRef((s,i)=>{const{children:c,...f}=s;if(S.isValidElement(c)){const m=M2(c),x=_2(f,c.props);return c.type!==S.Fragment&&(x.ref=i?N2(i,m):m),S.cloneElement(c,x)}return S.Children.count(c)>1?S.Children.only(null):null});return r.displayName=`${a}.SlotClone`,r}var R2=Symbol("radix.slottable");function E2(a){return S.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===R2}function _2(a,r){const s={...r};for(const i in r){const c=a[i],f=r[i];/^on[A-Z]/.test(i)?c&&f?s[i]=(...x)=>{const v=f(...x);return c(...x),v}:c&&(s[i]=c):i==="style"?s[i]={...c,...f}:i==="className"&&(s[i]=[c,f].filter(Boolean).join(" "))}return{...a,...s}}function M2(a){var i,c;let r=(i=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:i.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?a.ref:(r=(c=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:c.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?a.props.ref:a.props.ref||a.ref)}const z2=_p("inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function Qe({className:a,variant:r="default",asChild:s=!1,...i}){const c=s?Mp:"span";return d.jsx(c,{"data-slot":"badge","data-variant":r,className:Ee(z2({variant:r}),a),...i})}const T2=_p("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function ze({className:a,variant:r="default",size:s="default",asChild:i=!1,...c}){const f=i?Mp:"button";return d.jsx(f,{"data-slot":"button","data-variant":r,"data-size":s,className:Ee(T2({variant:r,size:s,className:a})),...c})}const A2=new Set(["id","created_at","createdAt","updated_at","updatedAt"]);function D2(a){const r=a.toLowerCase();return r.includes("timestamp")||r.includes("date")?"datetime":r.includes("json")?"textarea":r.includes("bool")?"boolean":r.includes("int")||r.includes("float")||r.includes("numeric")||r.includes("decimal")||r.includes("real")||r.includes("double")?"number":r.includes("text")&&!r.includes("varchar")?"textarea":"text"}function O2(a){if(!a)return"";try{const r=new Date(a);if(isNaN(r.getTime()))return"";const s=r.getTimezoneOffset()*6e4;return new Date(r.getTime()-s).toISOString().slice(0,19)}catch{return""}}function k2(a){const r=a.toLowerCase();return r.includes("int")||r.includes("float")||r.includes("numeric")?"text-blue-400 bg-blue-500/10":r.includes("bool")?"text-amber-400 bg-amber-500/10":r.includes("timestamp")||r.includes("date")?"text-green-400 bg-green-500/10":r.includes("json")?"text-purple-400 bg-purple-500/10":"text-zinc-400 bg-zinc-500/10"}function zp({row:a,columns:r,tableName:s,allTables:i,onClose:c,onDataChanged:f,onNavigateToTable:m}){const{apiBase:x}=Xt(),[v,h]=S.useState(null),[b,p]=S.useState(""),[w,N]=S.useState(!1),[j,_]=S.useState(!1);if(!a)return null;const D=a.id,A=S.useMemo(()=>{var P;if(!i)return[];const Y=[];for(const[de,re]of Object.entries(i))if(de!==s)for(const M of re)((P=M.references)==null?void 0:P.table)===s&&Y.push({table:de,column:M.column});return Y},[i,s]),[Z,F]=S.useState({});S.useEffect(()=>{if(A.length===0||!D)return;let Y=!1;async function P(){const de={};for(const re of A)try{const M=re.table.replace(/[^a-zA-Z0-9_]/g,""),G=await fetch(`${x}/_admin/data/${M}?limit=0&offset=0`);if(G.ok){const le=await G.json();de[`${re.table}.${re.column}`]=le.total||0}}catch{}Y||F(de)}return P(),()=>{Y=!0}},[A,D,x]);const se=(Y,P,de)=>{h(Y),P==null?de&&(de.toLowerCase().includes("timestamp")||de.toLowerCase().includes("date"))?p(new Date().toISOString()):p(""):p(typeof P=="object"?JSON.stringify(P,null,2):String(P))},ae=S.useCallback(async(Y,P,de)=>{N(!0);try{let re=P;const M=de.toLowerCase();if(M.includes("timestamp")||M.includes("date"))if(P==="")re=null;else{const G=new Date(P);re=isNaN(G.getTime())?null:G.toISOString()}else if(M.includes("int")||M.includes("float")||M.includes("numeric")||M.includes("real")||M.includes("double")||M.includes("decimal"))re=P===""?null:Number(P);else if(M.includes("bool"))re=P==="true";else if(M.includes("json"))try{re=JSON.parse(P)}catch{pt.error("Invalid JSON"),N(!1);return}else P===""&&(re=null);await fetch(`${x}/_admin/data/${s}/${D}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[Y]:re})}),pt.success(`Updated ${Y}`),f()}catch(re){console.error("Failed to update:",re),pt.error("Failed to update field")}N(!1),h(null)},[x,s,D,f]),q=S.useCallback(async Y=>{N(!0);try{await fetch(`${x}/_admin/data/${s}/${D}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[Y]:null})}),pt.success(`${Y} set to null`),f()}catch{pt.error("Failed to set null")}N(!1),h(null)},[x,s,D,f]),W=()=>{h(null),p("")},J=S.useCallback(async(Y,P)=>{const de=!P;N(!0);try{await fetch(`${x}/_admin/data/${s}/${D}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[Y]:de})}),pt.success(`${Y} = ${de}`),f()}catch{pt.error("Failed to toggle")}N(!1)},[x,s,D,f]),K=S.useCallback(async()=>{try{const{deleteRow:Y}=Xt.getState();await Y(s,D),pt.success("Row deleted"),f(),c()}catch{pt.error("Failed to delete row")}},[s,D,f,c]),te=(Y,P,de)=>{Y.key==="Enter"&&!Y.shiftKey?(Y.preventDefault(),ae(P,b,de)):Y.key==="Escape"&&W()},fe=(Y,P)=>Y==null?"null":typeof Y=="boolean"?Y?"true":"false":P.toLowerCase().includes("timestamp")||P.toLowerCase().includes("date")?new Date(Y).toLocaleString():typeof Y=="object"?JSON.stringify(Y,null,2):String(Y);return d.jsxs("div",{className:"h-full flex flex-col border-l border-border bg-background w-[400px] max-w-[400px] overflow-x-hidden",children:[d.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border shrink-0",children:[d.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[d.jsx("h3",{className:"font-semibold text-foreground text-sm",children:"Row Detail"}),d.jsx(Qe,{variant:"outline",className:"text-[10px] font-mono border-border text-muted-foreground shrink-0",children:String(D).length>16?String(D).slice(0,16)+"…":String(D)})]}),d.jsx(ze,{variant:"ghost",size:"icon",className:"h-7 w-7 text-muted-foreground hover:text-foreground",onClick:c,children:d.jsx(qc,{className:"h-4 w-4"})})]}),d.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:d.jsxs("div",{className:"p-4 space-y-4",children:[r.map(Y=>{const P=a[Y.column],de=D2(Y.type),re=A2.has(Y.column)||!!Y.references,M=v===Y.column,G=P==null,le=Y.nullable&&!re&&!G;return d.jsxs("div",{className:"space-y-1.5",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:Y.column}),d.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded font-mono ${k2(Y.type)}`,children:Y.type.split("(")[0]}),Y.nullable&&d.jsx("span",{className:"text-[10px] text-muted-foreground/50",children:"nullable"}),Y.references&&d.jsxs("span",{className:"inline-flex items-center gap-0.5 text-[10px] px-1.5 py-0.5 rounded font-medium bg-violet-500/10 text-violet-400",children:[d.jsx(Lc,{className:"h-2.5 w-2.5"}),Y.references.table]})]}),M?d.jsxs("div",{className:"space-y-2",children:[de==="datetime"?d.jsx("input",{type:"datetime-local",step:"1",value:O2(b),onChange:me=>{me.target.value?p(new Date(me.target.value).toISOString()):p("")},onKeyDown:me=>te(me,Y.column,Y.type),autoFocus:!0,className:"w-full rounded-md border border-primary/50 bg-background px-3 py-2 text-xs text-foreground focus:outline-none focus:ring-1 focus:ring-primary/50"}):de==="textarea"?d.jsx("textarea",{value:b,onChange:me=>p(me.target.value),onKeyDown:me=>te(me,Y.column,Y.type),rows:6,autoFocus:!0,className:"w-full rounded-md border border-primary/50 bg-background px-3 py-2 text-xs text-foreground font-mono resize-y focus:outline-none focus:ring-1 focus:ring-primary/50"}):d.jsx("input",{type:de==="number"?"number":"text",value:b,onChange:me=>p(me.target.value),onKeyDown:me=>te(me,Y.column,Y.type),autoFocus:!0,className:"w-full rounded-md border border-primary/50 bg-background px-3 py-2 text-xs text-foreground focus:outline-none focus:ring-1 focus:ring-primary/50"}),d.jsxs("div",{className:"flex items-center gap-1.5",children:[d.jsxs(ze,{variant:"default",size:"sm",className:"h-6 text-[11px] px-2",disabled:w,onClick:()=>ae(Y.column,b,Y.type),children:[d.jsx(X1,{className:"h-3 w-3 mr-1"}),"Save"]}),Y.nullable&&d.jsx(ze,{variant:"ghost",size:"sm",className:"h-6 text-[11px] px-2 text-amber-500 hover:text-amber-400 hover:bg-amber-500/10",disabled:w,onClick:()=>q(Y.column),children:"Set null"}),d.jsx(ze,{variant:"ghost",size:"sm",className:"h-6 text-[11px] px-2 text-muted-foreground",onClick:W,children:"Cancel"})]})]}):de==="boolean"&&!re?d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("button",{onClick:()=>!G&&J(Y.column,P),disabled:w||G,className:Ee("flex items-center gap-2 rounded-md border border-border px-3 py-2 text-xs flex-1 transition-colors text-left",G?"bg-muted/30 cursor-default":"hover:bg-accent/50"),children:G?d.jsx("span",{className:"text-muted-foreground italic",children:"null"}):d.jsxs(d.Fragment,{children:[d.jsx("div",{className:`w-8 h-4 rounded-full transition-colors relative ${P?"bg-green-500":"bg-zinc-600"}`,children:d.jsx("div",{className:`absolute top-0.5 w-3 h-3 rounded-full bg-white transition-transform ${P?"translate-x-4":"translate-x-0.5"}`})}),d.jsx("span",{className:P?"text-green-400":"text-muted-foreground",children:P?"true":"false"})]})}),Y.nullable&&(G?d.jsx(ze,{variant:"ghost",size:"sm",className:"h-8 text-[10px] px-2 text-muted-foreground hover:text-foreground shrink-0",disabled:w,onClick:()=>J(Y.column,!0),children:"Set value"}):d.jsx(ze,{variant:"ghost",size:"sm",className:"h-8 text-[10px] px-2 text-amber-500 hover:text-amber-400 hover:bg-amber-500/10 shrink-0",disabled:w,onClick:()=>q(Y.column),children:"Set null"}))]}):Y.references&&P!==null&&P!==void 0?d.jsxs("div",{onClick:()=>m==null?void 0:m(Y.references.table,String(P)),className:"flex items-center gap-2 rounded-md border border-violet-500/20 px-3 py-2 text-xs cursor-pointer hover:bg-violet-500/5 hover:border-violet-500/40 transition-colors group",children:[d.jsx(wS,{className:"h-3 w-3 text-violet-400 shrink-0"}),d.jsx("span",{className:"text-violet-400 truncate flex-1 group-hover:underline",children:String(P)}),d.jsx(Yl,{className:"h-3 w-3 text-violet-400/50 group-hover:text-violet-400 transition-colors"})]}):d.jsxs("div",{className:"flex items-center gap-1.5",children:[d.jsx("div",{onClick:()=>!re&&se(Y.column,P,Y.type),className:Ee("rounded-md border border-border px-3 py-2 text-xs overflow-hidden flex-1",re?"bg-muted/30 text-muted-foreground cursor-default":"hover:bg-accent/50 hover:border-primary/30 cursor-pointer transition-colors",G?"text-muted-foreground italic":typeof P=="object"?"font-mono text-foreground whitespace-pre-wrap break-all max-h-24 overflow-y-auto":"text-foreground truncate"),children:fe(P,Y.type)}),le&&d.jsx(ze,{variant:"ghost",size:"sm",className:"h-8 text-[10px] px-2 text-amber-500 hover:text-amber-400 hover:bg-amber-500/10 shrink-0",disabled:w,onClick:()=>q(Y.column),children:"Set null"})]})]},Y.column)}),A.length>0&&d.jsxs("div",{className:"pt-3 mt-3 border-t border-border space-y-2",children:[d.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-medium text-muted-foreground",children:[d.jsx(Mr,{className:"h-3 w-3"}),"Referenced by"]}),A.map(Y=>{const P=`${Y.table}.${Y.column}`,de=Z[P];return d.jsxs("button",{onClick:()=>m==null?void 0:m(Y.table),className:"flex items-center gap-2 w-full rounded-md border border-emerald-500/20 px-3 py-2 text-xs hover:bg-emerald-500/5 hover:border-emerald-500/40 transition-colors group text-left",children:[d.jsx(Mr,{className:"h-3 w-3 text-emerald-400 shrink-0"}),d.jsxs("span",{className:"text-emerald-400 flex-1 truncate group-hover:underline",children:[Y.table,d.jsxs("span",{className:"text-emerald-400/50 ml-1",children:[".",Y.column]})]}),de!==void 0&&d.jsxs("span",{className:"text-[10px] text-muted-foreground bg-muted/50 rounded px-1.5 py-0.5 shrink-0",children:[de," rows"]}),d.jsx(Yl,{className:"h-3 w-3 text-emerald-400/50 group-hover:text-emerald-400 transition-colors shrink-0"})]},P)})]})," "]})}),d.jsx("div",{className:"p-4 border-t border-border",children:j?d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs(ze,{variant:"destructive",size:"sm",className:"flex-1 text-xs",onClick:K,children:[d.jsx(Cc,{className:"h-3 w-3 mr-1.5"}),"Confirm Delete"]}),d.jsxs(ze,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:()=>_(!1),children:[d.jsx(AS,{className:"h-3 w-3 mr-1"}),"Cancel"]})]}):d.jsxs(ze,{variant:"ghost",size:"sm",className:"w-full text-xs text-destructive hover:text-destructive hover:bg-destructive/10",onClick:()=>_(!0),children:[d.jsx(Cc,{className:"h-3 w-3 mr-1.5"}),"Delete Row"]})})]})}function H2(a){return a.backendStatus!==void 0?a.backendStatus==="none"&&!!a.hasStatic:!!a.staticOnly}function U2(){const{tables:a,selectedTable:r,setSelectedTable:s,fetchTables:i,fetchTableData:c,deleteRow:f}=Xt(),[m,x]=S.useState([]),[v,h]=S.useState(0),[b,p]=S.useState(!0),[w,N]=S.useState(0),[j,_]=S.useState(!1),[D,A]=S.useState(null),Z=S.useRef(null),F=50,se=Ma(),{appStatus:ae}=se,q=H2(se),[W,J]=S.useState(!1),K=ti(),[te]=zy(),fe=te.get("table");S.useEffect(()=>{fe&&fe!==r&&s(fe)},[fe]),S.useEffect(()=>{i().then(()=>{p(!1),J(!1),s(fe||"")}).catch(()=>{p(!1),J(!0)})},[i]);const Y=S.useCallback(z=>{s(z);const U=new URLSearchParams(te.toString());U.set("table",z),K(`?${U.toString()}`,{replace:!0}),N(0),_(!1)},[K,te,s]),P=S.useCallback(()=>{s("");const z=new URLSearchParams(te.toString());z.delete("table"),K(`?${z.toString()}`,{replace:!0}),x([]),h(0)},[K,te,s]),de=S.useCallback(async()=>{if(!r)return;p(!0);const z=await c(r,F,w*F);x(z.data||[]),h(z.total||0),p(!1)},[r,w,c]);S.useEffect(()=>{de()},[de]),S.useEffect(()=>{const U=Xt.getState().apiBase.replace(/^http/,"ws")+"/ws";let X=null,Q=null,ne=!0;function ve(){ne&&(X=new WebSocket(U),X.onmessage=pe=>{try{const he=JSON.parse(pe.data),wt=he.type==="invalidate"&&Array.isArray(he.queries)?he.queries:he.type==="query:updated"&&he.query?[he.query]:[],ut=Xt.getState().selectedTable;ut&&wt.some(ct=>ct.includes(ut))&&de()}catch{}},X.onclose=()=>{ne&&(Q=setTimeout(ve,3e3))})}return ve(),()=>{ne=!1,Q&&clearTimeout(Q),X==null||X.close()}},[de]),S.useEffect(()=>{function z(U){Z.current&&!Z.current.contains(U.target)&&_(!1)}if(j)return document.addEventListener("mousedown",z),()=>document.removeEventListener("mousedown",z)},[j]);const re=Object.keys(a),M=r?a[r]||[]:[],G=S.useMemo(()=>M.map(z=>({accessorKey:z.column,header:z.column,minWidth:z.type.includes("timestamp")?200:100,maxWidth:z.type.includes("text")?300:250,headerTooltip:z.references?`${z.column} (${z.type}) → ${z.references.table}.${z.references.column}`:`${z.column} (${z.type})${z.nullable?" | nullable":""}`,cellClassName:U=>z.column==="id"?"text-indigo-400 font-mono text-[11px]":z.references&&U!==null&&U!==void 0?"text-violet-400 cursor-pointer underline decoration-violet-400/30":U==null?"text-muted-foreground italic":typeof U=="boolean"?U?"text-green-500":"text-red-500":"",cell:z.type.includes("timestamp")?U=>{const X=U.getValue();return X==null?d.jsx("span",{className:"text-muted-foreground italic",children:"null"}):d.jsx("span",{children:new Date(X).toLocaleString()})}:void 0})),[M]),le=S.useCallback(z=>{A(U=>U&&U.id===z.id?null:z)},[]),me=S.useCallback((z,U,X)=>{const Q=M.find(ne=>ne.column===U);if(Q!=null&&Q.references&&z[U]!==null&&z[U]!==void 0){X.stopPropagation();const ne=Q.references.table,ve=String(z[U]),pe=new URLSearchParams(te.toString());pe.set("table",ne),pe.set("fkHighlight",ve),K(`?${pe.toString()}`,{replace:!1}),s(ne),N(0)}},[M,K,te,s]),I=te.get("fkHighlight");S.useEffect(()=>{if(I&&m.length>0){const z=m.find(U=>String(U.id)===I);if(z){A(z);const U=new URLSearchParams(te.toString());U.delete("fkHighlight"),K(`?${U.toString()}`,{replace:!0})}}},[I,m]),S.useEffect(()=>{if(D&&m.length>0){const z=m.find(U=>U.id===D.id);A(z||null)}},[m]);const R=Math.ceil(v/F);return r?d.jsxs("div",{className:"flex h-full flex-col",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs(ze,{variant:"ghost",size:"sm",onClick:P,className:"gap-1.5 text-muted-foreground hover:text-foreground",children:[d.jsx(Mr,{className:"h-3.5 w-3.5"}),"All Tables"]}),d.jsx("div",{className:"w-px h-5 bg-border"}),d.jsxs("div",{className:"relative",ref:Z,children:[d.jsxs("button",{onClick:()=>_(z=>!z),className:Ee("flex items-center gap-2 rounded-md px-2.5 py-1.5 text-sm font-semibold transition-colors","hover:bg-accent/50 text-foreground",j&&"bg-accent/50"),children:[d.jsx(ja,{className:"h-3.5 w-3.5 text-primary"}),r,d.jsx(Z1,{className:Ee("h-3.5 w-3.5 text-muted-foreground transition-transform",j&&"rotate-180")})]}),j&&d.jsx("div",{className:"absolute top-full left-0 mt-1 z-50 min-w-[200px] max-h-[300px] overflow-y-auto rounded-lg border border-border bg-popover shadow-lg",children:d.jsx("div",{className:"p-1",children:re.map(z=>{var U;return d.jsxs("button",{onClick:()=>Y(z),className:Ee("flex w-full items-center gap-2 rounded-md px-3 py-2 text-sm transition-colors text-left",z===r?"bg-primary/10 text-primary font-medium":"text-foreground hover:bg-accent/50"),children:[d.jsx(ja,{className:"h-3.5 w-3.5 shrink-0"}),d.jsx("span",{className:"truncate",children:z}),d.jsxs(Qe,{variant:"secondary",className:"ml-auto text-[10px] shrink-0",children:[((U=a[z])==null?void 0:U.length)||0," cols"]})]},z)})})})]}),v>0&&d.jsxs(Qe,{variant:"outline",className:"text-xs border-border text-muted-foreground",children:[v," rows"]})]}),d.jsx("div",{className:"flex items-center gap-2",children:d.jsx(ze,{variant:"ghost",size:"sm",onClick:de,className:"text-muted-foreground hover:text-foreground",children:d.jsx(_a,{className:"h-3.5 w-3.5"})})})]}),d.jsxs("div",{className:"flex-1 min-h-0 relative overflow-hidden",children:[d.jsx(Ep,{data:m,columns:G,loading:b,onRowClick:le,onCellClick:me}),D&&d.jsx("div",{className:"absolute top-0 right-0 h-full z-10 shadow-2xl animate-in slide-in-from-right duration-200",children:d.jsx(zp,{row:D,columns:M,tableName:r,allTables:a,onClose:()=>A(null),onDataChanged:de,onNavigateToTable:(z,U)=>{A(null);const X=new URLSearchParams(te.toString());X.set("table",z),U&&X.set("fkHighlight",U),K(`?${X.toString()}`,{replace:!1}),s(z),N(0)}})})]}),d.jsxs("div",{className:"flex items-center justify-between border-t border-border px-4 py-2 bg-background",children:[d.jsx("span",{className:"text-xs text-muted-foreground",children:v===0?"No data":`${w*F+1}–${Math.min((w+1)*F,v)} of ${v}`}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs("span",{className:"text-xs text-muted-foreground",children:["Page ",w+1," of ",Math.max(R,1)]}),d.jsxs("div",{className:"flex gap-1",children:[d.jsx(ze,{variant:"outline",size:"icon",className:"h-7 w-7 border-border",disabled:w===0,onClick:()=>N(z=>z-1),children:d.jsx(xp,{className:"h-3.5 w-3.5"})}),d.jsx(ze,{variant:"outline",size:"icon",className:"h-7 w-7 border-border",disabled:w+1>=R,onClick:()=>N(z=>z+1),children:d.jsx(Yl,{className:"h-3.5 w-3.5"})})]})]})]})]}):d.jsxs("div",{className:"flex h-full flex-col",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(ja,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("h2",{className:"font-semibold text-foreground",children:"Data"}),d.jsxs(Qe,{variant:"outline",className:"text-xs border-border text-muted-foreground",children:[re.length," tables"]})]}),d.jsx(ze,{variant:"ghost",size:"sm",onClick:()=>{p(!0),i().then(()=>p(!1))},className:"text-muted-foreground hover:text-foreground",children:d.jsx(_a,{className:"h-3.5 w-3.5"})})]}),d.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:q?d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center",children:[d.jsx(Kl,{className:"h-12 w-12 text-cyan-500/30 mb-4"}),d.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:"Static Hosting"}),d.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm",children:["이 앱은 정적 파일만 호스팅합니다.",d.jsx("br",{}),"서버 프로세스가 없으므로 데이터베이스가 사용되지 않습니다."]})]}):(W||ae&&ae!=="running")&&re.length===0?d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center",children:[d.jsx(ja,{className:"h-12 w-12 text-amber-500/30 mb-4"}),d.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:"App is not running"}),d.jsx("p",{className:"text-sm text-muted-foreground max-w-sm",children:"Database tables cannot be loaded while the app is stopped or crashed. Use the banner above to restart the app."})]}):re.length===0?d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center",children:[d.jsx(ja,{className:"h-12 w-12 text-muted-foreground/30 mb-4"}),d.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:"No tables yet"}),d.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm",children:["Define a schema in your ",d.jsx("code",{className:"bg-muted px-1 rounded text-xs",children:"gencow/schema.ts"})," file and run the server to create tables."]})]}):d.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",children:re.map(z=>{const U=(a[z]||[]).filter(Q=>Q.references).map(Q=>Q.references.table).filter((Q,ne,ve)=>ve.indexOf(Q)===ne),X=[];for(const[Q,ne]of Object.entries(a))Q!==z&&ne.some(ve=>{var pe;return((pe=ve.references)==null?void 0:pe.table)===z})&&X.push(Q);return d.jsxs("button",{onClick:()=>Y(z),className:Ee("group relative flex flex-col items-start gap-2.5 rounded-lg border border-border p-4","bg-card hover:bg-accent/50 hover:border-primary/30","transition-all duration-150 text-left","focus:outline-none focus:ring-2 focus:ring-primary/50 focus:ring-offset-1 focus:ring-offset-background"),children:[d.jsxs("div",{className:"flex items-center gap-2.5 w-full",children:[d.jsx("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-primary/10 text-primary",children:d.jsx(jp,{className:"h-4 w-4"})}),d.jsx("span",{className:"font-medium text-sm text-foreground truncate flex-1",children:z})]}),d.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[d.jsx(nS,{className:"h-3 w-3"}),a[z].length," columns"]}),(U.length>0||X.length>0)&&d.jsxs("div",{className:"flex flex-wrap gap-1 w-full",children:[U.map(Q=>d.jsxs("span",{onClick:ne=>{ne.stopPropagation(),Y(Q)},className:"inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-[10px] font-medium bg-violet-500/10 text-violet-400 hover:bg-violet-500/20 cursor-pointer transition-colors",children:[d.jsx(Lc,{className:"h-2.5 w-2.5"}),Q]},`out-${Q}`)),X.map(Q=>d.jsxs("span",{onClick:ne=>{ne.stopPropagation(),Y(Q)},className:"inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-[10px] font-medium bg-emerald-500/10 text-emerald-400 hover:bg-emerald-500/20 cursor-pointer transition-colors",children:[d.jsx(Mr,{className:"h-2.5 w-2.5"}),Q]},`in-${Q}`))]}),d.jsx(Yl,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground/0 group-hover:text-muted-foreground transition-colors"})]},z)})})})]})}function Fn({className:a}){return d.jsx("div",{className:Ee("animate-pulse rounded-md bg-muted",a)})}function B2({cards:a=8}){return d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 p-4",children:Array.from({length:a}).map((r,s)=>d.jsxs("div",{className:"rounded-lg border border-border p-4 space-y-3",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Fn,{className:"h-4 w-4 rounded"}),d.jsx(Fn,{className:"h-4 w-24"})]}),d.jsx(Fn,{className:"h-3 w-full"}),d.jsx(Fn,{className:"h-3 w-2/3"}),d.jsxs("div",{className:"flex gap-2 pt-2",children:[d.jsx(Fn,{className:"h-5 w-14 rounded-full"}),d.jsx(Fn,{className:"h-5 w-14 rounded-full"})]})]},s))})}function L2({cards:a=4}){return d.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 p-4",children:Array.from({length:a}).map((r,s)=>d.jsxs("div",{className:"rounded-lg border border-border p-4 space-y-3",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Fn,{className:"h-4 w-4 rounded"}),d.jsx(Fn,{className:"h-3 w-16"})]}),d.jsx(Fn,{className:"h-8 w-20"})]},s))})}function V2(a){return a.backendStatus!==void 0?a.backendStatus==="none"&&!!a.hasStatic:!!a.staticOnly}function G2(){const{apiBase:a}=Xt(),[r,s]=S.useState([]),[i,c]=S.useState([]),[f,m]=S.useState(null),[x,v]=S.useState("query"),[h,b]=S.useState("{}"),[p,w]=S.useState({status:"idle"}),[N,j]=S.useState("card"),[_,D]=S.useState(!0),A=Ma(),{appStatus:Z}=A,F=V2(A),[se,ae]=S.useState(!1),q=S.useCallback(async()=>{if(Z&&Z!=="running"){ae(!0),D(!1);return}D(!0);try{const te=await fetch(`${a}/_admin/functions`);if(!te.ok&&(te.status===502||te.status===503)){ae(!0),D(!1);return}const fe=await te.json();s(fe.queries||[]),c(fe.mutations||[]),ae(!1)}catch(te){console.error("Failed to fetch functions:",te),ae(!0)}D(!1)},[a,Z]);S.useEffect(()=>{q()},[q]);function W(te,fe){m(te),v(fe),b("{}"),w({status:"idle"})}async function J(){if(!f)return;w({status:"loading"});const te=performance.now();try{let fe={};try{fe=JSON.parse(h)}catch{w({status:"error",error:"Invalid JSON in arguments"});return}const P=await fetch(`${a}${x==="query"?"/api/query":"/api/mutation"}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:f,args:fe})}),de=Math.round(performance.now()-te),re=await P.json();P.ok?(w({status:"success",data:re,duration:de}),pt.success(`${f} completed in ${de}ms`)):(w({status:"error",error:re.error||`HTTP ${P.status}`,duration:de}),pt.error(`${f} failed: ${re.error||`HTTP ${P.status}`}`))}catch(fe){const Y=Math.round(performance.now()-te),P=fe instanceof Error?fe.message:String(fe);w({status:"error",error:P,duration:Y})}}const K=f!==null;return d.jsxs("div",{className:"flex h-full",children:[d.jsxs("div",{className:Ee("flex flex-col border-r border-border transition-all min-w-0 shrink-0",K?"w-[320px]":"w-full"),children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Ca,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("h2",{className:"font-semibold text-foreground",children:"Functions"}),d.jsxs(Qe,{variant:"outline",className:"text-xs border-border text-muted-foreground",children:[r.length+i.length," total"]})]}),d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx(ze,{variant:N==="card"?"default":"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>j("card"),children:d.jsx(bS,{className:"h-3.5 w-3.5"})}),d.jsx(ze,{variant:N==="table"?"default":"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>j("table"),children:d.jsx(jp,{className:"h-3.5 w-3.5"})})]})]}),_?d.jsx(B2,{cards:6}):se?F?d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center p-8",children:[d.jsx(Kl,{className:"h-12 w-12 text-cyan-500/30 mb-4"}),d.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:"Static Hosting"}),d.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm",children:["이 앱은 정적 파일만 호스팅합니다.",d.jsx("br",{}),"서버 프로세스가 없으므로 Functions이 등록되지 않습니다."]})]}):d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center p-8",children:[d.jsx(Ca,{className:"h-12 w-12 text-amber-500/30 mb-4"}),d.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:"App is not running"}),d.jsx("p",{className:"text-sm text-muted-foreground max-w-sm",children:"Functions cannot be loaded while the app is stopped or crashed. Use the banner above to restart the app."})]}):r.length===0&&i.length===0?d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center p-8",children:[d.jsx(Ca,{className:"h-12 w-12 text-muted-foreground/30 mb-4"}),d.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:"No functions registered"}),d.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm",children:["Define queries and mutations in your ",d.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded font-mono",children:"gencow/"})," directory to see them here."]})]}):d.jsxs("div",{className:"flex-1 overflow-auto p-4 space-y-6",children:[d.jsx(bh,{title:"Queries",icon:d.jsx(Ca,{className:"h-3.5 w-3.5 text-blue-400"}),count:r.length,items:r.map(te=>({name:te,type:"query"})),selectedFn:f,viewMode:N,onSelect:te=>W(te,"query"),badgeClass:"bg-blue-500/10 text-blue-400 border-blue-500/20",iconColor:"text-blue-500"}),d.jsx(bh,{title:"Mutations",icon:d.jsx(Fl,{className:"h-3.5 w-3.5 text-orange-400"}),count:i.length,items:i.map(te=>({name:te.name,type:"mutation",invalidates:te.invalidates})),selectedFn:f,viewMode:N,onSelect:te=>W(te,"mutation"),badgeClass:"bg-orange-500/10 text-orange-400 border-orange-500/20",iconColor:"text-orange-500"})]})]}),K&&d.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[x==="query"?d.jsx(Ca,{className:"h-4 w-4 text-blue-500"}):d.jsx(Fl,{className:"h-4 w-4 text-orange-500"}),d.jsx("span",{className:"font-mono text-sm font-medium",children:f}),d.jsx(Qe,{className:Ee("text-[10px]",x==="query"?"bg-blue-500/10 text-blue-400 border-blue-500/20":"bg-orange-500/10 text-orange-400 border-orange-500/20"),children:x})]}),d.jsx(ze,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>m(null),children:d.jsx(qc,{className:"h-4 w-4"})})]}),d.jsxs("div",{className:"flex-1 overflow-auto p-4 space-y-4",children:[x==="mutation"&&(()=>{const te=i.find(fe=>fe.name===f);return te!=null&&te.invalidates.length?d.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[d.jsx("span",{children:"Invalidates:"}),te.invalidates.map(fe=>d.jsx(Qe,{variant:"secondary",className:"text-[10px] font-mono",children:fe},fe))]}):null})(),d.jsxs("div",{children:[d.jsx("label",{className:"text-xs font-medium text-muted-foreground mb-1.5 block",children:"Arguments (JSON)"}),d.jsx("textarea",{className:"w-full h-32 rounded-md border border-border bg-background px-3 py-2 font-mono text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-primary/50 resize-none",value:h,onChange:te=>b(te.target.value),placeholder:'{ "key": "value" }',spellCheck:!1})]}),d.jsxs(ze,{onClick:J,disabled:p.status==="loading",className:"gap-2",children:[p.status==="loading"?d.jsx(wp,{className:"h-4 w-4 animate-spin"}):d.jsx(Np,{className:"h-4 w-4"}),x==="query"?"Run Query":"Run Mutation"]}),p.status!=="idle"&&p.status!=="loading"&&d.jsxs("div",{className:"space-y-2",children:[d.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[p.status==="success"?d.jsx(bp,{className:"h-3.5 w-3.5 text-green-500"}):d.jsx(yp,{className:"h-3.5 w-3.5 text-red-500"}),d.jsx("span",{className:p.status==="success"?"text-green-500":"text-red-500",children:p.status==="success"?"Success":"Error"}),p.duration!==void 0&&d.jsxs("span",{className:"text-muted-foreground",children:[p.duration,"ms"]})]}),d.jsx("pre",{className:Ee("rounded-md border p-3 font-mono text-xs overflow-auto max-h-80",p.status==="success"?"border-green-500/20 bg-green-500/5 text-green-300":"border-red-500/20 bg-red-500/5 text-red-300"),children:p.status==="success"?JSON.stringify(p.data,null,2):p.error})]})]})]})]})}function bh({title:a,icon:r,count:s,items:i,selectedFn:c,viewMode:f,onSelect:m,badgeClass:x,iconColor:v}){return s===0?null:d.jsxs("div",{children:[d.jsxs("h3",{className:"text-sm font-medium text-muted-foreground mb-3 flex items-center gap-2",children:[r,a,d.jsx(Qe,{variant:"outline",className:"text-[10px]",children:s})]}),f==="card"?d.jsx("div",{className:"space-y-1",children:i.map(h=>d.jsxs("div",{className:Ee("flex items-center gap-2 px-3 py-2 rounded-md border border-border cursor-pointer transition-colors hover:border-primary/50",c===h.name&&"border-primary bg-primary/5"),onClick:()=>m(h.name),children:[h.type==="query"?d.jsx(Ca,{className:Ee("h-3.5 w-3.5 shrink-0",v)}):d.jsx(Fl,{className:Ee("h-3.5 w-3.5 shrink-0",v)}),d.jsx("span",{className:"text-sm font-mono truncate",children:h.name}),d.jsx(Qe,{className:Ee("text-[10px] shrink-0",x),children:h.type}),h.invalidates&&h.invalidates.length>0&&d.jsxs(d.Fragment,{children:[d.jsx(Lc,{className:"h-3 w-3 text-muted-foreground shrink-0"}),h.invalidates.map(b=>d.jsx(Qe,{variant:"secondary",className:"text-[10px] font-mono shrink-0 hidden sm:inline-flex",children:b},b))]}),d.jsx(Yl,{className:"ml-auto h-3.5 w-3.5 text-muted-foreground shrink-0"})]},h.name))}):d.jsx("div",{className:"rounded-md border border-border overflow-x-auto",children:d.jsxs("table",{className:"w-full text-sm table-fixed",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"border-b border-border bg-muted/30",children:[d.jsx("th",{className:"text-left px-3 py-2 text-xs font-medium text-muted-foreground w-[45%]",children:"Name"}),d.jsx("th",{className:"text-left px-3 py-2 text-xs font-medium text-muted-foreground w-[20%]",children:"Type"}),d.jsx("th",{className:"text-left px-3 py-2 text-xs font-medium text-muted-foreground w-[35%]",children:"Invalidates"})]})}),d.jsx("tbody",{children:i.map(h=>{var b;return d.jsxs("tr",{className:Ee("border-b border-border cursor-pointer transition-colors hover:bg-accent/50",c===h.name&&"bg-primary/5"),onClick:()=>m(h.name),children:[d.jsx("td",{className:"px-3 py-2 font-mono text-xs truncate",children:h.name}),d.jsx("td",{className:"px-3 py-2",children:d.jsx(Qe,{className:Ee("text-[10px]",x),children:h.type})}),d.jsx("td",{className:"px-3 py-2",children:d.jsx("div",{className:"flex flex-wrap gap-1",children:(b=h.invalidates)==null?void 0:b.map(p=>d.jsx(Qe,{variant:"secondary",className:"text-[10px] font-mono",children:p},p))})})]},h.name)})})]})})]})}function $2(a){return a.backendStatus!==void 0?a.backendStatus==="none"&&!!a.hasStatic:!!a.staticOnly}const q2={30:"#6B7280",31:"#EF4444",32:"#22C55E",33:"#EAB308",34:"#3B82F6",35:"#A855F7",36:"#06B6D4",37:"#E5E7EB",90:"#9CA3AF",91:"#FCA5A5",92:"#86EFAC",93:"#FDE047",94:"#93C5FD",95:"#D8B4FE",96:"#67E8F9",97:"#F9FAFB"};function Y2(a){return a.replace(/\x1b\[([0-9;]*)m/g,(r,s)=>{if(!s||s==="0")return"</span>";const i=s.split(";");for(const c of i){const f=q2[c];if(f)return`<span style="color:${f}">`;if(c==="1")return'<span style="font-weight:bold">';if(c==="2")return'<span style="opacity:0.7">';if(c==="4")return'<span style="text-decoration:underline">'}return""})}function F2(a){return a.replace(/\x1b\[[0-9;]*m/g,"")}const X2=["/_admin/status","/_admin/logs","/_admin/tables","/_admin/functions","/_admin/files","/_admin/scheduler","/_admin/env","GET /favicon.ico"];function Q2(a){const r=F2(a);return X2.some(s=>r.includes(s))}const Z2={info:"bg-blue-500/10 text-blue-400 border-blue-500/20",warn:"bg-yellow-500/10 text-yellow-400 border-yellow-500/20",error:"bg-red-500/10 text-red-400 border-red-500/20"},K2={info:"text-blue-400",warn:"text-yellow-400",error:"text-red-400"};function J2({apiBase:a}){const[r,s]=S.useState([]),[i,c]=S.useState(!1);return S.useEffect(()=>{const f=a.match(/\/_proxy\/([^/]+)/);if(!f){c(!0);return}const m=f[1],v=`${a.replace(/\/_proxy\/.*$/,"")}/api/apps/${m}/logs?lines=100`,h=localStorage.getItem("apiKey")||"";fetch(v,{headers:h?{Authorization:`Bearer ${h}`}:{}}).then(async b=>{if(!b.ok){c(!0);return}const p=await b.json();s(p.logs||[]),c(!0)}).catch(()=>c(!0))},[a]),i?r.length>0?d.jsxs("div",{className:"flex flex-col gap-2 py-4 px-2",children:[d.jsxs("div",{className:"flex items-center gap-2 px-2",children:[d.jsx(Ps,{className:"h-4 w-4 text-amber-500"}),d.jsxs("span",{className:"text-xs font-medium text-amber-500",children:["Last logs before shutdown (",r.length," lines)"]})]}),d.jsx("pre",{className:"p-3 rounded-lg bg-black/30 text-xs text-muted-foreground overflow-x-auto max-h-[60vh] overflow-y-auto font-mono leading-relaxed border border-amber-500/20",children:r.join(`
372
+ `)}),d.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"Use the banner above to restart the app."})]}):d.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center gap-3",children:[d.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-amber-500/10",children:d.jsx(Ps,{className:"h-5 w-5 text-amber-500"})}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"App is not running — logs are unavailable."}),d.jsx("p",{className:"text-xs text-muted-foreground",children:"Use the banner above to restart the app."})]}):null}function I2(){const{apiBase:a}=Xt(),r=Ma(),{appStatus:s}=r,i=$2(r),[c,f]=S.useState([]),[m,x]=S.useState("all"),[v,h]=S.useState(!0),[b,p]=S.useState(!0),[w,N]=S.useState(!1),[j,_]=S.useState(!0),[D,A]=S.useState(!1),Z=S.useRef(null),F=S.useRef(null);if(i)return d.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center gap-3",children:[d.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-cyan-500/10",children:d.jsx(Kl,{className:"h-5 w-5 text-cyan-500"})}),d.jsx("p",{className:"text-sm font-medium text-foreground",children:"Static Hosting"}),d.jsxs("p",{className:"text-xs text-muted-foreground max-w-xs",children:["이 앱은 정적 파일만 호스팅합니다.",d.jsx("br",{}),"서버 프로세스가 없으므로 실시간 로그가 생성되지 않습니다."]})]});const se=S.useCallback(async()=>{if(s&&s!=="running"){A(!0),_(!1);return}try{const q=await fetch(`${a}/_admin/logs?limit=200&level=${m}`);if(!q.ok&&(q.status===502||q.status===503)){A(!0),_(!1);return}const W=await q.json();f(W),A(!1),_(!1)}catch(q){console.error("Failed to fetch logs:",q),A(!0),_(!1)}},[a,m,s]);S.useEffect(()=>{se()},[se]),S.useEffect(()=>{if(D||s&&s!=="running")return;const q=a.replace(/^http/,"ws")+"/ws";let W,J;function K(){W=new WebSocket(q),F.current=W,W.onopen=()=>{N(!0),W.send(JSON.stringify({type:"log:subscribe"}))},W.onmessage=te=>{try{const fe=JSON.parse(te.data);fe.type==="log:entry"&&fe.data&&f(Y=>{const P=[...Y,fe.data];return P.length>500?P.slice(-500):P})}catch{}},W.onclose=()=>{N(!1),F.current=null,J=setTimeout(K,3e3)},W.onerror=()=>{W.close()}}return K(),()=>{clearTimeout(J),F.current&&(F.current.close(),F.current=null)}},[a,D,s]),S.useEffect(()=>{b&&Z.current&&(Z.current.scrollTop=Z.current.scrollHeight)},[c,b]);const ae=c.filter(q=>!(m!=="all"&&q.level!==m||v&&Q2(q.message)));return d.jsxs("div",{className:"flex h-full flex-col",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Ps,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("h2",{className:"font-semibold text-foreground",children:"Logs"}),d.jsx(Qe,{variant:"outline",className:"text-xs border-border text-muted-foreground",children:ae.length}),d.jsxs("div",{className:"flex items-center gap-1 text-[10px] text-muted-foreground ml-2",children:[d.jsx("div",{className:Ee("h-1.5 w-1.5 rounded-full",w?"bg-green-500":"bg-red-500")}),w?"Live":"Polling"]})]}),d.jsxs("div",{className:"flex items-center gap-1.5",children:[["all","info","warn","error"].map(q=>d.jsx(ze,{variant:m===q?"default":"outline",size:"sm",className:"h-7 text-xs capitalize",onClick:()=>x(q),children:q},q)),d.jsx("div",{className:"w-px h-5 bg-border mx-0.5"}),d.jsxs(ze,{variant:v?"default":"outline",size:"sm",className:"h-7 text-xs gap-1",onClick:()=>h(q=>!q),title:v?"System logs hidden":"Showing system logs",children:[v?d.jsx(rS,{className:"h-3 w-3"}):d.jsx(uS,{className:"h-3 w-3"}),"System"]}),d.jsx(ze,{variant:b?"default":"outline",size:"sm",className:"h-7 text-xs gap-1",onClick:()=>p(q=>!q),children:d.jsx(pp,{className:"h-3 w-3"})}),d.jsx(ze,{variant:"ghost",size:"sm",onClick:se,className:"h-7",children:d.jsx(_a,{className:"h-3.5 w-3.5"})})]})]}),d.jsx("div",{ref:Z,className:"flex-1 overflow-y-auto",children:d.jsxs("div",{className:"p-2 space-y-px font-mono text-xs",children:[ae.map(q=>d.jsxs("div",{className:Ee("flex items-start gap-2 px-3 py-1.5 rounded hover:bg-accent/50 transition-colors",q.level==="error"&&"bg-red-500/5"),children:[d.jsx("span",{className:"text-muted-foreground whitespace-nowrap flex-shrink-0",children:new Date(q.timestamp).toLocaleTimeString()}),d.jsx(Qe,{variant:"outline",className:Ee("text-[10px] px-1.5 py-0 flex-shrink-0",Z2[q.level]),children:q.level}),q.source&&d.jsx(Qe,{variant:"secondary",className:"text-[10px] px-1.5 py-0 flex-shrink-0",children:q.source}),d.jsx("span",{className:Ee("break-all",K2[q.level]),dangerouslySetInnerHTML:{__html:Y2(q.message)}})]},q.id)),D&&!j&&d.jsx(J2,{apiBase:a}),!D&&ae.length===0&&!j&&d.jsx("div",{className:"text-center text-muted-foreground py-8",children:v?"No application logs yet. System logs are hidden — click the System button to show them.":"No logs yet. Interact with the API to generate logs."})]})})]})}function W2(a){return a<1024?`${a} B`:a<1024*1024?`${(a/1024).toFixed(1)} KB`:`${(a/1024/1024).toFixed(1)} MB`}function P2(){const{apiBase:a,deleteRow:r}=Xt(),[s,i]=S.useState([]),[c,f]=S.useState(!0),[m,x]=S.useState(!1),[v,h]=S.useState(!1),[b,p]=S.useState(null),[w,N]=S.useState(null),j=S.useRef(null),{appStatus:_}=Ma(),[D,A]=S.useState(!1),Z=S.useCallback(async()=>{if(_&&_!=="running"){A(!0),f(!1);return}try{const K=await fetch(`${a}/_admin/files`);if(!K.ok&&(K.status===502||K.status===503)){A(!0),f(!1);return}if(!K.ok){f(!1);return}const te=await K.json();i(te),A(!1)}catch(K){console.error("Failed to fetch files:",K),A(!0)}f(!1)},[a,_]);S.useEffect(()=>{Z()},[Z]);async function F(K){if(!K||K.length===0)return;x(!0),p(null);let te=0,fe=0;for(const Y of Array.from(K))try{const P=new FormData;P.append("file",Y),(await fetch(`${a}/_admin/files/upload`,{method:"POST",body:P})).ok?te++:fe++}catch{fe++}x(!1),fe===0?pt.success(`${te} file(s) uploaded successfully`):pt.error(`${te} uploaded, ${fe} failed`),Z(),setTimeout(()=>p(null),3e3)}function se(K){K.preventDefault(),h(!0)}function ae(K){K.preventDefault(),h(!1)}function q(K){K.preventDefault(),h(!1),F(K.dataTransfer.files)}async function W(K){if(w!==K){N(K),setTimeout(()=>N(null),3e3);return}await r("files",K),N(null),pt.success("File deleted"),Z()}const J=K=>K.startsWith("image/");return d.jsxs("div",{className:"flex h-full flex-col",onDragOver:se,onDragLeave:ae,onDrop:q,children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(zr,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("h2",{className:"font-semibold text-foreground",children:"File Storage"}),d.jsxs(Qe,{variant:"outline",className:"text-xs border-border text-muted-foreground",children:[s.length," files"]})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("input",{ref:j,type:"file",className:"hidden",multiple:!0,onChange:K=>F(K.target.files)}),d.jsxs(ze,{variant:"outline",size:"sm",className:"gap-1.5",onClick:()=>{var K;return(K=j.current)==null?void 0:K.click()},disabled:m,children:[d.jsx(Nr,{className:"h-3.5 w-3.5"}),"Upload"]}),d.jsx(ze,{variant:"ghost",size:"sm",onClick:Z,className:"text-muted-foreground",children:d.jsx(_a,{className:"h-3.5 w-3.5"})})]})]}),b&&d.jsxs("div",{className:Ee("flex items-center gap-2 px-4 py-2 text-xs border-b",b.type==="success"?"bg-green-500/10 text-green-400 border-green-500/20":"bg-red-500/10 text-red-400 border-red-500/20"),children:[b.type==="success"?d.jsx(bp,{className:"h-3.5 w-3.5"}):d.jsx(yp,{className:"h-3.5 w-3.5"}),b.message]}),v&&d.jsx("div",{className:"absolute inset-0 z-50 bg-primary/10 border-2 border-dashed border-primary rounded-lg flex items-center justify-center backdrop-blur-sm",children:d.jsxs("div",{className:"text-center",children:[d.jsx(Nr,{className:"h-12 w-12 text-primary mx-auto mb-2"}),d.jsx("p",{className:"text-lg font-medium text-primary",children:"Drop files here"})]})}),d.jsx("div",{className:"flex-1 overflow-auto",children:d.jsxs("div",{className:"p-4 space-y-1",children:[s.map(K=>d.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-md border border-border hover:bg-accent/50 transition-colors",children:[J(K.type)?d.jsx("div",{className:"h-10 w-10 rounded bg-muted flex items-center justify-center overflow-hidden shrink-0",children:d.jsx("img",{src:`${a}/api/storage/${K.storage_id}`,alt:K.name,className:"h-full w-full object-cover",loading:"lazy"})}):d.jsx("div",{className:"h-10 w-10 rounded bg-muted flex items-center justify-center shrink-0",children:d.jsx(gS,{className:"h-5 w-5 text-muted-foreground"})}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:K.name}),d.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[d.jsx("span",{children:K.type}),d.jsx("span",{children:"·"}),d.jsx("span",{children:W2(Number(K.size))}),d.jsx("span",{children:"·"}),d.jsx("span",{children:new Date(K.created_at).toLocaleString()})]})]}),d.jsxs(Qe,{variant:"secondary",className:"text-[10px] font-mono shrink-0",children:[K.storage_id.slice(0,8),"…"]}),d.jsx(ze,{variant:"ghost",size:"icon",className:"h-7 w-7 shrink-0 text-muted-foreground hover:text-foreground",onClick:()=>{const te=document.createElement("a");te.href=`${a}/api/storage/${K.storage_id}`,te.download=K.name,te.click()},title:"Download",children:d.jsx(sS,{className:"h-3.5 w-3.5"})}),d.jsx(ze,{variant:"ghost",size:"icon",className:Ee("h-7 w-7 shrink-0",w===K.id?"text-red-400 bg-red-500/10":"text-muted-foreground hover:text-red-400"),onClick:()=>W(K.id),title:w===K.id?"Click again to confirm":"Delete",children:w===K.id?d.jsx(qc,{className:"h-3.5 w-3.5"}):d.jsx(Cc,{className:"h-3.5 w-3.5"})})]},K.id)),D&&!c&&d.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center gap-3",children:[d.jsx(zr,{className:"h-12 w-12 text-amber-500/30"}),d.jsx("h3",{className:"text-lg font-medium text-foreground",children:"App is not running"}),d.jsx("p",{className:"text-sm text-muted-foreground max-w-sm",children:"File storage is unavailable while the app is stopped or crashed. Use the banner above to restart the app."})]}),!D&&s.length===0&&!c&&d.jsxs("div",{className:"text-center text-muted-foreground py-12",children:[d.jsx(Nr,{className:"mx-auto h-12 w-12 mb-3 opacity-30"}),d.jsx("p",{className:"font-medium",children:"No files uploaded yet"}),d.jsx("p",{className:"text-xs mt-1",children:"Drag & drop files here or click Upload"}),d.jsxs(ze,{variant:"outline",size:"sm",className:"mt-3",onClick:()=>{var K;return(K=j.current)==null?void 0:K.click()},children:[d.jsx(Nr,{className:"mr-1.5 h-3.5 w-3.5"}),"Choose Files"]})]})]})})]})}const ew=[{column:"id",type:"text",nullable:!1,default:null},{column:"name",type:"text",nullable:!0,default:null},{column:"email",type:"text",nullable:!1,default:null},{column:"email_verified",type:"boolean",nullable:!1,default:null},{column:"image",type:"text",nullable:!0,default:null},{column:"created_at",type:"timestamp",nullable:!1,default:null},{column:"updated_at",type:"timestamp",nullable:!1,default:null}],tw=[{accessorKey:"id",header:"ID",minWidth:120,maxWidth:180,cellClassName:"font-mono text-[11px] text-indigo-400",cell:a=>{const r=a.getValue();return r?r.length>12?r.slice(0,12)+"…":r:""}},{accessorKey:"name",header:"Name",minWidth:150,maxWidth:250,cellClassName:a=>a?"":"text-muted-foreground italic",cell:a=>a.getValue()||"No name"},{accessorKey:"email",header:"Email",minWidth:200,maxWidth:300},{accessorKey:"email_verified",header:"Verified",minWidth:100,maxWidth:120,cellClassName:a=>a?"text-green-500 font-medium":"text-muted-foreground",cell:a=>a.getValue()?"✓ Yes":"No"},{accessorKey:"created_at",header:"Created",minWidth:170,maxWidth:220,cell:a=>{const r=a.getValue();return r?new Date(r).toLocaleString():""}}];function nw(){const{apiBase:a}=Xt(),[r,s]=S.useState([]),[i,c]=S.useState(0),[f,m]=S.useState(!0),[x,v]=S.useState(0),[h,b]=S.useState(""),[p,w]=S.useState(""),[N,j]=S.useState(null),_=50,{appStatus:D}=Ma(),[A,Z]=S.useState(!1),F=S.useCallback(async()=>{if(D&&D!=="running"){Z(!0),m(!1);return}m(!0);try{const q=new URLSearchParams;q.set("page",String(x)),q.set("limit",String(_)),h&&q.set("search",h);const W=await fetch(`${a}/_admin/auth/users?${q}`);if(!W.ok&&(W.status===502||W.status===503)){Z(!0),m(!1);return}if(!W.ok){m(!1);return}const J=await W.json(),K=(J.data||[]).map(te=>({id:te.id,name:te.name,email:te.email,email_verified:te.emailVerified,image:te.image,created_at:te.createdAt,updated_at:te.updatedAt}));s(K),c(J.total||0),Z(!1)}catch(q){console.error("Failed to fetch users:",q),s([]),c(0),Z(!0)}m(!1)},[a,x,h,D]);S.useEffect(()=>{F()},[F]),S.useEffect(()=>{const q=setTimeout(()=>{b(p),v(0)},300);return()=>clearTimeout(q)},[p]);const se=S.useCallback(q=>{j(W=>W&&W.id===q.id?null:q)},[]);S.useEffect(()=>{if(N&&r.length>0){const q=r.find(W=>W.id===N.id);j(q||null)}},[r]);const ae=Math.ceil(i/_);return d.jsxs("div",{className:"flex h-full flex-col",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(mh,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("h2",{className:"font-semibold text-foreground",children:"Auth"}),d.jsxs(Qe,{variant:"outline",className:"text-xs border-border text-muted-foreground",children:[i," users"]})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs("div",{className:"relative",children:[d.jsx(Gc,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground"}),d.jsx("input",{type:"text",placeholder:"Search users...",value:p,onChange:q=>w(q.target.value),className:"h-8 w-48 rounded-md border border-border bg-background pl-8 pr-3 text-xs text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-primary/50"})]}),d.jsx(ze,{variant:"ghost",size:"sm",onClick:F,className:"text-muted-foreground hover:text-foreground",children:d.jsx(_a,{className:"h-3.5 w-3.5"})})]})]}),d.jsxs("div",{className:"flex-1 min-h-0 relative overflow-hidden",children:[A&&!f?d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center",children:[d.jsx(mh,{className:"h-12 w-12 text-amber-500/30 mb-4"}),d.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:"App is not running"}),d.jsx("p",{className:"text-sm text-muted-foreground max-w-sm",children:"Auth users cannot be loaded while the app is stopped or crashed. Use the banner above to restart the app."})]}):r.length===0&&!f?d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center",children:[d.jsx(XS,{className:"h-12 w-12 text-muted-foreground/30 mb-4"}),d.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:h?"No users found":"No users registered yet"}),d.jsx("p",{className:"text-sm text-muted-foreground max-w-sm",children:h?`No users match "${h}". Try a different search term.`:"Use POST /api/auth/signup to register users."})]}):d.jsx(Ep,{data:r,columns:tw,loading:f,onRowClick:se}),N&&d.jsx("div",{className:"absolute top-0 right-0 h-full z-10 shadow-2xl animate-in slide-in-from-right duration-200",children:d.jsx(zp,{row:N,columns:ew,tableName:"user",onClose:()=>j(null),onDataChanged:F})})]}),d.jsxs("div",{className:"flex items-center justify-between border-t border-border px-4 py-2 bg-background",children:[d.jsx("span",{className:"text-xs text-muted-foreground",children:i===0?"No users":`${x*_+1}–${Math.min((x+1)*_,i)} of ${i}`}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs("span",{className:"text-xs text-muted-foreground",children:["Page ",x+1," of ",Math.max(ae,1)]}),d.jsxs("div",{className:"flex gap-1",children:[d.jsx(ze,{variant:"outline",size:"icon",className:"h-7 w-7 border-border",disabled:x===0,onClick:()=>v(q=>q-1),children:d.jsx(xp,{className:"h-3.5 w-3.5"})}),d.jsx(ze,{variant:"outline",size:"icon",className:"h-7 w-7 border-border",disabled:x+1>=ae,onClick:()=>v(q=>q+1),children:d.jsx(Yl,{className:"h-3.5 w-3.5"})})]})]})]})]})}function aw(a){const r=a.trim().split(/\s+/);if(r.length<5)return a;const[s,i,c,f,m]=r;if(s==="*"&&i==="*")return"Every minute";if(i==="*"&&s.startsWith("*/"))return`Every ${s.slice(2)} minutes`;if(s==="0"&&i==="*")return"Every hour";if(i.startsWith("*/"))return`Every ${i.slice(2)} hours`;if(s==="0"&&i==="0"&&c==="*"&&f==="*"&&m==="*")return"Daily at midnight";if(s==="0"&&c==="*"&&f==="*"&&m==="*")return`Daily at ${i}:00`;if(s!=="*"&&i!=="*"&&c==="*"&&f==="*"&&m==="*")return`Daily at ${i}:${s.padStart(2,"0")}`;if(m==="1-5"||m==="MON-FRI")return`Weekdays at ${i}:${s.padStart(2,"0")}`;const v={0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday",7:"Sunday",SUN:"Sunday",MON:"Monday",TUE:"Tuesday",WED:"Wednesday",THU:"Thursday",FRI:"Friday",SAT:"Saturday"}[m.toUpperCase()];return v&&c==="*"&&f==="*"?`Every ${v} at ${i}:${s.padStart(2,"0")}`:c==="1"&&f==="*"?`Monthly on the 1st at ${i}:${s.padStart(2,"0")}`:a}function lw(){const{apiBase:a}=Xt(),[r,s]=S.useState(null),{appStatus:i}=Ma(),[c,f]=S.useState(!1),m=S.useCallback(async()=>{if(i&&i!=="running"){f(!0);return}try{const x=await fetch(`${a}/_admin/scheduler`);if(!x.ok&&(x.status===502||x.status===503)){f(!0);return}if(!x.ok)return;s(await x.json()),f(!1)}catch(x){console.error("Failed to fetch scheduler:",x),f(!0)}},[a,i]);return S.useEffect(()=>{if(c||i&&i!=="running")return;m();const x=setInterval(m,5e3);return()=>clearInterval(x)},[m,c,i]),c||i&&i!=="running"?d.jsxs("div",{className:"flex h-full flex-col",children:[d.jsx("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Xn,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("h2",{className:"font-semibold text-foreground",children:"Scheduler"})]})}),d.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-center p-8",children:[d.jsx(Xn,{className:"h-12 w-12 text-amber-500/30 mb-4"}),d.jsx("h3",{className:"text-lg font-medium text-foreground mb-1",children:"App is not running"}),d.jsx("p",{className:"text-sm text-muted-foreground max-w-sm",children:"Scheduler info is unavailable while the app is stopped or crashed. Use the banner above to restart the app."})]})]}):r?d.jsxs("div",{className:"flex h-full flex-col",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Xn,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("h2",{className:"font-semibold text-foreground",children:"Scheduler"})]}),d.jsx(ze,{variant:"ghost",size:"sm",onClick:m,className:"text-muted-foreground",children:d.jsx(_a,{className:"h-3.5 w-3.5"})})]}),d.jsxs("div",{className:"flex-1 overflow-auto p-4 space-y-6",children:[d.jsxs("div",{children:[d.jsxs("h3",{className:"text-sm font-medium text-muted-foreground mb-3 flex items-center gap-2",children:[d.jsx(GS,{className:"h-3.5 w-3.5"}),"Cron Jobs",d.jsx(Qe,{variant:"outline",className:"text-[10px]",children:r.crons.length})]}),d.jsxs("div",{className:"space-y-1",children:[r.crons.map((x,v)=>d.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md border border-border hover:bg-accent/50 transition-colors",children:[d.jsx(Np,{className:"h-3.5 w-3.5 text-green-500 shrink-0"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-mono font-medium truncate",children:x.name}),d.jsx("p",{className:"text-xs text-muted-foreground",children:aw(x.pattern)})]}),d.jsx(Qe,{variant:"secondary",className:"font-mono text-[10px] shrink-0",children:x.pattern})]},`${x.name}-${v}`)),r.crons.length===0&&d.jsxs("div",{className:"text-center text-muted-foreground py-8",children:[d.jsx(q1,{className:"mx-auto h-10 w-10 mb-2 opacity-30"}),d.jsx("p",{className:"text-sm",children:"No cron jobs registered"}),d.jsx("p",{className:"text-xs mt-1",children:"Define cron jobs in gencow/crons.ts"})]})]})]}),d.jsxs("div",{children:[d.jsxs("h3",{className:"text-sm font-medium text-muted-foreground mb-3 flex items-center gap-2",children:[d.jsx(Xn,{className:"h-3.5 w-3.5"}),"Pending Scheduled Jobs",d.jsx(Qe,{variant:"outline",className:"text-[10px]",children:r.pendingJobs.length})]}),d.jsxs("div",{className:"space-y-1",children:[r.pendingJobs.map(x=>d.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md border border-border hover:bg-accent/50 transition-colors",children:[d.jsx(Xn,{className:"h-3.5 w-3.5 text-yellow-500 animate-pulse shrink-0"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-mono font-medium truncate",children:x.action}),d.jsxs("p",{className:"text-xs text-muted-foreground",children:["Scheduled for ",new Date(x.scheduledAt).toLocaleString()]})]}),d.jsx(Qe,{variant:"secondary",className:"text-[10px] shrink-0",children:(()=>{const v=new Date(x.scheduledAt).getTime()-Date.now();return v<0?"overdue":v<6e4?`${Math.round(v/1e3)}s`:v<36e5?`${Math.round(v/6e4)}m`:`${Math.round(v/36e5)}h`})()})]},x.id)),r.pendingJobs.length===0&&d.jsx("p",{className:"text-xs text-muted-foreground text-center py-4",children:"No pending scheduled jobs"})]})]})]})]}):null}function sw(){const[a,r]=S.useState([]),[s,i]=S.useState(!0),c=Xt(x=>x.apiBase),f=S.useCallback(async()=>{try{const x=await fetch(`${c}/_admin/settings/env-vars`);x.ok&&r(await x.json())}catch{}i(!1)},[c]);if(S.useEffect(()=>{f()},[f]),s)return d.jsx(L2,{cards:2});const m=a.filter(x=>x.source==="env"||x.source==="both");return d.jsxs("div",{className:"space-y-3",children:[d.jsxs("div",{className:"flex items-start gap-2 text-xs bg-blue-500/10 border border-blue-500/20 rounded px-3 py-2 text-blue-600 dark:text-blue-400",children:[d.jsx(xS,{className:"h-3.5 w-3.5 mt-0.5 shrink-0"}),d.jsxs("div",{children:[d.jsx("span",{className:"font-medium",children:"읽기 전용"})," — 환경변수는"," ",d.jsx("code",{className:"bg-blue-500/10 px-1 py-0.5 rounded font-mono",children:".env"})," 파일을 직접 편집하세요. 클라우드에서는"," ",d.jsx("code",{className:"bg-blue-500/10 px-1 py-0.5 rounded font-mono",children:"gencow env set KEY=VALUE"})," 를 사용하세요."]})]}),m.length>0?d.jsxs("div",{className:"border border-border rounded-lg overflow-hidden",children:[d.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-muted/50 border-b border-border",children:[d.jsx(fS,{className:"h-3.5 w-3.5 text-muted-foreground"}),d.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:".env"})]}),d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"bg-muted/30 border-b border-border",children:[d.jsx("th",{className:"text-left px-3 py-2 font-medium text-muted-foreground text-xs",children:"Name"}),d.jsx("th",{className:"text-left px-3 py-2 font-medium text-muted-foreground text-xs",children:"Value"})]})}),d.jsx("tbody",{children:m.map(x=>d.jsxs("tr",{className:"border-b last:border-b-0 border-border",children:[d.jsx("td",{className:"px-3 py-2",children:d.jsx("code",{className:"text-xs font-mono bg-muted px-1.5 py-0.5 rounded",children:x.name})}),d.jsx("td",{className:"px-3 py-2",children:d.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:x.maskedValue})})]},x.name))})]})]}):d.jsx("div",{className:"text-xs text-muted-foreground text-center py-6 border border-dashed border-border rounded-lg",children:"No environment variables in .env file"})]})}function iw(a){if(!a||a==="unknown")return"Unknown";const r=a.match(/^(PostgreSQL|PGlite)\s*[\d.]+/i);return r?r[0]:a.split(" on ")[0]||a}const rw={vector:"bg-purple-500/15 text-purple-600",pg_search:"bg-blue-500/15 text-blue-600",pgmq:"bg-amber-500/15 text-amber-600",plpgsql:"bg-muted text-muted-foreground"};function ow({appStatus:a}={}){const{status:r,fetchStatus:s}=Xt(),i=Ma(),c=a||i.appStatus;if(S.useEffect(()=>{if(c&&c!=="running")return;s();const j=setInterval(s,5e3);return()=>clearInterval(j)},[s,c]),!r)return null;const f=r.memory,m=r.platform,x=Math.floor(r.uptime)||0,v=Math.floor(x/3600),h=Math.floor(x%3600/60),b=x%60,p=iw((m==null?void 0:m.dbVersion)||""),w=(m==null?void 0:m.extensions)||[],N=[{label:"Status",value:a==="crashed"?d.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[d.jsx("span",{className:"h-2 w-2 rounded-full bg-red-500"}),d.jsx("span",{className:"text-red-500 font-medium",children:"Crashed"})]}):a==="stopped"?d.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[d.jsx("span",{className:"h-2 w-2 rounded-full bg-muted-foreground"}),d.jsx("span",{className:"text-muted-foreground font-medium",children:"Stopped"})]}):a==="idle"?d.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[d.jsx("span",{className:"h-2 w-2 rounded-full bg-blue-400"}),d.jsx("span",{className:"text-blue-400 font-medium",children:"Idle"})]}):a==="failed"?d.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[d.jsx("span",{className:"h-2 w-2 rounded-full bg-orange-500"}),d.jsx("span",{className:"text-orange-500 font-medium",children:"Failed"})]}):d.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[d.jsx("span",{className:"h-2 w-2 rounded-full bg-green-500 animate-pulse"}),d.jsx("span",{className:"text-green-600 font-medium",children:"Running"})]})},{label:"Uptime",value:d.jsxs("span",{className:"font-mono",children:[v,"h ",h,"m ",b,"s"]})},{label:"Memory",value:d.jsxs("span",{children:[d.jsxs("span",{className:"font-mono",children:[Math.round(((f==null?void 0:f.rss)||0)/1024/1024)," MB"]}),d.jsxs("span",{className:"text-muted-foreground ml-2",children:["(Heap ",Math.round(((f==null?void 0:f.heapUsed)||0)/1024/1024)," MB)"]})]})},{label:"Runtime",value:d.jsx(Qe,{variant:"secondary",children:m==null?void 0:m.runtime})},{label:"Framework",value:d.jsxs("span",{children:[m==null?void 0:m.framework," + ",m==null?void 0:m.orm]})},{label:"Database",value:d.jsx("span",{children:p})},{label:"Extensions",value:w.length===0?d.jsx("span",{className:"text-muted-foreground",children:"No extensions"}):d.jsx("span",{className:"inline-flex flex-wrap gap-1",children:w.map(j=>d.jsxs(Qe,{variant:"secondary",className:rw[j.name]||"",children:[j.name," ",j.version]},j.name))})}];return d.jsxs("div",{className:"space-y-3",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(jS,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("h2",{className:"text-sm font-semibold text-foreground",children:"Server Status"})]}),d.jsx("div",{className:"rounded-lg border border-border overflow-hidden",children:d.jsx("table",{className:"w-full text-sm",children:d.jsx("tbody",{className:"divide-y divide-border",children:N.map(j=>d.jsxs("tr",{children:[d.jsx("td",{className:"px-4 py-2.5 text-muted-foreground w-28 whitespace-nowrap bg-muted/30",children:j.label}),d.jsx("td",{className:"px-4 py-2.5 text-foreground",children:j.value})]},j.label))})})})]})}function fc(a){if(a===0)return"0 B";const r=1024,s=["B","KB","MB","GB"],i=Math.floor(Math.log(a)/Math.log(r));return`${(a/Math.pow(r,i)).toFixed(1)} ${s[i]}`}function Sh(a){return a<1e3?`${a.toFixed(0)} ms`:a<6e4?`${(a/1e3).toFixed(1)} sec`:`${(a/6e4).toFixed(1)} min`}function Is(a){return a=Math.round(a),a>=1e6?`${(a/1e6).toFixed(1)}M`:a>=1e4?`${(a/1e3).toFixed(1)}K`:a.toLocaleString()}function wh(a){return a<1e3?`${a} tokens`:a<1e6?`${(a/1e3).toFixed(1)}K tokens`:`${(a/1e6).toFixed(2)}M tokens`}const uw=[{key:"apiCalls",label:"API Calls",icon:Kl,format:a=>`${a.toLocaleString()} calls`},{key:"functionMs",label:"Function Time",icon:Fl,format:Sh},{key:"realtimeMs",label:"Realtime",icon:Xn,format:Sh},{key:"dbStorageBytes",label:"DB Storage",icon:ja,format:fc},{key:"fileStorageBytes",label:"File Storage",icon:Sp,format:fc},{key:"bandwidthBytes",label:"Bandwidth",icon:vp,format:fc},{key:"aiInputTokens",label:"AI Input",icon:fh,format:wh},{key:"aiOutputTokens",label:"AI Output",icon:fh,format:wh}],cw={apiCalls:"API Calls",functionMs:"Functions",realtimeMs:"Realtime",dbStorage:"DB Storage",fileStorage:"File Storage",bandwidth:"Bandwidth",ai:"AI",staticStorage:"Static Storage",staticBandwidth:"Static Bandwidth",staticRequests:"Static Requests"};function dw({showCredits:a=!0}={}){const{apiBase:r}=Ma(),[s,i]=S.useState(null),[c,f]=S.useState(!0),[m,x]=S.useState(null),v=S.useCallback(async()=>{f(!0);try{const h=await fetch(`${r}/_admin/usage`);if(!h.ok){let p;try{const w=await h.json();p=w.hint||w.error||`서버 오류 (${h.status})`}catch{p=h.status===502?"앱 서버에 연결할 수 없습니다. 앱이 실행 중인지 확인해주세요.":h.status===503?"앱 서버가 준비 중입니다. 잠시 후 다시 시도해주세요.":`서버 오류 (${h.status})`}i({available:!1,error:p});return}const b=await h.json();i(b),x(new Date)}catch{i({available:!1,error:"Failed to connect to server"})}finally{f(!1)}},[r]);return S.useEffect(()=>{v()},[v]),d.jsxs("div",{className:"flex h-full flex-col",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Vc,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("h2",{className:"font-semibold text-foreground",children:"Usage"})]}),d.jsx(ze,{variant:"ghost",size:"sm",onClick:v,disabled:c,className:"text-muted-foreground hover:text-foreground",children:d.jsx(_a,{className:`h-3.5 w-3.5 ${c?"animate-spin":""}`})})]}),d.jsx("div",{className:"flex-1 overflow-y-auto",children:d.jsxs("div",{className:"p-6 space-y-6 max-w-4xl",children:[c&&!s&&d.jsx("div",{className:"flex items-center justify-center py-12",children:d.jsx(_a,{className:"h-6 w-6 animate-spin text-muted-foreground"})}),s&&!s.available&&d.jsx(mw,{message:s.message||s.error}),s&&s.available&&d.jsxs(d.Fragment,{children:[d.jsx(fw,{appId:s.appId,apiBase:r}),a&&d.jsx(gw,{credits:s.credits,plan:s.plan,breakdown:s.breakdown,spendCap:s.spendCap}),s.period&&d.jsxs("div",{className:"text-xs text-muted-foreground",children:["Current Period: ",new Date(s.period.start).toLocaleDateString()," – ",new Date(s.period.end).toLocaleDateString()]}),d.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:uw.map(h=>{var w;const b=((w=s.usage)==null?void 0:w[h.key])||0,p=h.icon;return d.jsxs("div",{className:"rounded-lg border border-border bg-card p-4 space-y-1",children:[d.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[d.jsx(p,{className:"h-3.5 w-3.5"}),h.label]}),d.jsx("div",{className:"text-lg font-semibold text-foreground",children:h.format(b)})]},h.key)})}),s.breakdown&&d.jsx(hw,{breakdown:s.breakdown}),m&&d.jsxs("div",{className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[d.jsx(Xn,{className:"h-3 w-3"}),"Last updated: ",m.toLocaleTimeString()]})]})]})})]})}function fw({appId:a,apiBase:r}){var b;const i=r.includes("/_proxy/")?(b=r.split("/_proxy/")[1])==null?void 0:b.split("/")[0]:a,c=i?`https://${i}.gencow.app`:null,f=c?`${c}/api`:null,[m,x]=S.useState(null);function v(p,w){navigator.clipboard.writeText(p),x(w),setTimeout(()=>x(null),2e3)}const h=[{label:"App URL",value:c,key:"url"},{label:"API Endpoint",value:f,key:"api"},{label:"App ID",value:a||i,key:"id"}].filter(p=>p.value);return h.length===0?null:d.jsxs("div",{className:"rounded-lg border border-border bg-card p-5 space-y-3",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Cp,{className:"h-4 w-4 text-primary"}),d.jsx("span",{className:"text-sm font-medium text-foreground",children:"Deploy Info"}),d.jsxs("div",{className:"ml-auto flex items-center gap-1.5",children:[d.jsx("div",{className:"h-2 w-2 rounded-full bg-emerald-500"}),d.jsx("span",{className:"text-xs text-emerald-500 font-medium",children:"Deployed"})]})]}),d.jsx("div",{className:"space-y-2",children:h.map(p=>d.jsxs("div",{className:"flex items-center justify-between rounded-md bg-muted/50 px-3 py-2",children:[d.jsxs("div",{className:"space-y-0.5 min-w-0 flex-1",children:[d.jsx("div",{className:"text-xs text-muted-foreground",children:p.label}),d.jsx("div",{className:"text-sm font-mono text-foreground truncate",children:p.key==="url"||p.key==="api"?d.jsx("a",{href:p.value,target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary transition-colors",children:p.value}):p.value})]}),d.jsx("button",{onClick:()=>v(p.value,p.key),className:"ml-2 shrink-0 rounded-md p-1.5 text-muted-foreground hover:bg-accent hover:text-foreground transition-colors",title:"Copy",children:m===p.key?d.jsx("span",{className:"text-xs text-emerald-500",children:"✓"}):d.jsx(Kl,{className:"h-3.5 w-3.5"})})]},p.key))})]})}function mw({message:a}){return d.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center space-y-4",children:[d.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-primary/10",children:d.jsx(Cp,{className:"h-6 w-6 text-primary"})}),d.jsxs("div",{className:"space-y-1",children:[d.jsx("h3",{className:"font-medium text-foreground",children:"Usage Metering"}),d.jsx("p",{className:"text-sm text-muted-foreground max-w-xs",children:a||"Usage metering is available for deployed apps. Deploy with: gencow deploy"})]})]})}function gw({credits:a,plan:r,breakdown:s,spendCap:i}){if(!a)return null;const c=!a.total||a.total<=0,f=s?Object.values(s).reduce((b,p)=>b+p,0):0,m=Math.max(f,a.used),x=c?0:m/a.total*100,v=Math.max(0,100-x);let h="bg-emerald-500";return c||(v<20?h="bg-red-500":v<50&&(h="bg-amber-500")),d.jsxs("div",{className:"rounded-lg border border-border bg-card p-5 space-y-3",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Fl,{className:"h-4 w-4 text-primary"}),d.jsx("span",{className:"text-sm font-medium text-foreground",children:"Credits"})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[i&&d.jsxs("span",{className:`rounded-full px-2 py-0.5 text-xs font-medium ${i.enabled?"bg-amber-500/10 text-amber-600":"bg-emerald-500/10 text-emerald-600"}`,children:["Spend Cap ",i.enabled?"ON":"OFF"]}),r&&d.jsx("span",{className:"rounded-full bg-primary/10 px-2.5 py-0.5 text-xs font-medium text-primary",children:r})]})]}),d.jsxs("div",{className:"space-y-1.5",children:[!c&&d.jsx("div",{className:"h-2.5 w-full rounded-full bg-muted overflow-hidden",children:d.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${h}`,style:{width:`${Math.min(x,100)}%`}})}),d.jsxs("div",{className:"flex items-center justify-between text-xs",children:[d.jsxs("span",{className:"text-muted-foreground",children:[Is(m)," ",c?"cr used":`/ ${Is(a.total)} cr used`]}),d.jsx("span",{className:"font-medium text-foreground",children:c?"Unlimited":`${Is(Math.max(0,a.total-m))} cr remaining`})]})]})]})}function hw({breakdown:a}){const r=Object.entries(a).filter(([,c])=>c>0);if(r.length===0)return null;const s=r.reduce((c,[,f])=>c+f,0),i=Math.max(...r.map(([,c])=>c));return d.jsxs("div",{className:"rounded-lg border border-border bg-card p-5 space-y-3",children:[d.jsx("h3",{className:"text-sm font-medium text-foreground",children:"Credit Breakdown"}),d.jsx("div",{className:"space-y-2",children:r.sort(([,c],[,f])=>f-c).map(([c,f])=>d.jsxs("div",{className:"space-y-1",children:[d.jsxs("div",{className:"flex items-center justify-between text-xs",children:[d.jsx("span",{className:"text-muted-foreground",children:cw[c]||c}),d.jsxs("span",{className:"font-medium text-foreground",children:[Is(f)," cr"]})]}),d.jsx("div",{className:"h-1.5 w-full rounded-full bg-muted overflow-hidden",children:d.jsx("div",{className:"h-full rounded-full bg-primary/60 transition-all duration-500",style:{width:`${f/i*100}%`}})})]},c))}),d.jsxs("div",{className:"flex items-center justify-between border-t border-border pt-2 text-xs",children:[d.jsx("span",{className:"text-muted-foreground",children:"Total"}),d.jsxs("span",{className:"font-semibold text-foreground",children:[Is(s)," cr"]})]})]})}function pw({children:a,appStatus:r}={}){return d.jsxs("div",{className:"flex h-full flex-col",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 h-12 bg-background",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx($c,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("h2",{className:"font-semibold text-foreground",children:"Settings"})]}),d.jsx("div",{className:"h-8","aria-hidden":"true"})]}),d.jsx("div",{className:"flex-1 overflow-y-auto",children:d.jsxs("div",{className:"p-6 space-y-6 max-w-4xl",children:[d.jsx(sw,{}),d.jsx(ow,{appStatus:r}),a,d.jsx(vw,{})]})})]})}function vw(){const[a,r]=S.useState(!1),[s,i]=S.useState(""),[c,f]=S.useState(!1),m=async()=>{f(!0);const x=Xt.getState().apiBase;try{const v=await fetch(`${x}/_admin/reset`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({confirm:"delete all data"})}),h=await v.json().catch(()=>({}));if(!v.ok){pt.error(h.error||"Reset failed");return}const b=Array.isArray(h.truncated)?h.truncated.length:0,p=h.seeded?" + seed executed":"";pt.success(`✅ ${b} tables truncated${p}`)}catch{pt.error("Failed to connect to server")}finally{f(!1),r(!1),i("")}};return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"rounded-lg border border-destructive/30 bg-destructive/5",children:d.jsx("div",{className:"p-5",children:d.jsxs("div",{className:"flex items-start gap-3",children:[d.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-md bg-destructive/10 text-destructive",children:d.jsx(gh,{className:"h-4.5 w-4.5"})}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("h3",{className:"text-sm font-semibold text-destructive",children:"Reset Database"}),d.jsxs("p",{className:"text-sm text-muted-foreground mt-1 leading-relaxed",children:["Truncate all user data tables and re-run"," ",d.jsx("code",{className:"bg-muted px-1 py-0.5 rounded text-xs font-mono",children:"seed.ts"}),". System tables (auth, files) are preserved."," ",d.jsx("span",{className:"text-destructive font-medium",children:"This action cannot be undone."})]})]}),d.jsx(ze,{variant:"destructive",size:"sm",onClick:()=>r(!0),className:"shrink-0",children:"Reset DB"})]})})}),a&&d.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[d.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:()=>{r(!1),i("")}}),d.jsx("div",{className:"relative z-10 w-full max-w-md mx-4 rounded-lg border border-border bg-background shadow-2xl animate-in fade-in zoom-in-95 duration-200",children:d.jsxs("div",{className:"p-6 space-y-4",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-destructive/10",children:d.jsx(gh,{className:"h-5 w-5 text-destructive"})}),d.jsxs("div",{children:[d.jsx("h3",{className:"text-base font-semibold text-foreground",children:"Are you absolutely sure?"}),d.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:"This will permanently delete all data in user tables."})]})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsxs("label",{className:"text-sm text-muted-foreground",children:["Type"," ",d.jsx("span",{className:"font-mono font-semibold text-foreground px-1 py-0.5 bg-muted rounded",children:"delete all data"})," ","to confirm:"]}),d.jsx("input",{type:"text",value:s,onChange:x=>i(x.target.value),placeholder:"delete all data",className:"w-full rounded-md border border-border bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground/50 focus:outline-none focus:ring-2 focus:ring-destructive/50 focus:border-destructive",autoFocus:!0,onKeyDown:x=>{x.key==="Enter"&&s==="delete all data"&&m(),x.key==="Escape"&&(r(!1),i(""))}})]}),d.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[d.jsx(ze,{variant:"ghost",size:"sm",onClick:()=>{r(!1),i("")},children:"Cancel"}),d.jsx(ze,{variant:"destructive",size:"sm",disabled:s!=="delete all data"||c,onClick:m,children:c?"Resetting...":"I understand, reset database"})]})]})})]})]})}const Tp=S.createContext(void 0),Nh="gencow-theme";function Ap(){return typeof window>"u"||window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function mc(a){return a==="system"?Ap():a}function gc(a){const r=document.documentElement;r.classList.remove("light","dark"),r.classList.add(a)}function xw({children:a,defaultTheme:r="dark"}){const[s,i]=S.useState(()=>typeof window>"u"?r:localStorage.getItem(Nh)||r),[c,f]=S.useState(()=>mc(s)),m=S.useCallback(x=>{i(x),localStorage.setItem(Nh,x);const v=mc(x);f(v),gc(v)},[]);return S.useEffect(()=>{const x=mc(s);if(f(x),gc(x),s==="system"){const v=window.matchMedia("(prefers-color-scheme: dark)"),h=()=>{const b=Ap();f(b),gc(b)};return v.addEventListener("change",h),()=>v.removeEventListener("change",h)}},[s]),d.jsx(Tp.Provider,{value:{theme:s,setTheme:m,resolvedTheme:c},children:a})}function Dp(){const a=S.useContext(Tp);if(!a)throw new Error("useTheme must be used within a ThemeProvider");return a}function yw(){const{theme:a,setTheme:r}=Dp();return d.jsx(ze,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>r(a==="dark"?"light":"dark"),title:a==="dark"?"Switch to light mode":"Switch to dark mode",children:a==="dark"?d.jsx(BS,{className:"h-4 w-4"}):d.jsx(ES,{className:"h-4 w-4"})})}const bw=[{path:"/usage",label:"Usage",icon:Vc},{path:"/data",label:"Data",icon:ja},{path:"/functions",label:"Functions",icon:Ca},{path:"/logs",label:"Logs",icon:Ps},{path:"/files",label:"File Storage",icon:zr},{path:"/scheduler",label:"Scheduler",icon:Xn},{path:"/auth",label:"Auth",icon:Rp},{path:"/hosting",label:"Hosting",icon:Kl,cloudOnly:!0},{path:"/backups",label:"Backups",icon:Sp,cloudOnly:!0},{path:"/settings",label:"Settings",icon:$c}];function Sw({basePath:a="",hideLogo:r=!1,isCloud:s}){const i=hn().pathname,c=s??r,f=bw.filter(m=>!m.cloudOnly||c);return d.jsxs("aside",{className:Ee("flex flex-col bg-card",r?"flex-1":"h-screen w-60 border-r border-border"),children:[!r&&d.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-4 h-12",children:[d.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-primary",children:d.jsx(Fl,{className:"h-4 w-4 text-primary-foreground"})}),d.jsxs("div",{children:[d.jsx("h1",{className:"text-sm font-bold",children:"Gencow"}),d.jsx("p",{className:"text-xs text-muted-foreground",children:"Dashboard"})]})]}),d.jsx("nav",{className:"flex flex-1 flex-col gap-1 p-2",children:f.map(m=>{const x=`${a}${m.path}`,v=i.startsWith(x),h=m.icon;return d.jsxs(Dc,{to:x,className:Ee("flex items-center gap-3 rounded-md px-3 py-2 text-sm transition-colors",v?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:[d.jsx(h,{className:"h-4 w-4"}),m.label]},m.path)})}),d.jsxs("div",{className:"border-t border-border p-3 space-y-2",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[d.jsx("div",{className:"h-2 w-2 rounded-full bg-green-500"}),"Connected"]}),d.jsx(yw,{})]}),d.jsxs("button",{onClick:()=>window.dispatchEvent(new KeyboardEvent("keydown",{key:"k",metaKey:!0})),className:"flex w-full items-center gap-2 rounded-md border border-border px-2.5 py-1.5 text-xs text-muted-foreground hover:bg-accent hover:text-foreground transition-colors",children:[d.jsx(Gc,{className:"h-3 w-3"}),d.jsx("span",{className:"flex-1 text-left",children:"Search..."}),d.jsx("kbd",{className:"rounded border border-border bg-muted px-1 text-[10px]",children:"⌘K"})]})]})]})}const Ch=[{id:"data",label:"Go to Data",icon:ja,href:"/data",group:"Navigation"},{id:"functions",label:"Go to Functions",icon:Ca,href:"/functions",group:"Navigation"},{id:"logs",label:"Go to Logs",icon:Ps,href:"/logs",group:"Navigation"},{id:"files",label:"Go to File Storage",icon:zr,href:"/files",group:"Navigation"},{id:"scheduler",label:"Go to Scheduler",icon:Xn,href:"/scheduler",group:"Navigation"},{id:"auth",label:"Go to Auth",icon:Rp,href:"/auth",group:"Navigation"},{id:"usage",label:"Go to Usage",icon:Vc,href:"/usage",group:"Navigation"},{id:"settings",label:"Go to Settings",icon:$c,href:"/settings",group:"Navigation"}];function ww(){const[a,r]=S.useState(!1),[s,i]=S.useState(""),[c,f]=S.useState(0),m=S.useRef(null),x=ti();S.useEffect(()=>{function w(N){(N.metaKey||N.ctrlKey)&&N.key==="k"&&(N.preventDefault(),r(j=>!j)),N.key==="Escape"&&r(!1)}return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[]),S.useEffect(()=>{a&&(i(""),f(0),setTimeout(()=>{var w;return(w=m.current)==null?void 0:w.focus()},50))},[a]);const v=S.useMemo(()=>{if(!s.trim())return Ch;const w=s.toLowerCase();return Ch.filter(N=>N.label.toLowerCase().includes(w)||N.id.toLowerCase().includes(w))},[s]);S.useEffect(()=>{f(0)},[v.length]);const h=S.useCallback(w=>{r(!1),w.href&&x(w.href)},[x]);function b(w){w.key==="ArrowDown"?(w.preventDefault(),f(N=>Math.min(N+1,v.length-1))):w.key==="ArrowUp"?(w.preventDefault(),f(N=>Math.max(N-1,0))):w.key==="Enter"&&v[c]&&(w.preventDefault(),h(v[c]))}if(!a)return null;const p=new Map;for(const w of v){const N=p.get(w.group)||[];N.push(w),p.set(w.group,N)}return d.jsxs("div",{className:"fixed inset-0 z-[100] flex items-start justify-center pt-[20vh]",onClick:()=>r(!1),children:[d.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm"}),d.jsxs("div",{className:"relative w-full max-w-lg rounded-xl border border-border bg-card shadow-2xl overflow-hidden",onClick:w=>w.stopPropagation(),children:[d.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-4 py-3",children:[d.jsx(Gc,{className:"h-4 w-4 text-muted-foreground shrink-0"}),d.jsx("input",{ref:m,value:s,onChange:w=>i(w.target.value),onKeyDown:b,placeholder:"Type a command or search...",className:"flex-1 bg-transparent text-sm text-foreground placeholder:text-muted-foreground focus:outline-none",spellCheck:!1}),d.jsx("kbd",{className:"hidden sm:inline-flex items-center gap-0.5 rounded border border-border bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground",children:"ESC"})]}),d.jsxs("div",{className:"max-h-72 overflow-auto p-2",children:[v.length===0&&d.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"No results found"}),Array.from(p.entries()).map(([w,N])=>d.jsxs("div",{children:[d.jsx("div",{className:"px-2 py-1.5 text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:w}),N.map(j=>{const _=v.indexOf(j),D=j.icon;return d.jsxs("button",{className:Ee("flex w-full items-center gap-3 rounded-md px-3 py-2 text-sm transition-colors",_===c?"bg-primary/10 text-primary":"text-foreground hover:bg-accent"),onClick:()=>h(j),onMouseEnter:()=>f(_),children:[d.jsx(D,{className:"h-4 w-4 shrink-0"}),d.jsx("span",{children:j.label})]},j.id)})]},w))]}),d.jsxs("div",{className:"flex items-center justify-between border-t border-border px-4 py-2 text-[10px] text-muted-foreground",children:[d.jsx("span",{children:"↑↓ Navigate"}),d.jsx("span",{children:"↵ Select"}),d.jsx("span",{children:"ESC Close"})]})]})]})}function Nw(){const{resolvedTheme:a}=Dp();return d.jsxs("div",{className:"flex h-screen bg-background text-foreground",children:[d.jsx(Sw,{}),d.jsx("main",{className:"flex-1 overflow-hidden",children:d.jsx(Wx,{})}),d.jsx(ww,{}),d.jsx(w2,{theme:a,position:"bottom-right",richColors:!0,closeButton:!0,style:{zIndex:50},toastOptions:{style:{background:"var(--card)",border:"1px solid var(--border)",color:"var(--foreground)",opacity:1}}})]})}function Cw(){return d.jsx(ey,{children:d.jsxs(fn,{element:d.jsx(Nw,{}),children:[d.jsx(fn,{index:!0,element:d.jsx(Ix,{to:"/data",replace:!0})}),d.jsx(fn,{path:"data",element:d.jsx(U2,{})}),d.jsx(fn,{path:"functions",element:d.jsx(G2,{})}),d.jsx(fn,{path:"logs",element:d.jsx(I2,{})}),d.jsx(fn,{path:"files",element:d.jsx(P2,{})}),d.jsx(fn,{path:"scheduler",element:d.jsx(lw,{})}),d.jsx(fn,{path:"auth",element:d.jsx(nw,{})}),d.jsx(fn,{path:"settings",element:d.jsx(pw,{})}),d.jsx(fn,{path:"usage",element:d.jsx(dw,{})})]})})}Pv.createRoot(document.getElementById("root")).render(d.jsx(S.StrictMode,{children:d.jsx(jy,{basename:"/_dashboard",children:d.jsx(xw,{defaultTheme:"dark",children:d.jsx(Cw,{})})})}));