meshy-node 0.6.10 → 0.7.2

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.
@@ -0,0 +1,321 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-BPjhUitz.js","assets/DashboardShared-BH63Fv3w.js","assets/play-b-4tjLEk.js","assets/DashboardPage-i714dDoR.css","assets/SharedConversationPage-B-16RtZR.js"])))=>i.map(i=>d[i]);
2
+ function m2(n,l){for(var o=0;o<l.length;o++){const i=l[o];if(typeof i!="string"&&!Array.isArray(i)){for(const c in i)if(c!=="default"&&!(c in n)){const d=Object.getOwnPropertyDescriptor(i,c);d&&Object.defineProperty(n,c,d.get?d:{enumerable:!0,get:()=>i[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))i(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&i(m)}).observe(document,{childList:!0,subtree:!0});function o(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function i(c){if(c.ep)return;c.ep=!0;const d=o(c);fetch(c.href,d)}})();function t0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var wd={exports:{}},Oo={};/**
3
+ * @license React
4
+ * react-jsx-runtime.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var Qg;function h2(){if(Qg)return Oo;Qg=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function o(i,c,d){var m=null;if(d!==void 0&&(m=""+d),c.key!==void 0&&(m=""+c.key),"key"in c){d={};for(var h in c)h!=="key"&&(d[h]=c[h])}else d=c;return c=d.ref,{$$typeof:n,type:i,key:m,ref:c!==void 0?c:null,props:d}}return Oo.Fragment=l,Oo.jsx=o,Oo.jsxs=o,Oo}var Kg;function p2(){return Kg||(Kg=1,wd.exports=h2()),wd.exports}var f=p2(),Ed={exports:{}},Te={};/**
11
+ * @license React
12
+ * react.production.js
13
+ *
14
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var Zg;function g2(){if(Zg)return Te;Zg=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),w=Symbol.iterator;function T(R){return R===null||typeof R!="object"?null:(R=w&&R[w]||R["@@iterator"],typeof R=="function"?R:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,C={};function A(R,Y,Q){this.props=R,this.context=Y,this.refs=C,this.updater=Q||N}A.prototype.isReactComponent={},A.prototype.setState=function(R,Y){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,Y,"setState")},A.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function j(){}j.prototype=A.prototype;function O(R,Y,Q){this.props=R,this.context=Y,this.refs=C,this.updater=Q||N}var z=O.prototype=new j;z.constructor=O,E(z,A.prototype),z.isPureReactComponent=!0;var X=Array.isArray;function K(){}var V={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function le(R,Y,Q){var W=Q.ref;return{$$typeof:n,type:R,key:Y,ref:W!==void 0?W:null,props:Q}}function ie(R,Y){return le(R.type,Y,R.props)}function me(R){return typeof R=="object"&&R!==null&&R.$$typeof===n}function fe(R){var Y={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(Q){return Y[Q]})}var ce=/\/+/g;function de(R,Y){return typeof R=="object"&&R!==null&&R.key!=null?fe(""+R.key):Y.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(K,K):(R.status="pending",R.then(function(Y){R.status==="pending"&&(R.status="fulfilled",R.value=Y)},function(Y){R.status==="pending"&&(R.status="rejected",R.reason=Y)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function M(R,Y,Q,W,te){var oe=typeof R;(oe==="undefined"||oe==="boolean")&&(R=null);var ne=!1;if(R===null)ne=!0;else switch(oe){case"bigint":case"string":case"number":ne=!0;break;case"object":switch(R.$$typeof){case n:case l:ne=!0;break;case x:return ne=R._init,M(ne(R._payload),Y,Q,W,te)}}if(ne)return te=te(R),ne=W===""?"."+de(R,0):W,X(te)?(Q="",ne!=null&&(Q=ne.replace(ce,"$&/")+"/"),M(te,Y,Q,"",function(xe){return xe})):te!=null&&(me(te)&&(te=ie(te,Q+(te.key==null||R&&R.key===te.key?"":(""+te.key).replace(ce,"$&/")+"/")+ne)),Y.push(te)),1;ne=0;var ue=W===""?".":W+":";if(X(R))for(var ee=0;ee<R.length;ee++)W=R[ee],oe=ue+de(W,ee),ne+=M(W,Y,Q,oe,te);else if(ee=T(R),typeof ee=="function")for(R=ee.call(R),ee=0;!(W=R.next()).done;)W=W.value,oe=ue+de(W,ee++),ne+=M(W,Y,Q,oe,te);else if(oe==="object"){if(typeof R.then=="function")return M(re(R),Y,Q,W,te);throw Y=String(R),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ne}function $(R,Y,Q){if(R==null)return R;var W=[],te=0;return M(R,W,"","",function(oe){return Y.call(Q,oe,te++)}),W}function F(R){if(R._status===-1){var Y=R._result;Y=Y(),Y.then(function(Q){(R._status===0||R._status===-1)&&(R._status=1,R._result=Q)},function(Q){(R._status===0||R._status===-1)&&(R._status=2,R._result=Q)}),R._status===-1&&(R._status=0,R._result=Y)}if(R._status===1)return R._result.default;throw R._result}var J=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=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(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},G={map:$,forEach:function(R,Y,Q){$(R,function(){Y.apply(this,arguments)},Q)},count:function(R){var Y=0;return $(R,function(){Y++}),Y},toArray:function(R){return $(R,function(Y){return Y})||[]},only:function(R){if(!me(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return Te.Activity=v,Te.Children=G,Te.Component=A,Te.Fragment=o,Te.Profiler=c,Te.PureComponent=O,Te.StrictMode=i,Te.Suspense=g,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,Te.__COMPILER_RUNTIME={__proto__:null,c:function(R){return V.H.useMemoCache(R)}},Te.cache=function(R){return function(){return R.apply(null,arguments)}},Te.cacheSignal=function(){return null},Te.cloneElement=function(R,Y,Q){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var W=E({},R.props),te=R.key;if(Y!=null)for(oe in Y.key!==void 0&&(te=""+Y.key),Y)!H.call(Y,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&Y.ref===void 0||(W[oe]=Y[oe]);var oe=arguments.length-2;if(oe===1)W.children=Q;else if(1<oe){for(var ne=Array(oe),ue=0;ue<oe;ue++)ne[ue]=arguments[ue+2];W.children=ne}return le(R.type,te,W)},Te.createContext=function(R){return R={$$typeof:m,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:d,_context:R},R},Te.createElement=function(R,Y,Q){var W,te={},oe=null;if(Y!=null)for(W in Y.key!==void 0&&(oe=""+Y.key),Y)H.call(Y,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(te[W]=Y[W]);var ne=arguments.length-2;if(ne===1)te.children=Q;else if(1<ne){for(var ue=Array(ne),ee=0;ee<ne;ee++)ue[ee]=arguments[ee+2];te.children=ue}if(R&&R.defaultProps)for(W in ne=R.defaultProps,ne)te[W]===void 0&&(te[W]=ne[W]);return le(R,oe,te)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(R){return{$$typeof:h,render:R}},Te.isValidElement=me,Te.lazy=function(R){return{$$typeof:x,_payload:{_status:-1,_result:R},_init:F}},Te.memo=function(R,Y){return{$$typeof:p,type:R,compare:Y===void 0?null:Y}},Te.startTransition=function(R){var Y=V.T,Q={};V.T=Q;try{var W=R(),te=V.S;te!==null&&te(Q,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(K,J)}catch(oe){J(oe)}finally{Y!==null&&Q.types!==null&&(Y.types=Q.types),V.T=Y}},Te.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},Te.use=function(R){return V.H.use(R)},Te.useActionState=function(R,Y,Q){return V.H.useActionState(R,Y,Q)},Te.useCallback=function(R,Y){return V.H.useCallback(R,Y)},Te.useContext=function(R){return V.H.useContext(R)},Te.useDebugValue=function(){},Te.useDeferredValue=function(R,Y){return V.H.useDeferredValue(R,Y)},Te.useEffect=function(R,Y){return V.H.useEffect(R,Y)},Te.useEffectEvent=function(R){return V.H.useEffectEvent(R)},Te.useId=function(){return V.H.useId()},Te.useImperativeHandle=function(R,Y,Q){return V.H.useImperativeHandle(R,Y,Q)},Te.useInsertionEffect=function(R,Y){return V.H.useInsertionEffect(R,Y)},Te.useLayoutEffect=function(R,Y){return V.H.useLayoutEffect(R,Y)},Te.useMemo=function(R,Y){return V.H.useMemo(R,Y)},Te.useOptimistic=function(R,Y){return V.H.useOptimistic(R,Y)},Te.useReducer=function(R,Y,Q){return V.H.useReducer(R,Y,Q)},Te.useRef=function(R){return V.H.useRef(R)},Te.useState=function(R){return V.H.useState(R)},Te.useSyncExternalStore=function(R,Y,Q){return V.H.useSyncExternalStore(R,Y,Q)},Te.useTransition=function(){return V.H.useTransition()},Te.version="19.2.4",Te}var Ig;function pf(){return Ig||(Ig=1,Ed.exports=g2()),Ed.exports}var y=pf();const ae=t0(y),gf=m2({__proto__:null,default:ae},[y]);var Nd={exports:{}},Do={},Td={exports:{}},Cd={};/**
19
+ * @license React
20
+ * scheduler.production.js
21
+ *
22
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var Fg;function v2(){return Fg||(Fg=1,(function(n){function l(M,$){var F=M.length;M.push($);e:for(;0<F;){var J=F-1>>>1,G=M[J];if(0<c(G,$))M[J]=$,M[F]=G,F=J;else break e}}function o(M){return M.length===0?null:M[0]}function i(M){if(M.length===0)return null;var $=M[0],F=M.pop();if(F!==$){M[0]=F;e:for(var J=0,G=M.length,R=G>>>1;J<R;){var Y=2*(J+1)-1,Q=M[Y],W=Y+1,te=M[W];if(0>c(Q,F))W<G&&0>c(te,Q)?(M[J]=te,M[W]=F,J=W):(M[J]=Q,M[Y]=F,J=Y);else if(W<G&&0>c(te,F))M[J]=te,M[W]=F,J=W;else break e}}return $}function c(M,$){var F=M.sortIndex-$.sortIndex;return F!==0?F:M.id-$.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var m=Date,h=m.now();n.unstable_now=function(){return m.now()-h}}var g=[],p=[],x=1,v=null,w=3,T=!1,N=!1,E=!1,C=!1,A=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function z(M){for(var $=o(p);$!==null;){if($.callback===null)i(p);else if($.startTime<=M)i(p),$.sortIndex=$.expirationTime,l(g,$);else break;$=o(p)}}function X(M){if(E=!1,z(M),!N)if(o(g)!==null)N=!0,K||(K=!0,fe());else{var $=o(p);$!==null&&re(X,$.startTime-M)}}var K=!1,V=-1,H=5,le=-1;function ie(){return C?!0:!(n.unstable_now()-le<H)}function me(){if(C=!1,K){var M=n.unstable_now();le=M;var $=!0;try{e:{N=!1,E&&(E=!1,j(V),V=-1),T=!0;var F=w;try{t:{for(z(M),v=o(g);v!==null&&!(v.expirationTime>M&&ie());){var J=v.callback;if(typeof J=="function"){v.callback=null,w=v.priorityLevel;var G=J(v.expirationTime<=M);if(M=n.unstable_now(),typeof G=="function"){v.callback=G,z(M),$=!0;break t}v===o(g)&&i(g),z(M)}else i(g);v=o(g)}if(v!==null)$=!0;else{var R=o(p);R!==null&&re(X,R.startTime-M),$=!1}}break e}finally{v=null,w=F,T=!1}$=void 0}}finally{$?fe():K=!1}}}var fe;if(typeof O=="function")fe=function(){O(me)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,de=ce.port2;ce.port1.onmessage=me,fe=function(){de.postMessage(null)}}else fe=function(){A(me,0)};function re(M,$){V=A(function(){M(n.unstable_now())},$)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(M){M.callback=null},n.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"):H=0<M?Math.floor(1e3/M):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(M){switch(w){case 1:case 2:case 3:var $=3;break;default:$=w}var F=w;w=$;try{return M()}finally{w=F}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(M,$){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var F=w;w=M;try{return $()}finally{w=F}},n.unstable_scheduleCallback=function(M,$,F){var J=n.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?J+F:J):F=J,M){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=F+G,M={id:x++,callback:$,priorityLevel:M,startTime:F,expirationTime:G,sortIndex:-1},F>J?(M.sortIndex=F,l(p,M),o(g)===null&&M===o(p)&&(E?(j(V),V=-1):E=!0,re(X,F-J))):(M.sortIndex=G,l(g,M),N||T||(N=!0,K||(K=!0,fe()))),M},n.unstable_shouldYield=ie,n.unstable_wrapCallback=function(M){var $=w;return function(){var F=w;w=$;try{return M.apply(this,arguments)}finally{w=F}}}})(Cd)),Cd}var Jg;function y2(){return Jg||(Jg=1,Td.exports=v2()),Td.exports}var Ad={exports:{}},Rt={};/**
27
+ * @license React
28
+ * react-dom.production.js
29
+ *
30
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var Wg;function b2(){if(Wg)return Rt;Wg=1;var n=pf();function l(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var i={d:{f:o,r:function(){throw Error(l(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(g,p,x){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:g,containerInfo:p,implementation:x}}var m=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Rt.createPortal=function(g,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return d(g,p,null,x)},Rt.flushSync=function(g){var p=m.T,x=i.p;try{if(m.T=null,i.p=2,g)return g()}finally{m.T=p,i.p=x,i.d.f()}},Rt.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(g,p))},Rt.prefetchDNS=function(g){typeof g=="string"&&i.d.D(g)},Rt.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var x=p.as,v=h(x,p.crossOrigin),w=typeof p.integrity=="string"?p.integrity:void 0,T=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?i.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:w,fetchPriority:T}):x==="script"&&i.d.X(g,{crossOrigin:v,integrity:w,fetchPriority:T,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Rt.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=h(p.as,p.crossOrigin);i.d.M(g,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(g)},Rt.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,v=h(x,p.crossOrigin);i.d.L(g,x,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Rt.preloadModule=function(g,p){if(typeof g=="string")if(p){var x=h(p.as,p.crossOrigin);i.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(g)},Rt.requestFormReset=function(g){i.d.r(g)},Rt.unstable_batchedUpdates=function(g,p){return g(p)},Rt.useFormState=function(g,p,x){return m.H.useFormState(g,p,x)},Rt.useFormStatus=function(){return m.H.useHostTransitionStatus()},Rt.version="19.2.4",Rt}var ev;function n0(){if(ev)return Ad.exports;ev=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Ad.exports=b2(),Ad.exports}/**
35
+ * @license React
36
+ * react-dom-client.production.js
37
+ *
38
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */var tv;function x2(){if(tv)return Do;tv=1;var n=y2(),l=pf(),o=n0();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 d(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a: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 h(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 g(e){if(d(e)!==e)throw Error(i(188))}function p(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(i(188));return t!==e?null:e}for(var a=e,r=t;;){var s=a.return;if(s===null)break;var u=s.alternate;if(u===null){if(r=s.return,r!==null){a=r;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===a)return g(s),e;if(u===r)return g(s),t;u=u.sibling}throw Error(i(188))}if(a.return!==r.return)a=s,r=u;else{for(var b=!1,S=s.child;S;){if(S===a){b=!0,a=s,r=u;break}if(S===r){b=!0,r=s,a=u;break}S=S.sibling}if(!b){for(S=u.child;S;){if(S===a){b=!0,a=u,r=s;break}if(S===r){b=!0,r=u,a=s;break}S=S.sibling}if(!b)throw Error(i(189))}}if(a.alternate!==r)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,w=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),O=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),ie=Symbol.for("react.memo_cache_sentinel"),me=Symbol.iterator;function fe(e){return e===null||typeof e!="object"?null:(e=me&&e[me]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function de(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case A:return"Profiler";case C:return"StrictMode";case X:return"Suspense";case K:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case O:return e.displayName||"Context";case j:return(e._context.displayName||"Context")+".Consumer";case z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:de(e.type)||"Memo";case H:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}var re=Array.isArray,M=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},J=[],G=-1;function R(e){return{current:e}}function Y(e){0>G||(e.current=J[G],J[G]=null,G--)}function Q(e,t){G++,J[G]=e.current,e.current=t}var W=R(null),te=R(null),oe=R(null),ne=R(null);function ue(e,t){switch(Q(oe,t),Q(te,e),Q(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=gg(t),e=vg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(W),Q(W,e)}function ee(){Y(W),Y(te),Y(oe)}function xe(e){e.memoizedState!==null&&Q(ne,e);var t=W.current,a=vg(t,e.type);t!==a&&(Q(te,e),Q(W,a))}function ye(e){te.current===e&&(Y(W),Y(te)),ne.current===e&&(Y(ne),Ro._currentValue=F)}var Se,$e;function Ue(e){if(Se===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||"",$e=-1<a.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+Se+e+$e}var Ye=!1;function gt(e,t){if(!e||Ye)return"";Ye=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(q){var B=q}Reflect.construct(e,[],I)}else{try{I.call()}catch(q){B=q}e.call(I.prototype)}}else{try{throw Error()}catch(q){B=q}(I=e())&&typeof I.catch=="function"&&I.catch(function(){})}}catch(q){if(q&&B&&typeof q.stack=="string")return[q.stack,B.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=r.DetermineComponentFrameRoot(),b=u[0],S=u[1];if(b&&S){var _=b.split(`
45
+ `),U=S.split(`
46
+ `);for(s=r=0;r<_.length&&!_[r].includes("DetermineComponentFrameRoot");)r++;for(;s<U.length&&!U[s].includes("DetermineComponentFrameRoot");)s++;if(r===_.length||s===U.length)for(r=_.length-1,s=U.length-1;1<=r&&0<=s&&_[r]!==U[s];)s--;for(;1<=r&&0<=s;r--,s--)if(_[r]!==U[s]){if(r!==1||s!==1)do if(r--,s--,0>s||_[r]!==U[s]){var P=`
47
+ `+_[r].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=r&&0<=s);break}}}finally{Ye=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ue(a):""}function ot(e,t){switch(e.tag){case 26:case 27:case 5:return Ue(e.type);case 16:return Ue("Lazy");case 13:return e.child!==t&&t!==null?Ue("Suspense Fallback"):Ue("Suspense");case 19:return Ue("SuspenseList");case 0:case 15:return gt(e.type,!1);case 11:return gt(e.type.render,!1);case 1:return gt(e.type,!0);case 31:return Ue("Activity");default:return""}}function Pt(e){try{var t="",a=null;do t+=ot(e,a),a=e,e=e.return;while(e);return t}catch(r){return`
48
+ Error generating stack: `+r.message+`
49
+ `+r.stack}}var vt=Object.prototype.hasOwnProperty,Br=n.unstable_scheduleCallback,Hr=n.unstable_cancelCallback,jt=n.unstable_shouldYield,pa=n.unstable_requestPaint,Mt=n.unstable_now,uc=n.unstable_getCurrentPriorityLevel,el=n.unstable_ImmediatePriority,Jo=n.unstable_UserBlockingPriority,tl=n.unstable_NormalPriority,Vr=n.unstable_LowPriority,Gn=n.unstable_IdlePriority,Wo=n.log,ga=n.unstable_setDisableYieldValue,nl=null,Ot=null;function pn(e){if(typeof Wo=="function"&&ga(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(nl,e)}catch{}}var Ct=Math.clz32?Math.clz32:Cn,dc=Math.log,$r=Math.LN2;function Cn(e){return e>>>=0,e===0?32:31-(dc(e)/$r|0)|0}var Ml=256,Ol=262144,al=4194304;function An(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 Ne(e,t,a){var r=e.pendingLanes;if(r===0)return 0;var s=0,u=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var S=r&134217727;return S!==0?(r=S&~u,r!==0?s=An(r):(b&=S,b!==0?s=An(b):a||(a=S&~e,a!==0&&(s=An(a))))):(S=r&~u,S!==0?s=An(S):b!==0?s=An(b):a||(a=r&~e,a!==0&&(s=An(a)))),s===0?0:t!==0&&t!==s&&(t&u)===0&&(u=s&-s,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:s}function We(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function yt(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 At(){var e=al;return al<<=1,(al&62914560)===0&&(al=4194304),e}function va(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function nt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function kt(e,t,a,r,s,u){var b=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var S=e.entanglements,_=e.expirationTimes,U=e.hiddenUpdates;for(a=b&~a;0<a;){var P=31-Ct(a),I=1<<P;S[P]=0,_[P]=-1;var B=U[P];if(B!==null)for(U[P]=null,P=0;P<B.length;P++){var q=B[P];q!==null&&(q.lane&=-536870913)}a&=~I}r!==0&&ll(e,r,0),u!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=u&~(b&~t))}function ll(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ct(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function zt(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-Ct(a),s=1<<r;s&t|e[r]&t&&(e[r]|=t),a&=~s}}function Lt(e,t){var a=t&-t;return a=(a&42)!==0?1:Dl(a),(a&(e.suspendedLanes|t))!==0?0:a}function Dl(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 gn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function fc(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:Vg(e.type))}function nm(e,t){var a=$.p;try{return $.p=e,t()}finally{$.p=a}}var ya=Math.random().toString(36).slice(2),St="__reactFiber$"+ya,Ut="__reactProps$"+ya,kl="__reactContainer$"+ya,mc="__reactEvents$"+ya,n1="__reactListeners$"+ya,a1="__reactHandles$"+ya,am="__reactResources$"+ya,Yr="__reactMarker$"+ya;function hc(e){delete e[St],delete e[Ut],delete e[mc],delete e[n1],delete e[a1]}function zl(e){var t=e[St];if(t)return t;for(var a=e.parentNode;a;){if(t=a[kl]||a[St]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Ng(e);e!==null;){if(a=e[St])return a;e=Ng(e)}return t}e=a,a=e.parentNode}return null}function Ll(e){if(e=e[St]||e[kl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function qr(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[am];return t||(t=e[am]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function bt(e){e[Yr]=!0}var lm=new Set,rm={};function rl(e,t){Bl(e,t),Bl(e+"Capture",t)}function Bl(e,t){for(rm[e]=t,e=0;e<t.length;e++)lm.add(t[e])}var l1=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]*$"),om={},im={};function r1(e){return vt.call(im,e)?!0:vt.call(om,e)?!1:l1.test(e)?im[e]=!0:(om[e]=!0,!1)}function ei(e,t,a){if(r1(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ti(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Xn(e,t,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}function an(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function o1(e,t,a){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,u=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(b){a=""+b,u.call(this,b)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(b){a=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pc(e){if(!e._valueTracker){var t=sm(e)?"checked":"value";e._valueTracker=o1(e,t,""+e[t])}}function cm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=sm(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function ni(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 i1=/[\n"\\]/g;function ln(e){return e.replace(i1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function gc(e,t,a,r,s,u,b,S){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),t!=null?b==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+an(t)):e.value!==""+an(t)&&(e.value=""+an(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?vc(e,b,an(t)):a!=null?vc(e,b,an(a)):r!=null&&e.removeAttribute("value"),s==null&&u!=null&&(e.defaultChecked=!!u),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+an(S):e.removeAttribute("name")}function um(e,t,a,r,s,u,b,S){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){pc(e);return}a=a!=null?""+an(a):"",t=t!=null?""+an(t):a,S||t===e.value||(e.value=t),e.defaultValue=t}r=r??s,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=S?e.checked:!!r,e.defaultChecked=!!r,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),pc(e)}function vc(e,t,a){t==="number"&&ni(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Hl(e,t,a,r){if(e=e.options,t){t={};for(var s=0;s<a.length;s++)t["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=t.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&r&&(e[a].defaultSelected=!0)}else{for(a=""+an(a),t=null,s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function dm(e,t,a){if(t!=null&&(t=""+an(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+an(a):""}function fm(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(i(92));if(re(r)){if(1<r.length)throw Error(i(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=an(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),pc(e)}function Vl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var s1=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 mm(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||s1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function hm(e,t,a){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var s in t)r=t[s],t.hasOwnProperty(s)&&a[s]!==r&&mm(e,s,r)}else for(var u in t)t.hasOwnProperty(u)&&mm(e,u,t[u])}function yc(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 c1=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"]]),u1=/^[\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 ai(e){return u1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Pn(){}var bc=null;function xc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $l=null,Yl=null;function pm(e){var t=Ll(e);if(t&&(e=t.stateNode)){var a=e[Ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(gc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+ln(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var s=r[Ut]||null;if(!s)throw Error(i(90));gc(r,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&cm(r)}break e;case"textarea":dm(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Hl(e,!!a.multiple,t,!1)}}}var Sc=!1;function gm(e,t,a){if(Sc)return e(t,a);Sc=!0;try{var r=e(t);return r}finally{if(Sc=!1,($l!==null||Yl!==null)&&(Gi(),$l&&(t=$l,e=Yl,Yl=$l=null,pm(t),e)))for(t=0;t<e.length;t++)pm(e[t])}}function Gr(e,t){var a=e.stateNode;if(a===null)return null;var r=a[Ut]||null;if(r===null)return null;a=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(i(231,t,typeof a));return a}var Qn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wc=!1;if(Qn)try{var Xr={};Object.defineProperty(Xr,"passive",{get:function(){wc=!0}}),window.addEventListener("test",Xr,Xr),window.removeEventListener("test",Xr,Xr)}catch{wc=!1}var ba=null,Ec=null,li=null;function vm(){if(li)return li;var e,t=Ec,a=t.length,r,s="value"in ba?ba.value:ba.textContent,u=s.length;for(e=0;e<a&&t[e]===s[e];e++);var b=a-e;for(r=1;r<=b&&t[a-r]===s[u-r];r++);return li=s.slice(e,1<r?1-r:void 0)}function ri(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 oi(){return!0}function ym(){return!1}function Bt(e){function t(a,r,s,u,b){this._reactName=a,this._targetInst=s,this.type=r,this.nativeEvent=u,this.target=b,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(a=e[S],this[S]=a?a(u):u[S]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?oi:ym,this.isPropagationStopped=ym,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=oi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=oi)},persist:function(){},isPersistent:oi}),t}var ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ii=Bt(ol),Pr=v({},ol,{view:0,detail:0}),d1=Bt(Pr),Nc,Tc,Qr,si=v({},Pr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ac,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!==Qr&&(Qr&&e.type==="mousemove"?(Nc=e.screenX-Qr.screenX,Tc=e.screenY-Qr.screenY):Tc=Nc=0,Qr=e),Nc)},movementY:function(e){return"movementY"in e?e.movementY:Tc}}),bm=Bt(si),f1=v({},si,{dataTransfer:0}),m1=Bt(f1),h1=v({},Pr,{relatedTarget:0}),Cc=Bt(h1),p1=v({},ol,{animationName:0,elapsedTime:0,pseudoElement:0}),g1=Bt(p1),v1=v({},ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),y1=Bt(v1),b1=v({},ol,{data:0}),xm=Bt(b1),x1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},S1={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"},w1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function E1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=w1[e])?!!t[e]:!1}function Ac(){return E1}var N1=v({},Pr,{key:function(e){if(e.key){var t=x1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ri(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?S1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ac,charCode:function(e){return e.type==="keypress"?ri(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ri(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),T1=Bt(N1),C1=v({},si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sm=Bt(C1),A1=v({},Pr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ac}),R1=Bt(A1),_1=v({},ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),j1=Bt(_1),M1=v({},si,{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}),O1=Bt(M1),D1=v({},ol,{newState:0,oldState:0}),k1=Bt(D1),z1=[9,13,27,32],Rc=Qn&&"CompositionEvent"in window,Kr=null;Qn&&"documentMode"in document&&(Kr=document.documentMode);var L1=Qn&&"TextEvent"in window&&!Kr,wm=Qn&&(!Rc||Kr&&8<Kr&&11>=Kr),Em=" ",Nm=!1;function Tm(e,t){switch(e){case"keyup":return z1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ql=!1;function U1(e,t){switch(e){case"compositionend":return Cm(t);case"keypress":return t.which!==32?null:(Nm=!0,Em);case"textInput":return e=t.data,e===Em&&Nm?null:e;default:return null}}function B1(e,t){if(ql)return e==="compositionend"||!Rc&&Tm(e,t)?(e=vm(),li=Ec=ba=null,ql=!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 wm&&t.locale!=="ko"?null:t.data;default:return null}}var H1={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 Am(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!H1[e.type]:t==="textarea"}function Rm(e,t,a,r){$l?Yl?Yl.push(r):Yl=[r]:$l=r,t=Fi(t,"onChange"),0<t.length&&(a=new ii("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Zr=null,Ir=null;function V1(e){ug(e,0)}function ci(e){var t=qr(e);if(cm(t))return e}function _m(e,t){if(e==="change")return t}var jm=!1;if(Qn){var _c;if(Qn){var jc="oninput"in document;if(!jc){var Mm=document.createElement("div");Mm.setAttribute("oninput","return;"),jc=typeof Mm.oninput=="function"}_c=jc}else _c=!1;jm=_c&&(!document.documentMode||9<document.documentMode)}function Om(){Zr&&(Zr.detachEvent("onpropertychange",Dm),Ir=Zr=null)}function Dm(e){if(e.propertyName==="value"&&ci(Ir)){var t=[];Rm(t,Ir,e,xc(e)),gm(V1,t)}}function $1(e,t,a){e==="focusin"?(Om(),Zr=t,Ir=a,Zr.attachEvent("onpropertychange",Dm)):e==="focusout"&&Om()}function Y1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ci(Ir)}function q1(e,t){if(e==="click")return ci(t)}function G1(e,t){if(e==="input"||e==="change")return ci(t)}function X1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:X1;function Fr(e,t){if(Qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var s=a[r];if(!vt.call(t,s)||!Qt(e[s],t[s]))return!1}return!0}function km(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zm(e,t){var a=km(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=km(a)}}function Lm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Um(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ni(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ni(e.document)}return t}function Mc(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 P1=Qn&&"documentMode"in document&&11>=document.documentMode,Gl=null,Oc=null,Jr=null,Dc=!1;function Bm(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Dc||Gl==null||Gl!==ni(r)||(r=Gl,"selectionStart"in r&&Mc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Jr&&Fr(Jr,r)||(Jr=r,r=Fi(Oc,"onSelect"),0<r.length&&(t=new ii("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=Gl)))}function il(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Xl={animationend:il("Animation","AnimationEnd"),animationiteration:il("Animation","AnimationIteration"),animationstart:il("Animation","AnimationStart"),transitionrun:il("Transition","TransitionRun"),transitionstart:il("Transition","TransitionStart"),transitioncancel:il("Transition","TransitionCancel"),transitionend:il("Transition","TransitionEnd")},kc={},Hm={};Qn&&(Hm=document.createElement("div").style,"AnimationEvent"in window||(delete Xl.animationend.animation,delete Xl.animationiteration.animation,delete Xl.animationstart.animation),"TransitionEvent"in window||delete Xl.transitionend.transition);function sl(e){if(kc[e])return kc[e];if(!Xl[e])return e;var t=Xl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Hm)return kc[e]=t[a];return e}var Vm=sl("animationend"),$m=sl("animationiteration"),Ym=sl("animationstart"),Q1=sl("transitionrun"),K1=sl("transitionstart"),Z1=sl("transitioncancel"),qm=sl("transitionend"),Gm=new Map,zc="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(" ");zc.push("scrollEnd");function vn(e,t){Gm.set(e,t),rl(t,[e])}var ui=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)},rn=[],Pl=0,Lc=0;function di(){for(var e=Pl,t=Lc=Pl=0;t<e;){var a=rn[t];rn[t++]=null;var r=rn[t];rn[t++]=null;var s=rn[t];rn[t++]=null;var u=rn[t];if(rn[t++]=null,r!==null&&s!==null){var b=r.pending;b===null?s.next=s:(s.next=b.next,b.next=s),r.pending=s}u!==0&&Xm(a,s,u)}}function fi(e,t,a,r){rn[Pl++]=e,rn[Pl++]=t,rn[Pl++]=a,rn[Pl++]=r,Lc|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Uc(e,t,a,r){return fi(e,t,a,r),mi(e)}function cl(e,t){return fi(e,null,null,t),mi(e)}function Xm(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var s=!1,u=e.return;u!==null;)u.childLanes|=a,r=u.alternate,r!==null&&(r.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(s=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,s&&t!==null&&(s=31-Ct(a),e=u.hiddenUpdates,r=e[s],r===null?e[s]=[t]:r.push(t),t.lane=a|536870912),u):null}function mi(e){if(50<So)throw So=0,Pu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ql={};function I1(e,t,a,r){this.tag=e,this.key=a,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kt(e,t,a,r){return new I1(e,t,a,r)}function Bc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kn(e,t){var a=e.alternate;return a===null?(a=Kt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Pm(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function hi(e,t,a,r,s,u){var b=0;if(r=e,typeof e=="function")Bc(e)&&(b=1);else if(typeof e=="string")b=t2(e,a,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=Kt(31,a,t,s),e.elementType=le,e.lanes=u,e;case E:return ul(a.children,s,u,t);case C:b=8,s|=24;break;case A:return e=Kt(12,a,t,s|2),e.elementType=A,e.lanes=u,e;case X:return e=Kt(13,a,t,s),e.elementType=X,e.lanes=u,e;case K:return e=Kt(19,a,t,s),e.elementType=K,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:b=10;break e;case j:b=9;break e;case z:b=11;break e;case V:b=14;break e;case H:b=16,r=null;break e}b=29,a=Error(i(130,e===null?"null":typeof e,"")),r=null}return t=Kt(b,a,t,s),t.elementType=e,t.type=r,t.lanes=u,t}function ul(e,t,a,r){return e=Kt(7,e,r,t),e.lanes=a,e}function Hc(e,t,a){return e=Kt(6,e,null,t),e.lanes=a,e}function Qm(e){var t=Kt(18,null,null,0);return t.stateNode=e,t}function Vc(e,t,a){return t=Kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Km=new WeakMap;function on(e,t){if(typeof e=="object"&&e!==null){var a=Km.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Pt(t)},Km.set(e,t),t)}return{value:e,source:t,stack:Pt(t)}}var Kl=[],Zl=0,pi=null,Wr=0,sn=[],cn=0,xa=null,Rn=1,_n="";function Zn(e,t){Kl[Zl++]=Wr,Kl[Zl++]=pi,pi=e,Wr=t}function Zm(e,t,a){sn[cn++]=Rn,sn[cn++]=_n,sn[cn++]=xa,xa=e;var r=Rn;e=_n;var s=32-Ct(r)-1;r&=~(1<<s),a+=1;var u=32-Ct(t)+s;if(30<u){var b=s-s%5;u=(r&(1<<b)-1).toString(32),r>>=b,s-=b,Rn=1<<32-Ct(t)+s|a<<s|r,_n=u+e}else Rn=1<<u|a<<s|r,_n=e}function $c(e){e.return!==null&&(Zn(e,1),Zm(e,1,0))}function Yc(e){for(;e===pi;)pi=Kl[--Zl],Kl[Zl]=null,Wr=Kl[--Zl],Kl[Zl]=null;for(;e===xa;)xa=sn[--cn],sn[cn]=null,_n=sn[--cn],sn[cn]=null,Rn=sn[--cn],sn[cn]=null}function Im(e,t){sn[cn++]=Rn,sn[cn++]=_n,sn[cn++]=xa,Rn=t.id,_n=t.overflow,xa=e}var wt=null,Fe=null,ke=!1,Sa=null,un=!1,qc=Error(i(519));function wa(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw eo(on(t,e)),qc}function Fm(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[St]=e,t[Ut]=r,a){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(a=0;a<Eo.length;a++)je(Eo[a],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),um(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),fm(t,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||hg(t.textContent,a)?(r.popover!=null&&(je("beforetoggle",t),je("toggle",t)),r.onScroll!=null&&je("scroll",t),r.onScrollEnd!=null&&je("scrollend",t),r.onClick!=null&&(t.onclick=Pn),t=!0):t=!1,t||wa(e,!0)}function Jm(e){for(wt=e.return;wt;)switch(wt.tag){case 5:case 31:case 13:un=!1;return;case 27:case 3:un=!0;return;default:wt=wt.return}}function Il(e){if(e!==wt)return!1;if(!ke)return Jm(e),ke=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||id(e.type,e.memoizedProps)),a=!a),a&&Fe&&wa(e),Jm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Fe=Eg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Fe=Eg(e)}else t===27?(t=Fe,La(e.type)?(e=fd,fd=null,Fe=e):Fe=t):Fe=wt?fn(e.stateNode.nextSibling):null;return!0}function dl(){Fe=wt=null,ke=!1}function Gc(){var e=Sa;return e!==null&&(Yt===null?Yt=e:Yt.push.apply(Yt,e),Sa=null),e}function eo(e){Sa===null?Sa=[e]:Sa.push(e)}var Xc=R(null),fl=null,In=null;function Ea(e,t,a){Q(Xc,t._currentValue),t._currentValue=a}function Fn(e){e._currentValue=Xc.current,Y(Xc)}function Pc(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function Qc(e,t,a,r){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var u=s.dependencies;if(u!==null){var b=s.child;u=u.firstContext;e:for(;u!==null;){var S=u;u=s;for(var _=0;_<t.length;_++)if(S.context===t[_]){u.lanes|=a,S=u.alternate,S!==null&&(S.lanes|=a),Pc(u.return,a,e),r||(b=null);break e}u=S.next}}else if(s.tag===18){if(b=s.return,b===null)throw Error(i(341));b.lanes|=a,u=b.alternate,u!==null&&(u.lanes|=a),Pc(b,a,e),b=null}else b=s.child;if(b!==null)b.return=s;else for(b=s;b!==null;){if(b===e){b=null;break}if(s=b.sibling,s!==null){s.return=b.return,b=s;break}b=b.return}s=b}}function Fl(e,t,a,r){e=null;for(var s=t,u=!1;s!==null;){if(!u){if((s.flags&524288)!==0)u=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var b=s.alternate;if(b===null)throw Error(i(387));if(b=b.memoizedProps,b!==null){var S=s.type;Qt(s.pendingProps.value,b.value)||(e!==null?e.push(S):e=[S])}}else if(s===ne.current){if(b=s.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Ro):e=[Ro])}s=s.return}e!==null&&Qc(t,e,a,r),t.flags|=262144}function gi(e){for(e=e.firstContext;e!==null;){if(!Qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ml(e){fl=e,In=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Et(e){return Wm(fl,e)}function vi(e,t){return fl===null&&ml(e),Wm(e,t)}function Wm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},In===null){if(e===null)throw Error(i(308));In=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else In=In.next=t;return a}var F1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},J1=n.unstable_scheduleCallback,W1=n.unstable_NormalPriority,ct={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Kc(){return{controller:new F1,data:new Map,refCount:0}}function to(e){e.refCount--,e.refCount===0&&J1(W1,function(){e.controller.abort()})}var no=null,Zc=0,Jl=0,Wl=null;function eS(e,t){if(no===null){var a=no=[];Zc=0,Jl=Ju(),Wl={status:"pending",value:void 0,then:function(r){a.push(r)}}}return Zc++,t.then(eh,eh),t}function eh(){if(--Zc===0&&no!==null){Wl!==null&&(Wl.status="fulfilled");var e=no;no=null,Jl=0,Wl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function tS(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var s=0;s<a.length;s++)(0,a[s])(t)},function(s){for(r.status="rejected",r.reason=s,s=0;s<a.length;s++)(0,a[s])(void 0)}),r}var th=M.S;M.S=function(e,t){Bp=Mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&eS(e,t),th!==null&&th(e,t)};var hl=R(null);function Ic(){var e=hl.current;return e!==null?e:Ke.pooledCache}function yi(e,t){t===null?Q(hl,hl.current):Q(hl,t.pool)}function nh(){var e=Ic();return e===null?null:{parent:ct._currentValue,pool:e}}var er=Error(i(460)),Fc=Error(i(474)),bi=Error(i(542)),xi={then:function(){}};function ah(e){return e=e.status,e==="fulfilled"||e==="rejected"}function lh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Pn,Pn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,oh(e),e;default:if(typeof t.status=="string")t.then(Pn,Pn);else{if(e=Ke,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=r}},function(r){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,oh(e),e}throw gl=t,er}}function pl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(gl=a,er):a}}var gl=null;function rh(){if(gl===null)throw Error(i(459));var e=gl;return gl=null,e}function oh(e){if(e===er||e===bi)throw Error(i(483))}var tr=null,ao=0;function Si(e){var t=ao;return ao+=1,tr===null&&(tr=[]),lh(tr,e,t)}function lo(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function wi(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 ih(e){function t(k,D){if(e){var L=k.deletions;L===null?(k.deletions=[D],k.flags|=16):L.push(D)}}function a(k,D){if(!e)return null;for(;D!==null;)t(k,D),D=D.sibling;return null}function r(k){for(var D=new Map;k!==null;)k.key!==null?D.set(k.key,k):D.set(k.index,k),k=k.sibling;return D}function s(k,D){return k=Kn(k,D),k.index=0,k.sibling=null,k}function u(k,D,L){return k.index=L,e?(L=k.alternate,L!==null?(L=L.index,L<D?(k.flags|=67108866,D):L):(k.flags|=67108866,D)):(k.flags|=1048576,D)}function b(k){return e&&k.alternate===null&&(k.flags|=67108866),k}function S(k,D,L,Z){return D===null||D.tag!==6?(D=Hc(L,k.mode,Z),D.return=k,D):(D=s(D,L),D.return=k,D)}function _(k,D,L,Z){var be=L.type;return be===E?P(k,D,L.props.children,Z,L.key):D!==null&&(D.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===H&&pl(be)===D.type)?(D=s(D,L.props),lo(D,L),D.return=k,D):(D=hi(L.type,L.key,L.props,null,k.mode,Z),lo(D,L),D.return=k,D)}function U(k,D,L,Z){return D===null||D.tag!==4||D.stateNode.containerInfo!==L.containerInfo||D.stateNode.implementation!==L.implementation?(D=Vc(L,k.mode,Z),D.return=k,D):(D=s(D,L.children||[]),D.return=k,D)}function P(k,D,L,Z,be){return D===null||D.tag!==7?(D=ul(L,k.mode,Z,be),D.return=k,D):(D=s(D,L),D.return=k,D)}function I(k,D,L){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=Hc(""+D,k.mode,L),D.return=k,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case T:return L=hi(D.type,D.key,D.props,null,k.mode,L),lo(L,D),L.return=k,L;case N:return D=Vc(D,k.mode,L),D.return=k,D;case H:return D=pl(D),I(k,D,L)}if(re(D)||fe(D))return D=ul(D,k.mode,L,null),D.return=k,D;if(typeof D.then=="function")return I(k,Si(D),L);if(D.$$typeof===O)return I(k,vi(k,D),L);wi(k,D)}return null}function B(k,D,L,Z){var be=D!==null?D.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return be!==null?null:S(k,D,""+L,Z);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case T:return L.key===be?_(k,D,L,Z):null;case N:return L.key===be?U(k,D,L,Z):null;case H:return L=pl(L),B(k,D,L,Z)}if(re(L)||fe(L))return be!==null?null:P(k,D,L,Z,null);if(typeof L.then=="function")return B(k,D,Si(L),Z);if(L.$$typeof===O)return B(k,D,vi(k,L),Z);wi(k,L)}return null}function q(k,D,L,Z,be){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return k=k.get(L)||null,S(D,k,""+Z,be);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case T:return k=k.get(Z.key===null?L:Z.key)||null,_(D,k,Z,be);case N:return k=k.get(Z.key===null?L:Z.key)||null,U(D,k,Z,be);case H:return Z=pl(Z),q(k,D,L,Z,be)}if(re(Z)||fe(Z))return k=k.get(L)||null,P(D,k,Z,be,null);if(typeof Z.then=="function")return q(k,D,L,Si(Z),be);if(Z.$$typeof===O)return q(k,D,L,vi(D,Z),be);wi(D,Z)}return null}function he(k,D,L,Z){for(var be=null,Be=null,ve=D,Ae=D=0,De=null;ve!==null&&Ae<L.length;Ae++){ve.index>Ae?(De=ve,ve=null):De=ve.sibling;var He=B(k,ve,L[Ae],Z);if(He===null){ve===null&&(ve=De);break}e&&ve&&He.alternate===null&&t(k,ve),D=u(He,D,Ae),Be===null?be=He:Be.sibling=He,Be=He,ve=De}if(Ae===L.length)return a(k,ve),ke&&Zn(k,Ae),be;if(ve===null){for(;Ae<L.length;Ae++)ve=I(k,L[Ae],Z),ve!==null&&(D=u(ve,D,Ae),Be===null?be=ve:Be.sibling=ve,Be=ve);return ke&&Zn(k,Ae),be}for(ve=r(ve);Ae<L.length;Ae++)De=q(ve,k,Ae,L[Ae],Z),De!==null&&(e&&De.alternate!==null&&ve.delete(De.key===null?Ae:De.key),D=u(De,D,Ae),Be===null?be=De:Be.sibling=De,Be=De);return e&&ve.forEach(function($a){return t(k,$a)}),ke&&Zn(k,Ae),be}function we(k,D,L,Z){if(L==null)throw Error(i(151));for(var be=null,Be=null,ve=D,Ae=D=0,De=null,He=L.next();ve!==null&&!He.done;Ae++,He=L.next()){ve.index>Ae?(De=ve,ve=null):De=ve.sibling;var $a=B(k,ve,He.value,Z);if($a===null){ve===null&&(ve=De);break}e&&ve&&$a.alternate===null&&t(k,ve),D=u($a,D,Ae),Be===null?be=$a:Be.sibling=$a,Be=$a,ve=De}if(He.done)return a(k,ve),ke&&Zn(k,Ae),be;if(ve===null){for(;!He.done;Ae++,He=L.next())He=I(k,He.value,Z),He!==null&&(D=u(He,D,Ae),Be===null?be=He:Be.sibling=He,Be=He);return ke&&Zn(k,Ae),be}for(ve=r(ve);!He.done;Ae++,He=L.next())He=q(ve,k,Ae,He.value,Z),He!==null&&(e&&He.alternate!==null&&ve.delete(He.key===null?Ae:He.key),D=u(He,D,Ae),Be===null?be=He:Be.sibling=He,Be=He);return e&&ve.forEach(function(f2){return t(k,f2)}),ke&&Zn(k,Ae),be}function Qe(k,D,L,Z){if(typeof L=="object"&&L!==null&&L.type===E&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case T:e:{for(var be=L.key;D!==null;){if(D.key===be){if(be=L.type,be===E){if(D.tag===7){a(k,D.sibling),Z=s(D,L.props.children),Z.return=k,k=Z;break e}}else if(D.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===H&&pl(be)===D.type){a(k,D.sibling),Z=s(D,L.props),lo(Z,L),Z.return=k,k=Z;break e}a(k,D);break}else t(k,D);D=D.sibling}L.type===E?(Z=ul(L.props.children,k.mode,Z,L.key),Z.return=k,k=Z):(Z=hi(L.type,L.key,L.props,null,k.mode,Z),lo(Z,L),Z.return=k,k=Z)}return b(k);case N:e:{for(be=L.key;D!==null;){if(D.key===be)if(D.tag===4&&D.stateNode.containerInfo===L.containerInfo&&D.stateNode.implementation===L.implementation){a(k,D.sibling),Z=s(D,L.children||[]),Z.return=k,k=Z;break e}else{a(k,D);break}else t(k,D);D=D.sibling}Z=Vc(L,k.mode,Z),Z.return=k,k=Z}return b(k);case H:return L=pl(L),Qe(k,D,L,Z)}if(re(L))return he(k,D,L,Z);if(fe(L)){if(be=fe(L),typeof be!="function")throw Error(i(150));return L=be.call(L),we(k,D,L,Z)}if(typeof L.then=="function")return Qe(k,D,Si(L),Z);if(L.$$typeof===O)return Qe(k,D,vi(k,L),Z);wi(k,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,D!==null&&D.tag===6?(a(k,D.sibling),Z=s(D,L),Z.return=k,k=Z):(a(k,D),Z=Hc(L,k.mode,Z),Z.return=k,k=Z),b(k)):a(k,D)}return function(k,D,L,Z){try{ao=0;var be=Qe(k,D,L,Z);return tr=null,be}catch(ve){if(ve===er||ve===bi)throw ve;var Be=Kt(29,ve,null,k.mode);return Be.lanes=Z,Be.return=k,Be}finally{}}}var vl=ih(!0),sh=ih(!1),Na=!1;function Jc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wc(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 Ta(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ca(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ve&2)!==0){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,t=mi(e),Xm(e,null,a),t}return fi(e,r,t,a),mi(e)}function ro(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,zt(e,a)}}function eu(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var s=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var b={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?s=u=b:u=u.next=b,a=a.next}while(a!==null);u===null?s=u=t:u=u.next=t}else s=u=t;a={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:u,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var tu=!1;function oo(){if(tu){var e=Wl;if(e!==null)throw e}}function io(e,t,a,r){tu=!1;var s=e.updateQueue;Na=!1;var u=s.firstBaseUpdate,b=s.lastBaseUpdate,S=s.shared.pending;if(S!==null){s.shared.pending=null;var _=S,U=_.next;_.next=null,b===null?u=U:b.next=U,b=_;var P=e.alternate;P!==null&&(P=P.updateQueue,S=P.lastBaseUpdate,S!==b&&(S===null?P.firstBaseUpdate=U:S.next=U,P.lastBaseUpdate=_))}if(u!==null){var I=s.baseState;b=0,P=U=_=null,S=u;do{var B=S.lane&-536870913,q=B!==S.lane;if(q?(Oe&B)===B:(r&B)===B){B!==0&&B===Jl&&(tu=!0),P!==null&&(P=P.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var he=e,we=S;B=t;var Qe=a;switch(we.tag){case 1:if(he=we.payload,typeof he=="function"){I=he.call(Qe,I,B);break e}I=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=we.payload,B=typeof he=="function"?he.call(Qe,I,B):he,B==null)break e;I=v({},I,B);break e;case 2:Na=!0}}B=S.callback,B!==null&&(e.flags|=64,q&&(e.flags|=8192),q=s.callbacks,q===null?s.callbacks=[B]:q.push(B))}else q={lane:B,tag:S.tag,payload:S.payload,callback:S.callback,next:null},P===null?(U=P=q,_=I):P=P.next=q,b|=B;if(S=S.next,S===null){if(S=s.shared.pending,S===null)break;q=S,S=q.next,q.next=null,s.lastBaseUpdate=q,s.shared.pending=null}}while(!0);P===null&&(_=I),s.baseState=_,s.firstBaseUpdate=U,s.lastBaseUpdate=P,u===null&&(s.shared.lanes=0),Ma|=b,e.lanes=b,e.memoizedState=I}}function ch(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function uh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)ch(a[e],t)}var nr=R(null),Ei=R(0);function dh(e,t){e=oa,Q(Ei,e),Q(nr,t),oa=e|t.baseLanes}function nu(){Q(Ei,oa),Q(nr,nr.current)}function au(){oa=Ei.current,Y(nr),Y(Ei)}var Zt=R(null),dn=null;function Aa(e){var t=e.alternate;Q(it,it.current&1),Q(Zt,e),dn===null&&(t===null||nr.current!==null||t.memoizedState!==null)&&(dn=e)}function lu(e){Q(it,it.current),Q(Zt,e),dn===null&&(dn=e)}function fh(e){e.tag===22?(Q(it,it.current),Q(Zt,e),dn===null&&(dn=e)):Ra()}function Ra(){Q(it,it.current),Q(Zt,Zt.current)}function It(e){Y(Zt),dn===e&&(dn=null),Y(it)}var it=R(0);function Ni(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||ud(a)||dd(a)))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 Jn=0,Ce=null,Xe=null,ut=null,Ti=!1,ar=!1,yl=!1,Ci=0,so=0,lr=null,nS=0;function lt(){throw Error(i(321))}function ru(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Qt(e[a],t[a]))return!1;return!0}function ou(e,t,a,r,s,u){return Jn=u,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Zh:Su,yl=!1,u=a(r,s),yl=!1,ar&&(u=hh(t,a,r,s)),mh(e),u}function mh(e){M.H=fo;var t=Xe!==null&&Xe.next!==null;if(Jn=0,ut=Xe=Ce=null,Ti=!1,so=0,lr=null,t)throw Error(i(300));e===null||dt||(e=e.dependencies,e!==null&&gi(e)&&(dt=!0))}function hh(e,t,a,r){Ce=e;var s=0;do{if(ar&&(lr=null),so=0,ar=!1,25<=s)throw Error(i(301));if(s+=1,ut=Xe=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=Ih,u=t(a,r)}while(ar);return u}function aS(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?co(t):t,e=e.useState()[0],(Xe!==null?Xe.memoizedState:null)!==e&&(Ce.flags|=1024),t}function iu(){var e=Ci!==0;return Ci=0,e}function su(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function cu(e){if(Ti){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ti=!1}Jn=0,ut=Xe=Ce=null,ar=!1,so=Ci=0,lr=null}function Dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?Ce.memoizedState=ut=e:ut=ut.next=e,ut}function st(){if(Xe===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var t=ut===null?Ce.memoizedState:ut.next;if(t!==null)ut=t,Xe=e;else{if(e===null)throw Ce.alternate===null?Error(i(467)):Error(i(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},ut===null?Ce.memoizedState=ut=e:ut=ut.next=e}return ut}function Ai(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function co(e){var t=so;return so+=1,lr===null&&(lr=[]),e=lh(lr,e,t),t=Ce,(ut===null?t.memoizedState:ut.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Zh:Su),e}function Ri(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return co(e);if(e.$$typeof===O)return Et(e)}throw Error(i(438,String(e)))}function uu(e){var t=null,a=Ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=Ce.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Ai(),Ce.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=ie;return t.index++,a}function Wn(e,t){return typeof t=="function"?t(e):t}function _i(e){var t=st();return du(t,Xe,e)}function du(e,t,a){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=a;var s=e.baseQueue,u=r.pending;if(u!==null){if(s!==null){var b=s.next;s.next=u.next,u.next=b}t.baseQueue=s=u,r.pending=null}if(u=e.baseState,s===null)e.memoizedState=u;else{t=s.next;var S=b=null,_=null,U=t,P=!1;do{var I=U.lane&-536870913;if(I!==U.lane?(Oe&I)===I:(Jn&I)===I){var B=U.revertLane;if(B===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),I===Jl&&(P=!0);else if((Jn&B)===B){U=U.next,B===Jl&&(P=!0);continue}else I={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},_===null?(S=_=I,b=u):_=_.next=I,Ce.lanes|=B,Ma|=B;I=U.action,yl&&a(u,I),u=U.hasEagerState?U.eagerState:a(u,I)}else B={lane:I,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},_===null?(S=_=B,b=u):_=_.next=B,Ce.lanes|=I,Ma|=I;U=U.next}while(U!==null&&U!==t);if(_===null?b=u:_.next=S,!Qt(u,e.memoizedState)&&(dt=!0,P&&(a=Wl,a!==null)))throw a;e.memoizedState=u,e.baseState=b,e.baseQueue=_,r.lastRenderedState=u}return s===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function fu(e){var t=st(),a=t.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=e;var r=a.dispatch,s=a.pending,u=t.memoizedState;if(s!==null){a.pending=null;var b=s=s.next;do u=e(u,b.action),b=b.next;while(b!==s);Qt(u,t.memoizedState)||(dt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,r]}function ph(e,t,a){var r=Ce,s=st(),u=ke;if(u){if(a===void 0)throw Error(i(407));a=a()}else a=t();var b=!Qt((Xe||s).memoizedState,a);if(b&&(s.memoizedState=a,dt=!0),s=s.queue,pu(yh.bind(null,r,s,e),[e]),s.getSnapshot!==t||b||ut!==null&&ut.memoizedState.tag&1){if(r.flags|=2048,rr(9,{destroy:void 0},vh.bind(null,r,s,a,t),null),Ke===null)throw Error(i(349));u||(Jn&127)!==0||gh(r,t,a)}return a}function gh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ce.updateQueue,t===null?(t=Ai(),Ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function vh(e,t,a,r){t.value=a,t.getSnapshot=r,bh(t)&&xh(e)}function yh(e,t,a){return a(function(){bh(t)&&xh(e)})}function bh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Qt(e,a)}catch{return!0}}function xh(e){var t=cl(e,2);t!==null&&qt(t,e,2)}function mu(e){var t=Dt();if(typeof e=="function"){var a=e;if(e=a(),yl){pn(!0);try{a()}finally{pn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:e},t}function Sh(e,t,a,r){return e.baseState=a,du(e,Xe,typeof r=="function"?r:Wn)}function lS(e,t,a,r,s){if(Oi(e))throw Error(i(485));if(e=t.action,e!==null){var u={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){u.listeners.push(b)}};M.T!==null?a(!0):u.isTransition=!1,r(u),a=t.pending,a===null?(u.next=t.pending=u,wh(t,u)):(u.next=a.next,t.pending=a.next=u)}}function wh(e,t){var a=t.action,r=t.payload,s=e.state;if(t.isTransition){var u=M.T,b={};M.T=b;try{var S=a(s,r),_=M.S;_!==null&&_(b,S),Eh(e,t,S)}catch(U){hu(e,t,U)}finally{u!==null&&b.types!==null&&(u.types=b.types),M.T=u}}else try{u=a(s,r),Eh(e,t,u)}catch(U){hu(e,t,U)}}function Eh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){Nh(e,t,r)},function(r){return hu(e,t,r)}):Nh(e,t,a)}function Nh(e,t,a){t.status="fulfilled",t.value=a,Th(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,wh(e,a)))}function hu(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,Th(t),t=t.next;while(t!==r)}e.action=null}function Th(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ch(e,t){return t}function Ah(e,t){if(ke){var a=Ke.formState;if(a!==null){e:{var r=Ce;if(ke){if(Fe){t:{for(var s=Fe,u=un;s.nodeType!==8;){if(!u){s=null;break t}if(s=fn(s.nextSibling),s===null){s=null;break t}}u=s.data,s=u==="F!"||u==="F"?s:null}if(s){Fe=fn(s.nextSibling),r=s.data==="F!";break e}}wa(r)}r=!1}r&&(t=a[0])}}return a=Dt(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ch,lastRenderedState:t},a.queue=r,a=Ph.bind(null,Ce,r),r.dispatch=a,r=mu(!1),u=xu.bind(null,Ce,!1,r.queue),r=Dt(),s={state:t,dispatch:null,action:e,pending:null},r.queue=s,a=lS.bind(null,Ce,s,u,a),s.dispatch=a,r.memoizedState=e,[t,a,!1]}function Rh(e){var t=st();return _h(t,Xe,e)}function _h(e,t,a){if(t=du(e,t,Ch)[0],e=_i(Wn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=co(t)}catch(b){throw b===er?bi:b}else r=t;t=st();var s=t.queue,u=s.dispatch;return a!==t.memoizedState&&(Ce.flags|=2048,rr(9,{destroy:void 0},rS.bind(null,s,a),null)),[r,u,e]}function rS(e,t){e.action=t}function jh(e){var t=st(),a=Xe;if(a!==null)return _h(t,a,e);st(),t=t.memoizedState,a=st();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function rr(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=Ai(),Ce.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function Mh(){return st().memoizedState}function ji(e,t,a,r){var s=Dt();Ce.flags|=e,s.memoizedState=rr(1|t,{destroy:void 0},a,r===void 0?null:r)}function Mi(e,t,a,r){var s=st();r=r===void 0?null:r;var u=s.memoizedState.inst;Xe!==null&&r!==null&&ru(r,Xe.memoizedState.deps)?s.memoizedState=rr(t,u,a,r):(Ce.flags|=e,s.memoizedState=rr(1|t,u,a,r))}function Oh(e,t){ji(8390656,8,e,t)}function pu(e,t){Mi(2048,8,e,t)}function oS(e){Ce.flags|=4;var t=Ce.updateQueue;if(t===null)t=Ai(),Ce.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Dh(e){var t=st().memoizedState;return oS({ref:t,nextImpl:e}),function(){if((Ve&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function kh(e,t){return Mi(4,2,e,t)}function zh(e,t){return Mi(4,4,e,t)}function Lh(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Uh(e,t,a){a=a!=null?a.concat([e]):null,Mi(4,4,Lh.bind(null,t,e),a)}function gu(){}function Bh(e,t){var a=st();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&ru(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function Hh(e,t){var a=st();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&ru(t,r[1]))return r[0];if(r=e(),yl){pn(!0);try{e()}finally{pn(!1)}}return a.memoizedState=[r,t],r}function vu(e,t,a){return a===void 0||(Jn&1073741824)!==0&&(Oe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Vp(),Ce.lanes|=e,Ma|=e,a)}function Vh(e,t,a,r){return Qt(a,t)?a:nr.current!==null?(e=vu(e,a,r),Qt(e,t)||(dt=!0),e):(Jn&42)===0||(Jn&1073741824)!==0&&(Oe&261930)===0?(dt=!0,e.memoizedState=a):(e=Vp(),Ce.lanes|=e,Ma|=e,t)}function $h(e,t,a,r,s){var u=$.p;$.p=u!==0&&8>u?u:8;var b=M.T,S={};M.T=S,xu(e,!1,t,a);try{var _=s(),U=M.S;if(U!==null&&U(S,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var P=tS(_,r);uo(e,t,P,Wt(e))}else uo(e,t,r,Wt(e))}catch(I){uo(e,t,{then:function(){},status:"rejected",reason:I},Wt())}finally{$.p=u,b!==null&&S.types!==null&&(b.types=S.types),M.T=b}}function iS(){}function yu(e,t,a,r){if(e.tag!==5)throw Error(i(476));var s=Yh(e).queue;$h(e,s,t,F,a===null?iS:function(){return qh(e),a(r)})}function Yh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:F},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function qh(e){var t=Yh(e);t.next===null&&(t=e.alternate.memoizedState),uo(e,t.next.queue,{},Wt())}function bu(){return Et(Ro)}function Gh(){return st().memoizedState}function Xh(){return st().memoizedState}function sS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Wt();e=Ta(a);var r=Ca(t,e,a);r!==null&&(qt(r,t,a),ro(r,t,a)),t={cache:Kc()},e.payload=t;return}t=t.return}}function cS(e,t,a){var r=Wt();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Oi(e)?Qh(t,a):(a=Uc(e,t,a,r),a!==null&&(qt(a,e,r),Kh(a,t,r)))}function Ph(e,t,a){var r=Wt();uo(e,t,a,r)}function uo(e,t,a,r){var s={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Oi(e))Qh(t,s);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var b=t.lastRenderedState,S=u(b,a);if(s.hasEagerState=!0,s.eagerState=S,Qt(S,b))return fi(e,t,s,0),Ke===null&&di(),!1}catch{}finally{}if(a=Uc(e,t,s,r),a!==null)return qt(a,e,r),Kh(a,t,r),!0}return!1}function xu(e,t,a,r){if(r={lane:2,revertLane:Ju(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Oi(e)){if(t)throw Error(i(479))}else t=Uc(e,a,r,2),t!==null&&qt(t,e,2)}function Oi(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function Qh(e,t){ar=Ti=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Kh(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,zt(e,a)}}var fo={readContext:Et,use:Ri,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useLayoutEffect:lt,useInsertionEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useSyncExternalStore:lt,useId:lt,useHostTransitionStatus:lt,useFormState:lt,useActionState:lt,useOptimistic:lt,useMemoCache:lt,useCacheRefresh:lt};fo.useEffectEvent=lt;var Zh={readContext:Et,use:Ri,useCallback:function(e,t){return Dt().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:Oh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,ji(4194308,4,Lh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return ji(4194308,4,e,t)},useInsertionEffect:function(e,t){ji(4,2,e,t)},useMemo:function(e,t){var a=Dt();t=t===void 0?null:t;var r=e();if(yl){pn(!0);try{e()}finally{pn(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=Dt();if(a!==void 0){var s=a(t);if(yl){pn(!0);try{a(t)}finally{pn(!1)}}}else s=t;return r.memoizedState=r.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},r.queue=e,e=e.dispatch=cS.bind(null,Ce,e),[r.memoizedState,e]},useRef:function(e){var t=Dt();return e={current:e},t.memoizedState=e},useState:function(e){e=mu(e);var t=e.queue,a=Ph.bind(null,Ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:gu,useDeferredValue:function(e,t){var a=Dt();return vu(a,e,t)},useTransition:function(){var e=mu(!1);return e=$h.bind(null,Ce,e.queue,!0,!1),Dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=Ce,s=Dt();if(ke){if(a===void 0)throw Error(i(407));a=a()}else{if(a=t(),Ke===null)throw Error(i(349));(Oe&127)!==0||gh(r,t,a)}s.memoizedState=a;var u={value:a,getSnapshot:t};return s.queue=u,Oh(yh.bind(null,r,u,e),[e]),r.flags|=2048,rr(9,{destroy:void 0},vh.bind(null,r,u,a,t),null),a},useId:function(){var e=Dt(),t=Ke.identifierPrefix;if(ke){var a=_n,r=Rn;a=(r&~(1<<32-Ct(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ci++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=nS++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:bu,useFormState:Ah,useActionState:Ah,useOptimistic:function(e){var t=Dt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=xu.bind(null,Ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:uu,useCacheRefresh:function(){return Dt().memoizedState=sS.bind(null,Ce)},useEffectEvent:function(e){var t=Dt(),a={impl:e};return t.memoizedState=a,function(){if((Ve&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},Su={readContext:Et,use:Ri,useCallback:Bh,useContext:Et,useEffect:pu,useImperativeHandle:Uh,useInsertionEffect:kh,useLayoutEffect:zh,useMemo:Hh,useReducer:_i,useRef:Mh,useState:function(){return _i(Wn)},useDebugValue:gu,useDeferredValue:function(e,t){var a=st();return Vh(a,Xe.memoizedState,e,t)},useTransition:function(){var e=_i(Wn)[0],t=st().memoizedState;return[typeof e=="boolean"?e:co(e),t]},useSyncExternalStore:ph,useId:Gh,useHostTransitionStatus:bu,useFormState:Rh,useActionState:Rh,useOptimistic:function(e,t){var a=st();return Sh(a,Xe,e,t)},useMemoCache:uu,useCacheRefresh:Xh};Su.useEffectEvent=Dh;var Ih={readContext:Et,use:Ri,useCallback:Bh,useContext:Et,useEffect:pu,useImperativeHandle:Uh,useInsertionEffect:kh,useLayoutEffect:zh,useMemo:Hh,useReducer:fu,useRef:Mh,useState:function(){return fu(Wn)},useDebugValue:gu,useDeferredValue:function(e,t){var a=st();return Xe===null?vu(a,e,t):Vh(a,Xe.memoizedState,e,t)},useTransition:function(){var e=fu(Wn)[0],t=st().memoizedState;return[typeof e=="boolean"?e:co(e),t]},useSyncExternalStore:ph,useId:Gh,useHostTransitionStatus:bu,useFormState:jh,useActionState:jh,useOptimistic:function(e,t){var a=st();return Xe!==null?Sh(a,Xe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:uu,useCacheRefresh:Xh};Ih.useEffectEvent=Dh;function wu(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:v({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Eu={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=Wt(),s=Ta(r);s.payload=t,a!=null&&(s.callback=a),t=Ca(e,s,r),t!==null&&(qt(t,e,r),ro(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=Wt(),s=Ta(r);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=Ca(e,s,r),t!==null&&(qt(t,e,r),ro(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Wt(),r=Ta(a);r.tag=2,t!=null&&(r.callback=t),t=Ca(e,r,a),t!==null&&(qt(t,e,a),ro(t,e,a))}};function Fh(e,t,a,r,s,u,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,u,b):t.prototype&&t.prototype.isPureReactComponent?!Fr(a,r)||!Fr(s,u):!0}function Jh(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&Eu.enqueueReplaceState(t,t.state,null)}function bl(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}if(e=e.defaultProps){a===t&&(a=v({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function Wh(e){ui(e)}function ep(e){console.error(e)}function tp(e){ui(e)}function Di(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function np(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Nu(e,t,a){return a=Ta(a),a.tag=3,a.payload={element:null},a.callback=function(){Di(e,t)},a}function ap(e){return e=Ta(e),e.tag=3,e}function lp(e,t,a,r){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var u=r.value;e.payload=function(){return s(u)},e.callback=function(){np(t,a,r)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){np(t,a,r),typeof s!="function"&&(Oa===null?Oa=new Set([this]):Oa.add(this));var S=r.stack;this.componentDidCatch(r.value,{componentStack:S!==null?S:""})})}function uS(e,t,a,r,s){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&Fl(t,a,s,!0),a=Zt.current,a!==null){switch(a.tag){case 31:case 13:return dn===null?Xi():a.alternate===null&&rt===0&&(rt=3),a.flags&=-257,a.flags|=65536,a.lanes=s,r===xi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),Zu(e,r,s)),!1;case 22:return a.flags|=65536,r===xi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),Zu(e,r,s)),!1}throw Error(i(435,a.tag))}return Zu(e,r,s),Xi(),!1}if(ke)return t=Zt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,r!==qc&&(e=Error(i(422),{cause:r}),eo(on(e,a)))):(r!==qc&&(t=Error(i(423),{cause:r}),eo(on(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,r=on(r,a),s=Nu(e.stateNode,r,s),eu(e,s),rt!==4&&(rt=2)),!1;var u=Error(i(520),{cause:r});if(u=on(u,a),xo===null?xo=[u]:xo.push(u),rt!==4&&(rt=2),t===null)return!0;r=on(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=Nu(a.stateNode,r,e),eu(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Oa===null||!Oa.has(u))))return a.flags|=65536,s&=-s,a.lanes|=s,s=ap(s),lp(s,e,a,r),eu(a,s),!1}a=a.return}while(a!==null);return!1}var Tu=Error(i(461)),dt=!1;function Nt(e,t,a,r){t.child=e===null?sh(t,null,a,r):vl(t,e.child,a,r)}function rp(e,t,a,r,s){a=a.render;var u=t.ref;if("ref"in r){var b={};for(var S in r)S!=="ref"&&(b[S]=r[S])}else b=r;return ml(t),r=ou(e,t,a,b,u,s),S=iu(),e!==null&&!dt?(su(e,t,s),ea(e,t,s)):(ke&&S&&$c(t),t.flags|=1,Nt(e,t,r,s),t.child)}function op(e,t,a,r,s){if(e===null){var u=a.type;return typeof u=="function"&&!Bc(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,ip(e,t,u,r,s)):(e=hi(a.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Du(e,s)){var b=u.memoizedProps;if(a=a.compare,a=a!==null?a:Fr,a(b,r)&&e.ref===t.ref)return ea(e,t,s)}return t.flags|=1,e=Kn(u,r),e.ref=t.ref,e.return=t,t.child=e}function ip(e,t,a,r,s){if(e!==null){var u=e.memoizedProps;if(Fr(u,r)&&e.ref===t.ref)if(dt=!1,t.pendingProps=r=u,Du(e,s))(e.flags&131072)!==0&&(dt=!0);else return t.lanes=e.lanes,ea(e,t,s)}return Cu(e,t,a,r,s)}function sp(e,t,a,r){var s=r.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(r=t.child=e.child,s=0;r!==null;)s=s|r.lanes|r.childLanes,r=r.sibling;r=s&~u}else r=0,t.child=null;return cp(e,t,u,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&yi(t,u!==null?u.cachePool:null),u!==null?dh(t,u):nu(),fh(t);else return r=t.lanes=536870912,cp(e,t,u!==null?u.baseLanes|a:a,a,r)}else u!==null?(yi(t,u.cachePool),dh(t,u),Ra(),t.memoizedState=null):(e!==null&&yi(t,null),nu(),Ra());return Nt(e,t,s,a),t.child}function mo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cp(e,t,a,r,s){var u=Ic();return u=u===null?null:{parent:ct._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&yi(t,null),nu(),fh(t),e!==null&&Fl(e,t,r,!0),t.childLanes=s,null}function ki(e,t){return t=Li({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function up(e,t,a){return vl(t,e.child,null,a),e=ki(t,t.pendingProps),e.flags|=2,It(t),t.memoizedState=null,e}function dS(e,t,a){var r=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ke){if(r.mode==="hidden")return e=ki(t,r),t.lanes=536870912,mo(null,e);if(lu(t),(e=Fe)?(e=wg(e,un),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xa!==null?{id:Rn,overflow:_n}:null,retryLane:536870912,hydrationErrors:null},a=Qm(e),a.return=t,t.child=a,wt=t,Fe=null)):e=null,e===null)throw wa(t);return t.lanes=536870912,null}return ki(t,r)}var u=e.memoizedState;if(u!==null){var b=u.dehydrated;if(lu(t),s)if(t.flags&256)t.flags&=-257,t=up(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(dt||Fl(e,t,a,!1),s=(a&e.childLanes)!==0,dt||s){if(r=Ke,r!==null&&(b=Lt(r,a),b!==0&&b!==u.retryLane))throw u.retryLane=b,cl(e,b),qt(r,e,b),Tu;Xi(),t=up(e,t,a)}else e=u.treeContext,Fe=fn(b.nextSibling),wt=t,ke=!0,Sa=null,un=!1,e!==null&&Im(t,e),t=ki(t,r),t.flags|=4096;return t}return e=Kn(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zi(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Cu(e,t,a,r,s){return ml(t),a=ou(e,t,a,r,void 0,s),r=iu(),e!==null&&!dt?(su(e,t,s),ea(e,t,s)):(ke&&r&&$c(t),t.flags|=1,Nt(e,t,a,s),t.child)}function dp(e,t,a,r,s,u){return ml(t),t.updateQueue=null,a=hh(t,r,a,s),mh(e),r=iu(),e!==null&&!dt?(su(e,t,u),ea(e,t,u)):(ke&&r&&$c(t),t.flags|=1,Nt(e,t,a,u),t.child)}function fp(e,t,a,r,s){if(ml(t),t.stateNode===null){var u=Ql,b=a.contextType;typeof b=="object"&&b!==null&&(u=Et(b)),u=new a(r,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Eu,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=r,u.state=t.memoizedState,u.refs={},Jc(t),b=a.contextType,u.context=typeof b=="object"&&b!==null?Et(b):Ql,u.state=t.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(wu(t,a,b,r),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(b=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),b!==u.state&&Eu.enqueueReplaceState(u,u.state,null),io(t,r,u,s),oo(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){u=t.stateNode;var S=t.memoizedProps,_=bl(a,S);u.props=_;var U=u.context,P=a.contextType;b=Ql,typeof P=="object"&&P!==null&&(b=Et(P));var I=a.getDerivedStateFromProps;P=typeof I=="function"||typeof u.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,P||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(S||U!==b)&&Jh(t,u,r,b),Na=!1;var B=t.memoizedState;u.state=B,io(t,r,u,s),oo(),U=t.memoizedState,S||B!==U||Na?(typeof I=="function"&&(wu(t,a,I,r),U=t.memoizedState),(_=Na||Fh(t,a,_,r,B,U,b))?(P||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=r,t.memoizedState=U),u.props=r,u.state=U,u.context=b,r=_):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,Wc(e,t),b=t.memoizedProps,P=bl(a,b),u.props=P,I=t.pendingProps,B=u.context,U=a.contextType,_=Ql,typeof U=="object"&&U!==null&&(_=Et(U)),S=a.getDerivedStateFromProps,(U=typeof S=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b!==I||B!==_)&&Jh(t,u,r,_),Na=!1,B=t.memoizedState,u.state=B,io(t,r,u,s),oo();var q=t.memoizedState;b!==I||B!==q||Na||e!==null&&e.dependencies!==null&&gi(e.dependencies)?(typeof S=="function"&&(wu(t,a,S,r),q=t.memoizedState),(P=Na||Fh(t,a,P,r,B,q,_)||e!==null&&e.dependencies!==null&&gi(e.dependencies))?(U||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,q,_),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,q,_)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||b===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=q),u.props=r,u.state=q,u.context=_,r=P):(typeof u.componentDidUpdate!="function"||b===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),r=!1)}return u=r,zi(e,t),r=(t.flags&128)!==0,u||r?(u=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&r?(t.child=vl(t,e.child,null,s),t.child=vl(t,null,a,s)):Nt(e,t,a,s),t.memoizedState=u.state,e=t.child):e=ea(e,t,s),e}function mp(e,t,a,r){return dl(),t.flags|=256,Nt(e,t,a,r),t.child}var Au={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ru(e){return{baseLanes:e,cachePool:nh()}}function _u(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Jt),e}function hp(e,t,a){var r=t.pendingProps,s=!1,u=(t.flags&128)!==0,b;if((b=u)||(b=e!==null&&e.memoizedState===null?!1:(it.current&2)!==0),b&&(s=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(ke){if(s?Aa(t):Ra(),(e=Fe)?(e=wg(e,un),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xa!==null?{id:Rn,overflow:_n}:null,retryLane:536870912,hydrationErrors:null},a=Qm(e),a.return=t,t.child=a,wt=t,Fe=null)):e=null,e===null)throw wa(t);return dd(e)?t.lanes=32:t.lanes=536870912,null}var S=r.children;return r=r.fallback,s?(Ra(),s=t.mode,S=Li({mode:"hidden",children:S},s),r=ul(r,s,a,null),S.return=t,r.return=t,S.sibling=r,t.child=S,r=t.child,r.memoizedState=Ru(a),r.childLanes=_u(e,b,a),t.memoizedState=Au,mo(null,r)):(Aa(t),ju(t,S))}var _=e.memoizedState;if(_!==null&&(S=_.dehydrated,S!==null)){if(u)t.flags&256?(Aa(t),t.flags&=-257,t=Mu(e,t,a)):t.memoizedState!==null?(Ra(),t.child=e.child,t.flags|=128,t=null):(Ra(),S=r.fallback,s=t.mode,r=Li({mode:"visible",children:r.children},s),S=ul(S,s,a,null),S.flags|=2,r.return=t,S.return=t,r.sibling=S,t.child=r,vl(t,e.child,null,a),r=t.child,r.memoizedState=Ru(a),r.childLanes=_u(e,b,a),t.memoizedState=Au,t=mo(null,r));else if(Aa(t),dd(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var U=b.dgst;b=U,r=Error(i(419)),r.stack="",r.digest=b,eo({value:r,source:null,stack:null}),t=Mu(e,t,a)}else if(dt||Fl(e,t,a,!1),b=(a&e.childLanes)!==0,dt||b){if(b=Ke,b!==null&&(r=Lt(b,a),r!==0&&r!==_.retryLane))throw _.retryLane=r,cl(e,r),qt(b,e,r),Tu;ud(S)||Xi(),t=Mu(e,t,a)}else ud(S)?(t.flags|=192,t.child=e.child,t=null):(e=_.treeContext,Fe=fn(S.nextSibling),wt=t,ke=!0,Sa=null,un=!1,e!==null&&Im(t,e),t=ju(t,r.children),t.flags|=4096);return t}return s?(Ra(),S=r.fallback,s=t.mode,_=e.child,U=_.sibling,r=Kn(_,{mode:"hidden",children:r.children}),r.subtreeFlags=_.subtreeFlags&65011712,U!==null?S=Kn(U,S):(S=ul(S,s,a,null),S.flags|=2),S.return=t,r.return=t,r.sibling=S,t.child=r,mo(null,r),r=t.child,S=e.child.memoizedState,S===null?S=Ru(a):(s=S.cachePool,s!==null?(_=ct._currentValue,s=s.parent!==_?{parent:_,pool:_}:s):s=nh(),S={baseLanes:S.baseLanes|a,cachePool:s}),r.memoizedState=S,r.childLanes=_u(e,b,a),t.memoizedState=Au,mo(e.child,r)):(Aa(t),a=e.child,e=a.sibling,a=Kn(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(b=t.deletions,b===null?(t.deletions=[e],t.flags|=16):b.push(e)),t.child=a,t.memoizedState=null,a)}function ju(e,t){return t=Li({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Li(e,t){return e=Kt(22,e,null,t),e.lanes=0,e}function Mu(e,t,a){return vl(t,e.child,null,a),e=ju(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pp(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Pc(e.return,t,a)}function Ou(e,t,a,r,s,u){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:s,treeForkCount:u}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=r,b.tail=a,b.tailMode=s,b.treeForkCount=u)}function gp(e,t,a){var r=t.pendingProps,s=r.revealOrder,u=r.tail;r=r.children;var b=it.current,S=(b&2)!==0;if(S?(b=b&1|2,t.flags|=128):b&=1,Q(it,b),Nt(e,t,r,a),r=ke?Wr:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pp(e,a,t);else if(e.tag===19)pp(e,a,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(s){case"forwards":for(a=t.child,s=null;a!==null;)e=a.alternate,e!==null&&Ni(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),Ou(t,!1,s,a,u,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Ni(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}Ou(t,!0,a,null,u,r);break;case"together":Ou(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function ea(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ma|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Fl(e,t,a,!1),(a&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,a=Kn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Kn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Du(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&gi(e)))}function fS(e,t,a){switch(t.tag){case 3:ue(t,t.stateNode.containerInfo),Ea(t,ct,e.memoizedState.cache),dl();break;case 27:case 5:xe(t);break;case 4:ue(t,t.stateNode.containerInfo);break;case 10:Ea(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,lu(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Aa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?hp(e,t,a):(Aa(t),e=ea(e,t,a),e!==null?e.sibling:null);Aa(t);break;case 19:var s=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(Fl(e,t,a,!1),r=(a&t.childLanes)!==0),s){if(r)return gp(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Q(it,it.current),r)break;return null;case 22:return t.lanes=0,sp(e,t,a,t.pendingProps);case 24:Ea(t,ct,e.memoizedState.cache)}return ea(e,t,a)}function vp(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)dt=!0;else{if(!Du(e,a)&&(t.flags&128)===0)return dt=!1,fS(e,t,a);dt=(e.flags&131072)!==0}else dt=!1,ke&&(t.flags&1048576)!==0&&Zm(t,Wr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=pl(t.elementType),t.type=e,typeof e=="function")Bc(e)?(r=bl(e,r),t.tag=1,t=fp(null,t,e,r,a)):(t.tag=0,t=Cu(null,t,e,r,a));else{if(e!=null){var s=e.$$typeof;if(s===z){t.tag=11,t=rp(null,t,e,r,a);break e}else if(s===V){t.tag=14,t=op(null,t,e,r,a);break e}}throw t=de(e)||e,Error(i(306,t,""))}}return t;case 0:return Cu(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,s=bl(r,t.pendingProps),fp(e,t,r,s,a);case 3:e:{if(ue(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var u=t.memoizedState;s=u.element,Wc(e,t),io(t,r,null,a);var b=t.memoizedState;if(r=b.cache,Ea(t,ct,r),r!==u.cache&&Qc(t,[ct],a,!0),oo(),r=b.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=mp(e,t,r,a);break e}else if(r!==s){s=on(Error(i(424)),t),eo(s),t=mp(e,t,r,a);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(Fe=fn(e.firstChild),wt=t,ke=!0,Sa=null,un=!0,a=sh(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(dl(),r===s){t=ea(e,t,a);break e}Nt(e,t,r,a)}t=t.child}return t;case 26:return zi(e,t),e===null?(a=Rg(t.type,null,t.pendingProps,null))?t.memoizedState=a:ke||(a=t.type,e=t.pendingProps,r=Ji(oe.current).createElement(a),r[St]=t,r[Ut]=e,Tt(r,a,e),bt(r),t.stateNode=r):t.memoizedState=Rg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return xe(t),e===null&&ke&&(r=t.stateNode=Tg(t.type,t.pendingProps,oe.current),wt=t,un=!0,s=Fe,La(t.type)?(fd=s,Fe=fn(r.firstChild)):Fe=s),Nt(e,t,t.pendingProps.children,a),zi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ke&&((s=r=Fe)&&(r=YS(r,t.type,t.pendingProps,un),r!==null?(t.stateNode=r,wt=t,Fe=fn(r.firstChild),un=!1,s=!0):s=!1),s||wa(t)),xe(t),s=t.type,u=t.pendingProps,b=e!==null?e.memoizedProps:null,r=u.children,id(s,u)?r=null:b!==null&&id(s,b)&&(t.flags|=32),t.memoizedState!==null&&(s=ou(e,t,aS,null,null,a),Ro._currentValue=s),zi(e,t),Nt(e,t,r,a),t.child;case 6:return e===null&&ke&&((e=a=Fe)&&(a=qS(a,t.pendingProps,un),a!==null?(t.stateNode=a,wt=t,Fe=null,e=!0):e=!1),e||wa(t)),null;case 13:return hp(e,t,a);case 4:return ue(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vl(t,null,r,a):Nt(e,t,r,a),t.child;case 11:return rp(e,t,t.type,t.pendingProps,a);case 7:return Nt(e,t,t.pendingProps,a),t.child;case 8:return Nt(e,t,t.pendingProps.children,a),t.child;case 12:return Nt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,Ea(t,t.type,r.value),Nt(e,t,r.children,a),t.child;case 9:return s=t.type._context,r=t.pendingProps.children,ml(t),s=Et(s),r=r(s),t.flags|=1,Nt(e,t,r,a),t.child;case 14:return op(e,t,t.type,t.pendingProps,a);case 15:return ip(e,t,t.type,t.pendingProps,a);case 19:return gp(e,t,a);case 31:return dS(e,t,a);case 22:return sp(e,t,a,t.pendingProps);case 24:return ml(t),r=Et(ct),e===null?(s=Ic(),s===null&&(s=Ke,u=Kc(),s.pooledCache=u,u.refCount++,u!==null&&(s.pooledCacheLanes|=a),s=u),t.memoizedState={parent:r,cache:s},Jc(t),Ea(t,ct,s)):((e.lanes&a)!==0&&(Wc(e,t),io(t,null,null,a),oo()),s=e.memoizedState,u=t.memoizedState,s.parent!==r?(s={parent:r,cache:r},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Ea(t,ct,r)):(r=u.cache,Ea(t,ct,r),r!==s.cache&&Qc(t,[ct],a,!0))),Nt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function ta(e){e.flags|=4}function ku(e,t,a,r,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Gp())e.flags|=8192;else throw gl=xi,Fc}else e.flags&=-16777217}function yp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Dg(t))if(Gp())e.flags|=8192;else throw gl=xi,Fc}function Ui(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?At():536870912,e.lanes|=t,cr|=t)}function ho(e,t){if(!ke)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Je(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,r|=s.subtreeFlags&65011712,r|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function mS(e,t,a){var r=t.pendingProps;switch(Yc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return Je(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Fn(ct),ee(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Il(t)?ta(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Gc())),Je(t),null;case 26:var s=t.type,u=t.memoizedState;return e===null?(ta(t),u!==null?(Je(t),yp(t,u)):(Je(t),ku(t,s,null,r,a))):u?u!==e.memoizedState?(ta(t),Je(t),yp(t,u)):(Je(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&ta(t),Je(t),ku(t,s,e,r,a)),null;case 27:if(ye(t),a=oe.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ta(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Je(t),null}e=W.current,Il(t)?Fm(t):(e=Tg(s,r,a),t.stateNode=e,ta(t))}return Je(t),null;case 5:if(ye(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ta(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Je(t),null}if(u=W.current,Il(t))Fm(t);else{var b=Ji(oe.current);switch(u){case 1:u=b.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:u=b.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":u=b.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":u=b.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":u=b.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof r.is=="string"?b.createElement("select",{is:r.is}):b.createElement("select"),r.multiple?u.multiple=!0:r.size&&(u.size=r.size);break;default:u=typeof r.is=="string"?b.createElement(s,{is:r.is}):b.createElement(s)}}u[St]=t,u[Ut]=r;e:for(b=t.child;b!==null;){if(b.tag===5||b.tag===6)u.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===t)break e;for(;b.sibling===null;){if(b.return===null||b.return===t)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}t.stateNode=u;e:switch(Tt(u,s,r),s){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&ta(t)}}return Je(t),ku(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ta(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(i(166));if(e=oe.current,Il(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,s=wt,s!==null)switch(s.tag){case 27:case 5:r=s.memoizedProps}e[St]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||hg(e.nodeValue,a)),e||wa(t,!0)}else e=Ji(e).createTextNode(r),e[St]=t,t.stateNode=e}return Je(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=Il(t),a!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[St]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),e=!1}else a=Gc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(It(t),t):(It(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Je(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Il(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(i(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(i(317));s[St]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),s=!1}else s=Gc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(It(t),t):(It(t),null)}return It(t),(t.flags&128)!==0?(t.lanes=a,t):(a=r!==null,e=e!==null&&e.memoizedState!==null,a&&(r=t.child,s=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(s=r.alternate.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==s&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ui(t,t.updateQueue),Je(t),null);case 4:return ee(),e===null&&nd(t.stateNode.containerInfo),Je(t),null;case 10:return Fn(t.type),Je(t),null;case 19:if(Y(it),r=t.memoizedState,r===null)return Je(t),null;if(s=(t.flags&128)!==0,u=r.rendering,u===null)if(s)ho(r,!1);else{if(rt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Ni(e),u!==null){for(t.flags|=128,ho(r,!1),e=u.updateQueue,t.updateQueue=e,Ui(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Pm(a,e),a=a.sibling;return Q(it,it.current&1|2),ke&&Zn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Mt()>Yi&&(t.flags|=128,s=!0,ho(r,!1),t.lanes=4194304)}else{if(!s)if(e=Ni(u),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Ui(t,e),ho(r,!0),r.tail===null&&r.tailMode==="hidden"&&!u.alternate&&!ke)return Je(t),null}else 2*Mt()-r.renderingStartTime>Yi&&a!==536870912&&(t.flags|=128,s=!0,ho(r,!1),t.lanes=4194304);r.isBackwards?(u.sibling=t.child,t.child=u):(e=r.last,e!==null?e.sibling=u:t.child=u,r.last=u)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Mt(),e.sibling=null,a=it.current,Q(it,s?a&1|2:a&1),ke&&Zn(t,r.treeForkCount),e):(Je(t),null);case 22:case 23:return It(t),au(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),a=t.updateQueue,a!==null&&Ui(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&Y(hl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Fn(ct),Je(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function hS(e,t){switch(Yc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fn(ct),ee(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ye(t),null;case 31:if(t.memoizedState!==null){if(It(t),t.alternate===null)throw Error(i(340));dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(It(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(it),null;case 4:return ee(),null;case 10:return Fn(t.type),null;case 22:case 23:return It(t),au(),e!==null&&Y(hl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Fn(ct),null;case 25:return null;default:return null}}function bp(e,t){switch(Yc(t),t.tag){case 3:Fn(ct),ee();break;case 26:case 27:case 5:ye(t);break;case 4:ee();break;case 31:t.memoizedState!==null&&It(t);break;case 13:It(t);break;case 19:Y(it);break;case 10:Fn(t.type);break;case 22:case 23:It(t),au(),e!==null&&Y(hl);break;case 24:Fn(ct)}}function po(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var s=r.next;a=s;do{if((a.tag&e)===e){r=void 0;var u=a.create,b=a.inst;r=u(),b.destroy=r}a=a.next}while(a!==s)}}catch(S){Ge(t,t.return,S)}}function _a(e,t,a){try{var r=t.updateQueue,s=r!==null?r.lastEffect:null;if(s!==null){var u=s.next;r=u;do{if((r.tag&e)===e){var b=r.inst,S=b.destroy;if(S!==void 0){b.destroy=void 0,s=t;var _=a,U=S;try{U()}catch(P){Ge(s,_,P)}}}r=r.next}while(r!==u)}}catch(P){Ge(t,t.return,P)}}function xp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{uh(t,a)}catch(r){Ge(e,e.return,r)}}}function Sp(e,t,a){a.props=bl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){Ge(e,t,r)}}function go(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(s){Ge(e,t,s)}}function jn(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(s){Ge(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(s){Ge(e,t,s)}else a.current=null}function wp(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(s){Ge(e,e.return,s)}}function zu(e,t,a){try{var r=e.stateNode;LS(r,e.type,a,t),r[Ut]=t}catch(s){Ge(e,e.return,s)}}function Ep(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&La(e.type)||e.tag===4}function Lu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ep(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&&La(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,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Pn));else if(r!==4&&(r===27&&La(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Uu(e,t,a),e=e.sibling;e!==null;)Uu(e,t,a),e=e.sibling}function Bi(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&La(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Bi(e,t,a),e=e.sibling;e!==null;)Bi(e,t,a),e=e.sibling}function Np(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Tt(t,r,a),t[St]=e,t[Ut]=a}catch(u){Ge(e,e.return,u)}}var na=!1,ft=!1,Bu=!1,Tp=typeof WeakSet=="function"?WeakSet:Set,xt=null;function pS(e,t){if(e=e.containerInfo,rd=rs,e=Um(e),Mc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var s=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var b=0,S=-1,_=-1,U=0,P=0,I=e,B=null;t:for(;;){for(var q;I!==a||s!==0&&I.nodeType!==3||(S=b+s),I!==u||r!==0&&I.nodeType!==3||(_=b+r),I.nodeType===3&&(b+=I.nodeValue.length),(q=I.firstChild)!==null;)B=I,I=q;for(;;){if(I===e)break t;if(B===a&&++U===s&&(S=b),B===u&&++P===r&&(_=b),(q=I.nextSibling)!==null)break;I=B,B=I.parentNode}I=q}a=S===-1||_===-1?null:{start:S,end:_}}else a=null}a=a||{start:0,end:0}}else a=null;for(od={focusedElem:e,selectionRange:a},rs=!1,xt=t;xt!==null;)if(t=xt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,xt=e;else for(;xt!==null;){switch(t=xt,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(a=0;a<e.length;a++)s=e[a],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,s=u.memoizedProps,u=u.memoizedState,r=a.stateNode;try{var he=bl(a.type,s);e=r.getSnapshotBeforeUpdate(he,u),r.__reactInternalSnapshotBeforeUpdate=e}catch(we){Ge(a,a.return,we)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)cd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":cd(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,xt=e;break}xt=t.return}}function Cp(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:la(e,a),r&4&&po(5,a);break;case 1:if(la(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(b){Ge(a,a.return,b)}else{var s=bl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Ge(a,a.return,b)}}r&64&&xp(a),r&512&&go(a,a.return);break;case 3:if(la(e,a),r&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{uh(e,t)}catch(b){Ge(a,a.return,b)}}break;case 27:t===null&&r&4&&Np(a);case 26:case 5:la(e,a),t===null&&r&4&&wp(a),r&512&&go(a,a.return);break;case 12:la(e,a);break;case 31:la(e,a),r&4&&_p(e,a);break;case 13:la(e,a),r&4&&jp(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=NS.bind(null,a),GS(e,a))));break;case 22:if(r=a.memoizedState!==null||na,!r){t=t!==null&&t.memoizedState!==null||ft,s=na;var u=ft;na=r,(ft=t)&&!u?ra(e,a,(a.subtreeFlags&8772)!==0):la(e,a),na=s,ft=u}break;case 30:break;default:la(e,a)}}function Ap(e){var t=e.alternate;t!==null&&(e.alternate=null,Ap(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&hc(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 et=null,Ht=!1;function aa(e,t,a){for(a=a.child;a!==null;)Rp(e,t,a),a=a.sibling}function Rp(e,t,a){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(nl,a)}catch{}switch(a.tag){case 26:ft||jn(a,t),aa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ft||jn(a,t);var r=et,s=Ht;La(a.type)&&(et=a.stateNode,Ht=!1),aa(e,t,a),To(a.stateNode),et=r,Ht=s;break;case 5:ft||jn(a,t);case 6:if(r=et,s=Ht,et=null,aa(e,t,a),et=r,Ht=s,et!==null)if(Ht)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(a.stateNode)}catch(u){Ge(a,t,u)}else try{et.removeChild(a.stateNode)}catch(u){Ge(a,t,u)}break;case 18:et!==null&&(Ht?(e=et,xg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),vr(e)):xg(et,a.stateNode));break;case 4:r=et,s=Ht,et=a.stateNode.containerInfo,Ht=!0,aa(e,t,a),et=r,Ht=s;break;case 0:case 11:case 14:case 15:_a(2,a,t),ft||_a(4,a,t),aa(e,t,a);break;case 1:ft||(jn(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&Sp(a,t,r)),aa(e,t,a);break;case 21:aa(e,t,a);break;case 22:ft=(r=ft)||a.memoizedState!==null,aa(e,t,a),ft=r;break;default:aa(e,t,a)}}function _p(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{vr(e)}catch(a){Ge(t,t.return,a)}}}function jp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{vr(e)}catch(a){Ge(t,t.return,a)}}function gS(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Tp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Tp),t;default:throw Error(i(435,e.tag))}}function Hi(e,t){var a=gS(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var s=TS.bind(null,e,r);r.then(s,s)}})}function Vt(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var s=a[r],u=e,b=t,S=b;e:for(;S!==null;){switch(S.tag){case 27:if(La(S.type)){et=S.stateNode,Ht=!1;break e}break;case 5:et=S.stateNode,Ht=!1;break e;case 3:case 4:et=S.stateNode.containerInfo,Ht=!0;break e}S=S.return}if(et===null)throw Error(i(160));Rp(u,b,s),et=null,Ht=!1,u=s.alternate,u!==null&&(u.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Mp(t,e),t=t.sibling}var yn=null;function Mp(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Vt(t,e),$t(e),r&4&&(_a(3,e,e.return),po(3,e),_a(5,e,e.return));break;case 1:Vt(t,e),$t(e),r&512&&(ft||a===null||jn(a,a.return)),r&64&&na&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var s=yn;if(Vt(t,e),$t(e),r&512&&(ft||a===null||jn(a,a.return)),r&4){var u=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(r){case"title":u=s.getElementsByTagName("title")[0],(!u||u[Yr]||u[St]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=s.createElement(r),s.head.insertBefore(u,s.querySelector("head > title"))),Tt(u,r,a),u[St]=e,bt(u),r=u;break e;case"link":var b=Mg("link","href",s).get(r+(a.href||""));if(b){for(var S=0;S<b.length;S++)if(u=b[S],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){b.splice(S,1);break t}}u=s.createElement(r),Tt(u,r,a),s.head.appendChild(u);break;case"meta":if(b=Mg("meta","content",s).get(r+(a.content||""))){for(S=0;S<b.length;S++)if(u=b[S],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){b.splice(S,1);break t}}u=s.createElement(r),Tt(u,r,a),s.head.appendChild(u);break;default:throw Error(i(468,r))}u[St]=e,bt(u),r=u}e.stateNode=r}else Og(s,e.type,e.stateNode);else e.stateNode=jg(s,r,e.memoizedProps);else u!==r?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,r===null?Og(s,e.type,e.stateNode):jg(s,r,e.memoizedProps)):r===null&&e.stateNode!==null&&zu(e,e.memoizedProps,a.memoizedProps)}break;case 27:Vt(t,e),$t(e),r&512&&(ft||a===null||jn(a,a.return)),a!==null&&r&4&&zu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Vt(t,e),$t(e),r&512&&(ft||a===null||jn(a,a.return)),e.flags&32){s=e.stateNode;try{Vl(s,"")}catch(he){Ge(e,e.return,he)}}r&4&&e.stateNode!=null&&(s=e.memoizedProps,zu(e,s,a!==null?a.memoizedProps:s)),r&1024&&(Bu=!0);break;case 6:if(Vt(t,e),$t(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(he){Ge(e,e.return,he)}}break;case 3:if(ts=null,s=yn,yn=Wi(t.containerInfo),Vt(t,e),yn=s,$t(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{vr(t.containerInfo)}catch(he){Ge(e,e.return,he)}Bu&&(Bu=!1,Op(e));break;case 4:r=yn,yn=Wi(e.stateNode.containerInfo),Vt(t,e),$t(e),yn=r;break;case 12:Vt(t,e),$t(e);break;case 31:Vt(t,e),$t(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Hi(e,r)));break;case 13:Vt(t,e),$t(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&($i=Mt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Hi(e,r)));break;case 22:s=e.memoizedState!==null;var _=a!==null&&a.memoizedState!==null,U=na,P=ft;if(na=U||s,ft=P||_,Vt(t,e),ft=P,na=U,$t(e),r&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||_||na||ft||xl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){_=a=t;try{if(u=_.stateNode,s)b=u.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{S=_.stateNode;var I=_.memoizedProps.style,B=I!=null&&I.hasOwnProperty("display")?I.display:null;S.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(he){Ge(_,_.return,he)}}}else if(t.tag===6){if(a===null){_=t;try{_.stateNode.nodeValue=s?"":_.memoizedProps}catch(he){Ge(_,_.return,he)}}}else if(t.tag===18){if(a===null){_=t;try{var q=_.stateNode;s?Sg(q,!0):Sg(_.stateNode,!1)}catch(he){Ge(_,_.return,he)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,Hi(e,a))));break;case 19:Vt(t,e),$t(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Hi(e,r)));break;case 30:break;case 21:break;default:Vt(t,e),$t(e)}}function $t(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(Ep(r)){a=r;break}r=r.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var s=a.stateNode,u=Lu(e);Bi(e,u,s);break;case 5:var b=a.stateNode;a.flags&32&&(Vl(b,""),a.flags&=-33);var S=Lu(e);Bi(e,S,b);break;case 3:case 4:var _=a.stateNode.containerInfo,U=Lu(e);Uu(e,U,_);break;default:throw Error(i(161))}}catch(P){Ge(e,e.return,P)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Op(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Op(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function la(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Cp(e,t.alternate,t),t=t.sibling}function xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:_a(4,t,t.return),xl(t);break;case 1:jn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Sp(t,t.return,a),xl(t);break;case 27:To(t.stateNode);case 26:case 5:jn(t,t.return),xl(t);break;case 22:t.memoizedState===null&&xl(t);break;case 30:xl(t);break;default:xl(t)}e=e.sibling}}function ra(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,s=e,u=t,b=u.flags;switch(u.tag){case 0:case 11:case 15:ra(s,u,a),po(4,u);break;case 1:if(ra(s,u,a),r=u,s=r.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(U){Ge(r,r.return,U)}if(r=u,s=r.updateQueue,s!==null){var S=r.stateNode;try{var _=s.shared.hiddenCallbacks;if(_!==null)for(s.shared.hiddenCallbacks=null,s=0;s<_.length;s++)ch(_[s],S)}catch(U){Ge(r,r.return,U)}}a&&b&64&&xp(u),go(u,u.return);break;case 27:Np(u);case 26:case 5:ra(s,u,a),a&&r===null&&b&4&&wp(u),go(u,u.return);break;case 12:ra(s,u,a);break;case 31:ra(s,u,a),a&&b&4&&_p(s,u);break;case 13:ra(s,u,a),a&&b&4&&jp(s,u);break;case 22:u.memoizedState===null&&ra(s,u,a),go(u,u.return);break;case 30:break;default:ra(s,u,a)}t=t.sibling}}function Hu(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&to(a))}function Vu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&to(e))}function bn(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Dp(e,t,a,r),t=t.sibling}function Dp(e,t,a,r){var s=t.flags;switch(t.tag){case 0:case 11:case 15:bn(e,t,a,r),s&2048&&po(9,t);break;case 1:bn(e,t,a,r);break;case 3:bn(e,t,a,r),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&to(e)));break;case 12:if(s&2048){bn(e,t,a,r),e=t.stateNode;try{var u=t.memoizedProps,b=u.id,S=u.onPostCommit;typeof S=="function"&&S(b,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(_){Ge(t,t.return,_)}}else bn(e,t,a,r);break;case 31:bn(e,t,a,r);break;case 13:bn(e,t,a,r);break;case 23:break;case 22:u=t.stateNode,b=t.alternate,t.memoizedState!==null?u._visibility&2?bn(e,t,a,r):vo(e,t):u._visibility&2?bn(e,t,a,r):(u._visibility|=2,or(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Hu(b,t);break;case 24:bn(e,t,a,r),s&2048&&Vu(t.alternate,t);break;default:bn(e,t,a,r)}}function or(e,t,a,r,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,b=t,S=a,_=r,U=b.flags;switch(b.tag){case 0:case 11:case 15:or(u,b,S,_,s),po(8,b);break;case 23:break;case 22:var P=b.stateNode;b.memoizedState!==null?P._visibility&2?or(u,b,S,_,s):vo(u,b):(P._visibility|=2,or(u,b,S,_,s)),s&&U&2048&&Hu(b.alternate,b);break;case 24:or(u,b,S,_,s),s&&U&2048&&Vu(b.alternate,b);break;default:or(u,b,S,_,s)}t=t.sibling}}function vo(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,s=r.flags;switch(r.tag){case 22:vo(a,r),s&2048&&Hu(r.alternate,r);break;case 24:vo(a,r),s&2048&&Vu(r.alternate,r);break;default:vo(a,r)}t=t.sibling}}var yo=8192;function ir(e,t,a){if(e.subtreeFlags&yo)for(e=e.child;e!==null;)kp(e,t,a),e=e.sibling}function kp(e,t,a){switch(e.tag){case 26:ir(e,t,a),e.flags&yo&&e.memoizedState!==null&&n2(a,yn,e.memoizedState,e.memoizedProps);break;case 5:ir(e,t,a);break;case 3:case 4:var r=yn;yn=Wi(e.stateNode.containerInfo),ir(e,t,a),yn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=yo,yo=16777216,ir(e,t,a),yo=r):ir(e,t,a));break;default:ir(e,t,a)}}function zp(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 bo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];xt=r,Up(r,e)}zp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Lp(e),e=e.sibling}function Lp(e){switch(e.tag){case 0:case 11:case 15:bo(e),e.flags&2048&&_a(9,e,e.return);break;case 3:bo(e);break;case 12:bo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Vi(e)):bo(e);break;default:bo(e)}}function Vi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];xt=r,Up(r,e)}zp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:_a(8,t,t.return),Vi(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Vi(t));break;default:Vi(t)}e=e.sibling}}function Up(e,t){for(;xt!==null;){var a=xt;switch(a.tag){case 0:case 11:case 15:_a(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:to(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,xt=r;else e:for(a=e;xt!==null;){r=xt;var s=r.sibling,u=r.return;if(Ap(r),r===a){xt=null;break e}if(s!==null){s.return=u,xt=s;break e}xt=u}}}var vS={getCacheForType:function(e){var t=Et(ct),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Et(ct).controller.signal}},yS=typeof WeakMap=="function"?WeakMap:Map,Ve=0,Ke=null,_e=null,Oe=0,qe=0,Ft=null,ja=!1,sr=!1,$u=!1,oa=0,rt=0,Ma=0,Sl=0,Yu=0,Jt=0,cr=0,xo=null,Yt=null,qu=!1,$i=0,Bp=0,Yi=1/0,qi=null,Oa=null,mt=0,Da=null,ur=null,ia=0,Gu=0,Xu=null,Hp=null,So=0,Pu=null;function Wt(){return(Ve&2)!==0&&Oe!==0?Oe&-Oe:M.T!==null?Ju():fc()}function Vp(){if(Jt===0)if((Oe&536870912)===0||ke){var e=Ol;Ol<<=1,(Ol&3932160)===0&&(Ol=262144),Jt=e}else Jt=536870912;return e=Zt.current,e!==null&&(e.flags|=32),Jt}function qt(e,t,a){(e===Ke&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&(dr(e,0),ka(e,Oe,Jt,!1)),nt(e,a),((Ve&2)===0||e!==Ke)&&(e===Ke&&((Ve&2)===0&&(Sl|=a),rt===4&&ka(e,Oe,Jt,!1)),Mn(e))}function $p(e,t,a){if((Ve&6)!==0)throw Error(i(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||We(e,t),s=r?SS(e,t):Ku(e,t,!0),u=r;do{if(s===0){sr&&!r&&ka(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!bS(a)){s=Ku(e,t,!1),u=!1;continue}if(s===2){if(u=t,e.errorRecoveryDisabledLanes&u)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){t=b;e:{var S=e;s=xo;var _=S.current.memoizedState.isDehydrated;if(_&&(dr(S,b).flags|=256),b=Ku(S,b,!1),b!==2){if($u&&!_){S.errorRecoveryDisabledLanes|=u,Sl|=u,s=4;break e}u=Yt,Yt=s,u!==null&&(Yt===null?Yt=u:Yt.push.apply(Yt,u))}s=b}if(u=!1,s!==2)continue}}if(s===1){dr(e,0),ka(e,t,0,!0);break}e:{switch(r=e,u=s,u){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:ka(r,t,Jt,!ja);break e;case 2:Yt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(s=$i+300-Mt(),10<s)){if(ka(r,t,Jt,!ja),Ne(r,0,!0)!==0)break e;ia=t,r.timeoutHandle=yg(Yp.bind(null,r,a,Yt,qi,qu,t,Jt,Sl,cr,ja,u,"Throttled",-0,0),s);break e}Yp(r,a,Yt,qi,qu,t,Jt,Sl,cr,ja,u,null,-0,0)}}break}while(!0);Mn(e)}function Yp(e,t,a,r,s,u,b,S,_,U,P,I,B,q){if(e.timeoutHandle=-1,I=t.subtreeFlags,I&8192||(I&16785408)===16785408){I={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Pn},kp(t,u,I);var he=(u&62914560)===u?$i-Mt():(u&4194048)===u?Bp-Mt():0;if(he=a2(I,he),he!==null){ia=u,e.cancelPendingCommit=he(Ip.bind(null,e,t,u,a,r,s,b,S,_,P,I,null,B,q)),ka(e,u,b,!U);return}}Ip(e,t,u,a,r,s,b,S,_)}function bS(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var r=0;r<a.length;r++){var s=a[r],u=s.getSnapshot;s=s.value;try{if(!Qt(u(),s))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 ka(e,t,a,r){t&=~Yu,t&=~Sl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var s=t;0<s;){var u=31-Ct(s),b=1<<u;r[u]=-1,s&=~b}a!==0&&ll(e,a,t)}function Gi(){return(Ve&6)===0?(wo(0),!1):!0}function Qu(){if(_e!==null){if(qe===0)var e=_e.return;else e=_e,In=fl=null,cu(e),tr=null,ao=0,e=_e;for(;e!==null;)bp(e.alternate,e),e=e.return;_e=null}}function dr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,HS(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ia=0,Qu(),Ke=e,_e=a=Kn(e.current,null),Oe=t,qe=0,Ft=null,ja=!1,sr=We(e,t),$u=!1,cr=Jt=Yu=Sl=Ma=rt=0,Yt=xo=null,qu=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var s=31-Ct(r),u=1<<s;t|=e[s],r&=~u}return oa=t,di(),a}function qp(e,t){Ce=null,M.H=fo,t===er||t===bi?(t=rh(),qe=3):t===Fc?(t=rh(),qe=4):qe=t===Tu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ft=t,_e===null&&(rt=1,Di(e,on(t,e.current)))}function Gp(){var e=Zt.current;return e===null?!0:(Oe&4194048)===Oe?dn===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?e===dn:!1}function Xp(){var e=M.H;return M.H=fo,e===null?fo:e}function Pp(){var e=M.A;return M.A=vS,e}function Xi(){rt=4,ja||(Oe&4194048)!==Oe&&Zt.current!==null||(sr=!0),(Ma&134217727)===0&&(Sl&134217727)===0||Ke===null||ka(Ke,Oe,Jt,!1)}function Ku(e,t,a){var r=Ve;Ve|=2;var s=Xp(),u=Pp();(Ke!==e||Oe!==t)&&(qi=null,dr(e,t)),t=!1;var b=rt;e:do try{if(qe!==0&&_e!==null){var S=_e,_=Ft;switch(qe){case 8:Qu(),b=6;break e;case 3:case 2:case 9:case 6:Zt.current===null&&(t=!0);var U=qe;if(qe=0,Ft=null,fr(e,S,_,U),a&&sr){b=0;break e}break;default:U=qe,qe=0,Ft=null,fr(e,S,_,U)}}xS(),b=rt;break}catch(P){qp(e,P)}while(!0);return t&&e.shellSuspendCounter++,In=fl=null,Ve=r,M.H=s,M.A=u,_e===null&&(Ke=null,Oe=0,di()),b}function xS(){for(;_e!==null;)Qp(_e)}function SS(e,t){var a=Ve;Ve|=2;var r=Xp(),s=Pp();Ke!==e||Oe!==t?(qi=null,Yi=Mt()+500,dr(e,t)):sr=We(e,t);e:do try{if(qe!==0&&_e!==null){t=_e;var u=Ft;t:switch(qe){case 1:qe=0,Ft=null,fr(e,t,u,1);break;case 2:case 9:if(ah(u)){qe=0,Ft=null,Kp(t);break}t=function(){qe!==2&&qe!==9||Ke!==e||(qe=7),Mn(e)},u.then(t,t);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:ah(u)?(qe=0,Ft=null,Kp(t)):(qe=0,Ft=null,fr(e,t,u,7));break;case 5:var b=null;switch(_e.tag){case 26:b=_e.memoizedState;case 5:case 27:var S=_e;if(b?Dg(b):S.stateNode.complete){qe=0,Ft=null;var _=S.sibling;if(_!==null)_e=_;else{var U=S.return;U!==null?(_e=U,Pi(U)):_e=null}break t}}qe=0,Ft=null,fr(e,t,u,5);break;case 6:qe=0,Ft=null,fr(e,t,u,6);break;case 8:Qu(),rt=6;break e;default:throw Error(i(462))}}wS();break}catch(P){qp(e,P)}while(!0);return In=fl=null,M.H=r,M.A=s,Ve=a,_e!==null?0:(Ke=null,Oe=0,di(),rt)}function wS(){for(;_e!==null&&!jt();)Qp(_e)}function Qp(e){var t=vp(e.alternate,e,oa);e.memoizedProps=e.pendingProps,t===null?Pi(e):_e=t}function Kp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=dp(a,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=dp(a,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:cu(t);default:bp(a,t),t=_e=Pm(t,oa),t=vp(a,t,oa)}e.memoizedProps=e.pendingProps,t===null?Pi(e):_e=t}function fr(e,t,a,r){In=fl=null,cu(t),tr=null,ao=0;var s=t.return;try{if(uS(e,s,t,a,Oe)){rt=1,Di(e,on(a,e.current)),_e=null;return}}catch(u){if(s!==null)throw _e=s,u;rt=1,Di(e,on(a,e.current)),_e=null;return}t.flags&32768?(ke||r===1?e=!0:sr||(Oe&536870912)!==0?e=!1:(ja=e=!0,(r===2||r===9||r===3||r===6)&&(r=Zt.current,r!==null&&r.tag===13&&(r.flags|=16384))),Zp(t,e)):Pi(t)}function Pi(e){var t=e;do{if((t.flags&32768)!==0){Zp(t,ja);return}e=t.return;var a=mS(t.alternate,t,oa);if(a!==null){_e=a;return}if(t=t.sibling,t!==null){_e=t;return}_e=t=e}while(t!==null);rt===0&&(rt=5)}function Zp(e,t){do{var a=hS(e.alternate,e);if(a!==null){a.flags&=32767,_e=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){_e=e;return}_e=e=a}while(e!==null);rt=6,_e=null}function Ip(e,t,a,r,s,u,b,S,_){e.cancelPendingCommit=null;do Qi();while(mt!==0);if((Ve&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(u=t.lanes|t.childLanes,u|=Lc,kt(e,a,u,b,S,_),e===Ke&&(_e=Ke=null,Oe=0),ur=t,Da=e,ia=a,Gu=u,Xu=s,Hp=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,CS(tl,function(){return tg(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=M.T,M.T=null,s=$.p,$.p=2,b=Ve,Ve|=4;try{pS(e,t,a)}finally{Ve=b,$.p=s,M.T=r}}mt=1,Fp(),Jp(),Wp()}}function Fp(){if(mt===1){mt=0;var e=Da,t=ur,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null;var r=$.p;$.p=2;var s=Ve;Ve|=4;try{Mp(t,e);var u=od,b=Um(e.containerInfo),S=u.focusedElem,_=u.selectionRange;if(b!==S&&S&&S.ownerDocument&&Lm(S.ownerDocument.documentElement,S)){if(_!==null&&Mc(S)){var U=_.start,P=_.end;if(P===void 0&&(P=U),"selectionStart"in S)S.selectionStart=U,S.selectionEnd=Math.min(P,S.value.length);else{var I=S.ownerDocument||document,B=I&&I.defaultView||window;if(B.getSelection){var q=B.getSelection(),he=S.textContent.length,we=Math.min(_.start,he),Qe=_.end===void 0?we:Math.min(_.end,he);!q.extend&&we>Qe&&(b=Qe,Qe=we,we=b);var k=zm(S,we),D=zm(S,Qe);if(k&&D&&(q.rangeCount!==1||q.anchorNode!==k.node||q.anchorOffset!==k.offset||q.focusNode!==D.node||q.focusOffset!==D.offset)){var L=I.createRange();L.setStart(k.node,k.offset),q.removeAllRanges(),we>Qe?(q.addRange(L),q.extend(D.node,D.offset)):(L.setEnd(D.node,D.offset),q.addRange(L))}}}}for(I=[],q=S;q=q.parentNode;)q.nodeType===1&&I.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<I.length;S++){var Z=I[S];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}rs=!!rd,od=rd=null}finally{Ve=s,$.p=r,M.T=a}}e.current=t,mt=2}}function Jp(){if(mt===2){mt=0;var e=Da,t=ur,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=M.T,M.T=null;var r=$.p;$.p=2;var s=Ve;Ve|=4;try{Cp(e,t.alternate,t)}finally{Ve=s,$.p=r,M.T=a}}mt=3}}function Wp(){if(mt===4||mt===3){mt=0,pa();var e=Da,t=ur,a=ia,r=Hp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?mt=5:(mt=0,ur=Da=null,eg(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Oa=null),gn(a),t=t.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(nl,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=M.T,s=$.p,$.p=2,M.T=null;try{for(var u=e.onRecoverableError,b=0;b<r.length;b++){var S=r[b];u(S.value,{componentStack:S.stack})}}finally{M.T=t,$.p=s}}(ia&3)!==0&&Qi(),Mn(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===Pu?So++:(So=0,Pu=e):So=0,wo(0)}}function eg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,to(t)))}function Qi(){return Fp(),Jp(),Wp(),tg()}function tg(){if(mt!==5)return!1;var e=Da,t=Gu;Gu=0;var a=gn(ia),r=M.T,s=$.p;try{$.p=32>a?32:a,M.T=null,a=Xu,Xu=null;var u=Da,b=ia;if(mt=0,ur=Da=null,ia=0,(Ve&6)!==0)throw Error(i(331));var S=Ve;if(Ve|=4,Lp(u.current),Dp(u,u.current,b,a),Ve=S,wo(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(nl,u)}catch{}return!0}finally{$.p=s,M.T=r,eg(e,t)}}function ng(e,t,a){t=on(a,t),t=Nu(e.stateNode,t,2),e=Ca(e,t,2),e!==null&&(nt(e,2),Mn(e))}function Ge(e,t,a){if(e.tag===3)ng(e,e,a);else for(;t!==null;){if(t.tag===3){ng(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Oa===null||!Oa.has(r))){e=on(a,e),a=ap(2),r=Ca(t,a,2),r!==null&&(lp(a,r,t,e),nt(r,2),Mn(r));break}}t=t.return}}function Zu(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new yS;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(a)||($u=!0,s.add(a),e=ES.bind(null,e,t,a),t.then(e,e))}function ES(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ke===e&&(Oe&a)===a&&(rt===4||rt===3&&(Oe&62914560)===Oe&&300>Mt()-$i?(Ve&2)===0&&dr(e,0):Yu|=a,cr===Oe&&(cr=0)),Mn(e)}function ag(e,t){t===0&&(t=At()),e=cl(e,t),e!==null&&(nt(e,t),Mn(e))}function NS(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),ag(e,a)}function TS(e,t){var a=0;switch(e.tag){case 31:case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),ag(e,a)}function CS(e,t){return Br(e,t)}var Ki=null,mr=null,Iu=!1,Zi=!1,Fu=!1,za=0;function Mn(e){e!==mr&&e.next===null&&(mr===null?Ki=mr=e:mr=mr.next=e),Zi=!0,Iu||(Iu=!0,RS())}function wo(e,t){if(!Fu&&Zi){Fu=!0;do for(var a=!1,r=Ki;r!==null;){if(e!==0){var s=r.pendingLanes;if(s===0)var u=0;else{var b=r.suspendedLanes,S=r.pingedLanes;u=(1<<31-Ct(42|e)+1)-1,u&=s&~(b&~S),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,ig(r,u))}else u=Oe,u=Ne(r,r===Ke?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(u&3)===0||We(r,u)||(a=!0,ig(r,u));r=r.next}while(a);Fu=!1}}function AS(){lg()}function lg(){Zi=Iu=!1;var e=0;za!==0&&BS()&&(e=za);for(var t=Mt(),a=null,r=Ki;r!==null;){var s=r.next,u=rg(r,t);u===0?(r.next=null,a===null?Ki=s:a.next=s,s===null&&(mr=a)):(a=r,(e!==0||(u&3)!==0)&&(Zi=!0)),r=s}mt!==0&&mt!==5||wo(e),za!==0&&(za=0)}function rg(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var b=31-Ct(u),S=1<<b,_=s[b];_===-1?((S&a)===0||(S&r)!==0)&&(s[b]=yt(S,t)):_<=t&&(e.expiredLanes|=S),u&=~S}if(t=Ke,a=Oe,a=Ne(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(qe===2||qe===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Hr(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||We(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&Hr(r),gn(a)){case 2:case 8:a=Jo;break;case 32:a=tl;break;case 268435456:a=Gn;break;default:a=tl}return r=og.bind(null,e),a=Br(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&Hr(r),e.callbackPriority=2,e.callbackNode=null,2}function og(e,t){if(mt!==0&&mt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Qi()&&e.callbackNode!==a)return null;var r=Oe;return r=Ne(e,e===Ke?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:($p(e,r,t),rg(e,Mt()),e.callbackNode!=null&&e.callbackNode===a?og.bind(null,e):null)}function ig(e,t){if(Qi())return null;$p(e,t,!0)}function RS(){VS(function(){(Ve&6)!==0?Br(el,AS):lg()})}function Ju(){if(za===0){var e=Jl;e===0&&(e=Ml,Ml<<=1,(Ml&261888)===0&&(Ml=256)),za=e}return za}function sg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ai(""+e)}function cg(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function _S(e,t,a,r,s){if(t==="submit"&&a&&a.stateNode===s){var u=sg((s[Ut]||null).action),b=r.submitter;b&&(t=(t=b[Ut]||null)?sg(t.formAction):b.getAttribute("formAction"),t!==null&&(u=t,b=null));var S=new ii("action","action",null,r,s);e.push({event:S,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(za!==0){var _=b?cg(s,b):new FormData(s);yu(a,{pending:!0,data:_,method:s.method,action:u},null,_)}}else typeof u=="function"&&(S.preventDefault(),_=b?cg(s,b):new FormData(s),yu(a,{pending:!0,data:_,method:s.method,action:u},u,_))},currentTarget:s}]})}}for(var Wu=0;Wu<zc.length;Wu++){var ed=zc[Wu],jS=ed.toLowerCase(),MS=ed[0].toUpperCase()+ed.slice(1);vn(jS,"on"+MS)}vn(Vm,"onAnimationEnd"),vn($m,"onAnimationIteration"),vn(Ym,"onAnimationStart"),vn("dblclick","onDoubleClick"),vn("focusin","onFocus"),vn("focusout","onBlur"),vn(Q1,"onTransitionRun"),vn(K1,"onTransitionStart"),vn(Z1,"onTransitionCancel"),vn(qm,"onTransitionEnd"),Bl("onMouseEnter",["mouseout","mouseover"]),Bl("onMouseLeave",["mouseout","mouseover"]),Bl("onPointerEnter",["pointerout","pointerover"]),Bl("onPointerLeave",["pointerout","pointerover"]),rl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rl("onBeforeInput",["compositionend","keypress","textInput","paste"]),rl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Eo="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(" "),OS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Eo));function ug(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],s=r.event;r=r.listeners;e:{var u=void 0;if(t)for(var b=r.length-1;0<=b;b--){var S=r[b],_=S.instance,U=S.currentTarget;if(S=S.listener,_!==u&&s.isPropagationStopped())break e;u=S,s.currentTarget=U;try{u(s)}catch(P){ui(P)}s.currentTarget=null,u=_}else for(b=0;b<r.length;b++){if(S=r[b],_=S.instance,U=S.currentTarget,S=S.listener,_!==u&&s.isPropagationStopped())break e;u=S,s.currentTarget=U;try{u(s)}catch(P){ui(P)}s.currentTarget=null,u=_}}}}function je(e,t){var a=t[mc];a===void 0&&(a=t[mc]=new Set);var r=e+"__bubble";a.has(r)||(dg(t,e,2,!1),a.add(r))}function td(e,t,a){var r=0;t&&(r|=4),dg(a,e,r,t)}var Ii="_reactListening"+Math.random().toString(36).slice(2);function nd(e){if(!e[Ii]){e[Ii]=!0,lm.forEach(function(a){a!=="selectionchange"&&(OS.has(a)||td(a,!1,e),td(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ii]||(t[Ii]=!0,td("selectionchange",!1,t))}}function dg(e,t,a,r){switch(Vg(t)){case 2:var s=o2;break;case 8:s=i2;break;default:s=vd}a=s.bind(null,t,a,e),s=void 0,!wc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,a,{capture:!0,passive:s}):e.addEventListener(t,a,!0):s!==void 0?e.addEventListener(t,a,{passive:s}):e.addEventListener(t,a,!1)}function ad(e,t,a,r,s){var u=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var b=r.tag;if(b===3||b===4){var S=r.stateNode.containerInfo;if(S===s)break;if(b===4)for(b=r.return;b!==null;){var _=b.tag;if((_===3||_===4)&&b.stateNode.containerInfo===s)return;b=b.return}for(;S!==null;){if(b=zl(S),b===null)return;if(_=b.tag,_===5||_===6||_===26||_===27){r=u=b;continue e}S=S.parentNode}}r=r.return}gm(function(){var U=u,P=xc(a),I=[];e:{var B=Gm.get(e);if(B!==void 0){var q=ii,he=e;switch(e){case"keypress":if(ri(a)===0)break e;case"keydown":case"keyup":q=T1;break;case"focusin":he="focus",q=Cc;break;case"focusout":he="blur",q=Cc;break;case"beforeblur":case"afterblur":q=Cc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=bm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=m1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=R1;break;case Vm:case $m:case Ym:q=g1;break;case qm:q=j1;break;case"scroll":case"scrollend":q=d1;break;case"wheel":q=O1;break;case"copy":case"cut":case"paste":q=y1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=Sm;break;case"toggle":case"beforetoggle":q=k1}var we=(t&4)!==0,Qe=!we&&(e==="scroll"||e==="scrollend"),k=we?B!==null?B+"Capture":null:B;we=[];for(var D=U,L;D!==null;){var Z=D;if(L=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||L===null||k===null||(Z=Gr(D,k),Z!=null&&we.push(No(D,Z,L))),Qe)break;D=D.return}0<we.length&&(B=new q(B,he,null,a,P),I.push({event:B,listeners:we}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",B&&a!==bc&&(he=a.relatedTarget||a.fromElement)&&(zl(he)||he[kl]))break e;if((q||B)&&(B=P.window===P?P:(B=P.ownerDocument)?B.defaultView||B.parentWindow:window,q?(he=a.relatedTarget||a.toElement,q=U,he=he?zl(he):null,he!==null&&(Qe=d(he),we=he.tag,he!==Qe||we!==5&&we!==27&&we!==6)&&(he=null)):(q=null,he=U),q!==he)){if(we=bm,Z="onMouseLeave",k="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(we=Sm,Z="onPointerLeave",k="onPointerEnter",D="pointer"),Qe=q==null?B:qr(q),L=he==null?B:qr(he),B=new we(Z,D+"leave",q,a,P),B.target=Qe,B.relatedTarget=L,Z=null,zl(P)===U&&(we=new we(k,D+"enter",he,a,P),we.target=L,we.relatedTarget=Qe,Z=we),Qe=Z,q&&he)t:{for(we=DS,k=q,D=he,L=0,Z=k;Z;Z=we(Z))L++;Z=0;for(var be=D;be;be=we(be))Z++;for(;0<L-Z;)k=we(k),L--;for(;0<Z-L;)D=we(D),Z--;for(;L--;){if(k===D||D!==null&&k===D.alternate){we=k;break t}k=we(k),D=we(D)}we=null}else we=null;q!==null&&fg(I,B,q,we,!1),he!==null&&Qe!==null&&fg(I,Qe,he,we,!0)}}e:{if(B=U?qr(U):window,q=B.nodeName&&B.nodeName.toLowerCase(),q==="select"||q==="input"&&B.type==="file")var Be=_m;else if(Am(B))if(jm)Be=G1;else{Be=Y1;var ve=$1}else q=B.nodeName,!q||q.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?U&&yc(U.elementType)&&(Be=_m):Be=q1;if(Be&&(Be=Be(e,U))){Rm(I,Be,a,P);break e}ve&&ve(e,B,U),e==="focusout"&&U&&B.type==="number"&&U.memoizedProps.value!=null&&vc(B,"number",B.value)}switch(ve=U?qr(U):window,e){case"focusin":(Am(ve)||ve.contentEditable==="true")&&(Gl=ve,Oc=U,Jr=null);break;case"focusout":Jr=Oc=Gl=null;break;case"mousedown":Dc=!0;break;case"contextmenu":case"mouseup":case"dragend":Dc=!1,Bm(I,a,P);break;case"selectionchange":if(P1)break;case"keydown":case"keyup":Bm(I,a,P)}var Ae;if(Rc)e:{switch(e){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else ql?Tm(e,a)&&(De="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(De="onCompositionStart");De&&(wm&&a.locale!=="ko"&&(ql||De!=="onCompositionStart"?De==="onCompositionEnd"&&ql&&(Ae=vm()):(ba=P,Ec="value"in ba?ba.value:ba.textContent,ql=!0)),ve=Fi(U,De),0<ve.length&&(De=new xm(De,e,null,a,P),I.push({event:De,listeners:ve}),Ae?De.data=Ae:(Ae=Cm(a),Ae!==null&&(De.data=Ae)))),(Ae=L1?U1(e,a):B1(e,a))&&(De=Fi(U,"onBeforeInput"),0<De.length&&(ve=new xm("onBeforeInput","beforeinput",null,a,P),I.push({event:ve,listeners:De}),ve.data=Ae)),_S(I,e,U,a,P)}ug(I,t)})}function No(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Fi(e,t){for(var a=t+"Capture",r=[];e!==null;){var s=e,u=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||u===null||(s=Gr(e,a),s!=null&&r.unshift(No(e,s,u)),s=Gr(e,t),s!=null&&r.push(No(e,s,u))),e.tag===3)return r;e=e.return}return[]}function DS(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function fg(e,t,a,r,s){for(var u=t._reactName,b=[];a!==null&&a!==r;){var S=a,_=S.alternate,U=S.stateNode;if(S=S.tag,_!==null&&_===r)break;S!==5&&S!==26&&S!==27||U===null||(_=U,s?(U=Gr(a,u),U!=null&&b.unshift(No(a,U,_))):s||(U=Gr(a,u),U!=null&&b.push(No(a,U,_)))),a=a.return}b.length!==0&&e.push({event:t,listeners:b})}var kS=/\r\n?/g,zS=/\u0000|\uFFFD/g;function mg(e){return(typeof e=="string"?e:""+e).replace(kS,`
50
+ `).replace(zS,"")}function hg(e,t){return t=mg(t),mg(e)===t}function Pe(e,t,a,r,s,u){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Vl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Vl(e,""+r);break;case"className":ti(e,"class",r);break;case"tabIndex":ti(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ti(e,a,r);break;case"style":hm(e,r,u);break;case"data":if(t!=="object"){ti(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=ai(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(a,"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"&&(a==="formAction"?(t!=="input"&&Pe(e,t,"name",s.name,s,null),Pe(e,t,"formEncType",s.formEncType,s,null),Pe(e,t,"formMethod",s.formMethod,s,null),Pe(e,t,"formTarget",s.formTarget,s,null)):(Pe(e,t,"encType",s.encType,s,null),Pe(e,t,"method",s.method,s,null),Pe(e,t,"target",s.target,s,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=ai(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=Pn);break;case"onScroll":r!=null&&je("scroll",e);break;case"onScrollEnd":r!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(i(61));if(a=r.__html,a!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=ai(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):e.removeAttribute(a);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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":je("beforetoggle",e),je("toggle",e),ei(e,"popover",r);break;case"xlinkActuate":Xn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Xn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Xn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Xn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Xn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Xn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Xn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Xn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Xn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":ei(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=c1.get(a)||a,ei(e,a,r))}}function ld(e,t,a,r,s,u){switch(a){case"style":hm(e,r,u);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(i(61));if(a=r.__html,a!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"children":typeof r=="string"?Vl(e,r):(typeof r=="number"||typeof r=="bigint")&&Vl(e,""+r);break;case"onScroll":r!=null&&je("scroll",e);break;case"onScrollEnd":r!=null&&je("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Pn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rm.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),t=a.slice(2,s?a.length-7:void 0),u=e[Ut]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,s),typeof r=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,s);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):ei(e,a,r)}}}function Tt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var r=!1,s=!1,u;for(u in a)if(a.hasOwnProperty(u)){var b=a[u];if(b!=null)switch(u){case"src":r=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Pe(e,t,u,b,a,null)}}s&&Pe(e,t,"srcSet",a.srcSet,a,null),r&&Pe(e,t,"src",a.src,a,null);return;case"input":je("invalid",e);var S=u=b=s=null,_=null,U=null;for(r in a)if(a.hasOwnProperty(r)){var P=a[r];if(P!=null)switch(r){case"name":s=P;break;case"type":b=P;break;case"checked":_=P;break;case"defaultChecked":U=P;break;case"value":u=P;break;case"defaultValue":S=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(i(137,t));break;default:Pe(e,t,r,P,a,null)}}um(e,u,S,_,U,b,s,!1);return;case"select":je("invalid",e),r=b=u=null;for(s in a)if(a.hasOwnProperty(s)&&(S=a[s],S!=null))switch(s){case"value":u=S;break;case"defaultValue":b=S;break;case"multiple":r=S;default:Pe(e,t,s,S,a,null)}t=u,a=b,e.multiple=!!r,t!=null?Hl(e,!!r,t,!1):a!=null&&Hl(e,!!r,a,!0);return;case"textarea":je("invalid",e),u=s=r=null;for(b in a)if(a.hasOwnProperty(b)&&(S=a[b],S!=null))switch(b){case"value":r=S;break;case"defaultValue":s=S;break;case"children":u=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(i(91));break;default:Pe(e,t,b,S,a,null)}fm(e,r,s,u);return;case"option":for(_ in a)if(a.hasOwnProperty(_)&&(r=a[_],r!=null))switch(_){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Pe(e,t,_,r,a,null)}return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(r=0;r<Eo.length;r++)je(Eo[r],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("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(U in a)if(a.hasOwnProperty(U)&&(r=a[U],r!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Pe(e,t,U,r,a,null)}return;default:if(yc(t)){for(P in a)a.hasOwnProperty(P)&&(r=a[P],r!==void 0&&ld(e,t,P,r,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(r=a[S],r!=null&&Pe(e,t,S,r,a,null))}function LS(e,t,a,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,u=null,b=null,S=null,_=null,U=null,P=null;for(q in a){var I=a[q];if(a.hasOwnProperty(q)&&I!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":_=I;default:r.hasOwnProperty(q)||Pe(e,t,q,null,r,I)}}for(var B in r){var q=r[B];if(I=a[B],r.hasOwnProperty(B)&&(q!=null||I!=null))switch(B){case"type":u=q;break;case"name":s=q;break;case"checked":U=q;break;case"defaultChecked":P=q;break;case"value":b=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(i(137,t));break;default:q!==I&&Pe(e,t,B,q,r,I)}}gc(e,b,S,_,U,P,u,s);return;case"select":q=b=S=B=null;for(u in a)if(_=a[u],a.hasOwnProperty(u)&&_!=null)switch(u){case"value":break;case"multiple":q=_;default:r.hasOwnProperty(u)||Pe(e,t,u,null,r,_)}for(s in r)if(u=r[s],_=a[s],r.hasOwnProperty(s)&&(u!=null||_!=null))switch(s){case"value":B=u;break;case"defaultValue":S=u;break;case"multiple":b=u;default:u!==_&&Pe(e,t,s,u,r,_)}t=S,a=b,r=q,B!=null?Hl(e,!!a,B,!1):!!r!=!!a&&(t!=null?Hl(e,!!a,t,!0):Hl(e,!!a,a?[]:"",!1));return;case"textarea":q=B=null;for(S in a)if(s=a[S],a.hasOwnProperty(S)&&s!=null&&!r.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Pe(e,t,S,null,r,s)}for(b in r)if(s=r[b],u=a[b],r.hasOwnProperty(b)&&(s!=null||u!=null))switch(b){case"value":B=s;break;case"defaultValue":q=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(i(91));break;default:s!==u&&Pe(e,t,b,s,r,u)}dm(e,B,q);return;case"option":for(var he in a)if(B=a[he],a.hasOwnProperty(he)&&B!=null&&!r.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Pe(e,t,he,null,r,B)}for(_ in r)if(B=r[_],q=a[_],r.hasOwnProperty(_)&&B!==q&&(B!=null||q!=null))switch(_){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Pe(e,t,_,B,r,q)}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 we in a)B=a[we],a.hasOwnProperty(we)&&B!=null&&!r.hasOwnProperty(we)&&Pe(e,t,we,null,r,B);for(U in r)if(B=r[U],q=a[U],r.hasOwnProperty(U)&&B!==q&&(B!=null||q!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(i(137,t));break;default:Pe(e,t,U,B,r,q)}return;default:if(yc(t)){for(var Qe in a)B=a[Qe],a.hasOwnProperty(Qe)&&B!==void 0&&!r.hasOwnProperty(Qe)&&ld(e,t,Qe,void 0,r,B);for(P in r)B=r[P],q=a[P],!r.hasOwnProperty(P)||B===q||B===void 0&&q===void 0||ld(e,t,P,B,r,q);return}}for(var k in a)B=a[k],a.hasOwnProperty(k)&&B!=null&&!r.hasOwnProperty(k)&&Pe(e,t,k,null,r,B);for(I in r)B=r[I],q=a[I],!r.hasOwnProperty(I)||B===q||B==null&&q==null||Pe(e,t,I,B,r,q)}function pg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function US(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var s=a[r],u=s.transferSize,b=s.initiatorType,S=s.duration;if(u&&S&&pg(b)){for(b=0,S=s.responseEnd,r+=1;r<a.length;r++){var _=a[r],U=_.startTime;if(U>S)break;var P=_.transferSize,I=_.initiatorType;P&&pg(I)&&(_=_.responseEnd,b+=P*(_<S?1:(S-U)/(_-U)))}if(--r,t+=8*(u+b)/(s.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 rd=null,od=null;function Ji(e){return e.nodeType===9?e:e.ownerDocument}function gg(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 vg(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 id(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 sd=null;function BS(){var e=window.event;return e&&e.type==="popstate"?e===sd?!1:(sd=e,!0):(sd=null,!1)}var yg=typeof setTimeout=="function"?setTimeout:void 0,HS=typeof clearTimeout=="function"?clearTimeout:void 0,bg=typeof Promise=="function"?Promise:void 0,VS=typeof queueMicrotask=="function"?queueMicrotask:typeof bg<"u"?function(e){return bg.resolve(null).then(e).catch($S)}:yg;function $S(e){setTimeout(function(){throw e})}function La(e){return e==="head"}function xg(e,t){var a=t,r=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(r===0){e.removeChild(s),vr(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")To(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,To(a);for(var u=a.firstChild;u;){var b=u.nextSibling,S=u.nodeName;u[Yr]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=b}}else a==="body"&&To(e.ownerDocument.body);a=s}while(a);vr(t)}function Sg(e,t){var a=e;e=0;do{var r=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=r}while(a)}function cd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":cd(a),hc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function YS(e,t,a,r){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Yr])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!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=fn(e.nextSibling),e===null)break}return null}function qS(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=fn(e.nextSibling),e===null))return null;return e}function wg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=fn(e.nextSibling),e===null))return null;return e}function ud(e){return e.data==="$?"||e.data==="$~"}function dd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function GS(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function fn(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 fd=null;function Eg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return fn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Ng(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Tg(e,t,a){switch(t=Ji(a),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 To(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);hc(e)}var mn=new Map,Cg=new Set;function Wi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var sa=$.d;$.d={f:XS,r:PS,D:QS,C:KS,L:ZS,m:IS,X:JS,S:FS,M:WS};function XS(){var e=sa.f(),t=Gi();return e||t}function PS(e){var t=Ll(e);t!==null&&t.tag===5&&t.type==="form"?qh(t):sa.r(e)}var hr=typeof document>"u"?null:document;function Ag(e,t,a){var r=hr;if(r&&typeof t=="string"&&t){var s=ln(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),Cg.has(s)||(Cg.add(s),e={rel:e,crossOrigin:a,href:t},r.querySelector(s)===null&&(t=r.createElement("link"),Tt(t,"link",e),bt(t),r.head.appendChild(t)))}}function QS(e){sa.D(e),Ag("dns-prefetch",e,null)}function KS(e,t){sa.C(e,t),Ag("preconnect",e,t)}function ZS(e,t,a){sa.L(e,t,a);var r=hr;if(r&&e&&t){var s='link[rel="preload"][as="'+ln(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+ln(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+ln(a.imageSizes)+'"]')):s+='[href="'+ln(e)+'"]';var u=s;switch(t){case"style":u=pr(e);break;case"script":u=gr(e)}mn.has(u)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),mn.set(u,e),r.querySelector(s)!==null||t==="style"&&r.querySelector(Co(u))||t==="script"&&r.querySelector(Ao(u))||(t=r.createElement("link"),Tt(t,"link",e),bt(t),r.head.appendChild(t)))}}function IS(e,t){sa.m(e,t);var a=hr;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+ln(r)+'"][href="'+ln(e)+'"]',u=s;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=gr(e)}if(!mn.has(u)&&(e=v({rel:"modulepreload",href:e},t),mn.set(u,e),a.querySelector(s)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ao(u)))return}r=a.createElement("link"),Tt(r,"link",e),bt(r),a.head.appendChild(r)}}}function FS(e,t,a){sa.S(e,t,a);var r=hr;if(r&&e){var s=Ul(r).hoistableStyles,u=pr(e);t=t||"default";var b=s.get(u);if(!b){var S={loading:0,preload:null};if(b=r.querySelector(Co(u)))S.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=mn.get(u))&&md(e,a);var _=b=r.createElement("link");bt(_),Tt(_,"link",e),_._p=new Promise(function(U,P){_.onload=U,_.onerror=P}),_.addEventListener("load",function(){S.loading|=1}),_.addEventListener("error",function(){S.loading|=2}),S.loading|=4,es(b,t,r)}b={type:"stylesheet",instance:b,count:1,state:S},s.set(u,b)}}}function JS(e,t){sa.X(e,t);var a=hr;if(a&&e){var r=Ul(a).hoistableScripts,s=gr(e),u=r.get(s);u||(u=a.querySelector(Ao(s)),u||(e=v({src:e,async:!0},t),(t=mn.get(s))&&hd(e,t),u=a.createElement("script"),bt(u),Tt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(s,u))}}function WS(e,t){sa.M(e,t);var a=hr;if(a&&e){var r=Ul(a).hoistableScripts,s=gr(e),u=r.get(s);u||(u=a.querySelector(Ao(s)),u||(e=v({src:e,async:!0,type:"module"},t),(t=mn.get(s))&&hd(e,t),u=a.createElement("script"),bt(u),Tt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(s,u))}}function Rg(e,t,a,r){var s=(s=oe.current)?Wi(s):null;if(!s)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=pr(a.href),a=Ul(s).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=pr(a.href);var u=Ul(s).hoistableStyles,b=u.get(e);if(b||(s=s.ownerDocument||s,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,b),(u=s.querySelector(Co(e)))&&!u._p&&(b.instance=u,b.state.loading=5),mn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},mn.set(e,a),u||e2(s,e,a,b.state))),t&&r===null)throw Error(i(528,""));return b}if(t&&r!==null)throw Error(i(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=gr(a),a=Ul(s).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function pr(e){return'href="'+ln(e)+'"'}function Co(e){return'link[rel="stylesheet"]['+e+"]"}function _g(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function e2(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Tt(t,"link",a),bt(t),e.head.appendChild(t))}function gr(e){return'[src="'+ln(e)+'"]'}function Ao(e){return"script[async]"+e}function jg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+ln(a.href)+'"]');if(r)return t.instance=r,bt(r),r;var s=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),bt(r),Tt(r,"style",s),es(r,a.precedence,e),t.instance=r;case"stylesheet":s=pr(a.href);var u=e.querySelector(Co(s));if(u)return t.state.loading|=4,t.instance=u,bt(u),u;r=_g(a),(s=mn.get(s))&&md(r,s),u=(e.ownerDocument||e).createElement("link"),bt(u);var b=u;return b._p=new Promise(function(S,_){b.onload=S,b.onerror=_}),Tt(u,"link",r),t.state.loading|=4,es(u,a.precedence,e),t.instance=u;case"script":return u=gr(a.src),(s=e.querySelector(Ao(u)))?(t.instance=s,bt(s),s):(r=a,(s=mn.get(u))&&(r=v({},a),hd(r,s)),e=e.ownerDocument||e,s=e.createElement("script"),bt(s),Tt(s,"link",r),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,es(r,a.precedence,e));return t.instance}function es(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=r.length?r[r.length-1]:null,u=s,b=0;b<r.length;b++){var S=r[b];if(S.dataset.precedence===t)u=S;else if(u!==s)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function md(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function hd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ts=null;function Mg(e,t,a){if(ts===null){var r=new Map,s=ts=new Map;s.set(a,r)}else s=ts,r=s.get(a),r||(r=new Map,s.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),s=0;s<a.length;s++){var u=a[s];if(!(u[Yr]||u[St]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var b=u.getAttribute(t)||"";b=e+b;var S=r.get(b);S?S.push(u):r.set(b,[u])}}return r}function Og(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function t2(e,t,a){if(a===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 Dg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function n2(e,t,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=pr(r.href),u=t.querySelector(Co(s));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ns.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,bt(u);return}u=t.ownerDocument||t,r=_g(r),(s=mn.get(s))&&md(r,s),u=u.createElement("link"),bt(u);var b=u;b._p=new Promise(function(S,_){b.onload=S,b.onerror=_}),Tt(u,"link",r),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=ns.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var pd=0;function a2(e,t){return e.stylesheets&&e.count===0&&ls(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&ls(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&pd===0&&(pd=62500*US());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ls(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>pd?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(s)}}:null}function ns(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ls(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var as=null;function ls(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,as=new Map,t.forEach(l2,e),as=null,ns.call(e))}function l2(e,t){if(!(t.state.loading&4)){var a=as.get(e);if(a)var r=a.get(null);else{a=new Map,as.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<s.length;u++){var b=s[u];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(a.set(b.dataset.precedence,b),r=b)}r&&a.set(null,r)}s=t.instance,b=s.getAttribute("data-precedence"),u=a.get(b)||r,u===r&&a.set(null,s),a.set(b,s),this.count++,r=ns.bind(this),s.addEventListener("load",r),s.addEventListener("error",r),u?u.parentNode.insertBefore(s,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Ro={$$typeof:O,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function r2(e,t,a,r,s,u,b,S,_){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=va(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=va(0),this.hiddenUpdates=va(null),this.identifierPrefix=r,this.onUncaughtError=s,this.onCaughtError=u,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function kg(e,t,a,r,s,u,b,S,_,U,P,I){return e=new r2(e,t,a,b,_,U,P,I,S),t=1,u===!0&&(t|=24),u=Kt(3,null,null,t),e.current=u,u.stateNode=e,t=Kc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:r,isDehydrated:a,cache:t},Jc(u),e}function zg(e){return e?(e=Ql,e):Ql}function Lg(e,t,a,r,s,u){s=zg(s),r.context===null?r.context=s:r.pendingContext=s,r=Ta(t),r.payload={element:a},u=u===void 0?null:u,u!==null&&(r.callback=u),a=Ca(e,r,t),a!==null&&(qt(a,e,t),ro(a,e,t))}function Ug(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function gd(e,t){Ug(e,t),(e=e.alternate)&&Ug(e,t)}function Bg(e){if(e.tag===13||e.tag===31){var t=cl(e,67108864);t!==null&&qt(t,e,67108864),gd(e,67108864)}}function Hg(e){if(e.tag===13||e.tag===31){var t=Wt();t=Dl(t);var a=cl(e,t);a!==null&&qt(a,e,t),gd(e,t)}}var rs=!0;function o2(e,t,a,r){var s=M.T;M.T=null;var u=$.p;try{$.p=2,vd(e,t,a,r)}finally{$.p=u,M.T=s}}function i2(e,t,a,r){var s=M.T;M.T=null;var u=$.p;try{$.p=8,vd(e,t,a,r)}finally{$.p=u,M.T=s}}function vd(e,t,a,r){if(rs){var s=yd(r);if(s===null)ad(e,t,r,os,a),$g(e,r);else if(c2(s,e,t,a,r))r.stopPropagation();else if($g(e,r),t&4&&-1<s2.indexOf(e)){for(;s!==null;){var u=Ll(s);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var b=An(u.pendingLanes);if(b!==0){var S=u;for(S.pendingLanes|=2,S.entangledLanes|=2;b;){var _=1<<31-Ct(b);S.entanglements[1]|=_,b&=~_}Mn(u),(Ve&6)===0&&(Yi=Mt()+500,wo(0))}}break;case 31:case 13:S=cl(u,2),S!==null&&qt(S,u,2),Gi(),gd(u,2)}if(u=yd(r),u===null&&ad(e,t,r,os,a),u===s)break;s=u}s!==null&&r.stopPropagation()}else ad(e,t,r,null,a)}}function yd(e){return e=xc(e),bd(e)}var os=null;function bd(e){if(os=null,e=zl(e),e!==null){var t=d(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=m(t),e!==null)return e;e=null}else if(a===31){if(e=h(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return os=e,null}function Vg(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(uc()){case el:return 2;case Jo:return 8;case tl:case Vr:return 32;case Gn:return 268435456;default:return 32}default:return 32}}var xd=!1,Ua=null,Ba=null,Ha=null,_o=new Map,jo=new Map,Va=[],s2="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 $g(e,t){switch(e){case"focusin":case"focusout":Ua=null;break;case"dragenter":case"dragleave":Ba=null;break;case"mouseover":case"mouseout":Ha=null;break;case"pointerover":case"pointerout":_o.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jo.delete(t.pointerId)}}function Mo(e,t,a,r,s,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:u,targetContainers:[s]},t!==null&&(t=Ll(t),t!==null&&Bg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function c2(e,t,a,r,s){switch(t){case"focusin":return Ua=Mo(Ua,e,t,a,r,s),!0;case"dragenter":return Ba=Mo(Ba,e,t,a,r,s),!0;case"mouseover":return Ha=Mo(Ha,e,t,a,r,s),!0;case"pointerover":var u=s.pointerId;return _o.set(u,Mo(_o.get(u)||null,e,t,a,r,s)),!0;case"gotpointercapture":return u=s.pointerId,jo.set(u,Mo(jo.get(u)||null,e,t,a,r,s)),!0}return!1}function Yg(e){var t=zl(e.target);if(t!==null){var a=d(t);if(a!==null){if(t=a.tag,t===13){if(t=m(a),t!==null){e.blockedOn=t,nm(e.priority,function(){Hg(a)});return}}else if(t===31){if(t=h(a),t!==null){e.blockedOn=t,nm(e.priority,function(){Hg(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function is(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=yd(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);bc=r,a.target.dispatchEvent(r),bc=null}else return t=Ll(a),t!==null&&Bg(t),e.blockedOn=a,!1;t.shift()}return!0}function qg(e,t,a){is(e)&&a.delete(t)}function u2(){xd=!1,Ua!==null&&is(Ua)&&(Ua=null),Ba!==null&&is(Ba)&&(Ba=null),Ha!==null&&is(Ha)&&(Ha=null),_o.forEach(qg),jo.forEach(qg)}function ss(e,t){e.blockedOn===t&&(e.blockedOn=null,xd||(xd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,u2)))}var cs=null;function Gg(e){cs!==e&&(cs=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){cs===e&&(cs=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],s=e[t+2];if(typeof r!="function"){if(bd(r||a)===null)continue;break}var u=Ll(a);u!==null&&(e.splice(t,3),t-=3,yu(u,{pending:!0,data:s,method:a.method,action:r},r,s))}}))}function vr(e){function t(_){return ss(_,e)}Ua!==null&&ss(Ua,e),Ba!==null&&ss(Ba,e),Ha!==null&&ss(Ha,e),_o.forEach(t),jo.forEach(t);for(var a=0;a<Va.length;a++){var r=Va[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Va.length&&(a=Va[0],a.blockedOn===null);)Yg(a),a.blockedOn===null&&Va.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var s=a[r],u=a[r+1],b=s[Ut]||null;if(typeof u=="function")b||Gg(a);else if(b){var S=null;if(u&&u.hasAttribute("formAction")){if(s=u,b=u[Ut]||null)S=b.formAction;else if(bd(s)!==null)continue}else S=b.action;typeof S=="function"?a[r+1]=S:(a.splice(r,3),r-=3),Gg(a)}}}function Xg(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(b){return s=b})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),r||setTimeout(a,20)}function a(){if(!r&&!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 r=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function Sd(e){this._internalRoot=e}us.prototype.render=Sd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var a=t.current,r=Wt();Lg(a,r,e,t,null,null)},us.prototype.unmount=Sd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lg(e.current,2,null,e,null,null),Gi(),t[kl]=null}};function us(e){this._internalRoot=e}us.prototype.unstable_scheduleHydration=function(e){if(e){var t=fc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Va.length&&t!==0&&t<Va[a].priority;a++);Va.splice(a,0,e),a===0&&Yg(e)}};var Pg=l.version;if(Pg!=="19.2.4")throw Error(i(527,Pg,"19.2.4"));$.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=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var d2={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ds=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ds.isDisabled&&ds.supportsFiber)try{nl=ds.inject(d2),Ot=ds}catch{}}return Do.createRoot=function(e,t){if(!c(e))throw Error(i(299));var a=!1,r="",s=Wh,u=ep,b=tp;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=kg(e,1,!1,null,null,a,r,null,s,u,b,Xg),e[kl]=t.current,nd(e),new Sd(t)},Do.hydrateRoot=function(e,t,a){if(!c(e))throw Error(i(299));var r=!1,s="",u=Wh,b=ep,S=tp,_=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(_=a.formState)),t=kg(e,1,!0,t,a??null,r,s,_,u,b,S,Xg),t.context=zg(null),a=t.current,r=Wt(),r=Dl(r),s=Ta(r),s.callback=null,Ca(a,s,r),a=r,t.current.lanes=a,nt(t,a),Mn(t),e[kl]=t.current,nd(e),new us(t)},Do.version="19.2.4",Do}var nv;function S2(){if(nv)return Nd.exports;nv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Nd.exports=x2(),Nd.exports}var w2=S2();const E2="modulepreload",N2=function(n){return"/"+n},av={},a0=function(l,o,i){let c=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(x=>Promise.resolve(x).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),g=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));c=m(o.map(p=>{if(p=N2(p),p in av)return;av[p]=!0;const x=p.endsWith(".css"),v=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const w=document.createElement("link");if(w.rel=x?"stylesheet":E2,x||(w.as="script"),w.crossOrigin="",w.href=p,g&&w.setAttribute("nonce",g),document.head.appendChild(w),x)return new Promise((T,N)=>{w.addEventListener("load",T),w.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=m,window.dispatchEvent(h),!h.defaultPrevented)throw m}return c.then(m=>{for(const h of m||[])h.status==="rejected"&&d(h.reason);return l().catch(d)})};/**
51
+ * react-router v7.13.2
52
+ *
53
+ * Copyright (c) Remix Software Inc.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE.md file in the root directory of this source tree.
57
+ *
58
+ * @license MIT
59
+ */var lv="popstate";function rv(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function T2(n={}){function l(i,c){var p;let d=(p=c.state)==null?void 0:p.masked,{pathname:m,search:h,hash:g}=d||i.location;return Kd("",{pathname:m,search:h,hash:g},c.state&&c.state.usr||null,c.state&&c.state.key||"default",d?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function o(i,c){return typeof c=="string"?c:Go(c)}return A2(l,o,null,n)}function tt(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function wn(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function C2(){return Math.random().toString(36).substring(2,10)}function ov(n,l){return{usr:n.state,key:n.key,idx:l,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function Kd(n,l,o=null,i,c){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?Mr(l):l,state:o,key:l&&l.key||i||C2(),unstable_mask:c}}function Go({pathname:n="/",search:l="",hash:o=""}){return l&&l!=="?"&&(n+=l.charAt(0)==="?"?l:"?"+l),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function Mr(n){let l={};if(n){let o=n.indexOf("#");o>=0&&(l.hash=n.substring(o),n=n.substring(0,o));let i=n.indexOf("?");i>=0&&(l.search=n.substring(i),n=n.substring(0,i)),n&&(l.pathname=n)}return l}function A2(n,l,o,i={}){let{window:c=document.defaultView,v5Compat:d=!1}=i,m=c.history,h="POP",g=null,p=x();p==null&&(p=0,m.replaceState({...m.state,idx:p},""));function x(){return(m.state||{idx:null}).idx}function v(){h="POP";let C=x(),A=C==null?null:C-p;p=C,g&&g({action:h,location:E.location,delta:A})}function w(C,A){h="PUSH";let j=rv(C)?C:Kd(E.location,C,A);p=x()+1;let O=ov(j,p),z=E.createHref(j.unstable_mask||j);try{m.pushState(O,"",z)}catch(X){if(X instanceof DOMException&&X.name==="DataCloneError")throw X;c.location.assign(z)}d&&g&&g({action:h,location:E.location,delta:1})}function T(C,A){h="REPLACE";let j=rv(C)?C:Kd(E.location,C,A);p=x();let O=ov(j,p),z=E.createHref(j.unstable_mask||j);m.replaceState(O,"",z),d&&g&&g({action:h,location:E.location,delta:0})}function N(C){return R2(C)}let E={get action(){return h},get location(){return n(c,m)},listen(C){if(g)throw new Error("A history only accepts one active listener");return c.addEventListener(lv,v),g=C,()=>{c.removeEventListener(lv,v),g=null}},createHref(C){return l(c,C)},createURL:N,encodeLocation(C){let A=N(C);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:w,replace:T,go(C){return m.go(C)}};return E}function R2(n,l=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),tt(o,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:Go(n);return i=i.replace(/ $/,"%20"),!l&&i.startsWith("//")&&(i=o+i),new URL(i,o)}function l0(n,l,o="/"){return _2(n,l,o,!1)}function _2(n,l,o,i){let c=typeof l=="string"?Mr(l):l,d=ua(c.pathname||"/",o);if(d==null)return null;let m=r0(n);j2(m);let h=null;for(let g=0;h==null&&g<m.length;++g){let p=$2(d);h=H2(m[g],p,i)}return h}function r0(n,l=[],o=[],i="",c=!1){let d=(m,h,g=c,p)=>{let x={relativePath:p===void 0?m.path||"":p,caseSensitive:m.caseSensitive===!0,childrenIndex:h,route:m};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(i)&&g)return;tt(x.relativePath.startsWith(i),`Absolute route path "${x.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(i.length)}let v=Vn([i,x.relativePath]),w=o.concat(x);m.children&&m.children.length>0&&(tt(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),r0(m.children,l,w,v,g)),!(m.path==null&&!m.index)&&l.push({path:v,score:U2(v,m.index),routesMeta:w})};return n.forEach((m,h)=>{var g;if(m.path===""||!((g=m.path)!=null&&g.includes("?")))d(m,h);else for(let p of o0(m.path))d(m,h,!0,p)}),l}function o0(n){let l=n.split("/");if(l.length===0)return[];let[o,...i]=l,c=o.endsWith("?"),d=o.replace(/\?$/,"");if(i.length===0)return c?[d,""]:[d];let m=o0(i.join("/")),h=[];return h.push(...m.map(g=>g===""?d:[d,g].join("/"))),c&&h.push(...m),h.map(g=>n.startsWith("/")&&g===""?"/":g)}function j2(n){n.sort((l,o)=>l.score!==o.score?o.score-l.score:B2(l.routesMeta.map(i=>i.childrenIndex),o.routesMeta.map(i=>i.childrenIndex)))}var M2=/^:[\w-]+$/,O2=3,D2=2,k2=1,z2=10,L2=-2,iv=n=>n==="*";function U2(n,l){let o=n.split("/"),i=o.length;return o.some(iv)&&(i+=L2),l&&(i+=D2),o.filter(c=>!iv(c)).reduce((c,d)=>c+(M2.test(d)?O2:d===""?k2:z2),i)}function B2(n,l){return n.length===l.length&&n.slice(0,-1).every((i,c)=>i===l[c])?n[n.length-1]-l[l.length-1]:0}function H2(n,l,o=!1){let{routesMeta:i}=n,c={},d="/",m=[];for(let h=0;h<i.length;++h){let g=i[h],p=h===i.length-1,x=d==="/"?l:l.slice(d.length)||"/",v=_s({path:g.relativePath,caseSensitive:g.caseSensitive,end:p},x),w=g.route;if(!v&&p&&o&&!i[i.length-1].route.index&&(v=_s({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},x)),!v)return null;Object.assign(c,v.params),m.push({params:c,pathname:Vn([d,v.pathname]),pathnameBase:X2(Vn([d,v.pathnameBase])),route:w}),v.pathnameBase!=="/"&&(d=Vn([d,v.pathnameBase]))}return m}function _s(n,l){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[o,i]=V2(n.path,n.caseSensitive,n.end),c=l.match(o);if(!c)return null;let d=c[0],m=d.replace(/(.)\/+$/,"$1"),h=c.slice(1);return{params:i.reduce((p,{paramName:x,isOptional:v},w)=>{if(x==="*"){let N=h[w]||"";m=d.slice(0,d.length-N.length).replace(/(.)\/+$/,"$1")}const T=h[w];return v&&!T?p[x]=void 0:p[x]=(T||"").replace(/%2F/g,"/"),p},{}),pathname:d,pathnameBase:m,pattern:n}}function V2(n,l=!1,o=!0){wn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let i=[],c="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,h,g,p,x)=>{if(i.push({paramName:h,isOptional:g!=null}),g){let v=x.charAt(p+m.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(i.push({paramName:"*"}),c+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,l?void 0:"i"),i]}function $2(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return wn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),n}}function ua(n,l){if(l==="/")return n;if(!n.toLowerCase().startsWith(l.toLowerCase()))return null;let o=l.endsWith("/")?l.length-1:l.length,i=n.charAt(o);return i&&i!=="/"?null:n.slice(o)||"/"}var Y2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function q2(n,l="/"){let{pathname:o,search:i="",hash:c=""}=typeof n=="string"?Mr(n):n,d;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?d=sv(o.substring(1),"/"):d=sv(o,l)):d=l,{pathname:d,search:P2(i),hash:Q2(c)}}function sv(n,l){let o=l.replace(/\/+$/,"").split("/");return n.split("/").forEach(c=>{c===".."?o.length>1&&o.pop():c!=="."&&o.push(c)}),o.length>1?o.join("/"):"/"}function Rd(n,l,o,i){return`Cannot include a '${n}' character in a manually specified \`to.${l}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function G2(n){return n.filter((l,o)=>o===0||l.route.path&&l.route.path.length>0)}function vf(n){let l=G2(n);return l.map((o,i)=>i===l.length-1?o.pathname:o.pathnameBase)}function Ks(n,l,o,i=!1){let c;typeof n=="string"?c=Mr(n):(c={...n},tt(!c.pathname||!c.pathname.includes("?"),Rd("?","pathname","search",c)),tt(!c.pathname||!c.pathname.includes("#"),Rd("#","pathname","hash",c)),tt(!c.search||!c.search.includes("#"),Rd("#","search","hash",c)));let d=n===""||c.pathname==="",m=d?"/":c.pathname,h;if(m==null)h=o;else{let v=l.length-1;if(!i&&m.startsWith("..")){let w=m.split("/");for(;w[0]==="..";)w.shift(),v-=1;c.pathname=w.join("/")}h=v>=0?l[v]:"/"}let g=q2(c,h),p=m&&m!=="/"&&m.endsWith("/"),x=(d||m===".")&&o.endsWith("/");return!g.pathname.endsWith("/")&&(p||x)&&(g.pathname+="/"),g}var Vn=n=>n.join("/").replace(/\/\/+/g,"/"),X2=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),P2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,Q2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,K2=class{constructor(n,l,o,i=!1){this.status=n,this.statusText=l||"",this.internal=i,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function Z2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function I2(n){return n.map(l=>l.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var i0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function s0(n,l){let o=n;if(typeof o!="string"||!Y2.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let i=o,c=!1;if(i0)try{let d=new URL(window.location.href),m=o.startsWith("//")?new URL(d.protocol+o):new URL(o),h=ua(m.pathname,l);m.origin===d.origin&&h!=null?o=h+m.search+m.hash:c=!0}catch{wn(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:c,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var c0=["POST","PUT","PATCH","DELETE"];new Set(c0);var F2=["GET",...c0];new Set(F2);var Or=y.createContext(null);Or.displayName="DataRouter";var Zs=y.createContext(null);Zs.displayName="DataRouterState";var J2=y.createContext(!1),u0=y.createContext({isTransitioning:!1});u0.displayName="ViewTransition";var W2=y.createContext(new Map);W2.displayName="Fetchers";var ew=y.createContext(null);ew.displayName="Await";var nn=y.createContext(null);nn.displayName="Navigation";var Qo=y.createContext(null);Qo.displayName="Location";var hn=y.createContext({outlet:null,matches:[],isDataRoute:!1});hn.displayName="Route";var yf=y.createContext(null);yf.displayName="RouteError";var d0="REACT_ROUTER_ERROR",tw="REDIRECT",nw="ROUTE_ERROR_RESPONSE";function aw(n){if(n.startsWith(`${d0}:${tw}:{`))try{let l=JSON.parse(n.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function lw(n){if(n.startsWith(`${d0}:${nw}:{`))try{let l=JSON.parse(n.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new K2(l.status,l.statusText,l.data)}catch{}}function rw(n,{relative:l}={}){tt(Dr(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:i}=y.useContext(nn),{hash:c,pathname:d,search:m}=Ko(n,{relative:l}),h=d;return o!=="/"&&(h=d==="/"?o:Vn([o,d])),i.createHref({pathname:h,search:m,hash:c})}function Dr(){return y.useContext(Qo)!=null}function Yn(){return tt(Dr(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(Qo).location}var f0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function m0(n){y.useContext(nn).static||y.useLayoutEffect(n)}function h0(){let{isDataRoute:n}=y.useContext(hn);return n?bw():ow()}function ow(){tt(Dr(),"useNavigate() may be used only in the context of a <Router> component.");let n=y.useContext(Or),{basename:l,navigator:o}=y.useContext(nn),{matches:i}=y.useContext(hn),{pathname:c}=Yn(),d=JSON.stringify(vf(i)),m=y.useRef(!1);return m0(()=>{m.current=!0}),y.useCallback((g,p={})=>{if(wn(m.current,f0),!m.current)return;if(typeof g=="number"){o.go(g);return}let x=Ks(g,JSON.parse(d),c,p.relative==="path");n==null&&l!=="/"&&(x.pathname=x.pathname==="/"?l:Vn([l,x.pathname])),(p.replace?o.replace:o.push)(x,p.state,p)},[l,o,d,c,n])}var p0=y.createContext(null);function I3(){return y.useContext(p0)}function iw(n){let l=y.useContext(hn).outlet;return y.useMemo(()=>l&&y.createElement(p0.Provider,{value:n},l),[l,n])}function F3(){let{matches:n}=y.useContext(hn),l=n[n.length-1];return l?l.params:{}}function Ko(n,{relative:l}={}){let{matches:o}=y.useContext(hn),{pathname:i}=Yn(),c=JSON.stringify(vf(o));return y.useMemo(()=>Ks(n,JSON.parse(c),i,l==="path"),[n,c,i,l])}function sw(n,l){return g0(n,l)}function g0(n,l,o){var C;tt(Dr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=y.useContext(nn),{matches:c}=y.useContext(hn),d=c[c.length-1],m=d?d.params:{},h=d?d.pathname:"/",g=d?d.pathnameBase:"/",p=d&&d.route;{let A=p&&p.path||"";y0(h,!p||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (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.
60
+
61
+ Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let x=Yn(),v;if(l){let A=typeof l=="string"?Mr(l):l;tt(g==="/"||((C=A.pathname)==null?void 0:C.startsWith(g)),`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 "${g}" but pathname "${A.pathname}" was given in the \`location\` prop.`),v=A}else v=x;let w=v.pathname||"/",T=w;if(g!=="/"){let A=g.replace(/^\//,"").split("/");T="/"+w.replace(/^\//,"").split("/").slice(A.length).join("/")}let N=l0(n,{pathname:T});wn(p||N!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),wn(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.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 E=mw(N&&N.map(A=>Object.assign({},A,{params:Object.assign({},m,A.params),pathname:Vn([g,i.encodeLocation?i.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?g:Vn([g,i.encodeLocation?i.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),c,o);return l&&E?y.createElement(Qo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},E):E}function cw(){let n=yw(),l=Z2(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),o=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:i},d={padding:"2px 4px",backgroundColor:i},m=null;return console.error("Error handled by React Router default ErrorBoundary:",n),m=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:d},"ErrorBoundary")," or"," ",y.createElement("code",{style:d},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},l),o?y.createElement("pre",{style:c},o):null,m)}var uw=y.createElement(cw,null),v0=class extends y.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,l){return l.location!==n.location||l.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:l.error,location:l.location,revalidation:n.revalidation||l.revalidation}}componentDidCatch(n,l){this.props.onError?this.props.onError(n,l):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const o=lw(n.digest);o&&(n=o)}let l=n!==void 0?y.createElement(hn.Provider,{value:this.props.routeContext},y.createElement(yf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?y.createElement(dw,{error:n},l):l}};v0.contextType=J2;var _d=new WeakMap;function dw({children:n,error:l}){let{basename:o}=y.useContext(nn);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let i=aw(l.digest);if(i){let c=_d.get(l);if(c)throw c;let d=s0(i.location,o);if(i0&&!_d.get(l))if(d.isExternal||i.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const m=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:i.replace}));throw _d.set(l,m),m}return y.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return n}function fw({routeContext:n,match:l,children:o}){let i=y.useContext(Or);return i&&i.static&&i.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=l.route.id),y.createElement(hn.Provider,{value:n},o)}function mw(n,l=[],o){let i=o==null?void 0:o.state;if(n==null){if(!i)return null;if(i.errors)n=i.matches;else if(l.length===0&&!i.initialized&&i.matches.length>0)n=i.matches;else return null}let c=n,d=i==null?void 0:i.errors;if(d!=null){let x=c.findIndex(v=>v.route.id&&(d==null?void 0:d[v.route.id])!==void 0);tt(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),c=c.slice(0,Math.min(c.length,x+1))}let m=!1,h=-1;if(o&&i){m=i.renderFallback;for(let x=0;x<c.length;x++){let v=c[x];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(h=x),v.route.id){let{loaderData:w,errors:T}=i,N=v.route.loader&&!w.hasOwnProperty(v.route.id)&&(!T||T[v.route.id]===void 0);if(v.route.lazy||N){o.isStatic&&(m=!0),h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}}let g=o==null?void 0:o.onError,p=i&&g?(x,v)=>{var w,T;g(x,{location:i.location,params:((T=(w=i.matches)==null?void 0:w[0])==null?void 0:T.params)??{},unstable_pattern:I2(i.matches),errorInfo:v})}:void 0;return c.reduceRight((x,v,w)=>{let T,N=!1,E=null,C=null;i&&(T=d&&v.route.id?d[v.route.id]:void 0,E=v.route.errorElement||uw,m&&(h<0&&w===0?(y0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,C=null):h===w&&(N=!0,C=v.route.hydrateFallbackElement||null)));let A=l.concat(c.slice(0,w+1)),j=()=>{let O;return T?O=E:N?O=C:v.route.Component?O=y.createElement(v.route.Component,null):v.route.element?O=v.route.element:O=x,y.createElement(fw,{match:v,routeContext:{outlet:x,matches:A,isDataRoute:i!=null},children:O})};return i&&(v.route.ErrorBoundary||v.route.errorElement||w===0)?y.createElement(v0,{location:i.location,revalidation:i.revalidation,component:E,error:T,children:j(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:p}):j()},null)}function bf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hw(n){let l=y.useContext(Or);return tt(l,bf(n)),l}function pw(n){let l=y.useContext(Zs);return tt(l,bf(n)),l}function gw(n){let l=y.useContext(hn);return tt(l,bf(n)),l}function xf(n){let l=gw(n),o=l.matches[l.matches.length-1];return tt(o.route.id,`${n} can only be used on routes that contain a unique "id"`),o.route.id}function vw(){return xf("useRouteId")}function yw(){var i;let n=y.useContext(yf),l=pw("useRouteError"),o=xf("useRouteError");return n!==void 0?n:(i=l.errors)==null?void 0:i[o]}function bw(){let{router:n}=hw("useNavigate"),l=xf("useNavigate"),o=y.useRef(!1);return m0(()=>{o.current=!0}),y.useCallback(async(c,d={})=>{wn(o.current,f0),o.current&&(typeof c=="number"?await n.navigate(c):await n.navigate(c,{fromRouteId:l,...d}))},[n,l])}var cv={};function y0(n,l,o){!l&&!cv[n]&&(cv[n]=!0,wn(!1,o))}y.memo(xw);function xw({routes:n,future:l,state:o,isStatic:i,onError:c}){return g0(n,void 0,{state:o,isStatic:i,onError:c})}function uv({to:n,replace:l,state:o,relative:i}){tt(Dr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=y.useContext(nn);wn(!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:d}=y.useContext(hn),{pathname:m}=Yn(),h=h0(),g=Ks(n,vf(d),m,i==="path"),p=JSON.stringify(g);return y.useEffect(()=>{h(JSON.parse(p),{replace:l,state:o,relative:i})},[h,p,i,l,o]),null}function Sw(n){return iw(n.context)}function Tl(n){tt(!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 ww({basename:n="/",children:l=null,location:o,navigationType:i="POP",navigator:c,static:d=!1,unstable_useTransitions:m}){tt(!Dr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),g=y.useMemo(()=>({basename:h,navigator:c,static:d,unstable_useTransitions:m,future:{}}),[h,c,d,m]);typeof o=="string"&&(o=Mr(o));let{pathname:p="/",search:x="",hash:v="",state:w=null,key:T="default",unstable_mask:N}=o,E=y.useMemo(()=>{let C=ua(p,h);return C==null?null:{location:{pathname:C,search:x,hash:v,state:w,key:T,unstable_mask:N},navigationType:i}},[h,p,x,v,w,T,i,N]);return wn(E!=null,`<Router basename="${h}"> is not able to match the URL "${p}${x}${v}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:y.createElement(nn.Provider,{value:g},y.createElement(Qo.Provider,{children:l,value:E}))}function Ew({children:n,location:l}){return sw(Zd(n),l)}function Zd(n,l=[]){let o=[];return y.Children.forEach(n,(i,c)=>{if(!y.isValidElement(i))return;let d=[...l,c];if(i.type===y.Fragment){o.push.apply(o,Zd(i.props.children,d));return}tt(i.type===Tl,`[${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>`),tt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let m={id:i.props.id||d.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=Zd(i.props.children,d)),o.push(m)}),o}var Es="get",Ns="application/x-www-form-urlencoded";function Is(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function Nw(n){return Is(n)&&n.tagName.toLowerCase()==="button"}function Tw(n){return Is(n)&&n.tagName.toLowerCase()==="form"}function Cw(n){return Is(n)&&n.tagName.toLowerCase()==="input"}function Aw(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Rw(n,l){return n.button===0&&(!l||l==="_self")&&!Aw(n)}var fs=null;function _w(){if(fs===null)try{new FormData(document.createElement("form"),0),fs=!1}catch{fs=!0}return fs}var jw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function jd(n){return n!=null&&!jw.has(n)?(wn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ns}"`),null):n}function Mw(n,l){let o,i,c,d,m;if(Tw(n)){let h=n.getAttribute("action");i=h?ua(h,l):null,o=n.getAttribute("method")||Es,c=jd(n.getAttribute("enctype"))||Ns,d=new FormData(n)}else if(Nw(n)||Cw(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=n.getAttribute("formaction")||h.getAttribute("action");if(i=g?ua(g,l):null,o=n.getAttribute("formmethod")||h.getAttribute("method")||Es,c=jd(n.getAttribute("formenctype"))||jd(h.getAttribute("enctype"))||Ns,d=new FormData(h,n),!_w()){let{name:p,type:x,value:v}=n;if(x==="image"){let w=p?`${p}.`:"";d.append(`${w}x`,"0"),d.append(`${w}y`,"0")}else p&&d.append(p,v)}}else{if(Is(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=Es,i=null,c=Ns,m=n}return d&&c==="text/plain"&&(m=d,d=void 0),{action:i,method:o.toLowerCase(),encType:c,formData:d,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Sf(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function Ow(n,l,o,i){let c=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return o?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${i}`:c.pathname=`${c.pathname}.${i}`:c.pathname==="/"?c.pathname=`_root.${i}`:l&&ua(c.pathname,l)==="/"?c.pathname=`${l.replace(/\/$/,"")}/_root.${i}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${i}`,c}async function Dw(n,l){if(n.id in l)return l[n.id];try{let o=await import(n.module);return l[n.id]=o,o}catch(o){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function kw(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function zw(n,l,o){let i=await Promise.all(n.map(async c=>{let d=l.routes[c.route.id];if(d){let m=await Dw(d,o);return m.links?m.links():[]}return[]}));return Hw(i.flat(1).filter(kw).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function dv(n,l,o,i,c,d){let m=(g,p)=>o[p]?g.route.id!==o[p].route.id:!0,h=(g,p)=>{var x;return o[p].pathname!==g.pathname||((x=o[p].route.path)==null?void 0:x.endsWith("*"))&&o[p].params["*"]!==g.params["*"]};return d==="assets"?l.filter((g,p)=>m(g,p)||h(g,p)):d==="data"?l.filter((g,p)=>{var v;let x=i.routes[g.route.id];if(!x||!x.hasLoader)return!1;if(m(g,p)||h(g,p))return!0;if(g.route.shouldRevalidate){let w=g.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((v=o[0])==null?void 0:v.params)||{},nextUrl:new URL(n,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function Lw(n,l,{includeHydrateFallback:o}={}){return Uw(n.map(i=>{let c=l.routes[i.route.id];if(!c)return[];let d=[c.module];return c.clientActionModule&&(d=d.concat(c.clientActionModule)),c.clientLoaderModule&&(d=d.concat(c.clientLoaderModule)),o&&c.hydrateFallbackModule&&(d=d.concat(c.hydrateFallbackModule)),c.imports&&(d=d.concat(c.imports)),d}).flat(1))}function Uw(n){return[...new Set(n)]}function Bw(n){let l={},o=Object.keys(n).sort();for(let i of o)l[i]=n[i];return l}function Hw(n,l){let o=new Set;return new Set(l),n.reduce((i,c)=>{let d=JSON.stringify(Bw(c));return o.has(d)||(o.add(d),i.push({key:d,link:c})),i},[])}function b0(){let n=y.useContext(Or);return Sf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function Vw(){let n=y.useContext(Zs);return Sf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var wf=y.createContext(void 0);wf.displayName="FrameworkContext";function x0(){let n=y.useContext(wf);return Sf(n,"You must render this element inside a <HydratedRouter> element"),n}function $w(n,l){let o=y.useContext(wf),[i,c]=y.useState(!1),[d,m]=y.useState(!1),{onFocus:h,onBlur:g,onMouseEnter:p,onMouseLeave:x,onTouchStart:v}=l,w=y.useRef(null);y.useEffect(()=>{if(n==="render"&&m(!0),n==="viewport"){let E=A=>{A.forEach(j=>{m(j.isIntersecting)})},C=new IntersectionObserver(E,{threshold:.5});return w.current&&C.observe(w.current),()=>{C.disconnect()}}},[n]),y.useEffect(()=>{if(i){let E=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(E)}}},[i]);let T=()=>{c(!0)},N=()=>{c(!1),m(!1)};return o?n!=="intent"?[d,w,{}]:[d,w,{onFocus:ko(h,T),onBlur:ko(g,N),onMouseEnter:ko(p,T),onMouseLeave:ko(x,N),onTouchStart:ko(v,T)}]:[!1,w,{}]}function ko(n,l){return o=>{n&&n(o),o.defaultPrevented||l(o)}}function Yw({page:n,...l}){let{router:o}=b0(),i=y.useMemo(()=>l0(o.routes,n,o.basename),[o.routes,n,o.basename]);return i?y.createElement(Gw,{page:n,matches:i,...l}):null}function qw(n){let{manifest:l,routeModules:o}=x0(),[i,c]=y.useState([]);return y.useEffect(()=>{let d=!1;return zw(n,l,o).then(m=>{d||c(m)}),()=>{d=!0}},[n,l,o]),i}function Gw({page:n,matches:l,...o}){let i=Yn(),{future:c,manifest:d,routeModules:m}=x0(),{basename:h}=b0(),{loaderData:g,matches:p}=Vw(),x=y.useMemo(()=>dv(n,l,p,d,i,"data"),[n,l,p,d,i]),v=y.useMemo(()=>dv(n,l,p,d,i,"assets"),[n,l,p,d,i]),w=y.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let E=new Set,C=!1;if(l.forEach(j=>{var z;let O=d.routes[j.route.id];!O||!O.hasLoader||(!x.some(X=>X.route.id===j.route.id)&&j.route.id in g&&((z=m[j.route.id])!=null&&z.shouldRevalidate)||O.hasClientLoader?C=!0:E.add(j.route.id))}),E.size===0)return[];let A=Ow(n,h,c.unstable_trailingSlashAwareDataRequests,"data");return C&&E.size>0&&A.searchParams.set("_routes",l.filter(j=>E.has(j.route.id)).map(j=>j.route.id).join(",")),[A.pathname+A.search]},[h,c.unstable_trailingSlashAwareDataRequests,g,i,d,x,l,n,m]),T=y.useMemo(()=>Lw(v,d),[v,d]),N=qw(v);return y.createElement(y.Fragment,null,w.map(E=>y.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...o})),T.map(E=>y.createElement("link",{key:E,rel:"modulepreload",href:E,...o})),N.map(({key:E,link:C})=>y.createElement("link",{key:E,nonce:o.nonce,...C,crossOrigin:C.crossOrigin??o.crossOrigin})))}function Xw(...n){return l=>{n.forEach(o=>{typeof o=="function"?o(l):o!=null&&(o.current=l)})}}var Pw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Pw&&(window.__reactRouterVersion="7.13.2")}catch{}function Qw({basename:n,children:l,unstable_useTransitions:o,window:i}){let c=y.useRef();c.current==null&&(c.current=T2({window:i,v5Compat:!0}));let d=c.current,[m,h]=y.useState({action:d.action,location:d.location}),g=y.useCallback(p=>{o===!1?h(p):y.startTransition(()=>h(p))},[o]);return y.useLayoutEffect(()=>d.listen(g),[d,g]),y.createElement(ww,{basename:n,children:l,location:m.location,navigationType:m.action,navigator:d,unstable_useTransitions:o})}var S0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,w0=y.forwardRef(function({onClick:l,discover:o="render",prefetch:i="none",relative:c,reloadDocument:d,replace:m,unstable_mask:h,state:g,target:p,to:x,preventScrollReset:v,viewTransition:w,unstable_defaultShouldRevalidate:T,...N},E){let{basename:C,navigator:A,unstable_useTransitions:j}=y.useContext(nn),O=typeof x=="string"&&S0.test(x),z=s0(x,C);x=z.to;let X=rw(x,{relative:c}),K=Yn(),V=null;if(h){let re=Ks(h,[],K.unstable_mask?K.unstable_mask.pathname:"/",!0);C!=="/"&&(re.pathname=re.pathname==="/"?C:Vn([C,re.pathname])),V=A.createHref(re)}let[H,le,ie]=$w(i,N),me=Iw(x,{replace:m,unstable_mask:h,state:g,target:p,preventScrollReset:v,relative:c,viewTransition:w,unstable_defaultShouldRevalidate:T,unstable_useTransitions:j});function fe(re){l&&l(re),re.defaultPrevented||me(re)}let ce=!(z.isExternal||d),de=y.createElement("a",{...N,...ie,href:(ce?V:void 0)||z.absoluteURL||X,onClick:ce?fe:l,ref:Xw(E,le),target:p,"data-discover":!O&&o==="render"?"true":void 0});return H&&!O?y.createElement(y.Fragment,null,de,y.createElement(Yw,{page:X})):de});w0.displayName="Link";var Id=y.forwardRef(function({"aria-current":l="page",caseSensitive:o=!1,className:i="",end:c=!1,style:d,to:m,viewTransition:h,children:g,...p},x){let v=Ko(m,{relative:p.relative}),w=Yn(),T=y.useContext(Zs),{navigator:N,basename:E}=y.useContext(nn),C=T!=null&&tE(v)&&h===!0,A=N.encodeLocation?N.encodeLocation(v).pathname:v.pathname,j=w.pathname,O=T&&T.navigation&&T.navigation.location?T.navigation.location.pathname:null;o||(j=j.toLowerCase(),O=O?O.toLowerCase():null,A=A.toLowerCase()),O&&E&&(O=ua(O,E)||O);const z=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let X=j===A||!c&&j.startsWith(A)&&j.charAt(z)==="/",K=O!=null&&(O===A||!c&&O.startsWith(A)&&O.charAt(A.length)==="/"),V={isActive:X,isPending:K,isTransitioning:C},H=X?l:void 0,le;typeof i=="function"?le=i(V):le=[i,X?"active":null,K?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let ie=typeof d=="function"?d(V):d;return y.createElement(w0,{...p,"aria-current":H,className:le,ref:x,style:ie,to:m,viewTransition:h},typeof g=="function"?g(V):g)});Id.displayName="NavLink";var Kw=y.forwardRef(({discover:n="render",fetcherKey:l,navigate:o,reloadDocument:i,replace:c,state:d,method:m=Es,action:h,onSubmit:g,relative:p,preventScrollReset:x,viewTransition:v,unstable_defaultShouldRevalidate:w,...T},N)=>{let{unstable_useTransitions:E}=y.useContext(nn),C=Ww(),A=eE(h,{relative:p}),j=m.toLowerCase()==="get"?"get":"post",O=typeof h=="string"&&S0.test(h),z=X=>{if(g&&g(X),X.defaultPrevented)return;X.preventDefault();let K=X.nativeEvent.submitter,V=(K==null?void 0:K.getAttribute("formmethod"))||m,H=()=>C(K||X.currentTarget,{fetcherKey:l,method:V,navigate:o,replace:c,state:d,relative:p,preventScrollReset:x,viewTransition:v,unstable_defaultShouldRevalidate:w});E&&o!==!1?y.startTransition(()=>H()):H()};return y.createElement("form",{ref:N,method:j,action:A,onSubmit:i?g:z,...T,"data-discover":!O&&n==="render"?"true":void 0})});Kw.displayName="Form";function Zw(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function E0(n){let l=y.useContext(Or);return tt(l,Zw(n)),l}function Iw(n,{target:l,replace:o,unstable_mask:i,state:c,preventScrollReset:d,relative:m,viewTransition:h,unstable_defaultShouldRevalidate:g,unstable_useTransitions:p}={}){let x=h0(),v=Yn(),w=Ko(n,{relative:m});return y.useCallback(T=>{if(Rw(T,l)){T.preventDefault();let N=o!==void 0?o:Go(v)===Go(w),E=()=>x(n,{replace:N,unstable_mask:i,state:c,preventScrollReset:d,relative:m,viewTransition:h,unstable_defaultShouldRevalidate:g});p?y.startTransition(()=>E()):E()}},[v,x,w,o,i,c,l,n,d,m,h,g,p])}var Fw=0,Jw=()=>`__${String(++Fw)}__`;function Ww(){let{router:n}=E0("useSubmit"),{basename:l}=y.useContext(nn),o=vw(),i=n.fetch,c=n.navigate;return y.useCallback(async(d,m={})=>{let{action:h,method:g,encType:p,formData:x,body:v}=Mw(d,l);if(m.navigate===!1){let w=m.fetcherKey||Jw();await i(w,o,m.action||h,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:x,body:v,formMethod:m.method||g,formEncType:m.encType||p,flushSync:m.flushSync})}else await c(m.action||h,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:x,body:v,formMethod:m.method||g,formEncType:m.encType||p,replace:m.replace,state:m.state,fromRouteId:o,flushSync:m.flushSync,viewTransition:m.viewTransition})},[i,c,l,o])}function eE(n,{relative:l}={}){let{basename:o}=y.useContext(nn),i=y.useContext(hn);tt(i,"useFormAction must be used inside a RouteContext");let[c]=i.matches.slice(-1),d={...Ko(n||".",{relative:l})},m=Yn();if(n==null){d.search=m.search;let h=new URLSearchParams(d.search),g=h.getAll("index");if(g.some(x=>x==="")){h.delete("index"),g.filter(v=>v).forEach(v=>h.append("index",v));let x=h.toString();d.search=x?`?${x}`:""}}return(!n||n===".")&&c.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(d.pathname=d.pathname==="/"?o:Vn([o,d.pathname])),Go(d)}function tE(n,{relative:l}={}){let o=y.useContext(u0);tt(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=E0("useViewTransitionState"),c=Ko(n,{relative:l});if(!o.isTransitioning)return!1;let d=ua(o.currentLocation.pathname,i)||o.currentLocation.pathname,m=ua(o.nextLocation.pathname,i)||o.nextLocation.pathname;return _s(c.pathname,m)!=null||_s(c.pathname,d)!=null}var Zo=n0();const N0=t0(Zo),nE="/api";function aE(n,l){if(typeof n=="string"&&n)return n;if(n&&typeof n=="object"){const o=n,i=typeof o.error=="object"&&o.error!==null?o.error:void 0;if(typeof o.error=="string"&&o.error)return o.error;if(typeof(i==null?void 0:i.message)=="string"&&i.message)return i.message;if(typeof o.message=="string"&&o.message)return o.message}return l}async function Ee(n,l){const o=await fetch(`${nE}${n}`,{...l,headers:{"Content-Type":"application/json",...l==null?void 0:l.headers}});if(!o.ok){const i=await o.json().catch(()=>o.statusText);throw new Error(aE(i,`HTTP ${o.status}`))}return o.json()}function lE(){return Ee("/system/info")}function J3(n){return Ee("/system/transport",{method:"POST",body:JSON.stringify({type:n})})}function T0(n){return Ee("/system/runtime/restart",{method:"POST",body:JSON.stringify(n)})}function rE(){return Ee("/system/runtime/stop",{method:"POST"})}function oE(){return Ee("/cluster/state")}function W3(){return Ee("/cluster/promote",{method:"POST"})}function ej(n){return Ee("/cluster/connect",{method:"POST",body:JSON.stringify(n)})}function tj(){return Ee("/cluster/disconnect",{method:"POST"})}function iE(n){return Ee(`/node-operations/${n}`)}async function sE(n={}){const l=new URLSearchParams;n.nodeId&&l.set("nodeId",n.nodeId),n.status&&l.set("status",n.status),n.kind&&l.set("kind",n.kind);const o=l.toString();return(await Ee(`/node-operations${o?`?${o}`:""}`)).operations}function cE(n,l){return Ee(`/nodes/${n}/agents/${l}/upgrade`,{method:"POST"})}function uE(n,l){return Ee(`/nodes/${n}/runtime/restart`,{method:"POST",body:JSON.stringify(l)})}async function nj(){return(await Ee("/devboxes")).devboxes}function aj(n,l){return Ee(`/nodes/${n}/devbox/configure`,{method:"POST",body:JSON.stringify({devbox:l})})}function lj(n){return Ee(`/nodes/${n}/devbox/status`)}function rj(n){return Ee(`/nodes/${n}/devbox/start`,{method:"POST"})}function oj(n,l){return Ee(`/nodes/${n}/devtunnel`,{method:"POST",body:JSON.stringify({enabled:l})})}function ij(n,l={}){const o=new URLSearchParams;l.path&&o.set("path",l.path),l.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,l.limit),100))),l.offset!==void 0&&o.set("offset",String(Math.max(0,l.offset))),l.directoriesOnly!==void 0&&o.set("directoriesOnly",String(l.directoriesOnly)),l.allowAbsolute!==void 0&&o.set("allowAbsolute",String(l.allowAbsolute));const i=o.toString();return Ee(`/nodes/${n}/workdir/tree${i?`?${i}`:""}`)}function sj(n,l={}){const o=new URLSearchParams;l.path&&o.set("path",l.path),l.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,l.limit),20))),l.offset!==void 0&&o.set("offset",String(Math.max(0,l.offset))),l.allowAbsolute!==void 0&&o.set("allowAbsolute",String(l.allowAbsolute));const i=o.toString();return Ee(`/nodes/${n}/workdir/branch${i?`?${i}`:""}`)}function cj(n,l){const o=new URLSearchParams;return o.set("agent",l.agent),o.set("limit",String(Math.min(Math.max(1,l.limit),100))),Ee(`/nodes/${n}/native-sessions?${o.toString()}`)}function uj(n,l){return Ee(`/nodes/${n}/workdir/branch`,{method:"POST",body:JSON.stringify({path:l.path,branchName:l.branchName,startPoint:l.startPoint,limit:l.limit,offset:l.offset,allowAbsolute:l.allowAbsolute})})}function dj(n,l){return Ee(`/nodes/${n}/terminal/sessions`,{method:"POST",body:JSON.stringify(l)})}function fj(n){return Ee(`/nodes/${n}/terminal/sessions`)}function mj(n,l){return Ee(`/nodes/${n}/terminal/sessions/${l}`)}function hj(n,l){return Ee(`/nodes/${n}/terminal/sessions/${l}/stop`,{method:"POST"})}async function pj(n){const l=new URLSearchParams;if(n!=null&&n.status&&l.set("status",n.status),n!=null&&n.assignedTo&&l.set("assignedTo",n.assignedTo),n!=null&&n.priority&&l.set("priority",n.priority),n!=null&&n.limit){const c=Math.min(Math.max(1,n.limit),100);l.set("limit",String(c))}n!=null&&n.offset&&l.set("offset",String(n.offset));const o=l.toString();return(await Ee(`/tasks${o?`?${o}`:""}`)).tasks}function gj(n){return Ee(`/tasks/${n}`)}function vj(n){return Ee("/tasks",{method:"POST",body:JSON.stringify(n)})}function yj(n){return Ee("/tasks/import-session",{method:"POST",body:JSON.stringify(n)})}function bj(n){return Ee("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:n})})}function xj(n){return Ee("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:n})})}function Sj(n){return Ee(`/tasks/${n}/cancel`,{method:"POST"})}function wj(n){return Ee(`/tasks/${n}/retry`,{method:"POST"})}function Ej(n,l){return Ee(`/tasks/${n}/logs`)}function Nj(n,l){return Ee(`/tasks/${n}/message`,{method:"POST",body:JSON.stringify({content:l})})}function Tj(n,l){return Ee(`/tasks/${n}/queued-messages/${encodeURIComponent(l)}`,{method:"DELETE"})}function Cj(n,l){return Ee(`/tasks/${n}/share`,{method:"POST",body:JSON.stringify(l)})}function Aj(n){return Ee(`/tasks/${n}/share`,{method:"DELETE"})}function Rj(n){return Ee(`/shared/conversations/${encodeURIComponent(n)}`)}function _j(n,l){return Ee(`/shared/conversations/${encodeURIComponent(n)}/logs`)}function jj(n){return Ee(`/shared/conversations/${encodeURIComponent(n)}/output`)}function Mj(n,l="."){return Ee(`/shared/conversations/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(l)}`)}function Oj(n,l){return Ee(`/shared/conversations/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(l)}`)}function Dj(n,l){return Ee(`/shared/conversations/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(l?{path:l}:{})})}function dE(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}function kj(n){return Ee(`/tasks/${n}/output`)}function zj(n,l="."){return Ee(`/tasks/${n}/output/tree?path=${encodeURIComponent(l)}`)}function Lj(n,l){return Ee(`/tasks/${n}/output/content?path=${encodeURIComponent(l)}`)}function Uj(n,l){return Ee(`/tasks/${n}/output/preview-sessions`,{method:"POST",body:JSON.stringify(dE(l))})}function Bj(n){return Ee(`/tasks/${n}/output/diff`)}function fE({hasStarted:n,enabled:l}){return l&&!n}function mE(n,l,o=!0){const i=y.useRef(n),c=y.useRef(!1);y.useEffect(()=>{i.current=n},[n]),y.useEffect(()=>{if(!o)return;const d=()=>i.current();fE({hasStarted:c.current,enabled:o})&&(c.current=!0,d());const m=setInterval(d,l);return()=>clearInterval(m)},[l,o])}let hE=0;function pE(n=50){const[l,o]=y.useState([]),[i,c]=y.useState(!1),d=y.useRef(null),m=y.useRef(0),h=y.useRef(new Map);y.useEffect(()=>{const x=new EventSource("/api/events");d.current=x,x.onopen=()=>c(!0),x.onerror=()=>c(!1);const v=["node.joined","node.left","node.status","node.operation.created","node.operation.updated","task.created","task.assigned","task.status","task.updated","task.deleted","task.output","election.started","election.complete","cluster.state","transport.changed"];for(const w of v)x.addEventListener(w,T=>{const N={id:String(++hE),type:w,data:JSON.parse(T.data),timestamp:Date.now()};o(E=>[N,...E].slice(0,n));for(const[,{pattern:E,callback:C}]of h.current)w.startsWith(E)&&C(N)});return()=>{x.close(),d.current=null,c(!1)}},[n]);const g=y.useCallback((x,v)=>{const w=++m.current;return h.current.set(w,{pattern:x,callback:v}),()=>{h.current.delete(w)}},[]),p=y.useCallback(()=>o([]),[]);return{events:l,connected:i,subscribe:g,clearEvents:p}}const gE=1e4,vE=6e4,yE=gE,bE=250,xE=new Set(["task.created","task.assigned","task.deleted"]),SE=new Set(["task.created","task.assigned","task.status","task.deleted"]);function wE(n){return n?vE:yE}function Hj(n){return xE.has(n)}function EE(n){return SE.has(n)}function NE(n,l){if(!l)return!0;const o=n.leaderId,i=n.term,c=n.nodeCount;return typeof o!="string"&&o!==null||typeof i!="number"||typeof c!="number"?!0:l.leaderId!==o||l.term!==i||l.nodeCount!==c}function TE(n,l,o){if(n==="node.joined"||n==="node.left"||n!=="node.status")return!0;const i=l.nodeId,c=l.status;return typeof i!="string"||typeof c!="string"?!0:o.get(i)!==c}function Vj(n,l){const o=l.taskId,i=l.status;if(typeof o!="string"||typeof i!="string")return n;let c=!1;const d=n.map(m=>{if(m.id!==o)return m;c=!0;const h="result"in l?l.result:i==="completed"?null:m.result,g="error"in l?l.error:i==="completed"?null:m.error;return{...m,status:i,result:h,error:g}});return c?d:n}const C0=y.createContext(null);function CE({children:n}){const[l,o]=y.useState(null),[i,c]=y.useState(null),[d,m]=y.useState(!0),[h,g]=y.useState(null),p=y.useRef(null),x=y.useRef(null),v=y.useRef(new Map),{events:w,connected:T,subscribe:N}=pE(),E=y.useCallback(async()=>{var A;try{const[j,O]=await Promise.all([oE(),lE()]),z=j,X=O.nodeId??O.id,K=z.nodes??[],V=K.find(ie=>ie.id===X)??{id:X,name:O.name,endpoint:O.endpoint,role:O.role,status:O.status,capabilities:O.capabilities,joinedAt:O.joinedAt,lastHeartbeat:O.lastHeartbeat},H=z.leaderId?K.find(ie=>ie.id===z.leaderId)??null:null,le={leader:H?{id:H.id,name:H.name,endpoint:H.endpoint,...H.dashboardOrigin?{dashboardOrigin:H.dashboardOrigin}:{}}:null,term:z.term??0,nodes:K,self:V,taskSummary:z.taskSummary??{total:0,pending:0,running:0,completed:0,failed:0}};x.current={leaderId:((A=le.leader)==null?void 0:A.id)??null,term:le.term,nodeCount:le.nodes.length},v.current=new Map(le.nodes.map(ie=>[ie.id,ie.status])),v.current.set(le.self.id,le.self.status),o(le),c(O),g(null)}catch(j){g(j instanceof Error?j.message:"Failed to fetch cluster state")}finally{m(!1)}},[]),C=y.useCallback(()=>{p.current===null&&(p.current=window.setTimeout(()=>{p.current=null,E()},bE))},[E]);return mE(E,wE(T)),y.useEffect(()=>()=>{p.current!==null&&(window.clearTimeout(p.current),p.current=null)},[]),y.useEffect(()=>{const A=[N("cluster",j=>{NE(j.data,x.current)&&C()}),N("election",C),N("node",j=>{TE(j.type,j.data,v.current)&&C()}),N("transport",C),N("task",j=>{EE(j.type)&&C()})];return()=>A.forEach(j=>j())},[N,C]),f.jsx(C0.Provider,{value:{cluster:l,systemInfo:i,events:w,sseConnected:T,subscribe:N,refresh:E,loading:d,error:h},children:n})}function A0(){const n=y.useContext(C0);if(!n)throw new Error("useCluster must be used within ClusterProvider");return n}/**
62
+ * @license lucide-react v1.7.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const R0=(...n)=>n.filter((l,o,i)=>!!l&&l.trim()!==""&&i.indexOf(l)===o).join(" ").trim();/**
67
+ * @license lucide-react v1.7.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */const AE=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
72
+ * @license lucide-react v1.7.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */const RE=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,o,i)=>i?i.toUpperCase():o.toLowerCase());/**
77
+ * @license lucide-react v1.7.0 - ISC
78
+ *
79
+ * This source code is licensed under the ISC license.
80
+ * See the LICENSE file in the root directory of this source tree.
81
+ */const fv=n=>{const l=RE(n);return l.charAt(0).toUpperCase()+l.slice(1)};/**
82
+ * @license lucide-react v1.7.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */var Md={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"};/**
87
+ * @license lucide-react v1.7.0 - ISC
88
+ *
89
+ * This source code is licensed under the ISC license.
90
+ * See the LICENSE file in the root directory of this source tree.
91
+ */const _E=n=>{for(const l in n)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1},jE=y.createContext({}),ME=()=>y.useContext(jE),OE=y.forwardRef(({color:n,size:l,strokeWidth:o,absoluteStrokeWidth:i,className:c="",children:d,iconNode:m,...h},g)=>{const{size:p=24,strokeWidth:x=2,absoluteStrokeWidth:v=!1,color:w="currentColor",className:T=""}=ME()??{},N=i??v?Number(o??x)*24/Number(l??p):o??x;return y.createElement("svg",{ref:g,...Md,width:l??p??Md.width,height:l??p??Md.height,stroke:n??w,strokeWidth:N,className:R0("lucide",T,c),...!d&&!_E(h)&&{"aria-hidden":"true"},...h},[...m.map(([E,C])=>y.createElement(E,C)),...Array.isArray(d)?d:[d]])});/**
92
+ * @license lucide-react v1.7.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */const ze=(n,l)=>{const o=y.forwardRef(({className:i,...c},d)=>y.createElement(OE,{ref:d,iconNode:l,className:R0(`lucide-${AE(fv(n))}`,`lucide-${n}`,i),...c}));return o.displayName=fv(n),o};/**
97
+ * @license lucide-react v1.7.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ */const DE=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],js=ze("activity",DE);/**
102
+ * @license lucide-react v1.7.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const kE=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],zE=ze("book-open",kE);/**
107
+ * @license lucide-react v1.7.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const LE=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],_0=ze("bot",LE);/**
112
+ * @license lucide-react v1.7.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const UE=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],BE=ze("cable",UE);/**
117
+ * @license lucide-react v1.7.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const HE=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ms=ze("check",HE);/**
122
+ * @license lucide-react v1.7.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const VE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Fs=ze("chevron-down",VE);/**
127
+ * @license lucide-react v1.7.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const $E=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Fd=ze("chevron-right",$E);/**
132
+ * @license lucide-react v1.7.0 - ISC
133
+ *
134
+ * This source code is licensed under the ISC license.
135
+ * See the LICENSE file in the root directory of this source tree.
136
+ */const YE=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],qE=ze("chevron-up",YE);/**
137
+ * @license lucide-react v1.7.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ */const GE=[["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"}]],ms=ze("circle-alert",GE);/**
142
+ * @license lucide-react v1.7.0 - ISC
143
+ *
144
+ * This source code is licensed under the ISC license.
145
+ * See the LICENSE file in the root directory of this source tree.
146
+ */const XE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ho=ze("circle-check",XE);/**
147
+ * @license lucide-react v1.7.0 - ISC
148
+ *
149
+ * This source code is licensed under the ISC license.
150
+ * See the LICENSE file in the root directory of this source tree.
151
+ */const PE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],mv=ze("circle-dot",PE);/**
152
+ * @license lucide-react v1.7.0 - ISC
153
+ *
154
+ * This source code is licensed under the ISC license.
155
+ * See the LICENSE file in the root directory of this source tree.
156
+ */const QE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],KE=ze("circle-x",QE);/**
157
+ * @license lucide-react v1.7.0 - ISC
158
+ *
159
+ * This source code is licensed under the ISC license.
160
+ * See the LICENSE file in the root directory of this source tree.
161
+ */const ZE=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],IE=ze("copy",ZE);/**
162
+ * @license lucide-react v1.7.0 - ISC
163
+ *
164
+ * This source code is licensed under the ISC license.
165
+ * See the LICENSE file in the root directory of this source tree.
166
+ */const FE=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],JE=ze("cpu",FE);/**
167
+ * @license lucide-react v1.7.0 - ISC
168
+ *
169
+ * This source code is licensed under the ISC license.
170
+ * See the LICENSE file in the root directory of this source tree.
171
+ */const WE=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],eN=ze("external-link",WE);/**
172
+ * @license lucide-react v1.7.0 - ISC
173
+ *
174
+ * This source code is licensed under the ISC license.
175
+ * See the LICENSE file in the root directory of this source tree.
176
+ */const tN=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],nN=ze("folder-tree",tN);/**
177
+ * @license lucide-react v1.7.0 - ISC
178
+ *
179
+ * This source code is licensed under the ISC license.
180
+ * See the LICENSE file in the root directory of this source tree.
181
+ */const aN=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],lN=ze("folder",aN);/**
182
+ * @license lucide-react v1.7.0 - ISC
183
+ *
184
+ * This source code is licensed under the ISC license.
185
+ * See the LICENSE file in the root directory of this source tree.
186
+ */const rN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],oN=ze("info",rN);/**
187
+ * @license lucide-react v1.7.0 - ISC
188
+ *
189
+ * This source code is licensed under the ISC license.
190
+ * See the LICENSE file in the root directory of this source tree.
191
+ */const iN=[["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"m14.305 7.53.923-.382",key:"1mlnsw"}],["path",{d:"m15.228 4.852-.923-.383",key:"82mpwg"}],["path",{d:"m16.852 3.228-.383-.924",key:"ln4sir"}],["path",{d:"m16.852 8.772-.383.923",key:"1dejw0"}],["path",{d:"m19.148 3.228.383-.924",key:"192kgf"}],["path",{d:"m19.53 9.696-.382-.924",key:"fiavlr"}],["path",{d:"m20.772 4.852.924-.383",key:"1j8mgp"}],["path",{d:"m20.772 7.148.924.383",key:"zix9be"}],["path",{d:"M22 13v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7",key:"1tnzv8"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}]],sN=ze("monitor-cog",iN);/**
192
+ * @license lucide-react v1.7.0 - ISC
193
+ *
194
+ * This source code is licensed under the ISC license.
195
+ * See the LICENSE file in the root directory of this source tree.
196
+ */const cN=[["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"}]],j0=ze("monitor",cN);/**
197
+ * @license lucide-react v1.7.0 - ISC
198
+ *
199
+ * This source code is licensed under the ISC license.
200
+ * See the LICENSE file in the root directory of this source tree.
201
+ */const uN=[["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"}]],M0=ze("moon",uN);/**
202
+ * @license lucide-react v1.7.0 - ISC
203
+ *
204
+ * This source code is licensed under the ISC license.
205
+ * See the LICENSE file in the root directory of this source tree.
206
+ */const dN=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],fN=ze("network",dN);/**
207
+ * @license lucide-react v1.7.0 - ISC
208
+ *
209
+ * This source code is licensed under the ISC license.
210
+ * See the LICENSE file in the root directory of this source tree.
211
+ */const mN=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],hN=ze("power",mN);/**
212
+ * @license lucide-react v1.7.0 - ISC
213
+ *
214
+ * This source code is licensed under the ISC license.
215
+ * See the LICENSE file in the root directory of this source tree.
216
+ */const pN=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],gN=ze("radio",pN);/**
217
+ * @license lucide-react v1.7.0 - ISC
218
+ *
219
+ * This source code is licensed under the ISC license.
220
+ * See the LICENSE file in the root directory of this source tree.
221
+ */const vN=[["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"}]],yN=ze("refresh-cw",vN);/**
222
+ * @license lucide-react v1.7.0 - ISC
223
+ *
224
+ * This source code is licensed under the ISC license.
225
+ * See the LICENSE file in the root directory of this source tree.
226
+ */const bN=[["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"}]],xN=ze("rocket",bN);/**
227
+ * @license lucide-react v1.7.0 - ISC
228
+ *
229
+ * This source code is licensed under the ISC license.
230
+ * See the LICENSE file in the root directory of this source tree.
231
+ */const SN=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],wN=ze("search",SN);/**
232
+ * @license lucide-react v1.7.0 - ISC
233
+ *
234
+ * This source code is licensed under the ISC license.
235
+ * See the LICENSE file in the root directory of this source tree.
236
+ */const EN=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],O0=ze("server",EN);/**
237
+ * @license lucide-react v1.7.0 - ISC
238
+ *
239
+ * This source code is licensed under the ISC license.
240
+ * See the LICENSE file in the root directory of this source tree.
241
+ */const NN=[["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"}]],TN=ze("settings",NN);/**
242
+ * @license lucide-react v1.7.0 - ISC
243
+ *
244
+ * This source code is licensed under the ISC license.
245
+ * See the LICENSE file in the root directory of this source tree.
246
+ */const CN=[["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"}]],AN=ze("shield",CN);/**
247
+ * @license lucide-react v1.7.0 - ISC
248
+ *
249
+ * This source code is licensed under the ISC license.
250
+ * See the LICENSE file in the root directory of this source tree.
251
+ */const RN=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],_N=ze("sparkles",RN);/**
252
+ * @license lucide-react v1.7.0 - ISC
253
+ *
254
+ * This source code is licensed under the ISC license.
255
+ * See the LICENSE file in the root directory of this source tree.
256
+ */const jN=[["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"}]],D0=ze("sun",jN);/**
257
+ * @license lucide-react v1.7.0 - ISC
258
+ *
259
+ * This source code is licensed under the ISC license.
260
+ * See the LICENSE file in the root directory of this source tree.
261
+ */const MN=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],k0=ze("terminal",MN);/**
262
+ * @license lucide-react v1.7.0 - ISC
263
+ *
264
+ * This source code is licensed under the ISC license.
265
+ * See the LICENSE file in the root directory of this source tree.
266
+ */const ON=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],DN=ze("wifi-off",ON);/**
267
+ * @license lucide-react v1.7.0 - ISC
268
+ *
269
+ * This source code is licensed under the ISC license.
270
+ * See the LICENSE file in the root directory of this source tree.
271
+ */const kN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],z0=ze("x",kN);function L0(n){var l,o,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(l=0;l<c;l++)n[l]&&(o=L0(n[l]))&&(i&&(i+=" "),i+=o)}else for(o in n)n[o]&&(i&&(i+=" "),i+=o);return i}function U0(){for(var n,l,o=0,i="",c=arguments.length;o<c;o++)(n=arguments[o])&&(l=L0(n))&&(i&&(i+=" "),i+=l);return i}const zN=(n,l)=>{const o=new Array(n.length+l.length);for(let i=0;i<n.length;i++)o[i]=n[i];for(let i=0;i<l.length;i++)o[n.length+i]=l[i];return o},LN=(n,l)=>({classGroupId:n,validator:l}),B0=(n=new Map,l=null,o)=>({nextPart:n,validators:l,classGroupId:o}),Os="-",hv=[],UN="arbitrary..",BN=n=>{const l=VN(n),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:m=>{if(m.startsWith("[")&&m.endsWith("]"))return HN(m);const h=m.split(Os),g=h[0]===""&&h.length>1?1:0;return H0(h,g,l)},getConflictingClassGroupIds:(m,h)=>{if(h){const g=i[m],p=o[m];return g?p?zN(p,g):g:p||hv}return o[m]||hv}}},H0=(n,l,o)=>{if(n.length-l===0)return o.classGroupId;const c=n[l],d=o.nextPart.get(c);if(d){const p=H0(n,l+1,d);if(p)return p}const m=o.validators;if(m===null)return;const h=l===0?n.join(Os):n.slice(l).join(Os),g=m.length;for(let p=0;p<g;p++){const x=m[p];if(x.validator(h))return x.classGroupId}},HN=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const l=n.slice(1,-1),o=l.indexOf(":"),i=l.slice(0,o);return i?UN+i:void 0})(),VN=n=>{const{theme:l,classGroups:o}=n;return $N(o,l)},$N=(n,l)=>{const o=B0();for(const i in n){const c=n[i];Ef(c,o,i,l)}return o},Ef=(n,l,o,i)=>{const c=n.length;for(let d=0;d<c;d++){const m=n[d];YN(m,l,o,i)}},YN=(n,l,o,i)=>{if(typeof n=="string"){qN(n,l,o);return}if(typeof n=="function"){GN(n,l,o,i);return}XN(n,l,o,i)},qN=(n,l,o)=>{const i=n===""?l:V0(l,n);i.classGroupId=o},GN=(n,l,o,i)=>{if(PN(n)){Ef(n(i),l,o,i);return}l.validators===null&&(l.validators=[]),l.validators.push(LN(o,n))},XN=(n,l,o,i)=>{const c=Object.entries(n),d=c.length;for(let m=0;m<d;m++){const[h,g]=c[m];Ef(g,V0(l,h),o,i)}},V0=(n,l)=>{let o=n;const i=l.split(Os),c=i.length;for(let d=0;d<c;d++){const m=i[d];let h=o.nextPart.get(m);h||(h=B0(),o.nextPart.set(m,h)),o=h}return o},PN=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,QN=n=>{if(n<1)return{get:()=>{},set:()=>{}};let l=0,o=Object.create(null),i=Object.create(null);const c=(d,m)=>{o[d]=m,l++,l>n&&(l=0,i=o,o=Object.create(null))};return{get(d){let m=o[d];if(m!==void 0)return m;if((m=i[d])!==void 0)return c(d,m),m},set(d,m){d in o?o[d]=m:c(d,m)}}},Jd="!",pv=":",KN=[],gv=(n,l,o,i,c)=>({modifiers:n,hasImportantModifier:l,baseClassName:o,maybePostfixModifierPosition:i,isExternal:c}),ZN=n=>{const{prefix:l,experimentalParseClassName:o}=n;let i=c=>{const d=[];let m=0,h=0,g=0,p;const x=c.length;for(let E=0;E<x;E++){const C=c[E];if(m===0&&h===0){if(C===pv){d.push(c.slice(g,E)),g=E+1;continue}if(C==="/"){p=E;continue}}C==="["?m++:C==="]"?m--:C==="("?h++:C===")"&&h--}const v=d.length===0?c:c.slice(g);let w=v,T=!1;v.endsWith(Jd)?(w=v.slice(0,-1),T=!0):v.startsWith(Jd)&&(w=v.slice(1),T=!0);const N=p&&p>g?p-g:void 0;return gv(d,T,w,N)};if(l){const c=l+pv,d=i;i=m=>m.startsWith(c)?d(m.slice(c.length)):gv(KN,!1,m,void 0,!0)}if(o){const c=i;i=d=>o({className:d,parseClassName:c})}return i},IN=n=>{const l=new Map;return n.orderSensitiveModifiers.forEach((o,i)=>{l.set(o,1e6+i)}),o=>{const i=[];let c=[];for(let d=0;d<o.length;d++){const m=o[d],h=m[0]==="[",g=l.has(m);h||g?(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}},FN=n=>({cache:QN(n.cacheSize),parseClassName:ZN(n),sortModifiers:IN(n),...BN(n)}),JN=/\s+/,WN=(n,l)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:c,sortModifiers:d}=l,m=[],h=n.trim().split(JN);let g="";for(let p=h.length-1;p>=0;p-=1){const x=h[p],{isExternal:v,modifiers:w,hasImportantModifier:T,baseClassName:N,maybePostfixModifierPosition:E}=o(x);if(v){g=x+(g.length>0?" "+g:g);continue}let C=!!E,A=i(C?N.substring(0,E):N);if(!A){if(!C){g=x+(g.length>0?" "+g:g);continue}if(A=i(N),!A){g=x+(g.length>0?" "+g:g);continue}C=!1}const j=w.length===0?"":w.length===1?w[0]:d(w).join(":"),O=T?j+Jd:j,z=O+A;if(m.indexOf(z)>-1)continue;m.push(z);const X=c(A,C);for(let K=0;K<X.length;++K){const V=X[K];m.push(O+V)}g=x+(g.length>0?" "+g:g)}return g},eT=(...n)=>{let l=0,o,i,c="";for(;l<n.length;)(o=n[l++])&&(i=$0(o))&&(c&&(c+=" "),c+=i);return c},$0=n=>{if(typeof n=="string")return n;let l,o="";for(let i=0;i<n.length;i++)n[i]&&(l=$0(n[i]))&&(o&&(o+=" "),o+=l);return o},tT=(n,...l)=>{let o,i,c,d;const m=g=>{const p=l.reduce((x,v)=>v(x),n());return o=FN(p),i=o.cache.get,c=o.cache.set,d=h,h(g)},h=g=>{const p=i(g);if(p)return p;const x=WN(g,o);return c(g,x),x};return d=m,(...g)=>d(eT(...g))},nT=[],ht=n=>{const l=o=>o[n]||nT;return l.isThemeGetter=!0,l},Y0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,q0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,aT=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,lT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rT=/\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$/,oT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,iT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ya=n=>aT.test(n),Re=n=>!!n&&!Number.isNaN(Number(n)),qa=n=>!!n&&Number.isInteger(Number(n)),Od=n=>n.endsWith("%")&&Re(n.slice(0,-1)),ca=n=>lT.test(n),G0=()=>!0,cT=n=>rT.test(n)&&!oT.test(n),Nf=()=>!1,uT=n=>iT.test(n),dT=n=>sT.test(n),fT=n=>!pe(n)&&!ge(n),mT=n=>Ia(n,Q0,Nf),pe=n=>Y0.test(n),wl=n=>Ia(n,K0,cT),vv=n=>Ia(n,ST,Re),hT=n=>Ia(n,I0,G0),pT=n=>Ia(n,Z0,Nf),yv=n=>Ia(n,X0,Nf),gT=n=>Ia(n,P0,dT),hs=n=>Ia(n,F0,uT),ge=n=>q0.test(n),zo=n=>jl(n,K0),vT=n=>jl(n,Z0),bv=n=>jl(n,X0),yT=n=>jl(n,Q0),bT=n=>jl(n,P0),ps=n=>jl(n,F0,!0),xT=n=>jl(n,I0,!0),Ia=(n,l,o)=>{const i=Y0.exec(n);return i?i[1]?l(i[1]):o(i[2]):!1},jl=(n,l,o=!1)=>{const i=q0.exec(n);return i?i[1]?l(i[1]):o:!1},X0=n=>n==="position"||n==="percentage",P0=n=>n==="image"||n==="url",Q0=n=>n==="length"||n==="size"||n==="bg-size",K0=n=>n==="length",ST=n=>n==="number",Z0=n=>n==="family-name",I0=n=>n==="number"||n==="weight",F0=n=>n==="shadow",wT=()=>{const n=ht("color"),l=ht("font"),o=ht("text"),i=ht("font-weight"),c=ht("tracking"),d=ht("leading"),m=ht("breakpoint"),h=ht("container"),g=ht("spacing"),p=ht("radius"),x=ht("shadow"),v=ht("inset-shadow"),w=ht("text-shadow"),T=ht("drop-shadow"),N=ht("blur"),E=ht("perspective"),C=ht("aspect"),A=ht("ease"),j=ht("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],X=()=>[...z(),ge,pe],K=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],H=()=>[ge,pe,g],le=()=>[Ya,"full","auto",...H()],ie=()=>[qa,"none","subgrid",ge,pe],me=()=>["auto",{span:["full",qa,ge,pe]},qa,ge,pe],fe=()=>[qa,"auto",ge,pe],ce=()=>["auto","min","max","fr",ge,pe],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...H()],$=()=>[Ya,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],F=()=>[Ya,"screen","full","dvw","lvw","svw","min","max","fit",...H()],J=()=>[Ya,"screen","full","lh","dvh","lvh","svh","min","max","fit",...H()],G=()=>[n,ge,pe],R=()=>[...z(),bv,yv,{position:[ge,pe]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",yT,mT,{size:[ge,pe]}],W=()=>[Od,zo,wl],te=()=>["","none","full",p,ge,pe],oe=()=>["",Re,zo,wl],ne=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[Re,Od,bv,yv],xe=()=>["","none",N,ge,pe],ye=()=>["none",Re,ge,pe],Se=()=>["none",Re,ge,pe],$e=()=>[Re,ge,pe],Ue=()=>[Ya,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ca],breakpoint:[ca],color:[G0],container:[ca],"drop-shadow":[ca],ease:["in","out","in-out"],font:[fT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ca],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ca],shadow:[ca],spacing:["px",Re],text:[ca],"text-shadow":[ca],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ya,pe,ge,C]}],container:["container"],columns:[{columns:[Re,pe,ge,h]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"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:X()}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:le()}],"inset-x":[{"inset-x":le()}],"inset-y":[{"inset-y":le()}],start:[{"inset-s":le(),start:le()}],end:[{"inset-e":le(),end:le()}],"inset-bs":[{"inset-bs":le()}],"inset-be":[{"inset-be":le()}],top:[{top:le()}],right:[{right:le()}],bottom:[{bottom:le()}],left:[{left:le()}],visibility:["visible","invisible","collapse"],z:[{z:[qa,"auto",ge,pe]}],basis:[{basis:[Ya,"full","auto",h,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Re,Ya,"auto","initial","none",pe]}],grow:[{grow:["",Re,ge,pe]}],shrink:[{shrink:["",Re,ge,pe]}],order:[{order:[qa,"first","last","none",ge,pe]}],"grid-cols":[{"grid-cols":ie()}],"col-start-end":[{col:me()}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":ie()}],"row-start-end":[{row:me()}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"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:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pbs:[{pbs:H()}],pbe:[{pbe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],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":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...F()]}],"min-inline-size":[{"min-inline":["auto",...F()]}],"max-inline-size":[{"max-inline":["none",...F()]}],"block-size":[{block:["auto",...J()]}],"min-block-size":[{"min-block":["auto",...J()]}],"max-block-size":[{"max-block":["none",...J()]}],w:[{w:[h,"screen",...$()]}],"min-w":[{"min-w":[h,"screen","none",...$()]}],"max-w":[{"max-w":[h,"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",o,zo,wl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,xT,hT]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Od,pe]}],"font-family":[{font:[vT,pT,l]}],"font-features":[{"font-features":[pe]}],"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,ge,pe]}],"line-clamp":[{"line-clamp":[Re,"none",ge,vv]}],leading:[{leading:[d,...H()]}],"list-image":[{"list-image":["none",ge,pe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,pe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:G()}],"text-color":[{text:G()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[Re,"from-font","auto",ge,wl]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[Re,"auto",ge,pe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,pe]}],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",ge,pe]}],"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:Y()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},qa,ge,pe],radial:["",ge,pe],conic:[qa,ge,pe]},bT,gT]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-bs":[{"border-bs":oe()}],"border-w-be":[{"border-be":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ne(),"hidden","none"]}],"divide-style":[{divide:[...ne(),"hidden","none"]}],"border-color":[{border:G()}],"border-color-x":[{"border-x":G()}],"border-color-y":[{"border-y":G()}],"border-color-s":[{"border-s":G()}],"border-color-e":[{"border-e":G()}],"border-color-bs":[{"border-bs":G()}],"border-color-be":[{"border-be":G()}],"border-color-t":[{"border-t":G()}],"border-color-r":[{"border-r":G()}],"border-color-b":[{"border-b":G()}],"border-color-l":[{"border-l":G()}],"divide-color":[{divide:G()}],"outline-style":[{outline:[...ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Re,ge,pe]}],"outline-w":[{outline:["",Re,zo,wl]}],"outline-color":[{outline:G()}],shadow:[{shadow:["","none",x,ps,hs]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",v,ps,hs]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[Re,wl]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":G()}],"text-shadow":[{"text-shadow":["none",w,ps,hs]}],"text-shadow-color":[{"text-shadow":G()}],opacity:[{opacity:[Re,ge,pe]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"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":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":G()}],"mask-image-linear-to-color":[{"mask-linear-to":G()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":G()}],"mask-image-t-to-color":[{"mask-t-to":G()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":G()}],"mask-image-r-to-color":[{"mask-r-to":G()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":G()}],"mask-image-b-to-color":[{"mask-b-to":G()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":G()}],"mask-image-l-to-color":[{"mask-l-to":G()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":G()}],"mask-image-x-to-color":[{"mask-x-to":G()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":G()}],"mask-image-y-to-color":[{"mask-y-to":G()}],"mask-image-radial":[{"mask-radial":[ge,pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":G()}],"mask-image-radial-to-color":[{"mask-radial-to":G()}],"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":z()}],"mask-image-conic-pos":[{"mask-conic":[Re]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":G()}],"mask-image-conic-to-color":[{"mask-conic-to":G()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,pe]}],filter:[{filter:["","none",ge,pe]}],blur:[{blur:xe()}],brightness:[{brightness:[Re,ge,pe]}],contrast:[{contrast:[Re,ge,pe]}],"drop-shadow":[{"drop-shadow":["","none",T,ps,hs]}],"drop-shadow-color":[{"drop-shadow":G()}],grayscale:[{grayscale:["",Re,ge,pe]}],"hue-rotate":[{"hue-rotate":[Re,ge,pe]}],invert:[{invert:["",Re,ge,pe]}],saturate:[{saturate:[Re,ge,pe]}],sepia:[{sepia:["",Re,ge,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,pe]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[Re,ge,pe]}],"backdrop-contrast":[{"backdrop-contrast":[Re,ge,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Re,ge,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Re,ge,pe]}],"backdrop-invert":[{"backdrop-invert":["",Re,ge,pe]}],"backdrop-opacity":[{"backdrop-opacity":[Re,ge,pe]}],"backdrop-saturate":[{"backdrop-saturate":[Re,ge,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",Re,ge,pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Re,"initial",ge,pe]}],ease:[{ease:["linear","initial",A,ge,pe]}],delay:[{delay:[Re,ge,pe]}],animate:[{animate:["none",j,ge,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ge,pe]}],"perspective-origin":[{"perspective-origin":X()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":["scale-3d"],skew:[{skew:$e()}],"skew-x":[{"skew-x":$e()}],"skew-y":[{"skew-y":$e()}],transform:[{transform:[ge,pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:X()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ue()}],"translate-x":[{"translate-x":Ue()}],"translate-y":[{"translate-y":Ue()}],"translate-z":[{"translate-z":Ue()}],"translate-none":["translate-none"],accent:[{accent:G()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:G()}],"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",ge,pe]}],"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":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mbs":[{"scroll-mbs":H()}],"scroll-mbe":[{"scroll-mbe":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pbs":[{"scroll-pbs":H()}],"scroll-pbe":[{"scroll-pbe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",ge,pe]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[Re,zo,wl,vv]}],stroke:[{stroke:["none",...G()]}],"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"]}},ET=tT(wT);function se(...n){return ET(U0(n))}function NT(n){if(typeof document>"u")return;let l=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",l.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n))}const TT=n=>{switch(n){case"success":return RT;case"info":return jT;case"warning":return _T;case"error":return MT;default:return null}},CT=Array(12).fill(0),AT=({visible:n,className:l})=>ae.createElement("div",{className:["sonner-loading-wrapper",l].filter(Boolean).join(" "),"data-visible":n},ae.createElement("div",{className:"sonner-spinner"},CT.map((o,i)=>ae.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),RT=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.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"})),_T=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ae.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"})),jT=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.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"})),MT=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.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"})),OT=ae.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"},ae.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ae.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),DT=()=>{const[n,l]=ae.useState(document.hidden);return ae.useEffect(()=>{const o=()=>{l(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),n};let Wd=1;class kT{constructor(){this.subscribe=l=>(this.subscribers.push(l),()=>{const o=this.subscribers.indexOf(l);this.subscribers.splice(o,1)}),this.publish=l=>{this.subscribers.forEach(o=>o(l))},this.addToast=l=>{this.publish(l),this.toasts=[...this.toasts,l]},this.create=l=>{var o;const{message:i,...c}=l,d=typeof(l==null?void 0:l.id)=="number"||((o=l.id)==null?void 0:o.length)>0?l.id:Wd++,m=this.toasts.find(g=>g.id===d),h=l.dismissible===void 0?!0:l.dismissible;return this.dismissedToasts.has(d)&&this.dismissedToasts.delete(d),m?this.toasts=this.toasts.map(g=>g.id===d?(this.publish({...g,...l,id:d,title:i}),{...g,...l,id:d,dismissible:h,title:i}):g):this.addToast({title:i,...c,dismissible:h,id:d}),d},this.dismiss=l=>(l?(this.dismissedToasts.add(l),requestAnimationFrame(()=>this.subscribers.forEach(o=>o({id:l,dismiss:!0})))):this.toasts.forEach(o=>{this.subscribers.forEach(i=>i({id:o.id,dismiss:!0}))}),l),this.message=(l,o)=>this.create({...o,message:l}),this.error=(l,o)=>this.create({...o,message:l,type:"error"}),this.success=(l,o)=>this.create({...o,type:"success",message:l}),this.info=(l,o)=>this.create({...o,type:"info",message:l}),this.warning=(l,o)=>this.create({...o,type:"warning",message:l}),this.loading=(l,o)=>this.create({...o,type:"loading",message:l}),this.promise=(l,o)=>{if(!o)return;let i;o.loading!==void 0&&(i=this.create({...o,promise:l,type:"loading",message:o.loading,description:typeof o.description!="function"?o.description:void 0}));const c=Promise.resolve(l instanceof Function?l():l);let d=i!==void 0,m;const h=c.then(async p=>{if(m=["resolve",p],ae.isValidElement(p))d=!1,this.create({id:i,type:"default",message:p});else if(LT(p)&&!p.ok){d=!1;const v=typeof o.error=="function"?await o.error(`HTTP error! status: ${p.status}`):o.error,w=typeof o.description=="function"?await o.description(`HTTP error! status: ${p.status}`):o.description,N=typeof v=="object"&&!ae.isValidElement(v)?v:{message:v};this.create({id:i,type:"error",description:w,...N})}else if(p instanceof Error){d=!1;const v=typeof o.error=="function"?await o.error(p):o.error,w=typeof o.description=="function"?await o.description(p):o.description,N=typeof v=="object"&&!ae.isValidElement(v)?v:{message:v};this.create({id:i,type:"error",description:w,...N})}else if(o.success!==void 0){d=!1;const v=typeof o.success=="function"?await o.success(p):o.success,w=typeof o.description=="function"?await o.description(p):o.description,N=typeof v=="object"&&!ae.isValidElement(v)?v:{message:v};this.create({id:i,type:"success",description:w,...N})}}).catch(async p=>{if(m=["reject",p],o.error!==void 0){d=!1;const x=typeof o.error=="function"?await o.error(p):o.error,v=typeof o.description=="function"?await o.description(p):o.description,T=typeof x=="object"&&!ae.isValidElement(x)?x:{message:x};this.create({id:i,type:"error",description:v,...T})}}).finally(()=>{d&&(this.dismiss(i),i=void 0),o.finally==null||o.finally.call(o)}),g=()=>new Promise((p,x)=>h.then(()=>m[0]==="reject"?x(m[1]):p(m[1])).catch(x));return typeof i!="string"&&typeof i!="number"?{unwrap:g}:Object.assign(i,{unwrap:g})},this.custom=(l,o)=>{const i=(o==null?void 0:o.id)||Wd++;return this.create({jsx:l(i),id:i,...o}),i},this.getActiveToasts=()=>this.toasts.filter(l=>!this.dismissedToasts.has(l.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Xt=new kT,zT=(n,l)=>{const o=(l==null?void 0:l.id)||Wd++;return Xt.addToast({title:n,...l,id:o}),o},LT=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",UT=zT,BT=()=>Xt.toasts,HT=()=>Xt.getActiveToasts(),at=Object.assign(UT,{success:Xt.success,info:Xt.info,warning:Xt.warning,error:Xt.error,custom:Xt.custom,message:Xt.message,promise:Xt.promise,dismiss:Xt.dismiss,loading:Xt.loading},{getHistory:BT,getToasts:HT});NT("[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 gs(n){return n.label!==void 0}const VT=3,$T="24px",YT="16px",xv=4e3,qT=356,GT=14,XT=45,PT=200;function On(...n){return n.filter(Boolean).join(" ")}function QT(n){const[l,o]=n.split("-"),i=[];return l&&i.push(l),o&&i.push(o),i}const KT=n=>{var l,o,i,c,d,m,h,g,p;const{invert:x,toast:v,unstyled:w,interacting:T,setHeights:N,visibleToasts:E,heights:C,index:A,toasts:j,expanded:O,removeToast:z,defaultRichColors:X,closeButton:K,style:V,cancelButtonStyle:H,actionButtonStyle:le,className:ie="",descriptionClassName:me="",duration:fe,position:ce,gap:de,expandByDefault:re,classNames:M,icons:$,closeButtonAriaLabel:F="Close toast"}=n,[J,G]=ae.useState(null),[R,Y]=ae.useState(null),[Q,W]=ae.useState(!1),[te,oe]=ae.useState(!1),[ne,ue]=ae.useState(!1),[ee,xe]=ae.useState(!1),[ye,Se]=ae.useState(!1),[$e,Ue]=ae.useState(0),[Ye,gt]=ae.useState(0),ot=ae.useRef(v.duration||fe||xv),Pt=ae.useRef(null),vt=ae.useRef(null),Br=A===0,Hr=A+1<=E,jt=v.type,pa=v.dismissible!==!1,Mt=v.className||"",uc=v.descriptionClassName||"",el=ae.useMemo(()=>C.findIndex(Ne=>Ne.toastId===v.id)||0,[C,v.id]),Jo=ae.useMemo(()=>{var Ne;return(Ne=v.closeButton)!=null?Ne:K},[v.closeButton,K]),tl=ae.useMemo(()=>v.duration||fe||xv,[v.duration,fe]),Vr=ae.useRef(0),Gn=ae.useRef(0),Wo=ae.useRef(0),ga=ae.useRef(null),[nl,Ot]=ce.split("-"),pn=ae.useMemo(()=>C.reduce((Ne,We,yt)=>yt>=el?Ne:Ne+We.height,0),[C,el]),Ct=DT(),dc=v.invert||x,$r=jt==="loading";Gn.current=ae.useMemo(()=>el*de+pn,[el,pn]),ae.useEffect(()=>{ot.current=tl},[tl]),ae.useEffect(()=>{W(!0)},[]),ae.useEffect(()=>{const Ne=vt.current;if(Ne){const We=Ne.getBoundingClientRect().height;return gt(We),N(yt=>[{toastId:v.id,height:We,position:v.position},...yt]),()=>N(yt=>yt.filter(At=>At.toastId!==v.id))}},[N,v.id]),ae.useLayoutEffect(()=>{if(!Q)return;const Ne=vt.current,We=Ne.style.height;Ne.style.height="auto";const yt=Ne.getBoundingClientRect().height;Ne.style.height=We,gt(yt),N(At=>At.find(nt=>nt.toastId===v.id)?At.map(nt=>nt.toastId===v.id?{...nt,height:yt}:nt):[{toastId:v.id,height:yt,position:v.position},...At])},[Q,v.title,v.description,N,v.id,v.jsx,v.action,v.cancel]);const Cn=ae.useCallback(()=>{oe(!0),Ue(Gn.current),N(Ne=>Ne.filter(We=>We.toastId!==v.id)),setTimeout(()=>{z(v)},PT)},[v,z,N,Gn]);ae.useEffect(()=>{if(v.promise&&jt==="loading"||v.duration===1/0||v.type==="loading")return;let Ne;return O||T||Ct?(()=>{if(Wo.current<Vr.current){const At=new Date().getTime()-Vr.current;ot.current=ot.current-At}Wo.current=new Date().getTime()})():(()=>{ot.current!==1/0&&(Vr.current=new Date().getTime(),Ne=setTimeout(()=>{v.onAutoClose==null||v.onAutoClose.call(v,v),Cn()},ot.current))})(),()=>clearTimeout(Ne)},[O,T,v,jt,Ct,Cn]),ae.useEffect(()=>{v.delete&&(Cn(),v.onDismiss==null||v.onDismiss.call(v,v))},[Cn,v.delete]);function Ml(){var Ne;if($!=null&&$.loading){var We;return ae.createElement("div",{className:On(M==null?void 0:M.loader,v==null||(We=v.classNames)==null?void 0:We.loader,"sonner-loader"),"data-visible":jt==="loading"},$.loading)}return ae.createElement(AT,{className:On(M==null?void 0:M.loader,v==null||(Ne=v.classNames)==null?void 0:Ne.loader),visible:jt==="loading"})}const Ol=v.icon||($==null?void 0:$[jt])||TT(jt);var al,An;return ae.createElement("li",{tabIndex:0,ref:vt,className:On(ie,Mt,M==null?void 0:M.toast,v==null||(l=v.classNames)==null?void 0:l.toast,M==null?void 0:M.default,M==null?void 0:M[jt],v==null||(o=v.classNames)==null?void 0:o[jt]),"data-sonner-toast":"","data-rich-colors":(al=v.richColors)!=null?al:X,"data-styled":!(v.jsx||v.unstyled||w),"data-mounted":Q,"data-promise":!!v.promise,"data-swiped":ye,"data-removed":te,"data-visible":Hr,"data-y-position":nl,"data-x-position":Ot,"data-index":A,"data-front":Br,"data-swiping":ne,"data-dismissible":pa,"data-type":jt,"data-invert":dc,"data-swipe-out":ee,"data-swipe-direction":R,"data-expanded":!!(O||re&&Q),"data-testid":v.testId,style:{"--index":A,"--toasts-before":A,"--z-index":j.length-A,"--offset":`${te?$e:Gn.current}px`,"--initial-height":re?"auto":`${Ye}px`,...V,...v.style},onDragEnd:()=>{ue(!1),G(null),ga.current=null},onPointerDown:Ne=>{Ne.button!==2&&($r||!pa||(Pt.current=new Date,Ue(Gn.current),Ne.target.setPointerCapture(Ne.pointerId),Ne.target.tagName!=="BUTTON"&&(ue(!0),ga.current={x:Ne.clientX,y:Ne.clientY})))},onPointerUp:()=>{var Ne,We,yt;if(ee||!pa)return;ga.current=null;const At=Number(((Ne=vt.current)==null?void 0:Ne.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),va=Number(((We=vt.current)==null?void 0:We.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),nt=new Date().getTime()-((yt=Pt.current)==null?void 0:yt.getTime()),kt=J==="x"?At:va,ll=Math.abs(kt)/nt;if(Math.abs(kt)>=XT||ll>.11){Ue(Gn.current),v.onDismiss==null||v.onDismiss.call(v,v),Y(J==="x"?At>0?"right":"left":va>0?"down":"up"),Cn(),xe(!0);return}else{var zt,Lt;(zt=vt.current)==null||zt.style.setProperty("--swipe-amount-x","0px"),(Lt=vt.current)==null||Lt.style.setProperty("--swipe-amount-y","0px")}Se(!1),ue(!1),G(null)},onPointerMove:Ne=>{var We,yt,At;if(!ga.current||!pa||((We=window.getSelection())==null?void 0:We.toString().length)>0)return;const nt=Ne.clientY-ga.current.y,kt=Ne.clientX-ga.current.x;var ll;const zt=(ll=n.swipeDirections)!=null?ll:QT(ce);!J&&(Math.abs(kt)>1||Math.abs(nt)>1)&&G(Math.abs(kt)>Math.abs(nt)?"x":"y");let Lt={x:0,y:0};const Dl=gn=>1/(1.5+Math.abs(gn)/20);if(J==="y"){if(zt.includes("top")||zt.includes("bottom"))if(zt.includes("top")&&nt<0||zt.includes("bottom")&&nt>0)Lt.y=nt;else{const gn=nt*Dl(nt);Lt.y=Math.abs(gn)<Math.abs(nt)?gn:nt}}else if(J==="x"&&(zt.includes("left")||zt.includes("right")))if(zt.includes("left")&&kt<0||zt.includes("right")&&kt>0)Lt.x=kt;else{const gn=kt*Dl(kt);Lt.x=Math.abs(gn)<Math.abs(kt)?gn:kt}(Math.abs(Lt.x)>0||Math.abs(Lt.y)>0)&&Se(!0),(yt=vt.current)==null||yt.style.setProperty("--swipe-amount-x",`${Lt.x}px`),(At=vt.current)==null||At.style.setProperty("--swipe-amount-y",`${Lt.y}px`)}},Jo&&!v.jsx&&jt!=="loading"?ae.createElement("button",{"aria-label":F,"data-disabled":$r,"data-close-button":!0,onClick:$r||!pa?()=>{}:()=>{Cn(),v.onDismiss==null||v.onDismiss.call(v,v)},className:On(M==null?void 0:M.closeButton,v==null||(i=v.classNames)==null?void 0:i.closeButton)},(An=$==null?void 0:$.close)!=null?An:OT):null,(jt||v.icon||v.promise)&&v.icon!==null&&(($==null?void 0:$[jt])!==null||v.icon)?ae.createElement("div",{"data-icon":"",className:On(M==null?void 0:M.icon,v==null||(c=v.classNames)==null?void 0:c.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||Ml():null,v.type!=="loading"?Ol:null):null,ae.createElement("div",{"data-content":"",className:On(M==null?void 0:M.content,v==null||(d=v.classNames)==null?void 0:d.content)},ae.createElement("div",{"data-title":"",className:On(M==null?void 0:M.title,v==null||(m=v.classNames)==null?void 0:m.title)},v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title),v.description?ae.createElement("div",{"data-description":"",className:On(me,uc,M==null?void 0:M.description,v==null||(h=v.classNames)==null?void 0:h.description)},typeof v.description=="function"?v.description():v.description):null),ae.isValidElement(v.cancel)?v.cancel:v.cancel&&gs(v.cancel)?ae.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||H,onClick:Ne=>{gs(v.cancel)&&pa&&(v.cancel.onClick==null||v.cancel.onClick.call(v.cancel,Ne),Cn())},className:On(M==null?void 0:M.cancelButton,v==null||(g=v.classNames)==null?void 0:g.cancelButton)},v.cancel.label):null,ae.isValidElement(v.action)?v.action:v.action&&gs(v.action)?ae.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||le,onClick:Ne=>{gs(v.action)&&(v.action.onClick==null||v.action.onClick.call(v.action,Ne),!Ne.defaultPrevented&&Cn())},className:On(M==null?void 0:M.actionButton,v==null||(p=v.classNames)==null?void 0:p.actionButton)},v.action.label):null)};function Sv(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function ZT(n,l){const o={};return[n,l].forEach((i,c)=>{const d=c===1,m=d?"--mobile-offset":"--offset",h=d?YT:$T;function g(p){["top","right","bottom","left"].forEach(x=>{o[`${m}-${x}`]=typeof p=="number"?`${p}px`:p})}typeof i=="number"||typeof i=="string"?g(i):typeof i=="object"?["top","right","bottom","left"].forEach(p=>{i[p]===void 0?o[`${m}-${p}`]=h:o[`${m}-${p}`]=typeof i[p]=="number"?`${i[p]}px`:i[p]}):g(h)}),o}const IT=ae.forwardRef(function(l,o){const{id:i,invert:c,position:d="bottom-right",hotkey:m=["altKey","KeyT"],expand:h,closeButton:g,className:p,offset:x,mobileOffset:v,theme:w="light",richColors:T,duration:N,style:E,visibleToasts:C=VT,toastOptions:A,dir:j=Sv(),gap:O=GT,icons:z,containerAriaLabel:X="Notifications"}=l,[K,V]=ae.useState([]),H=ae.useMemo(()=>i?K.filter(Q=>Q.toasterId===i):K.filter(Q=>!Q.toasterId),[K,i]),le=ae.useMemo(()=>Array.from(new Set([d].concat(H.filter(Q=>Q.position).map(Q=>Q.position)))),[H,d]),[ie,me]=ae.useState([]),[fe,ce]=ae.useState(!1),[de,re]=ae.useState(!1),[M,$]=ae.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),F=ae.useRef(null),J=m.join("+").replace(/Key/g,"").replace(/Digit/g,""),G=ae.useRef(null),R=ae.useRef(!1),Y=ae.useCallback(Q=>{V(W=>{var te;return(te=W.find(oe=>oe.id===Q.id))!=null&&te.delete||Xt.dismiss(Q.id),W.filter(({id:oe})=>oe!==Q.id)})},[]);return ae.useEffect(()=>Xt.subscribe(Q=>{if(Q.dismiss){requestAnimationFrame(()=>{V(W=>W.map(te=>te.id===Q.id?{...te,delete:!0}:te))});return}setTimeout(()=>{N0.flushSync(()=>{V(W=>{const te=W.findIndex(oe=>oe.id===Q.id);return te!==-1?[...W.slice(0,te),{...W[te],...Q},...W.slice(te+1)]:[Q,...W]})})})}),[K]),ae.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 Q=window.matchMedia("(prefers-color-scheme: dark)");try{Q.addEventListener("change",({matches:W})=>{$(W?"dark":"light")})}catch{Q.addListener(({matches:te})=>{try{$(te?"dark":"light")}catch(oe){console.error(oe)}})}},[w]),ae.useEffect(()=>{K.length<=1&&ce(!1)},[K]),ae.useEffect(()=>{const Q=W=>{var te;if(m.every(ue=>W[ue]||W.code===ue)){var ne;ce(!0),(ne=F.current)==null||ne.focus()}W.code==="Escape"&&(document.activeElement===F.current||(te=F.current)!=null&&te.contains(document.activeElement))&&ce(!1)};return document.addEventListener("keydown",Q),()=>document.removeEventListener("keydown",Q)},[m]),ae.useEffect(()=>{if(F.current)return()=>{G.current&&(G.current.focus({preventScroll:!0}),G.current=null,R.current=!1)}},[F.current]),ae.createElement("section",{ref:o,"aria-label":`${X} ${J}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},le.map((Q,W)=>{var te;const[oe,ne]=Q.split("-");return H.length?ae.createElement("ol",{key:Q,dir:j==="auto"?Sv():j,tabIndex:-1,ref:F,className:p,"data-sonner-toaster":!0,"data-sonner-theme":M,"data-y-position":oe,"data-x-position":ne,style:{"--front-toast-height":`${((te=ie[0])==null?void 0:te.height)||0}px`,"--width":`${qT}px`,"--gap":`${O}px`,...E,...ZT(x,v)},onBlur:ue=>{R.current&&!ue.currentTarget.contains(ue.relatedTarget)&&(R.current=!1,G.current&&(G.current.focus({preventScroll:!0}),G.current=null))},onFocus:ue=>{ue.target instanceof HTMLElement&&ue.target.dataset.dismissible==="false"||R.current||(R.current=!0,G.current=ue.relatedTarget)},onMouseEnter:()=>ce(!0),onMouseMove:()=>ce(!0),onMouseLeave:()=>{de||ce(!1)},onDragEnd:()=>ce(!1),onPointerDown:ue=>{ue.target instanceof HTMLElement&&ue.target.dataset.dismissible==="false"||re(!0)},onPointerUp:()=>re(!1)},H.filter(ue=>!ue.position&&W===0||ue.position===Q).map((ue,ee)=>{var xe,ye;return ae.createElement(KT,{key:ue.id,icons:z,index:ee,toast:ue,defaultRichColors:T,duration:(xe=A==null?void 0:A.duration)!=null?xe:N,className:A==null?void 0:A.className,descriptionClassName:A==null?void 0:A.descriptionClassName,invert:c,visibleToasts:C,closeButton:(ye=A==null?void 0:A.closeButton)!=null?ye:g,interacting:de,position:Q,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:Y,toasts:H.filter(Se=>Se.position==ue.position),heights:ie.filter(Se=>Se.position==ue.position),setHeights:me,expandByDefault:h,gap:O,expanded:fe,swipeDirections:l.swipeDirections})})):null}))}),wv=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Ev=U0,J0=(n,l)=>o=>{var i;if((l==null?void 0:l.variants)==null)return Ev(n,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:c,defaultVariants:d}=l,m=Object.keys(c).map(p=>{const x=o==null?void 0:o[p],v=d==null?void 0:d[p];if(x===null)return null;const w=wv(x)||wv(v);return c[p][w]}),h=o&&Object.entries(o).reduce((p,x)=>{let[v,w]=x;return w===void 0||(p[v]=w),p},{}),g=l==null||(i=l.compoundVariants)===null||i===void 0?void 0:i.reduce((p,x)=>{let{class:v,className:w,...T}=x;return Object.entries(T).every(N=>{let[E,C]=N;return Array.isArray(C)?C.includes({...d,...h}[E]):{...d,...h}[E]===C})?[...p,v,w]:p},[]);return Ev(n,m,g,o==null?void 0:o.class,o==null?void 0:o.className)},FT=J0("inline-flex items-center rounded-sm border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function pt({className:n,variant:l,...o}){return f.jsx("div",{className:se(FT({variant:l}),n),...o})}const Dn=y.forwardRef(({className:n,...l},o)=>f.jsx("div",{ref:o,className:se("rounded-lg border bg-card text-card-foreground shadow-sm",n),...l}));Dn.displayName="Card";const kn=y.forwardRef(({className:n,...l},o)=>f.jsx("div",{ref:o,className:se("flex flex-col space-y-1.5 p-6",n),...l}));kn.displayName="CardHeader";const zn=y.forwardRef(({className:n,...l},o)=>f.jsx("div",{ref:o,className:se("text-2xl font-semibold leading-none tracking-tight",n),...l}));zn.displayName="CardTitle";const Ln=y.forwardRef(({className:n,...l},o)=>f.jsx("div",{ref:o,className:se("text-sm text-muted-foreground",n),...l}));Ln.displayName="CardDescription";const Un=y.forwardRef(({className:n,...l},o)=>f.jsx("div",{ref:o,className:se("p-6 pt-0",n),...l}));Un.displayName="CardContent";const JT=y.forwardRef(({className:n,...l},o)=>f.jsx("div",{ref:o,className:se("flex items-center p-6 pt-0",n),...l}));JT.displayName="CardFooter";function Nv(n,l){if(typeof n=="function")return n(l);n!=null&&(n.current=l)}function Tf(...n){return l=>{let o=!1;const i=n.map(c=>{const d=Nv(c,l);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let c=0;c<i.length;c++){const d=i[c];typeof d=="function"?d():Nv(n[c],null)}}}}function Ie(...n){return y.useCallback(Tf(...n),n)}var WT=Symbol.for("react.lazy"),Ds=gf[" use ".trim().toString()];function eC(n){return typeof n=="object"&&n!==null&&"then"in n}function W0(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===WT&&"_payload"in n&&eC(n._payload)}function tC(n){const l=aC(n),o=y.forwardRef((i,c)=>{let{children:d,...m}=i;W0(d)&&typeof Ds=="function"&&(d=Ds(d._payload));const h=y.Children.toArray(d),g=h.find(rC);if(g){const p=g.props.children,x=h.map(v=>v===g?y.Children.count(p)>1?y.Children.only(null):y.isValidElement(p)?p.props.children:null:v);return f.jsx(l,{...m,ref:c,children:y.isValidElement(p)?y.cloneElement(p,void 0,x):null})}return f.jsx(l,{...m,ref:c,children:d})});return o.displayName=`${n}.Slot`,o}var nC=tC("Slot");function aC(n){const l=y.forwardRef((o,i)=>{let{children:c,...d}=o;if(W0(c)&&typeof Ds=="function"&&(c=Ds(c._payload)),y.isValidElement(c)){const m=iC(c),h=oC(d,c.props);return c.type!==y.Fragment&&(h.ref=i?Tf(i,m):m),y.cloneElement(c,h)}return y.Children.count(c)>1?y.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var lC=Symbol("radix.slottable");function rC(n){return y.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===lC}function oC(n,l){const o={...l};for(const i in l){const c=n[i],d=l[i];/^on[A-Z]/.test(i)?c&&d?o[i]=(...h)=>{const g=d(...h);return c(...h),g}:c&&(o[i]=c):i==="style"?o[i]={...c,...d}:i==="className"&&(o[i]=[c,d].filter(Boolean).join(" "))}return{...n,...o}}function iC(n){var i,c;let l=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=l&&"isReactWarning"in l&&l.isReactWarning;return o?n.ref:(l=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}const Cf=J0("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-sm text-sm font-semibold transition-all duration-200 ease-out hover:-translate-y-px focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 active:translate-y-0 active:scale-[0.985] disabled:pointer-events-none disabled:translate-y-0 disabled:scale-100 disabled:opacity-50 disabled:shadow-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"border border-primary/15 bg-primary text-primary-foreground shadow-[0_14px_34px_-20px_hsl(var(--primary)/0.9)] hover:bg-primary/90 hover:shadow-[0_18px_42px_-22px_hsl(var(--primary)/0.95)]",destructive:"border border-destructive/15 bg-destructive text-destructive-foreground shadow-[0_14px_34px_-20px_hsl(var(--destructive)/0.8)] hover:bg-destructive/90",outline:"border border-input/80 bg-background/72 shadow-sm backdrop-blur hover:border-primary/35 hover:bg-accent/70 hover:text-accent-foreground",secondary:"border border-transparent bg-secondary/88 text-secondary-foreground shadow-sm hover:bg-secondary",ghost:"hover:bg-accent/72 hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-sm px-3",lg:"h-11 rounded-lg px-8",icon:"h-10 w-10 rounded-sm"}},defaultVariants:{variant:"default",size:"default"}}),Sn=y.forwardRef(({className:n,variant:l,size:o,asChild:i=!1,...c},d)=>{const m=i?nC:"button";return f.jsx(m,{className:se(Cf({variant:l,size:o,className:n})),ref:d,...c})});Sn.displayName="Button";function Me(n,l,{checkForDefaultPrevented:o=!0}={}){return function(c){if(n==null||n(c),o===!1||!c.defaultPrevented)return l==null?void 0:l(c)}}function sC(n,l){const o=y.createContext(l),i=d=>{const{children:m,...h}=d,g=y.useMemo(()=>h,Object.values(h));return f.jsx(o.Provider,{value:g,children:m})};i.displayName=n+"Provider";function c(d){const m=y.useContext(o);if(m)return m;if(l!==void 0)return l;throw new Error(`\`${d}\` must be used within \`${n}\``)}return[i,c]}function Fa(n,l=[]){let o=[];function i(d,m){const h=y.createContext(m),g=o.length;o=[...o,m];const p=v=>{var A;const{scope:w,children:T,...N}=v,E=((A=w==null?void 0:w[n])==null?void 0:A[g])||h,C=y.useMemo(()=>N,Object.values(N));return f.jsx(E.Provider,{value:C,children:T})};p.displayName=d+"Provider";function x(v,w){var E;const T=((E=w==null?void 0:w[n])==null?void 0:E[g])||h,N=y.useContext(T);if(N)return N;if(m!==void 0)return m;throw new Error(`\`${v}\` must be used within \`${d}\``)}return[p,x]}const c=()=>{const d=o.map(m=>y.createContext(m));return function(h){const g=(h==null?void 0:h[n])||d;return y.useMemo(()=>({[`__scope${n}`]:{...h,[n]:g}}),[h,g])}};return c.scopeName=n,[i,cC(c,...l)]}function cC(...n){const l=n[0];if(n.length===1)return l;const o=()=>{const i=n.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(d){const m=i.reduce((h,{useScope:g,scopeName:p})=>{const v=g(d)[`__scope${p}`];return{...h,...v}},{});return y.useMemo(()=>({[`__scope${l.scopeName}`]:m}),[m])}};return o.scopeName=l.scopeName,o}var _t=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},uC=gf[" useId ".trim().toString()]||(()=>{}),dC=0;function Xa(n){const[l,o]=y.useState(uC());return _t(()=>{o(i=>i??String(dC++))},[n]),l?`radix-${l}`:""}var fC=gf[" useInsertionEffect ".trim().toString()]||_t;function Rr({prop:n,defaultProp:l,onChange:o=()=>{},caller:i}){const[c,d,m]=mC({defaultProp:l,onChange:o}),h=n!==void 0,g=h?n:c;{const x=y.useRef(n!==void 0);y.useEffect(()=>{const v=x.current;v!==h&&console.warn(`${i} is changing from ${v?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=h},[h,i])}const p=y.useCallback(x=>{var v;if(h){const w=hC(x)?x(n):x;w!==n&&((v=m.current)==null||v.call(m,w))}else d(x)},[h,n,d,m]);return[g,p]}function mC({defaultProp:n,onChange:l}){const[o,i]=y.useState(n),c=y.useRef(o),d=y.useRef(l);return fC(()=>{d.current=l},[l]),y.useEffect(()=>{var m;c.current!==o&&((m=d.current)==null||m.call(d,o),c.current=o)},[o,c]),[o,i,d]}function hC(n){return typeof n=="function"}function Xo(n){const l=pC(n),o=y.forwardRef((i,c)=>{const{children:d,...m}=i,h=y.Children.toArray(d),g=h.find(vC);if(g){const p=g.props.children,x=h.map(v=>v===g?y.Children.count(p)>1?y.Children.only(null):y.isValidElement(p)?p.props.children:null:v);return f.jsx(l,{...m,ref:c,children:y.isValidElement(p)?y.cloneElement(p,void 0,x):null})}return f.jsx(l,{...m,ref:c,children:d})});return o.displayName=`${n}.Slot`,o}function pC(n){const l=y.forwardRef((o,i)=>{const{children:c,...d}=o;if(y.isValidElement(c)){const m=bC(c),h=yC(d,c.props);return c.type!==y.Fragment&&(h.ref=i?Tf(i,m):m),y.cloneElement(c,h)}return y.Children.count(c)>1?y.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var ey=Symbol("radix.slottable");function gC(n){const l=({children:o})=>f.jsx(f.Fragment,{children:o});return l.displayName=`${n}.Slottable`,l.__radixId=ey,l}function vC(n){return y.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===ey}function yC(n,l){const o={...l};for(const i in l){const c=n[i],d=l[i];/^on[A-Z]/.test(i)?c&&d?o[i]=(...h)=>{const g=d(...h);return c(...h),g}:c&&(o[i]=c):i==="style"?o[i]={...c,...d}:i==="className"&&(o[i]=[c,d].filter(Boolean).join(" "))}return{...n,...o}}function bC(n){var i,c;let l=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=l&&"isReactWarning"in l&&l.isReactWarning;return o?n.ref:(l=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var xC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Le=xC.reduce((n,l)=>{const o=Xo(`Primitive.${l}`),i=y.forwardRef((c,d)=>{const{asChild:m,...h}=c,g=m?o:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(g,{...h,ref:d})});return i.displayName=`Primitive.${l}`,{...n,[l]:i}},{});function SC(n,l){n&&Zo.flushSync(()=>n.dispatchEvent(l))}function Qa(n){const l=y.useRef(n);return y.useEffect(()=>{l.current=n}),y.useMemo(()=>(...o)=>{var i;return(i=l.current)==null?void 0:i.call(l,...o)},[])}function wC(n,l=globalThis==null?void 0:globalThis.document){const o=Qa(n);y.useEffect(()=>{const i=c=>{c.key==="Escape"&&o(c)};return l.addEventListener("keydown",i,{capture:!0}),()=>l.removeEventListener("keydown",i,{capture:!0})},[o,l])}var EC="DismissableLayer",ef="dismissableLayer.update",NC="dismissableLayer.pointerDownOutside",TC="dismissableLayer.focusOutside",Tv,ty=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Af=y.forwardRef((n,l)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:m,onDismiss:h,...g}=n,p=y.useContext(ty),[x,v]=y.useState(null),w=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,T]=y.useState({}),N=Ie(l,V=>v(V)),E=Array.from(p.layers),[C]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),A=E.indexOf(C),j=x?E.indexOf(x):-1,O=p.layersWithOutsidePointerEventsDisabled.size>0,z=j>=A,X=RC(V=>{const H=V.target,le=[...p.branches].some(ie=>ie.contains(H));!z||le||(c==null||c(V),m==null||m(V),V.defaultPrevented||h==null||h())},w),K=_C(V=>{const H=V.target;[...p.branches].some(ie=>ie.contains(H))||(d==null||d(V),m==null||m(V),V.defaultPrevented||h==null||h())},w);return wC(V=>{j===p.layers.size-1&&(i==null||i(V),!V.defaultPrevented&&h&&(V.preventDefault(),h()))},w),y.useEffect(()=>{if(x)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Tv=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(x)),p.layers.add(x),Cv(),()=>{o&&p.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=Tv)}},[x,w,o,p]),y.useEffect(()=>()=>{x&&(p.layers.delete(x),p.layersWithOutsidePointerEventsDisabled.delete(x),Cv())},[x,p]),y.useEffect(()=>{const V=()=>T({});return document.addEventListener(ef,V),()=>document.removeEventListener(ef,V)},[]),f.jsx(Le.div,{...g,ref:N,style:{pointerEvents:O?z?"auto":"none":void 0,...n.style},onFocusCapture:Me(n.onFocusCapture,K.onFocusCapture),onBlurCapture:Me(n.onBlurCapture,K.onBlurCapture),onPointerDownCapture:Me(n.onPointerDownCapture,X.onPointerDownCapture)})});Af.displayName=EC;var CC="DismissableLayerBranch",AC=y.forwardRef((n,l)=>{const o=y.useContext(ty),i=y.useRef(null),c=Ie(l,i);return y.useEffect(()=>{const d=i.current;if(d)return o.branches.add(d),()=>{o.branches.delete(d)}},[o.branches]),f.jsx(Le.div,{...n,ref:c})});AC.displayName=CC;function RC(n,l=globalThis==null?void 0:globalThis.document){const o=Qa(n),i=y.useRef(!1),c=y.useRef(()=>{});return y.useEffect(()=>{const d=h=>{if(h.target&&!i.current){let g=function(){ny(NC,o,p,{discrete:!0})};const p={originalEvent:h};h.pointerType==="touch"?(l.removeEventListener("click",c.current),c.current=g,l.addEventListener("click",c.current,{once:!0})):g()}else l.removeEventListener("click",c.current);i.current=!1},m=window.setTimeout(()=>{l.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(m),l.removeEventListener("pointerdown",d),l.removeEventListener("click",c.current)}},[l,o]),{onPointerDownCapture:()=>i.current=!0}}function _C(n,l=globalThis==null?void 0:globalThis.document){const o=Qa(n),i=y.useRef(!1);return y.useEffect(()=>{const c=d=>{d.target&&!i.current&&ny(TC,o,{originalEvent:d},{discrete:!1})};return l.addEventListener("focusin",c),()=>l.removeEventListener("focusin",c)},[l,o]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Cv(){const n=new CustomEvent(ef);document.dispatchEvent(n)}function ny(n,l,o,{discrete:i}){const c=o.originalEvent.target,d=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:o});l&&c.addEventListener(n,l,{once:!0}),i?SC(c,d):c.dispatchEvent(d)}var Dd="focusScope.autoFocusOnMount",kd="focusScope.autoFocusOnUnmount",Av={bubbles:!1,cancelable:!0},jC="FocusScope",Rf=y.forwardRef((n,l)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:c,onUnmountAutoFocus:d,...m}=n,[h,g]=y.useState(null),p=Qa(c),x=Qa(d),v=y.useRef(null),w=Ie(l,E=>g(E)),T=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(i){let E=function(O){if(T.paused||!h)return;const z=O.target;h.contains(z)?v.current=z:Ga(v.current,{select:!0})},C=function(O){if(T.paused||!h)return;const z=O.relatedTarget;z!==null&&(h.contains(z)||Ga(v.current,{select:!0}))},A=function(O){if(document.activeElement===document.body)for(const X of O)X.removedNodes.length>0&&Ga(h)};document.addEventListener("focusin",E),document.addEventListener("focusout",C);const j=new MutationObserver(A);return h&&j.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",C),j.disconnect()}}},[i,h,T.paused]),y.useEffect(()=>{if(h){_v.add(T);const E=document.activeElement;if(!h.contains(E)){const A=new CustomEvent(Dd,Av);h.addEventListener(Dd,p),h.dispatchEvent(A),A.defaultPrevented||(MC(LC(ay(h)),{select:!0}),document.activeElement===E&&Ga(h))}return()=>{h.removeEventListener(Dd,p),setTimeout(()=>{const A=new CustomEvent(kd,Av);h.addEventListener(kd,x),h.dispatchEvent(A),A.defaultPrevented||Ga(E??document.body,{select:!0}),h.removeEventListener(kd,x),_v.remove(T)},0)}}},[h,p,x,T]);const N=y.useCallback(E=>{if(!o&&!i||T.paused)return;const C=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,A=document.activeElement;if(C&&A){const j=E.currentTarget,[O,z]=OC(j);O&&z?!E.shiftKey&&A===z?(E.preventDefault(),o&&Ga(O,{select:!0})):E.shiftKey&&A===O&&(E.preventDefault(),o&&Ga(z,{select:!0})):A===j&&E.preventDefault()}},[o,i,T.paused]);return f.jsx(Le.div,{tabIndex:-1,...m,ref:w,onKeyDown:N})});Rf.displayName=jC;function MC(n,{select:l=!1}={}){const o=document.activeElement;for(const i of n)if(Ga(i,{select:l}),document.activeElement!==o)return}function OC(n){const l=ay(n),o=Rv(l,n),i=Rv(l.reverse(),n);return[o,i]}function ay(n){const l=[],o=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const c=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||c?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)l.push(o.currentNode);return l}function Rv(n,l){for(const o of n)if(!DC(o,{upTo:l}))return o}function DC(n,{upTo:l}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(l!==void 0&&n===l)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function kC(n){return n instanceof HTMLInputElement&&"select"in n}function Ga(n,{select:l=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&kC(n)&&l&&n.select()}}var _v=zC();function zC(){let n=[];return{add(l){const o=n[0];l!==o&&(o==null||o.pause()),n=jv(n,l),n.unshift(l)},remove(l){var o;n=jv(n,l),(o=n[0])==null||o.resume()}}}function jv(n,l){const o=[...n],i=o.indexOf(l);return i!==-1&&o.splice(i,1),o}function LC(n){return n.filter(l=>l.tagName!=="A")}var UC="Portal",_f=y.forwardRef((n,l)=>{var h;const{container:o,...i}=n,[c,d]=y.useState(!1);_t(()=>d(!0),[]);const m=o||c&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return m?N0.createPortal(f.jsx(Le.div,{...i,ref:l}),m):null});_f.displayName=UC;function BC(n,l){return y.useReducer((o,i)=>l[o][i]??o,n)}var kr=n=>{const{present:l,children:o}=n,i=HC(l),c=typeof o=="function"?o({present:i.isPresent}):y.Children.only(o),d=Ie(i.ref,VC(c));return typeof o=="function"||i.isPresent?y.cloneElement(c,{ref:d}):null};kr.displayName="Presence";function HC(n){const[l,o]=y.useState(),i=y.useRef(null),c=y.useRef(n),d=y.useRef("none"),m=n?"mounted":"unmounted",[h,g]=BC(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const p=vs(i.current);d.current=h==="mounted"?p:"none"},[h]),_t(()=>{const p=i.current,x=c.current;if(x!==n){const w=d.current,T=vs(p);n?g("MOUNT"):T==="none"||(p==null?void 0:p.display)==="none"?g("UNMOUNT"):g(x&&w!==T?"ANIMATION_OUT":"UNMOUNT"),c.current=n}},[n,g]),_t(()=>{if(l){let p;const x=l.ownerDocument.defaultView??window,v=T=>{const E=vs(i.current).includes(CSS.escape(T.animationName));if(T.target===l&&E&&(g("ANIMATION_END"),!c.current)){const C=l.style.animationFillMode;l.style.animationFillMode="forwards",p=x.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=C)})}},w=T=>{T.target===l&&(d.current=vs(i.current))};return l.addEventListener("animationstart",w),l.addEventListener("animationcancel",v),l.addEventListener("animationend",v),()=>{x.clearTimeout(p),l.removeEventListener("animationstart",w),l.removeEventListener("animationcancel",v),l.removeEventListener("animationend",v)}}else g("ANIMATION_END")},[l,g]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:y.useCallback(p=>{i.current=p?getComputedStyle(p):null,o(p)},[])}}function vs(n){return(n==null?void 0:n.animationName)||"none"}function VC(n){var i,c;let l=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=l&&"isReactWarning"in l&&l.isReactWarning;return o?n.ref:(l=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var zd=0;function ly(){y.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Mv()),document.body.insertAdjacentElement("beforeend",n[1]??Mv()),zd++,()=>{zd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(l=>l.remove()),zd--}},[])}function Mv(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Bn=function(){return Bn=Object.assign||function(l){for(var o,i=1,c=arguments.length;i<c;i++){o=arguments[i];for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(l[d]=o[d])}return l},Bn.apply(this,arguments)};function ry(n,l){var o={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&l.indexOf(i)<0&&(o[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,i=Object.getOwnPropertySymbols(n);c<i.length;c++)l.indexOf(i[c])<0&&Object.prototype.propertyIsEnumerable.call(n,i[c])&&(o[i[c]]=n[i[c]]);return o}function $C(n,l,o){if(o||arguments.length===2)for(var i=0,c=l.length,d;i<c;i++)(d||!(i in l))&&(d||(d=Array.prototype.slice.call(l,0,i)),d[i]=l[i]);return n.concat(d||Array.prototype.slice.call(l))}var Ts="right-scroll-bar-position",Cs="width-before-scroll-bar",YC="with-scroll-bars-hidden",qC="--removed-body-scroll-bar-size";function Ld(n,l){return typeof n=="function"?n(l):n&&(n.current=l),n}function GC(n,l){var o=y.useState(function(){return{value:n,callback:l,facade:{get current(){return o.value},set current(i){var c=o.value;c!==i&&(o.value=i,o.callback(i,c))}}}})[0];return o.callback=l,o.facade}var XC=typeof window<"u"?y.useLayoutEffect:y.useEffect,Ov=new WeakMap;function PC(n,l){var o=GC(null,function(i){return n.forEach(function(c){return Ld(c,i)})});return XC(function(){var i=Ov.get(o);if(i){var c=new Set(i),d=new Set(n),m=o.current;c.forEach(function(h){d.has(h)||Ld(h,null)}),d.forEach(function(h){c.has(h)||Ld(h,m)})}Ov.set(o,n)},[n]),o}function QC(n){return n}function KC(n,l){l===void 0&&(l=QC);var o=[],i=!1,c={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:n},useMedium:function(d){var m=l(d,i);return o.push(m),function(){o=o.filter(function(h){return h!==m})}},assignSyncMedium:function(d){for(i=!0;o.length;){var m=o;o=[],m.forEach(d)}o={push:function(h){return d(h)},filter:function(){return o}}},assignMedium:function(d){i=!0;var m=[];if(o.length){var h=o;o=[],h.forEach(d),m=o}var g=function(){var x=m;m=[],x.forEach(d)},p=function(){return Promise.resolve().then(g)};p(),o={push:function(x){m.push(x),p()},filter:function(x){return m=m.filter(x),o}}}};return c}function ZC(n){n===void 0&&(n={});var l=KC(null);return l.options=Bn({async:!0,ssr:!1},n),l}var oy=function(n){var l=n.sideCar,o=ry(n,["sideCar"]);if(!l)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=l.read();if(!i)throw new Error("Sidecar medium not found");return y.createElement(i,Bn({},o))};oy.isSideCarExport=!0;function IC(n,l){return n.useMedium(l),oy}var iy=ZC(),Ud=function(){},Js=y.forwardRef(function(n,l){var o=y.useRef(null),i=y.useState({onScrollCapture:Ud,onWheelCapture:Ud,onTouchMoveCapture:Ud}),c=i[0],d=i[1],m=n.forwardProps,h=n.children,g=n.className,p=n.removeScrollBar,x=n.enabled,v=n.shards,w=n.sideCar,T=n.noRelative,N=n.noIsolation,E=n.inert,C=n.allowPinchZoom,A=n.as,j=A===void 0?"div":A,O=n.gapMode,z=ry(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),X=w,K=PC([o,l]),V=Bn(Bn({},z),c);return y.createElement(y.Fragment,null,x&&y.createElement(X,{sideCar:iy,removeScrollBar:p,shards:v,noRelative:T,noIsolation:N,inert:E,setCallbacks:d,allowPinchZoom:!!C,lockRef:o,gapMode:O}),m?y.cloneElement(y.Children.only(h),Bn(Bn({},V),{ref:K})):y.createElement(j,Bn({},V,{className:g,ref:K}),h))});Js.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Js.classNames={fullWidth:Cs,zeroRight:Ts};var FC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function JC(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var l=FC();return l&&n.setAttribute("nonce",l),n}function WC(n,l){n.styleSheet?n.styleSheet.cssText=l:n.appendChild(document.createTextNode(l))}function e5(n){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(n)}var t5=function(){var n=0,l=null;return{add:function(o){n==0&&(l=JC())&&(WC(l,o),e5(l)),n++},remove:function(){n--,!n&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},n5=function(){var n=t5();return function(l,o){y.useEffect(function(){return n.add(l),function(){n.remove()}},[l&&o])}},sy=function(){var n=n5(),l=function(o){var i=o.styles,c=o.dynamic;return n(i,c),null};return l},a5={left:0,top:0,right:0,gap:0},Bd=function(n){return parseInt(n||"",10)||0},l5=function(n){var l=window.getComputedStyle(document.body),o=l[n==="padding"?"paddingLeft":"marginLeft"],i=l[n==="padding"?"paddingTop":"marginTop"],c=l[n==="padding"?"paddingRight":"marginRight"];return[Bd(o),Bd(i),Bd(c)]},r5=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return a5;var l=l5(n),o=document.documentElement.clientWidth,i=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,i-o+l[2]-l[0])}},o5=sy(),Tr="data-scroll-locked",i5=function(n,l,o,i){var c=n.left,d=n.top,m=n.right,h=n.gap;return o===void 0&&(o="margin"),`
272
+ .`.concat(YC,` {
273
+ overflow: hidden `).concat(i,`;
274
+ padding-right: `).concat(h,"px ").concat(i,`;
275
+ }
276
+ body[`).concat(Tr,`] {
277
+ overflow: hidden `).concat(i,`;
278
+ overscroll-behavior: contain;
279
+ `).concat([l&&"position: relative ".concat(i,";"),o==="margin"&&`
280
+ padding-left: `.concat(c,`px;
281
+ padding-top: `).concat(d,`px;
282
+ padding-right: `).concat(m,`px;
283
+ margin-left:0;
284
+ margin-top:0;
285
+ margin-right: `).concat(h,"px ").concat(i,`;
286
+ `),o==="padding"&&"padding-right: ".concat(h,"px ").concat(i,";")].filter(Boolean).join(""),`
287
+ }
288
+
289
+ .`).concat(Ts,` {
290
+ right: `).concat(h,"px ").concat(i,`;
291
+ }
292
+
293
+ .`).concat(Cs,` {
294
+ margin-right: `).concat(h,"px ").concat(i,`;
295
+ }
296
+
297
+ .`).concat(Ts," .").concat(Ts,` {
298
+ right: 0 `).concat(i,`;
299
+ }
300
+
301
+ .`).concat(Cs," .").concat(Cs,` {
302
+ margin-right: 0 `).concat(i,`;
303
+ }
304
+
305
+ body[`).concat(Tr,`] {
306
+ `).concat(qC,": ").concat(h,`px;
307
+ }
308
+ `)},Dv=function(){var n=parseInt(document.body.getAttribute(Tr)||"0",10);return isFinite(n)?n:0},s5=function(){y.useEffect(function(){return document.body.setAttribute(Tr,(Dv()+1).toString()),function(){var n=Dv()-1;n<=0?document.body.removeAttribute(Tr):document.body.setAttribute(Tr,n.toString())}},[])},c5=function(n){var l=n.noRelative,o=n.noImportant,i=n.gapMode,c=i===void 0?"margin":i;s5();var d=y.useMemo(function(){return r5(c)},[c]);return y.createElement(o5,{styles:i5(d,!l,c,o?"":"!important")})},tf=!1;if(typeof window<"u")try{var ys=Object.defineProperty({},"passive",{get:function(){return tf=!0,!0}});window.addEventListener("test",ys,ys),window.removeEventListener("test",ys,ys)}catch{tf=!1}var yr=tf?{passive:!1}:!1,u5=function(n){return n.tagName==="TEXTAREA"},cy=function(n,l){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[l]!=="hidden"&&!(o.overflowY===o.overflowX&&!u5(n)&&o[l]==="visible")},d5=function(n){return cy(n,"overflowY")},f5=function(n){return cy(n,"overflowX")},kv=function(n,l){var o=l.ownerDocument,i=l;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var c=uy(n,i);if(c){var d=dy(n,i),m=d[1],h=d[2];if(m>h)return!0}i=i.parentNode}while(i&&i!==o.body);return!1},m5=function(n){var l=n.scrollTop,o=n.scrollHeight,i=n.clientHeight;return[l,o,i]},h5=function(n){var l=n.scrollLeft,o=n.scrollWidth,i=n.clientWidth;return[l,o,i]},uy=function(n,l){return n==="v"?d5(l):f5(l)},dy=function(n,l){return n==="v"?m5(l):h5(l)},p5=function(n,l){return n==="h"&&l==="rtl"?-1:1},g5=function(n,l,o,i,c){var d=p5(n,window.getComputedStyle(l).direction),m=d*i,h=o.target,g=l.contains(h),p=!1,x=m>0,v=0,w=0;do{if(!h)break;var T=dy(n,h),N=T[0],E=T[1],C=T[2],A=E-C-d*N;(N||A)&&uy(n,h)&&(v+=A,w+=N);var j=h.parentNode;h=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!g&&h!==document.body||g&&(l.contains(h)||l===h));return(x&&Math.abs(v)<1||!x&&Math.abs(w)<1)&&(p=!0),p},bs=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},zv=function(n){return[n.deltaX,n.deltaY]},Lv=function(n){return n&&"current"in n?n.current:n},v5=function(n,l){return n[0]===l[0]&&n[1]===l[1]},y5=function(n){return`
309
+ .block-interactivity-`.concat(n,` {pointer-events: none;}
310
+ .allow-interactivity-`).concat(n,` {pointer-events: all;}
311
+ `)},b5=0,br=[];function x5(n){var l=y.useRef([]),o=y.useRef([0,0]),i=y.useRef(),c=y.useState(b5++)[0],d=y.useState(sy)[0],m=y.useRef(n);y.useEffect(function(){m.current=n},[n]),y.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(c));var E=$C([n.lockRef.current],(n.shards||[]).map(Lv),!0).filter(Boolean);return E.forEach(function(C){return C.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),E.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(c))})}}},[n.inert,n.lockRef.current,n.shards]);var h=y.useCallback(function(E,C){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!m.current.allowPinchZoom;var A=bs(E),j=o.current,O="deltaX"in E?E.deltaX:j[0]-A[0],z="deltaY"in E?E.deltaY:j[1]-A[1],X,K=E.target,V=Math.abs(O)>Math.abs(z)?"h":"v";if("touches"in E&&V==="h"&&K.type==="range")return!1;var H=window.getSelection(),le=H&&H.anchorNode,ie=le?le===K||le.contains(K):!1;if(ie)return!1;var me=kv(V,K);if(!me)return!0;if(me?X=V:(X=V==="v"?"h":"v",me=kv(V,K)),!me)return!1;if(!i.current&&"changedTouches"in E&&(O||z)&&(i.current=X),!X)return!0;var fe=i.current||X;return g5(fe,C,E,fe==="h"?O:z)},[]),g=y.useCallback(function(E){var C=E;if(!(!br.length||br[br.length-1]!==d)){var A="deltaY"in C?zv(C):bs(C),j=l.current.filter(function(X){return X.name===C.type&&(X.target===C.target||C.target===X.shadowParent)&&v5(X.delta,A)})[0];if(j&&j.should){C.cancelable&&C.preventDefault();return}if(!j){var O=(m.current.shards||[]).map(Lv).filter(Boolean).filter(function(X){return X.contains(C.target)}),z=O.length>0?h(C,O[0]):!m.current.noIsolation;z&&C.cancelable&&C.preventDefault()}}},[]),p=y.useCallback(function(E,C,A,j){var O={name:E,delta:C,target:A,should:j,shadowParent:S5(A)};l.current.push(O),setTimeout(function(){l.current=l.current.filter(function(z){return z!==O})},1)},[]),x=y.useCallback(function(E){o.current=bs(E),i.current=void 0},[]),v=y.useCallback(function(E){p(E.type,zv(E),E.target,h(E,n.lockRef.current))},[]),w=y.useCallback(function(E){p(E.type,bs(E),E.target,h(E,n.lockRef.current))},[]);y.useEffect(function(){return br.push(d),n.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:w}),document.addEventListener("wheel",g,yr),document.addEventListener("touchmove",g,yr),document.addEventListener("touchstart",x,yr),function(){br=br.filter(function(E){return E!==d}),document.removeEventListener("wheel",g,yr),document.removeEventListener("touchmove",g,yr),document.removeEventListener("touchstart",x,yr)}},[]);var T=n.removeScrollBar,N=n.inert;return y.createElement(y.Fragment,null,N?y.createElement(d,{styles:y5(c)}):null,T?y.createElement(c5,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function S5(n){for(var l=null;n!==null;)n instanceof ShadowRoot&&(l=n.host,n=n.host),n=n.parentNode;return l}const w5=IC(iy,x5);var jf=y.forwardRef(function(n,l){return y.createElement(Js,Bn({},n,{ref:l,sideCar:w5}))});jf.classNames=Js.classNames;var E5=function(n){if(typeof document>"u")return null;var l=Array.isArray(n)?n[0]:n;return l.ownerDocument.body},xr=new WeakMap,xs=new WeakMap,Ss={},Hd=0,fy=function(n){return n&&(n.host||fy(n.parentNode))},N5=function(n,l){return l.map(function(o){if(n.contains(o))return o;var i=fy(o);return i&&n.contains(i)?i:(console.error("aria-hidden",o,"in not contained inside",n,". Doing nothing"),null)}).filter(function(o){return!!o})},T5=function(n,l,o,i){var c=N5(l,Array.isArray(n)?n:[n]);Ss[o]||(Ss[o]=new WeakMap);var d=Ss[o],m=[],h=new Set,g=new Set(c),p=function(v){!v||h.has(v)||(h.add(v),p(v.parentNode))};c.forEach(p);var x=function(v){!v||g.has(v)||Array.prototype.forEach.call(v.children,function(w){if(h.has(w))x(w);else try{var T=w.getAttribute(i),N=T!==null&&T!=="false",E=(xr.get(w)||0)+1,C=(d.get(w)||0)+1;xr.set(w,E),d.set(w,C),m.push(w),E===1&&N&&xs.set(w,!0),C===1&&w.setAttribute(o,"true"),N||w.setAttribute(i,"true")}catch(A){console.error("aria-hidden: cannot operate on ",w,A)}})};return x(l),h.clear(),Hd++,function(){m.forEach(function(v){var w=xr.get(v)-1,T=d.get(v)-1;xr.set(v,w),d.set(v,T),w||(xs.has(v)||v.removeAttribute(i),xs.delete(v)),T||v.removeAttribute(o)}),Hd--,Hd||(xr=new WeakMap,xr=new WeakMap,xs=new WeakMap,Ss={})}},my=function(n,l,o){o===void 0&&(o="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),c=E5(n);return c?(i.push.apply(i,Array.from(c.querySelectorAll("[aria-live], script"))),T5(i,c,o,"aria-hidden")):function(){return null}},Ws="Dialog",[hy,py]=Fa(Ws),[C5,Tn]=hy(Ws),gy=n=>{const{__scopeDialog:l,children:o,open:i,defaultOpen:c,onOpenChange:d,modal:m=!0}=n,h=y.useRef(null),g=y.useRef(null),[p,x]=Rr({prop:i,defaultProp:c??!1,onChange:d,caller:Ws});return f.jsx(C5,{scope:l,triggerRef:h,contentRef:g,contentId:Xa(),titleId:Xa(),descriptionId:Xa(),open:p,onOpenChange:x,onOpenToggle:y.useCallback(()=>x(v=>!v),[x]),modal:m,children:o})};gy.displayName=Ws;var vy="DialogTrigger",yy=y.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,c=Tn(vy,o),d=Ie(l,c.triggerRef);return f.jsx(Le.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":Df(c.open),...i,ref:d,onClick:Me(n.onClick,c.onOpenToggle)})});yy.displayName=vy;var Mf="DialogPortal",[A5,by]=hy(Mf,{forceMount:void 0}),xy=n=>{const{__scopeDialog:l,forceMount:o,children:i,container:c}=n,d=Tn(Mf,l);return f.jsx(A5,{scope:l,forceMount:o,children:y.Children.map(i,m=>f.jsx(kr,{present:o||d.open,children:f.jsx(_f,{asChild:!0,container:c,children:m})}))})};xy.displayName=Mf;var ks="DialogOverlay",Sy=y.forwardRef((n,l)=>{const o=by(ks,n.__scopeDialog),{forceMount:i=o.forceMount,...c}=n,d=Tn(ks,n.__scopeDialog);return d.modal?f.jsx(kr,{present:i||d.open,children:f.jsx(_5,{...c,ref:l})}):null});Sy.displayName=ks;var R5=Xo("DialogOverlay.RemoveScroll"),_5=y.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,c=Tn(ks,o);return f.jsx(jf,{as:R5,allowPinchZoom:!0,shards:[c.contentRef],children:f.jsx(Le.div,{"data-state":Df(c.open),...i,ref:l,style:{pointerEvents:"auto",...i.style}})})}),Cl="DialogContent",wy=y.forwardRef((n,l)=>{const o=by(Cl,n.__scopeDialog),{forceMount:i=o.forceMount,...c}=n,d=Tn(Cl,n.__scopeDialog);return f.jsx(kr,{present:i||d.open,children:d.modal?f.jsx(j5,{...c,ref:l}):f.jsx(M5,{...c,ref:l})})});wy.displayName=Cl;var j5=y.forwardRef((n,l)=>{const o=Tn(Cl,n.__scopeDialog),i=y.useRef(null),c=Ie(l,o.contentRef,i);return y.useEffect(()=>{const d=i.current;if(d)return my(d)},[]),f.jsx(Ey,{...n,ref:c,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Me(n.onCloseAutoFocus,d=>{var m;d.preventDefault(),(m=o.triggerRef.current)==null||m.focus()}),onPointerDownOutside:Me(n.onPointerDownOutside,d=>{const m=d.detail.originalEvent,h=m.button===0&&m.ctrlKey===!0;(m.button===2||h)&&d.preventDefault()}),onFocusOutside:Me(n.onFocusOutside,d=>d.preventDefault())})}),M5=y.forwardRef((n,l)=>{const o=Tn(Cl,n.__scopeDialog),i=y.useRef(!1),c=y.useRef(!1);return f.jsx(Ey,{...n,ref:l,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var m,h;(m=n.onCloseAutoFocus)==null||m.call(n,d),d.defaultPrevented||(i.current||(h=o.triggerRef.current)==null||h.focus(),d.preventDefault()),i.current=!1,c.current=!1},onInteractOutside:d=>{var g,p;(g=n.onInteractOutside)==null||g.call(n,d),d.defaultPrevented||(i.current=!0,d.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const m=d.target;((p=o.triggerRef.current)==null?void 0:p.contains(m))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&c.current&&d.preventDefault()}})}),Ey=y.forwardRef((n,l)=>{const{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:c,onCloseAutoFocus:d,...m}=n,h=Tn(Cl,o),g=y.useRef(null),p=Ie(l,g);return ly(),f.jsxs(f.Fragment,{children:[f.jsx(Rf,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:c,onUnmountAutoFocus:d,children:f.jsx(Af,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Df(h.open),...m,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(D5,{titleId:h.titleId}),f.jsx(z5,{contentRef:g,descriptionId:h.descriptionId})]})]})}),Of="DialogTitle",Ny=y.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,c=Tn(Of,o);return f.jsx(Le.h2,{id:c.titleId,...i,ref:l})});Ny.displayName=Of;var Ty="DialogDescription",Cy=y.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,c=Tn(Ty,o);return f.jsx(Le.p,{id:c.descriptionId,...i,ref:l})});Cy.displayName=Ty;var Ay="DialogClose",Ry=y.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,c=Tn(Ay,o);return f.jsx(Le.button,{type:"button",...i,ref:l,onClick:Me(n.onClick,()=>c.onOpenChange(!1))})});Ry.displayName=Ay;function Df(n){return n?"open":"closed"}var _y="DialogTitleWarning",[O5,jy]=sC(_y,{contentName:Cl,titleName:Of,docsSlug:"dialog"}),D5=({titleId:n})=>{const l=jy(_y),o=`\`${l.contentName}\` requires a \`${l.titleName}\` for the component to be accessible for screen reader users.
312
+
313
+ If you want to hide the \`${l.titleName}\`, you can wrap it with our VisuallyHidden component.
314
+
315
+ For more information, see https://radix-ui.com/primitives/docs/components/${l.docsSlug}`;return y.useEffect(()=>{n&&(document.getElementById(n)||console.error(o))},[o,n]),null},k5="DialogDescriptionWarning",z5=({contentRef:n,descriptionId:l})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${jy(k5).contentName}}.`;return y.useEffect(()=>{var d;const c=(d=n.current)==null?void 0:d.getAttribute("aria-describedby");l&&c&&(document.getElementById(l)||console.warn(i))},[i,n,l]),null},My=gy,Oy=yy,Dy=xy,kf=Sy,zf=wy,Lf=Ny,Uf=Cy,ec=Ry;const L5=My,U5=Oy,B5=Dy,$j=ec,ky=y.forwardRef(({className:n,...l},o)=>f.jsx(kf,{ref:o,className:se("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...l}));ky.displayName=kf.displayName;const zy=y.forwardRef(({className:n,children:l,...o},i)=>f.jsxs(B5,{children:[f.jsx(ky,{}),f.jsxs(zf,{ref:i,className:se("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-xl border bg-background p-6 shadow-[0_34px_110px_-54px_rgba(0,0,0,0.55)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n),...o,children:[l,f.jsxs(ec,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[f.jsx(z0,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));zy.displayName=zf.displayName;const Ly=({className:n,...l})=>f.jsx("div",{className:se("flex flex-col space-y-1.5 text-center sm:text-left",n),...l});Ly.displayName="DialogHeader";const H5=({className:n,...l})=>f.jsx("div",{className:se("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...l});H5.displayName="DialogFooter";const Uy=y.forwardRef(({className:n,...l},o)=>f.jsx(Lf,{ref:o,className:se("text-lg font-semibold leading-none tracking-tight",n),...l}));Uy.displayName=Lf.displayName;const By=y.forwardRef(({className:n,...l},o)=>f.jsx(Uf,{ref:o,className:se("text-sm text-muted-foreground",n),...l}));By.displayName=Uf.displayName;function V5({children:n,open:l,onOpenChange:o,showTrigger:i=!0}){const[c,d]=y.useState(!1),m=l??c,h=y.useCallback(g=>{l===void 0&&d(g),o==null||o(g)},[l,o]);return f.jsxs(L5,{open:m,onOpenChange:h,children:[i&&f.jsx(U5,{asChild:!0,children:f.jsx(Sn,{variant:"ghost",size:"icon","aria-label":"Settings",title:"Settings",className:"h-8 w-8 rounded-sm text-muted-foreground hover:bg-muted/50 hover:text-foreground",children:f.jsx(TN,{className:"h-4 w-4"})})}),f.jsxs(zy,{className:"settings-dialog-content grid h-[min(78vh,38rem)] max-h-[78vh] max-w-[min(86vw,50rem)] grid-rows-[auto_minmax(0,1fr)] gap-0 overflow-hidden rounded-xl border-border/70 bg-background/96 p-0 shadow-[0_40px_120px_-56px_rgba(15,23,42,0.75)] backdrop-blur-xl",children:[f.jsxs(Ly,{className:"shrink-0 border-b border-border/60 px-3 py-1.5 sm:px-3.5",children:[f.jsxs(Uy,{className:"flex items-center gap-1.5 text-[11px]",children:[f.jsx(sN,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),f.jsx(By,{className:"text-[10px]",children:"Session diagnostics, access configuration, and build metadata for the current Meshy node."})]}),f.jsx("div",{className:"min-h-0 overflow-y-auto px-2.5 pb-2 pt-0 sm:px-3 sm:pb-2.5",children:n})]})]})}function Uv(n,[l,o]){return Math.min(o,Math.max(l,n))}function Hy(n){const l=n+"CollectionProvider",[o,i]=Fa(l),[c,d]=o(l,{collectionRef:{current:null},itemMap:new Map}),m=E=>{const{scope:C,children:A}=E,j=ae.useRef(null),O=ae.useRef(new Map).current;return f.jsx(c,{scope:C,itemMap:O,collectionRef:j,children:A})};m.displayName=l;const h=n+"CollectionSlot",g=Xo(h),p=ae.forwardRef((E,C)=>{const{scope:A,children:j}=E,O=d(h,A),z=Ie(C,O.collectionRef);return f.jsx(g,{ref:z,children:j})});p.displayName=h;const x=n+"CollectionItemSlot",v="data-radix-collection-item",w=Xo(x),T=ae.forwardRef((E,C)=>{const{scope:A,children:j,...O}=E,z=ae.useRef(null),X=Ie(C,z),K=d(x,A);return ae.useEffect(()=>(K.itemMap.set(z,{ref:z,...O}),()=>void K.itemMap.delete(z))),f.jsx(w,{[v]:"",ref:X,children:j})});T.displayName=x;function N(E){const C=d(n+"CollectionConsumer",E);return ae.useCallback(()=>{const j=C.collectionRef.current;if(!j)return[];const O=Array.from(j.querySelectorAll(`[${v}]`));return Array.from(C.itemMap.values()).sort((K,V)=>O.indexOf(K.ref.current)-O.indexOf(V.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:m,Slot:p,ItemSlot:T},N,i]}var $5=y.createContext(void 0);function Bf(n){const l=y.useContext($5);return n||l||"ltr"}const Y5=["top","right","bottom","left"],Ka=Math.min,en=Math.max,zs=Math.round,ws=Math.floor,$n=n=>({x:n,y:n}),q5={left:"right",right:"left",bottom:"top",top:"bottom"};function nf(n,l,o){return en(n,Ka(l,o))}function da(n,l){return typeof n=="function"?n(l):n}function fa(n){return n.split("-")[0]}function zr(n){return n.split("-")[1]}function Hf(n){return n==="x"?"y":"x"}function Vf(n){return n==="y"?"height":"width"}function Hn(n){const l=n[0];return l==="t"||l==="b"?"y":"x"}function $f(n){return Hf(Hn(n))}function G5(n,l,o){o===void 0&&(o=!1);const i=zr(n),c=$f(n),d=Vf(c);let m=c==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return l.reference[d]>l.floating[d]&&(m=Ls(m)),[m,Ls(m)]}function X5(n){const l=Ls(n);return[af(n),l,af(l)]}function af(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Bv=["left","right"],Hv=["right","left"],P5=["top","bottom"],Q5=["bottom","top"];function K5(n,l,o){switch(n){case"top":case"bottom":return o?l?Hv:Bv:l?Bv:Hv;case"left":case"right":return l?P5:Q5;default:return[]}}function Z5(n,l,o,i){const c=zr(n);let d=K5(fa(n),o==="start",i);return c&&(d=d.map(m=>m+"-"+c),l&&(d=d.concat(d.map(af)))),d}function Ls(n){const l=fa(n);return q5[l]+n.slice(l.length)}function I5(n){return{top:0,right:0,bottom:0,left:0,...n}}function Vy(n){return typeof n!="number"?I5(n):{top:n,right:n,bottom:n,left:n}}function Us(n){const{x:l,y:o,width:i,height:c}=n;return{width:i,height:c,top:o,left:l,right:l+i,bottom:o+c,x:l,y:o}}function Vv(n,l,o){let{reference:i,floating:c}=n;const d=Hn(l),m=$f(l),h=Vf(m),g=fa(l),p=d==="y",x=i.x+i.width/2-c.width/2,v=i.y+i.height/2-c.height/2,w=i[h]/2-c[h]/2;let T;switch(g){case"top":T={x,y:i.y-c.height};break;case"bottom":T={x,y:i.y+i.height};break;case"right":T={x:i.x+i.width,y:v};break;case"left":T={x:i.x-c.width,y:v};break;default:T={x:i.x,y:i.y}}switch(zr(l)){case"start":T[m]-=w*(o&&p?-1:1);break;case"end":T[m]+=w*(o&&p?-1:1);break}return T}async function F5(n,l){var o;l===void 0&&(l={});const{x:i,y:c,platform:d,rects:m,elements:h,strategy:g}=n,{boundary:p="clippingAncestors",rootBoundary:x="viewport",elementContext:v="floating",altBoundary:w=!1,padding:T=0}=da(l,n),N=Vy(T),C=h[w?v==="floating"?"reference":"floating":v],A=Us(await d.getClippingRect({element:(o=await(d.isElement==null?void 0:d.isElement(C)))==null||o?C:C.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(h.floating)),boundary:p,rootBoundary:x,strategy:g})),j=v==="floating"?{x:i,y:c,width:m.floating.width,height:m.floating.height}:m.reference,O=await(d.getOffsetParent==null?void 0:d.getOffsetParent(h.floating)),z=await(d.isElement==null?void 0:d.isElement(O))?await(d.getScale==null?void 0:d.getScale(O))||{x:1,y:1}:{x:1,y:1},X=Us(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:j,offsetParent:O,strategy:g}):j);return{top:(A.top-X.top+N.top)/z.y,bottom:(X.bottom-A.bottom+N.bottom)/z.y,left:(A.left-X.left+N.left)/z.x,right:(X.right-A.right+N.right)/z.x}}const J5=50,W5=async(n,l,o)=>{const{placement:i="bottom",strategy:c="absolute",middleware:d=[],platform:m}=o,h=m.detectOverflow?m:{...m,detectOverflow:F5},g=await(m.isRTL==null?void 0:m.isRTL(l));let p=await m.getElementRects({reference:n,floating:l,strategy:c}),{x,y:v}=Vv(p,i,g),w=i,T=0;const N={};for(let E=0;E<d.length;E++){const C=d[E];if(!C)continue;const{name:A,fn:j}=C,{x:O,y:z,data:X,reset:K}=await j({x,y:v,initialPlacement:i,placement:w,strategy:c,middlewareData:N,rects:p,platform:h,elements:{reference:n,floating:l}});x=O??x,v=z??v,N[A]={...N[A],...X},K&&T<J5&&(T++,typeof K=="object"&&(K.placement&&(w=K.placement),K.rects&&(p=K.rects===!0?await m.getElementRects({reference:n,floating:l,strategy:c}):K.rects),{x,y:v}=Vv(p,w,g)),E=-1)}return{x,y:v,placement:w,strategy:c,middlewareData:N}},eA=n=>({name:"arrow",options:n,async fn(l){const{x:o,y:i,placement:c,rects:d,platform:m,elements:h,middlewareData:g}=l,{element:p,padding:x=0}=da(n,l)||{};if(p==null)return{};const v=Vy(x),w={x:o,y:i},T=$f(c),N=Vf(T),E=await m.getDimensions(p),C=T==="y",A=C?"top":"left",j=C?"bottom":"right",O=C?"clientHeight":"clientWidth",z=d.reference[N]+d.reference[T]-w[T]-d.floating[N],X=w[T]-d.reference[T],K=await(m.getOffsetParent==null?void 0:m.getOffsetParent(p));let V=K?K[O]:0;(!V||!await(m.isElement==null?void 0:m.isElement(K)))&&(V=h.floating[O]||d.floating[N]);const H=z/2-X/2,le=V/2-E[N]/2-1,ie=Ka(v[A],le),me=Ka(v[j],le),fe=ie,ce=V-E[N]-me,de=V/2-E[N]/2+H,re=nf(fe,de,ce),M=!g.arrow&&zr(c)!=null&&de!==re&&d.reference[N]/2-(de<fe?ie:me)-E[N]/2<0,$=M?de<fe?de-fe:de-ce:0;return{[T]:w[T]+$,data:{[T]:re,centerOffset:de-re-$,...M&&{alignmentOffset:$}},reset:M}}}),tA=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(l){var o,i;const{placement:c,middlewareData:d,rects:m,initialPlacement:h,platform:g,elements:p}=l,{mainAxis:x=!0,crossAxis:v=!0,fallbackPlacements:w,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:E=!0,...C}=da(n,l);if((o=d.arrow)!=null&&o.alignmentOffset)return{};const A=fa(c),j=Hn(h),O=fa(h)===h,z=await(g.isRTL==null?void 0:g.isRTL(p.floating)),X=w||(O||!E?[Ls(h)]:X5(h)),K=N!=="none";!w&&K&&X.push(...Z5(h,E,N,z));const V=[h,...X],H=await g.detectOverflow(l,C),le=[];let ie=((i=d.flip)==null?void 0:i.overflows)||[];if(x&&le.push(H[A]),v){const de=G5(c,m,z);le.push(H[de[0]],H[de[1]])}if(ie=[...ie,{placement:c,overflows:le}],!le.every(de=>de<=0)){var me,fe;const de=(((me=d.flip)==null?void 0:me.index)||0)+1,re=V[de];if(re&&(!(v==="alignment"?j!==Hn(re):!1)||ie.every(F=>Hn(F.placement)===j?F.overflows[0]>0:!0)))return{data:{index:de,overflows:ie},reset:{placement:re}};let M=(fe=ie.filter($=>$.overflows[0]<=0).sort(($,F)=>$.overflows[1]-F.overflows[1])[0])==null?void 0:fe.placement;if(!M)switch(T){case"bestFit":{var ce;const $=(ce=ie.filter(F=>{if(K){const J=Hn(F.placement);return J===j||J==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(J=>J>0).reduce((J,G)=>J+G,0)]).sort((F,J)=>F[1]-J[1])[0])==null?void 0:ce[0];$&&(M=$);break}case"initialPlacement":M=h;break}if(c!==M)return{reset:{placement:M}}}return{}}}};function $v(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function Yv(n){return Y5.some(l=>n[l]>=0)}const nA=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(l){const{rects:o,platform:i}=l,{strategy:c="referenceHidden",...d}=da(n,l);switch(c){case"referenceHidden":{const m=await i.detectOverflow(l,{...d,elementContext:"reference"}),h=$v(m,o.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Yv(h)}}}case"escaped":{const m=await i.detectOverflow(l,{...d,altBoundary:!0}),h=$v(m,o.floating);return{data:{escapedOffsets:h,escaped:Yv(h)}}}default:return{}}}}},$y=new Set(["left","top"]);async function aA(n,l){const{placement:o,platform:i,elements:c}=n,d=await(i.isRTL==null?void 0:i.isRTL(c.floating)),m=fa(o),h=zr(o),g=Hn(o)==="y",p=$y.has(m)?-1:1,x=d&&g?-1:1,v=da(l,n);let{mainAxis:w,crossAxis:T,alignmentAxis:N}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return h&&typeof N=="number"&&(T=h==="end"?N*-1:N),g?{x:T*x,y:w*p}:{x:w*p,y:T*x}}const lA=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(l){var o,i;const{x:c,y:d,placement:m,middlewareData:h}=l,g=await aA(l,n);return m===((o=h.offset)==null?void 0:o.placement)&&(i=h.arrow)!=null&&i.alignmentOffset?{}:{x:c+g.x,y:d+g.y,data:{...g,placement:m}}}}},rA=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(l){const{x:o,y:i,placement:c,platform:d}=l,{mainAxis:m=!0,crossAxis:h=!1,limiter:g={fn:A=>{let{x:j,y:O}=A;return{x:j,y:O}}},...p}=da(n,l),x={x:o,y:i},v=await d.detectOverflow(l,p),w=Hn(fa(c)),T=Hf(w);let N=x[T],E=x[w];if(m){const A=T==="y"?"top":"left",j=T==="y"?"bottom":"right",O=N+v[A],z=N-v[j];N=nf(O,N,z)}if(h){const A=w==="y"?"top":"left",j=w==="y"?"bottom":"right",O=E+v[A],z=E-v[j];E=nf(O,E,z)}const C=g.fn({...l,[T]:N,[w]:E});return{...C,data:{x:C.x-o,y:C.y-i,enabled:{[T]:m,[w]:h}}}}}},oA=function(n){return n===void 0&&(n={}),{options:n,fn(l){const{x:o,y:i,placement:c,rects:d,middlewareData:m}=l,{offset:h=0,mainAxis:g=!0,crossAxis:p=!0}=da(n,l),x={x:o,y:i},v=Hn(c),w=Hf(v);let T=x[w],N=x[v];const E=da(h,l),C=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(g){const O=w==="y"?"height":"width",z=d.reference[w]-d.floating[O]+C.mainAxis,X=d.reference[w]+d.reference[O]-C.mainAxis;T<z?T=z:T>X&&(T=X)}if(p){var A,j;const O=w==="y"?"width":"height",z=$y.has(fa(c)),X=d.reference[v]-d.floating[O]+(z&&((A=m.offset)==null?void 0:A[v])||0)+(z?0:C.crossAxis),K=d.reference[v]+d.reference[O]+(z?0:((j=m.offset)==null?void 0:j[v])||0)-(z?C.crossAxis:0);N<X?N=X:N>K&&(N=K)}return{[w]:T,[v]:N}}}},iA=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(l){var o,i;const{placement:c,rects:d,platform:m,elements:h}=l,{apply:g=()=>{},...p}=da(n,l),x=await m.detectOverflow(l,p),v=fa(c),w=zr(c),T=Hn(c)==="y",{width:N,height:E}=d.floating;let C,A;v==="top"||v==="bottom"?(C=v,A=w===(await(m.isRTL==null?void 0:m.isRTL(h.floating))?"start":"end")?"left":"right"):(A=v,C=w==="end"?"top":"bottom");const j=E-x.top-x.bottom,O=N-x.left-x.right,z=Ka(E-x[C],j),X=Ka(N-x[A],O),K=!l.middlewareData.shift;let V=z,H=X;if((o=l.middlewareData.shift)!=null&&o.enabled.x&&(H=O),(i=l.middlewareData.shift)!=null&&i.enabled.y&&(V=j),K&&!w){const ie=en(x.left,0),me=en(x.right,0),fe=en(x.top,0),ce=en(x.bottom,0);T?H=N-2*(ie!==0||me!==0?ie+me:en(x.left,x.right)):V=E-2*(fe!==0||ce!==0?fe+ce:en(x.top,x.bottom))}await g({...l,availableWidth:H,availableHeight:V});const le=await m.getDimensions(h.floating);return N!==le.width||E!==le.height?{reset:{rects:!0}}:{}}}};function tc(){return typeof window<"u"}function Lr(n){return Yy(n)?(n.nodeName||"").toLowerCase():"#document"}function tn(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function qn(n){var l;return(l=(Yy(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function Yy(n){return tc()?n instanceof Node||n instanceof tn(n).Node:!1}function En(n){return tc()?n instanceof Element||n instanceof tn(n).Element:!1}function ma(n){return tc()?n instanceof HTMLElement||n instanceof tn(n).HTMLElement:!1}function qv(n){return!tc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof tn(n).ShadowRoot}function Io(n){const{overflow:l,overflowX:o,overflowY:i,display:c}=Nn(n);return/auto|scroll|overlay|hidden|clip/.test(l+i+o)&&c!=="inline"&&c!=="contents"}function sA(n){return/^(table|td|th)$/.test(Lr(n))}function nc(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const cA=/transform|translate|scale|rotate|perspective|filter/,uA=/paint|layout|strict|content/,El=n=>!!n&&n!=="none";let Vd;function Yf(n){const l=En(n)?Nn(n):n;return El(l.transform)||El(l.translate)||El(l.scale)||El(l.rotate)||El(l.perspective)||!qf()&&(El(l.backdropFilter)||El(l.filter))||cA.test(l.willChange||"")||uA.test(l.contain||"")}function dA(n){let l=Za(n);for(;ma(l)&&!_r(l);){if(Yf(l))return l;if(nc(l))return null;l=Za(l)}return null}function qf(){return Vd==null&&(Vd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Vd}function _r(n){return/^(html|body|#document)$/.test(Lr(n))}function Nn(n){return tn(n).getComputedStyle(n)}function ac(n){return En(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Za(n){if(Lr(n)==="html")return n;const l=n.assignedSlot||n.parentNode||qv(n)&&n.host||qn(n);return qv(l)?l.host:l}function qy(n){const l=Za(n);return _r(l)?n.ownerDocument?n.ownerDocument.body:n.body:ma(l)&&Io(l)?l:qy(l)}function Po(n,l,o){var i;l===void 0&&(l=[]),o===void 0&&(o=!0);const c=qy(n),d=c===((i=n.ownerDocument)==null?void 0:i.body),m=tn(c);if(d){const h=lf(m);return l.concat(m,m.visualViewport||[],Io(c)?c:[],h&&o?Po(h):[])}else return l.concat(c,Po(c,[],o))}function lf(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Gy(n){const l=Nn(n);let o=parseFloat(l.width)||0,i=parseFloat(l.height)||0;const c=ma(n),d=c?n.offsetWidth:o,m=c?n.offsetHeight:i,h=zs(o)!==d||zs(i)!==m;return h&&(o=d,i=m),{width:o,height:i,$:h}}function Gf(n){return En(n)?n:n.contextElement}function Cr(n){const l=Gf(n);if(!ma(l))return $n(1);const o=l.getBoundingClientRect(),{width:i,height:c,$:d}=Gy(l);let m=(d?zs(o.width):o.width)/i,h=(d?zs(o.height):o.height)/c;return(!m||!Number.isFinite(m))&&(m=1),(!h||!Number.isFinite(h))&&(h=1),{x:m,y:h}}const fA=$n(0);function Xy(n){const l=tn(n);return!qf()||!l.visualViewport?fA:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function mA(n,l,o){return l===void 0&&(l=!1),!o||l&&o!==tn(n)?!1:l}function Al(n,l,o,i){l===void 0&&(l=!1),o===void 0&&(o=!1);const c=n.getBoundingClientRect(),d=Gf(n);let m=$n(1);l&&(i?En(i)&&(m=Cr(i)):m=Cr(n));const h=mA(d,o,i)?Xy(d):$n(0);let g=(c.left+h.x)/m.x,p=(c.top+h.y)/m.y,x=c.width/m.x,v=c.height/m.y;if(d){const w=tn(d),T=i&&En(i)?tn(i):i;let N=w,E=lf(N);for(;E&&i&&T!==N;){const C=Cr(E),A=E.getBoundingClientRect(),j=Nn(E),O=A.left+(E.clientLeft+parseFloat(j.paddingLeft))*C.x,z=A.top+(E.clientTop+parseFloat(j.paddingTop))*C.y;g*=C.x,p*=C.y,x*=C.x,v*=C.y,g+=O,p+=z,N=tn(E),E=lf(N)}}return Us({width:x,height:v,x:g,y:p})}function lc(n,l){const o=ac(n).scrollLeft;return l?l.left+o:Al(qn(n)).left+o}function Py(n,l){const o=n.getBoundingClientRect(),i=o.left+l.scrollLeft-lc(n,o),c=o.top+l.scrollTop;return{x:i,y:c}}function hA(n){let{elements:l,rect:o,offsetParent:i,strategy:c}=n;const d=c==="fixed",m=qn(i),h=l?nc(l.floating):!1;if(i===m||h&&d)return o;let g={scrollLeft:0,scrollTop:0},p=$n(1);const x=$n(0),v=ma(i);if((v||!v&&!d)&&((Lr(i)!=="body"||Io(m))&&(g=ac(i)),v)){const T=Al(i);p=Cr(i),x.x=T.x+i.clientLeft,x.y=T.y+i.clientTop}const w=m&&!v&&!d?Py(m,g):$n(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-g.scrollLeft*p.x+x.x+w.x,y:o.y*p.y-g.scrollTop*p.y+x.y+w.y}}function pA(n){return Array.from(n.getClientRects())}function gA(n){const l=qn(n),o=ac(n),i=n.ownerDocument.body,c=en(l.scrollWidth,l.clientWidth,i.scrollWidth,i.clientWidth),d=en(l.scrollHeight,l.clientHeight,i.scrollHeight,i.clientHeight);let m=-o.scrollLeft+lc(n);const h=-o.scrollTop;return Nn(i).direction==="rtl"&&(m+=en(l.clientWidth,i.clientWidth)-c),{width:c,height:d,x:m,y:h}}const Gv=25;function vA(n,l){const o=tn(n),i=qn(n),c=o.visualViewport;let d=i.clientWidth,m=i.clientHeight,h=0,g=0;if(c){d=c.width,m=c.height;const x=qf();(!x||x&&l==="fixed")&&(h=c.offsetLeft,g=c.offsetTop)}const p=lc(i);if(p<=0){const x=i.ownerDocument,v=x.body,w=getComputedStyle(v),T=x.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,N=Math.abs(i.clientWidth-v.clientWidth-T);N<=Gv&&(d-=N)}else p<=Gv&&(d+=p);return{width:d,height:m,x:h,y:g}}function yA(n,l){const o=Al(n,!0,l==="fixed"),i=o.top+n.clientTop,c=o.left+n.clientLeft,d=ma(n)?Cr(n):$n(1),m=n.clientWidth*d.x,h=n.clientHeight*d.y,g=c*d.x,p=i*d.y;return{width:m,height:h,x:g,y:p}}function Xv(n,l,o){let i;if(l==="viewport")i=vA(n,o);else if(l==="document")i=gA(qn(n));else if(En(l))i=yA(l,o);else{const c=Xy(n);i={x:l.x-c.x,y:l.y-c.y,width:l.width,height:l.height}}return Us(i)}function Qy(n,l){const o=Za(n);return o===l||!En(o)||_r(o)?!1:Nn(o).position==="fixed"||Qy(o,l)}function bA(n,l){const o=l.get(n);if(o)return o;let i=Po(n,[],!1).filter(h=>En(h)&&Lr(h)!=="body"),c=null;const d=Nn(n).position==="fixed";let m=d?Za(n):n;for(;En(m)&&!_r(m);){const h=Nn(m),g=Yf(m);!g&&h.position==="fixed"&&(c=null),(d?!g&&!c:!g&&h.position==="static"&&!!c&&(c.position==="absolute"||c.position==="fixed")||Io(m)&&!g&&Qy(n,m))?i=i.filter(x=>x!==m):c=h,m=Za(m)}return l.set(n,i),i}function xA(n){let{element:l,boundary:o,rootBoundary:i,strategy:c}=n;const m=[...o==="clippingAncestors"?nc(l)?[]:bA(l,this._c):[].concat(o),i],h=Xv(l,m[0],c);let g=h.top,p=h.right,x=h.bottom,v=h.left;for(let w=1;w<m.length;w++){const T=Xv(l,m[w],c);g=en(T.top,g),p=Ka(T.right,p),x=Ka(T.bottom,x),v=en(T.left,v)}return{width:p-v,height:x-g,x:v,y:g}}function SA(n){const{width:l,height:o}=Gy(n);return{width:l,height:o}}function wA(n,l,o){const i=ma(l),c=qn(l),d=o==="fixed",m=Al(n,!0,d,l);let h={scrollLeft:0,scrollTop:0};const g=$n(0);function p(){g.x=lc(c)}if(i||!i&&!d)if((Lr(l)!=="body"||Io(c))&&(h=ac(l)),i){const T=Al(l,!0,d,l);g.x=T.x+l.clientLeft,g.y=T.y+l.clientTop}else c&&p();d&&!i&&c&&p();const x=c&&!i&&!d?Py(c,h):$n(0),v=m.left+h.scrollLeft-g.x-x.x,w=m.top+h.scrollTop-g.y-x.y;return{x:v,y:w,width:m.width,height:m.height}}function $d(n){return Nn(n).position==="static"}function Pv(n,l){if(!ma(n)||Nn(n).position==="fixed")return null;if(l)return l(n);let o=n.offsetParent;return qn(n)===o&&(o=o.ownerDocument.body),o}function Ky(n,l){const o=tn(n);if(nc(n))return o;if(!ma(n)){let c=Za(n);for(;c&&!_r(c);){if(En(c)&&!$d(c))return c;c=Za(c)}return o}let i=Pv(n,l);for(;i&&sA(i)&&$d(i);)i=Pv(i,l);return i&&_r(i)&&$d(i)&&!Yf(i)?o:i||dA(n)||o}const EA=async function(n){const l=this.getOffsetParent||Ky,o=this.getDimensions,i=await o(n.floating);return{reference:wA(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function NA(n){return Nn(n).direction==="rtl"}const TA={convertOffsetParentRelativeRectToViewportRelativeRect:hA,getDocumentElement:qn,getClippingRect:xA,getOffsetParent:Ky,getElementRects:EA,getClientRects:pA,getDimensions:SA,getScale:Cr,isElement:En,isRTL:NA};function Zy(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function CA(n,l){let o=null,i;const c=qn(n);function d(){var h;clearTimeout(i),(h=o)==null||h.disconnect(),o=null}function m(h,g){h===void 0&&(h=!1),g===void 0&&(g=1),d();const p=n.getBoundingClientRect(),{left:x,top:v,width:w,height:T}=p;if(h||l(),!w||!T)return;const N=ws(v),E=ws(c.clientWidth-(x+w)),C=ws(c.clientHeight-(v+T)),A=ws(x),O={rootMargin:-N+"px "+-E+"px "+-C+"px "+-A+"px",threshold:en(0,Ka(1,g))||1};let z=!0;function X(K){const V=K[0].intersectionRatio;if(V!==g){if(!z)return m();V?m(!1,V):i=setTimeout(()=>{m(!1,1e-7)},1e3)}V===1&&!Zy(p,n.getBoundingClientRect())&&m(),z=!1}try{o=new IntersectionObserver(X,{...O,root:c.ownerDocument})}catch{o=new IntersectionObserver(X,O)}o.observe(n)}return m(!0),d}function AA(n,l,o,i){i===void 0&&(i={});const{ancestorScroll:c=!0,ancestorResize:d=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:g=!1}=i,p=Gf(n),x=c||d?[...p?Po(p):[],...l?Po(l):[]]:[];x.forEach(A=>{c&&A.addEventListener("scroll",o,{passive:!0}),d&&A.addEventListener("resize",o)});const v=p&&h?CA(p,o):null;let w=-1,T=null;m&&(T=new ResizeObserver(A=>{let[j]=A;j&&j.target===p&&T&&l&&(T.unobserve(l),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var O;(O=T)==null||O.observe(l)})),o()}),p&&!g&&T.observe(p),l&&T.observe(l));let N,E=g?Al(n):null;g&&C();function C(){const A=Al(n);E&&!Zy(E,A)&&o(),E=A,N=requestAnimationFrame(C)}return o(),()=>{var A;x.forEach(j=>{c&&j.removeEventListener("scroll",o),d&&j.removeEventListener("resize",o)}),v==null||v(),(A=T)==null||A.disconnect(),T=null,g&&cancelAnimationFrame(N)}}const RA=lA,_A=rA,jA=tA,MA=iA,OA=nA,Qv=eA,DA=oA,kA=(n,l,o)=>{const i=new Map,c={platform:TA,...o},d={...c.platform,_c:i};return W5(n,l,{...c,platform:d})};var zA=typeof document<"u",LA=function(){},As=zA?y.useLayoutEffect:LA;function Bs(n,l){if(n===l)return!0;if(typeof n!=typeof l)return!1;if(typeof n=="function"&&n.toString()===l.toString())return!0;let o,i,c;if(n&&l&&typeof n=="object"){if(Array.isArray(n)){if(o=n.length,o!==l.length)return!1;for(i=o;i--!==0;)if(!Bs(n[i],l[i]))return!1;return!0}if(c=Object.keys(n),o=c.length,o!==Object.keys(l).length)return!1;for(i=o;i--!==0;)if(!{}.hasOwnProperty.call(l,c[i]))return!1;for(i=o;i--!==0;){const d=c[i];if(!(d==="_owner"&&n.$$typeof)&&!Bs(n[d],l[d]))return!1}return!0}return n!==n&&l!==l}function Iy(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Kv(n,l){const o=Iy(n);return Math.round(l*o)/o}function Yd(n){const l=y.useRef(n);return As(()=>{l.current=n}),l}function UA(n){n===void 0&&(n={});const{placement:l="bottom",strategy:o="absolute",middleware:i=[],platform:c,elements:{reference:d,floating:m}={},transform:h=!0,whileElementsMounted:g,open:p}=n,[x,v]=y.useState({x:0,y:0,strategy:o,placement:l,middlewareData:{},isPositioned:!1}),[w,T]=y.useState(i);Bs(w,i)||T(i);const[N,E]=y.useState(null),[C,A]=y.useState(null),j=y.useCallback(F=>{F!==K.current&&(K.current=F,E(F))},[]),O=y.useCallback(F=>{F!==V.current&&(V.current=F,A(F))},[]),z=d||N,X=m||C,K=y.useRef(null),V=y.useRef(null),H=y.useRef(x),le=g!=null,ie=Yd(g),me=Yd(c),fe=Yd(p),ce=y.useCallback(()=>{if(!K.current||!V.current)return;const F={placement:l,strategy:o,middleware:w};me.current&&(F.platform=me.current),kA(K.current,V.current,F).then(J=>{const G={...J,isPositioned:fe.current!==!1};de.current&&!Bs(H.current,G)&&(H.current=G,Zo.flushSync(()=>{v(G)}))})},[w,l,o,me,fe]);As(()=>{p===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,v(F=>({...F,isPositioned:!1})))},[p]);const de=y.useRef(!1);As(()=>(de.current=!0,()=>{de.current=!1}),[]),As(()=>{if(z&&(K.current=z),X&&(V.current=X),z&&X){if(ie.current)return ie.current(z,X,ce);ce()}},[z,X,ce,ie,le]);const re=y.useMemo(()=>({reference:K,floating:V,setReference:j,setFloating:O}),[j,O]),M=y.useMemo(()=>({reference:z,floating:X}),[z,X]),$=y.useMemo(()=>{const F={position:o,left:0,top:0};if(!M.floating)return F;const J=Kv(M.floating,x.x),G=Kv(M.floating,x.y);return h?{...F,transform:"translate("+J+"px, "+G+"px)",...Iy(M.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:J,top:G}},[o,h,M.floating,x.x,x.y]);return y.useMemo(()=>({...x,update:ce,refs:re,elements:M,floatingStyles:$}),[x,ce,re,M,$])}const BA=n=>{function l(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:n,fn(o){const{element:i,padding:c}=typeof n=="function"?n(o):n;return i&&l(i)?i.current!=null?Qv({element:i.current,padding:c}).fn(o):{}:i?Qv({element:i,padding:c}).fn(o):{}}}},HA=(n,l)=>{const o=RA(n);return{name:o.name,fn:o.fn,options:[n,l]}},VA=(n,l)=>{const o=_A(n);return{name:o.name,fn:o.fn,options:[n,l]}},$A=(n,l)=>({fn:DA(n).fn,options:[n,l]}),YA=(n,l)=>{const o=jA(n);return{name:o.name,fn:o.fn,options:[n,l]}},qA=(n,l)=>{const o=MA(n);return{name:o.name,fn:o.fn,options:[n,l]}},GA=(n,l)=>{const o=OA(n);return{name:o.name,fn:o.fn,options:[n,l]}},XA=(n,l)=>{const o=BA(n);return{name:o.name,fn:o.fn,options:[n,l]}};var PA="Arrow",Fy=y.forwardRef((n,l)=>{const{children:o,width:i=10,height:c=5,...d}=n;return f.jsx(Le.svg,{...d,ref:l,width:i,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?o:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Fy.displayName=PA;var QA=Fy;function Jy(n){const[l,o]=y.useState(void 0);return _t(()=>{if(n){o({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const d=c[0];let m,h;if("borderBoxSize"in d){const g=d.borderBoxSize,p=Array.isArray(g)?g[0]:g;m=p.inlineSize,h=p.blockSize}else m=n.offsetWidth,h=n.offsetHeight;o({width:m,height:h})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else o(void 0)},[n]),l}var Xf="Popper",[Wy,eb]=Fa(Xf),[KA,tb]=Wy(Xf),nb=n=>{const{__scopePopper:l,children:o}=n,[i,c]=y.useState(null);return f.jsx(KA,{scope:l,anchor:i,onAnchorChange:c,children:o})};nb.displayName=Xf;var ab="PopperAnchor",lb=y.forwardRef((n,l)=>{const{__scopePopper:o,virtualRef:i,...c}=n,d=tb(ab,o),m=y.useRef(null),h=Ie(l,m),g=y.useRef(null);return y.useEffect(()=>{const p=g.current;g.current=(i==null?void 0:i.current)||m.current,p!==g.current&&d.onAnchorChange(g.current)}),i?null:f.jsx(Le.div,{...c,ref:h})});lb.displayName=ab;var Pf="PopperContent",[ZA,IA]=Wy(Pf),rb=y.forwardRef((n,l)=>{var ne,ue,ee,xe,ye,Se;const{__scopePopper:o,side:i="bottom",sideOffset:c=0,align:d="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:p=[],collisionPadding:x=0,sticky:v="partial",hideWhenDetached:w=!1,updatePositionStrategy:T="optimized",onPlaced:N,...E}=n,C=tb(Pf,o),[A,j]=y.useState(null),O=Ie(l,$e=>j($e)),[z,X]=y.useState(null),K=Jy(z),V=(K==null?void 0:K.width)??0,H=(K==null?void 0:K.height)??0,le=i+(d!=="center"?"-"+d:""),ie=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},me=Array.isArray(p)?p:[p],fe=me.length>0,ce={padding:ie,boundary:me.filter(JA),altBoundary:fe},{refs:de,floatingStyles:re,placement:M,isPositioned:$,middlewareData:F}=UA({strategy:"fixed",placement:le,whileElementsMounted:(...$e)=>AA(...$e,{animationFrame:T==="always"}),elements:{reference:C.anchor},middleware:[HA({mainAxis:c+H,alignmentAxis:m}),g&&VA({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?$A():void 0,...ce}),g&&YA({...ce}),qA({...ce,apply:({elements:$e,rects:Ue,availableWidth:Ye,availableHeight:gt})=>{const{width:ot,height:Pt}=Ue.reference,vt=$e.floating.style;vt.setProperty("--radix-popper-available-width",`${Ye}px`),vt.setProperty("--radix-popper-available-height",`${gt}px`),vt.setProperty("--radix-popper-anchor-width",`${ot}px`),vt.setProperty("--radix-popper-anchor-height",`${Pt}px`)}}),z&&XA({element:z,padding:h}),WA({arrowWidth:V,arrowHeight:H}),w&&GA({strategy:"referenceHidden",...ce})]}),[J,G]=sb(M),R=Qa(N);_t(()=>{$&&(R==null||R())},[$,R]);const Y=(ne=F.arrow)==null?void 0:ne.x,Q=(ue=F.arrow)==null?void 0:ue.y,W=((ee=F.arrow)==null?void 0:ee.centerOffset)!==0,[te,oe]=y.useState();return _t(()=>{A&&oe(window.getComputedStyle(A).zIndex)},[A]),f.jsx("div",{ref:de.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:$?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(xe=F.transformOrigin)==null?void 0:xe.x,(ye=F.transformOrigin)==null?void 0:ye.y].join(" "),...((Se=F.hide)==null?void 0:Se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:f.jsx(ZA,{scope:o,placedSide:J,onArrowChange:X,arrowX:Y,arrowY:Q,shouldHideArrow:W,children:f.jsx(Le.div,{"data-side":J,"data-align":G,...E,ref:O,style:{...E.style,animation:$?void 0:"none"}})})})});rb.displayName=Pf;var ob="PopperArrow",FA={top:"bottom",right:"left",bottom:"top",left:"right"},ib=y.forwardRef(function(l,o){const{__scopePopper:i,...c}=l,d=IA(ob,i),m=FA[d.placedSide];return f.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[m]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:f.jsx(QA,{...c,ref:o,style:{...c.style,display:"block"}})})});ib.displayName=ob;function JA(n){return n!==null}var WA=n=>({name:"transformOrigin",options:n,fn(l){var C,A,j;const{placement:o,rects:i,middlewareData:c}=l,m=((C=c.arrow)==null?void 0:C.centerOffset)!==0,h=m?0:n.arrowWidth,g=m?0:n.arrowHeight,[p,x]=sb(o),v={start:"0%",center:"50%",end:"100%"}[x],w=(((A=c.arrow)==null?void 0:A.x)??0)+h/2,T=(((j=c.arrow)==null?void 0:j.y)??0)+g/2;let N="",E="";return p==="bottom"?(N=m?v:`${w}px`,E=`${-g}px`):p==="top"?(N=m?v:`${w}px`,E=`${i.floating.height+g}px`):p==="right"?(N=`${-g}px`,E=m?v:`${T}px`):p==="left"&&(N=`${i.floating.width+g}px`,E=m?v:`${T}px`),{data:{x:N,y:E}}}});function sb(n){const[l,o="center"]=n.split("-");return[l,o]}var eR=nb,tR=lb,nR=rb,aR=ib;function cb(n){const l=y.useRef({value:n,previous:n});return y.useMemo(()=>(l.current.value!==n&&(l.current.previous=l.current.value,l.current.value=n),l.current.previous),[n])}var ub=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),lR="VisuallyHidden",rR=y.forwardRef((n,l)=>f.jsx(Le.span,{...n,ref:l,style:{...ub,...n.style}}));rR.displayName=lR;var oR=[" ","Enter","ArrowUp","ArrowDown"],iR=[" ","Enter"],Rl="Select",[rc,oc,sR]=Hy(Rl),[Ur]=Fa(Rl,[sR,eb]),ic=eb(),[cR,Ja]=Ur(Rl),[uR,dR]=Ur(Rl),db=n=>{const{__scopeSelect:l,children:o,open:i,defaultOpen:c,onOpenChange:d,value:m,defaultValue:h,onValueChange:g,dir:p,name:x,autoComplete:v,disabled:w,required:T,form:N}=n,E=ic(l),[C,A]=y.useState(null),[j,O]=y.useState(null),[z,X]=y.useState(!1),K=Bf(p),[V,H]=Rr({prop:i,defaultProp:c??!1,onChange:d,caller:Rl}),[le,ie]=Rr({prop:m,defaultProp:h,onChange:g,caller:Rl}),me=y.useRef(null),fe=C?N||!!C.closest("form"):!0,[ce,de]=y.useState(new Set),re=Array.from(ce).map(M=>M.props.value).join(";");return f.jsx(eR,{...E,children:f.jsxs(cR,{required:T,scope:l,trigger:C,onTriggerChange:A,valueNode:j,onValueNodeChange:O,valueNodeHasChildren:z,onValueNodeHasChildrenChange:X,contentId:Xa(),value:le,onValueChange:ie,open:V,onOpenChange:H,dir:K,triggerPointerDownPosRef:me,disabled:w,children:[f.jsx(rc.Provider,{scope:l,children:f.jsx(uR,{scope:n.__scopeSelect,onNativeOptionAdd:y.useCallback(M=>{de($=>new Set($).add(M))},[]),onNativeOptionRemove:y.useCallback(M=>{de($=>{const F=new Set($);return F.delete(M),F})},[]),children:o})}),fe?f.jsxs(zb,{"aria-hidden":!0,required:T,tabIndex:-1,name:x,autoComplete:v,value:le,onChange:M=>ie(M.target.value),disabled:w,form:N,children:[le===void 0?f.jsx("option",{value:""}):null,Array.from(ce)]},re):null]})})};db.displayName=Rl;var fb="SelectTrigger",mb=y.forwardRef((n,l)=>{const{__scopeSelect:o,disabled:i=!1,...c}=n,d=ic(o),m=Ja(fb,o),h=m.disabled||i,g=Ie(l,m.onTriggerChange),p=oc(o),x=y.useRef("touch"),[v,w,T]=Ub(E=>{const C=p().filter(O=>!O.disabled),A=C.find(O=>O.value===m.value),j=Bb(C,E,A);j!==void 0&&m.onValueChange(j.value)}),N=E=>{h||(m.onOpenChange(!0),T()),E&&(m.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)})};return f.jsx(tR,{asChild:!0,...d,children:f.jsx(Le.button,{type:"button",role:"combobox","aria-controls":m.contentId,"aria-expanded":m.open,"aria-required":m.required,"aria-autocomplete":"none",dir:m.dir,"data-state":m.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":Lb(m.value)?"":void 0,...c,ref:g,onClick:Me(c.onClick,E=>{E.currentTarget.focus(),x.current!=="mouse"&&N(E)}),onPointerDown:Me(c.onPointerDown,E=>{x.current=E.pointerType;const C=E.target;C.hasPointerCapture(E.pointerId)&&C.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&E.pointerType==="mouse"&&(N(E),E.preventDefault())}),onKeyDown:Me(c.onKeyDown,E=>{const C=v.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&w(E.key),!(C&&E.key===" ")&&oR.includes(E.key)&&(N(),E.preventDefault())})})})});mb.displayName=fb;var hb="SelectValue",pb=y.forwardRef((n,l)=>{const{__scopeSelect:o,className:i,style:c,children:d,placeholder:m="",...h}=n,g=Ja(hb,o),{onValueNodeHasChildrenChange:p}=g,x=d!==void 0,v=Ie(l,g.onValueNodeChange);return _t(()=>{p(x)},[p,x]),f.jsx(Le.span,{...h,ref:v,style:{pointerEvents:"none"},children:Lb(g.value)?f.jsx(f.Fragment,{children:m}):d})});pb.displayName=hb;var fR="SelectIcon",gb=y.forwardRef((n,l)=>{const{__scopeSelect:o,children:i,...c}=n;return f.jsx(Le.span,{"aria-hidden":!0,...c,ref:l,children:i||"▼"})});gb.displayName=fR;var mR="SelectPortal",vb=n=>f.jsx(_f,{asChild:!0,...n});vb.displayName=mR;var _l="SelectContent",yb=y.forwardRef((n,l)=>{const o=Ja(_l,n.__scopeSelect),[i,c]=y.useState();if(_t(()=>{c(new DocumentFragment)},[]),!o.open){const d=i;return d?Zo.createPortal(f.jsx(bb,{scope:n.__scopeSelect,children:f.jsx(rc.Slot,{scope:n.__scopeSelect,children:f.jsx("div",{children:n.children})})}),d):null}return f.jsx(xb,{...n,ref:l})});yb.displayName=_l;var xn=10,[bb,Wa]=Ur(_l),hR="SelectContentImpl",pR=Xo("SelectContent.RemoveScroll"),xb=y.forwardRef((n,l)=>{const{__scopeSelect:o,position:i="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:d,onPointerDownOutside:m,side:h,sideOffset:g,align:p,alignOffset:x,arrowPadding:v,collisionBoundary:w,collisionPadding:T,sticky:N,hideWhenDetached:E,avoidCollisions:C,...A}=n,j=Ja(_l,o),[O,z]=y.useState(null),[X,K]=y.useState(null),V=Ie(l,ne=>z(ne)),[H,le]=y.useState(null),[ie,me]=y.useState(null),fe=oc(o),[ce,de]=y.useState(!1),re=y.useRef(!1);y.useEffect(()=>{if(O)return my(O)},[O]),ly();const M=y.useCallback(ne=>{const[ue,...ee]=fe().map(Se=>Se.ref.current),[xe]=ee.slice(-1),ye=document.activeElement;for(const Se of ne)if(Se===ye||(Se==null||Se.scrollIntoView({block:"nearest"}),Se===ue&&X&&(X.scrollTop=0),Se===xe&&X&&(X.scrollTop=X.scrollHeight),Se==null||Se.focus(),document.activeElement!==ye))return},[fe,X]),$=y.useCallback(()=>M([H,O]),[M,H,O]);y.useEffect(()=>{ce&&$()},[ce,$]);const{onOpenChange:F,triggerPointerDownPosRef:J}=j;y.useEffect(()=>{if(O){let ne={x:0,y:0};const ue=xe=>{var ye,Se;ne={x:Math.abs(Math.round(xe.pageX)-(((ye=J.current)==null?void 0:ye.x)??0)),y:Math.abs(Math.round(xe.pageY)-(((Se=J.current)==null?void 0:Se.y)??0))}},ee=xe=>{ne.x<=10&&ne.y<=10?xe.preventDefault():O.contains(xe.target)||F(!1),document.removeEventListener("pointermove",ue),J.current=null};return J.current!==null&&(document.addEventListener("pointermove",ue),document.addEventListener("pointerup",ee,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ue),document.removeEventListener("pointerup",ee,{capture:!0})}}},[O,F,J]),y.useEffect(()=>{const ne=()=>F(!1);return window.addEventListener("blur",ne),window.addEventListener("resize",ne),()=>{window.removeEventListener("blur",ne),window.removeEventListener("resize",ne)}},[F]);const[G,R]=Ub(ne=>{const ue=fe().filter(ye=>!ye.disabled),ee=ue.find(ye=>ye.ref.current===document.activeElement),xe=Bb(ue,ne,ee);xe&&setTimeout(()=>xe.ref.current.focus())}),Y=y.useCallback((ne,ue,ee)=>{const xe=!re.current&&!ee;(j.value!==void 0&&j.value===ue||xe)&&(le(ne),xe&&(re.current=!0))},[j.value]),Q=y.useCallback(()=>O==null?void 0:O.focus(),[O]),W=y.useCallback((ne,ue,ee)=>{const xe=!re.current&&!ee;(j.value!==void 0&&j.value===ue||xe)&&me(ne)},[j.value]),te=i==="popper"?rf:Sb,oe=te===rf?{side:h,sideOffset:g,align:p,alignOffset:x,arrowPadding:v,collisionBoundary:w,collisionPadding:T,sticky:N,hideWhenDetached:E,avoidCollisions:C}:{};return f.jsx(bb,{scope:o,content:O,viewport:X,onViewportChange:K,itemRefCallback:Y,selectedItem:H,onItemLeave:Q,itemTextRefCallback:W,focusSelectedItem:$,selectedItemText:ie,position:i,isPositioned:ce,searchRef:G,children:f.jsx(jf,{as:pR,allowPinchZoom:!0,children:f.jsx(Rf,{asChild:!0,trapped:j.open,onMountAutoFocus:ne=>{ne.preventDefault()},onUnmountAutoFocus:Me(c,ne=>{var ue;(ue=j.trigger)==null||ue.focus({preventScroll:!0}),ne.preventDefault()}),children:f.jsx(Af,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:ne=>ne.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:f.jsx(te,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:ne=>ne.preventDefault(),...A,...oe,onPlaced:()=>de(!0),ref:V,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:Me(A.onKeyDown,ne=>{const ue=ne.ctrlKey||ne.altKey||ne.metaKey;if(ne.key==="Tab"&&ne.preventDefault(),!ue&&ne.key.length===1&&R(ne.key),["ArrowUp","ArrowDown","Home","End"].includes(ne.key)){let xe=fe().filter(ye=>!ye.disabled).map(ye=>ye.ref.current);if(["ArrowUp","End"].includes(ne.key)&&(xe=xe.slice().reverse()),["ArrowUp","ArrowDown"].includes(ne.key)){const ye=ne.target,Se=xe.indexOf(ye);xe=xe.slice(Se+1)}setTimeout(()=>M(xe)),ne.preventDefault()}})})})})})})});xb.displayName=hR;var gR="SelectItemAlignedPosition",Sb=y.forwardRef((n,l)=>{const{__scopeSelect:o,onPlaced:i,...c}=n,d=Ja(_l,o),m=Wa(_l,o),[h,g]=y.useState(null),[p,x]=y.useState(null),v=Ie(l,V=>x(V)),w=oc(o),T=y.useRef(!1),N=y.useRef(!0),{viewport:E,selectedItem:C,selectedItemText:A,focusSelectedItem:j}=m,O=y.useCallback(()=>{if(d.trigger&&d.valueNode&&h&&p&&E&&C&&A){const V=d.trigger.getBoundingClientRect(),H=p.getBoundingClientRect(),le=d.valueNode.getBoundingClientRect(),ie=A.getBoundingClientRect();if(d.dir!=="rtl"){const ye=ie.left-H.left,Se=le.left-ye,$e=V.left-Se,Ue=V.width+$e,Ye=Math.max(Ue,H.width),gt=window.innerWidth-xn,ot=Uv(Se,[xn,Math.max(xn,gt-Ye)]);h.style.minWidth=Ue+"px",h.style.left=ot+"px"}else{const ye=H.right-ie.right,Se=window.innerWidth-le.right-ye,$e=window.innerWidth-V.right-Se,Ue=V.width+$e,Ye=Math.max(Ue,H.width),gt=window.innerWidth-xn,ot=Uv(Se,[xn,Math.max(xn,gt-Ye)]);h.style.minWidth=Ue+"px",h.style.right=ot+"px"}const me=w(),fe=window.innerHeight-xn*2,ce=E.scrollHeight,de=window.getComputedStyle(p),re=parseInt(de.borderTopWidth,10),M=parseInt(de.paddingTop,10),$=parseInt(de.borderBottomWidth,10),F=parseInt(de.paddingBottom,10),J=re+M+ce+F+$,G=Math.min(C.offsetHeight*5,J),R=window.getComputedStyle(E),Y=parseInt(R.paddingTop,10),Q=parseInt(R.paddingBottom,10),W=V.top+V.height/2-xn,te=fe-W,oe=C.offsetHeight/2,ne=C.offsetTop+oe,ue=re+M+ne,ee=J-ue;if(ue<=W){const ye=me.length>0&&C===me[me.length-1].ref.current;h.style.bottom="0px";const Se=p.clientHeight-E.offsetTop-E.offsetHeight,$e=Math.max(te,oe+(ye?Q:0)+Se+$),Ue=ue+$e;h.style.height=Ue+"px"}else{const ye=me.length>0&&C===me[0].ref.current;h.style.top="0px";const $e=Math.max(W,re+E.offsetTop+(ye?Y:0)+oe)+ee;h.style.height=$e+"px",E.scrollTop=ue-W+E.offsetTop}h.style.margin=`${xn}px 0`,h.style.minHeight=G+"px",h.style.maxHeight=fe+"px",i==null||i(),requestAnimationFrame(()=>T.current=!0)}},[w,d.trigger,d.valueNode,h,p,E,C,A,d.dir,i]);_t(()=>O(),[O]);const[z,X]=y.useState();_t(()=>{p&&X(window.getComputedStyle(p).zIndex)},[p]);const K=y.useCallback(V=>{V&&N.current===!0&&(O(),j==null||j(),N.current=!1)},[O,j]);return f.jsx(yR,{scope:o,contentWrapper:h,shouldExpandOnScrollRef:T,onScrollButtonChange:K,children:f.jsx("div",{ref:g,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:z},children:f.jsx(Le.div,{...c,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}})})})});Sb.displayName=gR;var vR="SelectPopperPosition",rf=y.forwardRef((n,l)=>{const{__scopeSelect:o,align:i="start",collisionPadding:c=xn,...d}=n,m=ic(o);return f.jsx(nR,{...m,...d,ref:l,align:i,collisionPadding:c,style:{boxSizing:"border-box",...d.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});rf.displayName=vR;var[yR,Qf]=Ur(_l,{}),of="SelectViewport",wb=y.forwardRef((n,l)=>{const{__scopeSelect:o,nonce:i,...c}=n,d=Wa(of,o),m=Qf(of,o),h=Ie(l,d.onViewportChange),g=y.useRef(0);return f.jsxs(f.Fragment,{children:[f.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),f.jsx(rc.Slot,{scope:o,children:f.jsx(Le.div,{"data-radix-select-viewport":"",role:"presentation",...c,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...c.style},onScroll:Me(c.onScroll,p=>{const x=p.currentTarget,{contentWrapper:v,shouldExpandOnScrollRef:w}=m;if(w!=null&&w.current&&v){const T=Math.abs(g.current-x.scrollTop);if(T>0){const N=window.innerHeight-xn*2,E=parseFloat(v.style.minHeight),C=parseFloat(v.style.height),A=Math.max(E,C);if(A<N){const j=A+T,O=Math.min(N,j),z=j-O;v.style.height=O+"px",v.style.bottom==="0px"&&(x.scrollTop=z>0?z:0,v.style.justifyContent="flex-end")}}}g.current=x.scrollTop})})})]})});wb.displayName=of;var Eb="SelectGroup",[bR,xR]=Ur(Eb),SR=y.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,c=Xa();return f.jsx(bR,{scope:o,id:c,children:f.jsx(Le.div,{role:"group","aria-labelledby":c,...i,ref:l})})});SR.displayName=Eb;var Nb="SelectLabel",Tb=y.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,c=xR(Nb,o);return f.jsx(Le.div,{id:c.id,...i,ref:l})});Tb.displayName=Nb;var Hs="SelectItem",[wR,Cb]=Ur(Hs),Ab=y.forwardRef((n,l)=>{const{__scopeSelect:o,value:i,disabled:c=!1,textValue:d,...m}=n,h=Ja(Hs,o),g=Wa(Hs,o),p=h.value===i,[x,v]=y.useState(d??""),[w,T]=y.useState(!1),N=Ie(l,j=>{var O;return(O=g.itemRefCallback)==null?void 0:O.call(g,j,i,c)}),E=Xa(),C=y.useRef("touch"),A=()=>{c||(h.onValueChange(i),h.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return f.jsx(wR,{scope:o,value:i,disabled:c,textId:E,isSelected:p,onItemTextChange:y.useCallback(j=>{v(O=>O||((j==null?void 0:j.textContent)??"").trim())},[]),children:f.jsx(rc.ItemSlot,{scope:o,value:i,disabled:c,textValue:x,children:f.jsx(Le.div,{role:"option","aria-labelledby":E,"data-highlighted":w?"":void 0,"aria-selected":p&&w,"data-state":p?"checked":"unchecked","aria-disabled":c||void 0,"data-disabled":c?"":void 0,tabIndex:c?void 0:-1,...m,ref:N,onFocus:Me(m.onFocus,()=>T(!0)),onBlur:Me(m.onBlur,()=>T(!1)),onClick:Me(m.onClick,()=>{C.current!=="mouse"&&A()}),onPointerUp:Me(m.onPointerUp,()=>{C.current==="mouse"&&A()}),onPointerDown:Me(m.onPointerDown,j=>{C.current=j.pointerType}),onPointerMove:Me(m.onPointerMove,j=>{var O;C.current=j.pointerType,c?(O=g.onItemLeave)==null||O.call(g):C.current==="mouse"&&j.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Me(m.onPointerLeave,j=>{var O;j.currentTarget===document.activeElement&&((O=g.onItemLeave)==null||O.call(g))}),onKeyDown:Me(m.onKeyDown,j=>{var z;((z=g.searchRef)==null?void 0:z.current)!==""&&j.key===" "||(iR.includes(j.key)&&A(),j.key===" "&&j.preventDefault())})})})})});Ab.displayName=Hs;var Vo="SelectItemText",Rb=y.forwardRef((n,l)=>{const{__scopeSelect:o,className:i,style:c,...d}=n,m=Ja(Vo,o),h=Wa(Vo,o),g=Cb(Vo,o),p=dR(Vo,o),[x,v]=y.useState(null),w=Ie(l,A=>v(A),g.onItemTextChange,A=>{var j;return(j=h.itemTextRefCallback)==null?void 0:j.call(h,A,g.value,g.disabled)}),T=x==null?void 0:x.textContent,N=y.useMemo(()=>f.jsx("option",{value:g.value,disabled:g.disabled,children:T},g.value),[g.disabled,g.value,T]),{onNativeOptionAdd:E,onNativeOptionRemove:C}=p;return _t(()=>(E(N),()=>C(N)),[E,C,N]),f.jsxs(f.Fragment,{children:[f.jsx(Le.span,{id:g.textId,...d,ref:w}),g.isSelected&&m.valueNode&&!m.valueNodeHasChildren?Zo.createPortal(d.children,m.valueNode):null]})});Rb.displayName=Vo;var _b="SelectItemIndicator",jb=y.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n;return Cb(_b,o).isSelected?f.jsx(Le.span,{"aria-hidden":!0,...i,ref:l}):null});jb.displayName=_b;var sf="SelectScrollUpButton",Mb=y.forwardRef((n,l)=>{const o=Wa(sf,n.__scopeSelect),i=Qf(sf,n.__scopeSelect),[c,d]=y.useState(!1),m=Ie(l,i.onScrollButtonChange);return _t(()=>{if(o.viewport&&o.isPositioned){let h=function(){const p=g.scrollTop>0;d(p)};const g=o.viewport;return h(),g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?f.jsx(Db,{...n,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:g}=o;h&&g&&(h.scrollTop=h.scrollTop-g.offsetHeight)}}):null});Mb.displayName=sf;var cf="SelectScrollDownButton",Ob=y.forwardRef((n,l)=>{const o=Wa(cf,n.__scopeSelect),i=Qf(cf,n.__scopeSelect),[c,d]=y.useState(!1),m=Ie(l,i.onScrollButtonChange);return _t(()=>{if(o.viewport&&o.isPositioned){let h=function(){const p=g.scrollHeight-g.clientHeight,x=Math.ceil(g.scrollTop)<p;d(x)};const g=o.viewport;return h(),g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?f.jsx(Db,{...n,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:g}=o;h&&g&&(h.scrollTop=h.scrollTop+g.offsetHeight)}}):null});Ob.displayName=cf;var Db=y.forwardRef((n,l)=>{const{__scopeSelect:o,onAutoScroll:i,...c}=n,d=Wa("SelectScrollButton",o),m=y.useRef(null),h=oc(o),g=y.useCallback(()=>{m.current!==null&&(window.clearInterval(m.current),m.current=null)},[]);return y.useEffect(()=>()=>g(),[g]),_t(()=>{var x;const p=h().find(v=>v.ref.current===document.activeElement);(x=p==null?void 0:p.ref.current)==null||x.scrollIntoView({block:"nearest"})},[h]),f.jsx(Le.div,{"aria-hidden":!0,...c,ref:l,style:{flexShrink:0,...c.style},onPointerDown:Me(c.onPointerDown,()=>{m.current===null&&(m.current=window.setInterval(i,50))}),onPointerMove:Me(c.onPointerMove,()=>{var p;(p=d.onItemLeave)==null||p.call(d),m.current===null&&(m.current=window.setInterval(i,50))}),onPointerLeave:Me(c.onPointerLeave,()=>{g()})})}),ER="SelectSeparator",kb=y.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n;return f.jsx(Le.div,{"aria-hidden":!0,...i,ref:l})});kb.displayName=ER;var uf="SelectArrow",NR=y.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,c=ic(o),d=Ja(uf,o),m=Wa(uf,o);return d.open&&m.position==="popper"?f.jsx(aR,{...c,...i,ref:l}):null});NR.displayName=uf;var TR="SelectBubbleInput",zb=y.forwardRef(({__scopeSelect:n,value:l,...o},i)=>{const c=y.useRef(null),d=Ie(i,c),m=cb(l);return y.useEffect(()=>{const h=c.current;if(!h)return;const g=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(g,"value").set;if(m!==l&&x){const v=new Event("change",{bubbles:!0});x.call(h,l),h.dispatchEvent(v)}},[m,l]),f.jsx(Le.select,{...o,style:{...ub,...o.style},ref:d,defaultValue:l})});zb.displayName=TR;function Lb(n){return n===""||n===void 0}function Ub(n){const l=Qa(n),o=y.useRef(""),i=y.useRef(0),c=y.useCallback(m=>{const h=o.current+m;l(h),(function g(p){o.current=p,window.clearTimeout(i.current),p!==""&&(i.current=window.setTimeout(()=>g(""),1e3))})(h)},[l]),d=y.useCallback(()=>{o.current="",window.clearTimeout(i.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(i.current),[]),[o,c,d]}function Bb(n,l,o){const c=l.length>1&&Array.from(l).every(p=>p===l[0])?l[0]:l,d=o?n.indexOf(o):-1;let m=CR(n,Math.max(d,0));c.length===1&&(m=m.filter(p=>p!==o));const g=m.find(p=>p.textValue.toLowerCase().startsWith(c.toLowerCase()));return g!==o?g:void 0}function CR(n,l){return n.map((o,i)=>n[(l+i)%n.length])}var AR=db,Hb=mb,RR=pb,_R=gb,jR=vb,Vb=yb,MR=wb,$b=Tb,Yb=Ab,OR=Rb,DR=jb,qb=Mb,Gb=Ob,Xb=kb;const Pb=AR,Qb=RR,Kf=y.forwardRef(({className:n,children:l,...o},i)=>f.jsxs(Hb,{ref:i,className:se("flex h-10 w-full items-center justify-between rounded-sm border border-input/85 bg-background/72 px-3 py-2 text-sm shadow-sm ring-offset-background transition-all duration-200 placeholder:text-muted-foreground focus:border-primary/45 focus:bg-background/90 focus:outline-none focus:ring-2 focus:ring-ring/45 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n),...o,children:[l,f.jsx(_R,{asChild:!0,children:f.jsx(Fs,{className:"h-4 w-4 opacity-50"})})]}));Kf.displayName=Hb.displayName;const Kb=y.forwardRef(({className:n,...l},o)=>f.jsx(qb,{ref:o,className:se("flex cursor-default items-center justify-center py-1",n),...l,children:f.jsx(qE,{className:"h-4 w-4"})}));Kb.displayName=qb.displayName;const Zb=y.forwardRef(({className:n,...l},o)=>f.jsx(Gb,{ref:o,className:se("flex cursor-default items-center justify-center py-1",n),...l,children:f.jsx(Fs,{className:"h-4 w-4"})}));Zb.displayName=Gb.displayName;const Zf=y.forwardRef(({className:n,children:l,position:o="popper",...i},c)=>f.jsx(jR,{children:f.jsxs(Vb,{ref:c,className:se("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-lg border border-border/70 bg-popover/96 text-popover-foreground shadow-[0_20px_70px_-36px_rgba(0,0,0,0.45)] backdrop-blur-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:o,...i,children:[f.jsx(Kb,{}),f.jsx(MR,{className:se("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:l}),f.jsx(Zb,{})]})}));Zf.displayName=Vb.displayName;const kR=y.forwardRef(({className:n,...l},o)=>f.jsx($b,{ref:o,className:se("py-1.5 pl-8 pr-2 text-sm font-semibold",n),...l}));kR.displayName=$b.displayName;const Nr=y.forwardRef(({className:n,children:l,...o},i)=>f.jsxs(Yb,{ref:i,className:se("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent/80 focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...o,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(DR,{children:f.jsx(Ms,{className:"h-4 w-4"})})}),f.jsx(OR,{children:l})]}));Nr.displayName=Yb.displayName;const zR=y.forwardRef(({className:n,...l},o)=>f.jsx(Xb,{ref:o,className:se("-mx-1 my-1 h-px bg-muted",n),...l}));zR.displayName=Xb.displayName;var qd="rovingFocusGroup.onEntryFocus",LR={bubbles:!1,cancelable:!0},Fo="RovingFocusGroup",[df,Ib,UR]=Hy(Fo),[BR,Fb]=Fa(Fo,[UR]),[HR,VR]=BR(Fo),Jb=y.forwardRef((n,l)=>f.jsx(df.Provider,{scope:n.__scopeRovingFocusGroup,children:f.jsx(df.Slot,{scope:n.__scopeRovingFocusGroup,children:f.jsx($R,{...n,ref:l})})}));Jb.displayName=Fo;var $R=y.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:c=!1,dir:d,currentTabStopId:m,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:g,onEntryFocus:p,preventScrollOnEntryFocus:x=!1,...v}=n,w=y.useRef(null),T=Ie(l,w),N=Bf(d),[E,C]=Rr({prop:m,defaultProp:h??null,onChange:g,caller:Fo}),[A,j]=y.useState(!1),O=Qa(p),z=Ib(o),X=y.useRef(!1),[K,V]=y.useState(0);return y.useEffect(()=>{const H=w.current;if(H)return H.addEventListener(qd,O),()=>H.removeEventListener(qd,O)},[O]),f.jsx(HR,{scope:o,orientation:i,dir:N,loop:c,currentTabStopId:E,onItemFocus:y.useCallback(H=>C(H),[C]),onItemShiftTab:y.useCallback(()=>j(!0),[]),onFocusableItemAdd:y.useCallback(()=>V(H=>H+1),[]),onFocusableItemRemove:y.useCallback(()=>V(H=>H-1),[]),children:f.jsx(Le.div,{tabIndex:A||K===0?-1:0,"data-orientation":i,...v,ref:T,style:{outline:"none",...n.style},onMouseDown:Me(n.onMouseDown,()=>{X.current=!0}),onFocus:Me(n.onFocus,H=>{const le=!X.current;if(H.target===H.currentTarget&&le&&!A){const ie=new CustomEvent(qd,LR);if(H.currentTarget.dispatchEvent(ie),!ie.defaultPrevented){const me=z().filter(M=>M.focusable),fe=me.find(M=>M.active),ce=me.find(M=>M.id===E),re=[fe,ce,...me].filter(Boolean).map(M=>M.ref.current);tx(re,x)}}X.current=!1}),onBlur:Me(n.onBlur,()=>j(!1))})})}),Wb="RovingFocusGroupItem",ex=y.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:c=!1,tabStopId:d,children:m,...h}=n,g=Xa(),p=d||g,x=VR(Wb,o),v=x.currentTabStopId===p,w=Ib(o),{onFocusableItemAdd:T,onFocusableItemRemove:N,currentTabStopId:E}=x;return y.useEffect(()=>{if(i)return T(),()=>N()},[i,T,N]),f.jsx(df.ItemSlot,{scope:o,id:p,focusable:i,active:c,children:f.jsx(Le.span,{tabIndex:v?0:-1,"data-orientation":x.orientation,...h,ref:l,onMouseDown:Me(n.onMouseDown,C=>{i?x.onItemFocus(p):C.preventDefault()}),onFocus:Me(n.onFocus,()=>x.onItemFocus(p)),onKeyDown:Me(n.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){x.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const A=GR(C,x.orientation,x.dir);if(A!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let O=w().filter(z=>z.focusable).map(z=>z.ref.current);if(A==="last")O.reverse();else if(A==="prev"||A==="next"){A==="prev"&&O.reverse();const z=O.indexOf(C.currentTarget);O=x.loop?XR(O,z+1):O.slice(z+1)}setTimeout(()=>tx(O))}}),children:typeof m=="function"?m({isCurrentTabStop:v,hasTabStop:E!=null}):m})})});ex.displayName=Wb;var YR={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function qR(n,l){return l!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function GR(n,l,o){const i=qR(n.key,o);if(!(l==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(l==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return YR[i]}function tx(n,l=!1){const o=document.activeElement;for(const i of n)if(i===o||(i.focus({preventScroll:l}),document.activeElement!==o))return}function XR(n,l){return n.map((o,i)=>n[(l+i)%n.length])}var PR=Jb,QR=ex,sc="Tabs",[KR]=Fa(sc,[Fb]),nx=Fb(),[ZR,If]=KR(sc),ax=y.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,onValueChange:c,defaultValue:d,orientation:m="horizontal",dir:h,activationMode:g="automatic",...p}=n,x=Bf(h),[v,w]=Rr({prop:i,onChange:c,defaultProp:d??"",caller:sc});return f.jsx(ZR,{scope:o,baseId:Xa(),value:v,onValueChange:w,orientation:m,dir:x,activationMode:g,children:f.jsx(Le.div,{dir:x,"data-orientation":m,...p,ref:l})})});ax.displayName=sc;var lx="TabsList",rx=y.forwardRef((n,l)=>{const{__scopeTabs:o,loop:i=!0,...c}=n,d=If(lx,o),m=nx(o);return f.jsx(PR,{asChild:!0,...m,orientation:d.orientation,dir:d.dir,loop:i,children:f.jsx(Le.div,{role:"tablist","aria-orientation":d.orientation,...c,ref:l})})});rx.displayName=lx;var ox="TabsTrigger",ix=y.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,disabled:c=!1,...d}=n,m=If(ox,o),h=nx(o),g=ux(m.baseId,i),p=dx(m.baseId,i),x=i===m.value;return f.jsx(QR,{asChild:!0,...h,focusable:!c,active:x,children:f.jsx(Le.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":p,"data-state":x?"active":"inactive","data-disabled":c?"":void 0,disabled:c,id:g,...d,ref:l,onMouseDown:Me(n.onMouseDown,v=>{!c&&v.button===0&&v.ctrlKey===!1?m.onValueChange(i):v.preventDefault()}),onKeyDown:Me(n.onKeyDown,v=>{[" ","Enter"].includes(v.key)&&m.onValueChange(i)}),onFocus:Me(n.onFocus,()=>{const v=m.activationMode!=="manual";!x&&!c&&v&&m.onValueChange(i)})})})});ix.displayName=ox;var sx="TabsContent",cx=y.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,forceMount:c,children:d,...m}=n,h=If(sx,o),g=ux(h.baseId,i),p=dx(h.baseId,i),x=i===h.value,v=y.useRef(x);return y.useEffect(()=>{const w=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(w)},[]),f.jsx(kr,{present:c||x,children:({present:w})=>f.jsx(Le.div,{"data-state":x?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":g,hidden:!w,id:p,tabIndex:0,...m,ref:l,style:{...n.style,animationDuration:v.current?"0s":void 0},children:w&&d})})});cx.displayName=sx;function ux(n,l){return`${n}-trigger-${l}`}function dx(n,l){return`${n}-content-${l}`}var IR=ax,fx=rx,mx=ix,hx=cx;const FR=IR,px=y.forwardRef(({className:n,...l},o)=>f.jsx(fx,{ref:o,className:se("inline-flex h-10 items-center justify-center rounded-lg bg-muted/72 p-1 text-muted-foreground shadow-inner shadow-background/40",n),...l}));px.displayName=fx.displayName;const Rs=y.forwardRef(({className:n,...l},o)=>f.jsx(mx,{ref:o,className:se("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-semibold ring-offset-background transition-all duration-200 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary/12 data-[state=active]:text-primary data-[state=active]:shadow-[0_10px_28px_-18px_hsl(var(--primary)/0.85)] data-[state=active]:ring-1 data-[state=active]:ring-primary/22",n),...l}));Rs.displayName=mx.displayName;const Vs=y.forwardRef(({className:n,...l},o)=>f.jsx(hx,{ref:o,className:se("mt-2 ring-offset-background data-[state=inactive]:hidden focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n),...l}));Vs.displayName=hx.displayName;var gx="AlertDialog",[JR]=Fa(gx,[py]),ha=py(),vx=n=>{const{__scopeAlertDialog:l,...o}=n,i=ha(l);return f.jsx(My,{...i,...o,modal:!0})};vx.displayName=gx;var WR="AlertDialogTrigger",yx=y.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,c=ha(o);return f.jsx(Oy,{...c,...i,ref:l})});yx.displayName=WR;var e_="AlertDialogPortal",bx=n=>{const{__scopeAlertDialog:l,...o}=n,i=ha(l);return f.jsx(Dy,{...i,...o})};bx.displayName=e_;var t_="AlertDialogOverlay",xx=y.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,c=ha(o);return f.jsx(kf,{...c,...i,ref:l})});xx.displayName=t_;var Ar="AlertDialogContent",[n_,a_]=JR(Ar),l_=gC("AlertDialogContent"),Sx=y.forwardRef((n,l)=>{const{__scopeAlertDialog:o,children:i,...c}=n,d=ha(o),m=y.useRef(null),h=Ie(l,m),g=y.useRef(null);return f.jsx(O5,{contentName:Ar,titleName:wx,docsSlug:"alert-dialog",children:f.jsx(n_,{scope:o,cancelRef:g,children:f.jsxs(zf,{role:"alertdialog",...d,...c,ref:h,onOpenAutoFocus:Me(c.onOpenAutoFocus,p=>{var x;p.preventDefault(),(x=g.current)==null||x.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:[f.jsx(l_,{children:i}),f.jsx(o_,{contentRef:m})]})})})});Sx.displayName=Ar;var wx="AlertDialogTitle",Ex=y.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,c=ha(o);return f.jsx(Lf,{...c,...i,ref:l})});Ex.displayName=wx;var Nx="AlertDialogDescription",Tx=y.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,c=ha(o);return f.jsx(Uf,{...c,...i,ref:l})});Tx.displayName=Nx;var r_="AlertDialogAction",Cx=y.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,c=ha(o);return f.jsx(ec,{...c,...i,ref:l})});Cx.displayName=r_;var Ax="AlertDialogCancel",Rx=y.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,{cancelRef:c}=a_(Ax,o),d=ha(o),m=Ie(l,c);return f.jsx(ec,{...d,...i,ref:m})});Rx.displayName=Ax;var o_=({contentRef:n})=>{const l=`\`${Ar}\` requires a description for the component to be accessible for screen reader users.
316
+
317
+ You can add a description to the \`${Ar}\` by passing a \`${Nx}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
318
+
319
+ Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Ar}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
320
+
321
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return y.useEffect(()=>{var i;document.getElementById((i=n.current)==null?void 0:i.getAttribute("aria-describedby"))||console.warn(l)},[l,n]),null},i_=vx,s_=yx,c_=bx,_x=xx,jx=Sx,Mx=Cx,Ox=Rx,Dx=Ex,kx=Tx;const ff=i_,mf=s_,u_=c_,zx=y.forwardRef(({className:n,...l},o)=>f.jsx(_x,{className:se("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...l,ref:o}));zx.displayName=_x.displayName;const $s=y.forwardRef(({className:n,...l},o)=>f.jsxs(u_,{children:[f.jsx(zx,{}),f.jsx(jx,{ref:o,className:se("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-xl border bg-background p-6 shadow-[0_34px_110px_-54px_rgba(0,0,0,0.55)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n),...l})]}));$s.displayName=jx.displayName;const Ys=({className:n,...l})=>f.jsx("div",{className:se("flex flex-col space-y-2 text-center sm:text-left",n),...l});Ys.displayName="AlertDialogHeader";const qs=({className:n,...l})=>f.jsx("div",{className:se("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...l});qs.displayName="AlertDialogFooter";const Gs=y.forwardRef(({className:n,...l},o)=>f.jsx(Dx,{ref:o,className:se("text-lg font-semibold",n),...l}));Gs.displayName=Dx.displayName;const Xs=y.forwardRef(({className:n,...l},o)=>f.jsx(kx,{ref:o,className:se("text-sm text-muted-foreground",n),...l}));Xs.displayName=kx.displayName;const Ps=y.forwardRef(({className:n,...l},o)=>f.jsx(Mx,{ref:o,className:se(Cf(),n),...l}));Ps.displayName=Mx.displayName;const Qs=y.forwardRef(({className:n,...l},o)=>f.jsx(Ox,{ref:o,className:se(Cf({variant:"outline"}),"mt-2 sm:mt-0",n),...l}));Qs.displayName=Ox.displayName;const d_={online:"bg-green-500",busy:"bg-yellow-500",offline:"bg-red-500"};function f_({status:n}){return f.jsxs("span",{className:"relative inline-flex h-2.5 w-2.5",children:[n==="online"&&f.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-green-500 opacity-30"}),f.jsx("span",{className:se("relative inline-flex h-2.5 w-2.5 rounded-full",d_[n])})]})}function m_({role:n,size:l="default"}){return f.jsx(pt,{variant:n==="leader"?"default":"secondary",className:se(l==="compact"?"px-1.5 py-0 text-[9px] leading-4":"text-[11px]"),children:n})}const h_={pending:{variant:"secondary",dotClass:"bg-muted-foreground",className:"border-transparent bg-muted/55 text-muted-foreground"},assigned:{variant:"outline",dotClass:"bg-teal-500",className:"border-teal-500/20 bg-teal-500/8 text-teal-700 dark:text-teal-300"},running:{variant:"outline",dotClass:"bg-amber-500",className:"border-amber-500/22 bg-amber-500/9 text-amber-700 dark:text-amber-300"},completed:{variant:"outline",dotClass:"bg-emerald-500",className:"border-emerald-500/18 bg-emerald-500/8 text-emerald-700 dark:text-emerald-300"},failed:{variant:"destructive",dotClass:"bg-red-200",className:"border-destructive/20 bg-destructive/90 text-destructive-foreground"},cancelled:{variant:"secondary",dotClass:"bg-muted-foreground",className:"border-transparent bg-muted/55 text-muted-foreground"},archived:{variant:"secondary",dotClass:"bg-slate-400",className:"border-transparent bg-muted/50 text-muted-foreground"}};function Yj({status:n,size:l="default"}){const o=h_[n],i=l==="compact"?"gap-0.5 px-1 py-0 text-[8px] leading-3 [&>span]:h-[3px] [&>span]:w-[3px]":"gap-1 px-1.5 py-0 text-[10px] leading-4 [&>span]:h-[5px] [&>span]:w-[5px]";return f.jsxs(pt,{variant:o.variant,className:se("rounded-sm font-medium shadow-none",i,o.className),children:[f.jsx("span",{className:se("rounded-full",o.dotClass)}),n]})}const p_={critical:{variant:"destructive",label:"Critical"},high:{variant:"outline",label:"High"},normal:{variant:"secondary",label:"Normal"},low:{variant:"secondary",label:"Low"}};function qj({priority:n}){const l=p_[n];return f.jsx(pt,{variant:l.variant,className:"rounded-sm px-1.5 py-0 text-[10px] leading-4 shadow-none",children:l.label})}function g_(n){return[{key:"workspace",label:"Workspace",value:n==null?void 0:n.workspace},{key:"node",label:"Node app",value:n==null?void 0:n.node},{key:"core",label:"Core",value:n==null?void 0:n.core},{key:"dashboard",label:"Dashboard",value:n==null?void 0:n.dashboard},{key:"api",label:"API",value:n==null?void 0:n.api}].filter(o=>o.value)}function Sr({label:n,value:l,mono:o=!1}){return f.jsxs("div",{className:"min-w-0 rounded-lg border border-border/60 bg-background/65 px-2.5 py-1.5",children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:n}),f.jsx("div",{className:o?"mt-0.5 break-all font-mono text-[11px] text-foreground":"mt-0.5 break-all text-[11px] text-foreground",children:l})]})}function v_({formatDateTime:n,viewInfo:l}){var i,c,d,m,h,g,p,x;const o=g_(l.packages);return f.jsxs(Vs,{value:"about","data-about-layout":"compact",className:"mt-0 space-y-2",children:[f.jsxs(Dn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(kn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(zn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(zE,{className:"h-3.5 w-3.5 text-primary"}),"Repository & runtime"]}),f.jsx(Ln,{className:"text-[10px]",children:"Build source and runtime identity for this node."})]}),f.jsxs(Un,{className:"space-y-2 px-3 pb-2.5",children:[(i=l.repository)!=null&&i.url?f.jsxs("a",{href:l.repository.url,target:"_blank",rel:"noreferrer",className:"group flex min-w-0 items-center justify-between gap-2 rounded-lg border border-border/70 bg-background/70 px-2.5 py-1.5 text-[11px] text-foreground transition-colors hover:border-primary/40 hover:bg-primary/5",children:[f.jsx("span",{className:"truncate font-mono text-[10px]",children:l.repository.url}),f.jsx(eN,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]}):f.jsx("div",{className:"rounded-lg border border-dashed border-border/70 bg-muted/20 px-2.5 py-1.5 text-[11px] text-muted-foreground",children:"Repository URL is unavailable in this runtime."}),f.jsxs("div",{className:"grid gap-1.5 sm:grid-cols-2 lg:grid-cols-3",children:[f.jsx(Sr,{label:"Branch",value:((c=l.repository)==null?void 0:c.branch)??"Unavailable",mono:!!((d=l.repository)!=null&&d.branch)}),f.jsx(Sr,{label:"Commit",value:((m=l.repository)==null?void 0:m.commit)??"Unavailable",mono:!!((h=l.repository)!=null&&h.commit)}),f.jsx(Sr,{label:"Runtime",value:`${l.packageName??"meshy"} ${l.version}`,mono:!0}),f.jsx(Sr,{label:"Node.js",value:((g=l.runtime)==null?void 0:g.nodeVersion)??"Unavailable",mono:!!((p=l.runtime)!=null&&p.nodeVersion)}),f.jsx(Sr,{label:"PID",value:l.runtime?String(l.runtime.pid):"Unavailable",mono:!!l.runtime}),f.jsx(Sr,{label:"Started",value:n((x=l.runtime)==null?void 0:x.startedAt)})]})]})]}),f.jsxs(Dn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(kn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(zn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(oN,{className:"h-3.5 w-3.5 text-primary"}),"Package versions"]}),f.jsx(Ln,{className:"text-[10px]",children:"Version snapshot for the packages most relevant to this dashboard session."})]}),f.jsx(Un,{"data-package-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:o.map(v=>{var w,T;return f.jsxs("div",{className:"grid gap-1.5 rounded-lg border border-border/60 bg-background/65 px-2.5 py-1.5 sm:grid-cols-[9rem_minmax(0,1fr)_auto] sm:items-center",children:[f.jsx("div",{className:"text-[11px] font-medium text-foreground",children:v.label}),f.jsx("div",{className:"min-w-0 truncate text-[10px] text-muted-foreground",children:(w=v.value)==null?void 0:w.name}),f.jsx(pt,{variant:"outline",className:"w-fit rounded-sm border-border/70 bg-background/60 font-mono text-[10px]",children:(T=v.value)==null?void 0:T.version})]},v.key)})})]})]})}var cc="Checkbox",[y_]=Fa(cc),[b_,Ff]=y_(cc);function x_(n){const{__scopeCheckbox:l,checked:o,children:i,defaultChecked:c,disabled:d,form:m,name:h,onCheckedChange:g,required:p,value:x="on",internal_do_not_use_render:v}=n,[w,T]=Rr({prop:o,defaultProp:c??!1,onChange:g,caller:cc}),[N,E]=y.useState(null),[C,A]=y.useState(null),j=y.useRef(!1),O=N?!!m||!!N.closest("form"):!0,z={checked:w,disabled:d,setChecked:T,control:N,setControl:E,name:h,form:m,value:x,hasConsumerStoppedPropagationRef:j,required:p,defaultChecked:Pa(c)?!1:c,isFormControl:O,bubbleInput:C,setBubbleInput:A};return f.jsx(b_,{scope:l,...z,children:S_(v)?v(z):i})}var Lx="CheckboxTrigger",Ux=y.forwardRef(({__scopeCheckbox:n,onKeyDown:l,onClick:o,...i},c)=>{const{control:d,value:m,disabled:h,checked:g,required:p,setControl:x,setChecked:v,hasConsumerStoppedPropagationRef:w,isFormControl:T,bubbleInput:N}=Ff(Lx,n),E=Ie(c,x),C=y.useRef(g);return y.useEffect(()=>{const A=d==null?void 0:d.form;if(A){const j=()=>v(C.current);return A.addEventListener("reset",j),()=>A.removeEventListener("reset",j)}},[d,v]),f.jsx(Le.button,{type:"button",role:"checkbox","aria-checked":Pa(g)?"mixed":g,"aria-required":p,"data-state":Yx(g),"data-disabled":h?"":void 0,disabled:h,value:m,...i,ref:E,onKeyDown:Me(l,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:Me(o,A=>{v(j=>Pa(j)?!0:!j),N&&T&&(w.current=A.isPropagationStopped(),w.current||A.stopPropagation())})})});Ux.displayName=Lx;var Jf=y.forwardRef((n,l)=>{const{__scopeCheckbox:o,name:i,checked:c,defaultChecked:d,required:m,disabled:h,value:g,onCheckedChange:p,form:x,...v}=n;return f.jsx(x_,{__scopeCheckbox:o,checked:c,defaultChecked:d,disabled:h,required:m,onCheckedChange:p,name:i,form:x,value:g,internal_do_not_use_render:({isFormControl:w})=>f.jsxs(f.Fragment,{children:[f.jsx(Ux,{...v,ref:l,__scopeCheckbox:o}),w&&f.jsx($x,{__scopeCheckbox:o})]})})});Jf.displayName=cc;var Bx="CheckboxIndicator",Hx=y.forwardRef((n,l)=>{const{__scopeCheckbox:o,forceMount:i,...c}=n,d=Ff(Bx,o);return f.jsx(kr,{present:i||Pa(d.checked)||d.checked===!0,children:f.jsx(Le.span,{"data-state":Yx(d.checked),"data-disabled":d.disabled?"":void 0,...c,ref:l,style:{pointerEvents:"none",...n.style}})})});Hx.displayName=Bx;var Vx="CheckboxBubbleInput",$x=y.forwardRef(({__scopeCheckbox:n,...l},o)=>{const{control:i,hasConsumerStoppedPropagationRef:c,checked:d,defaultChecked:m,required:h,disabled:g,name:p,value:x,form:v,bubbleInput:w,setBubbleInput:T}=Ff(Vx,n),N=Ie(o,T),E=cb(d),C=Jy(i);y.useEffect(()=>{const j=w;if(!j)return;const O=window.HTMLInputElement.prototype,X=Object.getOwnPropertyDescriptor(O,"checked").set,K=!c.current;if(E!==d&&X){const V=new Event("click",{bubbles:K});j.indeterminate=Pa(d),X.call(j,Pa(d)?!1:d),j.dispatchEvent(V)}},[w,E,d,c]);const A=y.useRef(Pa(d)?!1:d);return f.jsx(Le.input,{type:"checkbox","aria-hidden":!0,defaultChecked:m??A.current,required:h,disabled:g,name:p,value:x,form:v,...l,tabIndex:-1,ref:N,style:{...l.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});$x.displayName=Vx;function S_(n){return typeof n=="function"}function Pa(n){return n==="indeterminate"}function Yx(n){return Pa(n)?"indeterminate":n?"checked":"unchecked"}const qx=y.forwardRef(({className:n,...l},o)=>f.jsx(Jf,{ref:o,className:se("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",n),...l,children:f.jsx(Hx,{className:se("flex items-center justify-center text-current"),children:f.jsx(Ms,{className:"h-3.5 w-3.5"})})}));qx.displayName=Jf.displayName;const Wf=y.forwardRef(({className:n,type:l,...o},i)=>f.jsx("input",{type:l,className:se("flex h-10 w-full rounded-sm border border-input/85 bg-background/72 px-3 py-2 text-sm shadow-sm ring-offset-background transition-all duration-200 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground/75 focus-visible:border-primary/45 focus-visible:bg-background/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/45 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n),ref:i,...o}));Wf.displayName="Input";const Zv=["queued","running"];function w_(n){return n.map(l=>`${l.id}:${l.name}`).join("\0")}function E_(n){return n==="claude"||n==="codex"||n==="copilot"}function Gx(n){var o;if(n.kind!=="agent.upgrade")return null;const l=(o=n.payload)==null?void 0:o.agent;return E_(l)?`${n.nodeId}:${l}`:null}function N_(n){return n.status==="succeeded"||n.status==="failed"}async function Xx(n,l={}){const o=l.getOperation??iE,i=l.pollIntervalMs??2e3,c=l.timeoutMs??24e4,d=Date.now()+c;let m=n;for(;!N_(m)&&Date.now()<d;)await C_(i),m=await o(n.id);return m}async function T_(n,l=sE){const o=new Set(n),i=await Promise.all(Zv.map(d=>l({kind:"agent.upgrade",status:d}))),c=new Map;for(const d of i.flat()){if(!Zv.includes(d.status)||o.size>0&&!o.has(d.nodeId))continue;const m=Gx(d);if(!m)continue;const h=c.get(m);(!h||d.updatedAt>h.updatedAt)&&c.set(m,d)}return c}function C_(n){return new Promise(l=>setTimeout(l,n))}const A_=1500,R_=1e3,__=9e4;async function Px(n={}){const l=n.fetchHealth??j_,o=n.initialDelayMs??A_,i=n.pollIntervalMs??R_,c=n.previousPid,d=n.reload??(()=>window.location.reload()),m=n.sleep??O_,h=n.timeoutMs??__,g=Date.now()+h;let p=!1;for(o>0&&await m(o);Date.now()<=g;){const x=M_(await l());if(!x.ok){p=!0,await m(i);continue}if(c===void 0||x.pid!==void 0&&x.pid!==c||p)return d(),!0;await m(i)}return!1}async function j_(){try{const n=await fetch("/api/system/health",{cache:"no-store"}),l=await n.json().catch(()=>null),o=l&&typeof l=="object"&&typeof l.pid=="number"?l.pid:void 0;return{ok:n.ok,pid:o}}catch{return!1}}function M_(n){return typeof n=="boolean"?{ok:n}:n}function O_(n){return new Promise(l=>window.setTimeout(l,n))}function D_(n,l=!0){return l?(n==null?void 0:n.restartMode)==="development"?"Restart dev runtime":n!=null&&n.updateAvailable?"Restart to update":"Restart runtime":n!=null&&n.updateAvailable?"Restart follower to update":"Restart follower"}function k_({checkedLabel:n,disableAuthDefault:l,endpoint:o,isLiveLocalNode:i,nodeId:c,nodeName:d,onRefresh:m,pid:h,transportType:g,update:p,workDir:x}){const v=D_(p,i),[w,T]=y.useState(null),[N,E]=y.useState(()=>Iv({disableAuthDefault:l,endpoint:o,nodeName:d,transportType:g,workDir:x})),[C,A]=y.useState(!1),[j,O]=y.useState(!1),[z,X]=y.useState(!1);y.useEffect(()=>{E(Iv({disableAuthDefault:l,endpoint:o,nodeName:d,transportType:g,workDir:x}))},[l,o,d,g,x]);async function K(){if(!c||C||j)return;const ie=p.updateAvailable?"update":"restart",me=U_(N);if(N.port.trim()&&(me==null?void 0:me.port)===void 0){at.error("Runtime restart port must be a positive integer");return}const fe=me?{reason:ie,startArgs:me}:{reason:ie};A(!0);try{if(i){const M=await T0(fe);T({...M,pid:M.pid??h,status:"accepted"}),at.info(`Restarting ${d} from a detached helper. PID ${M.pid??h??"unknown"} will not stay attached to the original terminal window; follow ${M.logPath} for launch output.`),Px({previousPid:M.pid??h}).then($=>{$||(A(!1),at.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout. Refresh the page after the node finishes starting."))}).catch($=>{A(!1),at.error($ instanceof Error?$.message:"Runtime restart recovery failed")});return}const ce=await uE(c,fe);T({operationId:ce.id,pid:h,status:ce.status}),at.info(`Restart requested on ${d}. Operation ${Gd(ce.id)} will hand off to a detached process, so the new runtime will not stay attached to the original terminal window.`);const de=await Xx(ce,{timeoutMs:6e4}),re=L_(de);T({command:re==null?void 0:re.command,logPath:re==null?void 0:re.logPath,mode:re==null?void 0:re.mode,operationId:de.id,pid:(re==null?void 0:re.pid)??h,status:de.status}),de.status==="succeeded"?(await(m==null?void 0:m()),at.success(`Restart handoff accepted on ${d}. Follow ${(re==null?void 0:re.logPath)??"the node restart log"} for launch output.`)):de.status==="failed"?at.error(de.error??`Restart failed on ${d}`):at.info(`Restart operation ${Gd(de.id)} is still ${de.status}. More details will update after the node reports back.`),A(!1)}catch(ce){A(!1),at.error(ce instanceof Error?ce.message:"Runtime restart failed")}}async function V(){if(!(!i||C||j)){O(!0);try{const ie=await rE();at.info(`Stopping Meshy process ${ie.pid}`)}catch(ie){O(!1),at.error(ie instanceof Error?ie.message:"Runtime stop failed")}}}const H=C?"restarting":j?"stopping":(w==null?void 0:w.status)??"idle",le=p.restartMode==="development";return f.jsxs("div",{className:"rounded-xl border border-border/70 bg-background/70 overflow-hidden",children:[f.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-2 border-b border-border/50",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(js,{className:"h-3.5 w-3.5 text-primary shrink-0"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-[11px] font-semibold text-foreground leading-tight",children:"Runtime"}),f.jsx("div",{className:"text-[10px] text-muted-foreground leading-tight",children:le?"Development launcher":`Latest ${p.latestVersion??"—"}`})]})]}),f.jsx("div",{className:"flex items-center gap-1.5",children:f.jsx(pt,{variant:p.updateAvailable?"default":"outline",className:"rounded-full border-border/70 bg-background/60 font-mono text-[10px] px-2 py-0.5",children:le?"dev":p.updateAvailable?`→ ${p.latestVersion}`:"current"})})]}),f.jsxs("div",{className:"grid grid-cols-2 divide-x divide-border/50 border-b border-border/50",children:[f.jsxs("div",{className:"px-3 py-1.5",children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:"PID"}),f.jsx("div",{className:"mt-0.5 font-mono text-[11px] text-foreground",children:h??"—"})]}),f.jsxs("div",{className:"px-3 py-1.5",children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:"Status"}),f.jsx("div",{className:"mt-0.5 text-[11px] text-foreground capitalize",children:H})]})]}),f.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-2",children:[f.jsxs("div",{className:"text-[10px] text-muted-foreground",children:["Checked ",n]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[i&&f.jsxs(ff,{children:[f.jsx(mf,{asChild:!0,children:f.jsxs(Sn,{type:"button",size:"sm",variant:"ghost",disabled:C||j,className:"h-7 rounded-lg px-2 text-[11px] text-muted-foreground hover:text-destructive hover:bg-destructive/10",children:[f.jsx(hN,{className:se("mr-1 h-3.5 w-3.5",j&&"animate-pulse")}),j?"Stopping":"Stop"]})}),f.jsxs($s,{className:"max-w-[22rem] rounded-xl gap-2 p-4",children:[f.jsxs(Ys,{className:"space-y-1",children:[f.jsx(Gs,{className:"text-sm",children:"Stop runtime?"}),f.jsx(Xs,{className:"text-[11px] leading-4",children:"Gracefully stops the current Meshy process without launching a replacement. The dashboard will disconnect until the node is started again."})]}),f.jsxs(qs,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(Qs,{className:"h-7 rounded-lg px-2 text-[11px]",children:"Cancel"}),f.jsx(Ps,{className:"h-7 rounded-lg px-2 text-[11px] bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:()=>void V(),children:"Stop runtime"})]})]})]}),f.jsxs(ff,{children:[f.jsx(mf,{asChild:!0,children:f.jsxs(Sn,{type:"button",size:"sm",variant:p.updateAvailable?"default":"outline",disabled:!c||C||j,className:"h-7 rounded-lg px-2 text-[11px]",children:[f.jsx(yN,{className:se("mr-1 h-3.5 w-3.5",C&&"animate-spin")}),C?"Restarting…":v]})}),f.jsxs($s,{className:"max-w-[28rem] gap-3 rounded-xl p-4",children:[f.jsxs(Ys,{className:"space-y-1",children:[f.jsxs(Gs,{className:"text-sm",children:[v,"?"]}),f.jsxs(Xs,{className:"text-[11px] leading-4",children:["Starts a detached restart helper, shuts down ",i?"the current node":d,", and brings it back with the configured launcher. The new process will not stay attached to the original terminal window."]})]}),f.jsx(z_,{value:N,onChange:E}),f.jsxs(qs,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(Qs,{className:"h-7 rounded-lg px-2 text-[11px]",children:"Cancel"}),f.jsx(Ps,{className:"h-7 rounded-lg px-2 text-[11px]",onClick:()=>void K(),children:v})]})]})]})]})]}),f.jsxs("div",{className:"border-t border-border/50",children:[f.jsxs("button",{type:"button",onClick:()=>X(ie=>!ie),className:"flex w-full items-center justify-between px-3 py-1.5 text-[10px] text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors",children:[f.jsxs("span",{className:"flex items-center gap-1.5",children:[f.jsx(k0,{className:"h-3 w-3"}),"Restart details"]}),f.jsx(Fs,{className:se("h-3 w-3 transition-transform duration-150",z&&"rotate-180")})]}),z&&f.jsxs("div",{className:"border-t border-border/50 bg-muted/20 px-3 py-2 space-y-1",children:[f.jsx(Nl,{label:"Current PID",value:h===void 0?"—":String(h),mono:h!==void 0}),f.jsx(Nl,{label:"Restart PID",value:(w==null?void 0:w.pid)===void 0?"Pending":String(w.pid),mono:(w==null?void 0:w.pid)!==void 0}),f.jsx(Nl,{label:"Operation",value:w!=null&&w.operationId?Gd(w.operationId):"Local direct request",mono:!!(w!=null&&w.operationId)}),f.jsx(Nl,{label:"Status",value:(w==null?void 0:w.status)??(C?"requested":"idle")}),f.jsx(Nl,{label:"Launcher",value:(w==null?void 0:w.command)??"Available after restart",mono:!!(w!=null&&w.command)}),f.jsx(Nl,{label:"Log",value:(w==null?void 0:w.logPath)??"Available after restart",mono:!!(w!=null&&w.logPath)}),f.jsx(Nl,{label:"Terminal",value:"New process is detached from original terminal"})]})]}),p.detail&&f.jsx("div",{className:"border-t border-border/50 px-3 py-1.5 text-[10px] text-muted-foreground bg-muted/20",children:p.detail})]})}function z_({onChange:n,value:l}){const o=(i,c)=>{n({...l,[i]:c})};return f.jsxs("div",{className:"rounded-lg border border-border/70 bg-muted/30 p-3 space-y-3",children:[f.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-[0.16em] text-muted-foreground",children:"Startup arguments"}),f.jsxs("div",{className:"grid gap-2 sm:grid-cols-2",children:[f.jsx(Lo,{label:"HTTP port",value:l.port,onChange:i=>o("port",i),inputMode:"numeric"}),f.jsx(Lo,{label:"Node name",value:l.name,onChange:i=>o("name",i)}),f.jsx(Lo,{label:"Join endpoint",value:l.join,onChange:i=>o("join",i),className:"sm:col-span-2"}),f.jsxs("div",{className:"space-y-1",children:[f.jsx("label",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:"Transport"}),f.jsxs(Pb,{value:l.transport,onValueChange:i=>o("transport",Qx(i)),children:[f.jsx(Kf,{className:"h-7 rounded-md border-border/70 bg-background/70 px-2 text-[10px]",children:f.jsx(Qb,{placeholder:"Transport"})}),f.jsxs(Zf,{children:[f.jsx(Nr,{className:"py-1 text-[11px]",value:"inherit",children:"current / default"}),f.jsx(Nr,{className:"py-1 text-[11px]",value:"direct",children:"direct"}),f.jsx(Nr,{className:"py-1 text-[11px]",value:"devtunnel",children:"devtunnel"}),f.jsx(Nr,{className:"py-1 text-[11px]",value:"tailscale",children:"tailscale"})]})]})]}),f.jsx(Lo,{label:"Working directory",value:l.workDir,onChange:i=>o("workDir",i)}),f.jsx(Lo,{label:"Config path",value:l.config,onChange:i=>o("config",i),className:"sm:col-span-2"}),f.jsxs("label",{className:"flex items-center gap-2 rounded-md border border-border/60 bg-background/60 px-2 py-1.5 text-[10px] text-foreground sm:col-span-2 cursor-pointer hover:bg-muted/40 transition-colors",children:[f.jsx(qx,{className:"h-3.5 w-3.5",checked:l.disableAuth,onCheckedChange:i=>n({...l,disableAuth:i===!0,disableAuthKnown:!0})}),"Disable auth"]})]})]})}function Lo({className:n,inputMode:l,label:o,onChange:i,value:c}){return f.jsxs("label",{className:se("space-y-1",n),children:[f.jsx("span",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:o}),f.jsx(Wf,{className:"h-7 rounded-md px-2 text-[10px]",inputMode:l,value:c,onChange:d=>i(d.target.value)})]})}function Nl({label:n,value:l,mono:o=!1}){return f.jsxs("div",{className:"flex items-start justify-between gap-3 text-[10px]",children:[f.jsx("span",{className:"shrink-0 uppercase tracking-[0.14em] text-muted-foreground",children:n}),f.jsx("span",{className:se("break-all text-right text-foreground",o&&"font-mono"),children:l})]})}function L_(n){const l=n.result;if(!l||typeof l!="object")return null;const o=l;return o.ok!==!0||typeof o.command!="string"||typeof o.logPath!="string"?null:{ok:!0,mode:o.mode==="package"?"package":"development",command:o.command,logPath:o.logPath,pid:typeof o.pid=="number"?o.pid:void 0}}function Iv(n){return{port:B_(n.endpoint),name:n.nodeName,join:"",transport:Qx(n.transportType),workDir:n.workDir??"",config:"",disableAuth:n.disableAuthDefault===!0,disableAuthKnown:n.disableAuthDefault!==void 0}}function U_(n){const l={},o=Number(n.port.trim());return n.port.trim()&&Number.isInteger(o)&&o>0&&(l.port=o),n.name.trim()&&(l.name=n.name.trim()),n.join.trim()&&(l.join=n.join.trim()),n.transport!=="inherit"&&(l.transport=n.transport),n.workDir.trim()&&(l.workDir=n.workDir.trim()),n.config.trim()&&(l.config=n.config.trim()),n.disableAuthKnown&&(l.disableAuth=n.disableAuth),Object.keys(l).length>0?l:void 0}function Qx(n){return n==="direct"||n==="devtunnel"||n==="tailscale"?n:"inherit"}function B_(n){if(!n)return"";try{return new URL(n).port||""}catch{return""}}function Gd(n){return n.length<=8?n:n.slice(0,8)}function Uo({formatDateTime:n,name:l,status:o,statusVariant:i}){return f.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-lg border border-border/60 bg-background/70 px-2.5 py-1.5",children:[f.jsxs("div",{children:[f.jsx("div",{className:"text-[11px] font-medium text-foreground",children:l}),f.jsx("div",{className:"text-[10px] text-muted-foreground",children:n(o==null?void 0:o.checkedAt)})]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[typeof(o==null?void 0:o.authenticated)=="boolean"&&f.jsx(pt,{variant:o.authenticated?"default":"outline",className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:o.authenticated?"auth ok":"auth required"}),f.jsx(pt,{variant:i(o==null?void 0:o.status),className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:(o==null?void 0:o.status)??"unknown"})]})]})}function Gt(n){if(n==null||n==="")return"Unavailable";const l=new Date(n);return Number.isNaN(l.getTime())?"Unavailable":new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(l)}function H_(n){const l=Math.max(0,Math.floor(n)),o=Math.floor(l/86400),i=Math.floor(l%86400/3600),c=Math.floor(l%3600/60);return o>0?`${o}d ${i}h`:i>0?`${i}h ${c}m`:`${c}m`}function Fv(n){if(n==null||Number.isNaN(n))return"Unavailable";const l=["B","KB","MB","GB","TB"];let o=n,i=0;for(;o>=1024&&i<l.length-1;)o/=1024,i+=1;return`${o.toFixed(o>=10||i===0?0:1)} ${l[i]}`}function Er(n){return n==="ok"?"default":n==="missing"||n==="install-failed"||n==="login-failed"?"destructive":n==="not-authenticated"||n==="unsupported-platform"?"outline":"secondary"}function V_(n){return n.available?f.jsxs(pt,{className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[f.jsx(Ho,{className:"h-3 w-3"}),"Available"]}):f.jsxs(pt,{variant:"destructive",className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[f.jsx(KE,{className:"h-3 w-3"}),"Unavailable"]})}function $_(n){return n.update?n.update.updateAvailable?f.jsxs(pt,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Update ",n.update.latestVersion]}):f.jsx(pt,{variant:"secondary",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:"Up to date"}):null}function Y_(n){return n.available?null:n.metadataStatus??null}function q_(n){var o;const l=`npm install -g ${(o=n.update)==null?void 0:o.packageName}@latest`;return n.id==="claude"?`${l} --include=optional --ignore-scripts=false`:l}function G_(n){if(n.error)return n.error;const l=n.result;return(l==null?void 0:l.detail)??null}function Ze({label:n,value:l,mono:o=!1}){return f.jsxs("div",{className:"flex items-start justify-between gap-3 border-b border-border/50 py-1 last:border-b-0 last:pb-0 first:pt-0",children:[f.jsx("span",{className:"shrink-0 text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:n}),f.jsx("span",{className:se("break-all text-right text-[11px] text-foreground",o&&"font-mono text-[11px]"),children:l})]})}function Bo({label:n,value:l,mono:o=!1,className:i}){return f.jsxs("div",{className:se("min-w-0 space-y-0.5",i),children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:n}),f.jsx("div",{className:se("truncate text-[11px] text-foreground",o&&"font-mono",n==="Path"&&"break-all whitespace-normal"),children:l})]})}function X_({agent:n,nodeName:l,activeOperation:o,onUpgrade:i}){var g,p;const c=((g=n.update)==null?void 0:g.updateAvailable)===!0,d=$_(n),m=!!o,h=Y_(n);return f.jsxs("div",{className:"rounded-lg border border-border/60 bg-background/65 px-3 py-2.5 transition-colors hover:bg-background/85",children:[f.jsxs("div",{className:"grid gap-3 lg:grid-cols-[12rem_minmax(0,1fr)_auto] lg:items-start",children:[f.jsxs("div",{className:"min-w-0 space-y-1.5",children:[f.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] font-semibold text-foreground",children:[f.jsx(_0,{className:"h-3.5 w-3.5 shrink-0 text-primary"}),f.jsx("span",{className:"truncate",children:n.label})]}),f.jsxs("div",{className:"truncate text-[10px] text-muted-foreground",children:["Command: ",f.jsx("span",{className:"font-mono text-[10px]",children:n.command})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[V_(n),h&&f.jsx(pt,{variant:Er(h),className:"rounded-full px-2 py-0 text-[10px] uppercase tracking-[0.14em]",children:h})]})]}),f.jsxs("div",{className:"grid min-w-0 gap-x-4 gap-y-1.5 sm:grid-cols-2",children:[f.jsx(Bo,{label:"Version",value:n.version??"Unavailable",mono:!!n.version}),n.update&&f.jsx(Bo,{label:"Latest",value:n.update.latestVersion??"Unavailable",mono:!!n.update.latestVersion}),f.jsx(Bo,{label:"Checked",value:Gt(n.checkedAt)}),n.update&&f.jsx(Bo,{label:"Update check",value:Gt(n.update.checkedAt)}),f.jsx(Bo,{label:"Path",value:n.path??"Not on PATH",mono:!!n.path,className:"sm:col-span-2"})]}),f.jsx("div",{className:"flex items-start justify-start lg:justify-end",children:o?f.jsxs(pt,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Upgrade ",o.status]}):c?f.jsxs(ff,{children:[f.jsx(mf,{asChild:!0,children:f.jsx("button",{type:"button",disabled:m,className:"rounded-full transition duration-150 hover:-translate-y-0.5 hover:scale-[1.03] hover:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/45 focus-visible:ring-offset-2 active:translate-y-0 active:scale-95 disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:translate-y-0 disabled:hover:scale-100 disabled:hover:shadow-none",children:d})}),f.jsxs($s,{children:[f.jsxs(Ys,{children:[f.jsxs(Gs,{children:["Upgrade ",n.label,"?"]}),f.jsxs(Xs,{children:["This runs ",q_(n)," on ",l,". Remote nodes execute the command on the remote machine."]})]}),f.jsxs(qs,{children:[f.jsx(Qs,{children:"Cancel"}),f.jsx(Ps,{onClick:()=>i(n),children:"Upgrade"})]})]})]}):d})]}),((p=n.update)==null?void 0:p.detail)&&f.jsx("div",{className:"mt-2 rounded-md border border-border/60 bg-muted/40 px-2 py-1 text-[10px] text-muted-foreground",children:n.update.detail}),n.detail&&f.jsx("div",{className:"mt-2 rounded-md border border-border/60 bg-muted/40 px-2 py-1 text-[10px] text-muted-foreground",children:n.detail})]})}function P_(n,l){var o;return(o=n==null?void 0:n.nodes)!=null&&o.length?n.nodes:l?[l]:[]}function Q_(n,l){var i;if(l&&n.id===l.nodeId)return l;const o=n.settingsSnapshot;return{...n,nodeId:n.id,version:(o==null?void 0:o.version)??"Unavailable",packageName:o==null?void 0:o.packageName,uptime:(o==null?void 0:o.uptime)??0,localDashboardOrigin:((i=o==null?void 0:o.runtime)==null?void 0:i.localDashboardOrigin)??void 0,auth:o==null?void 0:o.auth,os:o==null?void 0:o.os,runtime:o==null?void 0:o.runtime,runtimeUpdate:o==null?void 0:o.runtimeUpdate,agents:o==null?void 0:o.agents,startupRequirements:o==null?void 0:o.startupRequirements,components:o==null?void 0:o.components,repository:o==null?void 0:o.repository,packages:o==null?void 0:o.packages}}function K_(n,l){return n.id===l?`${n.name} (this node)`:`${n.name} (${n.role})`}function Z_(n){return n==="claude"?"Claude Code":n==="copilot"?"Copilot CLI":"Codex"}function I_(n){var o;const l=(o=n.payload)==null?void 0:o.agent;return l==="claude"||l==="codex"||l==="copilot"?l:null}function F_({cluster:n,systemInfo:l,sseConnected:o,initialSelectedNodeId:i,onRefresh:c}){var le,ie,me,fe,ce,de,re,M,$,F,J,G,R,Y,Q,W,te,oe,ne,ue;const d=y.useMemo(()=>P_(n,l),[n,l]),[m,h]=y.useState(()=>{var ee;return i??(l==null?void 0:l.nodeId)??((ee=n==null?void 0:n.self)==null?void 0:ee.id)??""}),[g,p]=y.useState(()=>new Map),x=y.useRef(new Set),v=y.useRef(new Set),w=(n==null?void 0:n.self)??l??d[0]??null,T=d.find(ee=>ee.id===m)??w,N=T?Q_(T,l):null,E=!!(l&&T&&T.id===l.nodeId),C=E||!!(T!=null&&T.settingsSnapshot),A=N==null?void 0:N.runtimeUpdate,j=((le=N==null?void 0:N.startupRequirements)==null?void 0:le.components)??(N==null?void 0:N.components)??{},O=y.useMemo(()=>d.map(ee=>ee.id),[d]),z=O.join("\0"),X=w_(d),K=y.useMemo(()=>new Map(d.map(ee=>[ee.id,ee.name])),[X]);y.useEffect(()=>{i&&O.includes(i)&&h(i)},[i,z]);const V=y.useCallback(async(ee,xe)=>{const ye=Gx(ee);if(!ye||x.current.has(ee.id))return;const Se=I_(ee),$e=(xe==null?void 0:xe.agentLabel)??(Se?Z_(Se):"Agent"),Ue=(xe==null?void 0:xe.nodeName)??K.get(ee.nodeId)??ee.nodeId;x.current.add(ee.id),p(Ye=>new Map(Ye).set(ye,ee));try{const Ye=await Xx(ee);if(Ye.status==="succeeded")await(c==null?void 0:c()),v.current.has(Ye.id)||(at.success(`${$e} upgrade finished on ${Ue}`),v.current.add(Ye.id));else if(Ye.status==="failed")v.current.has(Ye.id)||(at.error(G_(Ye)??`${$e} upgrade failed`),v.current.add(Ye.id));else{p(gt=>new Map(gt).set(ye,Ye)),at.info(`${$e} upgrade is still ${Ye.status} on ${Ue}`);return}p(gt=>{const ot=new Map(gt),Pt=ot.get(ye);return(!Pt||Pt.id===Ye.id)&&ot.delete(ye),ot})}catch(Ye){p(gt=>{const ot=new Map(gt),Pt=ot.get(ye);return(!Pt||Pt.id===ee.id)&&ot.delete(ye),ot}),at.error(Ye instanceof Error?Ye.message:`${$e} upgrade failed`)}finally{x.current.delete(ee.id)}},[c,K]);y.useEffect(()=>{if(O.length===0)return;let ee=!1;async function xe(){let ye;try{ye=await T_(O)}catch{return}if(!ee){p(Se=>{const $e=new Map(Se);for(const[Ue,Ye]of ye)$e.set(Ue,Ye);return $e});for(const Se of ye.values())V(Se)}}return xe(),()=>{ee=!0}},[V,z]);async function H(ee){if(T)try{const xe=await cE(T.id,ee.id);at.info(`${ee.label} upgrade started on ${T.name}`),await V(xe,{agentLabel:ee.label,nodeName:T.name})}catch(xe){at.error(xe instanceof Error?xe.message:`${ee.label} upgrade failed`)}}return!T||!N?f.jsx("div",{className:"rounded-2xl border border-dashed border-border/70 bg-muted/20 px-4 py-8 text-center text-[12px] text-muted-foreground",children:"Loading session metadata..."}):f.jsxs("div",{className:"space-y-3",children:[f.jsxs("section",{className:"relative mt-2 rounded-2xl border border-border/70 bg-[radial-gradient(circle_at_top_left,rgba(59,130,246,0.18),transparent_42%),radial-gradient(circle_at_bottom_right,rgba(16,185,129,0.12),transparent_32%),rgba(255,255,255,0.72)] p-3 shadow-[0_24px_90px_-54px_rgba(15,23,42,0.55)] dark:bg-[radial-gradient(circle_at_top_left,rgba(59,130,246,0.18),transparent_42%),radial-gradient(circle_at_bottom_right,rgba(16,185,129,0.12),transparent_32%),rgba(10,15,23,0.78)]",children:[!E&&f.jsxs(pt,{variant:"outline",className:"absolute right-3 top-2.5 rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em] whitespace-nowrap",children:["Updated ",Gt((ie=T.settingsSnapshot)==null?void 0:ie.collectedAt)]}),f.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:items-end md:justify-between",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[f.jsxs("span",{className:"flex items-center gap-1.5 rounded-full border border-border/70 bg-background/75 px-2 py-0.5 text-[10px] text-muted-foreground backdrop-blur",children:[f.jsx(f_,{status:T.status}),f.jsx("span",{className:"font-medium text-foreground",children:T.name})]}),f.jsx(m_,{role:T.role}),f.jsx(pt,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:T.transportType??N.transportType??"direct"}),f.jsx(pt,{variant:E?"default":"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:E?"Live local session":"Leader-synced snapshot"})]}),f.jsxs("div",{children:[f.jsx("div",{className:"text-[10px] uppercase tracking-[0.34em] text-muted-foreground",children:"Session"}),f.jsx("h3",{className:"mt-0.5 text-sm font-semibold tracking-tight text-foreground",children:"Node runtime"}),f.jsx("p",{className:"mt-0.5 text-[11px] text-muted-foreground",children:"Runtime environment, connectivity, and build metadata."})]}),d.length>1&&f.jsxs("div",{className:"w-48 space-y-1.5",children:[f.jsx("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:"Inspect node"}),f.jsxs(Pb,{value:T.id,onValueChange:h,children:[f.jsx(Kf,{className:"h-7 rounded-lg border-border/70 bg-background/70 text-[11px]",children:f.jsx(Qb,{placeholder:"Choose a node"})}),f.jsx(Zf,{className:"settings-node-select-content rounded-lg text-[10px] leading-4",children:d.map(ee=>f.jsx(Nr,{value:ee.id,className:"settings-node-select-item py-1 pl-6 pr-2 text-[10px] leading-4 [&>span]:left-1.5 [&_svg]:h-3 [&_svg]:w-3",children:K_(ee,l==null?void 0:l.nodeId)},ee.id))})]})]})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsxs(pt,{variant:o?"default":"outline",className:"gap-1 rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:[f.jsx(gN,{className:"h-3 w-3"}),o?"Live link":"Reconnecting"]}),f.jsxs(pt,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:["Uptime ",H_(N.uptime)]})]})]})]}),!C&&f.jsx("div",{className:"rounded-xl border border-dashed border-border/70 bg-muted/20 px-3 py-2 text-[11px] text-muted-foreground",children:"This node has not synced its settings snapshot to the leader yet. Wait for the next keepalive and reopen the dialog if needed."}),f.jsxs(FR,{defaultValue:"session",className:"space-y-2",children:[f.jsxs(px,{className:"h-auto flex-wrap rounded-xl border border-border/60 bg-muted/40 p-0.5",children:[f.jsx(Rs,{value:"session",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Session"}),f.jsx(Rs,{value:"access",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Access"}),f.jsx(Rs,{value:"about",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"About"})]}),f.jsxs(Vs,{value:"session",className:"mt-0 grid gap-2 xl:grid-cols-[1.15fr_0.85fr]",children:[f.jsxs(Dn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(kn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(zn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(O0,{className:"h-3.5 w-3.5 text-primary"}),"Selected node"]}),f.jsx(Ln,{className:"text-[10px]",children:"Cluster role, identity, and node-scoped runtime state."})]}),f.jsxs(Un,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(Ze,{label:"Node ID",value:N.nodeId,mono:!0}),f.jsx(Ze,{label:"Status",value:T.status}),f.jsx(Ze,{label:"Role",value:T.role}),f.jsx(Ze,{label:"Endpoint",value:T.endpoint,mono:!0}),f.jsx(Ze,{label:"Joined",value:Gt(T.joinedAt)}),f.jsx(Ze,{label:"Heartbeat",value:Gt(T.lastHeartbeat)}),f.jsx(Ze,{label:"Capabilities",value:T.capabilities.length>0?T.capabilities.join(", "):"None"})]})]}),f.jsxs(Dn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(kn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(zn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(JE,{className:"h-3.5 w-3.5 text-primary"}),"OS info"]}),f.jsx(Ln,{className:"text-[10px]",children:"Host and resource details reported by the current process."})]}),f.jsxs(Un,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(Ze,{label:"Host",value:((me=N.os)==null?void 0:me.hostname)??"Unavailable"}),f.jsx(Ze,{label:"Platform",value:N.os?`${N.os.platform} ${N.os.release}`:"Unavailable"}),f.jsx(Ze,{label:"Arch",value:((fe=N.os)==null?void 0:fe.arch)??"Unavailable"}),f.jsx(Ze,{label:"CPU",value:((ce=N.os)==null?void 0:ce.cpuModel)??"Unavailable"}),f.jsx(Ze,{label:"Cores",value:String(((de=N.os)==null?void 0:de.cpuCount)??"Unavailable")}),f.jsx(Ze,{label:"Memory",value:N.os?`${Fv(N.os.freeMemoryBytes)} free / ${Fv(N.os.totalMemoryBytes)} total`:"Unavailable"})]})]}),A&&f.jsx("div",{className:"xl:col-span-2",children:f.jsx(k_,{checkedLabel:Gt(A.checkedAt),disableAuthDefault:((re=N.auth)==null?void 0:re.enabled)===void 0?void 0:N.auth.enabled===!1,endpoint:T.endpoint,isLiveLocalNode:E,nodeId:T.id,nodeName:T.name,onRefresh:c,pid:(M=N.runtime)==null?void 0:M.pid,transportType:T.transportType,update:A,workDir:(($=N.runtime)==null?void 0:$.workDir)??T.workDir})}),f.jsxs(Dn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)] xl:col-span-2",children:[f.jsxs(kn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(zn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(_0,{className:"h-3.5 w-3.5 text-primary"}),"Available agents"]}),f.jsx(Ln,{className:"text-[10px]",children:E?"Live command availability for runtime agents on this node.":"Most recent agent availability snapshot synced from this node."})]}),f.jsx(Un,{"data-agent-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:(N.agents??[]).map(ee=>f.jsx(X_,{agent:ee,nodeName:T.name,activeOperation:g.get(`${T.id}:${ee.id}`),onUpgrade:H},ee.id))})]})]}),f.jsxs(Vs,{value:"access",className:"mt-0 grid gap-2 xl:grid-cols-2",children:[f.jsxs(Dn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(kn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(zn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(BE,{className:"h-3.5 w-3.5 text-primary"}),"Access surface"]}),f.jsx(Ln,{className:"text-[10px]",children:"How this node is exposed to the dashboard and other peers."})]}),f.jsxs(Un,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(Ze,{label:"Transport",value:T.transportType??N.transportType??"direct"}),f.jsx(Ze,{label:"Node URL",value:T.endpoint,mono:!0}),f.jsx(Ze,{label:"Node tunnel",value:T.devtunnelEndpoint??"Disabled",mono:!!T.devtunnelEndpoint}),f.jsx(Ze,{label:"Dashboard URL",value:T.dashboardOrigin??N.localDashboardOrigin??"Unavailable",mono:!!(T.dashboardOrigin||N.localDashboardOrigin)}),f.jsx(Ze,{label:"Local dashboard",value:N.localDashboardOrigin??"Unavailable",mono:!!N.localDashboardOrigin})]})]}),f.jsxs(Dn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(kn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(zn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(AN,{className:"h-3.5 w-3.5 text-primary"}),"Auth"]}),f.jsx(Ln,{className:"text-[10px]",children:"Current bearer-auth and trusted access posture."})]}),f.jsxs(Un,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(Ze,{label:"Enabled",value:(F=N.auth)!=null&&F.enabled?"Yes":"No"}),f.jsx(Ze,{label:"Same tenant",value:(J=N.auth)!=null&&J.allowSameTenant?"Allowed":"Off"}),f.jsx(Ze,{label:"Allowed users",value:(G=N.auth)!=null&&G.allowedUsers.length?N.auth.allowedUsers.join(", "):"None"})]})]}),f.jsxs(Dn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(kn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(zn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(nN,{className:"h-3.5 w-3.5 text-primary"}),"Paths"]}),f.jsx(Ln,{className:"text-[10px]",children:"Workspace and runtime paths currently used by this node."})]}),f.jsxs(Un,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(Ze,{label:"Work dir",value:((R=N.runtime)==null?void 0:R.workDir)??N.workDir??"Unavailable",mono:!!(((Y=N.runtime)==null?void 0:Y.workDir)??N.workDir)}),f.jsx(Ze,{label:"Storage",value:((Q=N.runtime)==null?void 0:Q.storagePath)??"Unavailable",mono:!!((W=N.runtime)!=null&&W.storagePath)}),f.jsx(Ze,{label:"Process cwd",value:((te=N.runtime)==null?void 0:te.cwd)??"Unavailable",mono:!!((oe=N.runtime)!=null&&oe.cwd)}),f.jsx(Ze,{label:"Started",value:Gt((ne=N.runtime)==null?void 0:ne.startedAt)}),f.jsx(Ze,{label:"PID",value:N.runtime?String(N.runtime.pid):"Unavailable",mono:!!N.runtime})]})]}),f.jsxs(Dn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(kn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(zn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(js,{className:"h-3.5 w-3.5 text-primary"}),"Startup checks"]}),f.jsx(Ln,{className:"text-[10px]",children:"Dependency preflight snapshot persisted during node startup."})]}),f.jsxs(Un,{className:"space-y-3 px-3 pb-2.5",children:[f.jsxs("div",{className:"rounded-xl border border-border/60 bg-background/70 px-3 py-2",children:[f.jsx("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:"Last checked"}),f.jsx("div",{className:"mt-0.5 text-[11px] text-foreground",children:Gt((ue=N.startupRequirements)==null?void 0:ue.lastCheckedAt)})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsx(Uo,{formatDateTime:Gt,name:"Azure CLI",status:j.az,statusVariant:Er}),f.jsx(Uo,{formatDateTime:Gt,name:"DevTunnel",status:j.devtunnel,statusVariant:Er}),f.jsx(Uo,{formatDateTime:Gt,name:"Claude Code",status:j.claude,statusVariant:Er}),f.jsx(Uo,{formatDateTime:Gt,name:"Codex",status:j.codex,statusVariant:Er}),f.jsx(Uo,{formatDateTime:Gt,name:"Copilot CLI",status:j.copilot,statusVariant:Er})]})]})]})]}),f.jsx(v_,{formatDateTime:Gt,viewInfo:N})]})]})}function J_({initialSelectedNodeId:n,open:l,onOpenChange:o,showTrigger:i=!0}={}){const{cluster:c,systemInfo:d,sseConnected:m,refresh:h}=A0();return f.jsx(V5,{open:l,onOpenChange:o,showTrigger:i,children:f.jsx(F_,{cluster:c,systemInfo:d,sseConnected:m,initialSelectedNodeId:n,onRefresh:h})})}const Gj="codex",Xj="bypass",W_=[{value:"codex",label:"Codex",supportsFollowUp:!0},{value:"claudecode",label:"Claude Code",supportsFollowUp:!0},{value:"copilot",label:"Copilot",supportsFollowUp:!0},{value:"mars",label:"mars",disabled:!0,description:"coming soon"},{value:"eureka",label:"eureka",disabled:!0,description:"coming soon"}],Pj=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],Qj=new Set(W_.filter(n=>n.supportsFollowUp).map(n=>n.value)),Kj=[{value:"active",label:"Active"},{value:"running",label:"Running"},{value:"waiting",label:"Waiting"},{value:"closed",label:"Closed"},{value:"shared",label:"Shared"},{value:"archived",label:"Archived"}],Zj=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],e3=new Set(["pending","assigned"]),t3=new Set(["running"]),n3=new Set(["completed","failed","cancelled"]);function Ij(n,l){switch(l){case"running":return t3.has(n.status);case"waiting":return e3.has(n.status);case"closed":return n3.has(n.status);case"shared":return!!n.activeShare;case"archived":return n.status==="archived";case"active":default:return n.status!=="archived"}}function Fj(n,l){if(l==="all")return!0;const o=n.conversationKind==="nativeSession";return l==="native"?o:!o}function Jj(n,l){const o=l.trim().toLowerCase();return o?[n.title,n.description,n.id,n.agent,n.assignedTo??"",n.assignedNodeName??"",n.project??"",n.effectiveProjectPath??"",n.conversationKind==="nativeSession"?"native session":"meshy chat",n.activeShare?"shared conversation":""].some(i=>i.toLowerCase().includes(o)):!0}function a3(n,l,o){if(!n)return"unassigned";const i=l==null?void 0:l.find(c=>c.id===n);return(i==null?void 0:i.name)??o??n.slice(0,8)}function Wj(n,l,o){return a3(n,l,o).toLowerCase()}function eM(n,l,o){return!n.assignedTo||(o==null?void 0:o.id)===n.assignedTo?!0:(l==null?void 0:l.some(i=>i.id===n.assignedTo))??!1}function tM(n,l){return[...n].sort((o,i)=>o.id===l?-1:i.id===l?1:o.name.localeCompare(i.name))}function nM(n){if(!n||typeof n!="object")return null;const l=n,o=l.createMode,i=o==="chat"||o==="native"?o:void 0;return{draftNewTask:l.draftNewTask===!0,returnRoute:typeof l.returnRoute=="string"?l.returnRoute:void 0,returnTaskId:typeof l.returnTaskId=="string"||l.returnTaskId===null?l.returnTaskId:void 0,createMode:i}}function aM(n){switch(n){case"running":return"bg-amber-500";case"completed":return"bg-emerald-500";case"failed":return"bg-destructive";case"cancelled":case"archived":return"bg-slate-400";case"assigned":return"bg-teal-500";case"pending":default:return"bg-muted-foreground"}}function lM(n){return n==="default workspace"?n:n.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??n}function rM(n){const l=Date.now()-n;return l<6e4?"just now":l<36e5?`${Math.floor(l/6e4)}m`:l<864e5?`${Math.floor(l/36e5)}h`:`${Math.floor(l/864e5)}d`}function oM(n){return new Date(n).toLocaleString()}function iM(n){const l=Math.floor(n/1e3),o=Math.floor(l/3600),i=Math.floor(l%3600/60),c=l%60;return`${String(o).padStart(2,"0")}:${String(i).padStart(2,"0")}:${String(c).padStart(2,"0")}`}async function l3(n,l="Copied to clipboard"){var o,i,c;try{if((i=(o=globalThis.navigator)==null?void 0:o.clipboard)!=null&&i.writeText)return await globalThis.navigator.clipboard.writeText(n),at.success(l),!0;const d=globalThis.document,m=(c=d==null?void 0:d.execCommand)==null?void 0:c.bind(d);if(!(d!=null&&d.body)||typeof d.createElement!="function"||typeof m!="function")throw new Error("Clipboard access is unavailable");const h=d.createElement("textarea"),g=d.activeElement,p=g&&typeof g.focus=="function"?g:null;h.value=n,h.setAttribute("readonly","true"),h.style.position="fixed",h.style.opacity="0",h.style.pointerEvents="none",d.body.appendChild(h),h.select(),h.setSelectionRange(0,h.value.length);const x=m("copy");if(d.body.removeChild(h),p==null||p.focus(),!x)throw new Error("Clipboard access is unavailable");return at.success(l),!0}catch(d){return at.error(d instanceof Error?d.message:"Failed to copy"),!1}}function sM(n,l,o){const i=new Map;for(const d of n){const m=d.assignedTo??null,h=m??"__unassigned__",g=m?l.get(m)??d.assignedNodeName??m.slice(0,8):"Unassigned",p=d.effectiveProjectPath??d.project??"default workspace";i.has(h)||i.set(h,{nodeId:m,nodeName:g,dirMap:new Map});const x=i.get(h);x.dirMap.has(p)||x.dirMap.set(p,[]),x.dirMap.get(p).push(d)}const c=Array.from(i.values()).map(({nodeId:d,nodeName:m,dirMap:h})=>{const g=Array.from(h.entries()).map(([p,x])=>({path:p,tasks:x})).sort((p,x)=>x.tasks.length-p.tasks.length||p.path.localeCompare(x.path));return{nodeId:d,nodeName:m,dirs:g}});return c.sort((d,m)=>{if(o){if(d.nodeId===o)return-1;if(m.nodeId===o)return 1}return d.nodeId===null?1:m.nodeId===null?-1:d.nodeName.localeCompare(m.nodeName)}),c}const r3={node:"border-teal-500/30 bg-teal-500/10 text-teal-700 dark:text-teal-300",task:"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300",election:"border-indigo-500/30 bg-indigo-500/10 text-indigo-700 dark:text-indigo-300",cluster:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",transport:"border-sky-500/30 bg-sky-500/10 text-sky-700 dark:text-sky-300"},o3={node:"text-teal-700/70 dark:text-teal-300/70",task:"text-amber-700/70 dark:text-amber-300/70",election:"text-indigo-700/70 dark:text-indigo-300/70",cluster:"text-emerald-700/70 dark:text-emerald-300/70",transport:"text-sky-700/70 dark:text-sky-300/70"};function i3(n){return n.split(".")[0]??"unknown"}function s3(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function wr(n,l){return(l==null?void 0:l.get(n))??n}function Kx(n,l){const o=n.data,i=o.operation;switch(n.type){case"node.joined":return`${o.name} joined the cluster`;case"node.left":return`${wr(o.nodeId,l)} left (${o.reason})`;case"node.status":return`${wr(o.nodeId,l)} is now ${o.status}`;case"node.operation.created":return`${i==null?void 0:i.kind} ${i==null?void 0:i.status} on ${wr(i==null?void 0:i.nodeId,l)}`;case"node.operation.updated":return`${i==null?void 0:i.kind} ${i==null?void 0:i.status} on ${wr(i==null?void 0:i.nodeId,l)}`;case"transport.changed":return`${wr(o.nodeId,l)} transport switched to ${o.transportType}`;case"task.created":return`"${o.title}" created`;case"task.assigned":return`task assigned to ${wr(o.nodeId,l)}`;case"task.status":return`task ${o.taskId.slice(0,8)} -> ${o.status}`;case"election.started":return`candidate ${o.candidateId.slice(0,8)} term ${o.term}`;case"election.complete":return`leader elected, term ${o.term}`;case"cluster.state":return`${o.nodeCount} nodes, term ${o.term}`;default:return JSON.stringify(o)}}function c3(n){return JSON.stringify(n,null,2)}function u3({events:n,maxHeight:l="400px",nodeNameById:o,onDismiss:i,density:c="default"}){if(n.length===0)return null;const d=c==="compact";return f.jsx("div",{className:"overflow-y-auto pr-1",style:{maxHeight:l},children:f.jsx("div",{className:"space-y-1.5",children:n.map(m=>{const h=i3(m.type);return f.jsx("div",{className:se("transition-colors hover:bg-muted/30",d?"rounded-sm px-1 py-0.5":"rounded-lg px-1.5 py-1"),children:f.jsxs("div",{className:"space-y-1",children:[f.jsxs("div",{className:"flex items-start justify-between gap-1.5",children:[f.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[f.jsx("div",{className:se("font-mono text-muted-foreground",d?"text-[8px]":"text-[9px]"),children:s3(m.timestamp)}),d?f.jsx("span",{className:se("max-w-[8.5rem] truncate text-[7px] font-medium uppercase tracking-[0.08em] text-muted-foreground/70",o3[h]),children:m.type}):f.jsx(pt,{variant:"outline",className:se("w-fit text-[9px] font-medium uppercase tracking-[0.14em] px-1.5 py-0",r3[h]),children:m.type})]}),f.jsxs("div",{className:se("flex shrink-0 items-center",d?"gap-px":"gap-0.5"),children:[f.jsx(Sn,{type:"button",variant:"ghost",size:"icon",className:se("rounded-sm text-muted-foreground hover:text-foreground",d?"h-3.5 w-3.5 p-0 opacity-65 hover:bg-muted/40 hover:opacity-100 [&_svg]:size-2.5":"h-5 w-5"),onClick:()=>void l3(c3(m),"Event copied"),"aria-label":`Copy ${m.type} event`,title:"Copy event",children:f.jsx(IE,{className:d?"h-2.5 w-2.5":"h-3 w-3"})}),i&&f.jsx(Sn,{type:"button",variant:"ghost",size:"icon",className:se("rounded-sm text-muted-foreground hover:text-foreground",d?"h-3.5 w-3.5 p-0 opacity-65 hover:bg-muted/40 hover:opacity-100 [&_svg]:size-2.5":"h-5 w-5"),onClick:()=>i(m.id),"aria-label":`Dismiss ${m.type} event`,title:"Dismiss event",children:f.jsx(z0,{className:d?"h-2.5 w-2.5":"h-3 w-3"})})]})]}),f.jsx("div",{className:"text-[9px] leading-snug text-foreground/85",children:Kx(m,o)})]})},m.id)})})})}const d3=["node.","election.","transport."],f3="cluster.state";function m3(n){return n.type==="node.status"?!1:d3.some(l=>n.type.startsWith(l))}function h3(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function p3(n,l){return n?{time:h3(n.timestamp),text:Kx(n,l)}:null}function g3(n){return n.transportType==="devtunnel"||!!n.devtunnelEndpoint}function v3(n){if(n.length===0)return"No node tunnel";const l=n.filter(c=>c.status==="offline").length;if(l>0)return`${l} offline`;const o=n.filter(c=>{var d;return((d=c.devtunnelHealth)==null?void 0:d.status)==="failed"}).length;if(o>0)return`${o} failed`;const i=n.filter(c=>{var d;return c.status!=="offline"&&((d=c.devtunnelHealth)==null?void 0:d.status)!=="healthy"}).length;return i>0?`${i} checking`:"Healthy"}function y3(n,l){var c;const o=(l==null?void 0:l.get(n.id))??n.name??n.id;if(n.status==="offline")return{label:o,status:"offline"};const i=((c=n.devtunnelHealth)==null?void 0:c.status)??"checking";return{label:o,status:i}}function b3(n){if(n.length===0)return"No nodes";const l=n.filter(i=>i.status==="offline").length;if(l>0)return`${l} offline`;const o=n.filter(i=>i.status==="busy").length;return o>0?`${o} busy`:"Healthy"}function x3(n,l){return{label:(l==null?void 0:l.get(n.id))??n.name??n.id,status:n.status}}function S3({connected:n,events:l,nodes:o=[],currentNode:i=null,nodeNameById:c,defaultOpen:d=!1,onRestart:m}){const[h,g]=y.useState(d),[p,x]=y.useState(!0),[v,w]=y.useState(new Set),[T,N]=y.useState(!1),E=y.useRef(null),C=y.useRef(null),A=y.useMemo(()=>l.filter(J=>m3(J)&&!v.has(J.id)),[l,v]),j=y.useMemo(()=>l.find(J=>J.type===f3)??A[0],[l,A]),O=y.useMemo(()=>p3(j,c),[j,c]),z=y.useMemo(()=>{const J=new Map(o.map(G=>[G.id,G]));return i&&J.set(i.id,i),Array.from(J.values())},[i,o]),X=y.useMemo(()=>z.filter(g3),[z]),K=X.some(J=>{var G;return J.status==="offline"||((G=J.devtunnelHealth)==null?void 0:G.status)==="failed"}),V=z.some(J=>J.status==="offline"),H=z.some(J=>J.status==="busy"),le=z.length>0,ie=(i==null?void 0:i.name)??"offline",me=(i==null?void 0:i.role)==="leader"?"Leader":(i==null?void 0:i.role)==="follower"?"Follower":"Node",fe=T?"Relaunching runtime...":"Relaunch to apply update";function ce(){C.current&&(clearTimeout(C.current),C.current=null)}function de(){ce(),g(!0)}function re(){ce(),C.current=setTimeout(()=>{g(!1),C.current=null},180)}function M(){ce()}function $(){ce(),g(!1)}async function F(){if(!(!m||T)){N(!0);try{await m()}finally{N(!1)}}}return y.useEffect(()=>()=>{ce()},[]),y.useEffect(()=>{w(J=>{if(J.size===0)return J;const G=new Set(l.map(Y=>Y.id)),R=new Set(Array.from(J).filter(Y=>G.has(Y)));return R.size===J.size?J:R})},[l]),y.useEffect(()=>{if(!h)return;const J=R=>{var Y;(Y=E.current)!=null&&Y.contains(R.target)||(ce(),g(!1))},G=R=>{R.key==="Escape"&&(ce(),g(!1))};return document.addEventListener("pointerdown",J),document.addEventListener("keydown",G),()=>{document.removeEventListener("pointerdown",J),document.removeEventListener("keydown",G)}},[h]),f.jsxs("div",{ref:E,className:"relative",children:[f.jsxs("button",{type:"button","aria-label":n?"Cluster link connected":"Cluster link reconnecting","aria-expanded":h,"aria-haspopup":"dialog",onClick:()=>g(J=>!J),onMouseEnter:de,onMouseLeave:re,className:se("flex h-8 max-w-[18rem] items-center gap-1.5 rounded-sm px-2 text-[10px] transition-all sm:gap-2 sm:px-2.5 sm:text-[11px]",n?"bg-muted/40 text-muted-foreground hover:bg-muted/60 hover:text-foreground":"bg-destructive/8 text-destructive hover:bg-destructive/12",h&&(n?"bg-muted/60 text-foreground":"bg-destructive/12")),title:n?"Cluster link connected":"Cluster link reconnecting",children:[f.jsxs("span",{className:se("relative flex h-2 w-2 shrink-0"),children:[n&&f.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-emerald-400 opacity-60"}),f.jsx("span",{className:se("relative inline-flex h-2 w-2 rounded-full",n?"bg-emerald-500":"bg-destructive")})]}),f.jsxs("span",{className:"hidden min-w-0 items-center gap-2 sm:flex",children:[f.jsx("span",{className:"truncate font-medium text-foreground",children:ie}),f.jsx("span",{className:se("shrink-0 rounded border px-1 py-px text-[8px] font-semibold uppercase tracking-[0.1em]",n?"border-emerald-500/25 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-destructive/30 bg-destructive/10 text-destructive"),children:me})]})]}),h&&f.jsxs("div",{role:"dialog","aria-label":"Live link connection events",onMouseEnter:M,onMouseLeave:$,className:"absolute right-0 top-[calc(100%+0.4rem)] z-50 w-[18rem] max-w-[calc(100vw-1.5rem)] overflow-hidden rounded-lg border border-border/70 bg-background/96 shadow-[0_28px_90px_-42px_rgba(0,0,0,var(--panel-shadow-alpha))] backdrop-blur-xl max-sm:fixed max-sm:right-3 max-sm:top-[3.75rem] max-sm:w-[calc(100vw-1.5rem)]",children:[f.jsx("div",{className:"border-b border-border/60 bg-muted/25 px-2.5 py-1.5",children:f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"flex items-center gap-1.5",children:[n?f.jsx(js,{className:"h-3 w-3 text-emerald-500"}):f.jsx(DN,{className:"h-3 w-3 text-destructive"}),f.jsx("span",{className:"text-[10px] font-semibold text-foreground",children:"Live link"}),f.jsx("span",{className:"text-[9px] text-muted-foreground",children:n?"· SSE connected":"· reconnecting"})]}),f.jsx("div",{className:se("rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.12em]",n?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-destructive/30 bg-destructive/10 text-destructive"),children:n?"Connected":"Retrying"})]})}),f.jsxs("div",{className:"grid grid-cols-2 border-b border-border/60",children:[f.jsxs("div",{className:"border-r border-border/60 px-2.5 py-1.5",children:[f.jsx("div",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Events"}),f.jsx("div",{className:"mt-0.5 text-base font-semibold tracking-tight text-foreground",children:A.length})]}),f.jsxs("div",{className:"min-w-0 px-2.5 py-1.5",children:[f.jsx("div",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Latest"}),O?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"mt-0.5 truncate text-[9px] leading-snug text-foreground/80",children:O.text}),f.jsx("div",{className:"font-mono text-[8px] text-muted-foreground/60",children:O.time})]}):f.jsx("div",{className:"mt-0.5 text-[8px] text-muted-foreground/50",children:"—"})]})]}),f.jsxs("div",{className:"border-b border-border/60 px-2.5 py-1.5",children:[f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[V?f.jsx(ms,{className:"h-3 w-3 shrink-0 text-destructive"}):H?f.jsx(js,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx(Ho,{className:se("h-3 w-3 shrink-0",le?"text-emerald-500":"text-muted-foreground")}),f.jsx("span",{className:"text-[9px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Node health"})]}),f.jsx("span",{className:se("shrink-0 rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",V?"border-destructive/30 bg-destructive/10 text-destructive":H?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":le?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-border/70 bg-background/60 text-muted-foreground"),children:b3(z)})]}),z.length>0&&f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:z.map(J=>{const{label:G,status:R}=x3(J,c),Y=R==="offline",Q=R==="busy";return f.jsxs("div",{"aria-label":`${G} ${R}`,className:se("flex items-center justify-between gap-2 rounded-sm px-2 py-0.5",Y?"bg-destructive/6":Q?"bg-amber-500/6":"bg-emerald-500/5"),title:`${G} ${R}`,children:[f.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:G}),Y?f.jsx(ms,{className:"h-3 w-3 shrink-0 text-destructive"}):Q?f.jsx(mv,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx(Ho,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},J.id)})})]}),X.length>0&&f.jsxs("div",{className:"border-b border-border/60 px-2.5 py-1.5",children:[f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[K?f.jsx(ms,{className:"h-3 w-3 shrink-0 text-destructive"}):f.jsx(Ho,{className:"h-3 w-3 shrink-0 text-emerald-500"}),f.jsx("span",{className:"text-[9px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"DevTunnel"})]}),f.jsx("span",{className:se("shrink-0 rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",K?"border-destructive/30 bg-destructive/10 text-destructive":"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"),children:v3(X)})]}),f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:X.map(J=>{var te;const{label:G,status:R}=y3(J,c),Y=R==="failed"||R==="offline",Q=R!=="healthy"&&R!=="failed"&&R!=="offline",W=(te=J.devtunnelHealth)!=null&&te.reason?`${G} ${R}: ${J.devtunnelHealth.reason}`:`${G} ${R}`;return f.jsxs("div",{"aria-label":`${G} ${R}`,className:se("flex items-center justify-between gap-2 rounded-sm px-2 py-0.5",Y?"bg-destructive/6":Q?"bg-muted/30":"bg-emerald-500/5"),title:W,children:[f.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:G}),Y?f.jsx(ms,{className:"h-3 w-3 shrink-0 text-destructive"}):Q?f.jsx(mv,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):f.jsx(Ho,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},J.id)})})]}),f.jsxs("div",{children:[f.jsxs("button",{type:"button",onClick:()=>x(J=>!J),className:"flex w-full items-center justify-between px-2.5 py-1.5 text-left hover:bg-muted/30",children:[f.jsxs("span",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:["Notifications ",A.length>0&&`(${A.length})`]}),p?f.jsx(Fs,{className:"h-3 w-3 text-muted-foreground"}):f.jsx(Fd,{className:"h-3 w-3 text-muted-foreground"})]}),p&&f.jsx("div",{className:"px-2 pb-2",children:f.jsx(u3,{events:A,maxHeight:"12rem",density:"compact",emptyTitle:"No connection events yet",emptyDescription:"Node, election, and system events will appear here.",nodeNameById:c,onDismiss:J=>w(G=>new Set(G).add(J))})})]}),f.jsxs("div",{className:"flex items-center justify-between gap-1 border-t border-border/60 px-2.5 py-1",children:[f.jsx("div",{children:m&&f.jsxs("div",{className:"group/restart relative flex items-center",children:[f.jsxs(Sn,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm border border-border/50 bg-background/45 px-1.5 text-[9px] font-medium text-muted-foreground hover:border-emerald-500/25 hover:bg-emerald-500/10 hover:text-foreground [&_svg]:size-2.5",onClick:()=>void F(),disabled:T,"aria-label":T?"Relaunching runtime":"Relaunch runtime","aria-describedby":"live-link-restart-hint",title:fe,children:[f.jsx(xN,{className:se("h-2.5 w-2.5",T&&"animate-pulse")}),f.jsx("span",{children:"Relaunch"})]}),f.jsx("span",{id:"live-link-restart-hint",role:"tooltip",className:"pointer-events-none absolute left-6 top-1/2 z-10 -translate-y-1/2 whitespace-nowrap rounded-sm border border-border/70 bg-background px-1.5 py-0.5 text-[8px] text-muted-foreground opacity-0 shadow-sm transition-opacity group-hover/restart:opacity-100 group-focus-within/restart:opacity-100",children:fe})]})}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(Sn,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:()=>w(new Set(l.map(J=>J.id))),disabled:A.length===0,title:"Dismiss all notifications",children:"Dismiss all"}),f.jsx(Sn,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:()=>g(!1),children:"Close"})]})]})]})]})}const jr="fluent",w3="clean",Xd="meshy-layout-default-migrated-to-compact",hf="true",E3="compact",N3=new Set(["airy","clean","fluent"]);function T3(n){return n!==null&&N3.has(n)}function em(n){return n===E3?"fluent":T3(n)?n:null}function C3(n,l){const o=em(n);return o===w3&&l!==hf?jr:o??jr}const $o="finsight",Zx="default",A3=new Set(["light","dark","system"]),R3=new Set(["porcelain","warm","finsight","edge"]),Ix=y.createContext(null);function _3(n){const l=new URLSearchParams(n).get("theme");return Fx(l)?l:null}function j3(n){const l=new URLSearchParams(n).get("palette");return tm(l)}function M3(n){const l=new URLSearchParams(n).get("layout");return em(l)}function O3(){if(typeof document>"u")return null;const n=document.documentElement;return{theme:n.classList.contains("dark")?"dark":"light",palette:tm(n.getAttribute("data-palette"))??$o,layout:em(n.getAttribute("data-layout"))??jr}}function cM(n,l=O3()){if(!l)return n;try{const o=/^[a-z][a-z\d+\-.]*:/i.test(n),i=typeof window<"u"?window.location.href:"http://localhost",c=new URL(n,i);return c.searchParams.set("theme",l.theme),c.searchParams.set("palette",l.palette),c.searchParams.set("layout",l.layout),o?c.toString():`${c.pathname}${c.search}${c.hash}`}catch{return n}}function D3({children:n}){const[l,o]=y.useState(()=>typeof window<"u"?_3(window.location.search)??L3(localStorage.getItem("meshy-theme"))??"system":"system"),[i,c]=y.useState(()=>typeof window<"u"?j3(window.location.search)??U3(localStorage.getItem("meshy-palette"))??$o:$o),[d,m]=y.useState(()=>{if(typeof window<"u"){const h=M3(window.location.search);if(h)return localStorage.setItem(Xd,hf),h;const g=C3(localStorage.getItem("meshy-layout"),localStorage.getItem(Xd));return localStorage.setItem(Xd,hf),g}return jr});return y.useEffect(()=>{const h=document.documentElement,g=p=>{if(p==="system"){const x=window.matchMedia("(prefers-color-scheme: dark)").matches;h.classList.toggle("dark",x)}else h.classList.toggle("dark",p==="dark")};if(g(l),localStorage.setItem("meshy-theme",l),l==="system"){const p=window.matchMedia("(prefers-color-scheme: dark)"),x=()=>g("system");return p.addEventListener("change",x),()=>p.removeEventListener("change",x)}},[l]),y.useEffect(()=>{const h=document.documentElement;i===$o?h.removeAttribute("data-palette"):h.setAttribute("data-palette",i),localStorage.setItem("meshy-palette",i)},[i]),y.useEffect(()=>{const h=document.documentElement;d===jr?h.removeAttribute("data-layout"):h.setAttribute("data-layout",d),localStorage.setItem("meshy-layout",d)},[d]),f.jsx(Ix.Provider,{value:{theme:l,setTheme:o,palette:i,setPalette:c,layout:d,setLayout:m},children:n})}function k3(){const n=y.useContext(Ix);if(!n)throw new Error("useTheme must be used within ThemeProvider");return n}function Fx(n){return n!==null&&A3.has(n)}function z3(n){return n!==null&&R3.has(n)}function L3(n){return Fx(n)?n:null}function tm(n){return n===Zx?"porcelain":z3(n)?n:null}function U3(n){return n===Zx?null:tm(n)}const B3=[{value:"light",label:"Light",icon:D0},{value:"dark",label:"Dark",icon:M0},{value:"system",label:"System",icon:j0}],Jx=[{value:"finsight",label:"FinSight",hint:"Cool sage green"},{value:"porcelain",label:"Porcelain",hint:"Blue workspace"},{value:"warm",label:"Warm",hint:"Cream + amber"},{value:"edge",label:"Edge",hint:"Rounded violet panels"}],Wx=[{value:"airy",label:"Airy",hint:"Gradients, blur, spacious"},{value:"clean",label:"Clean",hint:"Flat, borders, high density"},{value:"fluent",label:"Fluent",hint:"Compact neutral"}];function H3(){const{theme:n,setTheme:l,palette:o,setPalette:i,layout:c,setLayout:d}=k3(),[m,h]=y.useState(!1),g=y.useRef(null),p=y.useRef(null),x=n==="dark"?M0:n==="light"?D0:j0,v=()=>{g.current&&(clearTimeout(g.current),g.current=null)},w=()=>{v(),g.current=setTimeout(()=>h(!1),180)};return y.useEffect(()=>{if(!m)return;const T=N=>{p.current&&!p.current.contains(N.target)&&h(!1)};return document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},[m]),y.useEffect(()=>()=>v(),[]),f.jsxs("div",{ref:p,className:"relative",onMouseEnter:()=>{v(),h(!0)},onMouseLeave:w,children:[f.jsx(Sn,{variant:"ghost",size:"icon",onClick:()=>h(T=>!T),className:se("h-8 w-8 rounded-sm",o!==$o||c!==jr?"text-primary":"text-muted-foreground hover:bg-muted/50 hover:text-foreground"),title:"Appearance","aria-haspopup":"menu","aria-expanded":m,children:f.jsx(x,{className:"h-4 w-4"})}),m&&f.jsxs("div",{role:"menu",className:"fixed left-2 right-2 top-[4.25rem] z-50 w-auto max-w-none rounded-lg border border-border/70 bg-popover/95 p-2.5 text-popover-foreground shadow-[0_28px_90px_-34px_rgba(0,0,0,0.45)] backdrop-blur-xl sm:absolute sm:left-auto sm:right-0 sm:top-[calc(100%+6px)] sm:w-[28rem] sm:max-w-[28rem]",children:[f.jsxs("div",{className:"mb-2.5 flex items-end justify-between gap-3",children:[f.jsxs("div",{children:[f.jsx("div",{className:"text-[9px] font-semibold uppercase tracking-[0.2em] text-muted-foreground",children:"Appearance"}),f.jsxs("div",{className:"text-[11px] font-medium text-foreground",children:[V3(c)," / ",$3(o)]})]}),f.jsx("div",{className:"rounded-sm border border-border/60 bg-background/70 px-2 py-0.5 text-[9px] font-medium capitalize text-muted-foreground",children:n})]}),f.jsx("div",{className:"px-0.5 pb-1 text-[8px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Theme"}),f.jsx("div",{className:"mb-2.5 grid grid-cols-3 gap-1 rounded-sm bg-muted/35 p-1",children:B3.map(({value:T,label:N,icon:E})=>{const C=n===T;return f.jsxs("button",{type:"button",onClick:()=>l(T),role:"menuitemradio","aria-checked":C,className:se("flex min-h-[2.5rem] flex-col items-center justify-center gap-0.5 rounded-sm border px-2 py-1.5 text-[10px] font-medium transition-colors",C?"border-primary/55 bg-background text-primary shadow-sm":"border-transparent text-muted-foreground hover:border-border/70 hover:bg-background/80 hover:text-foreground"),children:[f.jsx(E,{className:"h-3.5 w-3.5"}),N]},T)})}),f.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[f.jsxs("div",{children:[f.jsx("div",{className:"px-0.5 pb-1 text-[8px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Layout"}),f.jsx("div",{className:"space-y-1",children:Wx.map(({value:T,label:N,hint:E})=>{const C=c===T;return f.jsxs("button",{type:"button",onClick:()=>d(T),role:"menuitemradio","aria-checked":C,className:se("flex min-h-[2.75rem] w-full items-center gap-2 rounded-sm border px-2 py-1.5 text-left transition-colors",C?"border-primary/55 bg-primary/10":"border-border/45 bg-background/45 hover:border-border hover:bg-muted/55"),children:[f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("div",{className:se("text-[11px] font-medium leading-tight",C?"text-primary":"text-foreground"),children:N}),f.jsx("div",{className:"mt-0.5 text-[9px] leading-tight text-muted-foreground",children:E})]}),C&&f.jsx(Ms,{className:"h-3 w-3 text-primary"})]},T)})})]}),f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center gap-1.5 px-0.5 pb-1 text-[8px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:[f.jsx(_N,{className:"h-2.5 w-2.5"}),"Palette"]}),f.jsx("div",{className:"space-y-1",children:Jx.map(({value:T,label:N,hint:E})=>{const C=o===T;return f.jsxs("button",{type:"button",onClick:()=>i(T),role:"menuitemradio","aria-checked":C,className:se("flex min-h-[2.75rem] w-full items-center gap-2 rounded-sm border px-2 py-1.5 text-left transition-colors",C?"border-primary/55 bg-primary/10":"border-border/45 bg-background/45 hover:border-border hover:bg-muted/55"),children:[f.jsx(Y3,{value:T}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("div",{className:se("text-[11px] font-medium leading-tight",C?"text-primary":"text-foreground"),children:N}),f.jsx("div",{className:"mt-0.5 text-[9px] leading-tight text-muted-foreground",children:E})]}),C&&f.jsx(Ms,{className:"h-3 w-3 text-primary"})]},T)})})]})]})]})]})}function V3(n){var l;return((l=Wx.find(o=>o.value===n))==null?void 0:l.label)??n}function $3(n){var l;return((l=Jx.find(o=>o.value===n))==null?void 0:l.label)??n}function Y3({value:n}){const l={porcelain:["hsl(212 76% 44%)","hsl(210 22% 98%)","hsl(174 42% 61%)"],warm:["hsl(35 88% 56%)","hsl(42 22% 97%)","hsl(160 60% 45%)"],finsight:["hsl(152 38% 32%)","hsl(150 14% 97%)","hsl(142 55% 58%)"],edge:["hsl(265 75% 55%)","hsl(260 12% 98%)","hsl(285 70% 65%)"]},[o,i,c]=l[n];return f.jsxs("div",{className:se("flex h-6 w-6 shrink-0 overflow-hidden border border-border/60 shadow-sm","rounded-sm"),children:[f.jsx("div",{className:"h-full w-1/3",style:{background:o}}),f.jsx("div",{className:"h-full w-1/3",style:{background:i}}),f.jsx("div",{className:"h-full w-1/3",style:{background:c}})]})}const Yo={tasks:{defaultSize:24,min:16,max:36,wheelStep:1},operations:{defaultSize:26,min:18,max:38,wheelStep:1},terminal:{defaultSize:18,min:10,max:30,wheelStep:1}},e1="meshy-dashboard-panel-state-v1",t1="meshy-dashboard-terminal-open-v1";function uM({operationsOpen:n}){return{layout:{desktopTasksOpen:!0,operationsOpen:n},sizes:{tasks:Yo.tasks.defaultSize,operations:Yo.operations.defaultSize,terminal:Yo.terminal.defaultSize}}}function Pd(n){return typeof n=="object"&&n!==null}function Jv(n,l){return typeof n=="boolean"?n:l}function Qd(n,l,o){return typeof l=="number"&&Number.isFinite(l)?qo(n,l):o}function qo(n,l){const o=Yo[n];return Math.min(o.max,Math.max(o.min,l))}function dM(n,l){if(!n)return l;try{const o=n.getItem(e1);if(!o)return l;const i=JSON.parse(o);if(!Pd(i))return l;const c=Pd(i.layout)?i.layout:{},d=Pd(i.sizes)?i.sizes:{};return{layout:{desktopTasksOpen:Jv(c.desktopTasksOpen,l.layout.desktopTasksOpen),operationsOpen:Jv(c.operationsOpen,l.layout.operationsOpen)},sizes:{tasks:Qd("tasks",d.tasks,l.sizes.tasks),operations:Qd("operations",d.operations,l.sizes.operations),terminal:Qd("terminal",d.terminal,l.sizes.terminal)}}}catch{return l}}function fM(n,l){if(n)try{n.setItem(e1,JSON.stringify(l))}catch{}}function q3(n,l){if(!n)return l;try{const o=n.getItem(t1);return o==="true"?!0:o==="false"?!1:l}catch{return l}}function G3(n,l){if(n)try{n.setItem(t1,String(l))}catch{}}function Wv(){var n;try{return((n=globalThis.window)==null?void 0:n.localStorage)??globalThis.localStorage??null}catch{return null}}function mM(n){return`${Number(n.toFixed(2))}rem`}function hM(n,l,o,i,c,d,m){const h=Number.isFinite(m)&&m>0?m:16;return n==="tasks"?qo(n,l+(c-o)/h):n==="operations"?qo(n,l+(o-c)/h):qo(n,l+(i-d)/h)}function pM(n,l,o){const i=o===0?0:o>0?-1:1;return qo(n,l+i*Yo[n].wheelStep)}function X3(){const{cluster:n,events:l,sseConnected:o}=A0(),i=Yn(),[c,d]=y.useState(()=>q3(Wv(),!1)),[m,h]=y.useState(""),[g,p]=y.useState(null),x=i.pathname==="/"||/^\/tasks\/[^/]+$/.test(i.pathname),v=y.useMemo(()=>{const N=new Map;for(const E of(n==null?void 0:n.nodes)??[])N.set(E.id,E.name);return n!=null&&n.self&&N.set(n.self.id,n.self.name),N},[n==null?void 0:n.nodes,n==null?void 0:n.self]),w=y.useCallback(N=>{d(E=>typeof N=="function"?N(E):N)},[]);y.useEffect(()=>{G3(Wv(),c)},[c]);async function T(){try{const N=await T0({reason:"restart"});at.info(`Restarting runtime. Follow ${N.logPath} for launch output.`),await Px({previousPid:N.pid})||at.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout.")}catch(N){at.error(N instanceof Error?N.message:"Runtime restart failed")}}return f.jsxs("div",{className:"relative h-full overflow-hidden bg-background text-foreground",children:[f.jsx("div",{className:"mesh-grid pointer-events-none absolute inset-0"}),f.jsxs("div",{className:"relative z-10 flex h-full min-h-0 flex-col",children:[f.jsx("header",{className:"relative z-50 shrink-0 px-2 py-2",children:f.jsxs("div",{className:"dashboard-panel dashboard-panel-muted animate-panel-settle mx-auto flex max-w-[1760px] items-center gap-0 rounded-lg px-3 py-2",children:[f.jsx("div",{className:"flex shrink-0 items-center gap-3 pr-3",children:f.jsxs(Id,{to:"/","aria-label":"Meshy home",className:"flex items-center gap-2",children:[f.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-sm border border-primary/20 bg-primary/10 text-primary shadow-sm",children:f.jsx(fN,{className:"h-3.5 w-3.5"})}),f.jsxs("div",{className:"hidden min-w-0 items-baseline gap-1.5 sm:flex",children:[f.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.24em] text-muted-foreground",children:"MESHY"}),f.jsx("span",{className:"truncate text-[13px] font-semibold tracking-tight text-foreground",children:"Workspace"})]})]})}),f.jsx("div",{className:"mx-0 hidden h-4 w-px shrink-0 bg-border/50 md:block"}),x&&f.jsxs("div",{className:"hidden min-w-0 flex-1 items-center px-3 md:flex",children:[g&&f.jsxs("nav",{"aria-label":"Current task location",className:"flex min-w-0 max-w-[38rem] items-center gap-1 rounded-sm bg-background/55 px-2 py-1 text-[10px] text-muted-foreground",children:[f.jsxs("button",{type:"button",onClick:()=>h(g.nodeName),className:"flex min-w-0 items-center gap-1 rounded-sm px-1 py-0.5 hover:bg-muted/60 hover:text-foreground",title:`Filter by ${g.nodeName}`,children:[f.jsx(O0,{className:"h-3 w-3 shrink-0 text-primary/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:g.nodeName})]}),f.jsx(Fd,{className:"h-3 w-3 shrink-0 text-border/80"}),f.jsxs("button",{type:"button",onClick:()=>h(g.projectLabel),className:"flex min-w-0 items-center gap-1 rounded-sm px-1 py-0.5 hover:bg-muted/60 hover:text-foreground",title:g.projectPath,children:[f.jsx(lN,{className:"h-3 w-3 shrink-0 text-muted-foreground/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:g.projectLabel})]}),f.jsx(Fd,{className:"h-3 w-3 shrink-0 text-border/80"}),f.jsx(Id,{to:`/tasks/${g.taskId}`,className:"min-w-0 truncate px-1 font-medium text-foreground/85 hover:text-foreground",title:g.taskTitle,children:g.taskTitle})]}),f.jsxs("div",{className:"relative ml-auto w-[18rem] max-w-[28rem]",children:[f.jsx(wN,{className:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground/60"}),f.jsx(Wf,{"aria-label":"Search tasks",value:m,onChange:N=>h(N.target.value),placeholder:"Search tasks, nodes, workspaces",className:"h-8 rounded-sm border-0 bg-background/62 pl-8 pr-2 text-[11px] shadow-none focus-visible:ring-0 focus-visible:ring-offset-0"})]})]}),f.jsx("div",{className:"mx-0 hidden h-4 w-px shrink-0 bg-border/50 md:block"}),f.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-1.5 pl-3 sm:gap-2 md:ml-0",children:[x&&f.jsx(Sn,{variant:"ghost",size:"icon",onClick:()=>w(N=>!N),"aria-label":c?"Close terminal":"Open terminal",title:c?"Close terminal":"Open terminal",className:se("h-8 w-8 rounded-sm text-muted-foreground hover:bg-muted/50 hover:text-foreground",c&&"bg-primary/8 text-primary"),children:f.jsx(k0,{className:"h-4 w-4"})}),f.jsx(J_,{}),f.jsx(H3,{}),f.jsx("div",{className:"mx-0 h-4 w-px shrink-0 bg-border/50"}),f.jsx(S3,{connected:o,events:l,nodes:(n==null?void 0:n.nodes)??[],currentNode:(n==null?void 0:n.self)??null,nodeNameById:v,onRestart:T})]})]})}),f.jsx("main",{className:se("min-h-0 flex-1 px-2 pb-2",x?"overflow-hidden":"overflow-y-auto"),children:f.jsx("div",{className:"mx-auto h-full min-h-0 max-w-[1760px]",children:f.jsx(Sw,{context:{terminalOpen:c,setTerminalOpen:w,headerSearchQuery:m,setHeaderSearchQuery:h,setHeaderTaskContext:p}})})})]})]})}const e0=y.lazy(async()=>({default:(await a0(()=>import("./DashboardPage-BPjhUitz.js").then(l=>l.D),__vite__mapDeps([0,1,2,3]))).DashboardPage})),P3=y.lazy(async()=>({default:(await a0(()=>import("./SharedConversationPage-B-16RtZR.js"),__vite__mapDeps([4,1]))).SharedConversationPage}));function Q3(){return f.jsx(Qw,{children:f.jsx(y.Suspense,{fallback:f.jsx(K3,{}),children:f.jsxs(Ew,{children:[f.jsx(Tl,{path:"/shared/tasks/:shareId",element:f.jsx(P3,{})}),f.jsxs(Tl,{element:f.jsx(CE,{children:f.jsx(X3,{})}),children:[f.jsx(Tl,{path:"/",element:f.jsx(e0,{})}),f.jsx(Tl,{path:"/nodes",element:f.jsx(uv,{to:"/",replace:!0})}),f.jsx(Tl,{path:"/tasks",element:f.jsx(uv,{to:"/",replace:!0})}),f.jsx(Tl,{path:"/tasks/:id",element:f.jsx(e0,{})})]})]})})})}function K3(){return f.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function Z3(n){return f.jsx(IT,{className:"toaster group",style:{"--normal-bg":"hsl(var(--popover))","--normal-text":"hsl(var(--popover-foreground))","--normal-border":"hsl(var(--border))"},...n})}w2.createRoot(document.getElementById("root")).render(f.jsx(y.StrictMode,{children:f.jsxs(D3,{children:[f.jsx(Q3,{}),f.jsx(Z3,{})]})}));export{Xs as $,zy as A,Sn as B,Ms as C,Xj as D,Uy as E,nN as F,cM as G,IE as H,Wf as I,l3 as J,a3 as K,_0 as L,FR as M,pt as N,Yj as O,qj as P,px as Q,Rs as R,O0 as S,Pj as T,oM as U,Vs as V,ff as W,z0 as X,$s as Y,Ys as Z,Gs as _,tC as a,eM as a$,qs as a0,Qs as a1,Ps as a2,a0 as a3,ej as a4,Ly as a5,H5 as a6,mj as a7,k0 as a8,Ho as a9,Wv as aA,fM as aB,pM as aC,mM as aD,hM as aE,pj as aF,bE as aG,mE as aH,Vj as aI,Hj as aJ,wE as aK,Ej as aL,lj as aM,nj as aN,By as aO,aj as aP,rj as aQ,sE as aR,J_ as aS,Nj as aT,Tj as aU,F3 as aV,Yn as aW,h0 as aX,I3 as aY,A0 as aZ,nM as a_,KE as aa,fj as ab,hj as ac,dj as ad,TN as ae,sN as af,tM as ag,gN as ah,u3 as ai,f_ as aj,eN as ak,m_ as al,iM as am,e3 as an,sM as ao,Kj as ap,Zj as aq,qx as ar,lM as as,aM as at,rM as au,mf as av,Cj as aw,Aj as ax,dM as ay,uM as az,se as b,Ij as b0,Fj as b1,Wj as b2,Jj as b3,gj as b4,Qj as b5,t3 as b6,Sj as b7,wj as b8,xj as b9,bj as ba,W3 as bb,tj as bc,J3 as bd,oj as be,Oj as bf,Mj as bg,jj as bh,Rj as bi,_j as bj,Dj as bk,W_ as bl,t0 as bm,qE as bn,Lj as bo,zj as bp,kj as bq,yN as br,Uj as bs,$j as bt,Bj as bu,ze as c,J0 as d,uj as e,iE as f,sj as g,ij as h,lN as i,f as j,Fd as k,Nr as l,cj as m,yj as n,Pb as o,Kf as p,Qb as q,y as r,Zf as s,at as t,wN as u,Fs as v,_N as w,Gj as x,vj as y,L5 as z};