meshy-node 0.10.1 → 0.10.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.
- package/README.md +1 -1
- package/dashboard/assets/DashboardPage-BaHExl1O.css +1 -0
- package/dashboard/assets/DashboardPage-t7hNJ6ER.js +166 -0
- package/dashboard/assets/DashboardShared-DKoU9m12.js +79 -0
- package/dashboard/assets/DiffTab-CHGam55q.js +23 -0
- package/dashboard/assets/FilesTab-CHjCfHQI.js +11 -0
- package/dashboard/assets/MarkdownPreviewFrame-CizfMkZT.js +13 -0
- package/dashboard/assets/PreviewTab-B8thlxN1.js +21 -0
- package/dashboard/assets/SharedConversationPage-fseaPX1s.js +2 -0
- package/dashboard/assets/{file-BoEYGA7g.js → file-RHsnzvWQ.js} +1 -1
- package/dashboard/assets/index-CeG71j20.css +1 -0
- package/dashboard/assets/index-DxmS1OIF.js +346 -0
- package/dashboard/index.html +2 -2
- package/main.cjs +33330 -9406
- package/package.json +2 -2
- package/runtime-metadata.json +5 -5
- package/dashboard/assets/DashboardPage-BJhmjsGE.js +0 -154
- package/dashboard/assets/DashboardPage-i714dDoR.css +0 -1
- package/dashboard/assets/DashboardShared-BvbuoP9b.js +0 -79
- package/dashboard/assets/DiffTab-Bd3CsYCX.js +0 -23
- package/dashboard/assets/FilesTab-Dr_X6U7n.js +0 -11
- package/dashboard/assets/MarkdownPreviewFrame-xP27WQ5V.js +0 -12
- package/dashboard/assets/PreviewTab-DtBT527u.js +0 -21
- package/dashboard/assets/SharedConversationPage-Cp-wV5Db.js +0 -2
- package/dashboard/assets/index-BZlZVBzf.js +0 -346
- package/dashboard/assets/index-z8uCUOPA.css +0 -1
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-t7hNJ6ER.js","assets/DashboardShared-DKoU9m12.js","assets/MarkdownPreviewFrame-CizfMkZT.js","assets/PreviewTab-B8thlxN1.js","assets/DashboardPage-BaHExl1O.css","assets/SharedConversationPage-fseaPX1s.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function Qw(n,r){for(var o=0;o<r.length;o++){const s=r[o];if(typeof s!="string"&&!Array.isArray(s)){for(const c in s)if(c!=="default"&&!(c in n)){const u=Object.getOwnPropertyDescriptor(s,c);u&&Object.defineProperty(n,c,u.get?u:{enumerable:!0,get:()=>s[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const u of c)if(u.type==="childList")for(const m of u.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&s(m)}).observe(document,{childList:!0,subtree:!0});function o(c){const u={};return c.integrity&&(u.integrity=c.integrity),c.referrerPolicy&&(u.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?u.credentials="include":c.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(c){if(c.ep)return;c.ep=!0;const u=o(c);fetch(c.href,u)}})();function x0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Rd={exports:{}},zl={};/**
|
|
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 ev;function Kw(){if(ev)return zl;ev=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(s,c,u){var m=null;if(u!==void 0&&(m=""+u),c.key!==void 0&&(m=""+c.key),"key"in c){u={};for(var h in c)h!=="key"&&(u[h]=c[h])}else u=c;return c=u.ref,{$$typeof:n,type:s,key:m,ref:c!==void 0?c:null,props:u}}return zl.Fragment=r,zl.jsx=o,zl.jsxs=o,zl}var tv;function Zw(){return tv||(tv=1,Rd.exports=Kw()),Rd.exports}var f=Zw(),Ad={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 nv;function Fw(){if(nv)return Te;nv=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),m=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.iterator;function w(R){return R===null||typeof R!="object"?null:(R=y&&R[y]||R["@@iterator"],typeof R=="function"?R:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,E={};function T(R,Y,se){this.props=R,this.context=Y,this.refs=E,this.updater=se||C}T.prototype.isReactComponent={},T.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")},T.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function A(){}A.prototype=T.prototype;function k(R,Y,se){this.props=R,this.context=Y,this.refs=E,this.updater=se||C}var O=k.prototype=new A;O.constructor=k,N(O,T.prototype),O.isPureReactComponent=!0;var B=Array.isArray,U={H:null,A:null,T:null,S:null,V:null},Z=Object.prototype.hasOwnProperty;function V(R,Y,se,Q,oe,te){return se=te.ref,{$$typeof:n,type:R,key:Y,ref:se!==void 0?se:null,props:te}}function $(R,Y){return V(R.type,Y,void 0,void 0,void 0,R.props)}function G(R){return typeof R=="object"&&R!==null&&R.$$typeof===n}function ce(R){var Y={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(se){return Y[se]})}var ue=/\/+/g;function W(R,Y){return typeof R=="object"&&R!==null&&R.key!=null?ce(""+R.key):Y.toString(36)}function ee(){}function le(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(ee,ee):(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 J(R,Y,se,Q,oe){var te=typeof R;(te==="undefined"||te==="boolean")&&(R=null);var ne=!1;if(R===null)ne=!0;else switch(te){case"bigint":case"string":case"number":ne=!0;break;case"object":switch(R.$$typeof){case n:case r:ne=!0;break;case b:return ne=R._init,J(ne(R._payload),Y,se,Q,oe)}}if(ne)return oe=oe(R),ne=Q===""?"."+W(R,0):Q,B(oe)?(se="",ne!=null&&(se=ne.replace(ue,"$&/")+"/"),J(oe,Y,se,"",function(xe){return xe})):oe!=null&&(G(oe)&&(oe=$(oe,se+(oe.key==null||R&&R.key===oe.key?"":(""+oe.key).replace(ue,"$&/")+"/")+ne)),Y.push(oe)),1;ne=0;var ie=Q===""?".":Q+":";if(B(R))for(var de=0;de<R.length;de++)Q=R[de],te=ie+W(Q,de),ne+=J(Q,Y,se,te,oe);else if(de=w(R),typeof de=="function")for(R=de.call(R),de=0;!(Q=R.next()).done;)Q=Q.value,te=ie+W(Q,de++),ne+=J(Q,Y,se,te,oe);else if(te==="object"){if(typeof R.then=="function")return J(le(R),Y,se,Q,oe);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,se){if(R==null)return R;var Q=[],oe=0;return J(R,Q,"","",function(te){return Y.call(se,te,oe++)}),Q}function P(R){if(R._status===-1){var Y=R._result;Y=Y(),Y.then(function(se){(R._status===0||R._status===-1)&&(R._status=1,R._result=se)},function(se){(R._status===0||R._status===-1)&&(R._status=2,R._result=se)}),R._status===-1&&(R._status=0,R._result=Y)}if(R._status===1)return R._result.default;throw R._result}var X=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)};function fe(){}return Te.Children={map:_,forEach:function(R,Y,se){_(R,function(){Y.apply(this,arguments)},se)},count:function(R){var Y=0;return _(R,function(){Y++}),Y},toArray:function(R){return _(R,function(Y){return Y})||[]},only:function(R){if(!G(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},Te.Component=T,Te.Fragment=o,Te.Profiler=c,Te.PureComponent=k,Te.StrictMode=s,Te.Suspense=v,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,Te.__COMPILER_RUNTIME={__proto__:null,c:function(R){return U.H.useMemoCache(R)}},Te.cache=function(R){return function(){return R.apply(null,arguments)}},Te.cloneElement=function(R,Y,se){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var Q=N({},R.props),oe=R.key,te=void 0;if(Y!=null)for(ne in Y.ref!==void 0&&(te=void 0),Y.key!==void 0&&(oe=""+Y.key),Y)!Z.call(Y,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&Y.ref===void 0||(Q[ne]=Y[ne]);var ne=arguments.length-2;if(ne===1)Q.children=se;else if(1<ne){for(var ie=Array(ne),de=0;de<ne;de++)ie[de]=arguments[de+2];Q.children=ie}return V(R.type,oe,void 0,void 0,te,Q)},Te.createContext=function(R){return R={$$typeof:m,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:u,_context:R},R},Te.createElement=function(R,Y,se){var Q,oe={},te=null;if(Y!=null)for(Q in Y.key!==void 0&&(te=""+Y.key),Y)Z.call(Y,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(oe[Q]=Y[Q]);var ne=arguments.length-2;if(ne===1)oe.children=se;else if(1<ne){for(var ie=Array(ne),de=0;de<ne;de++)ie[de]=arguments[de+2];oe.children=ie}if(R&&R.defaultProps)for(Q in ne=R.defaultProps,ne)oe[Q]===void 0&&(oe[Q]=ne[Q]);return V(R,te,void 0,void 0,null,oe)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(R){return{$$typeof:h,render:R}},Te.isValidElement=G,Te.lazy=function(R){return{$$typeof:b,_payload:{_status:-1,_result:R},_init:P}},Te.memo=function(R,Y){return{$$typeof:p,type:R,compare:Y===void 0?null:Y}},Te.startTransition=function(R){var Y=U.T,se={};U.T=se;try{var Q=R(),oe=U.S;oe!==null&&oe(se,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(fe,X)}catch(te){X(te)}finally{U.T=Y}},Te.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},Te.use=function(R){return U.H.use(R)},Te.useActionState=function(R,Y,se){return U.H.useActionState(R,Y,se)},Te.useCallback=function(R,Y){return U.H.useCallback(R,Y)},Te.useContext=function(R){return U.H.useContext(R)},Te.useDebugValue=function(){},Te.useDeferredValue=function(R,Y){return U.H.useDeferredValue(R,Y)},Te.useEffect=function(R,Y,se){var Q=U.H;if(typeof se=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Q.useEffect(R,Y)},Te.useId=function(){return U.H.useId()},Te.useImperativeHandle=function(R,Y,se){return U.H.useImperativeHandle(R,Y,se)},Te.useInsertionEffect=function(R,Y){return U.H.useInsertionEffect(R,Y)},Te.useLayoutEffect=function(R,Y){return U.H.useLayoutEffect(R,Y)},Te.useMemo=function(R,Y){return U.H.useMemo(R,Y)},Te.useOptimistic=function(R,Y){return U.H.useOptimistic(R,Y)},Te.useReducer=function(R,Y,se){return U.H.useReducer(R,Y,se)},Te.useRef=function(R){return U.H.useRef(R)},Te.useState=function(R){return U.H.useState(R)},Te.useSyncExternalStore=function(R,Y,se){return U.H.useSyncExternalStore(R,Y,se)},Te.useTransition=function(){return U.H.useTransition()},Te.version="19.1.0",Te}var av;function Rf(){return av||(av=1,Ad.exports=Fw()),Ad.exports}var g=Rf();const re=x0(g),Af=Qw({__proto__:null,default:re},[g]);var kd={exports:{}},Ul={},jd={exports:{}},_d={};/**
|
|
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 rv;function Ww(){return rv||(rv=1,(function(n){function r(_,P){var X=_.length;_.push(P);e:for(;0<X;){var fe=X-1>>>1,R=_[fe];if(0<c(R,P))_[fe]=P,_[X]=R,X=fe;else break e}}function o(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var P=_[0],X=_.pop();if(X!==P){_[0]=X;e:for(var fe=0,R=_.length,Y=R>>>1;fe<Y;){var se=2*(fe+1)-1,Q=_[se],oe=se+1,te=_[oe];if(0>c(Q,X))oe<R&&0>c(te,Q)?(_[fe]=te,_[oe]=X,fe=oe):(_[fe]=Q,_[se]=X,fe=se);else if(oe<R&&0>c(te,X))_[fe]=te,_[oe]=X,fe=oe;else break e}}return P}function c(_,P){var X=_.sortIndex-P.sortIndex;return X!==0?X:_.id-P.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var m=Date,h=m.now();n.unstable_now=function(){return m.now()-h}}var v=[],p=[],b=1,y=null,w=3,C=!1,N=!1,E=!1,T=!1,A=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function B(_){for(var P=o(p);P!==null;){if(P.callback===null)s(p);else if(P.startTime<=_)s(p),P.sortIndex=P.expirationTime,r(v,P);else break;P=o(p)}}function U(_){if(E=!1,B(_),!N)if(o(v)!==null)N=!0,Z||(Z=!0,W());else{var P=o(p);P!==null&&J(U,P.startTime-_)}}var Z=!1,V=-1,$=5,G=-1;function ce(){return T?!0:!(n.unstable_now()-G<$)}function ue(){if(T=!1,Z){var _=n.unstable_now();G=_;var P=!0;try{e:{N=!1,E&&(E=!1,k(V),V=-1),C=!0;var X=w;try{t:{for(B(_),y=o(v);y!==null&&!(y.expirationTime>_&&ce());){var fe=y.callback;if(typeof fe=="function"){y.callback=null,w=y.priorityLevel;var R=fe(y.expirationTime<=_);if(_=n.unstable_now(),typeof R=="function"){y.callback=R,B(_),P=!0;break t}y===o(v)&&s(v),B(_)}else s(v);y=o(v)}if(y!==null)P=!0;else{var Y=o(p);Y!==null&&J(U,Y.startTime-_),P=!1}}break e}finally{y=null,w=X,C=!1}P=void 0}}finally{P?W():Z=!1}}}var W;if(typeof O=="function")W=function(){O(ue)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,le=ee.port2;ee.port1.onmessage=ue,W=function(){le.postMessage(null)}}else W=function(){A(ue,0)};function J(_,P){V=A(function(){_(n.unstable_now())},P)}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(_){_.callback=null},n.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<_?Math.floor(1e3/_):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(_){switch(w){case 1:case 2:case 3:var P=3;break;default:P=w}var X=w;w=P;try{return _()}finally{w=X}},n.unstable_requestPaint=function(){T=!0},n.unstable_runWithPriority=function(_,P){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var X=w;w=_;try{return P()}finally{w=X}},n.unstable_scheduleCallback=function(_,P,X){var fe=n.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?fe+X:fe):X=fe,_){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=X+R,_={id:b++,callback:P,priorityLevel:_,startTime:X,expirationTime:R,sortIndex:-1},X>fe?(_.sortIndex=X,r(p,_),o(v)===null&&_===o(p)&&(E?(k(V),V=-1):E=!0,J(U,X-fe))):(_.sortIndex=R,r(v,_),N||C||(N=!0,Z||(Z=!0,W()))),_},n.unstable_shouldYield=ce,n.unstable_wrapCallback=function(_){var P=w;return function(){var X=w;w=P;try{return _.apply(this,arguments)}finally{w=X}}}})(_d)),_d}var ov;function Jw(){return ov||(ov=1,jd.exports=Ww()),jd.exports}var Od={exports:{}},Mt={};/**
|
|
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 lv;function e2(){if(lv)return Mt;lv=1;var n=Rf();function r(v){var p="https://react.dev/errors/"+v;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(r(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 u(v,p,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:y==null?null:""+y,children:v,containerInfo:p,implementation:b}}var m=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Mt.createPortal=function(v,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return u(v,p,null,b)},Mt.flushSync=function(v){var p=m.T,b=s.p;try{if(m.T=null,s.p=2,v)return v()}finally{m.T=p,s.p=b,s.d.f()}},Mt.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(v,p))},Mt.prefetchDNS=function(v){typeof v=="string"&&s.d.D(v)},Mt.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var b=p.as,y=h(b,p.crossOrigin),w=typeof p.integrity=="string"?p.integrity:void 0,C=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?s.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:w,fetchPriority:C}):b==="script"&&s.d.X(v,{crossOrigin:y,integrity:w,fetchPriority:C,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Mt.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=h(p.as,p.crossOrigin);s.d.M(v,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(v)},Mt.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,y=h(b,p.crossOrigin);s.d.L(v,b,{crossOrigin:y,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})}},Mt.preloadModule=function(v,p){if(typeof v=="string")if(p){var b=h(p.as,p.crossOrigin);s.d.m(v,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(v)},Mt.requestFormReset=function(v){s.d.r(v)},Mt.unstable_batchedUpdates=function(v,p){return v(p)},Mt.useFormState=function(v,p,b){return m.H.useFormState(v,p,b)},Mt.useFormStatus=function(){return m.H.useHostTransitionStatus()},Mt.version="19.1.0",Mt}var sv;function S0(){if(sv)return Od.exports;sv=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(r){console.error(r)}}return n(),Od.exports=e2(),Od.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 iv;function t2(){if(iv)return Ul;iv=1;var n=Jw(),r=Rf(),o=S0();function s(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 u(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(u(e)!==e)throw Error(s(188))}function v(e){var t=e.alternate;if(!t){if(t=u(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,l=t;;){var i=a.return;if(i===null)break;var d=i.alternate;if(d===null){if(l=i.return,l!==null){a=l;continue}break}if(i.child===d.child){for(d=i.child;d;){if(d===a)return h(i),e;if(d===l)return h(i),t;d=d.sibling}throw Error(s(188))}if(a.return!==l.return)a=i,l=d;else{for(var x=!1,S=i.child;S;){if(S===a){x=!0,a=i,l=d;break}if(S===l){x=!0,l=i,a=d;break}S=S.sibling}if(!x){for(S=d.child;S;){if(S===a){x=!0,a=d,l=i;break}if(S===l){x=!0,l=d,a=i;break}S=S.sibling}if(!x)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,y=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),k=Symbol.for("react.consumer"),O=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Symbol.for("react.client.reference");function le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ee?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case N:return"Fragment";case T:return"Profiler";case E:return"StrictMode";case U:return"Suspense";case Z:return"SuspenseList";case G:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case O:return(e.displayName||"Context")+".Provider";case k:return(e._context.displayName||"Context")+".Consumer";case B: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:le(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var J=Array.isArray,_=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},fe=[],R=-1;function Y(e){return{current:e}}function se(e){0>R||(e.current=fe[R],fe[R]=null,R--)}function Q(e,t){R++,fe[R]=e.current,e.current=t}var oe=Y(null),te=Y(null),ne=Y(null),ie=Y(null);function de(e,t){switch(Q(ne,t),Q(te,e),Q(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ag(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ag(t),e=kg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}se(oe),Q(oe,e)}function xe(){se(oe),se(te),se(ne)}function Ce(e){e.memoizedState!==null&&Q(ie,e);var t=oe.current,a=kg(t,e.type);t!==a&&(Q(te,e),Q(oe,a))}function Ne(e){te.current===e&&(se(oe),se(te)),ie.current===e&&(se(ie),jl._currentValue=X)}var Re=Object.prototype.hasOwnProperty,et=n.unstable_scheduleCallback,rt=n.unstable_cancelCallback,hn=n.unstable_shouldYield,pn=n.unstable_requestPaint,st=n.unstable_now,Ja=n.unstable_getCurrentPriorityLevel,pt=n.unstable_ImmediatePriority,jr=n.unstable_UserBlockingPriority,Yn=n.unstable_NormalPriority,it=n.unstable_LowPriority,gn=n.unstable_IdlePriority,_r=n.log,pa=n.unstable_setDisableYieldValue,Yt=null,Rt=null;function Ut(e){if(typeof _r=="function"&&pa(e),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(Yt,e)}catch{}}var Je=Math.clz32?Math.clz32:Mn,On=Math.log,Or=Math.LN2;function Mn(e){return e>>>=0,e===0?32:31-(On(e)/Or|0)|0}var ga=256,va=4194304;function nn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function In(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var i=0,d=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var S=l&134217727;return S!==0?(l=S&~d,l!==0?i=nn(l):(x&=S,x!==0?i=nn(x):a||(a=S&~e,a!==0&&(i=nn(a))))):(S=l&~d,S!==0?i=nn(S):x!==0?i=nn(x):a||(a=l&~e,a!==0&&(i=nn(a)))),i===0?0:t!==0&&t!==i&&(t&d)===0&&(d=i&-i,a=t&-t,d>=a||d===32&&(a&4194048)!==0)?t:i}function Gn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ya(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 Lt(){var e=ga;return ga<<=1,(ga&4194048)===0&&(ga=256),e}function er(){var e=va;return va<<=1,(va&62914560)===0&&(va=4194304),e}function tr(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ye(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Xe(e,t,a,l,i,d){var x=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,j=e.expirationTimes,L=e.hiddenUpdates;for(a=x&~a;0<a;){var I=31-Je(a),F=1<<I;S[I]=0,j[I]=-1;var H=L[I];if(H!==null)for(L[I]=null,I=0;I<H.length;I++){var q=H[I];q!==null&&(q.lane&=-536870913)}a&=~F}l!==0&&me(e,l,0),d!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=d&~(x&~t))}function me(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Je(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function He(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Je(a),i=1<<l;i&t|e[l]&t&&(e[l]|=t),a&=~i}}function Qe(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 gt(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function nr(){var e=P.p;return e!==0?e:(e=window.event,e===void 0?32:Qg(e.type))}function vt(e,t){var a=P.p;try{return P.p=e,t()}finally{P.p=a}}var ct=Math.random().toString(36).slice(2),ut="__reactFiber$"+ct,Ke="__reactProps$"+ct,St="__reactContainer$"+ct,Mr="__reactEvents$"+ct,Xn="__reactListeners$"+ct,pm="__reactHandles$"+ct,gm="__reactResources$"+ct,$o="__reactMarker$"+ct;function xc(e){delete e[ut],delete e[Ke],delete e[Mr],delete e[Xn],delete e[pm]}function Dr(e){var t=e[ut];if(t)return t;for(var a=e.parentNode;a;){if(t=a[St]||a[ut]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Mg(e);e!==null;){if(a=e[ut])return a;e=Mg(e)}return t}e=a,a=e.parentNode}return null}function zr(e){if(e=e[ut]||e[St]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function qo(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Ur(e){var t=e[gm];return t||(t=e[gm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function wt(e){e[$o]=!0}var vm=new Set,ym={};function ar(e,t){Lr(e,t),Lr(e+"Capture",t)}function Lr(e,t){for(ym[e]=t,e=0;e<t.length;e++)vm.add(t[e])}var P1=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),bm={},xm={};function $1(e){return Re.call(xm,e)?!0:Re.call(bm,e)?!1:P1.test(e)?xm[e]=!0:(bm[e]=!0,!1)}function rs(e,t,a){if($1(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function os(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 Qn(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}var Sc,Sm;function Br(e){if(Sc===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Sc=t&&t[1]||"",Sm=-1<a.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+Sc+e+Sm}var wc=!1;function Ec(e,t){if(!e||wc)return"";wc=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(q){var H=q}Reflect.construct(e,[],F)}else{try{F.call()}catch(q){H=q}e.call(F.prototype)}}else{try{throw Error()}catch(q){H=q}(F=e())&&typeof F.catch=="function"&&F.catch(function(){})}}catch(q){if(q&&H&&typeof q.stack=="string")return[q.stack,H.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=l.DetermineComponentFrameRoot(),x=d[0],S=d[1];if(x&&S){var j=x.split(`
|
|
45
|
+
`),L=S.split(`
|
|
46
|
+
`);for(i=l=0;l<j.length&&!j[l].includes("DetermineComponentFrameRoot");)l++;for(;i<L.length&&!L[i].includes("DetermineComponentFrameRoot");)i++;if(l===j.length||i===L.length)for(l=j.length-1,i=L.length-1;1<=l&&0<=i&&j[l]!==L[i];)i--;for(;1<=l&&0<=i;l--,i--)if(j[l]!==L[i]){if(l!==1||i!==1)do if(l--,i--,0>i||j[l]!==L[i]){var I=`
|
|
47
|
+
`+j[l].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),I}while(1<=l&&0<=i);break}}}finally{wc=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Br(a):""}function q1(e){switch(e.tag){case 26:case 27:case 5:return Br(e.type);case 16:return Br("Lazy");case 13:return Br("Suspense");case 19:return Br("SuspenseList");case 0:case 15:return Ec(e.type,!1);case 11:return Ec(e.type.render,!1);case 1:return Ec(e.type,!0);case 31:return Br("Activity");default:return""}}function wm(e){try{var t="";do t+=q1(e),e=e.return;while(e);return t}catch(a){return`
|
|
48
|
+
Error generating stack: `+a.message+`
|
|
49
|
+
`+a.stack}}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 Em(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function V1(e){var t=Em(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,d=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(x){l=""+x,d.call(this,x)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ls(e){e._valueTracker||(e._valueTracker=V1(e))}function Nm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Em(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function ss(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 Y1=/[\n"\\]/g;function rn(e){return e.replace(Y1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Nc(e,t,a,l,i,d,x,S){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),t!=null?x==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+an(t)):e.value!==""+an(t)&&(e.value=""+an(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?Tc(e,x,an(t)):a!=null?Tc(e,x,an(a)):l!=null&&e.removeAttribute("value"),i==null&&d!=null&&(e.defaultChecked=!!d),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+an(S):e.removeAttribute("name")}function Tm(e,t,a,l,i,d,x,S){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||a!=null){if(!(d!=="submit"&&d!=="reset"||t!=null))return;a=a!=null?""+an(a):"",t=t!=null?""+an(t):a,S||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=S?e.checked:!!l,e.defaultChecked=!!l,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x)}function Tc(e,t,a){t==="number"&&ss(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Hr(e,t,a,l){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&l&&(e[a].defaultSelected=!0)}else{for(a=""+an(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Cm(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 Rm(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(J(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=an(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function Pr(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var I1=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 Am(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||I1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function km(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in t)l=t[i],t.hasOwnProperty(i)&&a[i]!==l&&Am(e,i,l)}else for(var d in t)t.hasOwnProperty(d)&&Am(e,d,t[d])}function Cc(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 G1=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"]]),X1=/^[\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 is(e){return X1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Rc=null;function Ac(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $r=null,qr=null;function jm(e){var t=zr(e);if(t&&(e=t.stateNode)){var a=e[Ke]||null;e:switch(e=t.stateNode,t.type){case"input":if(Nc(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="'+rn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var i=l[Ke]||null;if(!i)throw Error(s(90));Nc(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Nm(l)}break e;case"textarea":Cm(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Hr(e,!!a.multiple,t,!1)}}}var kc=!1;function _m(e,t,a){if(kc)return e(t,a);kc=!0;try{var l=e(t);return l}finally{if(kc=!1,($r!==null||qr!==null)&&(Xs(),$r&&(t=$r,e=qr,qr=$r=null,jm(t),e)))for(t=0;t<e.length;t++)jm(e[t])}}function Vo(e,t){var a=e.stateNode;if(a===null)return null;var l=a[Ke]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var Kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jc=!1;if(Kn)try{var Yo={};Object.defineProperty(Yo,"passive",{get:function(){jc=!0}}),window.addEventListener("test",Yo,Yo),window.removeEventListener("test",Yo,Yo)}catch{jc=!1}var ba=null,_c=null,cs=null;function Om(){if(cs)return cs;var e,t=_c,a=t.length,l,i="value"in ba?ba.value:ba.textContent,d=i.length;for(e=0;e<a&&t[e]===i[e];e++);var x=a-e;for(l=1;l<=x&&t[a-l]===i[d-l];l++);return cs=i.slice(e,1<l?1-l:void 0)}function us(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 ds(){return!0}function Mm(){return!1}function Bt(e){function t(a,l,i,d,x){this._reactName=a,this._targetInst=i,this.type=l,this.nativeEvent=d,this.target=x,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(a=e[S],this[S]=a?a(d):d[S]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?ds:Mm,this.isPropagationStopped=Mm,this}return b(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=ds)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ds)},persist:function(){},isPersistent:ds}),t}var rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fs=Bt(rr),Io=b({},rr,{view:0,detail:0}),Q1=Bt(Io),Oc,Mc,Go,ms=b({},Io,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zc,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!==Go&&(Go&&e.type==="mousemove"?(Oc=e.screenX-Go.screenX,Mc=e.screenY-Go.screenY):Mc=Oc=0,Go=e),Oc)},movementY:function(e){return"movementY"in e?e.movementY:Mc}}),Dm=Bt(ms),K1=b({},ms,{dataTransfer:0}),Z1=Bt(K1),F1=b({},Io,{relatedTarget:0}),Dc=Bt(F1),W1=b({},rr,{animationName:0,elapsedTime:0,pseudoElement:0}),J1=Bt(W1),eS=b({},rr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),tS=Bt(eS),nS=b({},rr,{data:0}),zm=Bt(nS),aS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rS={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"},oS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=oS[e])?!!t[e]:!1}function zc(){return lS}var sS=b({},Io,{key:function(e){if(e.key){var t=aS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=us(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?rS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zc,charCode:function(e){return e.type==="keypress"?us(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?us(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),iS=Bt(sS),cS=b({},ms,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Um=Bt(cS),uS=b({},Io,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zc}),dS=Bt(uS),fS=b({},rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),mS=Bt(fS),hS=b({},ms,{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}),pS=Bt(hS),gS=b({},rr,{newState:0,oldState:0}),vS=Bt(gS),yS=[9,13,27,32],Uc=Kn&&"CompositionEvent"in window,Xo=null;Kn&&"documentMode"in document&&(Xo=document.documentMode);var bS=Kn&&"TextEvent"in window&&!Xo,Lm=Kn&&(!Uc||Xo&&8<Xo&&11>=Xo),Bm=" ",Hm=!1;function Pm(e,t){switch(e){case"keyup":return yS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $m(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vr=!1;function xS(e,t){switch(e){case"compositionend":return $m(t);case"keypress":return t.which!==32?null:(Hm=!0,Bm);case"textInput":return e=t.data,e===Bm&&Hm?null:e;default:return null}}function SS(e,t){if(Vr)return e==="compositionend"||!Uc&&Pm(e,t)?(e=Om(),cs=_c=ba=null,Vr=!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 Lm&&t.locale!=="ko"?null:t.data;default:return null}}var wS={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 qm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!wS[e.type]:t==="textarea"}function Vm(e,t,a,l){$r?qr?qr.push(l):qr=[l]:$r=l,t=Js(t,"onChange"),0<t.length&&(a=new fs("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Qo=null,Ko=null;function ES(e){Eg(e,0)}function hs(e){var t=qo(e);if(Nm(t))return e}function Ym(e,t){if(e==="change")return t}var Im=!1;if(Kn){var Lc;if(Kn){var Bc="oninput"in document;if(!Bc){var Gm=document.createElement("div");Gm.setAttribute("oninput","return;"),Bc=typeof Gm.oninput=="function"}Lc=Bc}else Lc=!1;Im=Lc&&(!document.documentMode||9<document.documentMode)}function Xm(){Qo&&(Qo.detachEvent("onpropertychange",Qm),Ko=Qo=null)}function Qm(e){if(e.propertyName==="value"&&hs(Ko)){var t=[];Vm(t,Ko,e,Ac(e)),_m(ES,t)}}function NS(e,t,a){e==="focusin"?(Xm(),Qo=t,Ko=a,Qo.attachEvent("onpropertychange",Qm)):e==="focusout"&&Xm()}function TS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hs(Ko)}function CS(e,t){if(e==="click")return hs(t)}function RS(e,t){if(e==="input"||e==="change")return hs(t)}function AS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var It=typeof Object.is=="function"?Object.is:AS;function Zo(e,t){if(It(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var i=a[l];if(!Re.call(t,i)||!It(e[i],t[i]))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 l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Km(a)}}function Fm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ss(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=ss(e.document)}return t}function Hc(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 kS=Kn&&"documentMode"in document&&11>=document.documentMode,Yr=null,Pc=null,Fo=null,$c=!1;function Jm(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;$c||Yr==null||Yr!==ss(l)||(l=Yr,"selectionStart"in l&&Hc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Fo&&Zo(Fo,l)||(Fo=l,l=Js(Pc,"onSelect"),0<l.length&&(t=new fs("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Yr)))}function or(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Ir={animationend:or("Animation","AnimationEnd"),animationiteration:or("Animation","AnimationIteration"),animationstart:or("Animation","AnimationStart"),transitionrun:or("Transition","TransitionRun"),transitionstart:or("Transition","TransitionStart"),transitioncancel:or("Transition","TransitionCancel"),transitionend:or("Transition","TransitionEnd")},qc={},eh={};Kn&&(eh=document.createElement("div").style,"AnimationEvent"in window||(delete Ir.animationend.animation,delete Ir.animationiteration.animation,delete Ir.animationstart.animation),"TransitionEvent"in window||delete Ir.transitionend.transition);function lr(e){if(qc[e])return qc[e];if(!Ir[e])return e;var t=Ir[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in eh)return qc[e]=t[a];return e}var th=lr("animationend"),nh=lr("animationiteration"),ah=lr("animationstart"),jS=lr("transitionrun"),_S=lr("transitionstart"),OS=lr("transitioncancel"),rh=lr("transitionend"),oh=new Map,Vc="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(" ");Vc.push("scrollEnd");function vn(e,t){oh.set(e,t),ar(t,[e])}var lh=new WeakMap;function on(e,t){if(typeof e=="object"&&e!==null){var a=lh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:wm(t)},lh.set(e,t),t)}return{value:e,source:t,stack:wm(t)}}var ln=[],Gr=0,Yc=0;function ps(){for(var e=Gr,t=Yc=Gr=0;t<e;){var a=ln[t];ln[t++]=null;var l=ln[t];ln[t++]=null;var i=ln[t];ln[t++]=null;var d=ln[t];if(ln[t++]=null,l!==null&&i!==null){var x=l.pending;x===null?i.next=i:(i.next=x.next,x.next=i),l.pending=i}d!==0&&sh(a,i,d)}}function gs(e,t,a,l){ln[Gr++]=e,ln[Gr++]=t,ln[Gr++]=a,ln[Gr++]=l,Yc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Ic(e,t,a,l){return gs(e,t,a,l),vs(e)}function Xr(e,t){return gs(e,null,null,t),vs(e)}function sh(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var i=!1,d=e.return;d!==null;)d.childLanes|=a,l=d.alternate,l!==null&&(l.childLanes|=a),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(i=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,i&&t!==null&&(i=31-Je(a),e=d.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=a|536870912),d):null}function vs(e){if(50<wl)throw wl=0,Fu=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Qr={};function MS(e,t,a,l){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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gt(e,t,a,l){return new MS(e,t,a,l)}function Gc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zn(e,t){var a=e.alternate;return a===null?(a=Gt(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 ih(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 ys(e,t,a,l,i,d){var x=0;if(l=e,typeof e=="function")Gc(e)&&(x=1);else if(typeof e=="string")x=zw(e,a,oe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case G:return e=Gt(31,a,t,i),e.elementType=G,e.lanes=d,e;case N:return sr(a.children,i,d,t);case E:x=8,i|=24;break;case T:return e=Gt(12,a,t,i|2),e.elementType=T,e.lanes=d,e;case U:return e=Gt(13,a,t,i),e.elementType=U,e.lanes=d,e;case Z:return e=Gt(19,a,t,i),e.elementType=Z,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case A:case O:x=10;break e;case k:x=9;break e;case B:x=11;break e;case V:x=14;break e;case $:x=16,l=null;break e}x=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Gt(x,a,t,i),t.elementType=e,t.type=l,t.lanes=d,t}function sr(e,t,a,l){return e=Gt(7,e,l,t),e.lanes=a,e}function Xc(e,t,a){return e=Gt(6,e,null,t),e.lanes=a,e}function Qc(e,t,a){return t=Gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Kr=[],Zr=0,bs=null,xs=0,sn=[],cn=0,ir=null,Fn=1,Wn="";function cr(e,t){Kr[Zr++]=xs,Kr[Zr++]=bs,bs=e,xs=t}function ch(e,t,a){sn[cn++]=Fn,sn[cn++]=Wn,sn[cn++]=ir,ir=e;var l=Fn;e=Wn;var i=32-Je(l)-1;l&=~(1<<i),a+=1;var d=32-Je(t)+i;if(30<d){var x=i-i%5;d=(l&(1<<x)-1).toString(32),l>>=x,i-=x,Fn=1<<32-Je(t)+i|a<<i|l,Wn=d+e}else Fn=1<<d|a<<i|l,Wn=e}function Kc(e){e.return!==null&&(cr(e,1),ch(e,1,0))}function Zc(e){for(;e===bs;)bs=Kr[--Zr],Kr[Zr]=null,xs=Kr[--Zr],Kr[Zr]=null;for(;e===ir;)ir=sn[--cn],sn[cn]=null,Wn=sn[--cn],sn[cn]=null,Fn=sn[--cn],sn[cn]=null}var zt=null,ot=null,Pe=!1,ur=null,Dn=!1,Fc=Error(s(519));function dr(e){var t=Error(s(418,""));throw el(on(t,e)),Fc}function uh(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[ut]=e,t[Ke]=l,a){case"dialog":De("cancel",t),De("close",t);break;case"iframe":case"object":case"embed":De("load",t);break;case"video":case"audio":for(a=0;a<Nl.length;a++)De(Nl[a],t);break;case"source":De("error",t);break;case"img":case"image":case"link":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"input":De("invalid",t),Tm(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),ls(t);break;case"select":De("invalid",t);break;case"textarea":De("invalid",t),Rm(t,l.value,l.defaultValue,l.children),ls(t)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Rg(t.textContent,a)?(l.popover!=null&&(De("beforetoggle",t),De("toggle",t)),l.onScroll!=null&&De("scroll",t),l.onScrollEnd!=null&&De("scrollend",t),l.onClick!=null&&(t.onclick=ei),t=!0):t=!1,t||dr(e)}function dh(e){for(zt=e.return;zt;)switch(zt.tag){case 5:case 13:Dn=!1;return;case 27:case 3:Dn=!0;return;default:zt=zt.return}}function Wo(e){if(e!==zt)return!1;if(!Pe)return dh(e),Pe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||md(e.type,e.memoizedProps)),a=!a),a&&ot&&dr(e),dh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){ot=bn(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}ot=null}}else t===27?(t=ot,za(e.type)?(e=vd,vd=null,ot=e):ot=t):ot=zt?bn(e.stateNode.nextSibling):null;return!0}function Jo(){ot=zt=null,Pe=!1}function fh(){var e=ur;return e!==null&&($t===null?$t=e:$t.push.apply($t,e),ur=null),e}function el(e){ur===null?ur=[e]:ur.push(e)}var Wc=Y(null),fr=null,Jn=null;function xa(e,t,a){Q(Wc,t._currentValue),t._currentValue=a}function ea(e){e._currentValue=Wc.current,se(Wc)}function Jc(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function eu(e,t,a,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var d=i.dependencies;if(d!==null){var x=i.child;d=d.firstContext;e:for(;d!==null;){var S=d;d=i;for(var j=0;j<t.length;j++)if(S.context===t[j]){d.lanes|=a,S=d.alternate,S!==null&&(S.lanes|=a),Jc(d.return,a,e),l||(x=null);break e}d=S.next}}else if(i.tag===18){if(x=i.return,x===null)throw Error(s(341));x.lanes|=a,d=x.alternate,d!==null&&(d.lanes|=a),Jc(x,a,e),x=null}else x=i.child;if(x!==null)x.return=i;else for(x=i;x!==null;){if(x===e){x=null;break}if(i=x.sibling,i!==null){i.return=x.return,x=i;break}x=x.return}i=x}}function tl(e,t,a,l){e=null;for(var i=t,d=!1;i!==null;){if(!d){if((i.flags&524288)!==0)d=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var x=i.alternate;if(x===null)throw Error(s(387));if(x=x.memoizedProps,x!==null){var S=i.type;It(i.pendingProps.value,x.value)||(e!==null?e.push(S):e=[S])}}else if(i===ie.current){if(x=i.alternate,x===null)throw Error(s(387));x.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(jl):e=[jl])}i=i.return}e!==null&&eu(t,e,a,l),t.flags|=262144}function Ss(e){for(e=e.firstContext;e!==null;){if(!It(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function mr(e){fr=e,Jn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ot(e){return mh(fr,e)}function ws(e,t){return fr===null&&mr(e),mh(e,t)}function mh(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Jn===null){if(e===null)throw Error(s(308));Jn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Jn=Jn.next=t;return a}var DS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},zS=n.unstable_scheduleCallback,US=n.unstable_NormalPriority,yt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function tu(){return{controller:new DS,data:new Map,refCount:0}}function nl(e){e.refCount--,e.refCount===0&&zS(US,function(){e.controller.abort()})}var al=null,nu=0,Fr=0,Wr=null;function LS(e,t){if(al===null){var a=al=[];nu=0,Fr=rd(),Wr={status:"pending",value:void 0,then:function(l){a.push(l)}}}return nu++,t.then(hh,hh),t}function hh(){if(--nu===0&&al!==null){Wr!==null&&(Wr.status="fulfilled");var e=al;al=null,Fr=0,Wr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function BS(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),l}var ph=_.S;_.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&LS(e,t),ph!==null&&ph(e,t)};var hr=Y(null);function au(){var e=hr.current;return e!==null?e:Ze.pooledCache}function Es(e,t){t===null?Q(hr,hr.current):Q(hr,t.pool)}function gh(){var e=au();return e===null?null:{parent:yt._currentValue,pool:e}}var rl=Error(s(460)),vh=Error(s(474)),Ns=Error(s(542)),ru={then:function(){}};function yh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ts(){}function bh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ts,Ts),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Sh(e),e;default:if(typeof t.status=="string")t.then(Ts,Ts);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Sh(e),e}throw ol=t,rl}}var ol=null;function xh(){if(ol===null)throw Error(s(459));var e=ol;return ol=null,e}function Sh(e){if(e===rl||e===Ns)throw Error(s(483))}var Sa=!1;function ou(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function wa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ea(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,($e&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=vs(e),sh(e,null,a),t}return gs(e,l,t,a),vs(e)}function ll(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,He(e,a)}}function su(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var i=null,d=null;if(a=a.firstBaseUpdate,a!==null){do{var x={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};d===null?i=d=x:d=d.next=x,a=a.next}while(a!==null);d===null?i=d=t:d=d.next=t}else i=d=t;a={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:d,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var iu=!1;function sl(){if(iu){var e=Wr;if(e!==null)throw e}}function il(e,t,a,l){iu=!1;var i=e.updateQueue;Sa=!1;var d=i.firstBaseUpdate,x=i.lastBaseUpdate,S=i.shared.pending;if(S!==null){i.shared.pending=null;var j=S,L=j.next;j.next=null,x===null?d=L:x.next=L,x=j;var I=e.alternate;I!==null&&(I=I.updateQueue,S=I.lastBaseUpdate,S!==x&&(S===null?I.firstBaseUpdate=L:S.next=L,I.lastBaseUpdate=j))}if(d!==null){var F=i.baseState;x=0,I=L=j=null,S=d;do{var H=S.lane&-536870913,q=H!==S.lane;if(q?(Le&H)===H:(l&H)===H){H!==0&&H===Fr&&(iu=!0),I!==null&&(I=I.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var Ee=e,Se=S;H=t;var Ie=a;switch(Se.tag){case 1:if(Ee=Se.payload,typeof Ee=="function"){F=Ee.call(Ie,F,H);break e}F=Ee;break e;case 3:Ee.flags=Ee.flags&-65537|128;case 0:if(Ee=Se.payload,H=typeof Ee=="function"?Ee.call(Ie,F,H):Ee,H==null)break e;F=b({},F,H);break e;case 2:Sa=!0}}H=S.callback,H!==null&&(e.flags|=64,q&&(e.flags|=8192),q=i.callbacks,q===null?i.callbacks=[H]:q.push(H))}else q={lane:H,tag:S.tag,payload:S.payload,callback:S.callback,next:null},I===null?(L=I=q,j=F):I=I.next=q,x|=H;if(S=S.next,S===null){if(S=i.shared.pending,S===null)break;q=S,S=q.next,q.next=null,i.lastBaseUpdate=q,i.shared.pending=null}}while(!0);I===null&&(j=F),i.baseState=j,i.firstBaseUpdate=L,i.lastBaseUpdate=I,d===null&&(i.shared.lanes=0),_a|=x,e.lanes=x,e.memoizedState=F}}function wh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Eh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)wh(a[e],t)}var Jr=Y(null),Cs=Y(0);function Nh(e,t){e=sa,Q(Cs,e),Q(Jr,t),sa=e|t.baseLanes}function cu(){Q(Cs,sa),Q(Jr,Jr.current)}function uu(){sa=Cs.current,se(Jr),se(Cs)}var Na=0,ke=null,Ve=null,mt=null,Rs=!1,eo=!1,pr=!1,As=0,cl=0,to=null,HS=0;function dt(){throw Error(s(321))}function du(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!It(e[a],t[a]))return!1;return!0}function fu(e,t,a,l,i,d){return Na=d,ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?sp:ip,pr=!1,d=a(l,i),pr=!1,eo&&(d=Ch(t,a,l,i)),Th(e),d}function Th(e){_.H=Ds;var t=Ve!==null&&Ve.next!==null;if(Na=0,mt=Ve=ke=null,Rs=!1,cl=0,to=null,t)throw Error(s(300));e===null||Et||(e=e.dependencies,e!==null&&Ss(e)&&(Et=!0))}function Ch(e,t,a,l){ke=e;var i=0;do{if(eo&&(to=null),cl=0,eo=!1,25<=i)throw Error(s(301));if(i+=1,mt=Ve=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}_.H=GS,d=t(a,l)}while(eo);return d}function PS(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?ul(t):t,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(ke.flags|=1024),t}function mu(){var e=As!==0;return As=0,e}function hu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function pu(e){if(Rs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Rs=!1}Na=0,mt=Ve=ke=null,eo=!1,cl=As=0,to=null}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?ke.memoizedState=mt=e:mt=mt.next=e,mt}function ht(){if(Ve===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=mt===null?ke.memoizedState:mt.next;if(t!==null)mt=t,Ve=e;else{if(e===null)throw ke.alternate===null?Error(s(467)):Error(s(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},mt===null?ke.memoizedState=mt=e:mt=mt.next=e}return mt}function gu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ul(e){var t=cl;return cl+=1,to===null&&(to=[]),e=bh(to,e,t),t=ke,(mt===null?t.memoizedState:mt.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?sp:ip),e}function ks(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ul(e);if(e.$$typeof===O)return Ot(e)}throw Error(s(438,String(e)))}function vu(e){var t=null,a=ke.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ke.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=gu(),ke.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=ce;return t.index++,a}function ta(e,t){return typeof t=="function"?t(e):t}function js(e){var t=ht();return yu(t,Ve,e)}function yu(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var i=e.baseQueue,d=l.pending;if(d!==null){if(i!==null){var x=i.next;i.next=d.next,d.next=x}t.baseQueue=i=d,l.pending=null}if(d=e.baseState,i===null)e.memoizedState=d;else{t=i.next;var S=x=null,j=null,L=t,I=!1;do{var F=L.lane&-536870913;if(F!==L.lane?(Le&F)===F:(Na&F)===F){var H=L.revertLane;if(H===0)j!==null&&(j=j.next={lane:0,revertLane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),F===Fr&&(I=!0);else if((Na&H)===H){L=L.next,H===Fr&&(I=!0);continue}else F={lane:0,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},j===null?(S=j=F,x=d):j=j.next=F,ke.lanes|=H,_a|=H;F=L.action,pr&&a(d,F),d=L.hasEagerState?L.eagerState:a(d,F)}else H={lane:F,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},j===null?(S=j=H,x=d):j=j.next=H,ke.lanes|=F,_a|=F;L=L.next}while(L!==null&&L!==t);if(j===null?x=d:j.next=S,!It(d,e.memoizedState)&&(Et=!0,I&&(a=Wr,a!==null)))throw a;e.memoizedState=d,e.baseState=x,e.baseQueue=j,l.lastRenderedState=d}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function bu(e){var t=ht(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,i=a.pending,d=t.memoizedState;if(i!==null){a.pending=null;var x=i=i.next;do d=e(d,x.action),x=x.next;while(x!==i);It(d,t.memoizedState)||(Et=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),a.lastRenderedState=d}return[d,l]}function Rh(e,t,a){var l=ke,i=ht(),d=Pe;if(d){if(a===void 0)throw Error(s(407));a=a()}else a=t();var x=!It((Ve||i).memoizedState,a);x&&(i.memoizedState=a,Et=!0),i=i.queue;var S=jh.bind(null,l,i,e);if(dl(2048,8,S,[e]),i.getSnapshot!==t||x||mt!==null&&mt.memoizedState.tag&1){if(l.flags|=2048,no(9,_s(),kh.bind(null,l,i,a,t),null),Ze===null)throw Error(s(349));d||(Na&124)!==0||Ah(l,t,a)}return a}function Ah(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ke.updateQueue,t===null?(t=gu(),ke.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function kh(e,t,a,l){t.value=a,t.getSnapshot=l,_h(t)&&Oh(e)}function jh(e,t,a){return a(function(){_h(t)&&Oh(e)})}function _h(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!It(e,a)}catch{return!0}}function Oh(e){var t=Xr(e,2);t!==null&&Ft(t,e,2)}function xu(e){var t=Ht();if(typeof e=="function"){var a=e;if(e=a(),pr){Ut(!0);try{a()}finally{Ut(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:e},t}function Mh(e,t,a,l){return e.baseState=a,yu(e,Ve,typeof l=="function"?l:ta)}function $S(e,t,a,l,i){if(Ms(e))throw Error(s(485));if(e=t.action,e!==null){var d={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){d.listeners.push(x)}};_.T!==null?a(!0):d.isTransition=!1,l(d),a=t.pending,a===null?(d.next=t.pending=d,Dh(t,d)):(d.next=a.next,t.pending=a.next=d)}}function Dh(e,t){var a=t.action,l=t.payload,i=e.state;if(t.isTransition){var d=_.T,x={};_.T=x;try{var S=a(i,l),j=_.S;j!==null&&j(x,S),zh(e,t,S)}catch(L){Su(e,t,L)}finally{_.T=d}}else try{d=a(i,l),zh(e,t,d)}catch(L){Su(e,t,L)}}function zh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Uh(e,t,l)},function(l){return Su(e,t,l)}):Uh(e,t,a)}function Uh(e,t,a){t.status="fulfilled",t.value=a,Lh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Dh(e,a)))}function Su(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Lh(t),t=t.next;while(t!==l)}e.action=null}function Lh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Bh(e,t){return t}function Hh(e,t){if(Pe){var a=Ze.formState;if(a!==null){e:{var l=ke;if(Pe){if(ot){t:{for(var i=ot,d=Dn;i.nodeType!==8;){if(!d){i=null;break t}if(i=bn(i.nextSibling),i===null){i=null;break t}}d=i.data,i=d==="F!"||d==="F"?i:null}if(i){ot=bn(i.nextSibling),l=i.data==="F!";break e}}dr(l)}l=!1}l&&(t=a[0])}}return a=Ht(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bh,lastRenderedState:t},a.queue=l,a=rp.bind(null,ke,l),l.dispatch=a,l=xu(!1),d=Cu.bind(null,ke,!1,l.queue),l=Ht(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,a=$S.bind(null,ke,i,d,a),i.dispatch=a,l.memoizedState=e,[t,a,!1]}function Ph(e){var t=ht();return $h(t,Ve,e)}function $h(e,t,a){if(t=yu(e,t,Bh)[0],e=js(ta)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ul(t)}catch(x){throw x===rl?Ns:x}else l=t;t=ht();var i=t.queue,d=i.dispatch;return a!==t.memoizedState&&(ke.flags|=2048,no(9,_s(),qS.bind(null,i,a),null)),[l,d,e]}function qS(e,t){e.action=t}function qh(e){var t=ht(),a=Ve;if(a!==null)return $h(t,a,e);ht(),t=t.memoizedState,a=ht();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function no(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ke.updateQueue,t===null&&(t=gu(),ke.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function _s(){return{destroy:void 0,resource:void 0}}function Vh(){return ht().memoizedState}function Os(e,t,a,l){var i=Ht();l=l===void 0?null:l,ke.flags|=e,i.memoizedState=no(1|t,_s(),a,l)}function dl(e,t,a,l){var i=ht();l=l===void 0?null:l;var d=i.memoizedState.inst;Ve!==null&&l!==null&&du(l,Ve.memoizedState.deps)?i.memoizedState=no(t,d,a,l):(ke.flags|=e,i.memoizedState=no(1|t,d,a,l))}function Yh(e,t){Os(8390656,8,e,t)}function Ih(e,t){dl(2048,8,e,t)}function Gh(e,t){return dl(4,2,e,t)}function Xh(e,t){return dl(4,4,e,t)}function Qh(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 Kh(e,t,a){a=a!=null?a.concat([e]):null,dl(4,4,Qh.bind(null,t,e),a)}function wu(){}function Zh(e,t){var a=ht();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&du(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Fh(e,t){var a=ht();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&du(t,l[1]))return l[0];if(l=e(),pr){Ut(!0);try{e()}finally{Ut(!1)}}return a.memoizedState=[l,t],l}function Eu(e,t,a){return a===void 0||(Na&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=eg(),ke.lanes|=e,_a|=e,a)}function Wh(e,t,a,l){return It(a,t)?a:Jr.current!==null?(e=Eu(e,a,l),It(e,t)||(Et=!0),e):(Na&42)===0?(Et=!0,e.memoizedState=a):(e=eg(),ke.lanes|=e,_a|=e,t)}function Jh(e,t,a,l,i){var d=P.p;P.p=d!==0&&8>d?d:8;var x=_.T,S={};_.T=S,Cu(e,!1,t,a);try{var j=i(),L=_.S;if(L!==null&&L(S,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var I=BS(j,l);fl(e,t,I,Zt(e))}else fl(e,t,l,Zt(e))}catch(F){fl(e,t,{then:function(){},status:"rejected",reason:F},Zt())}finally{P.p=d,_.T=x}}function VS(){}function Nu(e,t,a,l){if(e.tag!==5)throw Error(s(476));var i=ep(e).queue;Jh(e,i,t,X,a===null?VS:function(){return tp(e),a(l)})}function ep(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:X},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function tp(e){var t=ep(e).next.queue;fl(e,t,{},Zt())}function Tu(){return Ot(jl)}function np(){return ht().memoizedState}function ap(){return ht().memoizedState}function YS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Zt();e=wa(a);var l=Ea(t,e,a);l!==null&&(Ft(l,t,a),ll(l,t,a)),t={cache:tu()},e.payload=t;return}t=t.return}}function IS(e,t,a){var l=Zt();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Ms(e)?op(t,a):(a=Ic(e,t,a,l),a!==null&&(Ft(a,e,l),lp(a,t,l)))}function rp(e,t,a){var l=Zt();fl(e,t,a,l)}function fl(e,t,a,l){var i={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ms(e))op(t,i);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var x=t.lastRenderedState,S=d(x,a);if(i.hasEagerState=!0,i.eagerState=S,It(S,x))return gs(e,t,i,0),Ze===null&&ps(),!1}catch{}if(a=Ic(e,t,i,l),a!==null)return Ft(a,e,l),lp(a,t,l),!0}return!1}function Cu(e,t,a,l){if(l={lane:2,revertLane:rd(),action:l,hasEagerState:!1,eagerState:null,next:null},Ms(e)){if(t)throw Error(s(479))}else t=Ic(e,a,l,2),t!==null&&Ft(t,e,2)}function Ms(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function op(e,t){eo=Rs=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function lp(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,He(e,a)}}var Ds={readContext:Ot,use:ks,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useLayoutEffect:dt,useInsertionEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useSyncExternalStore:dt,useId:dt,useHostTransitionStatus:dt,useFormState:dt,useActionState:dt,useOptimistic:dt,useMemoCache:dt,useCacheRefresh:dt},sp={readContext:Ot,use:ks,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:Yh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Os(4194308,4,Qh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Os(4194308,4,e,t)},useInsertionEffect:function(e,t){Os(4,2,e,t)},useMemo:function(e,t){var a=Ht();t=t===void 0?null:t;var l=e();if(pr){Ut(!0);try{e()}finally{Ut(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=Ht();if(a!==void 0){var i=a(t);if(pr){Ut(!0);try{a(t)}finally{Ut(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=IS.bind(null,ke,e),[l.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:function(e){e=xu(e);var t=e.queue,a=rp.bind(null,ke,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:wu,useDeferredValue:function(e,t){var a=Ht();return Eu(a,e,t)},useTransition:function(){var e=xu(!1);return e=Jh.bind(null,ke,e.queue,!0,!1),Ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ke,i=Ht();if(Pe){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Ze===null)throw Error(s(349));(Le&124)!==0||Ah(l,t,a)}i.memoizedState=a;var d={value:a,getSnapshot:t};return i.queue=d,Yh(jh.bind(null,l,d,e),[e]),l.flags|=2048,no(9,_s(),kh.bind(null,l,d,a,t),null),a},useId:function(){var e=Ht(),t=Ze.identifierPrefix;if(Pe){var a=Wn,l=Fn;a=(l&~(1<<32-Je(l)-1)).toString(32)+a,t="«"+t+"R"+a,a=As++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=HS++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Tu,useFormState:Hh,useActionState:Hh,useOptimistic:function(e){var t=Ht();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Cu.bind(null,ke,!0,a),a.dispatch=t,[e,t]},useMemoCache:vu,useCacheRefresh:function(){return Ht().memoizedState=YS.bind(null,ke)}},ip={readContext:Ot,use:ks,useCallback:Zh,useContext:Ot,useEffect:Ih,useImperativeHandle:Kh,useInsertionEffect:Gh,useLayoutEffect:Xh,useMemo:Fh,useReducer:js,useRef:Vh,useState:function(){return js(ta)},useDebugValue:wu,useDeferredValue:function(e,t){var a=ht();return Wh(a,Ve.memoizedState,e,t)},useTransition:function(){var e=js(ta)[0],t=ht().memoizedState;return[typeof e=="boolean"?e:ul(e),t]},useSyncExternalStore:Rh,useId:np,useHostTransitionStatus:Tu,useFormState:Ph,useActionState:Ph,useOptimistic:function(e,t){var a=ht();return Mh(a,Ve,e,t)},useMemoCache:vu,useCacheRefresh:ap},GS={readContext:Ot,use:ks,useCallback:Zh,useContext:Ot,useEffect:Ih,useImperativeHandle:Kh,useInsertionEffect:Gh,useLayoutEffect:Xh,useMemo:Fh,useReducer:bu,useRef:Vh,useState:function(){return bu(ta)},useDebugValue:wu,useDeferredValue:function(e,t){var a=ht();return Ve===null?Eu(a,e,t):Wh(a,Ve.memoizedState,e,t)},useTransition:function(){var e=bu(ta)[0],t=ht().memoizedState;return[typeof e=="boolean"?e:ul(e),t]},useSyncExternalStore:Rh,useId:np,useHostTransitionStatus:Tu,useFormState:qh,useActionState:qh,useOptimistic:function(e,t){var a=ht();return Ve!==null?Mh(a,Ve,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:vu,useCacheRefresh:ap},ao=null,ml=0;function zs(e){var t=ml;return ml+=1,ao===null&&(ao=[]),bh(ao,e,t)}function hl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Us(e,t){throw t.$$typeof===y?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function cp(e){var t=e._init;return t(e._payload)}function up(e){function t(D,M){if(e){var z=D.deletions;z===null?(D.deletions=[M],D.flags|=16):z.push(M)}}function a(D,M){if(!e)return null;for(;M!==null;)t(D,M),M=M.sibling;return null}function l(D){for(var M=new Map;D!==null;)D.key!==null?M.set(D.key,D):M.set(D.index,D),D=D.sibling;return M}function i(D,M){return D=Zn(D,M),D.index=0,D.sibling=null,D}function d(D,M,z){return D.index=z,e?(z=D.alternate,z!==null?(z=z.index,z<M?(D.flags|=67108866,M):z):(D.flags|=67108866,M)):(D.flags|=1048576,M)}function x(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function S(D,M,z,K){return M===null||M.tag!==6?(M=Xc(z,D.mode,K),M.return=D,M):(M=i(M,z),M.return=D,M)}function j(D,M,z,K){var he=z.type;return he===N?I(D,M,z.props.children,K,z.key):M!==null&&(M.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===$&&cp(he)===M.type)?(M=i(M,z.props),hl(M,z),M.return=D,M):(M=ys(z.type,z.key,z.props,null,D.mode,K),hl(M,z),M.return=D,M)}function L(D,M,z,K){return M===null||M.tag!==4||M.stateNode.containerInfo!==z.containerInfo||M.stateNode.implementation!==z.implementation?(M=Qc(z,D.mode,K),M.return=D,M):(M=i(M,z.children||[]),M.return=D,M)}function I(D,M,z,K,he){return M===null||M.tag!==7?(M=sr(z,D.mode,K,he),M.return=D,M):(M=i(M,z),M.return=D,M)}function F(D,M,z){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Xc(""+M,D.mode,z),M.return=D,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case w:return z=ys(M.type,M.key,M.props,null,D.mode,z),hl(z,M),z.return=D,z;case C:return M=Qc(M,D.mode,z),M.return=D,M;case $:var K=M._init;return M=K(M._payload),F(D,M,z)}if(J(M)||W(M))return M=sr(M,D.mode,z,null),M.return=D,M;if(typeof M.then=="function")return F(D,zs(M),z);if(M.$$typeof===O)return F(D,ws(D,M),z);Us(D,M)}return null}function H(D,M,z,K){var he=M!==null?M.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return he!==null?null:S(D,M,""+z,K);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case w:return z.key===he?j(D,M,z,K):null;case C:return z.key===he?L(D,M,z,K):null;case $:return he=z._init,z=he(z._payload),H(D,M,z,K)}if(J(z)||W(z))return he!==null?null:I(D,M,z,K,null);if(typeof z.then=="function")return H(D,M,zs(z),K);if(z.$$typeof===O)return H(D,M,ws(D,z),K);Us(D,z)}return null}function q(D,M,z,K,he){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return D=D.get(z)||null,S(M,D,""+K,he);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case w:return D=D.get(K.key===null?z:K.key)||null,j(M,D,K,he);case C:return D=D.get(K.key===null?z:K.key)||null,L(M,D,K,he);case $:var Oe=K._init;return K=Oe(K._payload),q(D,M,z,K,he)}if(J(K)||W(K))return D=D.get(z)||null,I(M,D,K,he,null);if(typeof K.then=="function")return q(D,M,z,zs(K),he);if(K.$$typeof===O)return q(D,M,z,ws(M,K),he);Us(M,K)}return null}function Ee(D,M,z,K){for(var he=null,Oe=null,ve=M,we=M=0,Tt=null;ve!==null&&we<z.length;we++){ve.index>we?(Tt=ve,ve=null):Tt=ve.sibling;var Be=H(D,ve,z[we],K);if(Be===null){ve===null&&(ve=Tt);break}e&&ve&&Be.alternate===null&&t(D,ve),M=d(Be,M,we),Oe===null?he=Be:Oe.sibling=Be,Oe=Be,ve=Tt}if(we===z.length)return a(D,ve),Pe&&cr(D,we),he;if(ve===null){for(;we<z.length;we++)ve=F(D,z[we],K),ve!==null&&(M=d(ve,M,we),Oe===null?he=ve:Oe.sibling=ve,Oe=ve);return Pe&&cr(D,we),he}for(ve=l(ve);we<z.length;we++)Tt=q(ve,D,we,z[we],K),Tt!==null&&(e&&Tt.alternate!==null&&ve.delete(Tt.key===null?we:Tt.key),M=d(Tt,M,we),Oe===null?he=Tt:Oe.sibling=Tt,Oe=Tt);return e&&ve.forEach(function(Pa){return t(D,Pa)}),Pe&&cr(D,we),he}function Se(D,M,z,K){if(z==null)throw Error(s(151));for(var he=null,Oe=null,ve=M,we=M=0,Tt=null,Be=z.next();ve!==null&&!Be.done;we++,Be=z.next()){ve.index>we?(Tt=ve,ve=null):Tt=ve.sibling;var Pa=H(D,ve,Be.value,K);if(Pa===null){ve===null&&(ve=Tt);break}e&&ve&&Pa.alternate===null&&t(D,ve),M=d(Pa,M,we),Oe===null?he=Pa:Oe.sibling=Pa,Oe=Pa,ve=Tt}if(Be.done)return a(D,ve),Pe&&cr(D,we),he;if(ve===null){for(;!Be.done;we++,Be=z.next())Be=F(D,Be.value,K),Be!==null&&(M=d(Be,M,we),Oe===null?he=Be:Oe.sibling=Be,Oe=Be);return Pe&&cr(D,we),he}for(ve=l(ve);!Be.done;we++,Be=z.next())Be=q(ve,D,we,Be.value,K),Be!==null&&(e&&Be.alternate!==null&&ve.delete(Be.key===null?we:Be.key),M=d(Be,M,we),Oe===null?he=Be:Oe.sibling=Be,Oe=Be);return e&&ve.forEach(function(Xw){return t(D,Xw)}),Pe&&cr(D,we),he}function Ie(D,M,z,K){if(typeof z=="object"&&z!==null&&z.type===N&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case w:e:{for(var he=z.key;M!==null;){if(M.key===he){if(he=z.type,he===N){if(M.tag===7){a(D,M.sibling),K=i(M,z.props.children),K.return=D,D=K;break e}}else if(M.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===$&&cp(he)===M.type){a(D,M.sibling),K=i(M,z.props),hl(K,z),K.return=D,D=K;break e}a(D,M);break}else t(D,M);M=M.sibling}z.type===N?(K=sr(z.props.children,D.mode,K,z.key),K.return=D,D=K):(K=ys(z.type,z.key,z.props,null,D.mode,K),hl(K,z),K.return=D,D=K)}return x(D);case C:e:{for(he=z.key;M!==null;){if(M.key===he)if(M.tag===4&&M.stateNode.containerInfo===z.containerInfo&&M.stateNode.implementation===z.implementation){a(D,M.sibling),K=i(M,z.children||[]),K.return=D,D=K;break e}else{a(D,M);break}else t(D,M);M=M.sibling}K=Qc(z,D.mode,K),K.return=D,D=K}return x(D);case $:return he=z._init,z=he(z._payload),Ie(D,M,z,K)}if(J(z))return Ee(D,M,z,K);if(W(z)){if(he=W(z),typeof he!="function")throw Error(s(150));return z=he.call(z),Se(D,M,z,K)}if(typeof z.then=="function")return Ie(D,M,zs(z),K);if(z.$$typeof===O)return Ie(D,M,ws(D,z),K);Us(D,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,M!==null&&M.tag===6?(a(D,M.sibling),K=i(M,z),K.return=D,D=K):(a(D,M),K=Xc(z,D.mode,K),K.return=D,D=K),x(D)):a(D,M)}return function(D,M,z,K){try{ml=0;var he=Ie(D,M,z,K);return ao=null,he}catch(ve){if(ve===rl||ve===Ns)throw ve;var Oe=Gt(29,ve,null,D.mode);return Oe.lanes=K,Oe.return=D,Oe}}}var ro=up(!0),dp=up(!1),un=Y(null),zn=null;function Ta(e){var t=e.alternate;Q(bt,bt.current&1),Q(un,e),zn===null&&(t===null||Jr.current!==null||t.memoizedState!==null)&&(zn=e)}function fp(e){if(e.tag===22){if(Q(bt,bt.current),Q(un,e),zn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(zn=e)}}else Ca()}function Ca(){Q(bt,bt.current),Q(un,un.current)}function na(e){se(un),zn===e&&(zn=null),se(bt)}var bt=Y(0);function Ls(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||gd(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Ru(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Au={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Zt(),i=wa(l);i.payload=t,a!=null&&(i.callback=a),t=Ea(e,i,l),t!==null&&(Ft(t,e,l),ll(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Zt(),i=wa(l);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=Ea(e,i,l),t!==null&&(Ft(t,e,l),ll(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Zt(),l=wa(a);l.tag=2,t!=null&&(l.callback=t),t=Ea(e,l,a),t!==null&&(Ft(t,e,a),ll(t,e,a))}};function mp(e,t,a,l,i,d,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,d,x):t.prototype&&t.prototype.isPureReactComponent?!Zo(a,l)||!Zo(i,d):!0}function hp(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Au.enqueueReplaceState(t,t.state,null)}function gr(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}var Bs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function pp(e){Bs(e)}function gp(e){console.error(e)}function vp(e){Bs(e)}function Hs(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function yp(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function ku(e,t,a){return a=wa(a),a.tag=3,a.payload={element:null},a.callback=function(){Hs(e,t)},a}function bp(e){return e=wa(e),e.tag=3,e}function xp(e,t,a,l){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var d=l.value;e.payload=function(){return i(d)},e.callback=function(){yp(t,a,l)}}var x=a.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){yp(t,a,l),typeof i!="function"&&(Oa===null?Oa=new Set([this]):Oa.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function XS(e,t,a,l,i){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&tl(t,a,i,!0),a=un.current,a!==null){switch(a.tag){case 13:return zn===null?Ju():a.alternate===null&<===0&&(lt=3),a.flags&=-257,a.flags|=65536,a.lanes=i,l===ru?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),td(e,l,i)),!1;case 22:return a.flags|=65536,l===ru?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),td(e,l,i)),!1}throw Error(s(435,a.tag))}return td(e,l,i),Ju(),!1}if(Pe)return t=un.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==Fc&&(e=Error(s(422),{cause:l}),el(on(e,a)))):(l!==Fc&&(t=Error(s(423),{cause:l}),el(on(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=on(l,a),i=ku(e.stateNode,l,i),su(e,i),lt!==4&&(lt=2)),!1;var d=Error(s(520),{cause:l});if(d=on(d,a),Sl===null?Sl=[d]:Sl.push(d),lt!==4&&(lt=2),t===null)return!0;l=on(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=ku(a.stateNode,l,e),su(a,e),!1;case 1:if(t=a.type,d=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Oa===null||!Oa.has(d))))return a.flags|=65536,i&=-i,a.lanes|=i,i=bp(i),xp(i,e,a,l),su(a,i),!1}a=a.return}while(a!==null);return!1}var Sp=Error(s(461)),Et=!1;function At(e,t,a,l){t.child=e===null?dp(t,null,a,l):ro(t,e.child,a,l)}function wp(e,t,a,l,i){a=a.render;var d=t.ref;if("ref"in l){var x={};for(var S in l)S!=="ref"&&(x[S]=l[S])}else x=l;return mr(t),l=fu(e,t,a,x,d,i),S=mu(),e!==null&&!Et?(hu(e,t,i),aa(e,t,i)):(Pe&&S&&Kc(t),t.flags|=1,At(e,t,l,i),t.child)}function Ep(e,t,a,l,i){if(e===null){var d=a.type;return typeof d=="function"&&!Gc(d)&&d.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=d,Np(e,t,d,l,i)):(e=ys(a.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!Lu(e,i)){var x=d.memoizedProps;if(a=a.compare,a=a!==null?a:Zo,a(x,l)&&e.ref===t.ref)return aa(e,t,i)}return t.flags|=1,e=Zn(d,l),e.ref=t.ref,e.return=t,t.child=e}function Np(e,t,a,l,i){if(e!==null){var d=e.memoizedProps;if(Zo(d,l)&&e.ref===t.ref)if(Et=!1,t.pendingProps=l=d,Lu(e,i))(e.flags&131072)!==0&&(Et=!0);else return t.lanes=e.lanes,aa(e,t,i)}return ju(e,t,a,l,i)}function Tp(e,t,a){var l=t.pendingProps,i=l.children,d=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=d!==null?d.baseLanes|a:a,e!==null){for(i=t.child=e.child,d=0;i!==null;)d=d|i.lanes|i.childLanes,i=i.sibling;t.childLanes=d&~l}else t.childLanes=0,t.child=null;return Cp(e,t,l,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Es(t,d!==null?d.cachePool:null),d!==null?Nh(t,d):cu(),fp(t);else return t.lanes=t.childLanes=536870912,Cp(e,t,d!==null?d.baseLanes|a:a,a)}else d!==null?(Es(t,d.cachePool),Nh(t,d),Ca(),t.memoizedState=null):(e!==null&&Es(t,null),cu(),Ca());return At(e,t,i,a),t.child}function Cp(e,t,a,l){var i=au();return i=i===null?null:{parent:yt._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&Es(t,null),cu(),fp(t),e!==null&&tl(e,t,l,!0),null}function Ps(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(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function ju(e,t,a,l,i){return mr(t),a=fu(e,t,a,l,void 0,i),l=mu(),e!==null&&!Et?(hu(e,t,i),aa(e,t,i)):(Pe&&l&&Kc(t),t.flags|=1,At(e,t,a,i),t.child)}function Rp(e,t,a,l,i,d){return mr(t),t.updateQueue=null,a=Ch(t,l,a,i),Th(e),l=mu(),e!==null&&!Et?(hu(e,t,d),aa(e,t,d)):(Pe&&l&&Kc(t),t.flags|=1,At(e,t,a,d),t.child)}function Ap(e,t,a,l,i){if(mr(t),t.stateNode===null){var d=Qr,x=a.contextType;typeof x=="object"&&x!==null&&(d=Ot(x)),d=new a(l,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Au,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=l,d.state=t.memoizedState,d.refs={},ou(t),x=a.contextType,d.context=typeof x=="object"&&x!==null?Ot(x):Qr,d.state=t.memoizedState,x=a.getDerivedStateFromProps,typeof x=="function"&&(Ru(t,a,x,l),d.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(x=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),x!==d.state&&Au.enqueueReplaceState(d,d.state,null),il(t,l,d,i),sl(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){d=t.stateNode;var S=t.memoizedProps,j=gr(a,S);d.props=j;var L=d.context,I=a.contextType;x=Qr,typeof I=="object"&&I!==null&&(x=Ot(I));var F=a.getDerivedStateFromProps;I=typeof F=="function"||typeof d.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,I||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(S||L!==x)&&hp(t,d,l,x),Sa=!1;var H=t.memoizedState;d.state=H,il(t,l,d,i),sl(),L=t.memoizedState,S||H!==L||Sa?(typeof F=="function"&&(Ru(t,a,F,l),L=t.memoizedState),(j=Sa||mp(t,a,j,l,H,L,x))?(I||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=L),d.props=l,d.state=L,d.context=x,l=j):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{d=t.stateNode,lu(e,t),x=t.memoizedProps,I=gr(a,x),d.props=I,F=t.pendingProps,H=d.context,L=a.contextType,j=Qr,typeof L=="object"&&L!==null&&(j=Ot(L)),S=a.getDerivedStateFromProps,(L=typeof S=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x!==F||H!==j)&&hp(t,d,l,j),Sa=!1,H=t.memoizedState,d.state=H,il(t,l,d,i),sl();var q=t.memoizedState;x!==F||H!==q||Sa||e!==null&&e.dependencies!==null&&Ss(e.dependencies)?(typeof S=="function"&&(Ru(t,a,S,l),q=t.memoizedState),(I=Sa||mp(t,a,I,l,H,q,j)||e!==null&&e.dependencies!==null&&Ss(e.dependencies))?(L||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(l,q,j),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(l,q,j)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=q),d.props=l,d.state=q,d.context=j,l=I):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),l=!1)}return d=l,Ps(e,t),l=(t.flags&128)!==0,d||l?(d=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&l?(t.child=ro(t,e.child,null,i),t.child=ro(t,null,a,i)):At(e,t,a,i),t.memoizedState=d.state,e=t.child):e=aa(e,t,i),e}function kp(e,t,a,l){return Jo(),t.flags|=256,At(e,t,a,l),t.child}var _u={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ou(e){return{baseLanes:e,cachePool:gh()}}function Mu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=dn),e}function jp(e,t,a){var l=t.pendingProps,i=!1,d=(t.flags&128)!==0,x;if((x=d)||(x=e!==null&&e.memoizedState===null?!1:(bt.current&2)!==0),x&&(i=!0,t.flags&=-129),x=(t.flags&32)!==0,t.flags&=-33,e===null){if(Pe){if(i?Ta(t):Ca(),Pe){var S=ot,j;if(j=S){e:{for(j=S,S=Dn;j.nodeType!==8;){if(!S){S=null;break e}if(j=bn(j.nextSibling),j===null){S=null;break e}}S=j}S!==null?(t.memoizedState={dehydrated:S,treeContext:ir!==null?{id:Fn,overflow:Wn}:null,retryLane:536870912,hydrationErrors:null},j=Gt(18,null,null,0),j.stateNode=S,j.return=t,t.child=j,zt=t,ot=null,j=!0):j=!1}j||dr(t)}if(S=t.memoizedState,S!==null&&(S=S.dehydrated,S!==null))return gd(S)?t.lanes=32:t.lanes=536870912,null;na(t)}return S=l.children,l=l.fallback,i?(Ca(),i=t.mode,S=$s({mode:"hidden",children:S},i),l=sr(l,i,a,null),S.return=t,l.return=t,S.sibling=l,t.child=S,i=t.child,i.memoizedState=Ou(a),i.childLanes=Mu(e,x,a),t.memoizedState=_u,l):(Ta(t),Du(t,S))}if(j=e.memoizedState,j!==null&&(S=j.dehydrated,S!==null)){if(d)t.flags&256?(Ta(t),t.flags&=-257,t=zu(e,t,a)):t.memoizedState!==null?(Ca(),t.child=e.child,t.flags|=128,t=null):(Ca(),i=l.fallback,S=t.mode,l=$s({mode:"visible",children:l.children},S),i=sr(i,S,a,null),i.flags|=2,l.return=t,i.return=t,l.sibling=i,t.child=l,ro(t,e.child,null,a),l=t.child,l.memoizedState=Ou(a),l.childLanes=Mu(e,x,a),t.memoizedState=_u,t=i);else if(Ta(t),gd(S)){if(x=S.nextSibling&&S.nextSibling.dataset,x)var L=x.dgst;x=L,l=Error(s(419)),l.stack="",l.digest=x,el({value:l,source:null,stack:null}),t=zu(e,t,a)}else if(Et||tl(e,t,a,!1),x=(a&e.childLanes)!==0,Et||x){if(x=Ze,x!==null&&(l=a&-a,l=(l&42)!==0?1:Qe(l),l=(l&(x.suspendedLanes|a))!==0?0:l,l!==0&&l!==j.retryLane))throw j.retryLane=l,Xr(e,l),Ft(x,e,l),Sp;S.data==="$?"||Ju(),t=zu(e,t,a)}else S.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,ot=bn(S.nextSibling),zt=t,Pe=!0,ur=null,Dn=!1,e!==null&&(sn[cn++]=Fn,sn[cn++]=Wn,sn[cn++]=ir,Fn=e.id,Wn=e.overflow,ir=t),t=Du(t,l.children),t.flags|=4096);return t}return i?(Ca(),i=l.fallback,S=t.mode,j=e.child,L=j.sibling,l=Zn(j,{mode:"hidden",children:l.children}),l.subtreeFlags=j.subtreeFlags&65011712,L!==null?i=Zn(L,i):(i=sr(i,S,a,null),i.flags|=2),i.return=t,l.return=t,l.sibling=i,t.child=l,l=i,i=t.child,S=e.child.memoizedState,S===null?S=Ou(a):(j=S.cachePool,j!==null?(L=yt._currentValue,j=j.parent!==L?{parent:L,pool:L}:j):j=gh(),S={baseLanes:S.baseLanes|a,cachePool:j}),i.memoizedState=S,i.childLanes=Mu(e,x,a),t.memoizedState=_u,l):(Ta(t),a=e.child,e=a.sibling,a=Zn(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(x=t.deletions,x===null?(t.deletions=[e],t.flags|=16):x.push(e)),t.child=a,t.memoizedState=null,a)}function Du(e,t){return t=$s({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function $s(e,t){return e=Gt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function zu(e,t,a){return ro(t,e.child,null,a),e=Du(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _p(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Jc(e.return,t,a)}function Uu(e,t,a,l,i){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:i}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=a,d.tailMode=i)}function Op(e,t,a){var l=t.pendingProps,i=l.revealOrder,d=l.tail;if(At(e,t,l.children,a),l=bt.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&_p(e,a,t);else if(e.tag===19)_p(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}l&=1}switch(Q(bt,l),i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&Ls(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),Uu(t,!1,i,a,d);break;case"backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ls(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}Uu(t,!0,a,null,d);break;case"together":Uu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function aa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),_a|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(tl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=Zn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Zn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Lu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ss(e)))}function QS(e,t,a){switch(t.tag){case 3:de(t,t.stateNode.containerInfo),xa(t,yt,e.memoizedState.cache),Jo();break;case 27:case 5:Ce(t);break;case 4:de(t,t.stateNode.containerInfo);break;case 10:xa(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ta(t),t.flags|=128,null):(a&t.child.childLanes)!==0?jp(e,t,a):(Ta(t),e=aa(e,t,a),e!==null?e.sibling:null);Ta(t);break;case 19:var i=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(tl(e,t,a,!1),l=(a&t.childLanes)!==0),i){if(l)return Op(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Q(bt,bt.current),l)break;return null;case 22:case 23:return t.lanes=0,Tp(e,t,a);case 24:xa(t,yt,e.memoizedState.cache)}return aa(e,t,a)}function Mp(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Et=!0;else{if(!Lu(e,a)&&(t.flags&128)===0)return Et=!1,QS(e,t,a);Et=(e.flags&131072)!==0}else Et=!1,Pe&&(t.flags&1048576)!==0&&ch(t,xs,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,i=l._init;if(l=i(l._payload),t.type=l,typeof l=="function")Gc(l)?(e=gr(l,e),t.tag=1,t=Ap(null,t,l,e,a)):(t.tag=0,t=ju(null,t,l,e,a));else{if(l!=null){if(i=l.$$typeof,i===B){t.tag=11,t=wp(null,t,l,e,a);break e}else if(i===V){t.tag=14,t=Ep(null,t,l,e,a);break e}}throw t=le(l)||l,Error(s(306,t,""))}}return t;case 0:return ju(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,i=gr(l,t.pendingProps),Ap(e,t,l,i,a);case 3:e:{if(de(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var d=t.memoizedState;i=d.element,lu(e,t),il(t,l,null,a);var x=t.memoizedState;if(l=x.cache,xa(t,yt,l),l!==d.cache&&eu(t,[yt],a,!0),sl(),l=x.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:x.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=kp(e,t,l,a);break e}else if(l!==i){i=on(Error(s(424)),t),el(i),t=kp(e,t,l,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ot=bn(e.firstChild),zt=t,Pe=!0,ur=null,Dn=!0,a=dp(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Jo(),l===i){t=aa(e,t,a);break e}At(e,t,l,a)}t=t.child}return t;case 26:return Ps(e,t),e===null?(a=Lg(t.type,null,t.pendingProps,null))?t.memoizedState=a:Pe||(a=t.type,e=t.pendingProps,l=ti(ne.current).createElement(a),l[ut]=t,l[Ke]=e,jt(l,a,e),wt(l),t.stateNode=l):t.memoizedState=Lg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ce(t),e===null&&Pe&&(l=t.stateNode=Dg(t.type,t.pendingProps,ne.current),zt=t,Dn=!0,i=ot,za(t.type)?(vd=i,ot=bn(l.firstChild)):ot=i),At(e,t,t.pendingProps.children,a),Ps(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Pe&&((i=l=ot)&&(l=ww(l,t.type,t.pendingProps,Dn),l!==null?(t.stateNode=l,zt=t,ot=bn(l.firstChild),Dn=!1,i=!0):i=!1),i||dr(t)),Ce(t),i=t.type,d=t.pendingProps,x=e!==null?e.memoizedProps:null,l=d.children,md(i,d)?l=null:x!==null&&md(i,x)&&(t.flags|=32),t.memoizedState!==null&&(i=fu(e,t,PS,null,null,a),jl._currentValue=i),Ps(e,t),At(e,t,l,a),t.child;case 6:return e===null&&Pe&&((e=a=ot)&&(a=Ew(a,t.pendingProps,Dn),a!==null?(t.stateNode=a,zt=t,ot=null,e=!0):e=!1),e||dr(t)),null;case 13:return jp(e,t,a);case 4:return de(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=ro(t,null,l,a):At(e,t,l,a),t.child;case 11:return wp(e,t,t.type,t.pendingProps,a);case 7:return At(e,t,t.pendingProps,a),t.child;case 8:return At(e,t,t.pendingProps.children,a),t.child;case 12:return At(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,xa(t,t.type,l.value),At(e,t,l.children,a),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,mr(t),i=Ot(i),l=l(i),t.flags|=1,At(e,t,l,a),t.child;case 14:return Ep(e,t,t.type,t.pendingProps,a);case 15:return Np(e,t,t.type,t.pendingProps,a);case 19:return Op(e,t,a);case 31:return l=t.pendingProps,a=t.mode,l={mode:l.mode,children:l.children},e===null?(a=$s(l,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=Zn(e.child,l),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return Tp(e,t,a);case 24:return mr(t),l=Ot(yt),e===null?(i=au(),i===null&&(i=Ze,d=tu(),i.pooledCache=d,d.refCount++,d!==null&&(i.pooledCacheLanes|=a),i=d),t.memoizedState={parent:l,cache:i},ou(t),xa(t,yt,i)):((e.lanes&a)!==0&&(lu(e,t),il(t,null,null,a),sl()),i=e.memoizedState,d=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),xa(t,yt,l)):(l=d.cache,xa(t,yt,l),l!==i.cache&&eu(t,[yt],a,!0))),At(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ra(e){e.flags|=4}function Dp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!qg(t)){if(t=un.current,t!==null&&((Le&4194048)===Le?zn!==null:(Le&62914560)!==Le&&(Le&536870912)===0||t!==zn))throw ol=ru,vh;e.flags|=8192}}function qs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?er():536870912,e.lanes|=t,io|=t)}function pl(e,t){if(!Pe)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 l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function at(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function KS(e,t,a){var l=t.pendingProps;switch(Zc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(t),null;case 1:return at(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ea(yt),xe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Wo(t)?ra(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,fh())),at(t),null;case 26:return a=t.memoizedState,e===null?(ra(t),a!==null?(at(t),Dp(t,a)):(at(t),t.flags&=-16777217)):a?a!==e.memoizedState?(ra(t),at(t),Dp(t,a)):(at(t),t.flags&=-16777217):(e.memoizedProps!==l&&ra(t),at(t),t.flags&=-16777217),null;case 27:Ne(t),a=ne.current;var i=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ra(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return at(t),null}e=oe.current,Wo(t)?uh(t):(e=Dg(i,l,a),t.stateNode=e,ra(t))}return at(t),null;case 5:if(Ne(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ra(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return at(t),null}if(e=oe.current,Wo(t))uh(t);else{switch(i=ti(ne.current),e){case 1:e=i.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=i.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?i.createElement("select",{is:l.is}):i.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?i.createElement(a,{is:l.is}):i.createElement(a)}}e[ut]=t,e[Ke]=l;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(jt(e,a,l),a){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ra(t)}}return at(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ra(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=ne.current,Wo(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,i=zt,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[ut]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Rg(e.nodeValue,a)),e||dr(t)}else e=ti(e).createTextNode(l),e[ut]=t,t.stateNode=e}return at(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Wo(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(s(317));i[ut]=t}else Jo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),i=!1}else i=fh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(na(t),t):(na(t),null)}if(na(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool);var d=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==i&&(l.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),qs(t,t.updateQueue),at(t),null;case 4:return xe(),e===null&&id(t.stateNode.containerInfo),at(t),null;case 10:return ea(t.type),at(t),null;case 19:if(se(bt),i=t.memoizedState,i===null)return at(t),null;if(l=(t.flags&128)!==0,d=i.rendering,d===null)if(l)pl(i,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Ls(e),d!==null){for(t.flags|=128,pl(i,!1),e=d.updateQueue,t.updateQueue=e,qs(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)ih(a,e),a=a.sibling;return Q(bt,bt.current&1|2),t.child}e=e.sibling}i.tail!==null&&st()>Is&&(t.flags|=128,l=!0,pl(i,!1),t.lanes=4194304)}else{if(!l)if(e=Ls(d),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,qs(t,e),pl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!Pe)return at(t),null}else 2*st()-i.renderingStartTime>Is&&a!==536870912&&(t.flags|=128,l=!0,pl(i,!1),t.lanes=4194304);i.isBackwards?(d.sibling=t.child,t.child=d):(e=i.last,e!==null?e.sibling=d:t.child=d,i.last=d)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=st(),t.sibling=null,e=bt.current,Q(bt,l?e&1|2:e&1),t):(at(t),null);case 22:case 23:return na(t),uu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),a=t.updateQueue,a!==null&&qs(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&se(hr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ea(yt),at(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function ZS(e,t){switch(Zc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ea(yt),xe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ne(t),null;case 13:if(na(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Jo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(bt),null;case 4:return xe(),null;case 10:return ea(t.type),null;case 22:case 23:return na(t),uu(),e!==null&&se(hr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ea(yt),null;case 25:return null;default:return null}}function zp(e,t){switch(Zc(t),t.tag){case 3:ea(yt),xe();break;case 26:case 27:case 5:Ne(t);break;case 4:xe();break;case 13:na(t);break;case 19:se(bt);break;case 10:ea(t.type);break;case 22:case 23:na(t),uu(),e!==null&&se(hr);break;case 24:ea(yt)}}function gl(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&e)===e){l=void 0;var d=a.create,x=a.inst;l=d(),x.destroy=l}a=a.next}while(a!==i)}}catch(S){Ge(t,t.return,S)}}function Ra(e,t,a){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var d=i.next;l=d;do{if((l.tag&e)===e){var x=l.inst,S=x.destroy;if(S!==void 0){x.destroy=void 0,i=t;var j=a,L=S;try{L()}catch(I){Ge(i,j,I)}}}l=l.next}while(l!==d)}}catch(I){Ge(t,t.return,I)}}function Up(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Eh(t,a)}catch(l){Ge(e,e.return,l)}}}function Lp(e,t,a){a.props=gr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ge(e,t,l)}}function vl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(i){Ge(e,t,i)}}function Un(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(i){Ge(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Ge(e,t,i)}else a.current=null}function Bp(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(i){Ge(e,e.return,i)}}function Bu(e,t,a){try{var l=e.stateNode;vw(l,e.type,a,t),l[Ke]=t}catch(i){Ge(e,e.return,i)}}function Hp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&za(e.type)||e.tag===4}function Hu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hp(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&&za(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 Pu(e,t,a){var l=e.tag;if(l===5||l===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=ei));else if(l!==4&&(l===27&&za(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Pu(e,t,a),e=e.sibling;e!==null;)Pu(e,t,a),e=e.sibling}function Vs(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&za(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Vs(e,t,a),e=e.sibling;e!==null;)Vs(e,t,a),e=e.sibling}function Pp(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);jt(t,l,a),t[ut]=e,t[Ke]=a}catch(d){Ge(e,e.return,d)}}var oa=!1,ft=!1,$u=!1,$p=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function FS(e,t){if(e=e.containerInfo,dd=si,e=Wm(e),Hc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var i=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{a.nodeType,d.nodeType}catch{a=null;break e}var x=0,S=-1,j=-1,L=0,I=0,F=e,H=null;t:for(;;){for(var q;F!==a||i!==0&&F.nodeType!==3||(S=x+i),F!==d||l!==0&&F.nodeType!==3||(j=x+l),F.nodeType===3&&(x+=F.nodeValue.length),(q=F.firstChild)!==null;)H=F,F=q;for(;;){if(F===e)break t;if(H===a&&++L===i&&(S=x),H===d&&++I===l&&(j=x),(q=F.nextSibling)!==null)break;F=H,H=F.parentNode}F=q}a=S===-1||j===-1?null:{start:S,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(fd={focusedElem:e,selectionRange:a},si=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){switch(t=Nt,d=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,a=t,i=d.memoizedProps,d=d.memoizedState,l=a.stateNode;try{var Ee=gr(a.type,i,a.elementType===a.type);e=l.getSnapshotBeforeUpdate(Ee,d),l.__reactInternalSnapshotBeforeUpdate=e}catch(Se){Ge(a,a.return,Se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)pd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":pd(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Nt=e;break}Nt=t.return}}function qp(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Aa(e,a),l&4&&gl(5,a);break;case 1:if(Aa(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(x){Ge(a,a.return,x)}else{var i=gr(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Ge(a,a.return,x)}}l&64&&Up(a),l&512&&vl(a,a.return);break;case 3:if(Aa(e,a),l&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{Eh(e,t)}catch(x){Ge(a,a.return,x)}}break;case 27:t===null&&l&4&&Pp(a);case 26:case 5:Aa(e,a),t===null&&l&4&&Bp(a),l&512&&vl(a,a.return);break;case 12:Aa(e,a);break;case 13:Aa(e,a),l&4&&Ip(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=lw.bind(null,a),Nw(e,a))));break;case 22:if(l=a.memoizedState!==null||oa,!l){t=t!==null&&t.memoizedState!==null||ft,i=oa;var d=ft;oa=l,(ft=t)&&!d?ka(e,a,(a.subtreeFlags&8772)!==0):Aa(e,a),oa=i,ft=d}break;case 30:break;default:Aa(e,a)}}function Vp(e){var t=e.alternate;t!==null&&(e.alternate=null,Vp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&xc(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 tt=null,Pt=!1;function la(e,t,a){for(a=a.child;a!==null;)Yp(e,t,a),a=a.sibling}function Yp(e,t,a){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Yt,a)}catch{}switch(a.tag){case 26:ft||Un(a,t),la(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ft||Un(a,t);var l=tt,i=Pt;za(a.type)&&(tt=a.stateNode,Pt=!1),la(e,t,a),Cl(a.stateNode),tt=l,Pt=i;break;case 5:ft||Un(a,t);case 6:if(l=tt,i=Pt,tt=null,la(e,t,a),tt=l,Pt=i,tt!==null)if(Pt)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(a.stateNode)}catch(d){Ge(a,t,d)}else try{tt.removeChild(a.stateNode)}catch(d){Ge(a,t,d)}break;case 18:tt!==null&&(Pt?(e=tt,Og(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Dl(e)):Og(tt,a.stateNode));break;case 4:l=tt,i=Pt,tt=a.stateNode.containerInfo,Pt=!0,la(e,t,a),tt=l,Pt=i;break;case 0:case 11:case 14:case 15:ft||Ra(2,a,t),ft||Ra(4,a,t),la(e,t,a);break;case 1:ft||(Un(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Lp(a,t,l)),la(e,t,a);break;case 21:la(e,t,a);break;case 22:ft=(l=ft)||a.memoizedState!==null,la(e,t,a),ft=l;break;default:la(e,t,a)}}function Ip(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Dl(e)}catch(a){Ge(t,t.return,a)}}function WS(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new $p),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new $p),t;default:throw Error(s(435,e.tag))}}function qu(e,t){var a=WS(e);t.forEach(function(l){var i=sw.bind(null,e,l);a.has(l)||(a.add(l),l.then(i,i))})}function Xt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var i=a[l],d=e,x=t,S=x;e:for(;S!==null;){switch(S.tag){case 27:if(za(S.type)){tt=S.stateNode,Pt=!1;break e}break;case 5:tt=S.stateNode,Pt=!1;break e;case 3:case 4:tt=S.stateNode.containerInfo,Pt=!0;break e}S=S.return}if(tt===null)throw Error(s(160));Yp(d,x,i),tt=null,Pt=!1,d=i.alternate,d!==null&&(d.return=null),i.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Gp(t,e),t=t.sibling}var yn=null;function Gp(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xt(t,e),Qt(e),l&4&&(Ra(3,e,e.return),gl(3,e),Ra(5,e,e.return));break;case 1:Xt(t,e),Qt(e),l&512&&(ft||a===null||Un(a,a.return)),l&64&&oa&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var i=yn;if(Xt(t,e),Qt(e),l&512&&(ft||a===null||Un(a,a.return)),l&4){var d=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(l){case"title":d=i.getElementsByTagName("title")[0],(!d||d[$o]||d[ut]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=i.createElement(l),i.head.insertBefore(d,i.querySelector("head > title"))),jt(d,l,a),d[ut]=e,wt(d),l=d;break e;case"link":var x=Pg("link","href",i).get(l+(a.href||""));if(x){for(var S=0;S<x.length;S++)if(d=x[S],d.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&d.getAttribute("rel")===(a.rel==null?null:a.rel)&&d.getAttribute("title")===(a.title==null?null:a.title)&&d.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){x.splice(S,1);break t}}d=i.createElement(l),jt(d,l,a),i.head.appendChild(d);break;case"meta":if(x=Pg("meta","content",i).get(l+(a.content||""))){for(S=0;S<x.length;S++)if(d=x[S],d.getAttribute("content")===(a.content==null?null:""+a.content)&&d.getAttribute("name")===(a.name==null?null:a.name)&&d.getAttribute("property")===(a.property==null?null:a.property)&&d.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&d.getAttribute("charset")===(a.charSet==null?null:a.charSet)){x.splice(S,1);break t}}d=i.createElement(l),jt(d,l,a),i.head.appendChild(d);break;default:throw Error(s(468,l))}d[ut]=e,wt(d),l=d}e.stateNode=l}else $g(i,e.type,e.stateNode);else e.stateNode=Hg(i,l,e.memoizedProps);else d!==l?(d===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):d.count--,l===null?$g(i,e.type,e.stateNode):Hg(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Bu(e,e.memoizedProps,a.memoizedProps)}break;case 27:Xt(t,e),Qt(e),l&512&&(ft||a===null||Un(a,a.return)),a!==null&&l&4&&Bu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Xt(t,e),Qt(e),l&512&&(ft||a===null||Un(a,a.return)),e.flags&32){i=e.stateNode;try{Pr(i,"")}catch(q){Ge(e,e.return,q)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,Bu(e,i,a!==null?a.memoizedProps:i)),l&1024&&($u=!0);break;case 6:if(Xt(t,e),Qt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(q){Ge(e,e.return,q)}}break;case 3:if(ri=null,i=yn,yn=ni(t.containerInfo),Xt(t,e),yn=i,Qt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Dl(t.containerInfo)}catch(q){Ge(e,e.return,q)}$u&&($u=!1,Xp(e));break;case 4:l=yn,yn=ni(e.stateNode.containerInfo),Xt(t,e),Qt(e),yn=l;break;case 12:Xt(t,e),Qt(e);break;case 13:Xt(t,e),Qt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Qu=st()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,qu(e,l)));break;case 22:i=e.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,L=oa,I=ft;if(oa=L||i,ft=I||j,Xt(t,e),ft=I,oa=L,Qt(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||j||oa||ft||vr(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){j=a=t;try{if(d=j.stateNode,i)x=d.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{S=j.stateNode;var F=j.memoizedProps.style,H=F!=null&&F.hasOwnProperty("display")?F.display:null;S.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(q){Ge(j,j.return,q)}}}else if(t.tag===6){if(a===null){j=t;try{j.stateNode.nodeValue=i?"":j.memoizedProps}catch(q){Ge(j,j.return,q)}}}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}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,qu(e,a))));break;case 19:Xt(t,e),Qt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,qu(e,l)));break;case 30:break;case 21:break;default:Xt(t,e),Qt(e)}}function Qt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Hp(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var i=a.stateNode,d=Hu(e);Vs(e,d,i);break;case 5:var x=a.stateNode;a.flags&32&&(Pr(x,""),a.flags&=-33);var S=Hu(e);Vs(e,S,x);break;case 3:case 4:var j=a.stateNode.containerInfo,L=Hu(e);Pu(e,L,j);break;default:throw Error(s(161))}}catch(I){Ge(e,e.return,I)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Xp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Xp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Aa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)qp(e,t.alternate,t),t=t.sibling}function vr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ra(4,t,t.return),vr(t);break;case 1:Un(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Lp(t,t.return,a),vr(t);break;case 27:Cl(t.stateNode);case 26:case 5:Un(t,t.return),vr(t);break;case 22:t.memoizedState===null&&vr(t);break;case 30:vr(t);break;default:vr(t)}e=e.sibling}}function ka(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,d=t,x=d.flags;switch(d.tag){case 0:case 11:case 15:ka(i,d,a),gl(4,d);break;case 1:if(ka(i,d,a),l=d,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(L){Ge(l,l.return,L)}if(l=d,i=l.updateQueue,i!==null){var S=l.stateNode;try{var j=i.shared.hiddenCallbacks;if(j!==null)for(i.shared.hiddenCallbacks=null,i=0;i<j.length;i++)wh(j[i],S)}catch(L){Ge(l,l.return,L)}}a&&x&64&&Up(d),vl(d,d.return);break;case 27:Pp(d);case 26:case 5:ka(i,d,a),a&&l===null&&x&4&&Bp(d),vl(d,d.return);break;case 12:ka(i,d,a);break;case 13:ka(i,d,a),a&&x&4&&Ip(i,d);break;case 22:d.memoizedState===null&&ka(i,d,a),vl(d,d.return);break;case 30:break;default:ka(i,d,a)}t=t.sibling}}function Vu(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&&nl(a))}function Yu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&nl(e))}function Ln(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Qp(e,t,a,l),t=t.sibling}function Qp(e,t,a,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ln(e,t,a,l),i&2048&&gl(9,t);break;case 1:Ln(e,t,a,l);break;case 3:Ln(e,t,a,l),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&nl(e)));break;case 12:if(i&2048){Ln(e,t,a,l),e=t.stateNode;try{var d=t.memoizedProps,x=d.id,S=d.onPostCommit;typeof S=="function"&&S(x,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){Ge(t,t.return,j)}}else Ln(e,t,a,l);break;case 13:Ln(e,t,a,l);break;case 23:break;case 22:d=t.stateNode,x=t.alternate,t.memoizedState!==null?d._visibility&2?Ln(e,t,a,l):yl(e,t):d._visibility&2?Ln(e,t,a,l):(d._visibility|=2,oo(e,t,a,l,(t.subtreeFlags&10256)!==0)),i&2048&&Vu(x,t);break;case 24:Ln(e,t,a,l),i&2048&&Yu(t.alternate,t);break;default:Ln(e,t,a,l)}}function oo(e,t,a,l,i){for(i=i&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var d=e,x=t,S=a,j=l,L=x.flags;switch(x.tag){case 0:case 11:case 15:oo(d,x,S,j,i),gl(8,x);break;case 23:break;case 22:var I=x.stateNode;x.memoizedState!==null?I._visibility&2?oo(d,x,S,j,i):yl(d,x):(I._visibility|=2,oo(d,x,S,j,i)),i&&L&2048&&Vu(x.alternate,x);break;case 24:oo(d,x,S,j,i),i&&L&2048&&Yu(x.alternate,x);break;default:oo(d,x,S,j,i)}t=t.sibling}}function yl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,i=l.flags;switch(l.tag){case 22:yl(a,l),i&2048&&Vu(l.alternate,l);break;case 24:yl(a,l),i&2048&&Yu(l.alternate,l);break;default:yl(a,l)}t=t.sibling}}var bl=8192;function lo(e){if(e.subtreeFlags&bl)for(e=e.child;e!==null;)Kp(e),e=e.sibling}function Kp(e){switch(e.tag){case 26:lo(e),e.flags&bl&&e.memoizedState!==null&&Lw(yn,e.memoizedState,e.memoizedProps);break;case 5:lo(e);break;case 3:case 4:var t=yn;yn=ni(e.stateNode.containerInfo),lo(e),yn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=bl,bl=16777216,lo(e),bl=t):lo(e));break;default:lo(e)}}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 xl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Nt=l,Wp(l,e)}Zp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Fp(e),e=e.sibling}function Fp(e){switch(e.tag){case 0:case 11:case 15:xl(e),e.flags&2048&&Ra(9,e,e.return);break;case 3:xl(e);break;case 12:xl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ys(e)):xl(e);break;default:xl(e)}}function Ys(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Nt=l,Wp(l,e)}Zp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ra(8,t,t.return),Ys(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ys(t));break;default:Ys(t)}e=e.sibling}}function Wp(e,t){for(;Nt!==null;){var a=Nt;switch(a.tag){case 0:case 11:case 15:Ra(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:nl(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Nt=l;else e:for(a=e;Nt!==null;){l=Nt;var i=l.sibling,d=l.return;if(Vp(l),l===a){Nt=null;break e}if(i!==null){i.return=d,Nt=i;break e}Nt=d}}}var JS={getCacheForType:function(e){var t=Ot(yt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},ew=typeof WeakMap=="function"?WeakMap:Map,$e=0,Ze=null,Me=null,Le=0,qe=0,Kt=null,ja=!1,so=!1,Iu=!1,sa=0,lt=0,_a=0,yr=0,Gu=0,dn=0,io=0,Sl=null,$t=null,Xu=!1,Qu=0,Is=1/0,Gs=null,Oa=null,kt=0,Ma=null,co=null,uo=0,Ku=0,Zu=null,Jp=null,wl=0,Fu=null;function Zt(){if(($e&2)!==0&&Le!==0)return Le&-Le;if(_.T!==null){var e=Fr;return e!==0?e:rd()}return nr()}function eg(){dn===0&&(dn=(Le&536870912)===0||Pe?Lt():536870912);var e=un.current;return e!==null&&(e.flags|=32),dn}function Ft(e,t,a){(e===Ze&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&(fo(e,0),Da(e,Le,dn,!1)),ye(e,a),(($e&2)===0||e!==Ze)&&(e===Ze&&(($e&2)===0&&(yr|=a),lt===4&&Da(e,Le,dn,!1)),Bn(e))}function tg(e,t,a){if(($e&6)!==0)throw Error(s(327));var l=!a&&(t&124)===0&&(t&e.expiredLanes)===0||Gn(e,t),i=l?aw(e,t):ed(e,t,!0),d=l;do{if(i===0){so&&!l&&Da(e,t,0,!1);break}else{if(a=e.current.alternate,d&&!tw(a)){i=ed(e,t,!1),d=!1;continue}if(i===2){if(d=t,e.errorRecoveryDisabledLanes&d)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){t=x;e:{var S=e;i=Sl;var j=S.current.memoizedState.isDehydrated;if(j&&(fo(S,x).flags|=256),x=ed(S,x,!1),x!==2){if(Iu&&!j){S.errorRecoveryDisabledLanes|=d,yr|=d,i=4;break e}d=$t,$t=i,d!==null&&($t===null?$t=d:$t.push.apply($t,d))}i=x}if(d=!1,i!==2)continue}}if(i===1){fo(e,0),Da(e,t,0,!0);break}e:{switch(l=e,d=i,d){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Da(l,t,dn,!ja);break e;case 2:$t=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(i=Qu+300-st(),10<i)){if(Da(l,t,dn,!ja),In(l,0,!0)!==0)break e;l.timeoutHandle=jg(ng.bind(null,l,a,$t,Gs,Xu,t,dn,yr,io,ja,d,2,-0,0),i);break e}ng(l,a,$t,Gs,Xu,t,dn,yr,io,ja,d,0,-0,0)}}break}while(!0);Bn(e)}function ng(e,t,a,l,i,d,x,S,j,L,I,F,H,q){if(e.timeoutHandle=-1,F=t.subtreeFlags,(F&8192||(F&16785408)===16785408)&&(kl={stylesheets:null,count:0,unsuspend:Uw},Kp(t),F=Bw(),F!==null)){e.cancelPendingCommit=F(cg.bind(null,e,t,d,a,l,i,x,S,j,I,1,H,q)),Da(e,d,x,!L);return}cg(e,t,d,a,l,i,x,S,j)}function tw(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 l=0;l<a.length;l++){var i=a[l],d=i.getSnapshot;i=i.value;try{if(!It(d(),i))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 Da(e,t,a,l){t&=~Gu,t&=~yr,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var d=31-Je(i),x=1<<d;l[d]=-1,i&=~x}a!==0&&me(e,a,t)}function Xs(){return($e&6)===0?(El(0),!1):!0}function Wu(){if(Me!==null){if(qe===0)var e=Me.return;else e=Me,Jn=fr=null,pu(e),ao=null,ml=0,e=Me;for(;e!==null;)zp(e.alternate,e),e=e.return;Me=null}}function fo(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,bw(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Wu(),Ze=e,Me=a=Zn(e.current,null),Le=t,qe=0,Kt=null,ja=!1,so=Gn(e,t),Iu=!1,io=dn=Gu=yr=_a=lt=0,$t=Sl=null,Xu=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var i=31-Je(l),d=1<<i;t|=e[i],l&=~d}return sa=t,ps(),a}function ag(e,t){ke=null,_.H=Ds,t===rl||t===Ns?(t=xh(),qe=3):t===vh?(t=xh(),qe=4):qe=t===Sp?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Kt=t,Me===null&&(lt=1,Hs(e,on(t,e.current)))}function rg(){var e=_.H;return _.H=Ds,e===null?Ds:e}function og(){var e=_.A;return _.A=JS,e}function Ju(){lt=4,ja||(Le&4194048)!==Le&&un.current!==null||(so=!0),(_a&134217727)===0&&(yr&134217727)===0||Ze===null||Da(Ze,Le,dn,!1)}function ed(e,t,a){var l=$e;$e|=2;var i=rg(),d=og();(Ze!==e||Le!==t)&&(Gs=null,fo(e,t)),t=!1;var x=lt;e:do try{if(qe!==0&&Me!==null){var S=Me,j=Kt;switch(qe){case 8:Wu(),x=6;break e;case 3:case 2:case 9:case 6:un.current===null&&(t=!0);var L=qe;if(qe=0,Kt=null,mo(e,S,j,L),a&&so){x=0;break e}break;default:L=qe,qe=0,Kt=null,mo(e,S,j,L)}}nw(),x=lt;break}catch(I){ag(e,I)}while(!0);return t&&e.shellSuspendCounter++,Jn=fr=null,$e=l,_.H=i,_.A=d,Me===null&&(Ze=null,Le=0,ps()),x}function nw(){for(;Me!==null;)lg(Me)}function aw(e,t){var a=$e;$e|=2;var l=rg(),i=og();Ze!==e||Le!==t?(Gs=null,Is=st()+500,fo(e,t)):so=Gn(e,t);e:do try{if(qe!==0&&Me!==null){t=Me;var d=Kt;t:switch(qe){case 1:qe=0,Kt=null,mo(e,t,d,1);break;case 2:case 9:if(yh(d)){qe=0,Kt=null,sg(t);break}t=function(){qe!==2&&qe!==9||Ze!==e||(qe=7),Bn(e)},d.then(t,t);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:yh(d)?(qe=0,Kt=null,sg(t)):(qe=0,Kt=null,mo(e,t,d,7));break;case 5:var x=null;switch(Me.tag){case 26:x=Me.memoizedState;case 5:case 27:var S=Me;if(!x||qg(x)){qe=0,Kt=null;var j=S.sibling;if(j!==null)Me=j;else{var L=S.return;L!==null?(Me=L,Qs(L)):Me=null}break t}}qe=0,Kt=null,mo(e,t,d,5);break;case 6:qe=0,Kt=null,mo(e,t,d,6);break;case 8:Wu(),lt=6;break e;default:throw Error(s(462))}}rw();break}catch(I){ag(e,I)}while(!0);return Jn=fr=null,_.H=l,_.A=i,$e=a,Me!==null?0:(Ze=null,Le=0,ps(),lt)}function rw(){for(;Me!==null&&!hn();)lg(Me)}function lg(e){var t=Mp(e.alternate,e,sa);e.memoizedProps=e.pendingProps,t===null?Qs(e):Me=t}function sg(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Rp(a,t,t.pendingProps,t.type,void 0,Le);break;case 11:t=Rp(a,t,t.pendingProps,t.type.render,t.ref,Le);break;case 5:pu(t);default:zp(a,t),t=Me=ih(t,sa),t=Mp(a,t,sa)}e.memoizedProps=e.pendingProps,t===null?Qs(e):Me=t}function mo(e,t,a,l){Jn=fr=null,pu(t),ao=null,ml=0;var i=t.return;try{if(XS(e,i,t,a,Le)){lt=1,Hs(e,on(a,e.current)),Me=null;return}}catch(d){if(i!==null)throw Me=i,d;lt=1,Hs(e,on(a,e.current)),Me=null;return}t.flags&32768?(Pe||l===1?e=!0:so||(Le&536870912)!==0?e=!1:(ja=e=!0,(l===2||l===9||l===3||l===6)&&(l=un.current,l!==null&&l.tag===13&&(l.flags|=16384))),ig(t,e)):Qs(t)}function Qs(e){var t=e;do{if((t.flags&32768)!==0){ig(t,ja);return}e=t.return;var a=KS(t.alternate,t,sa);if(a!==null){Me=a;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);lt===0&&(lt=5)}function ig(e,t){do{var a=ZS(e.alternate,e);if(a!==null){a.flags&=32767,Me=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Me=e;return}Me=e=a}while(e!==null);lt=6,Me=null}function cg(e,t,a,l,i,d,x,S,j){e.cancelPendingCommit=null;do Ks();while(kt!==0);if(($e&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(d=t.lanes|t.childLanes,d|=Yc,Xe(e,a,d,x,S,j),e===Ze&&(Me=Ze=null,Le=0),co=t,Ma=e,uo=a,Ku=d,Zu=i,Jp=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,iw(Yn,function(){return hg(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null,i=P.p,P.p=2,x=$e,$e|=4;try{FS(e,t,a)}finally{$e=x,P.p=i,_.T=l}}kt=1,ug(),dg(),fg()}}function ug(){if(kt===1){kt=0;var e=Ma,t=co,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=_.T,_.T=null;var l=P.p;P.p=2;var i=$e;$e|=4;try{Gp(t,e);var d=fd,x=Wm(e.containerInfo),S=d.focusedElem,j=d.selectionRange;if(x!==S&&S&&S.ownerDocument&&Fm(S.ownerDocument.documentElement,S)){if(j!==null&&Hc(S)){var L=j.start,I=j.end;if(I===void 0&&(I=L),"selectionStart"in S)S.selectionStart=L,S.selectionEnd=Math.min(I,S.value.length);else{var F=S.ownerDocument||document,H=F&&F.defaultView||window;if(H.getSelection){var q=H.getSelection(),Ee=S.textContent.length,Se=Math.min(j.start,Ee),Ie=j.end===void 0?Se:Math.min(j.end,Ee);!q.extend&&Se>Ie&&(x=Ie,Ie=Se,Se=x);var D=Zm(S,Se),M=Zm(S,Ie);if(D&&M&&(q.rangeCount!==1||q.anchorNode!==D.node||q.anchorOffset!==D.offset||q.focusNode!==M.node||q.focusOffset!==M.offset)){var z=F.createRange();z.setStart(D.node,D.offset),q.removeAllRanges(),Se>Ie?(q.addRange(z),q.extend(M.node,M.offset)):(z.setEnd(M.node,M.offset),q.addRange(z))}}}}for(F=[],q=S;q=q.parentNode;)q.nodeType===1&&F.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<F.length;S++){var K=F[S];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}si=!!dd,fd=dd=null}finally{$e=i,P.p=l,_.T=a}}e.current=t,kt=2}}function dg(){if(kt===2){kt=0;var e=Ma,t=co,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=_.T,_.T=null;var l=P.p;P.p=2;var i=$e;$e|=4;try{qp(e,t.alternate,t)}finally{$e=i,P.p=l,_.T=a}}kt=3}}function fg(){if(kt===4||kt===3){kt=0,pn();var e=Ma,t=co,a=uo,l=Jp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?kt=5:(kt=0,co=Ma=null,mg(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Oa=null),gt(a),t=t.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Yt,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=_.T,i=P.p,P.p=2,_.T=null;try{for(var d=e.onRecoverableError,x=0;x<l.length;x++){var S=l[x];d(S.value,{componentStack:S.stack})}}finally{_.T=t,P.p=i}}(uo&3)!==0&&Ks(),Bn(e),i=e.pendingLanes,(a&4194090)!==0&&(i&42)!==0?e===Fu?wl++:(wl=0,Fu=e):wl=0,El(0)}}function mg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,nl(t)))}function Ks(e){return ug(),dg(),fg(),hg()}function hg(){if(kt!==5)return!1;var e=Ma,t=Ku;Ku=0;var a=gt(uo),l=_.T,i=P.p;try{P.p=32>a?32:a,_.T=null,a=Zu,Zu=null;var d=Ma,x=uo;if(kt=0,co=Ma=null,uo=0,($e&6)!==0)throw Error(s(331));var S=$e;if($e|=4,Fp(d.current),Qp(d,d.current,x,a),$e=S,El(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(Yt,d)}catch{}return!0}finally{P.p=i,_.T=l,mg(e,t)}}function pg(e,t,a){t=on(a,t),t=ku(e.stateNode,t,2),e=Ea(e,t,2),e!==null&&(ye(e,2),Bn(e))}function Ge(e,t,a){if(e.tag===3)pg(e,e,a);else for(;t!==null;){if(t.tag===3){pg(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Oa===null||!Oa.has(l))){e=on(a,e),a=bp(2),l=Ea(t,a,2),l!==null&&(xp(a,l,t,e),ye(l,2),Bn(l));break}}t=t.return}}function td(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new ew;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(a)||(Iu=!0,i.add(a),e=ow.bind(null,e,t,a),t.then(e,e))}function ow(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ze===e&&(Le&a)===a&&(lt===4||lt===3&&(Le&62914560)===Le&&300>st()-Qu?($e&2)===0&&fo(e,0):Gu|=a,io===Le&&(io=0)),Bn(e)}function gg(e,t){t===0&&(t=er()),e=Xr(e,t),e!==null&&(ye(e,t),Bn(e))}function lw(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),gg(e,a)}function sw(e,t){var a=0;switch(e.tag){case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),gg(e,a)}function iw(e,t){return et(e,t)}var Zs=null,ho=null,nd=!1,Fs=!1,ad=!1,br=0;function Bn(e){e!==ho&&e.next===null&&(ho===null?Zs=ho=e:ho=ho.next=e),Fs=!0,nd||(nd=!0,uw())}function El(e,t){if(!ad&&Fs){ad=!0;do for(var a=!1,l=Zs;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var d=0;else{var x=l.suspendedLanes,S=l.pingedLanes;d=(1<<31-Je(42|e)+1)-1,d&=i&~(x&~S),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(a=!0,xg(l,d))}else d=Le,d=In(l,l===Ze?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(d&3)===0||Gn(l,d)||(a=!0,xg(l,d));l=l.next}while(a);ad=!1}}function cw(){vg()}function vg(){Fs=nd=!1;var e=0;br!==0&&(yw()&&(e=br),br=0);for(var t=st(),a=null,l=Zs;l!==null;){var i=l.next,d=yg(l,t);d===0?(l.next=null,a===null?Zs=i:a.next=i,i===null&&(ho=a)):(a=l,(e!==0||(d&3)!==0)&&(Fs=!0)),l=i}El(e)}function yg(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var x=31-Je(d),S=1<<x,j=i[x];j===-1?((S&a)===0||(S&l)!==0)&&(i[x]=ya(S,t)):j<=t&&(e.expiredLanes|=S),d&=~S}if(t=Ze,a=Le,a=In(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(qe===2||qe===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&rt(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Gn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&rt(l),gt(a)){case 2:case 8:a=jr;break;case 32:a=Yn;break;case 268435456:a=gn;break;default:a=Yn}return l=bg.bind(null,e),a=et(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&rt(l),e.callbackPriority=2,e.callbackNode=null,2}function bg(e,t){if(kt!==0&&kt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Ks()&&e.callbackNode!==a)return null;var l=Le;return l=In(e,e===Ze?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(tg(e,l,t),yg(e,st()),e.callbackNode!=null&&e.callbackNode===a?bg.bind(null,e):null)}function xg(e,t){if(Ks())return null;tg(e,t,!0)}function uw(){xw(function(){($e&6)!==0?et(pt,cw):vg()})}function rd(){return br===0&&(br=Lt()),br}function Sg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:is(""+e)}function wg(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 dw(e,t,a,l,i){if(t==="submit"&&a&&a.stateNode===i){var d=Sg((i[Ke]||null).action),x=l.submitter;x&&(t=(t=x[Ke]||null)?Sg(t.formAction):x.getAttribute("formAction"),t!==null&&(d=t,x=null));var S=new fs("action","action",null,l,i);e.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(br!==0){var j=x?wg(i,x):new FormData(i);Nu(a,{pending:!0,data:j,method:i.method,action:d},null,j)}}else typeof d=="function"&&(S.preventDefault(),j=x?wg(i,x):new FormData(i),Nu(a,{pending:!0,data:j,method:i.method,action:d},d,j))},currentTarget:i}]})}}for(var od=0;od<Vc.length;od++){var ld=Vc[od],fw=ld.toLowerCase(),mw=ld[0].toUpperCase()+ld.slice(1);vn(fw,"on"+mw)}vn(th,"onAnimationEnd"),vn(nh,"onAnimationIteration"),vn(ah,"onAnimationStart"),vn("dblclick","onDoubleClick"),vn("focusin","onFocus"),vn("focusout","onBlur"),vn(jS,"onTransitionRun"),vn(_S,"onTransitionStart"),vn(OS,"onTransitionCancel"),vn(rh,"onTransitionEnd"),Lr("onMouseEnter",["mouseout","mouseover"]),Lr("onMouseLeave",["mouseout","mouseover"]),Lr("onPointerEnter",["pointerout","pointerover"]),Lr("onPointerLeave",["pointerout","pointerover"]),ar("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ar("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ar("onBeforeInput",["compositionend","keypress","textInput","paste"]),ar("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ar("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ar("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nl="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(" "),hw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nl));function Eg(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],i=l.event;l=l.listeners;e:{var d=void 0;if(t)for(var x=l.length-1;0<=x;x--){var S=l[x],j=S.instance,L=S.currentTarget;if(S=S.listener,j!==d&&i.isPropagationStopped())break e;d=S,i.currentTarget=L;try{d(i)}catch(I){Bs(I)}i.currentTarget=null,d=j}else for(x=0;x<l.length;x++){if(S=l[x],j=S.instance,L=S.currentTarget,S=S.listener,j!==d&&i.isPropagationStopped())break e;d=S,i.currentTarget=L;try{d(i)}catch(I){Bs(I)}i.currentTarget=null,d=j}}}}function De(e,t){var a=t[Mr];a===void 0&&(a=t[Mr]=new Set);var l=e+"__bubble";a.has(l)||(Ng(t,e,2,!1),a.add(l))}function sd(e,t,a){var l=0;t&&(l|=4),Ng(a,e,l,t)}var Ws="_reactListening"+Math.random().toString(36).slice(2);function id(e){if(!e[Ws]){e[Ws]=!0,vm.forEach(function(a){a!=="selectionchange"&&(hw.has(a)||sd(a,!1,e),sd(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ws]||(t[Ws]=!0,sd("selectionchange",!1,t))}}function Ng(e,t,a,l){switch(Qg(t)){case 2:var i=$w;break;case 8:i=qw;break;default:i=wd}a=i.bind(null,t,a,e),i=void 0,!jc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function cd(e,t,a,l,i){var d=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var x=l.tag;if(x===3||x===4){var S=l.stateNode.containerInfo;if(S===i)break;if(x===4)for(x=l.return;x!==null;){var j=x.tag;if((j===3||j===4)&&x.stateNode.containerInfo===i)return;x=x.return}for(;S!==null;){if(x=Dr(S),x===null)return;if(j=x.tag,j===5||j===6||j===26||j===27){l=d=x;continue e}S=S.parentNode}}l=l.return}_m(function(){var L=d,I=Ac(a),F=[];e:{var H=oh.get(e);if(H!==void 0){var q=fs,Ee=e;switch(e){case"keypress":if(us(a)===0)break e;case"keydown":case"keyup":q=iS;break;case"focusin":Ee="focus",q=Dc;break;case"focusout":Ee="blur",q=Dc;break;case"beforeblur":case"afterblur":q=Dc;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=Dm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=Z1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=dS;break;case th:case nh:case ah:q=J1;break;case rh:q=mS;break;case"scroll":case"scrollend":q=Q1;break;case"wheel":q=pS;break;case"copy":case"cut":case"paste":q=tS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=Um;break;case"toggle":case"beforetoggle":q=vS}var Se=(t&4)!==0,Ie=!Se&&(e==="scroll"||e==="scrollend"),D=Se?H!==null?H+"Capture":null:H;Se=[];for(var M=L,z;M!==null;){var K=M;if(z=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||z===null||D===null||(K=Vo(M,D),K!=null&&Se.push(Tl(M,K,z))),Ie)break;M=M.return}0<Se.length&&(H=new q(H,Ee,null,a,I),F.push({event:H,listeners:Se}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",H&&a!==Rc&&(Ee=a.relatedTarget||a.fromElement)&&(Dr(Ee)||Ee[St]))break e;if((q||H)&&(H=I.window===I?I:(H=I.ownerDocument)?H.defaultView||H.parentWindow:window,q?(Ee=a.relatedTarget||a.toElement,q=L,Ee=Ee?Dr(Ee):null,Ee!==null&&(Ie=u(Ee),Se=Ee.tag,Ee!==Ie||Se!==5&&Se!==27&&Se!==6)&&(Ee=null)):(q=null,Ee=L),q!==Ee)){if(Se=Dm,K="onMouseLeave",D="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(Se=Um,K="onPointerLeave",D="onPointerEnter",M="pointer"),Ie=q==null?H:qo(q),z=Ee==null?H:qo(Ee),H=new Se(K,M+"leave",q,a,I),H.target=Ie,H.relatedTarget=z,K=null,Dr(I)===L&&(Se=new Se(D,M+"enter",Ee,a,I),Se.target=z,Se.relatedTarget=Ie,K=Se),Ie=K,q&&Ee)t:{for(Se=q,D=Ee,M=0,z=Se;z;z=po(z))M++;for(z=0,K=D;K;K=po(K))z++;for(;0<M-z;)Se=po(Se),M--;for(;0<z-M;)D=po(D),z--;for(;M--;){if(Se===D||D!==null&&Se===D.alternate)break t;Se=po(Se),D=po(D)}Se=null}else Se=null;q!==null&&Tg(F,H,q,Se,!1),Ee!==null&&Ie!==null&&Tg(F,Ie,Ee,Se,!0)}}e:{if(H=L?qo(L):window,q=H.nodeName&&H.nodeName.toLowerCase(),q==="select"||q==="input"&&H.type==="file")var he=Ym;else if(qm(H))if(Im)he=RS;else{he=TS;var Oe=NS}else q=H.nodeName,!q||q.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?L&&Cc(L.elementType)&&(he=Ym):he=CS;if(he&&(he=he(e,L))){Vm(F,he,a,I);break e}Oe&&Oe(e,H,L),e==="focusout"&&L&&H.type==="number"&&L.memoizedProps.value!=null&&Tc(H,"number",H.value)}switch(Oe=L?qo(L):window,e){case"focusin":(qm(Oe)||Oe.contentEditable==="true")&&(Yr=Oe,Pc=L,Fo=null);break;case"focusout":Fo=Pc=Yr=null;break;case"mousedown":$c=!0;break;case"contextmenu":case"mouseup":case"dragend":$c=!1,Jm(F,a,I);break;case"selectionchange":if(kS)break;case"keydown":case"keyup":Jm(F,a,I)}var ve;if(Uc)e:{switch(e){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else Vr?Pm(e,a)&&(we="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(we="onCompositionStart");we&&(Lm&&a.locale!=="ko"&&(Vr||we!=="onCompositionStart"?we==="onCompositionEnd"&&Vr&&(ve=Om()):(ba=I,_c="value"in ba?ba.value:ba.textContent,Vr=!0)),Oe=Js(L,we),0<Oe.length&&(we=new zm(we,e,null,a,I),F.push({event:we,listeners:Oe}),ve?we.data=ve:(ve=$m(a),ve!==null&&(we.data=ve)))),(ve=bS?xS(e,a):SS(e,a))&&(we=Js(L,"onBeforeInput"),0<we.length&&(Oe=new zm("onBeforeInput","beforeinput",null,a,I),F.push({event:Oe,listeners:we}),Oe.data=ve)),dw(F,e,L,a,I)}Eg(F,t)})}function Tl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Js(e,t){for(var a=t+"Capture",l=[];e!==null;){var i=e,d=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||d===null||(i=Vo(e,a),i!=null&&l.unshift(Tl(e,i,d)),i=Vo(e,t),i!=null&&l.push(Tl(e,i,d))),e.tag===3)return l;e=e.return}return[]}function po(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Tg(e,t,a,l,i){for(var d=t._reactName,x=[];a!==null&&a!==l;){var S=a,j=S.alternate,L=S.stateNode;if(S=S.tag,j!==null&&j===l)break;S!==5&&S!==26&&S!==27||L===null||(j=L,i?(L=Vo(a,d),L!=null&&x.unshift(Tl(a,L,j))):i||(L=Vo(a,d),L!=null&&x.push(Tl(a,L,j)))),a=a.return}x.length!==0&&e.push({event:t,listeners:x})}var pw=/\r\n?/g,gw=/\u0000|\uFFFD/g;function Cg(e){return(typeof e=="string"?e:""+e).replace(pw,`
|
|
50
|
+
`).replace(gw,"")}function Rg(e,t){return t=Cg(t),Cg(e)===t}function ei(){}function Ye(e,t,a,l,i,d){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Pr(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Pr(e,""+l);break;case"className":os(e,"class",l);break;case"tabIndex":os(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":os(e,a,l);break;case"style":km(e,l,d);break;case"data":if(t!=="object"){os(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=is(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="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 d=="function"&&(a==="formAction"?(t!=="input"&&Ye(e,t,"name",i.name,i,null),Ye(e,t,"formEncType",i.formEncType,i,null),Ye(e,t,"formMethod",i.formMethod,i,null),Ye(e,t,"formTarget",i.formTarget,i,null)):(Ye(e,t,"encType",i.encType,i,null),Ye(e,t,"method",i.method,i,null),Ye(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=is(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=ei);break;case"onScroll":l!=null&&De("scroll",e);break;case"onScrollEnd":l!=null&&De("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=is(""+l),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":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":De("beforetoggle",e),De("toggle",e),rs(e,"popover",l);break;case"xlinkActuate":Qn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Qn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Qn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Qn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Qn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Qn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Qn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Qn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Qn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":rs(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=G1.get(a)||a,rs(e,a,l))}}function ud(e,t,a,l,i,d){switch(a){case"style":km(e,l,d);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Pr(e,l):(typeof l=="number"||typeof l=="bigint")&&Pr(e,""+l);break;case"onScroll":l!=null&&De("scroll",e);break;case"onScrollEnd":l!=null&&De("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ei);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ym.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),d=e[Ke]||null,d=d!=null?d[a]:null,typeof d=="function"&&e.removeEventListener(t,d,i),typeof l=="function")){typeof d!="function"&&d!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,i);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):rs(e,a,l)}}}function jt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",e),De("load",e);var l=!1,i=!1,d;for(d in a)if(a.hasOwnProperty(d)){var x=a[d];if(x!=null)switch(d){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ye(e,t,d,x,a,null)}}i&&Ye(e,t,"srcSet",a.srcSet,a,null),l&&Ye(e,t,"src",a.src,a,null);return;case"input":De("invalid",e);var S=d=x=i=null,j=null,L=null;for(l in a)if(a.hasOwnProperty(l)){var I=a[l];if(I!=null)switch(l){case"name":i=I;break;case"type":x=I;break;case"checked":j=I;break;case"defaultChecked":L=I;break;case"value":d=I;break;case"defaultValue":S=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(s(137,t));break;default:Ye(e,t,l,I,a,null)}}Tm(e,d,S,j,L,x,i,!1),ls(e);return;case"select":De("invalid",e),l=x=d=null;for(i in a)if(a.hasOwnProperty(i)&&(S=a[i],S!=null))switch(i){case"value":d=S;break;case"defaultValue":x=S;break;case"multiple":l=S;default:Ye(e,t,i,S,a,null)}t=d,a=x,e.multiple=!!l,t!=null?Hr(e,!!l,t,!1):a!=null&&Hr(e,!!l,a,!0);return;case"textarea":De("invalid",e),d=i=l=null;for(x in a)if(a.hasOwnProperty(x)&&(S=a[x],S!=null))switch(x){case"value":l=S;break;case"defaultValue":i=S;break;case"children":d=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(s(91));break;default:Ye(e,t,x,S,a,null)}Rm(e,l,i,d),ls(e);return;case"option":for(j in a)a.hasOwnProperty(j)&&(l=a[j],l!=null)&&(j==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Ye(e,t,j,l,a,null));return;case"dialog":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(l=0;l<Nl.length;l++)De(Nl[l],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in a)if(a.hasOwnProperty(L)&&(l=a[L],l!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ye(e,t,L,l,a,null)}return;default:if(Cc(t)){for(I in a)a.hasOwnProperty(I)&&(l=a[I],l!==void 0&&ud(e,t,I,l,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(l=a[S],l!=null&&Ye(e,t,S,l,a,null))}function vw(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,d=null,x=null,S=null,j=null,L=null,I=null;for(q in a){var F=a[q];if(a.hasOwnProperty(q)&&F!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":j=F;default:l.hasOwnProperty(q)||Ye(e,t,q,null,l,F)}}for(var H in l){var q=l[H];if(F=a[H],l.hasOwnProperty(H)&&(q!=null||F!=null))switch(H){case"type":d=q;break;case"name":i=q;break;case"checked":L=q;break;case"defaultChecked":I=q;break;case"value":x=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,t));break;default:q!==F&&Ye(e,t,H,q,l,F)}}Nc(e,x,S,j,L,I,d,i);return;case"select":q=x=S=H=null;for(d in a)if(j=a[d],a.hasOwnProperty(d)&&j!=null)switch(d){case"value":break;case"multiple":q=j;default:l.hasOwnProperty(d)||Ye(e,t,d,null,l,j)}for(i in l)if(d=l[i],j=a[i],l.hasOwnProperty(i)&&(d!=null||j!=null))switch(i){case"value":H=d;break;case"defaultValue":S=d;break;case"multiple":x=d;default:d!==j&&Ye(e,t,i,d,l,j)}t=S,a=x,l=q,H!=null?Hr(e,!!a,H,!1):!!l!=!!a&&(t!=null?Hr(e,!!a,t,!0):Hr(e,!!a,a?[]:"",!1));return;case"textarea":q=H=null;for(S in a)if(i=a[S],a.hasOwnProperty(S)&&i!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ye(e,t,S,null,l,i)}for(x in l)if(i=l[x],d=a[x],l.hasOwnProperty(x)&&(i!=null||d!=null))switch(x){case"value":H=i;break;case"defaultValue":q=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(s(91));break;default:i!==d&&Ye(e,t,x,i,l,d)}Cm(e,H,q);return;case"option":for(var Ee in a)H=a[Ee],a.hasOwnProperty(Ee)&&H!=null&&!l.hasOwnProperty(Ee)&&(Ee==="selected"?e.selected=!1:Ye(e,t,Ee,null,l,H));for(j in l)H=l[j],q=a[j],l.hasOwnProperty(j)&&H!==q&&(H!=null||q!=null)&&(j==="selected"?e.selected=H&&typeof H!="function"&&typeof H!="symbol":Ye(e,t,j,H,l,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 Se in a)H=a[Se],a.hasOwnProperty(Se)&&H!=null&&!l.hasOwnProperty(Se)&&Ye(e,t,Se,null,l,H);for(L in l)if(H=l[L],q=a[L],l.hasOwnProperty(L)&&H!==q&&(H!=null||q!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:Ye(e,t,L,H,l,q)}return;default:if(Cc(t)){for(var Ie in a)H=a[Ie],a.hasOwnProperty(Ie)&&H!==void 0&&!l.hasOwnProperty(Ie)&&ud(e,t,Ie,void 0,l,H);for(I in l)H=l[I],q=a[I],!l.hasOwnProperty(I)||H===q||H===void 0&&q===void 0||ud(e,t,I,H,l,q);return}}for(var D in a)H=a[D],a.hasOwnProperty(D)&&H!=null&&!l.hasOwnProperty(D)&&Ye(e,t,D,null,l,H);for(F in l)H=l[F],q=a[F],!l.hasOwnProperty(F)||H===q||H==null&&q==null||Ye(e,t,F,H,l,q)}var dd=null,fd=null;function ti(e){return e.nodeType===9?e:e.ownerDocument}function Ag(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 kg(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 md(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 hd=null;function yw(){var e=window.event;return e&&e.type==="popstate"?e===hd?!1:(hd=e,!0):(hd=null,!1)}var jg=typeof setTimeout=="function"?setTimeout:void 0,bw=typeof clearTimeout=="function"?clearTimeout:void 0,_g=typeof Promise=="function"?Promise:void 0,xw=typeof queueMicrotask=="function"?queueMicrotask:typeof _g<"u"?function(e){return _g.resolve(null).then(e).catch(Sw)}:jg;function Sw(e){setTimeout(function(){throw e})}function za(e){return e==="head"}function Og(e,t){var a=t,l=0,i=0;do{var d=a.nextSibling;if(e.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"){if(0<l&&8>l){a=l;var x=e.ownerDocument;if(a&1&&Cl(x.documentElement),a&2&&Cl(x.body),a&4)for(a=x.head,Cl(a),x=a.firstChild;x;){var S=x.nextSibling,j=x.nodeName;x[$o]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&x.rel.toLowerCase()==="stylesheet"||a.removeChild(x),x=S}}if(i===0){e.removeChild(d),Dl(t);return}i--}else a==="$"||a==="$?"||a==="$!"?i++:l=a.charCodeAt(0)-48;else l=0;a=d}while(a);Dl(t)}function pd(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":pd(a),xc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function ww(e,t,a,l){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[$o])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=bn(e.nextSibling),e===null)break}return null}function Ew(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=bn(e.nextSibling),e===null))return null;return e}function gd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Nw(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function bn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var vd=null;function Mg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function Dg(e,t,a){switch(t=ti(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Cl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);xc(e)}var fn=new Map,zg=new Set;function ni(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ia=P.d;P.d={f:Tw,r:Cw,D:Rw,C:Aw,L:kw,m:jw,X:Ow,S:_w,M:Mw};function Tw(){var e=ia.f(),t=Xs();return e||t}function Cw(e){var t=zr(e);t!==null&&t.tag===5&&t.type==="form"?tp(t):ia.r(e)}var go=typeof document>"u"?null:document;function Ug(e,t,a){var l=go;if(l&&typeof t=="string"&&t){var i=rn(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),zg.has(i)||(zg.add(i),e={rel:e,crossOrigin:a,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),jt(t,"link",e),wt(t),l.head.appendChild(t)))}}function Rw(e){ia.D(e),Ug("dns-prefetch",e,null)}function Aw(e,t){ia.C(e,t),Ug("preconnect",e,t)}function kw(e,t,a){ia.L(e,t,a);var l=go;if(l&&e&&t){var i='link[rel="preload"][as="'+rn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+rn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+rn(a.imageSizes)+'"]')):i+='[href="'+rn(e)+'"]';var d=i;switch(t){case"style":d=vo(e);break;case"script":d=yo(e)}fn.has(d)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),fn.set(d,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(Rl(d))||t==="script"&&l.querySelector(Al(d))||(t=l.createElement("link"),jt(t,"link",e),wt(t),l.head.appendChild(t)))}}function jw(e,t){ia.m(e,t);var a=go;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+rn(l)+'"][href="'+rn(e)+'"]',d=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=yo(e)}if(!fn.has(d)&&(e=b({rel:"modulepreload",href:e},t),fn.set(d,e),a.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Al(d)))return}l=a.createElement("link"),jt(l,"link",e),wt(l),a.head.appendChild(l)}}}function _w(e,t,a){ia.S(e,t,a);var l=go;if(l&&e){var i=Ur(l).hoistableStyles,d=vo(e);t=t||"default";var x=i.get(d);if(!x){var S={loading:0,preload:null};if(x=l.querySelector(Rl(d)))S.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=fn.get(d))&&yd(e,a);var j=x=l.createElement("link");wt(j),jt(j,"link",e),j._p=new Promise(function(L,I){j.onload=L,j.onerror=I}),j.addEventListener("load",function(){S.loading|=1}),j.addEventListener("error",function(){S.loading|=2}),S.loading|=4,ai(x,t,l)}x={type:"stylesheet",instance:x,count:1,state:S},i.set(d,x)}}}function Ow(e,t){ia.X(e,t);var a=go;if(a&&e){var l=Ur(a).hoistableScripts,i=yo(e),d=l.get(i);d||(d=a.querySelector(Al(i)),d||(e=b({src:e,async:!0},t),(t=fn.get(i))&&bd(e,t),d=a.createElement("script"),wt(d),jt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(i,d))}}function Mw(e,t){ia.M(e,t);var a=go;if(a&&e){var l=Ur(a).hoistableScripts,i=yo(e),d=l.get(i);d||(d=a.querySelector(Al(i)),d||(e=b({src:e,async:!0,type:"module"},t),(t=fn.get(i))&&bd(e,t),d=a.createElement("script"),wt(d),jt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(i,d))}}function Lg(e,t,a,l){var i=(i=ne.current)?ni(i):null;if(!i)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=vo(a.href),a=Ur(i).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=vo(a.href);var d=Ur(i).hoistableStyles,x=d.get(e);if(x||(i=i.ownerDocument||i,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,x),(d=i.querySelector(Rl(e)))&&!d._p&&(x.instance=d,x.state.loading=5),fn.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},fn.set(e,a),d||Dw(i,e,a,x.state))),t&&l===null)throw Error(s(528,""));return x}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=yo(a),a=Ur(i).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function vo(e){return'href="'+rn(e)+'"'}function Rl(e){return'link[rel="stylesheet"]['+e+"]"}function Bg(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Dw(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),jt(t,"link",a),wt(t),e.head.appendChild(t))}function yo(e){return'[src="'+rn(e)+'"]'}function Al(e){return"script[async]"+e}function Hg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+rn(a.href)+'"]');if(l)return t.instance=l,wt(l),l;var i=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),wt(l),jt(l,"style",i),ai(l,a.precedence,e),t.instance=l;case"stylesheet":i=vo(a.href);var d=e.querySelector(Rl(i));if(d)return t.state.loading|=4,t.instance=d,wt(d),d;l=Bg(a),(i=fn.get(i))&&yd(l,i),d=(e.ownerDocument||e).createElement("link"),wt(d);var x=d;return x._p=new Promise(function(S,j){x.onload=S,x.onerror=j}),jt(d,"link",l),t.state.loading|=4,ai(d,a.precedence,e),t.instance=d;case"script":return d=yo(a.src),(i=e.querySelector(Al(d)))?(t.instance=i,wt(i),i):(l=a,(i=fn.get(d))&&(l=b({},a),bd(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),wt(i),jt(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,ai(l,a.precedence,e));return t.instance}function ai(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,d=i,x=0;x<l.length;x++){var S=l[x];if(S.dataset.precedence===t)d=S;else if(d!==i)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function yd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function bd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ri=null;function Pg(e,t,a){if(ri===null){var l=new Map,i=ri=new Map;i.set(a,l)}else i=ri,l=i.get(a),l||(l=new Map,i.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var d=a[i];if(!(d[$o]||d[ut]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var x=d.getAttribute(t)||"";x=e+x;var S=l.get(x);S?S.push(d):l.set(x,[d])}}return l}function $g(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function zw(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;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 qg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var kl=null;function Uw(){}function Lw(e,t,a){if(kl===null)throw Error(s(475));var l=kl;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var i=vo(a.href),d=e.querySelector(Rl(i));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=oi.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=d,wt(d);return}d=e.ownerDocument||e,a=Bg(a),(i=fn.get(i))&&yd(a,i),d=d.createElement("link"),wt(d);var x=d;x._p=new Promise(function(S,j){x.onload=S,x.onerror=j}),jt(d,"link",a),t.instance=d}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=oi.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function Bw(){if(kl===null)throw Error(s(475));var e=kl;return e.stylesheets&&e.count===0&&xd(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&xd(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function oi(){if(this.count--,this.count===0){if(this.stylesheets)xd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var li=null;function xd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,li=new Map,t.forEach(Hw,e),li=null,oi.call(e))}function Hw(e,t){if(!(t.state.loading&4)){var a=li.get(e);if(a)var l=a.get(null);else{a=new Map,li.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<i.length;d++){var x=i[d];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(a.set(x.dataset.precedence,x),l=x)}l&&a.set(null,l)}i=t.instance,x=i.getAttribute("data-precedence"),d=a.get(x)||l,d===l&&a.set(null,i),a.set(x,i),this.count++,l=oi.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),d?d.parentNode.insertBefore(i,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var jl={$$typeof:O,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function Pw(e,t,a,l,i,d,x,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=tr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tr(0),this.hiddenUpdates=tr(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=d,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Vg(e,t,a,l,i,d,x,S,j,L,I,F){return e=new Pw(e,t,a,x,S,j,L,F),t=1,d===!0&&(t|=24),d=Gt(3,null,null,t),e.current=d,d.stateNode=e,t=tu(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:l,isDehydrated:a,cache:t},ou(d),e}function Yg(e){return e?(e=Qr,e):Qr}function Ig(e,t,a,l,i,d){i=Yg(i),l.context===null?l.context=i:l.pendingContext=i,l=wa(t),l.payload={element:a},d=d===void 0?null:d,d!==null&&(l.callback=d),a=Ea(e,l,t),a!==null&&(Ft(a,e,t),ll(a,e,t))}function Gg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Sd(e,t){Gg(e,t),(e=e.alternate)&&Gg(e,t)}function Xg(e){if(e.tag===13){var t=Xr(e,67108864);t!==null&&Ft(t,e,67108864),Sd(e,67108864)}}var si=!0;function $w(e,t,a,l){var i=_.T;_.T=null;var d=P.p;try{P.p=2,wd(e,t,a,l)}finally{P.p=d,_.T=i}}function qw(e,t,a,l){var i=_.T;_.T=null;var d=P.p;try{P.p=8,wd(e,t,a,l)}finally{P.p=d,_.T=i}}function wd(e,t,a,l){if(si){var i=Ed(l);if(i===null)cd(e,t,l,ii,a),Kg(e,l);else if(Yw(i,e,t,a,l))l.stopPropagation();else if(Kg(e,l),t&4&&-1<Vw.indexOf(e)){for(;i!==null;){var d=zr(i);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var x=nn(d.pendingLanes);if(x!==0){var S=d;for(S.pendingLanes|=2,S.entangledLanes|=2;x;){var j=1<<31-Je(x);S.entanglements[1]|=j,x&=~j}Bn(d),($e&6)===0&&(Is=st()+500,El(0))}}break;case 13:S=Xr(d,2),S!==null&&Ft(S,d,2),Xs(),Sd(d,2)}if(d=Ed(l),d===null&&cd(e,t,l,ii,a),d===i)break;i=d}i!==null&&l.stopPropagation()}else cd(e,t,l,null,a)}}function Ed(e){return e=Ac(e),Nd(e)}var ii=null;function Nd(e){if(ii=null,e=Dr(e),e!==null){var t=u(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===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ii=e,null}function Qg(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(Ja()){case pt:return 2;case jr:return 8;case Yn:case it:return 32;case gn:return 268435456;default:return 32}default:return 32}}var Td=!1,Ua=null,La=null,Ba=null,_l=new Map,Ol=new Map,Ha=[],Vw="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 Kg(e,t){switch(e){case"focusin":case"focusout":Ua=null;break;case"dragenter":case"dragleave":La=null;break;case"mouseover":case"mouseout":Ba=null;break;case"pointerover":case"pointerout":_l.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ol.delete(t.pointerId)}}function Ml(e,t,a,l,i,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:d,targetContainers:[i]},t!==null&&(t=zr(t),t!==null&&Xg(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Yw(e,t,a,l,i){switch(t){case"focusin":return Ua=Ml(Ua,e,t,a,l,i),!0;case"dragenter":return La=Ml(La,e,t,a,l,i),!0;case"mouseover":return Ba=Ml(Ba,e,t,a,l,i),!0;case"pointerover":var d=i.pointerId;return _l.set(d,Ml(_l.get(d)||null,e,t,a,l,i)),!0;case"gotpointercapture":return d=i.pointerId,Ol.set(d,Ml(Ol.get(d)||null,e,t,a,l,i)),!0}return!1}function Zg(e){var t=Dr(e.target);if(t!==null){var a=u(t);if(a!==null){if(t=a.tag,t===13){if(t=m(a),t!==null){e.blockedOn=t,vt(e.priority,function(){if(a.tag===13){var l=Zt();l=Qe(l);var i=Xr(a,l);i!==null&&Ft(i,a,l),Sd(a,l)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ci(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ed(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Rc=l,a.target.dispatchEvent(l),Rc=null}else return t=zr(a),t!==null&&Xg(t),e.blockedOn=a,!1;t.shift()}return!0}function Fg(e,t,a){ci(e)&&a.delete(t)}function Iw(){Td=!1,Ua!==null&&ci(Ua)&&(Ua=null),La!==null&&ci(La)&&(La=null),Ba!==null&&ci(Ba)&&(Ba=null),_l.forEach(Fg),Ol.forEach(Fg)}function ui(e,t){e.blockedOn===t&&(e.blockedOn=null,Td||(Td=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Iw)))}var di=null;function Wg(e){di!==e&&(di=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){di===e&&(di=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if(Nd(l||a)===null)continue;break}var d=zr(a);d!==null&&(e.splice(t,3),t-=3,Nu(d,{pending:!0,data:i,method:a.method,action:l},l,i))}}))}function Dl(e){function t(j){return ui(j,e)}Ua!==null&&ui(Ua,e),La!==null&&ui(La,e),Ba!==null&&ui(Ba,e),_l.forEach(t),Ol.forEach(t);for(var a=0;a<Ha.length;a++){var l=Ha[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ha.length&&(a=Ha[0],a.blockedOn===null);)Zg(a),a.blockedOn===null&&Ha.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var i=a[l],d=a[l+1],x=i[Ke]||null;if(typeof d=="function")x||Wg(a);else if(x){var S=null;if(d&&d.hasAttribute("formAction")){if(i=d,x=d[Ke]||null)S=x.formAction;else if(Nd(i)!==null)continue}else S=x.action;typeof S=="function"?a[l+1]=S:(a.splice(l,3),l-=3),Wg(a)}}}function Cd(e){this._internalRoot=e}fi.prototype.render=Cd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=Zt();Ig(a,l,e,t,null,null)},fi.prototype.unmount=Cd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ig(e.current,2,null,e,null,null),Xs(),t[St]=null}};function fi(e){this._internalRoot=e}fi.prototype.unstable_scheduleHydration=function(e){if(e){var t=nr();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ha.length&&t!==0&&t<Ha[a].priority;a++);Ha.splice(a,0,e),a===0&&Zg(e)}};var Jg=r.version;if(Jg!=="19.1.0")throw Error(s(527,Jg,"19.1.0"));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=v(t),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var Gw={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mi.isDisabled&&mi.supportsFiber)try{Yt=mi.inject(Gw),Rt=mi}catch{}}return Ul.createRoot=function(e,t){if(!c(e))throw Error(s(299));var a=!1,l="",i=pp,d=gp,x=vp,S=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(x=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(S=t.unstable_transitionCallbacks)),t=Vg(e,1,!1,null,null,a,l,i,d,x,S,null),e[St]=t.current,id(e),new Cd(t)},Ul.hydrateRoot=function(e,t,a){if(!c(e))throw Error(s(299));var l=!1,i="",d=pp,x=gp,S=vp,j=null,L=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(x=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(j=a.unstable_transitionCallbacks),a.formState!==void 0&&(L=a.formState)),t=Vg(e,1,!0,t,a??null,l,i,d,x,S,j,L),t.context=Yg(null),a=t.current,l=Zt(),l=Qe(l),i=wa(l),i.callback=null,Ea(a,i,l),a=l,t.current.lanes=a,ye(t,a),Bn(t),e[St]=t.current,id(e),new fi(t)},Ul.version="19.1.0",Ul}var cv;function n2(){if(cv)return kd.exports;cv=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(r){console.error(r)}}return n(),kd.exports=t2(),kd.exports}var a2=n2();const r2="modulepreload",o2=function(n){return"/"+n},uv={},w0=function(r,o,s){let c=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(b=>Promise.resolve(b).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),v=h?.nonce||h?.getAttribute("nonce");c=m(o.map(p=>{if(p=o2(p),p in uv)return;uv[p]=!0;const b=p.endsWith(".css"),y=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const w=document.createElement("link");if(w.rel=b?"stylesheet":r2,b||(w.as="script"),w.crossOrigin="",w.href=p,v&&w.setAttribute("nonce",v),document.head.appendChild(w),b)return new Promise((C,N)=>{w.addEventListener("load",C),w.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function u(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"&&u(h.reason);return r().catch(u)})};/**
|
|
51
|
+
* react-router v7.18.0
|
|
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 kf=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,E0=/^[\\/]{2}/;function l2(n,r){return r+n.replace(/\\/g,"/")}var dv="popstate";function fv(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function s2(n={}){function r(s,c){let u=c.state?.masked,{pathname:m,search:h,hash:v}=u||s.location;return tf("",{pathname:m,search:h,hash:v},c.state&&c.state.usr||null,c.state&&c.state.key||"default",u?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function o(s,c){return typeof c=="string"?c:Kl(c)}return c2(r,o,null,n)}function nt(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function Rn(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function i2(){return Math.random().toString(36).substring(2,10)}function mv(n,r){return{usr:n.state,key:n.key,idx:r,masked:n.mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function tf(n,r,o=null,s,c){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?Mo(r):r,state:o,key:r&&r.key||s||i2(),mask:c}}function Kl({pathname:n="/",search:r="",hash:o=""}){return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function Mo(n){let r={};if(n){let o=n.indexOf("#");o>=0&&(r.hash=n.substring(o),n=n.substring(0,o));let s=n.indexOf("?");s>=0&&(r.search=n.substring(s),n=n.substring(0,s)),n&&(r.pathname=n)}return r}function c2(n,r,o,s={}){let{window:c=document.defaultView,v5Compat:u=!1}=s,m=c.history,h="POP",v=null,p=b();p==null&&(p=0,m.replaceState({...m.state,idx:p},""));function b(){return(m.state||{idx:null}).idx}function y(){h="POP";let T=b(),A=T==null?null:T-p;p=T,v&&v({action:h,location:E.location,delta:A})}function w(T,A){h="PUSH";let k=fv(T)?T:tf(E.location,T,A);p=b()+1;let O=mv(k,p),B=E.createHref(k.mask||k);try{m.pushState(O,"",B)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;c.location.assign(B)}u&&v&&v({action:h,location:E.location,delta:1})}function C(T,A){h="REPLACE";let k=fv(T)?T:tf(E.location,T,A);p=b();let O=mv(k,p),B=E.createHref(k.mask||k);m.replaceState(O,"",B),u&&v&&v({action:h,location:E.location,delta:0})}function N(T){return u2(c,T)}let E={get action(){return h},get location(){return n(c,m)},listen(T){if(v)throw new Error("A history only accepts one active listener");return c.addEventListener(dv,y),v=T,()=>{c.removeEventListener(dv,y),v=null}},createHref(T){return r(c,T)},createURL:N,encodeLocation(T){let A=N(T);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:w,replace:C,go(T){return m.go(T)}};return E}function u2(n,r,o=!1){let s="http://localhost";n&&(s=n.location.origin!=="null"?n.location.origin:n.location.href),nt(s,"No window.location.(origin|href) available to create URL");let c=typeof r=="string"?r:Kl(r);return c=c.replace(/ $/,"%20"),!o&&E0.test(c)&&(c=s+c),new URL(c,s)}function N0(n,r,o="/"){return d2(n,r,o,!1)}function d2(n,r,o,s,c){let u=typeof r=="string"?Mo(r):r,m=ua(u.pathname||"/",o);if(m==null)return null;let h=f2(n),v=null,p=E2(m);for(let b=0;v==null&&b<h.length;++b)v=w2(h[b],p,s);return v}function f2(n){let r=T0(n);return m2(r),r}function T0(n,r=[],o=[],s="",c=!1){let u=(m,h,v=c,p)=>{let b={relativePath:p===void 0?m.path||"":p,caseSensitive:m.caseSensitive===!0,childrenIndex:h,route:m};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(s)&&v)return;nt(b.relativePath.startsWith(s),`Absolute route path "${b.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(s.length)}let y=Cn([s,b.relativePath]),w=o.concat(b);m.children&&m.children.length>0&&(nt(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),T0(m.children,r,w,y,v)),!(m.path==null&&!m.index)&&r.push({path:y,score:x2(y,m.index),routesMeta:w.map((C,N)=>{let[E,T]=A0(C.relativePath,C.caseSensitive,N===w.length-1);return{...C,matcher:E,compiledParams:T}})})};return n.forEach((m,h)=>{if(m.path===""||!m.path?.includes("?"))u(m,h);else for(let v of C0(m.path))u(m,h,!0,v)}),r}function C0(n){let r=n.split("/");if(r.length===0)return[];let[o,...s]=r,c=o.endsWith("?"),u=o.replace(/\?$/,"");if(s.length===0)return c?[u,""]:[u];let m=C0(s.join("/")),h=[];return h.push(...m.map(v=>v===""?u:[u,v].join("/"))),c&&h.push(...m),h.map(v=>n.startsWith("/")&&v===""?"/":v)}function m2(n){n.sort((r,o)=>r.score!==o.score?o.score-r.score:S2(r.routesMeta.map(s=>s.childrenIndex),o.routesMeta.map(s=>s.childrenIndex)))}var h2=/^:[\w-]+$/,p2=3,g2=2,v2=1,y2=10,b2=-2,hv=n=>n==="*";function x2(n,r){let o=n.split("/"),s=o.length;return o.some(hv)&&(s+=b2),r&&(s+=g2),o.filter(c=>!hv(c)).reduce((c,u)=>c+(h2.test(u)?p2:u===""?v2:y2),s)}function S2(n,r){return n.length===r.length&&n.slice(0,-1).every((s,c)=>s===r[c])?n[n.length-1]-r[r.length-1]:0}function w2(n,r,o=!1){let{routesMeta:s}=n,c={},u="/",m=[];for(let h=0;h<s.length;++h){let v=s[h],p=h===s.length-1,b=u==="/"?r:r.slice(u.length)||"/",y={path:v.relativePath,caseSensitive:v.caseSensitive,end:p},w=v.matcher&&v.compiledParams?R0(y,b,v.matcher,v.compiledParams):Mi(y,b),C=v.route;if(!w&&p&&o&&!s[s.length-1].route.index&&(w=Mi({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},b)),!w)return null;Object.assign(c,w.params),m.push({params:c,pathname:Cn([u,w.pathname]),pathnameBase:C2(Cn([u,w.pathnameBase])),route:C}),w.pathnameBase!=="/"&&(u=Cn([u,w.pathnameBase]))}return m}function Mi(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[o,s]=A0(n.path,n.caseSensitive,n.end);return R0(n,r,o,s)}function R0(n,r,o,s){let c=r.match(o);if(!c)return null;let u=c[0],m=u.replace(/(.)\/+$/,"$1"),h=c.slice(1);return{params:s.reduce((p,{paramName:b,isOptional:y},w)=>{if(b==="*"){let N=h[w]||"";m=u.slice(0,u.length-N.length).replace(/(.)\/+$/,"$1")}const C=h[w];return y&&!C?p[b]=void 0:p[b]=(C||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:m,pattern:n}}function A0(n,r=!1,o=!0){Rn(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 s=[],c="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,h,v,p,b)=>{if(s.push({paramName:h,isOptional:v!=null}),v){let y=b.charAt(p+m.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(s.push({paramName:"*"}),c+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,r?void 0:"i"),s]}function E2(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return Rn(!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 (${r}).`),n}}function ua(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let o=r.endsWith("/")?r.length-1:r.length,s=n.charAt(o);return s&&s!=="/"?null:n.slice(o)||"/"}function N2(n,r="/"){let{pathname:o,search:s="",hash:c=""}=typeof n=="string"?Mo(n):n,u;return o?(o=k0(o),o.startsWith("/")?u=pv(o.substring(1),"/"):u=pv(o,r)):u=r,{pathname:u,search:R2(s),hash:A2(c)}}function pv(n,r){let o=Di(r).split("/");return n.split("/").forEach(c=>{c===".."?o.length>1&&o.pop():c!=="."&&o.push(c)}),o.length>1?o.join("/"):"/"}function Md(n,r,o,s){return`Cannot include a '${n}' character in a manually specified \`to.${r}\` field [${JSON.stringify(s)}]. 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 T2(n){return n.filter((r,o)=>o===0||r.route.path&&r.route.path.length>0)}function jf(n){let r=T2(n);return r.map((o,s)=>s===r.length-1?o.pathname:o.pathnameBase)}function nc(n,r,o,s=!1){let c;typeof n=="string"?c=Mo(n):(c={...n},nt(!c.pathname||!c.pathname.includes("?"),Md("?","pathname","search",c)),nt(!c.pathname||!c.pathname.includes("#"),Md("#","pathname","hash",c)),nt(!c.search||!c.search.includes("#"),Md("#","search","hash",c)));let u=n===""||c.pathname==="",m=u?"/":c.pathname,h;if(m==null)h=o;else{let y=r.length-1;if(!s&&m.startsWith("..")){let w=m.split("/");for(;w[0]==="..";)w.shift(),y-=1;c.pathname=w.join("/")}h=y>=0?r[y]:"/"}let v=N2(c,h),p=m&&m!=="/"&&m.endsWith("/"),b=(u||m===".")&&o.endsWith("/");return!v.pathname.endsWith("/")&&(p||b)&&(v.pathname+="/"),v}var k0=n=>n.replace(/[\\/]{2,}/g,"/"),Cn=n=>k0(n.join("/")),Di=n=>n.replace(/\/+$/,""),C2=n=>Di(n).replace(/^\/*/,"/"),R2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,A2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,k2=class{constructor(n,r,o,s=!1){this.status=n,this.statusText=r||"",this.internal=s,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function j2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function _2(n){let r=n.map(o=>o.route.path).filter(Boolean);return Cn(r)||"/"}var j0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function _0(n,r){let o=n;if(typeof o!="string"||!kf.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let s=o,c=!1;if(j0)try{let u=new URL(window.location.href),m=E0.test(o)?new URL(l2(o,u.protocol)):new URL(o),h=ua(m.pathname,r);m.origin===u.origin&&h!=null?o=h+m.search+m.hash:c=!0}catch{Rn(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:c,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var O0=["POST","PUT","PATCH","DELETE"];new Set(O0);var O2=["GET",...O0];new Set(O2);var M2=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function D2(n){try{return M2.includes(new URL(n).protocol)}catch{return!1}}var Do=g.createContext(null);Do.displayName="DataRouter";var ac=g.createContext(null);ac.displayName="DataRouterState";var M0=g.createContext(!1);function z2(){return g.useContext(M0)}var D0=g.createContext({isTransitioning:!1});D0.displayName="ViewTransition";var U2=g.createContext(new Map);U2.displayName="Fetchers";var L2=g.createContext(null);L2.displayName="Await";var tn=g.createContext(null);tn.displayName="Navigation";var Jl=g.createContext(null);Jl.displayName="Location";var mn=g.createContext({outlet:null,matches:[],isDataRoute:!1});mn.displayName="Route";var _f=g.createContext(null);_f.displayName="RouteError";var z0="REACT_ROUTER_ERROR",B2="REDIRECT",H2="ROUTE_ERROR_RESPONSE";function P2(n){if(n.startsWith(`${z0}:${B2}:{`))try{let r=JSON.parse(n.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function $2(n){if(n.startsWith(`${z0}:${H2}:{`))try{let r=JSON.parse(n.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new k2(r.status,r.statusText,r.data)}catch{}}function q2(n,{relative:r}={}){nt(zo(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:s}=g.useContext(tn),{hash:c,pathname:u,search:m}=es(n,{relative:r}),h=u;return o!=="/"&&(h=u==="/"?o:Cn([o,u])),s.createHref({pathname:h,search:m,hash:c})}function zo(){return g.useContext(Jl)!=null}function jn(){return nt(zo(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Jl).location}var U0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function L0(n){g.useContext(tn).static||g.useLayoutEffect(n)}function B0(){let{isDataRoute:n}=g.useContext(mn);return n?nE():V2()}function V2(){nt(zo(),"useNavigate() may be used only in the context of a <Router> component.");let n=g.useContext(Do),{basename:r,navigator:o}=g.useContext(tn),{matches:s}=g.useContext(mn),{pathname:c}=jn(),u=JSON.stringify(jf(s)),m=g.useRef(!1);return L0(()=>{m.current=!0}),g.useCallback((v,p={})=>{if(Rn(m.current,U0),!m.current)return;if(typeof v=="number"){o.go(v);return}let b=nc(v,JSON.parse(u),c,p.relative==="path");n==null&&r!=="/"&&(b.pathname=b.pathname==="/"?r:Cn([r,b.pathname])),(p.replace?o.replace:o.push)(b,p.state,p)},[r,o,u,c,n])}var H0=g.createContext(null);function _3(){return g.useContext(H0)}function Y2(n){let r=g.useContext(mn).outlet;return g.useMemo(()=>r&&g.createElement(H0.Provider,{value:n},r),[r,n])}function O3(){let{matches:n}=g.useContext(mn);return n[n.length-1]?.params??{}}function es(n,{relative:r}={}){let{matches:o}=g.useContext(mn),{pathname:s}=jn(),c=JSON.stringify(jf(o));return g.useMemo(()=>nc(n,JSON.parse(c),s,r==="path"),[n,c,s,r])}function I2(n,r){return P0(n,r)}function P0(n,r,o){nt(zo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=g.useContext(tn),{matches:c}=g.useContext(mn),u=c[c.length-1],m=u?u.params:{},h=u?u.pathname:"/",v=u?u.pathnameBase:"/",p=u&&u.route;{let T=p&&p.path||"";q0(h,!p||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${T}">) 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="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let b=jn(),y;if(r){let T=typeof r=="string"?Mo(r):r;nt(v==="/"||T.pathname?.startsWith(v),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${T.pathname}" was given in the \`location\` prop.`),y=T}else y=b;let w=y.pathname||"/",C=w;if(v!=="/"){let T=v.replace(/^\//,"").split("/");C="/"+w.replace(/^\//,"").split("/").slice(T.length).join("/")}let N=o&&o.state.matches.length?o.state.matches.map(T=>Object.assign(T,{route:o.manifest[T.route.id]||T.route})):N0(n,{pathname:C});Rn(p||N!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Rn(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 "${y.pathname}${y.search}${y.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=Z2(N&&N.map(T=>Object.assign({},T,{params:Object.assign({},m,T.params),pathname:Cn([v,s.encodeLocation?s.encodeLocation(T.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?v:Cn([v,s.encodeLocation?s.encodeLocation(T.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathnameBase])})),c,o);return r&&E?g.createElement(Jl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...y},navigationType:"POP"}},E):E}function G2(){let n=tE(),r=j2(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),o=n instanceof Error?n.stack:null,s="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:s},u={padding:"2px 4px",backgroundColor:s},m=null;return console.error("Error handled by React Router default ErrorBoundary:",n),m=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:u},"ErrorBoundary")," or"," ",g.createElement("code",{style:u},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},r),o?g.createElement("pre",{style:c},o):null,m)}var X2=g.createElement(G2,null),$0=class extends g.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,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){this.props.onError?this.props.onError(n,r):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=$2(n.digest);o&&(n=o)}let r=n!==void 0?g.createElement(mn.Provider,{value:this.props.routeContext},g.createElement(_f.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?g.createElement(Q2,{error:n},r):r}};$0.contextType=M0;var Dd=new WeakMap;function Q2({children:n,error:r}){let{basename:o}=g.useContext(tn);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let s=P2(r.digest);if(s){let c=Dd.get(r);if(c)throw c;let u=_0(s.location,o),m=u.absoluteURL||u.to;if(D2(m))throw new Error("Invalid redirect location");if(j0&&!Dd.get(r))if(u.isExternal||s.reloadDocument)window.location.href=m;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:s.replace}));throw Dd.set(r,h),h}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m}`})}}return n}function K2({routeContext:n,match:r,children:o}){let s=g.useContext(Do);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),g.createElement(mn.Provider,{value:n},o)}function Z2(n,r=[],o){let s=o?.state;if(n==null){if(!s)return null;if(s.errors)n=s.matches;else if(r.length===0&&!s.initialized&&s.matches.length>0)n=s.matches;else return null}let c=n,u=s?.errors;if(u!=null){let b=c.findIndex(y=>y.route.id&&u?.[y.route.id]!==void 0);nt(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),c=c.slice(0,Math.min(c.length,b+1))}let m=!1,h=-1;if(o&&s){m=s.renderFallback;for(let b=0;b<c.length;b++){let y=c[b];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(h=b),y.route.id){let{loaderData:w,errors:C}=s,N=y.route.loader&&!w.hasOwnProperty(y.route.id)&&(!C||C[y.route.id]===void 0);if(y.route.lazy||N){o.isStatic&&(m=!0),h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}}let v=o?.onError,p=s&&v?(b,y)=>{v(b,{location:s.location,params:s.matches?.[0]?.params??{},pattern:_2(s.matches),errorInfo:y})}:void 0;return c.reduceRight((b,y,w)=>{let C,N=!1,E=null,T=null;s&&(C=u&&y.route.id?u[y.route.id]:void 0,E=y.route.errorElement||X2,m&&(h<0&&w===0?(q0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,T=null):h===w&&(N=!0,T=y.route.hydrateFallbackElement||null)));let A=r.concat(c.slice(0,w+1)),k=()=>{let O;return C?O=E:N?O=T:y.route.Component?O=g.createElement(y.route.Component,null):y.route.element?O=y.route.element:O=b,g.createElement(K2,{match:y,routeContext:{outlet:b,matches:A,isDataRoute:s!=null},children:O})};return s&&(y.route.ErrorBoundary||y.route.errorElement||w===0)?g.createElement($0,{location:s.location,revalidation:s.revalidation,component:E,error:C,children:k(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:p}):k()},null)}function Of(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function F2(n){let r=g.useContext(Do);return nt(r,Of(n)),r}function W2(n){let r=g.useContext(ac);return nt(r,Of(n)),r}function J2(n){let r=g.useContext(mn);return nt(r,Of(n)),r}function Mf(n){let r=J2(n),o=r.matches[r.matches.length-1];return nt(o.route.id,`${n} can only be used on routes that contain a unique "id"`),o.route.id}function eE(){return Mf("useRouteId")}function tE(){let n=g.useContext(_f),r=W2("useRouteError"),o=Mf("useRouteError");return n!==void 0?n:r.errors?.[o]}function nE(){let{router:n}=F2("useNavigate"),r=Mf("useNavigate"),o=g.useRef(!1);return L0(()=>{o.current=!0}),g.useCallback(async(c,u={})=>{Rn(o.current,U0),o.current&&(typeof c=="number"?await n.navigate(c):await n.navigate(c,{fromRouteId:r,...u}))},[n,r])}var gv={};function q0(n,r,o){!r&&!gv[n]&&(gv[n]=!0,Rn(!1,o))}g.memo(aE);function aE({routes:n,manifest:r,future:o,state:s,isStatic:c,onError:u}){return P0(n,void 0,{manifest:r,state:s,isStatic:c,onError:u})}function vv({to:n,replace:r,state:o,relative:s}){nt(zo(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=g.useContext(tn);Rn(!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:u}=g.useContext(mn),{pathname:m}=jn(),h=B0(),v=nc(n,jf(u),m,s==="path"),p=JSON.stringify(v);return g.useEffect(()=>{h(JSON.parse(p),{replace:r,state:o,relative:s})},[h,p,s,r,o]),null}function rE(n){return Y2(n.context)}function Er(n){nt(!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 oE({basename:n="/",children:r=null,location:o,navigationType:s="POP",navigator:c,static:u=!1,useTransitions:m}){nt(!zo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),v=g.useMemo(()=>({basename:h,navigator:c,static:u,useTransitions:m,future:{}}),[h,c,u,m]);typeof o=="string"&&(o=Mo(o));let{pathname:p="/",search:b="",hash:y="",state:w=null,key:C="default",mask:N}=o,E=g.useMemo(()=>{let T=ua(p,h);return T==null?null:{location:{pathname:T,search:b,hash:y,state:w,key:C,mask:N},navigationType:s}},[h,p,b,y,w,C,s,N]);return Rn(E!=null,`<Router basename="${h}"> is not able to match the URL "${p}${b}${y}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:g.createElement(tn.Provider,{value:v},g.createElement(Jl.Provider,{children:r,value:E}))}function lE({children:n,location:r}){return I2(nf(n),r)}function nf(n,r=[]){let o=[];return g.Children.forEach(n,(s,c)=>{if(!g.isValidElement(s))return;let u=[...r,c];if(s.type===g.Fragment){o.push.apply(o,nf(s.props.children,u));return}nt(s.type===Er,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),nt(!s.props.index||!s.props.children,"An index route cannot have child routes.");let m={id:s.props.id||u.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(m.children=nf(s.props.children,u)),o.push(m)}),o}var Ti="get",Ci="application/x-www-form-urlencoded";function rc(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function sE(n){return rc(n)&&n.tagName.toLowerCase()==="button"}function iE(n){return rc(n)&&n.tagName.toLowerCase()==="form"}function cE(n){return rc(n)&&n.tagName.toLowerCase()==="input"}function uE(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function dE(n,r){return n.button===0&&(!r||r==="_self")&&!uE(n)}var hi=null;function fE(){if(hi===null)try{new FormData(document.createElement("form"),0),hi=!1}catch{hi=!0}return hi}var mE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function zd(n){return n!=null&&!mE.has(n)?(Rn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ci}"`),null):n}function hE(n,r){let o,s,c,u,m;if(iE(n)){let h=n.getAttribute("action");s=h?ua(h,r):null,o=n.getAttribute("method")||Ti,c=zd(n.getAttribute("enctype"))||Ci,u=new FormData(n)}else if(sE(n)||cE(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 v=n.getAttribute("formaction")||h.getAttribute("action");if(s=v?ua(v,r):null,o=n.getAttribute("formmethod")||h.getAttribute("method")||Ti,c=zd(n.getAttribute("formenctype"))||zd(h.getAttribute("enctype"))||Ci,u=new FormData(h,n),!fE()){let{name:p,type:b,value:y}=n;if(b==="image"){let w=p?`${p}.`:"";u.append(`${w}x`,"0"),u.append(`${w}y`,"0")}else p&&u.append(p,y)}}else{if(rc(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=Ti,s=null,c=Ci,m=n}return u&&c==="text/plain"&&(m=u,u=void 0),{action:s,method:o.toLowerCase(),encType:c,formData:u,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Df(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function V0(n,r,o,s){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}_.${s}`:c.pathname=`${c.pathname}.${s}`:c.pathname==="/"?c.pathname=`_root.${s}`:r&&ua(c.pathname,r)==="/"?c.pathname=`${Di(r)}/_root.${s}`:c.pathname=`${Di(c.pathname)}.${s}`,c}async function pE(n,r){if(n.id in r)return r[n.id];try{let o=await import(n.module);return r[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 gE(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 vE(n,r,o){let s=await Promise.all(n.map(async c=>{let u=r.routes[c.route.id];if(u){let m=await pE(u,o);return m.links?m.links():[]}return[]}));return SE(s.flat(1).filter(gE).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function yv(n,r,o,s,c,u){let m=(v,p)=>o[p]?v.route.id!==o[p].route.id:!0,h=(v,p)=>o[p].pathname!==v.pathname||o[p].route.path?.endsWith("*")&&o[p].params["*"]!==v.params["*"];return u==="assets"?r.filter((v,p)=>m(v,p)||h(v,p)):u==="data"?r.filter((v,p)=>{let b=s.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(m(v,p)||h(v,p))return!0;if(v.route.shouldRevalidate){let y=v.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:o[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function yE(n,r,{includeHydrateFallback:o}={}){return bE(n.map(s=>{let c=r.routes[s.route.id];if(!c)return[];let u=[c.module];return c.clientActionModule&&(u=u.concat(c.clientActionModule)),c.clientLoaderModule&&(u=u.concat(c.clientLoaderModule)),o&&c.hydrateFallbackModule&&(u=u.concat(c.hydrateFallbackModule)),c.imports&&(u=u.concat(c.imports)),u}).flat(1))}function bE(n){return[...new Set(n)]}function xE(n){let r={},o=Object.keys(n).sort();for(let s of o)r[s]=n[s];return r}function SE(n,r){let o=new Set;return new Set(r),n.reduce((s,c)=>{let u=JSON.stringify(xE(c));return o.has(u)||(o.add(u),s.push({key:u,link:c})),s},[])}function zf(){let n=g.useContext(Do);return Df(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function wE(){let n=g.useContext(ac);return Df(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Uf=g.createContext(void 0);Uf.displayName="FrameworkContext";function oc(){let n=g.useContext(Uf);return Df(n,"You must render this element inside a <HydratedRouter> element"),n}function EE(n,r){let o=g.useContext(Uf),[s,c]=g.useState(!1),[u,m]=g.useState(!1),{onFocus:h,onBlur:v,onMouseEnter:p,onMouseLeave:b,onTouchStart:y}=r,w=g.useRef(null);g.useEffect(()=>{if(n==="render"&&m(!0),n==="viewport"){let E=A=>{A.forEach(k=>{m(k.isIntersecting)})},T=new IntersectionObserver(E,{threshold:.5});return w.current&&T.observe(w.current),()=>{T.disconnect()}}},[n]),g.useEffect(()=>{if(s){let E=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(E)}}},[s]);let C=()=>{c(!0)},N=()=>{c(!1),m(!1)};return o?n!=="intent"?[u,w,{}]:[u,w,{onFocus:Ll(h,C),onBlur:Ll(v,N),onMouseEnter:Ll(p,C),onMouseLeave:Ll(b,N),onTouchStart:Ll(y,C)}]:[!1,w,{}]}function Ll(n,r){return o=>{n&&n(o),o.defaultPrevented||r(o)}}function NE({page:n,...r}){let o=z2(),{nonce:s}=oc(),{router:c}=zf(),u=g.useMemo(()=>N0(c.routes,n,c.basename),[c.routes,n,c.basename]);return u?(r.nonce==null&&s&&(r={...r,nonce:s}),o?g.createElement(CE,{page:n,matches:u,...r}):g.createElement(RE,{page:n,matches:u,...r})):null}function TE(n){let{manifest:r,routeModules:o}=oc(),[s,c]=g.useState([]);return g.useEffect(()=>{let u=!1;return vE(n,r,o).then(m=>{u||c(m)}),()=>{u=!0}},[n,r,o]),s}function CE({page:n,matches:r,...o}){let s=jn(),{future:c}=oc(),{basename:u}=zf(),m=g.useMemo(()=>{if(n===s.pathname+s.search+s.hash)return[];let h=V0(n,u,c.v8_trailingSlashAwareDataRequests,"rsc"),v=!1,p=[];for(let b of r)typeof b.route.shouldRevalidate=="function"?v=!0:p.push(b.route.id);return v&&p.length>0&&h.searchParams.set("_routes",p.join(",")),[h.pathname+h.search]},[u,c.v8_trailingSlashAwareDataRequests,n,s,r]);return g.createElement(g.Fragment,null,m.map(h=>g.createElement("link",{key:h,rel:"prefetch",as:"fetch",href:h,...o})))}function RE({page:n,matches:r,...o}){let s=jn(),{future:c,manifest:u,routeModules:m}=oc(),{basename:h}=zf(),{loaderData:v,matches:p}=wE(),b=g.useMemo(()=>yv(n,r,p,u,s,"data"),[n,r,p,u,s]),y=g.useMemo(()=>yv(n,r,p,u,s,"assets"),[n,r,p,u,s]),w=g.useMemo(()=>{if(n===s.pathname+s.search+s.hash)return[];let E=new Set,T=!1;if(r.forEach(k=>{let O=u.routes[k.route.id];!O||!O.hasLoader||(!b.some(B=>B.route.id===k.route.id)&&k.route.id in v&&m[k.route.id]?.shouldRevalidate||O.hasClientLoader?T=!0:E.add(k.route.id))}),E.size===0)return[];let A=V0(n,h,c.v8_trailingSlashAwareDataRequests,"data");return T&&E.size>0&&A.searchParams.set("_routes",r.filter(k=>E.has(k.route.id)).map(k=>k.route.id).join(",")),[A.pathname+A.search]},[h,c.v8_trailingSlashAwareDataRequests,v,s,u,b,r,n,m]),C=g.useMemo(()=>yE(y,u),[y,u]),N=TE(y);return g.createElement(g.Fragment,null,w.map(E=>g.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...o})),C.map(E=>g.createElement("link",{key:E,rel:"modulepreload",href:E,...o})),N.map(({key:E,link:T})=>g.createElement("link",{key:E,nonce:o.nonce,...T,crossOrigin:T.crossOrigin??o.crossOrigin})))}function AE(...n){return r=>{n.forEach(o=>{typeof o=="function"?o(r):o!=null&&(o.current=r)})}}var kE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{kE&&(window.__reactRouterVersion="7.18.0")}catch{}function jE({basename:n,children:r,useTransitions:o,window:s}){let c=g.useRef();c.current==null&&(c.current=s2({window:s,v5Compat:!0}));let u=c.current,[m,h]=g.useState({action:u.action,location:u.location}),v=g.useCallback(p=>{o===!1?h(p):g.startTransition(()=>h(p))},[o]);return g.useLayoutEffect(()=>u.listen(v),[u,v]),g.createElement(oE,{basename:n,children:r,location:m.location,navigationType:m.action,navigator:u,useTransitions:o})}var Y0=g.forwardRef(function({onClick:r,discover:o="render",prefetch:s="none",relative:c,reloadDocument:u,replace:m,mask:h,state:v,target:p,to:b,preventScrollReset:y,viewTransition:w,defaultShouldRevalidate:C,...N},E){let{basename:T,navigator:A,useTransitions:k}=g.useContext(tn),O=typeof b=="string"&&kf.test(b),B=_0(b,T);b=B.to;let U=q2(b,{relative:c}),Z=jn(),V=null;if(h){let J=nc(h,[],Z.mask?Z.mask.pathname:"/",!0);T!=="/"&&(J.pathname=J.pathname==="/"?T:Cn([T,J.pathname])),V=A.createHref(J)}let[$,G,ce]=EE(s,N),ue=ME(b,{replace:m,mask:h,state:v,target:p,preventScrollReset:y,relative:c,viewTransition:w,defaultShouldRevalidate:C,useTransitions:k});function W(J){r&&r(J),J.defaultPrevented||ue(J)}let ee=!(B.isExternal||u),le=g.createElement("a",{...N,...ce,href:(ee?V:void 0)||B.absoluteURL||U,onClick:ee?W:r,ref:AE(E,G),target:p,"data-discover":!O&&o==="render"?"true":void 0});return $&&!O?g.createElement(g.Fragment,null,le,g.createElement(NE,{page:U})):le});Y0.displayName="Link";var af=g.forwardRef(function({"aria-current":r="page",caseSensitive:o=!1,className:s="",end:c=!1,style:u,to:m,viewTransition:h,children:v,...p},b){let y=es(m,{relative:p.relative}),w=jn(),C=g.useContext(ac),{navigator:N,basename:E}=g.useContext(tn),T=C!=null&&BE(y)&&h===!0,A=N.encodeLocation?N.encodeLocation(y).pathname:y.pathname,k=w.pathname,O=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;o||(k=k.toLowerCase(),O=O?O.toLowerCase():null,A=A.toLowerCase()),O&&E&&(O=ua(O,E)||O);const B=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let U=k===A||!c&&k.startsWith(A)&&k.charAt(B)==="/",Z=O!=null&&(O===A||!c&&O.startsWith(A)&&O.charAt(A.length)==="/"),V={isActive:U,isPending:Z,isTransitioning:T},$=U?r:void 0,G;typeof s=="function"?G=s(V):G=[s,U?"active":null,Z?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let ce=typeof u=="function"?u(V):u;return g.createElement(Y0,{...p,"aria-current":$,className:G,ref:b,style:ce,to:m,viewTransition:h},typeof v=="function"?v(V):v)});af.displayName="NavLink";var _E=g.forwardRef(({discover:n="render",fetcherKey:r,navigate:o,reloadDocument:s,replace:c,state:u,method:m=Ti,action:h,onSubmit:v,relative:p,preventScrollReset:b,viewTransition:y,defaultShouldRevalidate:w,...C},N)=>{let{useTransitions:E}=g.useContext(tn),T=UE(),A=LE(h,{relative:p}),k=m.toLowerCase()==="get"?"get":"post",O=typeof h=="string"&&kf.test(h),B=U=>{if(v&&v(U),U.defaultPrevented)return;U.preventDefault();let Z=U.nativeEvent.submitter,V=Z?.getAttribute("formmethod")||m,$=()=>T(Z||U.currentTarget,{fetcherKey:r,method:V,navigate:o,replace:c,state:u,relative:p,preventScrollReset:b,viewTransition:y,defaultShouldRevalidate:w});E&&o!==!1?g.startTransition(()=>$()):$()};return g.createElement("form",{ref:N,method:k,action:A,onSubmit:s?v:B,...C,"data-discover":!O&&n==="render"?"true":void 0})});_E.displayName="Form";function OE(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function I0(n){let r=g.useContext(Do);return nt(r,OE(n)),r}function ME(n,{target:r,replace:o,mask:s,state:c,preventScrollReset:u,relative:m,viewTransition:h,defaultShouldRevalidate:v,useTransitions:p}={}){let b=B0(),y=jn(),w=es(n,{relative:m});return g.useCallback(C=>{if(dE(C,r)){C.preventDefault();let N=o!==void 0?o:Kl(y)===Kl(w),E=()=>b(n,{replace:N,mask:s,state:c,preventScrollReset:u,relative:m,viewTransition:h,defaultShouldRevalidate:v});p?g.startTransition(()=>E()):E()}},[y,b,w,o,s,c,r,n,u,m,h,v,p])}var DE=0,zE=()=>`__${String(++DE)}__`;function UE(){let{router:n}=I0("useSubmit"),{basename:r}=g.useContext(tn),o=eE(),s=n.fetch,c=n.navigate;return g.useCallback(async(u,m={})=>{let{action:h,method:v,encType:p,formData:b,body:y}=hE(u,r);if(m.navigate===!1){let w=m.fetcherKey||zE();await s(w,o,m.action||h,{defaultShouldRevalidate:m.defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:b,body:y,formMethod:m.method||v,formEncType:m.encType||p,flushSync:m.flushSync})}else await c(m.action||h,{defaultShouldRevalidate:m.defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:b,body:y,formMethod:m.method||v,formEncType:m.encType||p,replace:m.replace,state:m.state,fromRouteId:o,flushSync:m.flushSync,viewTransition:m.viewTransition})},[s,c,r,o])}function LE(n,{relative:r}={}){let{basename:o}=g.useContext(tn),s=g.useContext(mn);nt(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),u={...es(n||".",{relative:r})},m=jn();if(n==null){u.search=m.search;let h=new URLSearchParams(u.search),v=h.getAll("index");if(v.some(b=>b==="")){h.delete("index"),v.filter(y=>y).forEach(y=>h.append("index",y));let b=h.toString();u.search=b?`?${b}`:""}}return(!n||n===".")&&c.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(u.pathname=u.pathname==="/"?o:Cn([o,u.pathname])),Kl(u)}function BE(n,{relative:r}={}){let o=g.useContext(D0);nt(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=I0("useViewTransitionState"),c=es(n,{relative:r});if(!o.isTransitioning)return!1;let u=ua(o.currentLocation.pathname,s)||o.currentLocation.pathname,m=ua(o.nextLocation.pathname,s)||o.nextLocation.pathname;return Mi(c.pathname,m)!=null||Mi(c.pathname,u)!=null}var ts=S0();const G0=x0(ts),HE="/api";function PE(n){const r=new Headers(n?.headers);return n?.body!==void 0&&n.body!==null&&!r.has("Content-Type")&&r.set("Content-Type","application/json"),r}function $E(n,r){if(typeof n=="string"&&n)return n;if(n&&typeof n=="object"){const o=n,s=typeof o.error=="object"&&o.error!==null?o.error:void 0;if(typeof o.error=="string"&&o.error)return o.error;if(typeof s?.message=="string"&&s.message)return s.message;if(typeof o.message=="string"&&o.message)return o.message}return r}async function be(n,r){const o=await fetch(`${HE}${n}`,{...r,headers:PE(r)});if(!o.ok){const s=await o.json().catch(()=>o.statusText);throw new Error($E(s,`HTTP ${o.status}`))}return o.json()}function Uo(n,r){return be(n,{...r,cache:"no-store"})}function X0(n){return be(`/node-operations/${n}`)}async function Q0(n={}){const r=new URLSearchParams;n.nodeId&&r.set("nodeId",n.nodeId),n.status&&r.set("status",n.status),n.kind&&r.set("kind",n.kind);const o=r.toString();return(await be(`/node-operations${o?`?${o}`:""}`)).operations}function qE(n){return be(`/nodes/${n}/copilot-tunnel/enable`,{method:"POST"})}function bv(n){return be(`/nodes/${n}/copilot-tunnel/status`,{method:"POST"})}function VE(n){return be(`/nodes/${n}/copilot-tunnel/disable`,{method:"POST"})}function YE(){return be("/system/info")}function M3(n){return be("/system/transport",{method:"POST",body:JSON.stringify({type:n})})}function K0(n){return be("/system/runtime/restart",{method:"POST",body:JSON.stringify(n)})}function IE(){return be("/system/runtime/stop",{method:"POST"})}function GE(){return be("/cluster/state")}function D3(){return be("/cluster/promote",{method:"POST"})}function z3(n){return be("/cluster/connect",{method:"POST",body:JSON.stringify(n)})}function U3(){return be("/cluster/disconnect",{method:"POST"})}function XE(n,r){return be(`/nodes/${n}/agents/${r}/upgrade`,{method:"POST"})}function QE(n,r){return be(`/nodes/${n}/runtime/restart`,{method:"POST",body:JSON.stringify(r)})}async function L3(){return(await be("/devboxes")).devboxes}function B3(n,r){return be(`/nodes/${n}/devbox/configure`,{method:"POST",body:JSON.stringify({devbox:r})})}function H3(n){return be(`/nodes/${n}/devbox/status`)}function P3(n){return be(`/nodes/${n}/devbox/start`,{method:"POST"})}function $3(n,r){return be(`/nodes/${n}/devtunnel`,{method:"POST",body:JSON.stringify({enabled:r})})}function q3(n,r={}){const o=new URLSearchParams;r.path&&o.set("path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),100))),r.offset!==void 0&&o.set("offset",String(Math.max(0,r.offset))),r.directoriesOnly!==void 0&&o.set("directoriesOnly",String(r.directoriesOnly)),r.allowAbsolute!==void 0&&o.set("allowAbsolute",String(r.allowAbsolute));const s=o.toString();return be(`/nodes/${n}/workdir/tree${s?`?${s}`:""}`)}function V3(n,r={}){const o=new URLSearchParams;r.path&&o.set("path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),20))),r.offset!==void 0&&o.set("offset",String(Math.max(0,r.offset))),r.allowAbsolute!==void 0&&o.set("allowAbsolute",String(r.allowAbsolute));const s=o.toString();return be(`/nodes/${n}/workdir/branch${s?`?${s}`:""}`)}function Y3(n,r){const o=new URLSearchParams;return o.set("agent",r.agent),o.set("limit",String(Math.min(Math.max(1,r.limit),100))),be(`/nodes/${n}/native-sessions?${o.toString()}`)}function I3(n,r){return be(`/nodes/${n}/workdir/branch`,{method:"POST",body:JSON.stringify({path:r.path,branchName:r.branchName,startPoint:r.startPoint,limit:r.limit,offset:r.offset,allowAbsolute:r.allowAbsolute})})}function G3(n,r){return be(`/nodes/${n}/terminal/sessions`,{method:"POST",body:JSON.stringify(r)})}function X3(n){return be(`/nodes/${n}/terminal/sessions`)}function Q3(n,r){return be(`/nodes/${n}/terminal/sessions/${r}`)}function K3(n,r){return be(`/nodes/${n}/terminal/sessions/${r}/stop`,{method:"POST"})}function Lf(n,r){n.set("scope",r.kind),r.kind==="project"&&n.set("projectPath",r.projectPath)}function Z3(n,r){const o=new URLSearchParams;return Lf(o,r.scope),r.agents?.length&&o.set("agents",r.agents.join(",")),be(`/nodes/${encodeURIComponent(n)}/capabilities?${o.toString()}`)}function F3(n,r,o){const s=new URLSearchParams;o&&Lf(s,o);const c=s.toString();return be(`/nodes/${encodeURIComponent(n)}/capabilities/${encodeURIComponent(r)}${c?`?${c}`:""}`)}function W3(n,r,o){const s=new URLSearchParams;o&&Lf(s,o);const c=s.toString();return be(`/nodes/${encodeURIComponent(n)}/capabilities/${encodeURIComponent(r)}${c?`?${c}`:""}`,{method:"DELETE"})}function J3(n){return be("/capabilities/conflict-check",{method:"POST",body:JSON.stringify(n)})}function eO(n){return be("/capabilities/share",{method:"POST",body:JSON.stringify(n)})}async function tO(n){const r=new URLSearchParams;if(n?.status&&r.set("status",n.status),n?.assignedTo&&r.set("assignedTo",n.assignedTo),n?.priority&&r.set("priority",n.priority),n?.limit){const s=Math.min(Math.max(1,n.limit),100);r.set("limit",String(s))}if(n?.offset&&r.set("offset",String(n.offset)),n?.projectPath&&r.set("projectPath",n.projectPath),n?.cursor&&r.set("cursor",n.cursor),n?.completedLimitPerProject!==void 0){const s=Math.min(Math.max(1,n.completedLimitPerProject),100);r.set("completedLimitPerProject",String(s))}const o=r.toString();return be(`/tasks${o?`?${o}`:""}`)}function nO(n){return be(`/tasks/${n}`)}function aO(n){return be("/tasks",{method:"POST",body:JSON.stringify(n)})}function rO(n){return be("/tasks/import-session",{method:"POST",body:JSON.stringify(n)})}function oO(n){return be("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:n})})}function lO(n){return be("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:n})})}function sO(n){return be(`/tasks/${n}/cancel`,{method:"POST"})}function iO(n){return be(`/tasks/${n}/retry`,{method:"POST"})}function cO(n,r){return be(`/tasks/${n}/logs`)}function uO(n,r){return be(`/tasks/${n}/message`,{method:"POST",body:JSON.stringify({content:r})})}function dO(n,r){return be(`/tasks/${n}/queued-messages/${encodeURIComponent(r)}`,{method:"DELETE"})}function fO(n,r){return be(`/tasks/${n}/share`,{method:"POST",body:JSON.stringify(r)})}function mO(n){return be(`/tasks/${n}/share`,{method:"DELETE"})}function hO(n){return Uo(`/shared/conversations/${encodeURIComponent(n)}`)}function pO(n,r){return Uo(`/shared/conversations/${encodeURIComponent(n)}/logs`)}function gO(n){return Uo(`/shared/conversations/${encodeURIComponent(n)}/output`)}function vO(n,r="."){return Uo(`/shared/conversations/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(r)}`)}function yO(n,r){return Uo(`/shared/conversations/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(r)}`)}function bO(n,r){return Uo(`/shared/conversations/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(r?{path:r}:{})})}function Z0(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}function xO(n){return be(`/tasks/${n}/output`)}function SO(n,r="."){return be(`/tasks/${n}/output/tree?path=${encodeURIComponent(r)}`)}function wO(n,r){return be(`/tasks/${n}/output/content?path=${encodeURIComponent(r)}`)}function EO(n,r){return be(`/tasks/${n}/output/preview-sessions`,{method:"POST",body:JSON.stringify(Z0(r))})}function NO(n,r){return be(`/nodes/${n}/preview-sessions`,{method:"POST",body:JSON.stringify(Z0(r))})}function TO(n){return be(`/tasks/${n}/output/diff`)}function KE({hasStarted:n,enabled:r}){return r&&!n}function ZE(n,r,o=!0){const s=g.useRef(n),c=g.useRef(!1);g.useEffect(()=>{s.current=n},[n]),g.useEffect(()=>{if(!o)return;const u=()=>s.current();KE({hasStarted:c.current,enabled:o})&&(c.current=!0,u());const m=setInterval(u,r);return()=>clearInterval(m)},[r,o])}function FE(n){return n?n.replace(/\/+$/,""):""}function WE(n){const r=n??"/api";return r?r.startsWith("/")?r.replace(/\/+$/,""):`/${r.replace(/\/+$/,"")}`:""}function xv(...n){const r=new Headers;for(const o of n){if(!o)continue;new Headers(o).forEach((c,u)=>r.set(u,c))}return r}var JE=class extends Error{status;statusText;code;details;body;constructor(n,r){super(n),this.name="MeshyApiError",this.status=r.status,this.statusText=r.statusText,this.code=r.code,this.details=r.details,this.body=r.body}};function eN(n,r){if(typeof n=="string"&&n)return{message:n};if(n&&typeof n=="object"){const o=n,s=typeof o.error=="object"&&o.error!==null?o.error:void 0;if(typeof o.error=="string"&&o.error)return{message:o.error};if(typeof s?.message=="string"&&s.message)return{message:s.message,code:s.code,details:s.details};if(typeof o.message=="string"&&o.message)return{message:o.message}}return{message:r}}function Bl(n,r){const o=r.toString();return o?`${n}?${o}`:n}function Wt(n,r,o){o!==void 0&&n.set(r,String(o))}function Sv(n){return n===null||Array.isArray(n)||typeof n=="object"&&n!==null&&!(n instanceof ArrayBuffer)}function tN(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}var nN=class{baseUrl;apiPrefix;defaultHeaders;credentials;fetchImpl;config;constructor(n={}){const r=n.fetchImpl??((o,s)=>globalThis.fetch(o,s));if(!r)throw new Error("MeshyClient requires a fetch implementation");this.fetchImpl=r,this.baseUrl=FE(n.baseUrl),this.apiPrefix=WE(n.apiPrefix),this.defaultHeaders=xv(n.defaultHeaders),this.credentials=n.credentials,this.config=n}buildApiUrl(n){const r=n.startsWith("/")?n:`/${n}`;return`${this.baseUrl}${this.apiPrefix}${r}`}buildApiurl(n){return this.buildApiUrl(n)}async request(n,r={}){const o=r.timeoutMs??this.config.timeoutMs,s=o?new AbortController:null;let c=null;s&&(c=setTimeout(()=>s.abort(),o));const u=await this.config.tokenProvider?.(),m=await this.config.headersProvider?.(),h=r.credentials??this.config.credentials,v=xv({Accept:"application/json"},Sv(r.body)?{"Content-Type":"application/json"}:void 0,this.config.defaultHeaders,m,u?{Authorization:`Bearer ${u}`}:void 0,r.headers),p=Sv(r.body)?JSON.stringify(r.body):r.body;try{const b=await this.fetchImpl(this.buildApiUrl(n),{...r,headers:v,body:p,credentials:h,signal:r.signal??s?.signal});if(!b.ok){const y=await b.json().catch(()=>b.statusText),w=eN(y,`HTTP ${b.status}`);throw new JE(w.message,{status:b.status,statusText:b.statusText,code:w.code,details:w.details,body:y})}return b.status===204?void 0:await b.json()}finally{c&&clearTimeout(c)}}getSystemInfo(){return this.request("/system/info")}getSystemMetrics(){return this.request("/system/metrics")}switchTransport(n){return this.request("/system/transport",{method:"POST",body:{type:n}})}restartRuntime(n){return this.request("/system/runtime/restart",{method:"POST",body:n})}stopRuntime(){return this.request("/system/runtime/stop",{method:"POST"})}getClusterState(){return this.request("/cluster/state")}promoteToLeader(){return this.request("/cluster/promote",{method:"POST"})}joinCluster(n){return this.request("/cluster/join",{method:"POST",body:n})}connectToCluster(n){return this.request("/cluster/connect",{method:"POST",body:n})}disconnectFromCluster(){return this.request("/cluster/disconnect",{method:"POST"})}async getNodes(n={}){const r=new URLSearchParams;return Wt(r,"status",n.status),Wt(r,"capability",n.capability),(await this.request(Bl("/nodes",r))).nodes}getNode(n){return this.request(`/nodes/${encodeURIComponent(n)}`)}getNodeStatus(n){return this.request(`/nodes/${encodeURIComponent(n)}/status`)}removeNode(n){return this.request(`/nodes/${encodeURIComponent(n)}`,{method:"DELETE"})}leaveCluster(n){return this.request("/cluster/leave",{method:"POST",body:{nodeId:n}})}updateNode(n,r){return this.request(`/nodes/${encodeURIComponent(n)}`,{method:"PATCH",body:r})}toggleNodeDevTunnel(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/devtunnel`,{method:"POST",body:{enabled:r}})}getNodeOperation(n){return this.request(`/node-operations/${encodeURIComponent(n)}`)}async listNodeOperations(n={}){const r=new URLSearchParams;return Wt(r,"nodeId",n.nodeId),Wt(r,"status",n.status),Wt(r,"kind",n.kind),(await this.request(Bl("/node-operations",r))).operations}upgradeNodeAgent(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/agents/${r}/upgrade`,{method:"POST"})}restartNodeRuntime(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/runtime/restart`,{method:"POST",body:r})}getNodeWorkDirTree(n,r={}){const o=new URLSearchParams;return Wt(o,"path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),100))),r.offset!==void 0&&o.set("offset",String(Math.max(0,r.offset))),Wt(o,"directoriesOnly",r.directoriesOnly),Wt(o,"allowAbsolute",r.allowAbsolute),this.request(Bl(`/nodes/${encodeURIComponent(n)}/workdir/tree`,o))}getNodeWorkDirBranchInfo(n,r={}){const o=new URLSearchParams;return Wt(o,"path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),20))),r.offset!==void 0&&o.set("offset",String(Math.max(0,r.offset))),Wt(o,"allowAbsolute",r.allowAbsolute),this.request(Bl(`/nodes/${encodeURIComponent(n)}/workdir/branch`,o))}createNodeWorkDirBranch(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/workdir/branch`,{method:"POST",body:r})}getNodeNativeSessions(n,r){const o=new URLSearchParams;return o.set("agent",r.agent),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),100))),this.request(`/nodes/${encodeURIComponent(n)}/native-sessions?${o.toString()}`)}startNodeTerminalSession(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/terminal/sessions`,{method:"POST",body:r})}listNodeTerminalSessions(n){return this.request(`/nodes/${encodeURIComponent(n)}/terminal/sessions`)}getNodeTerminalSession(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/terminal/sessions/${encodeURIComponent(r)}`)}stopNodeTerminalSession(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/terminal/sessions/${encodeURIComponent(r)}/stop`,{method:"POST"})}async getTasks(n={}){const r=new URLSearchParams;return Wt(r,"status",n.status),Wt(r,"assignedTo",n.assignedTo),Wt(r,"priority",n.priority),n.limit&&r.set("limit",String(Math.min(Math.max(1,n.limit),100))),n.offset&&r.set("offset",String(n.offset)),(await this.request(Bl("/tasks",r))).tasks}getTask(n){return this.request(`/tasks/${encodeURIComponent(n)}`)}createTask(n){return this.request("/tasks",{method:"POST",body:n})}attachNativeSession(n){return this.request("/tasks/import-session",{method:"POST",body:n})}deleteTask(n){return this.request(`/tasks/${encodeURIComponent(n)}`,{method:"DELETE"})}batchDeleteTasks(n){return this.request("/tasks/batch/delete",{method:"POST",body:{ids:n}})}batchArchiveTasks(n){return this.request("/tasks/batch/archive",{method:"POST",body:{ids:n}})}archiveTask(n){return this.request(`/tasks/${encodeURIComponent(n)}`,{method:"PATCH",body:{status:"archived"}})}cancelTask(n){return this.request(`/tasks/${encodeURIComponent(n)}/cancel`,{method:"POST"})}retryTask(n){return this.request(`/tasks/${encodeURIComponent(n)}/retry`,{method:"POST"})}assignTask(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/assign`,{method:"POST",body:{nodeId:r}})}getTaskLogs(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/logs${r!==void 0?`?after=${r}`:""}`)}sendTaskMessage(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/message`,{method:"POST",body:{content:r}})}createTaskShare(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/share`,{method:"POST",body:r})}deleteTaskShare(n){return this.request(`/tasks/${encodeURIComponent(n)}/share`,{method:"DELETE"})}getSharedConversation(n){return this.request(`/shared/conversations/${encodeURIComponent(n)}`)}getSharedConversationLogs(n,r){return this.request(`/shared/conversations/${encodeURIComponent(n)}/logs${r!==void 0?`?after=${r}`:""}`)}getSharedTaskOutput(n){return this.request(`/shared/conversations/${encodeURIComponent(n)}/output`)}getSharedTaskOutputTree(n,r="."){return this.request(`/shared/conversations/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(r)}`)}getSharedTaskOutputContent(n,r){return this.request(`/shared/conversations/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(r)}`)}createSharedTaskPreviewSession(n,r){return this.request(`/shared/conversations/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:r?{path:r}:{}})}getTaskOutput(n){return this.request(`/tasks/${encodeURIComponent(n)}/output`)}getTaskOutputTree(n,r="."){return this.request(`/tasks/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(r)}`)}getTaskOutputContent(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(r)}`)}createTaskPreviewSession(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:tN(r)})}getTaskOutputDiff(n){return this.request(`/tasks/${encodeURIComponent(n)}/output/diff`)}},aN=new nN,rN="meshy.mobile.connection";function oN({name:n,baseUrl:r}){return{type:rN,version:1,name:n,baseUrl:r}}function lN({nodeName:n,nodeEndpoint:r}){return oN({name:`${n} Node`,baseUrl:r})}function CO(n){return JSON.stringify(lN(n))}var sN=["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"],iN=0,cN=class{client;eventTypes;eventSourceFactory;pollIntervalMs;poll;eventSource=null;pollTimer=null;listeners=new Map;connectionListeners=new Map;listenerId=0;connected=!1;constructor(n){this.client=n.client,this.eventTypes=n.eventTypes??sN,this.eventSourceFactory=n.eventSourceFactory??(uN(n.client)?void 0:fN()),this.pollIntervalMs=n.pollIntervalMs??1e4,this.poll=n.poll}start(){if(!(this.eventSource||this.pollTimer)){if(this.eventSourceFactory){const n=new this.eventSourceFactory(dN(this.client,"/events"),this.client.credentials==="include"?{withCredentials:!0}:void 0);this.eventSource=n,n.onopen=()=>this.setConnected(!0),n.onerror=()=>{this.setConnected(!1),this.startPolling()};for(const r of this.eventTypes)n.addEventListener(r,o=>this.emit({id:String(++iN),type:r,data:JSON.parse(o.data),timestamp:Date.now()}));return}this.startPolling()}}stop(){this.eventSource?.close(),this.eventSource=null,this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null),this.setConnected(!1)}subscribe(n,r){const o=++this.listenerId;return this.listeners.set(o,{pattern:n,callback:r}),()=>this.listeners.delete(o)}onConnectionChange(n){const r=++this.listenerId;return this.connectionListeners.set(r,n),n(this.connected),()=>this.connectionListeners.delete(r)}isConnected(){return this.connected}emit(n){for(const{pattern:r,callback:o}of this.listeners.values())n.type.startsWith(r)&&o(n)}setConnected(n){if(this.connected!==n){this.connected=n;for(const r of this.connectionListeners.values())r(n)}}startPolling(){!this.poll||this.pollTimer||(this.pollTimer=setInterval(()=>{this.poll?.().then(()=>this.setConnected(!0)).catch(()=>{this.setConnected(!1)})},this.pollIntervalMs))}};function uN(n){return n.defaultHeaders.has("x-tunnel-authorization")}function dN(n,r){const o=n.buildApiUrl??n.buildApiurl;if(!o)throw new Error("MeshyClient is missing buildApiUrl");return o.call(n,r)}function fN(){return globalThis.EventSource}function mN(n=50){const[r,o]=g.useState([]),[s,c]=g.useState(!1),u=g.useRef(null),m=g.useRef(0),h=g.useRef(new Map);g.useEffect(()=>{const b=new cN({client:aN});u.current=b;const y=b.subscribe("",C=>{const N=C;o(E=>[N,...E].slice(0,n));for(const[,{pattern:E,callback:T}]of h.current)N.type.startsWith(E)&&T(N)}),w=b.onConnectionChange(c);return b.start(),()=>{y(),w(),b.stop(),u.current=null}},[n]);const v=g.useCallback((b,y)=>{const w=++m.current;return h.current.set(w,{pattern:b,callback:y}),()=>{h.current.delete(w)}},[]),p=g.useCallback(()=>o([]),[]);return{events:r,connected:s,subscribe:v,clearEvents:p}}const hN=1e4,pN=6e4,gN=hN,vN=250,yN=new Set(["node.joined","node.left","task.created","task.assigned","task.deleted"]),bN=new Set(["task.created","task.assigned","task.status","task.deleted"]);function xN(n){return n?pN:gN}function RO(n){return yN.has(n)}function SN(n){return bN.has(n)}function wN(n,r){if(!r)return!0;const o=n.leaderId,s=n.term,c=n.nodeCount;return typeof o!="string"&&o!==null||typeof s!="number"||typeof c!="number"?!0:r.leaderId!==o||r.term!==s||r.nodeCount!==c}function EN(n,r,o){if(n==="node.joined"||n==="node.left"||n!=="node.status")return!0;const s=r.nodeId,c=r.status;return typeof s!="string"||typeof c!="string"?!0:o.get(s)!==c}function AO(n,r){const o=r.taskId,s=r.status;if(typeof o!="string"||typeof s!="string")return n;let c=!1;const u=n.map(m=>{if(m.id!==o)return m;c=!0;const h="result"in r?r.result:s==="completed"?null:m.result,v="error"in r?r.error:s==="completed"?null:m.error;return{...m,status:s,result:h,error:v}});return c?u:n}function kO(n,r){const o=r.taskId;if(typeof o!="string")return n;const s=n.filter(c=>c.id!==o);return s.length===n.length?n:s}const F0=g.createContext(null);function NN({children:n}){const[r,o]=g.useState(null),[s,c]=g.useState(null),[u,m]=g.useState(!0),[h,v]=g.useState(null),p=g.useRef(null),b=g.useRef(null),y=g.useRef(new Map),{events:w,connected:C,subscribe:N}=mN(),E=g.useCallback(async()=>{try{const[A,k]=await Promise.all([GE(),YE()]),O=A,B=k.nodeId??k.id,U=O.nodes??[],Z=U.find(G=>G.id===B)??{id:B,name:k.name,endpoint:k.endpoint,role:k.role,status:k.status,capabilities:k.capabilities,joinedAt:k.joinedAt,lastHeartbeat:k.lastHeartbeat},V=O.leaderId?U.find(G=>G.id===O.leaderId)??null:null,$={leader:V?{id:V.id,name:V.name,endpoint:V.endpoint,...V.dashboardOrigin?{dashboardOrigin:V.dashboardOrigin}:{}}:null,term:O.term??0,nodes:U,self:Z,taskSummary:O.taskSummary??{total:0,pending:0,running:0,completed:0,failed:0}};b.current={leaderId:$.leader?.id??null,term:$.term,nodeCount:$.nodes.length},y.current=new Map($.nodes.map(G=>[G.id,G.status])),y.current.set($.self.id,$.self.status),o($),c(k),v(null)}catch(A){v(A instanceof Error?A.message:"Failed to fetch cluster state")}finally{m(!1)}},[]),T=g.useCallback(()=>{p.current===null&&(p.current=window.setTimeout(()=>{p.current=null,E()},vN))},[E]);return ZE(E,xN(C)),g.useEffect(()=>()=>{p.current!==null&&(window.clearTimeout(p.current),p.current=null)},[]),g.useEffect(()=>{const A=[N("cluster",k=>{wN(k.data,b.current)&&T()}),N("election",T),N("node",k=>{EN(k.type,k.data,y.current)&&T()}),N("transport",T),N("task",k=>{SN(k.type)&&T()})];return()=>A.forEach(k=>k())},[N,T]),f.jsx(F0.Provider,{value:{cluster:r,systemInfo:s,events:w,sseConnected:C,subscribe:N,refresh:E,loading:u,error:h},children:n})}function W0(){const n=g.useContext(F0);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 J0=(...n)=>n.filter((r,o,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===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 TN=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 CN=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,s)=>s?s.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 wv=n=>{const r=CN(n);return r.charAt(0).toUpperCase()+r.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 Ud={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 RN=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1},AN=g.createContext({}),kN=()=>g.useContext(AN),jN=g.forwardRef(({color:n,size:r,strokeWidth:o,absoluteStrokeWidth:s,className:c="",children:u,iconNode:m,...h},v)=>{const{size:p=24,strokeWidth:b=2,absoluteStrokeWidth:y=!1,color:w="currentColor",className:C=""}=kN()??{},N=s??y?Number(o??b)*24/Number(r??p):o??b;return g.createElement("svg",{ref:v,...Ud,width:r??p??Ud.width,height:r??p??Ud.height,stroke:n??w,strokeWidth:N,className:J0("lucide",C,c),...!u&&!RN(h)&&{"aria-hidden":"true"},...h},[...m.map(([E,T])=>g.createElement(E,T)),...Array.isArray(u)?u:[u]])});/**
|
|
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 Ae=(n,r)=>{const o=g.forwardRef(({className:s,...c},u)=>g.createElement(jN,{ref:u,iconNode:r,className:J0(`lucide-${TN(wv(n))}`,`lucide-${n}`,s),...c}));return o.displayName=wv(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 _N=[["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"}]],zi=Ae("activity",_N);/**
|
|
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 ON=[["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"}]],MN=Ae("book-open",ON);/**
|
|
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 DN=[["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"}]],ey=Ae("bot",DN);/**
|
|
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 zN=[["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"}]],ty=Ae("cable",zN);/**
|
|
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 UN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ui=Ae("check",UN);/**
|
|
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 LN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Zl=Ae("chevron-down",LN);/**
|
|
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 BN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],rf=Ae("chevron-right",BN);/**
|
|
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 HN=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],PN=Ae("chevron-up",HN);/**
|
|
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 $N=[["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"}]],pi=Ae("circle-alert",$N);/**
|
|
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 qN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Co=Ae("circle-check",qN);/**
|
|
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 VN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],Ev=Ae("circle-dot",VN);/**
|
|
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 YN=[["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"}]],of=Ae("circle-x",YN);/**
|
|
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 IN=[["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"}]],ny=Ae("copy",IN);/**
|
|
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 GN=[["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"}]],XN=Ae("cpu",GN);/**
|
|
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 QN=[["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"}]],ay=Ae("external-link",QN);/**
|
|
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 KN=[["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"}]],ZN=Ae("folder-tree",KN);/**
|
|
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 FN=[["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"}]],WN=Ae("folder",FN);/**
|
|
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 JN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],eT=Ae("info",JN);/**
|
|
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 tT=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],nT=Ae("key-round",tT);/**
|
|
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 aT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ry=Ae("loader-circle",aT);/**
|
|
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 rT=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],oy=Ae("message-square-text",rT);/**
|
|
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 oT=[["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"}]],lT=Ae("monitor-cog",oT);/**
|
|
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 sT=[["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"}]],ly=Ae("monitor",sT);/**
|
|
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 iT=[["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"}]],sy=Ae("moon",iT);/**
|
|
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 cT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],uT=Ae("plus",cT);/**
|
|
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 dT=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],fT=Ae("power",dT);/**
|
|
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 mT=[["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"}]],hT=Ae("radio",mT);/**
|
|
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 pT=[["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"}]],Ri=Ae("refresh-cw",pT);/**
|
|
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 gT=[["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"}]],Nv=Ae("rocket",gT);/**
|
|
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 vT=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],yT=Ae("save",vT);/**
|
|
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 bT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],xT=Ae("search",bT);/**
|
|
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 ST=[["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"}]],iy=Ae("server",ST);/**
|
|
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 wT=[["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"}]],ET=Ae("settings",wT);/**
|
|
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 NT=[["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"}]],TT=Ae("shield",NT);/**
|
|
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 CT=[["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"}]],RT=Ae("sparkles",CT);/**
|
|
272
|
+
* @license lucide-react v1.7.0 - ISC
|
|
273
|
+
*
|
|
274
|
+
* This source code is licensed under the ISC license.
|
|
275
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
+
*/const AT=[["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"}]],cy=Ae("sun",AT);/**
|
|
277
|
+
* @license lucide-react v1.7.0 - ISC
|
|
278
|
+
*
|
|
279
|
+
* This source code is licensed under the ISC license.
|
|
280
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
+
*/const kT=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],uy=Ae("terminal",kT);/**
|
|
282
|
+
* @license lucide-react v1.7.0 - ISC
|
|
283
|
+
*
|
|
284
|
+
* This source code is licensed under the ISC license.
|
|
285
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
+
*/const jT=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],_T=Ae("trash-2",jT);/**
|
|
287
|
+
* @license lucide-react v1.7.0 - ISC
|
|
288
|
+
*
|
|
289
|
+
* This source code is licensed under the ISC license.
|
|
290
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
+
*/const OT=[["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"}]],MT=Ae("wifi-off",OT);/**
|
|
292
|
+
* @license lucide-react v1.7.0 - ISC
|
|
293
|
+
*
|
|
294
|
+
* This source code is licensed under the ISC license.
|
|
295
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
+
*/const DT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],dy=Ae("x",DT);function fy(n){var r,o,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(r=0;r<c;r++)n[r]&&(o=fy(n[r]))&&(s&&(s+=" "),s+=o)}else for(o in n)n[o]&&(s&&(s+=" "),s+=o);return s}function my(){for(var n,r,o=0,s="",c=arguments.length;o<c;o++)(n=arguments[o])&&(r=fy(n))&&(s&&(s+=" "),s+=r);return s}const zT=(n,r)=>{const o=new Array(n.length+r.length);for(let s=0;s<n.length;s++)o[s]=n[s];for(let s=0;s<r.length;s++)o[n.length+s]=r[s];return o},UT=(n,r)=>({classGroupId:n,validator:r}),hy=(n=new Map,r=null,o)=>({nextPart:n,validators:r,classGroupId:o}),Li="-",Tv=[],LT="arbitrary..",BT=n=>{const r=PT(n),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=n;return{getClassGroupId:m=>{if(m.startsWith("[")&&m.endsWith("]"))return HT(m);const h=m.split(Li),v=h[0]===""&&h.length>1?1:0;return py(h,v,r)},getConflictingClassGroupIds:(m,h)=>{if(h){const v=s[m],p=o[m];return v?p?zT(p,v):v:p||Tv}return o[m]||Tv}}},py=(n,r,o)=>{if(n.length-r===0)return o.classGroupId;const c=n[r],u=o.nextPart.get(c);if(u){const p=py(n,r+1,u);if(p)return p}const m=o.validators;if(m===null)return;const h=r===0?n.join(Li):n.slice(r).join(Li),v=m.length;for(let p=0;p<v;p++){const b=m[p];if(b.validator(h))return b.classGroupId}},HT=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=n.slice(1,-1),o=r.indexOf(":"),s=r.slice(0,o);return s?LT+s:void 0})(),PT=n=>{const{theme:r,classGroups:o}=n;return $T(o,r)},$T=(n,r)=>{const o=hy();for(const s in n){const c=n[s];Bf(c,o,s,r)}return o},Bf=(n,r,o,s)=>{const c=n.length;for(let u=0;u<c;u++){const m=n[u];qT(m,r,o,s)}},qT=(n,r,o,s)=>{if(typeof n=="string"){VT(n,r,o);return}if(typeof n=="function"){YT(n,r,o,s);return}IT(n,r,o,s)},VT=(n,r,o)=>{const s=n===""?r:gy(r,n);s.classGroupId=o},YT=(n,r,o,s)=>{if(GT(n)){Bf(n(s),r,o,s);return}r.validators===null&&(r.validators=[]),r.validators.push(UT(o,n))},IT=(n,r,o,s)=>{const c=Object.entries(n),u=c.length;for(let m=0;m<u;m++){const[h,v]=c[m];Bf(v,gy(r,h),o,s)}},gy=(n,r)=>{let o=n;const s=r.split(Li),c=s.length;for(let u=0;u<c;u++){const m=s[u];let h=o.nextPart.get(m);h||(h=hy(),o.nextPart.set(m,h)),o=h}return o},GT=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,XT=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),s=Object.create(null);const c=(u,m)=>{o[u]=m,r++,r>n&&(r=0,s=o,o=Object.create(null))};return{get(u){let m=o[u];if(m!==void 0)return m;if((m=s[u])!==void 0)return c(u,m),m},set(u,m){u in o?o[u]=m:c(u,m)}}},lf="!",Cv=":",QT=[],Rv=(n,r,o,s,c)=>({modifiers:n,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:s,isExternal:c}),KT=n=>{const{prefix:r,experimentalParseClassName:o}=n;let s=c=>{const u=[];let m=0,h=0,v=0,p;const b=c.length;for(let E=0;E<b;E++){const T=c[E];if(m===0&&h===0){if(T===Cv){u.push(c.slice(v,E)),v=E+1;continue}if(T==="/"){p=E;continue}}T==="["?m++:T==="]"?m--:T==="("?h++:T===")"&&h--}const y=u.length===0?c:c.slice(v);let w=y,C=!1;y.endsWith(lf)?(w=y.slice(0,-1),C=!0):y.startsWith(lf)&&(w=y.slice(1),C=!0);const N=p&&p>v?p-v:void 0;return Rv(u,C,w,N)};if(r){const c=r+Cv,u=s;s=m=>m.startsWith(c)?u(m.slice(c.length)):Rv(QT,!1,m,void 0,!0)}if(o){const c=s;s=u=>o({className:u,parseClassName:c})}return s},ZT=n=>{const r=new Map;return n.orderSensitiveModifiers.forEach((o,s)=>{r.set(o,1e6+s)}),o=>{const s=[];let c=[];for(let u=0;u<o.length;u++){const m=o[u],h=m[0]==="[",v=r.has(m);h||v?(c.length>0&&(c.sort(),s.push(...c),c=[]),s.push(m)):c.push(m)}return c.length>0&&(c.sort(),s.push(...c)),s}},FT=n=>({cache:XT(n.cacheSize),parseClassName:KT(n),sortModifiers:ZT(n),...BT(n)}),WT=/\s+/,JT=(n,r)=>{const{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:c,sortModifiers:u}=r,m=[],h=n.trim().split(WT);let v="";for(let p=h.length-1;p>=0;p-=1){const b=h[p],{isExternal:y,modifiers:w,hasImportantModifier:C,baseClassName:N,maybePostfixModifierPosition:E}=o(b);if(y){v=b+(v.length>0?" "+v:v);continue}let T=!!E,A=s(T?N.substring(0,E):N);if(!A){if(!T){v=b+(v.length>0?" "+v:v);continue}if(A=s(N),!A){v=b+(v.length>0?" "+v:v);continue}T=!1}const k=w.length===0?"":w.length===1?w[0]:u(w).join(":"),O=C?k+lf:k,B=O+A;if(m.indexOf(B)>-1)continue;m.push(B);const U=c(A,T);for(let Z=0;Z<U.length;++Z){const V=U[Z];m.push(O+V)}v=b+(v.length>0?" "+v:v)}return v},eC=(...n)=>{let r=0,o,s,c="";for(;r<n.length;)(o=n[r++])&&(s=vy(o))&&(c&&(c+=" "),c+=s);return c},vy=n=>{if(typeof n=="string")return n;let r,o="";for(let s=0;s<n.length;s++)n[s]&&(r=vy(n[s]))&&(o&&(o+=" "),o+=r);return o},tC=(n,...r)=>{let o,s,c,u;const m=v=>{const p=r.reduce((b,y)=>y(b),n());return o=FT(p),s=o.cache.get,c=o.cache.set,u=h,h(v)},h=v=>{const p=s(v);if(p)return p;const b=JT(v,o);return c(v,b),b};return u=m,(...v)=>u(eC(...v))},nC=[],xt=n=>{const r=o=>o[n]||nC;return r.isThemeGetter=!0,r},yy=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,by=/^\((?:(\w[\w-]*):)?(.+)\)$/i,aC=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,rC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oC=/\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$/,lC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,sC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,iC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$a=n=>aC.test(n),je=n=>!!n&&!Number.isNaN(Number(n)),qa=n=>!!n&&Number.isInteger(Number(n)),Ld=n=>n.endsWith("%")&&je(n.slice(0,-1)),ca=n=>rC.test(n),xy=()=>!0,cC=n=>oC.test(n)&&!lC.test(n),Hf=()=>!1,uC=n=>sC.test(n),dC=n=>iC.test(n),fC=n=>!pe(n)&&!ge(n),mC=n=>Ka(n,Ey,Hf),pe=n=>yy.test(n),xr=n=>Ka(n,Ny,cC),Av=n=>Ka(n,SC,je),hC=n=>Ka(n,Cy,xy),pC=n=>Ka(n,Ty,Hf),kv=n=>Ka(n,Sy,Hf),gC=n=>Ka(n,wy,dC),gi=n=>Ka(n,Ry,uC),ge=n=>by.test(n),Hl=n=>kr(n,Ny),vC=n=>kr(n,Ty),jv=n=>kr(n,Sy),yC=n=>kr(n,Ey),bC=n=>kr(n,wy),vi=n=>kr(n,Ry,!0),xC=n=>kr(n,Cy,!0),Ka=(n,r,o)=>{const s=yy.exec(n);return s?s[1]?r(s[1]):o(s[2]):!1},kr=(n,r,o=!1)=>{const s=by.exec(n);return s?s[1]?r(s[1]):o:!1},Sy=n=>n==="position"||n==="percentage",wy=n=>n==="image"||n==="url",Ey=n=>n==="length"||n==="size"||n==="bg-size",Ny=n=>n==="length",SC=n=>n==="number",Ty=n=>n==="family-name",Cy=n=>n==="number"||n==="weight",Ry=n=>n==="shadow",wC=()=>{const n=xt("color"),r=xt("font"),o=xt("text"),s=xt("font-weight"),c=xt("tracking"),u=xt("leading"),m=xt("breakpoint"),h=xt("container"),v=xt("spacing"),p=xt("radius"),b=xt("shadow"),y=xt("inset-shadow"),w=xt("text-shadow"),C=xt("drop-shadow"),N=xt("blur"),E=xt("perspective"),T=xt("aspect"),A=xt("ease"),k=xt("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...B(),ge,pe],Z=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],$=()=>[ge,pe,v],G=()=>[$a,"full","auto",...$()],ce=()=>[qa,"none","subgrid",ge,pe],ue=()=>["auto",{span:["full",qa,ge,pe]},qa,ge,pe],W=()=>[qa,"auto",ge,pe],ee=()=>["auto","min","max","fr",ge,pe],le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...$()],P=()=>[$a,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],X=()=>[$a,"screen","full","dvw","lvw","svw","min","max","fit",...$()],fe=()=>[$a,"screen","full","lh","dvh","lvh","svh","min","max","fit",...$()],R=()=>[n,ge,pe],Y=()=>[...B(),jv,kv,{position:[ge,pe]}],se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",yC,mC,{size:[ge,pe]}],oe=()=>[Ld,Hl,xr],te=()=>["","none","full",p,ge,pe],ne=()=>["",je,Hl,xr],ie=()=>["solid","dashed","dotted","double"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>[je,Ld,jv,kv],Ce=()=>["","none",N,ge,pe],Ne=()=>["none",je,ge,pe],Re=()=>["none",je,ge,pe],et=()=>[je,ge,pe],rt=()=>[$a,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ca],breakpoint:[ca],color:[xy],container:[ca],"drop-shadow":[ca],ease:["in","out","in-out"],font:[fC],"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",je],text:[ca],"text-shadow":[ca],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$a,pe,ge,T]}],container:["container"],columns:[{columns:[je,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:U()}],overflow:[{overflow:Z()}],"overflow-x":[{"overflow-x":Z()}],"overflow-y":[{"overflow-y":Z()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{"inset-s":G(),start:G()}],end:[{"inset-e":G(),end:G()}],"inset-bs":[{"inset-bs":G()}],"inset-be":[{"inset-be":G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[qa,"auto",ge,pe]}],basis:[{basis:[$a,"full","auto",h,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[je,$a,"auto","initial","none",pe]}],grow:[{grow:["",je,ge,pe]}],shrink:[{shrink:["",je,ge,pe]}],order:[{order:[qa,"first","last","none",ge,pe]}],"grid-cols":[{"grid-cols":ce()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":ce()}],"row-start-end":[{row:ue()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...le(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...le()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pbs:[{pbs:$()}],pbe:[{pbe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mbs:[{mbs:_()}],mbe:[{mbe:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],"inline-size":[{inline:["auto",...X()]}],"min-inline-size":[{"min-inline":["auto",...X()]}],"max-inline-size":[{"max-inline":["none",...X()]}],"block-size":[{block:["auto",...fe()]}],"min-block-size":[{"min-block":["auto",...fe()]}],"max-block-size":[{"max-block":["none",...fe()]}],w:[{w:[h,"screen",...P()]}],"min-w":[{"min-w":[h,"screen","none",...P()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[m]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",o,Hl,xr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,xC,hC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ld,pe]}],"font-family":[{font:[vC,pC,r]}],"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":[je,"none",ge,Av]}],leading:[{leading:[u,...$()]}],"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:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[je,"from-font","auto",ge,xr]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[je,"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:$()}],"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:Y()}],"bg-repeat":[{bg:se()}],"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]},bC,gC]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],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:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-bs":[{"border-bs":ne()}],"border-w-be":[{"border-be":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ie(),"hidden","none"]}],"divide-style":[{divide:[...ie(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-bs":[{"border-bs":R()}],"border-color-be":[{"border-be":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[je,ge,pe]}],"outline-w":[{outline:["",je,Hl,xr]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",b,vi,gi]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",y,vi,gi]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[je,xr]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",w,vi,gi]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[je,ge,pe]}],"mix-blend":[{"mix-blend":[...de(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":de()}],"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":[je]}],"mask-image-linear-from-pos":[{"mask-linear-from":xe()}],"mask-image-linear-to-pos":[{"mask-linear-to":xe()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":xe()}],"mask-image-t-to-pos":[{"mask-t-to":xe()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":xe()}],"mask-image-r-to-pos":[{"mask-r-to":xe()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":xe()}],"mask-image-b-to-pos":[{"mask-b-to":xe()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":xe()}],"mask-image-l-to-pos":[{"mask-l-to":xe()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":xe()}],"mask-image-x-to-pos":[{"mask-x-to":xe()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":xe()}],"mask-image-y-to-pos":[{"mask-y-to":xe()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[ge,pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":xe()}],"mask-image-radial-to-pos":[{"mask-radial-to":xe()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"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":B()}],"mask-image-conic-pos":[{"mask-conic":[je]}],"mask-image-conic-from-pos":[{"mask-conic-from":xe()}],"mask-image-conic-to-pos":[{"mask-conic-to":xe()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Y()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,pe]}],filter:[{filter:["","none",ge,pe]}],blur:[{blur:Ce()}],brightness:[{brightness:[je,ge,pe]}],contrast:[{contrast:[je,ge,pe]}],"drop-shadow":[{"drop-shadow":["","none",C,vi,gi]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",je,ge,pe]}],"hue-rotate":[{"hue-rotate":[je,ge,pe]}],invert:[{invert:["",je,ge,pe]}],saturate:[{saturate:[je,ge,pe]}],sepia:[{sepia:["",je,ge,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,pe]}],"backdrop-blur":[{"backdrop-blur":Ce()}],"backdrop-brightness":[{"backdrop-brightness":[je,ge,pe]}],"backdrop-contrast":[{"backdrop-contrast":[je,ge,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",je,ge,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[je,ge,pe]}],"backdrop-invert":[{"backdrop-invert":["",je,ge,pe]}],"backdrop-opacity":[{"backdrop-opacity":[je,ge,pe]}],"backdrop-saturate":[{"backdrop-saturate":[je,ge,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",je,ge,pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"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:[je,"initial",ge,pe]}],ease:[{ease:["linear","initial",A,ge,pe]}],delay:[{delay:[je,ge,pe]}],animate:[{animate:["none",k,ge,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ge,pe]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:Ne()}],"rotate-x":[{"rotate-x":Ne()}],"rotate-y":[{"rotate-y":Ne()}],"rotate-z":[{"rotate-z":Ne()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:et()}],"skew-x":[{"skew-x":et()}],"skew-y":[{"skew-y":et()}],transform:[{transform:[ge,pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:rt()}],"translate-x":[{"translate-x":rt()}],"translate-y":[{"translate-y":rt()}],"translate-z":[{"translate-z":rt()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"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":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mbs":[{"scroll-mbs":$()}],"scroll-mbe":[{"scroll-mbe":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pbs":[{"scroll-pbs":$()}],"scroll-pbe":[{"scroll-pbe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"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",...R()]}],"stroke-w":[{stroke:[je,Hl,xr,Av]}],stroke:[{stroke:["none",...R()]}],"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"]}},EC=tC(wC);function ae(...n){return EC(my(n))}function NC(n){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n))}const TC=n=>{switch(n){case"success":return AC;case"info":return jC;case"warning":return kC;case"error":return _C;default:return null}},CC=Array(12).fill(0),RC=({visible:n,className:r})=>re.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":n},re.createElement("div",{className:"sonner-spinner"},CC.map((o,s)=>re.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),AC=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},re.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"})),kC=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},re.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"})),jC=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},re.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"})),_C=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},re.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"})),OC=re.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"},re.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),re.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),MC=()=>{const[n,r]=re.useState(document.hidden);return re.useEffect(()=>{const o=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),n};let sf=1;class DC{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{const o=this.subscribers.indexOf(r);this.subscribers.splice(o,1)}),this.publish=r=>{this.subscribers.forEach(o=>o(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var o;const{message:s,...c}=r,u=typeof r?.id=="number"||((o=r.id)==null?void 0:o.length)>0?r.id:sf++,m=this.toasts.find(v=>v.id===u),h=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),m?this.toasts=this.toasts.map(v=>v.id===u?(this.publish({...v,...r,id:u,title:s}),{...v,...r,id:u,dismissible:h,title:s}):v):this.addToast({title:s,...c,dismissible:h,id:u}),u},this.dismiss=r=>(r?(this.dismissedToasts.add(r),requestAnimationFrame(()=>this.subscribers.forEach(o=>o({id:r,dismiss:!0})))):this.toasts.forEach(o=>{this.subscribers.forEach(s=>s({id:o.id,dismiss:!0}))}),r),this.message=(r,o)=>this.create({...o,message:r}),this.error=(r,o)=>this.create({...o,message:r,type:"error"}),this.success=(r,o)=>this.create({...o,type:"success",message:r}),this.info=(r,o)=>this.create({...o,type:"info",message:r}),this.warning=(r,o)=>this.create({...o,type:"warning",message:r}),this.loading=(r,o)=>this.create({...o,type:"loading",message:r}),this.promise=(r,o)=>{if(!o)return;let s;o.loading!==void 0&&(s=this.create({...o,promise:r,type:"loading",message:o.loading,description:typeof o.description!="function"?o.description:void 0}));const c=Promise.resolve(r instanceof Function?r():r);let u=s!==void 0,m;const h=c.then(async p=>{if(m=["resolve",p],re.isValidElement(p))u=!1,this.create({id:s,type:"default",message:p});else if(UC(p)&&!p.ok){u=!1;const y=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 y=="object"&&!re.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:w,...N})}else if(p instanceof Error){u=!1;const y=typeof o.error=="function"?await o.error(p):o.error,w=typeof o.description=="function"?await o.description(p):o.description,N=typeof y=="object"&&!re.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:w,...N})}else if(o.success!==void 0){u=!1;const y=typeof o.success=="function"?await o.success(p):o.success,w=typeof o.description=="function"?await o.description(p):o.description,N=typeof y=="object"&&!re.isValidElement(y)?y:{message:y};this.create({id:s,type:"success",description:w,...N})}}).catch(async p=>{if(m=["reject",p],o.error!==void 0){u=!1;const b=typeof o.error=="function"?await o.error(p):o.error,y=typeof o.description=="function"?await o.description(p):o.description,C=typeof b=="object"&&!re.isValidElement(b)?b:{message:b};this.create({id:s,type:"error",description:y,...C})}}).finally(()=>{u&&(this.dismiss(s),s=void 0),o.finally==null||o.finally.call(o)}),v=()=>new Promise((p,b)=>h.then(()=>m[0]==="reject"?b(m[1]):p(m[1])).catch(b));return typeof s!="string"&&typeof s!="number"?{unwrap:v}:Object.assign(s,{unwrap:v})},this.custom=(r,o)=>{const s=o?.id||sf++;return this.create({jsx:r(s),id:s,...o}),s},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Vt=new DC,zC=(n,r)=>{const o=r?.id||sf++;return Vt.addToast({title:n,...r,id:o}),o},UC=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",LC=zC,BC=()=>Vt.toasts,HC=()=>Vt.getActiveToasts(),_e=Object.assign(LC,{success:Vt.success,info:Vt.info,warning:Vt.warning,error:Vt.error,custom:Vt.custom,message:Vt.message,promise:Vt.promise,dismiss:Vt.dismiss,loading:Vt.loading},{getHistory:BC,getToasts:HC});NC("[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 yi(n){return n.label!==void 0}const PC=3,$C="24px",qC="16px",_v=4e3,VC=356,YC=14,IC=45,GC=200;function Hn(...n){return n.filter(Boolean).join(" ")}function XC(n){const[r,o]=n.split("-"),s=[];return r&&s.push(r),o&&s.push(o),s}const QC=n=>{var r,o,s,c,u,m,h,v,p;const{invert:b,toast:y,unstyled:w,interacting:C,setHeights:N,visibleToasts:E,heights:T,index:A,toasts:k,expanded:O,removeToast:B,defaultRichColors:U,closeButton:Z,style:V,cancelButtonStyle:$,actionButtonStyle:G,className:ce="",descriptionClassName:ue="",duration:W,position:ee,gap:le,expandByDefault:J,classNames:_,icons:P,closeButtonAriaLabel:X="Close toast"}=n,[fe,R]=re.useState(null),[Y,se]=re.useState(null),[Q,oe]=re.useState(!1),[te,ne]=re.useState(!1),[ie,de]=re.useState(!1),[xe,Ce]=re.useState(!1),[Ne,Re]=re.useState(!1),[et,rt]=re.useState(0),[hn,pn]=re.useState(0),st=re.useRef(y.duration||W||_v),Ja=re.useRef(null),pt=re.useRef(null),jr=A===0,Yn=A+1<=E,it=y.type,gn=y.dismissible!==!1,_r=y.className||"",pa=y.descriptionClassName||"",Yt=re.useMemo(()=>T.findIndex(me=>me.toastId===y.id)||0,[T,y.id]),Rt=re.useMemo(()=>{var me;return(me=y.closeButton)!=null?me:Z},[y.closeButton,Z]),Ut=re.useMemo(()=>y.duration||W||_v,[y.duration,W]),Je=re.useRef(0),On=re.useRef(0),Or=re.useRef(0),Mn=re.useRef(null),[ga,va]=ee.split("-"),nn=re.useMemo(()=>T.reduce((me,He,Qe)=>Qe>=Yt?me:me+He.height,0),[T,Yt]),In=MC(),Gn=y.invert||b,ya=it==="loading";On.current=re.useMemo(()=>Yt*le+nn,[Yt,nn]),re.useEffect(()=>{st.current=Ut},[Ut]),re.useEffect(()=>{oe(!0)},[]),re.useEffect(()=>{const me=pt.current;if(me){const He=me.getBoundingClientRect().height;return pn(He),N(Qe=>[{toastId:y.id,height:He,position:y.position},...Qe]),()=>N(Qe=>Qe.filter(gt=>gt.toastId!==y.id))}},[N,y.id]),re.useLayoutEffect(()=>{if(!Q)return;const me=pt.current,He=me.style.height;me.style.height="auto";const Qe=me.getBoundingClientRect().height;me.style.height=He,pn(Qe),N(gt=>gt.find(vt=>vt.toastId===y.id)?gt.map(vt=>vt.toastId===y.id?{...vt,height:Qe}:vt):[{toastId:y.id,height:Qe,position:y.position},...gt])},[Q,y.title,y.description,N,y.id,y.jsx,y.action,y.cancel]);const Lt=re.useCallback(()=>{ne(!0),rt(On.current),N(me=>me.filter(He=>He.toastId!==y.id)),setTimeout(()=>{B(y)},GC)},[y,B,N,On]);re.useEffect(()=>{if(y.promise&&it==="loading"||y.duration===1/0||y.type==="loading")return;let me;return O||C||In?(()=>{if(Or.current<Je.current){const gt=new Date().getTime()-Je.current;st.current=st.current-gt}Or.current=new Date().getTime()})():st.current!==1/0&&(Je.current=new Date().getTime(),me=setTimeout(()=>{y.onAutoClose==null||y.onAutoClose.call(y,y),Lt()},st.current)),()=>clearTimeout(me)},[O,C,y,it,In,Lt]),re.useEffect(()=>{y.delete&&(Lt(),y.onDismiss==null||y.onDismiss.call(y,y))},[Lt,y.delete]);function er(){var me;if(P?.loading){var He;return re.createElement("div",{className:Hn(_?.loader,y==null||(He=y.classNames)==null?void 0:He.loader,"sonner-loader"),"data-visible":it==="loading"},P.loading)}return re.createElement(RC,{className:Hn(_?.loader,y==null||(me=y.classNames)==null?void 0:me.loader),visible:it==="loading"})}const tr=y.icon||P?.[it]||TC(it);var ye,Xe;return re.createElement("li",{tabIndex:0,ref:pt,className:Hn(ce,_r,_?.toast,y==null||(r=y.classNames)==null?void 0:r.toast,_?.default,_?.[it],y==null||(o=y.classNames)==null?void 0:o[it]),"data-sonner-toast":"","data-rich-colors":(ye=y.richColors)!=null?ye:U,"data-styled":!(y.jsx||y.unstyled||w),"data-mounted":Q,"data-promise":!!y.promise,"data-swiped":Ne,"data-removed":te,"data-visible":Yn,"data-y-position":ga,"data-x-position":va,"data-index":A,"data-front":jr,"data-swiping":ie,"data-dismissible":gn,"data-type":it,"data-invert":Gn,"data-swipe-out":xe,"data-swipe-direction":Y,"data-expanded":!!(O||J&&Q),"data-testid":y.testId,style:{"--index":A,"--toasts-before":A,"--z-index":k.length-A,"--offset":`${te?et:On.current}px`,"--initial-height":J?"auto":`${hn}px`,...V,...y.style},onDragEnd:()=>{de(!1),R(null),Mn.current=null},onPointerDown:me=>{me.button!==2&&(ya||!gn||(Ja.current=new Date,rt(On.current),me.target.setPointerCapture(me.pointerId),me.target.tagName!=="BUTTON"&&(de(!0),Mn.current={x:me.clientX,y:me.clientY})))},onPointerUp:()=>{var me,He,Qe;if(xe||!gn)return;Mn.current=null;const gt=Number(((me=pt.current)==null?void 0:me.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),nr=Number(((He=pt.current)==null?void 0:He.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),vt=new Date().getTime()-((Qe=Ja.current)==null?void 0:Qe.getTime()),ct=fe==="x"?gt:nr,ut=Math.abs(ct)/vt;if(Math.abs(ct)>=IC||ut>.11){rt(On.current),y.onDismiss==null||y.onDismiss.call(y,y),se(fe==="x"?gt>0?"right":"left":nr>0?"down":"up"),Lt(),Ce(!0);return}else{var Ke,St;(Ke=pt.current)==null||Ke.style.setProperty("--swipe-amount-x","0px"),(St=pt.current)==null||St.style.setProperty("--swipe-amount-y","0px")}Re(!1),de(!1),R(null)},onPointerMove:me=>{var He,Qe,gt;if(!Mn.current||!gn||((He=window.getSelection())==null?void 0:He.toString().length)>0)return;const vt=me.clientY-Mn.current.y,ct=me.clientX-Mn.current.x;var ut;const Ke=(ut=n.swipeDirections)!=null?ut:XC(ee);!fe&&(Math.abs(ct)>1||Math.abs(vt)>1)&&R(Math.abs(ct)>Math.abs(vt)?"x":"y");let St={x:0,y:0};const Mr=Xn=>1/(1.5+Math.abs(Xn)/20);if(fe==="y"){if(Ke.includes("top")||Ke.includes("bottom"))if(Ke.includes("top")&&vt<0||Ke.includes("bottom")&&vt>0)St.y=vt;else{const Xn=vt*Mr(vt);St.y=Math.abs(Xn)<Math.abs(vt)?Xn:vt}}else if(fe==="x"&&(Ke.includes("left")||Ke.includes("right")))if(Ke.includes("left")&&ct<0||Ke.includes("right")&&ct>0)St.x=ct;else{const Xn=ct*Mr(ct);St.x=Math.abs(Xn)<Math.abs(ct)?Xn:ct}(Math.abs(St.x)>0||Math.abs(St.y)>0)&&Re(!0),(Qe=pt.current)==null||Qe.style.setProperty("--swipe-amount-x",`${St.x}px`),(gt=pt.current)==null||gt.style.setProperty("--swipe-amount-y",`${St.y}px`)}},Rt&&!y.jsx&&it!=="loading"?re.createElement("button",{"aria-label":X,"data-disabled":ya,"data-close-button":!0,onClick:ya||!gn?()=>{}:()=>{Lt(),y.onDismiss==null||y.onDismiss.call(y,y)},className:Hn(_?.closeButton,y==null||(s=y.classNames)==null?void 0:s.closeButton)},(Xe=P?.close)!=null?Xe:OC):null,(it||y.icon||y.promise)&&y.icon!==null&&(P?.[it]!==null||y.icon)?re.createElement("div",{"data-icon":"",className:Hn(_?.icon,y==null||(c=y.classNames)==null?void 0:c.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||er():null,y.type!=="loading"?tr:null):null,re.createElement("div",{"data-content":"",className:Hn(_?.content,y==null||(u=y.classNames)==null?void 0:u.content)},re.createElement("div",{"data-title":"",className:Hn(_?.title,y==null||(m=y.classNames)==null?void 0:m.title)},y.jsx?y.jsx:typeof y.title=="function"?y.title():y.title),y.description?re.createElement("div",{"data-description":"",className:Hn(ue,pa,_?.description,y==null||(h=y.classNames)==null?void 0:h.description)},typeof y.description=="function"?y.description():y.description):null),re.isValidElement(y.cancel)?y.cancel:y.cancel&&yi(y.cancel)?re.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||$,onClick:me=>{yi(y.cancel)&&gn&&(y.cancel.onClick==null||y.cancel.onClick.call(y.cancel,me),Lt())},className:Hn(_?.cancelButton,y==null||(v=y.classNames)==null?void 0:v.cancelButton)},y.cancel.label):null,re.isValidElement(y.action)?y.action:y.action&&yi(y.action)?re.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||G,onClick:me=>{yi(y.action)&&(y.action.onClick==null||y.action.onClick.call(y.action,me),!me.defaultPrevented&&Lt())},className:Hn(_?.actionButton,y==null||(p=y.classNames)==null?void 0:p.actionButton)},y.action.label):null)};function Ov(){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 KC(n,r){const o={};return[n,r].forEach((s,c)=>{const u=c===1,m=u?"--mobile-offset":"--offset",h=u?qC:$C;function v(p){["top","right","bottom","left"].forEach(b=>{o[`${m}-${b}`]=typeof p=="number"?`${p}px`:p})}typeof s=="number"||typeof s=="string"?v(s):typeof s=="object"?["top","right","bottom","left"].forEach(p=>{s[p]===void 0?o[`${m}-${p}`]=h:o[`${m}-${p}`]=typeof s[p]=="number"?`${s[p]}px`:s[p]}):v(h)}),o}const ZC=re.forwardRef(function(r,o){const{id:s,invert:c,position:u="bottom-right",hotkey:m=["altKey","KeyT"],expand:h,closeButton:v,className:p,offset:b,mobileOffset:y,theme:w="light",richColors:C,duration:N,style:E,visibleToasts:T=PC,toastOptions:A,dir:k=Ov(),gap:O=YC,icons:B,containerAriaLabel:U="Notifications"}=r,[Z,V]=re.useState([]),$=re.useMemo(()=>s?Z.filter(Q=>Q.toasterId===s):Z.filter(Q=>!Q.toasterId),[Z,s]),G=re.useMemo(()=>Array.from(new Set([u].concat($.filter(Q=>Q.position).map(Q=>Q.position)))),[$,u]),[ce,ue]=re.useState([]),[W,ee]=re.useState(!1),[le,J]=re.useState(!1),[_,P]=re.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),X=re.useRef(null),fe=m.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=re.useRef(null),Y=re.useRef(!1),se=re.useCallback(Q=>{V(oe=>{var te;return(te=oe.find(ne=>ne.id===Q.id))!=null&&te.delete||Vt.dismiss(Q.id),oe.filter(({id:ne})=>ne!==Q.id)})},[]);return re.useEffect(()=>Vt.subscribe(Q=>{if(Q.dismiss){requestAnimationFrame(()=>{V(oe=>oe.map(te=>te.id===Q.id?{...te,delete:!0}:te))});return}setTimeout(()=>{G0.flushSync(()=>{V(oe=>{const te=oe.findIndex(ne=>ne.id===Q.id);return te!==-1?[...oe.slice(0,te),{...oe[te],...Q},...oe.slice(te+1)]:[Q,...oe]})})})}),[Z]),re.useEffect(()=>{if(w!=="system"){P(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?P("dark"):P("light")),typeof window>"u")return;const Q=window.matchMedia("(prefers-color-scheme: dark)");try{Q.addEventListener("change",({matches:oe})=>{P(oe?"dark":"light")})}catch{Q.addListener(({matches:te})=>{try{P(te?"dark":"light")}catch(ne){console.error(ne)}})}},[w]),re.useEffect(()=>{Z.length<=1&&ee(!1)},[Z]),re.useEffect(()=>{const Q=oe=>{var te;if(m.every(de=>oe[de]||oe.code===de)){var ie;ee(!0),(ie=X.current)==null||ie.focus()}oe.code==="Escape"&&(document.activeElement===X.current||(te=X.current)!=null&&te.contains(document.activeElement))&&ee(!1)};return document.addEventListener("keydown",Q),()=>document.removeEventListener("keydown",Q)},[m]),re.useEffect(()=>{if(X.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,Y.current=!1)}},[X.current]),re.createElement("section",{ref:o,"aria-label":`${U} ${fe}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},G.map((Q,oe)=>{var te;const[ne,ie]=Q.split("-");return $.length?re.createElement("ol",{key:Q,dir:k==="auto"?Ov():k,tabIndex:-1,ref:X,className:p,"data-sonner-toaster":!0,"data-sonner-theme":_,"data-y-position":ne,"data-x-position":ie,style:{"--front-toast-height":`${((te=ce[0])==null?void 0:te.height)||0}px`,"--width":`${VC}px`,"--gap":`${O}px`,...E,...KC(b,y)},onBlur:de=>{Y.current&&!de.currentTarget.contains(de.relatedTarget)&&(Y.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:de=>{de.target instanceof HTMLElement&&de.target.dataset.dismissible==="false"||Y.current||(Y.current=!0,R.current=de.relatedTarget)},onMouseEnter:()=>ee(!0),onMouseMove:()=>ee(!0),onMouseLeave:()=>{le||ee(!1)},onDragEnd:()=>ee(!1),onPointerDown:de=>{de.target instanceof HTMLElement&&de.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},$.filter(de=>!de.position&&oe===0||de.position===Q).map((de,xe)=>{var Ce,Ne;return re.createElement(QC,{key:de.id,icons:B,index:xe,toast:de,defaultRichColors:C,duration:(Ce=A?.duration)!=null?Ce:N,className:A?.className,descriptionClassName:A?.descriptionClassName,invert:c,visibleToasts:T,closeButton:(Ne=A?.closeButton)!=null?Ne:v,interacting:le,position:Q,style:A?.style,unstyled:A?.unstyled,classNames:A?.classNames,cancelButtonStyle:A?.cancelButtonStyle,actionButtonStyle:A?.actionButtonStyle,closeButtonAriaLabel:A?.closeButtonAriaLabel,removeToast:se,toasts:$.filter(Re=>Re.position==de.position),heights:ce.filter(Re=>Re.position==de.position),setHeights:ue,expandByDefault:h,gap:O,expanded:W,swipeDirections:r.swipeDirections})})):null}))}),Mv=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Dv=my,Ay=(n,r)=>o=>{var s;if(r?.variants==null)return Dv(n,o?.class,o?.className);const{variants:c,defaultVariants:u}=r,m=Object.keys(c).map(p=>{const b=o?.[p],y=u?.[p];if(b===null)return null;const w=Mv(b)||Mv(y);return c[p][w]}),h=o&&Object.entries(o).reduce((p,b)=>{let[y,w]=b;return w===void 0||(p[y]=w),p},{}),v=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((p,b)=>{let{class:y,className:w,...C}=b;return Object.entries(C).every(N=>{let[E,T]=N;return Array.isArray(T)?T.includes({...u,...h}[E]):{...u,...h}[E]===T})?[...p,y,w]:p},[]);return Dv(n,m,v,o?.class,o?.className)},FC=Ay("inline-flex items-center rounded-sm border px-1.5 py-0 text-[10px] font-semibold leading-4 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 _t({className:n,variant:r,...o}){return f.jsx("div",{className:ae(FC({variant:r}),n),...o})}const Sn=g.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:ae("rounded-sm border border-border/70 bg-card/80 text-card-foreground shadow-none",n),...r}));Sn.displayName="Card";const wn=g.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:ae("flex flex-col space-y-1 p-3",n),...r}));wn.displayName="CardHeader";const En=g.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:ae("text-[12px] font-semibold leading-none tracking-tight",n),...r}));En.displayName="CardTitle";const Nn=g.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:ae("text-[10px] text-muted-foreground",n),...r}));Nn.displayName="CardDescription";const Tn=g.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:ae("p-3 pt-0",n),...r}));Tn.displayName="CardContent";const WC=g.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:ae("flex items-center p-3 pt-0",n),...r}));WC.displayName="CardFooter";function zv(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function Pf(...n){return r=>{let o=!1;const s=n.map(c=>{const u=zv(c,r);return!o&&typeof u=="function"&&(o=!0),u});if(o)return()=>{for(let c=0;c<s.length;c++){const u=s[c];typeof u=="function"?u():zv(n[c],null)}}}}function We(...n){return g.useCallback(Pf(...n),n)}var JC=Symbol.for("react.lazy"),Bi=Af[" use ".trim().toString()];function eR(n){return typeof n=="object"&&n!==null&&"then"in n}function ky(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===JC&&"_payload"in n&&eR(n._payload)}function tR(n){const r=aR(n),o=g.forwardRef((s,c)=>{let{children:u,...m}=s;ky(u)&&typeof Bi=="function"&&(u=Bi(u._payload));const h=g.Children.toArray(u),v=h.find(oR);if(v){const p=v.props.children,b=h.map(y=>y===v?g.Children.count(p)>1?g.Children.only(null):g.isValidElement(p)?p.props.children:null:y);return f.jsx(r,{...m,ref:c,children:g.isValidElement(p)?g.cloneElement(p,void 0,b):null})}return f.jsx(r,{...m,ref:c,children:u})});return o.displayName=`${n}.Slot`,o}var nR=tR("Slot");function aR(n){const r=g.forwardRef((o,s)=>{let{children:c,...u}=o;if(ky(c)&&typeof Bi=="function"&&(c=Bi(c._payload)),g.isValidElement(c)){const m=sR(c),h=lR(u,c.props);return c.type!==g.Fragment&&(h.ref=s?Pf(s,m):m),g.cloneElement(c,h)}return g.Children.count(c)>1?g.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var rR=Symbol("radix.slottable");function oR(n){return g.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===rR}function lR(n,r){const o={...r};for(const s in r){const c=n[s],u=r[s];/^on[A-Z]/.test(s)?c&&u?o[s]=(...h)=>{const v=u(...h);return c(...h),v}:c&&(o[s]=c):s==="style"?o[s]={...c,...u}:s==="className"&&(o[s]=[c,u].filter(Boolean).join(" "))}return{...n,...o}}function sR(n){let r=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=Object.getOwnPropertyDescriptor(n,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}const $f=Ay("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-sm text-[11px] 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-8 px-3 py-1.5",sm:"h-7 rounded-sm px-2 text-[10px]",lg:"h-10 rounded-md px-5 text-xs",icon:"h-8 w-8 rounded-sm"}},defaultVariants:{variant:"default",size:"default"}}),Ct=g.forwardRef(({className:n,variant:r,size:o,asChild:s=!1,...c},u)=>{const m=s?nR:"button";return f.jsx(m,{className:ae($f({variant:r,size:o,className:n})),ref:u,...c})});Ct.displayName="Button";async function iR(n,r={}){try{await be("/telemetry/events",{method:"POST",body:JSON.stringify({name:`feature.${n}`,appType:"browser",dimensions:r})})}catch{}}function ze(n,r,{checkForDefaultPrevented:o=!0}={}){return function(c){if(n?.(c),o===!1||!c.defaultPrevented)return r?.(c)}}function cR(n,r){const o=g.createContext(r),s=u=>{const{children:m,...h}=u,v=g.useMemo(()=>h,Object.values(h));return f.jsx(o.Provider,{value:v,children:m})};s.displayName=n+"Provider";function c(u){const m=g.useContext(o);if(m)return m;if(r!==void 0)return r;throw new Error(`\`${u}\` must be used within \`${n}\``)}return[s,c]}function Za(n,r=[]){let o=[];function s(u,m){const h=g.createContext(m),v=o.length;o=[...o,m];const p=y=>{const{scope:w,children:C,...N}=y,E=w?.[n]?.[v]||h,T=g.useMemo(()=>N,Object.values(N));return f.jsx(E.Provider,{value:T,children:C})};p.displayName=u+"Provider";function b(y,w){const C=w?.[n]?.[v]||h,N=g.useContext(C);if(N)return N;if(m!==void 0)return m;throw new Error(`\`${y}\` must be used within \`${u}\``)}return[p,b]}const c=()=>{const u=o.map(m=>g.createContext(m));return function(h){const v=h?.[n]||u;return g.useMemo(()=>({[`__scope${n}`]:{...h,[n]:v}}),[h,v])}};return c.scopeName=n,[s,uR(c,...r)]}function uR(...n){const r=n[0];if(n.length===1)return r;const o=()=>{const s=n.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(u){const m=s.reduce((h,{useScope:v,scopeName:p})=>{const y=v(u)[`__scope${p}`];return{...h,...y}},{});return g.useMemo(()=>({[`__scope${r.scopeName}`]:m}),[m])}};return o.scopeName=r.scopeName,o}var Dt=globalThis?.document?g.useLayoutEffect:()=>{},dR=Af[" useId ".trim().toString()]||(()=>{}),fR=0;function Ya(n){const[r,o]=g.useState(dR());return Dt(()=>{o(s=>s??String(fR++))},[n]),r?`radix-${r}`:""}var mR=Af[" useInsertionEffect ".trim().toString()]||Dt;function _o({prop:n,defaultProp:r,onChange:o=()=>{},caller:s}){const[c,u,m]=hR({defaultProp:r,onChange:o}),h=n!==void 0,v=h?n:c;{const b=g.useRef(n!==void 0);g.useEffect(()=>{const y=b.current;y!==h&&console.warn(`${s} is changing from ${y?"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.`),b.current=h},[h,s])}const p=g.useCallback(b=>{if(h){const y=pR(b)?b(n):b;y!==n&&m.current?.(y)}else u(b)},[h,n,u,m]);return[v,p]}function hR({defaultProp:n,onChange:r}){const[o,s]=g.useState(n),c=g.useRef(o),u=g.useRef(r);return mR(()=>{u.current=r},[r]),g.useEffect(()=>{c.current!==o&&(u.current?.(o),c.current=o)},[o,c]),[o,s,u]}function pR(n){return typeof n=="function"}function Fl(n){const r=gR(n),o=g.forwardRef((s,c)=>{const{children:u,...m}=s,h=g.Children.toArray(u),v=h.find(yR);if(v){const p=v.props.children,b=h.map(y=>y===v?g.Children.count(p)>1?g.Children.only(null):g.isValidElement(p)?p.props.children:null:y);return f.jsx(r,{...m,ref:c,children:g.isValidElement(p)?g.cloneElement(p,void 0,b):null})}return f.jsx(r,{...m,ref:c,children:u})});return o.displayName=`${n}.Slot`,o}function gR(n){const r=g.forwardRef((o,s)=>{const{children:c,...u}=o;if(g.isValidElement(c)){const m=xR(c),h=bR(u,c.props);return c.type!==g.Fragment&&(h.ref=s?Pf(s,m):m),g.cloneElement(c,h)}return g.Children.count(c)>1?g.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var jy=Symbol("radix.slottable");function vR(n){const r=({children:o})=>f.jsx(f.Fragment,{children:o});return r.displayName=`${n}.Slottable`,r.__radixId=jy,r}function yR(n){return g.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===jy}function bR(n,r){const o={...r};for(const s in r){const c=n[s],u=r[s];/^on[A-Z]/.test(s)?c&&u?o[s]=(...h)=>{const v=u(...h);return c(...h),v}:c&&(o[s]=c):s==="style"?o[s]={...c,...u}:s==="className"&&(o[s]=[c,u].filter(Boolean).join(" "))}return{...n,...o}}function xR(n){let r=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=Object.getOwnPropertyDescriptor(n,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var SR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ue=SR.reduce((n,r)=>{const o=Fl(`Primitive.${r}`),s=g.forwardRef((c,u)=>{const{asChild:m,...h}=c,v=m?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(v,{...h,ref:u})});return s.displayName=`Primitive.${r}`,{...n,[r]:s}},{});function wR(n,r){n&&ts.flushSync(()=>n.dispatchEvent(r))}function Ga(n){const r=g.useRef(n);return g.useEffect(()=>{r.current=n}),g.useMemo(()=>(...o)=>r.current?.(...o),[])}function ER(n,r=globalThis?.document){const o=Ga(n);g.useEffect(()=>{const s=c=>{c.key==="Escape"&&o(c)};return r.addEventListener("keydown",s,{capture:!0}),()=>r.removeEventListener("keydown",s,{capture:!0})},[o,r])}var NR="DismissableLayer",cf="dismissableLayer.update",TR="dismissableLayer.pointerDownOutside",CR="dismissableLayer.focusOutside",Uv,_y=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qf=g.forwardRef((n,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:m,onDismiss:h,...v}=n,p=g.useContext(_y),[b,y]=g.useState(null),w=b?.ownerDocument??globalThis?.document,[,C]=g.useState({}),N=We(r,V=>y(V)),E=Array.from(p.layers),[T]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),A=E.indexOf(T),k=b?E.indexOf(b):-1,O=p.layersWithOutsidePointerEventsDisabled.size>0,B=k>=A,U=kR(V=>{const $=V.target,G=[...p.branches].some(ce=>ce.contains($));!B||G||(c?.(V),m?.(V),V.defaultPrevented||h?.())},w),Z=jR(V=>{const $=V.target;[...p.branches].some(ce=>ce.contains($))||(u?.(V),m?.(V),V.defaultPrevented||h?.())},w);return ER(V=>{k===p.layers.size-1&&(s?.(V),!V.defaultPrevented&&h&&(V.preventDefault(),h()))},w),g.useEffect(()=>{if(b)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Uv=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(b)),p.layers.add(b),Lv(),()=>{o&&p.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=Uv)}},[b,w,o,p]),g.useEffect(()=>()=>{b&&(p.layers.delete(b),p.layersWithOutsidePointerEventsDisabled.delete(b),Lv())},[b,p]),g.useEffect(()=>{const V=()=>C({});return document.addEventListener(cf,V),()=>document.removeEventListener(cf,V)},[]),f.jsx(Ue.div,{...v,ref:N,style:{pointerEvents:O?B?"auto":"none":void 0,...n.style},onFocusCapture:ze(n.onFocusCapture,Z.onFocusCapture),onBlurCapture:ze(n.onBlurCapture,Z.onBlurCapture),onPointerDownCapture:ze(n.onPointerDownCapture,U.onPointerDownCapture)})});qf.displayName=NR;var RR="DismissableLayerBranch",AR=g.forwardRef((n,r)=>{const o=g.useContext(_y),s=g.useRef(null),c=We(r,s);return g.useEffect(()=>{const u=s.current;if(u)return o.branches.add(u),()=>{o.branches.delete(u)}},[o.branches]),f.jsx(Ue.div,{...n,ref:c})});AR.displayName=RR;function kR(n,r=globalThis?.document){const o=Ga(n),s=g.useRef(!1),c=g.useRef(()=>{});return g.useEffect(()=>{const u=h=>{if(h.target&&!s.current){let v=function(){Oy(TR,o,p,{discrete:!0})};const p={originalEvent:h};h.pointerType==="touch"?(r.removeEventListener("click",c.current),c.current=v,r.addEventListener("click",c.current,{once:!0})):v()}else r.removeEventListener("click",c.current);s.current=!1},m=window.setTimeout(()=>{r.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(m),r.removeEventListener("pointerdown",u),r.removeEventListener("click",c.current)}},[r,o]),{onPointerDownCapture:()=>s.current=!0}}function jR(n,r=globalThis?.document){const o=Ga(n),s=g.useRef(!1);return g.useEffect(()=>{const c=u=>{u.target&&!s.current&&Oy(CR,o,{originalEvent:u},{discrete:!1})};return r.addEventListener("focusin",c),()=>r.removeEventListener("focusin",c)},[r,o]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Lv(){const n=new CustomEvent(cf);document.dispatchEvent(n)}function Oy(n,r,o,{discrete:s}){const c=o.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:o});r&&c.addEventListener(n,r,{once:!0}),s?wR(c,u):c.dispatchEvent(u)}var Bd="focusScope.autoFocusOnMount",Hd="focusScope.autoFocusOnUnmount",Bv={bubbles:!1,cancelable:!0},_R="FocusScope",Vf=g.forwardRef((n,r)=>{const{loop:o=!1,trapped:s=!1,onMountAutoFocus:c,onUnmountAutoFocus:u,...m}=n,[h,v]=g.useState(null),p=Ga(c),b=Ga(u),y=g.useRef(null),w=We(r,E=>v(E)),C=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(s){let E=function(O){if(C.paused||!h)return;const B=O.target;h.contains(B)?y.current=B:Va(y.current,{select:!0})},T=function(O){if(C.paused||!h)return;const B=O.relatedTarget;B!==null&&(h.contains(B)||Va(y.current,{select:!0}))},A=function(O){if(document.activeElement===document.body)for(const U of O)U.removedNodes.length>0&&Va(h)};document.addEventListener("focusin",E),document.addEventListener("focusout",T);const k=new MutationObserver(A);return h&&k.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",T),k.disconnect()}}},[s,h,C.paused]),g.useEffect(()=>{if(h){Pv.add(C);const E=document.activeElement;if(!h.contains(E)){const A=new CustomEvent(Bd,Bv);h.addEventListener(Bd,p),h.dispatchEvent(A),A.defaultPrevented||(OR(LR(My(h)),{select:!0}),document.activeElement===E&&Va(h))}return()=>{h.removeEventListener(Bd,p),setTimeout(()=>{const A=new CustomEvent(Hd,Bv);h.addEventListener(Hd,b),h.dispatchEvent(A),A.defaultPrevented||Va(E??document.body,{select:!0}),h.removeEventListener(Hd,b),Pv.remove(C)},0)}}},[h,p,b,C]);const N=g.useCallback(E=>{if(!o&&!s||C.paused)return;const T=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,A=document.activeElement;if(T&&A){const k=E.currentTarget,[O,B]=MR(k);O&&B?!E.shiftKey&&A===B?(E.preventDefault(),o&&Va(O,{select:!0})):E.shiftKey&&A===O&&(E.preventDefault(),o&&Va(B,{select:!0})):A===k&&E.preventDefault()}},[o,s,C.paused]);return f.jsx(Ue.div,{tabIndex:-1,...m,ref:w,onKeyDown:N})});Vf.displayName=_R;function OR(n,{select:r=!1}={}){const o=document.activeElement;for(const s of n)if(Va(s,{select:r}),document.activeElement!==o)return}function MR(n){const r=My(n),o=Hv(r,n),s=Hv(r.reverse(),n);return[o,s]}function My(n){const r=[],o=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const c=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||c?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)r.push(o.currentNode);return r}function Hv(n,r){for(const o of n)if(!DR(o,{upTo:r}))return o}function DR(n,{upTo:r}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(r!==void 0&&n===r)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function zR(n){return n instanceof HTMLInputElement&&"select"in n}function Va(n,{select:r=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&zR(n)&&r&&n.select()}}var Pv=UR();function UR(){let n=[];return{add(r){const o=n[0];r!==o&&o?.pause(),n=$v(n,r),n.unshift(r)},remove(r){n=$v(n,r),n[0]?.resume()}}}function $v(n,r){const o=[...n],s=o.indexOf(r);return s!==-1&&o.splice(s,1),o}function LR(n){return n.filter(r=>r.tagName!=="A")}var BR="Portal",Yf=g.forwardRef((n,r)=>{const{container:o,...s}=n,[c,u]=g.useState(!1);Dt(()=>u(!0),[]);const m=o||c&&globalThis?.document?.body;return m?G0.createPortal(f.jsx(Ue.div,{...s,ref:r}),m):null});Yf.displayName=BR;function HR(n,r){return g.useReducer((o,s)=>r[o][s]??o,n)}var Lo=n=>{const{present:r,children:o}=n,s=PR(r),c=typeof o=="function"?o({present:s.isPresent}):g.Children.only(o),u=We(s.ref,$R(c));return typeof o=="function"||s.isPresent?g.cloneElement(c,{ref:u}):null};Lo.displayName="Presence";function PR(n){const[r,o]=g.useState(),s=g.useRef(null),c=g.useRef(n),u=g.useRef("none"),m=n?"mounted":"unmounted",[h,v]=HR(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const p=bi(s.current);u.current=h==="mounted"?p:"none"},[h]),Dt(()=>{const p=s.current,b=c.current;if(b!==n){const w=u.current,C=bi(p);n?v("MOUNT"):C==="none"||p?.display==="none"?v("UNMOUNT"):v(b&&w!==C?"ANIMATION_OUT":"UNMOUNT"),c.current=n}},[n,v]),Dt(()=>{if(r){let p;const b=r.ownerDocument.defaultView??window,y=C=>{const E=bi(s.current).includes(CSS.escape(C.animationName));if(C.target===r&&E&&(v("ANIMATION_END"),!c.current)){const T=r.style.animationFillMode;r.style.animationFillMode="forwards",p=b.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=T)})}},w=C=>{C.target===r&&(u.current=bi(s.current))};return r.addEventListener("animationstart",w),r.addEventListener("animationcancel",y),r.addEventListener("animationend",y),()=>{b.clearTimeout(p),r.removeEventListener("animationstart",w),r.removeEventListener("animationcancel",y),r.removeEventListener("animationend",y)}}else v("ANIMATION_END")},[r,v]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:g.useCallback(p=>{s.current=p?getComputedStyle(p):null,o(p)},[])}}function bi(n){return n?.animationName||"none"}function $R(n){let r=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=Object.getOwnPropertyDescriptor(n,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var Pd=0;function Dy(){g.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??qv()),document.body.insertAdjacentElement("beforeend",n[1]??qv()),Pd++,()=>{Pd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Pd--}},[])}function qv(){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 Pn=function(){return Pn=Object.assign||function(r){for(var o,s=1,c=arguments.length;s<c;s++){o=arguments[s];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(r[u]=o[u])}return r},Pn.apply(this,arguments)};function zy(n,r){var o={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&r.indexOf(s)<0&&(o[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,s=Object.getOwnPropertySymbols(n);c<s.length;c++)r.indexOf(s[c])<0&&Object.prototype.propertyIsEnumerable.call(n,s[c])&&(o[s[c]]=n[s[c]]);return o}function qR(n,r,o){if(o||arguments.length===2)for(var s=0,c=r.length,u;s<c;s++)(u||!(s in r))&&(u||(u=Array.prototype.slice.call(r,0,s)),u[s]=r[s]);return n.concat(u||Array.prototype.slice.call(r))}var Ai="right-scroll-bar-position",ki="width-before-scroll-bar",VR="with-scroll-bars-hidden",YR="--removed-body-scroll-bar-size";function $d(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function IR(n,r){var o=g.useState(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(s){var c=o.value;c!==s&&(o.value=s,o.callback(s,c))}}}})[0];return o.callback=r,o.facade}var GR=typeof window<"u"?g.useLayoutEffect:g.useEffect,Vv=new WeakMap;function XR(n,r){var o=IR(null,function(s){return n.forEach(function(c){return $d(c,s)})});return GR(function(){var s=Vv.get(o);if(s){var c=new Set(s),u=new Set(n),m=o.current;c.forEach(function(h){u.has(h)||$d(h,null)}),u.forEach(function(h){c.has(h)||$d(h,m)})}Vv.set(o,n)},[n]),o}function QR(n){return n}function KR(n,r){r===void 0&&(r=QR);var o=[],s=!1,c={read:function(){if(s)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(u){var m=r(u,s);return o.push(m),function(){o=o.filter(function(h){return h!==m})}},assignSyncMedium:function(u){for(s=!0;o.length;){var m=o;o=[],m.forEach(u)}o={push:function(h){return u(h)},filter:function(){return o}}},assignMedium:function(u){s=!0;var m=[];if(o.length){var h=o;o=[],h.forEach(u),m=o}var v=function(){var b=m;m=[],b.forEach(u)},p=function(){return Promise.resolve().then(v)};p(),o={push:function(b){m.push(b),p()},filter:function(b){return m=m.filter(b),o}}}};return c}function ZR(n){n===void 0&&(n={});var r=KR(null);return r.options=Pn({async:!0,ssr:!1},n),r}var Uy=function(n){var r=n.sideCar,o=zy(n,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=r.read();if(!s)throw new Error("Sidecar medium not found");return g.createElement(s,Pn({},o))};Uy.isSideCarExport=!0;function FR(n,r){return n.useMedium(r),Uy}var Ly=ZR(),qd=function(){},lc=g.forwardRef(function(n,r){var o=g.useRef(null),s=g.useState({onScrollCapture:qd,onWheelCapture:qd,onTouchMoveCapture:qd}),c=s[0],u=s[1],m=n.forwardProps,h=n.children,v=n.className,p=n.removeScrollBar,b=n.enabled,y=n.shards,w=n.sideCar,C=n.noRelative,N=n.noIsolation,E=n.inert,T=n.allowPinchZoom,A=n.as,k=A===void 0?"div":A,O=n.gapMode,B=zy(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),U=w,Z=XR([o,r]),V=Pn(Pn({},B),c);return g.createElement(g.Fragment,null,b&&g.createElement(U,{sideCar:Ly,removeScrollBar:p,shards:y,noRelative:C,noIsolation:N,inert:E,setCallbacks:u,allowPinchZoom:!!T,lockRef:o,gapMode:O}),m?g.cloneElement(g.Children.only(h),Pn(Pn({},V),{ref:Z})):g.createElement(k,Pn({},V,{className:v,ref:Z}),h))});lc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};lc.classNames={fullWidth:ki,zeroRight:Ai};var WR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function JR(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=WR();return r&&n.setAttribute("nonce",r),n}function e5(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function t5(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var n5=function(){var n=0,r=null;return{add:function(o){n==0&&(r=JR())&&(e5(r,o),t5(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},a5=function(){var n=n5();return function(r,o){g.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&o])}},By=function(){var n=a5(),r=function(o){var s=o.styles,c=o.dynamic;return n(s,c),null};return r},r5={left:0,top:0,right:0,gap:0},Vd=function(n){return parseInt(n||"",10)||0},o5=function(n){var r=window.getComputedStyle(document.body),o=r[n==="padding"?"paddingLeft":"marginLeft"],s=r[n==="padding"?"paddingTop":"marginTop"],c=r[n==="padding"?"paddingRight":"marginRight"];return[Vd(o),Vd(s),Vd(c)]},l5=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return r5;var r=o5(n),o=document.documentElement.clientWidth,s=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,s-o+r[2]-r[0])}},s5=By(),Ao="data-scroll-locked",i5=function(n,r,o,s){var c=n.left,u=n.top,m=n.right,h=n.gap;return o===void 0&&(o="margin"),`
|
|
297
|
+
.`.concat(VR,` {
|
|
298
|
+
overflow: hidden `).concat(s,`;
|
|
299
|
+
padding-right: `).concat(h,"px ").concat(s,`;
|
|
300
|
+
}
|
|
301
|
+
body[`).concat(Ao,`] {
|
|
302
|
+
overflow: hidden `).concat(s,`;
|
|
303
|
+
overscroll-behavior: contain;
|
|
304
|
+
`).concat([r&&"position: relative ".concat(s,";"),o==="margin"&&`
|
|
305
|
+
padding-left: `.concat(c,`px;
|
|
306
|
+
padding-top: `).concat(u,`px;
|
|
307
|
+
padding-right: `).concat(m,`px;
|
|
308
|
+
margin-left:0;
|
|
309
|
+
margin-top:0;
|
|
310
|
+
margin-right: `).concat(h,"px ").concat(s,`;
|
|
311
|
+
`),o==="padding"&&"padding-right: ".concat(h,"px ").concat(s,";")].filter(Boolean).join(""),`
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.`).concat(Ai,` {
|
|
315
|
+
right: `).concat(h,"px ").concat(s,`;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.`).concat(ki,` {
|
|
319
|
+
margin-right: `).concat(h,"px ").concat(s,`;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.`).concat(Ai," .").concat(Ai,` {
|
|
323
|
+
right: 0 `).concat(s,`;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.`).concat(ki," .").concat(ki,` {
|
|
327
|
+
margin-right: 0 `).concat(s,`;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
body[`).concat(Ao,`] {
|
|
331
|
+
`).concat(YR,": ").concat(h,`px;
|
|
332
|
+
}
|
|
333
|
+
`)},Yv=function(){var n=parseInt(document.body.getAttribute(Ao)||"0",10);return isFinite(n)?n:0},c5=function(){g.useEffect(function(){return document.body.setAttribute(Ao,(Yv()+1).toString()),function(){var n=Yv()-1;n<=0?document.body.removeAttribute(Ao):document.body.setAttribute(Ao,n.toString())}},[])},u5=function(n){var r=n.noRelative,o=n.noImportant,s=n.gapMode,c=s===void 0?"margin":s;c5();var u=g.useMemo(function(){return l5(c)},[c]);return g.createElement(s5,{styles:i5(u,!r,c,o?"":"!important")})},uf=!1;if(typeof window<"u")try{var xi=Object.defineProperty({},"passive",{get:function(){return uf=!0,!0}});window.addEventListener("test",xi,xi),window.removeEventListener("test",xi,xi)}catch{uf=!1}var bo=uf?{passive:!1}:!1,d5=function(n){return n.tagName==="TEXTAREA"},Hy=function(n,r){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!d5(n)&&o[r]==="visible")},f5=function(n){return Hy(n,"overflowY")},m5=function(n){return Hy(n,"overflowX")},Iv=function(n,r){var o=r.ownerDocument,s=r;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var c=Py(n,s);if(c){var u=$y(n,s),m=u[1],h=u[2];if(m>h)return!0}s=s.parentNode}while(s&&s!==o.body);return!1},h5=function(n){var r=n.scrollTop,o=n.scrollHeight,s=n.clientHeight;return[r,o,s]},p5=function(n){var r=n.scrollLeft,o=n.scrollWidth,s=n.clientWidth;return[r,o,s]},Py=function(n,r){return n==="v"?f5(r):m5(r)},$y=function(n,r){return n==="v"?h5(r):p5(r)},g5=function(n,r){return n==="h"&&r==="rtl"?-1:1},v5=function(n,r,o,s,c){var u=g5(n,window.getComputedStyle(r).direction),m=u*s,h=o.target,v=r.contains(h),p=!1,b=m>0,y=0,w=0;do{if(!h)break;var C=$y(n,h),N=C[0],E=C[1],T=C[2],A=E-T-u*N;(N||A)&&Py(n,h)&&(y+=A,w+=N);var k=h.parentNode;h=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!v&&h!==document.body||v&&(r.contains(h)||r===h));return(b&&Math.abs(y)<1||!b&&Math.abs(w)<1)&&(p=!0),p},Si=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Gv=function(n){return[n.deltaX,n.deltaY]},Xv=function(n){return n&&"current"in n?n.current:n},y5=function(n,r){return n[0]===r[0]&&n[1]===r[1]},b5=function(n){return`
|
|
334
|
+
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
335
|
+
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
336
|
+
`)},x5=0,xo=[];function S5(n){var r=g.useRef([]),o=g.useRef([0,0]),s=g.useRef(),c=g.useState(x5++)[0],u=g.useState(By)[0],m=g.useRef(n);g.useEffect(function(){m.current=n},[n]),g.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(c));var E=qR([n.lockRef.current],(n.shards||[]).map(Xv),!0).filter(Boolean);return E.forEach(function(T){return T.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),E.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(c))})}}},[n.inert,n.lockRef.current,n.shards]);var h=g.useCallback(function(E,T){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!m.current.allowPinchZoom;var A=Si(E),k=o.current,O="deltaX"in E?E.deltaX:k[0]-A[0],B="deltaY"in E?E.deltaY:k[1]-A[1],U,Z=E.target,V=Math.abs(O)>Math.abs(B)?"h":"v";if("touches"in E&&V==="h"&&Z.type==="range")return!1;var $=window.getSelection(),G=$&&$.anchorNode,ce=G?G===Z||G.contains(Z):!1;if(ce)return!1;var ue=Iv(V,Z);if(!ue)return!0;if(ue?U=V:(U=V==="v"?"h":"v",ue=Iv(V,Z)),!ue)return!1;if(!s.current&&"changedTouches"in E&&(O||B)&&(s.current=U),!U)return!0;var W=s.current||U;return v5(W,T,E,W==="h"?O:B)},[]),v=g.useCallback(function(E){var T=E;if(!(!xo.length||xo[xo.length-1]!==u)){var A="deltaY"in T?Gv(T):Si(T),k=r.current.filter(function(U){return U.name===T.type&&(U.target===T.target||T.target===U.shadowParent)&&y5(U.delta,A)})[0];if(k&&k.should){T.cancelable&&T.preventDefault();return}if(!k){var O=(m.current.shards||[]).map(Xv).filter(Boolean).filter(function(U){return U.contains(T.target)}),B=O.length>0?h(T,O[0]):!m.current.noIsolation;B&&T.cancelable&&T.preventDefault()}}},[]),p=g.useCallback(function(E,T,A,k){var O={name:E,delta:T,target:A,should:k,shadowParent:w5(A)};r.current.push(O),setTimeout(function(){r.current=r.current.filter(function(B){return B!==O})},1)},[]),b=g.useCallback(function(E){o.current=Si(E),s.current=void 0},[]),y=g.useCallback(function(E){p(E.type,Gv(E),E.target,h(E,n.lockRef.current))},[]),w=g.useCallback(function(E){p(E.type,Si(E),E.target,h(E,n.lockRef.current))},[]);g.useEffect(function(){return xo.push(u),n.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:w}),document.addEventListener("wheel",v,bo),document.addEventListener("touchmove",v,bo),document.addEventListener("touchstart",b,bo),function(){xo=xo.filter(function(E){return E!==u}),document.removeEventListener("wheel",v,bo),document.removeEventListener("touchmove",v,bo),document.removeEventListener("touchstart",b,bo)}},[]);var C=n.removeScrollBar,N=n.inert;return g.createElement(g.Fragment,null,N?g.createElement(u,{styles:b5(c)}):null,C?g.createElement(u5,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function w5(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const E5=FR(Ly,S5);var If=g.forwardRef(function(n,r){return g.createElement(lc,Pn({},n,{ref:r,sideCar:E5}))});If.classNames=lc.classNames;var N5=function(n){if(typeof document>"u")return null;var r=Array.isArray(n)?n[0]:n;return r.ownerDocument.body},So=new WeakMap,wi=new WeakMap,Ei={},Yd=0,qy=function(n){return n&&(n.host||qy(n.parentNode))},T5=function(n,r){return r.map(function(o){if(n.contains(o))return o;var s=qy(o);return s&&n.contains(s)?s:(console.error("aria-hidden",o,"in not contained inside",n,". Doing nothing"),null)}).filter(function(o){return!!o})},C5=function(n,r,o,s){var c=T5(r,Array.isArray(n)?n:[n]);Ei[o]||(Ei[o]=new WeakMap);var u=Ei[o],m=[],h=new Set,v=new Set(c),p=function(y){!y||h.has(y)||(h.add(y),p(y.parentNode))};c.forEach(p);var b=function(y){!y||v.has(y)||Array.prototype.forEach.call(y.children,function(w){if(h.has(w))b(w);else try{var C=w.getAttribute(s),N=C!==null&&C!=="false",E=(So.get(w)||0)+1,T=(u.get(w)||0)+1;So.set(w,E),u.set(w,T),m.push(w),E===1&&N&&wi.set(w,!0),T===1&&w.setAttribute(o,"true"),N||w.setAttribute(s,"true")}catch(A){console.error("aria-hidden: cannot operate on ",w,A)}})};return b(r),h.clear(),Yd++,function(){m.forEach(function(y){var w=So.get(y)-1,C=u.get(y)-1;So.set(y,w),u.set(y,C),w||(wi.has(y)||y.removeAttribute(s),wi.delete(y)),C||y.removeAttribute(o)}),Yd--,Yd||(So=new WeakMap,So=new WeakMap,wi=new WeakMap,Ei={})}},Vy=function(n,r,o){o===void 0&&(o="data-aria-hidden");var s=Array.from(Array.isArray(n)?n:[n]),c=N5(n);return c?(s.push.apply(s,Array.from(c.querySelectorAll("[aria-live], script"))),C5(s,c,o,"aria-hidden")):function(){return null}},sc="Dialog",[Yy,Iy]=Za(sc),[R5,_n]=Yy(sc),Gy=n=>{const{__scopeDialog:r,children:o,open:s,defaultOpen:c,onOpenChange:u,modal:m=!0}=n,h=g.useRef(null),v=g.useRef(null),[p,b]=_o({prop:s,defaultProp:c??!1,onChange:u,caller:sc});return f.jsx(R5,{scope:r,triggerRef:h,contentRef:v,contentId:Ya(),titleId:Ya(),descriptionId:Ya(),open:p,onOpenChange:b,onOpenToggle:g.useCallback(()=>b(y=>!y),[b]),modal:m,children:o})};Gy.displayName=sc;var Xy="DialogTrigger",Qy=g.forwardRef((n,r)=>{const{__scopeDialog:o,...s}=n,c=_n(Xy,o),u=We(r,c.triggerRef);return f.jsx(Ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":Qf(c.open),...s,ref:u,onClick:ze(n.onClick,c.onOpenToggle)})});Qy.displayName=Xy;var Gf="DialogPortal",[A5,Ky]=Yy(Gf,{forceMount:void 0}),Zy=n=>{const{__scopeDialog:r,forceMount:o,children:s,container:c}=n,u=_n(Gf,r);return f.jsx(A5,{scope:r,forceMount:o,children:g.Children.map(s,m=>f.jsx(Lo,{present:o||u.open,children:f.jsx(Yf,{asChild:!0,container:c,children:m})}))})};Zy.displayName=Gf;var Hi="DialogOverlay",Fy=g.forwardRef((n,r)=>{const o=Ky(Hi,n.__scopeDialog),{forceMount:s=o.forceMount,...c}=n,u=_n(Hi,n.__scopeDialog);return u.modal?f.jsx(Lo,{present:s||u.open,children:f.jsx(j5,{...c,ref:r})}):null});Fy.displayName=Hi;var k5=Fl("DialogOverlay.RemoveScroll"),j5=g.forwardRef((n,r)=>{const{__scopeDialog:o,...s}=n,c=_n(Hi,o);return f.jsx(If,{as:k5,allowPinchZoom:!0,shards:[c.contentRef],children:f.jsx(Ue.div,{"data-state":Qf(c.open),...s,ref:r,style:{pointerEvents:"auto",...s.style}})})}),Nr="DialogContent",Wy=g.forwardRef((n,r)=>{const o=Ky(Nr,n.__scopeDialog),{forceMount:s=o.forceMount,...c}=n,u=_n(Nr,n.__scopeDialog);return f.jsx(Lo,{present:s||u.open,children:u.modal?f.jsx(_5,{...c,ref:r}):f.jsx(O5,{...c,ref:r})})});Wy.displayName=Nr;var _5=g.forwardRef((n,r)=>{const o=_n(Nr,n.__scopeDialog),s=g.useRef(null),c=We(r,o.contentRef,s);return g.useEffect(()=>{const u=s.current;if(u)return Vy(u)},[]),f.jsx(Jy,{...n,ref:c,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ze(n.onCloseAutoFocus,u=>{u.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:ze(n.onPointerDownOutside,u=>{const m=u.detail.originalEvent,h=m.button===0&&m.ctrlKey===!0;(m.button===2||h)&&u.preventDefault()}),onFocusOutside:ze(n.onFocusOutside,u=>u.preventDefault())})}),O5=g.forwardRef((n,r)=>{const o=_n(Nr,n.__scopeDialog),s=g.useRef(!1),c=g.useRef(!1);return f.jsx(Jy,{...n,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{n.onCloseAutoFocus?.(u),u.defaultPrevented||(s.current||o.triggerRef.current?.focus(),u.preventDefault()),s.current=!1,c.current=!1},onInteractOutside:u=>{n.onInteractOutside?.(u),u.defaultPrevented||(s.current=!0,u.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const m=u.target;o.triggerRef.current?.contains(m)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&c.current&&u.preventDefault()}})}),Jy=g.forwardRef((n,r)=>{const{__scopeDialog:o,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:u,...m}=n,h=_n(Nr,o),v=g.useRef(null),p=We(r,v);return Dy(),f.jsxs(f.Fragment,{children:[f.jsx(Vf,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:c,onUnmountAutoFocus:u,children:f.jsx(qf,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Qf(h.open),...m,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(D5,{titleId:h.titleId}),f.jsx(U5,{contentRef:v,descriptionId:h.descriptionId})]})]})}),Xf="DialogTitle",eb=g.forwardRef((n,r)=>{const{__scopeDialog:o,...s}=n,c=_n(Xf,o);return f.jsx(Ue.h2,{id:c.titleId,...s,ref:r})});eb.displayName=Xf;var tb="DialogDescription",nb=g.forwardRef((n,r)=>{const{__scopeDialog:o,...s}=n,c=_n(tb,o);return f.jsx(Ue.p,{id:c.descriptionId,...s,ref:r})});nb.displayName=tb;var ab="DialogClose",rb=g.forwardRef((n,r)=>{const{__scopeDialog:o,...s}=n,c=_n(ab,o);return f.jsx(Ue.button,{type:"button",...s,ref:r,onClick:ze(n.onClick,()=>c.onOpenChange(!1))})});rb.displayName=ab;function Qf(n){return n?"open":"closed"}var ob="DialogTitleWarning",[M5,lb]=cR(ob,{contentName:Nr,titleName:Xf,docsSlug:"dialog"}),D5=({titleId:n})=>{const r=lb(ob),o=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
|
|
337
|
+
|
|
338
|
+
If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
339
|
+
|
|
340
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return g.useEffect(()=>{n&&(document.getElementById(n)||console.error(o))},[o,n]),null},z5="DialogDescriptionWarning",U5=({contentRef:n,descriptionId:r})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${lb(z5).contentName}}.`;return g.useEffect(()=>{const c=n.current?.getAttribute("aria-describedby");r&&c&&(document.getElementById(r)||console.warn(s))},[s,n,r]),null},sb=Gy,ib=Qy,cb=Zy,Kf=Fy,Zf=Wy,Ff=eb,Wf=nb,ic=rb;const L5=sb,B5=ib,H5=cb,jO=ic,ub=g.forwardRef(({className:n,...r},o)=>f.jsx(Kf,{ref:o,className:ae("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),...r}));ub.displayName=Kf.displayName;const db=g.forwardRef(({className:n,children:r,...o},s)=>f.jsxs(H5,{children:[f.jsx(ub,{}),f.jsxs(Zf,{ref:s,className:ae("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-3 rounded-sm border bg-background p-4 shadow-[0_24px_84px_-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:[r,f.jsxs(ic,{className:"absolute right-2.5 top-2.5 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(dy,{className:"h-3.5 w-3.5"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));db.displayName=Zf.displayName;const fb=({className:n,...r})=>f.jsx("div",{className:ae("flex flex-col space-y-1.5 text-center sm:text-left",n),...r});fb.displayName="DialogHeader";const P5=({className:n,...r})=>f.jsx("div",{className:ae("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...r});P5.displayName="DialogFooter";const mb=g.forwardRef(({className:n,...r},o)=>f.jsx(Ff,{ref:o,className:ae("text-sm font-semibold leading-none tracking-tight",n),...r}));mb.displayName=Ff.displayName;const hb=g.forwardRef(({className:n,...r},o)=>f.jsx(Wf,{ref:o,className:ae("text-[11px] text-muted-foreground",n),...r}));hb.displayName=Wf.displayName;function $5({children:n,open:r,onOpenChange:o,showTrigger:s=!0}){const[c,u]=g.useState(!1),m=r??c,h=g.useCallback(v=>{v&&iR("settings.opened",{surface:"settings"}),r===void 0&&u(v),o?.(v)},[r,o]);return f.jsxs(L5,{open:m,onOpenChange:h,children:[s&&f.jsx(B5,{asChild:!0,children:f.jsx(Ct,{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(ET,{className:"h-4 w-4"})})}),f.jsxs(db,{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-sm border-border/70 bg-background/96 p-0 shadow-[0_28px_90px_-58px_rgba(15,23,42,0.75)] backdrop-blur-xl",children:[f.jsxs(fb,{className:"shrink-0 border-b border-border/60 px-3 py-1.5 sm:px-3.5",children:[f.jsxs(mb,{className:"flex items-center gap-1.5 text-[11px]",children:[f.jsx(lT,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),f.jsx(hb,{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 Qv(n,[r,o]){return Math.min(o,Math.max(r,n))}function pb(n){const r=n+"CollectionProvider",[o,s]=Za(r),[c,u]=o(r,{collectionRef:{current:null},itemMap:new Map}),m=E=>{const{scope:T,children:A}=E,k=re.useRef(null),O=re.useRef(new Map).current;return f.jsx(c,{scope:T,itemMap:O,collectionRef:k,children:A})};m.displayName=r;const h=n+"CollectionSlot",v=Fl(h),p=re.forwardRef((E,T)=>{const{scope:A,children:k}=E,O=u(h,A),B=We(T,O.collectionRef);return f.jsx(v,{ref:B,children:k})});p.displayName=h;const b=n+"CollectionItemSlot",y="data-radix-collection-item",w=Fl(b),C=re.forwardRef((E,T)=>{const{scope:A,children:k,...O}=E,B=re.useRef(null),U=We(T,B),Z=u(b,A);return re.useEffect(()=>(Z.itemMap.set(B,{ref:B,...O}),()=>{Z.itemMap.delete(B)})),f.jsx(w,{[y]:"",ref:U,children:k})});C.displayName=b;function N(E){const T=u(n+"CollectionConsumer",E);return re.useCallback(()=>{const k=T.collectionRef.current;if(!k)return[];const O=Array.from(k.querySelectorAll(`[${y}]`));return Array.from(T.itemMap.values()).sort((Z,V)=>O.indexOf(Z.ref.current)-O.indexOf(V.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:m,Slot:p,ItemSlot:C},N,s]}var q5=g.createContext(void 0);function Jf(n){const r=g.useContext(q5);return n||r||"ltr"}const V5=["top","right","bottom","left"],Xa=Math.min,Jt=Math.max,Pi=Math.round,Ni=Math.floor,qn=n=>({x:n,y:n}),Y5={left:"right",right:"left",bottom:"top",top:"bottom"};function df(n,r,o){return Jt(n,Xa(r,o))}function da(n,r){return typeof n=="function"?n(r):n}function fa(n){return n.split("-")[0]}function Bo(n){return n.split("-")[1]}function em(n){return n==="x"?"y":"x"}function tm(n){return n==="y"?"height":"width"}function $n(n){const r=n[0];return r==="t"||r==="b"?"y":"x"}function nm(n){return em($n(n))}function I5(n,r,o){o===void 0&&(o=!1);const s=Bo(n),c=nm(n),u=tm(c);let m=c==="x"?s===(o?"end":"start")?"right":"left":s==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(m=$i(m)),[m,$i(m)]}function G5(n){const r=$i(n);return[ff(n),r,ff(r)]}function ff(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Kv=["left","right"],Zv=["right","left"],X5=["top","bottom"],Q5=["bottom","top"];function K5(n,r,o){switch(n){case"top":case"bottom":return o?r?Zv:Kv:r?Kv:Zv;case"left":case"right":return r?X5:Q5;default:return[]}}function Z5(n,r,o,s){const c=Bo(n);let u=K5(fa(n),o==="start",s);return c&&(u=u.map(m=>m+"-"+c),r&&(u=u.concat(u.map(ff)))),u}function $i(n){const r=fa(n);return Y5[r]+n.slice(r.length)}function F5(n){return{top:0,right:0,bottom:0,left:0,...n}}function gb(n){return typeof n!="number"?F5(n):{top:n,right:n,bottom:n,left:n}}function qi(n){const{x:r,y:o,width:s,height:c}=n;return{width:s,height:c,top:o,left:r,right:r+s,bottom:o+c,x:r,y:o}}function Fv(n,r,o){let{reference:s,floating:c}=n;const u=$n(r),m=nm(r),h=tm(m),v=fa(r),p=u==="y",b=s.x+s.width/2-c.width/2,y=s.y+s.height/2-c.height/2,w=s[h]/2-c[h]/2;let C;switch(v){case"top":C={x:b,y:s.y-c.height};break;case"bottom":C={x:b,y:s.y+s.height};break;case"right":C={x:s.x+s.width,y};break;case"left":C={x:s.x-c.width,y};break;default:C={x:s.x,y:s.y}}switch(Bo(r)){case"start":C[m]-=w*(o&&p?-1:1);break;case"end":C[m]+=w*(o&&p?-1:1);break}return C}async function W5(n,r){var o;r===void 0&&(r={});const{x:s,y:c,platform:u,rects:m,elements:h,strategy:v}=n,{boundary:p="clippingAncestors",rootBoundary:b="viewport",elementContext:y="floating",altBoundary:w=!1,padding:C=0}=da(r,n),N=gb(C),T=h[w?y==="floating"?"reference":"floating":y],A=qi(await u.getClippingRect({element:(o=await(u.isElement==null?void 0:u.isElement(T)))==null||o?T:T.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(h.floating)),boundary:p,rootBoundary:b,strategy:v})),k=y==="floating"?{x:s,y:c,width:m.floating.width,height:m.floating.height}:m.reference,O=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h.floating)),B=await(u.isElement==null?void 0:u.isElement(O))?await(u.getScale==null?void 0:u.getScale(O))||{x:1,y:1}:{x:1,y:1},U=qi(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:k,offsetParent:O,strategy:v}):k);return{top:(A.top-U.top+N.top)/B.y,bottom:(U.bottom-A.bottom+N.bottom)/B.y,left:(A.left-U.left+N.left)/B.x,right:(U.right-A.right+N.right)/B.x}}const J5=50,eA=async(n,r,o)=>{const{placement:s="bottom",strategy:c="absolute",middleware:u=[],platform:m}=o,h=m.detectOverflow?m:{...m,detectOverflow:W5},v=await(m.isRTL==null?void 0:m.isRTL(r));let p=await m.getElementRects({reference:n,floating:r,strategy:c}),{x:b,y}=Fv(p,s,v),w=s,C=0;const N={};for(let E=0;E<u.length;E++){const T=u[E];if(!T)continue;const{name:A,fn:k}=T,{x:O,y:B,data:U,reset:Z}=await k({x:b,y,initialPlacement:s,placement:w,strategy:c,middlewareData:N,rects:p,platform:h,elements:{reference:n,floating:r}});b=O??b,y=B??y,N[A]={...N[A],...U},Z&&C<J5&&(C++,typeof Z=="object"&&(Z.placement&&(w=Z.placement),Z.rects&&(p=Z.rects===!0?await m.getElementRects({reference:n,floating:r,strategy:c}):Z.rects),{x:b,y}=Fv(p,w,v)),E=-1)}return{x:b,y,placement:w,strategy:c,middlewareData:N}},tA=n=>({name:"arrow",options:n,async fn(r){const{x:o,y:s,placement:c,rects:u,platform:m,elements:h,middlewareData:v}=r,{element:p,padding:b=0}=da(n,r)||{};if(p==null)return{};const y=gb(b),w={x:o,y:s},C=nm(c),N=tm(C),E=await m.getDimensions(p),T=C==="y",A=T?"top":"left",k=T?"bottom":"right",O=T?"clientHeight":"clientWidth",B=u.reference[N]+u.reference[C]-w[C]-u.floating[N],U=w[C]-u.reference[C],Z=await(m.getOffsetParent==null?void 0:m.getOffsetParent(p));let V=Z?Z[O]:0;(!V||!await(m.isElement==null?void 0:m.isElement(Z)))&&(V=h.floating[O]||u.floating[N]);const $=B/2-U/2,G=V/2-E[N]/2-1,ce=Xa(y[A],G),ue=Xa(y[k],G),W=ce,ee=V-E[N]-ue,le=V/2-E[N]/2+$,J=df(W,le,ee),_=!v.arrow&&Bo(c)!=null&&le!==J&&u.reference[N]/2-(le<W?ce:ue)-E[N]/2<0,P=_?le<W?le-W:le-ee:0;return{[C]:w[C]+P,data:{[C]:J,centerOffset:le-J-P,..._&&{alignmentOffset:P}},reset:_}}}),nA=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var o,s;const{placement:c,middlewareData:u,rects:m,initialPlacement:h,platform:v,elements:p}=r,{mainAxis:b=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:E=!0,...T}=da(n,r);if((o=u.arrow)!=null&&o.alignmentOffset)return{};const A=fa(c),k=$n(h),O=fa(h)===h,B=await(v.isRTL==null?void 0:v.isRTL(p.floating)),U=w||(O||!E?[$i(h)]:G5(h)),Z=N!=="none";!w&&Z&&U.push(...Z5(h,E,N,B));const V=[h,...U],$=await v.detectOverflow(r,T),G=[];let ce=((s=u.flip)==null?void 0:s.overflows)||[];if(b&&G.push($[A]),y){const le=I5(c,m,B);G.push($[le[0]],$[le[1]])}if(ce=[...ce,{placement:c,overflows:G}],!G.every(le=>le<=0)){var ue,W;const le=(((ue=u.flip)==null?void 0:ue.index)||0)+1,J=V[le];if(J&&(!(y==="alignment"?k!==$n(J):!1)||ce.every(X=>$n(X.placement)===k?X.overflows[0]>0:!0)))return{data:{index:le,overflows:ce},reset:{placement:J}};let _=(W=ce.filter(P=>P.overflows[0]<=0).sort((P,X)=>P.overflows[1]-X.overflows[1])[0])==null?void 0:W.placement;if(!_)switch(C){case"bestFit":{var ee;const P=(ee=ce.filter(X=>{if(Z){const fe=$n(X.placement);return fe===k||fe==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(fe=>fe>0).reduce((fe,R)=>fe+R,0)]).sort((X,fe)=>X[1]-fe[1])[0])==null?void 0:ee[0];P&&(_=P);break}case"initialPlacement":_=h;break}if(c!==_)return{reset:{placement:_}}}return{}}}};function Wv(n,r){return{top:n.top-r.height,right:n.right-r.width,bottom:n.bottom-r.height,left:n.left-r.width}}function Jv(n){return V5.some(r=>n[r]>=0)}const aA=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(r){const{rects:o,platform:s}=r,{strategy:c="referenceHidden",...u}=da(n,r);switch(c){case"referenceHidden":{const m=await s.detectOverflow(r,{...u,elementContext:"reference"}),h=Wv(m,o.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Jv(h)}}}case"escaped":{const m=await s.detectOverflow(r,{...u,altBoundary:!0}),h=Wv(m,o.floating);return{data:{escapedOffsets:h,escaped:Jv(h)}}}default:return{}}}}},vb=new Set(["left","top"]);async function rA(n,r){const{placement:o,platform:s,elements:c}=n,u=await(s.isRTL==null?void 0:s.isRTL(c.floating)),m=fa(o),h=Bo(o),v=$n(o)==="y",p=vb.has(m)?-1:1,b=u&&v?-1:1,y=da(r,n);let{mainAxis:w,crossAxis:C,alignmentAxis:N}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return h&&typeof N=="number"&&(C=h==="end"?N*-1:N),v?{x:C*b,y:w*p}:{x:w*p,y:C*b}}const oA=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var o,s;const{x:c,y:u,placement:m,middlewareData:h}=r,v=await rA(r,n);return m===((o=h.offset)==null?void 0:o.placement)&&(s=h.arrow)!=null&&s.alignmentOffset?{}:{x:c+v.x,y:u+v.y,data:{...v,placement:m}}}}},lA=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:o,y:s,placement:c,platform:u}=r,{mainAxis:m=!0,crossAxis:h=!1,limiter:v={fn:A=>{let{x:k,y:O}=A;return{x:k,y:O}}},...p}=da(n,r),b={x:o,y:s},y=await u.detectOverflow(r,p),w=$n(fa(c)),C=em(w);let N=b[C],E=b[w];if(m){const A=C==="y"?"top":"left",k=C==="y"?"bottom":"right",O=N+y[A],B=N-y[k];N=df(O,N,B)}if(h){const A=w==="y"?"top":"left",k=w==="y"?"bottom":"right",O=E+y[A],B=E-y[k];E=df(O,E,B)}const T=v.fn({...r,[C]:N,[w]:E});return{...T,data:{x:T.x-o,y:T.y-s,enabled:{[C]:m,[w]:h}}}}}},sA=function(n){return n===void 0&&(n={}),{options:n,fn(r){const{x:o,y:s,placement:c,rects:u,middlewareData:m}=r,{offset:h=0,mainAxis:v=!0,crossAxis:p=!0}=da(n,r),b={x:o,y:s},y=$n(c),w=em(y);let C=b[w],N=b[y];const E=da(h,r),T=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(v){const O=w==="y"?"height":"width",B=u.reference[w]-u.floating[O]+T.mainAxis,U=u.reference[w]+u.reference[O]-T.mainAxis;C<B?C=B:C>U&&(C=U)}if(p){var A,k;const O=w==="y"?"width":"height",B=vb.has(fa(c)),U=u.reference[y]-u.floating[O]+(B&&((A=m.offset)==null?void 0:A[y])||0)+(B?0:T.crossAxis),Z=u.reference[y]+u.reference[O]+(B?0:((k=m.offset)==null?void 0:k[y])||0)-(B?T.crossAxis:0);N<U?N=U:N>Z&&(N=Z)}return{[w]:C,[y]:N}}}},iA=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){var o,s;const{placement:c,rects:u,platform:m,elements:h}=r,{apply:v=()=>{},...p}=da(n,r),b=await m.detectOverflow(r,p),y=fa(c),w=Bo(c),C=$n(c)==="y",{width:N,height:E}=u.floating;let T,A;y==="top"||y==="bottom"?(T=y,A=w===(await(m.isRTL==null?void 0:m.isRTL(h.floating))?"start":"end")?"left":"right"):(A=y,T=w==="end"?"top":"bottom");const k=E-b.top-b.bottom,O=N-b.left-b.right,B=Xa(E-b[T],k),U=Xa(N-b[A],O),Z=!r.middlewareData.shift;let V=B,$=U;if((o=r.middlewareData.shift)!=null&&o.enabled.x&&($=O),(s=r.middlewareData.shift)!=null&&s.enabled.y&&(V=k),Z&&!w){const ce=Jt(b.left,0),ue=Jt(b.right,0),W=Jt(b.top,0),ee=Jt(b.bottom,0);C?$=N-2*(ce!==0||ue!==0?ce+ue:Jt(b.left,b.right)):V=E-2*(W!==0||ee!==0?W+ee:Jt(b.top,b.bottom))}await v({...r,availableWidth:$,availableHeight:V});const G=await m.getDimensions(h.floating);return N!==G.width||E!==G.height?{reset:{rects:!0}}:{}}}};function cc(){return typeof window<"u"}function Ho(n){return yb(n)?(n.nodeName||"").toLowerCase():"#document"}function en(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function Vn(n){var r;return(r=(yb(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function yb(n){return cc()?n instanceof Node||n instanceof en(n).Node:!1}function An(n){return cc()?n instanceof Element||n instanceof en(n).Element:!1}function ma(n){return cc()?n instanceof HTMLElement||n instanceof en(n).HTMLElement:!1}function e0(n){return!cc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof en(n).ShadowRoot}function ns(n){const{overflow:r,overflowX:o,overflowY:s,display:c}=kn(n);return/auto|scroll|overlay|hidden|clip/.test(r+s+o)&&c!=="inline"&&c!=="contents"}function cA(n){return/^(table|td|th)$/.test(Ho(n))}function uc(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const uA=/transform|translate|scale|rotate|perspective|filter/,dA=/paint|layout|strict|content/,Sr=n=>!!n&&n!=="none";let Id;function am(n){const r=An(n)?kn(n):n;return Sr(r.transform)||Sr(r.translate)||Sr(r.scale)||Sr(r.rotate)||Sr(r.perspective)||!rm()&&(Sr(r.backdropFilter)||Sr(r.filter))||uA.test(r.willChange||"")||dA.test(r.contain||"")}function fA(n){let r=Qa(n);for(;ma(r)&&!Oo(r);){if(am(r))return r;if(uc(r))return null;r=Qa(r)}return null}function rm(){return Id==null&&(Id=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Id}function Oo(n){return/^(html|body|#document)$/.test(Ho(n))}function kn(n){return en(n).getComputedStyle(n)}function dc(n){return An(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Qa(n){if(Ho(n)==="html")return n;const r=n.assignedSlot||n.parentNode||e0(n)&&n.host||Vn(n);return e0(r)?r.host:r}function bb(n){const r=Qa(n);return Oo(r)?n.ownerDocument?n.ownerDocument.body:n.body:ma(r)&&ns(r)?r:bb(r)}function Wl(n,r,o){var s;r===void 0&&(r=[]),o===void 0&&(o=!0);const c=bb(n),u=c===((s=n.ownerDocument)==null?void 0:s.body),m=en(c);if(u){const h=mf(m);return r.concat(m,m.visualViewport||[],ns(c)?c:[],h&&o?Wl(h):[])}else return r.concat(c,Wl(c,[],o))}function mf(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function xb(n){const r=kn(n);let o=parseFloat(r.width)||0,s=parseFloat(r.height)||0;const c=ma(n),u=c?n.offsetWidth:o,m=c?n.offsetHeight:s,h=Pi(o)!==u||Pi(s)!==m;return h&&(o=u,s=m),{width:o,height:s,$:h}}function om(n){return An(n)?n:n.contextElement}function ko(n){const r=om(n);if(!ma(r))return qn(1);const o=r.getBoundingClientRect(),{width:s,height:c,$:u}=xb(r);let m=(u?Pi(o.width):o.width)/s,h=(u?Pi(o.height):o.height)/c;return(!m||!Number.isFinite(m))&&(m=1),(!h||!Number.isFinite(h))&&(h=1),{x:m,y:h}}const mA=qn(0);function Sb(n){const r=en(n);return!rm()||!r.visualViewport?mA:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function hA(n,r,o){return r===void 0&&(r=!1),!o||r&&o!==en(n)?!1:r}function Tr(n,r,o,s){r===void 0&&(r=!1),o===void 0&&(o=!1);const c=n.getBoundingClientRect(),u=om(n);let m=qn(1);r&&(s?An(s)&&(m=ko(s)):m=ko(n));const h=hA(u,o,s)?Sb(u):qn(0);let v=(c.left+h.x)/m.x,p=(c.top+h.y)/m.y,b=c.width/m.x,y=c.height/m.y;if(u){const w=en(u),C=s&&An(s)?en(s):s;let N=w,E=mf(N);for(;E&&s&&C!==N;){const T=ko(E),A=E.getBoundingClientRect(),k=kn(E),O=A.left+(E.clientLeft+parseFloat(k.paddingLeft))*T.x,B=A.top+(E.clientTop+parseFloat(k.paddingTop))*T.y;v*=T.x,p*=T.y,b*=T.x,y*=T.y,v+=O,p+=B,N=en(E),E=mf(N)}}return qi({width:b,height:y,x:v,y:p})}function fc(n,r){const o=dc(n).scrollLeft;return r?r.left+o:Tr(Vn(n)).left+o}function wb(n,r){const o=n.getBoundingClientRect(),s=o.left+r.scrollLeft-fc(n,o),c=o.top+r.scrollTop;return{x:s,y:c}}function pA(n){let{elements:r,rect:o,offsetParent:s,strategy:c}=n;const u=c==="fixed",m=Vn(s),h=r?uc(r.floating):!1;if(s===m||h&&u)return o;let v={scrollLeft:0,scrollTop:0},p=qn(1);const b=qn(0),y=ma(s);if((y||!y&&!u)&&((Ho(s)!=="body"||ns(m))&&(v=dc(s)),y)){const C=Tr(s);p=ko(s),b.x=C.x+s.clientLeft,b.y=C.y+s.clientTop}const w=m&&!y&&!u?wb(m,v):qn(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-v.scrollLeft*p.x+b.x+w.x,y:o.y*p.y-v.scrollTop*p.y+b.y+w.y}}function gA(n){return Array.from(n.getClientRects())}function vA(n){const r=Vn(n),o=dc(n),s=n.ownerDocument.body,c=Jt(r.scrollWidth,r.clientWidth,s.scrollWidth,s.clientWidth),u=Jt(r.scrollHeight,r.clientHeight,s.scrollHeight,s.clientHeight);let m=-o.scrollLeft+fc(n);const h=-o.scrollTop;return kn(s).direction==="rtl"&&(m+=Jt(r.clientWidth,s.clientWidth)-c),{width:c,height:u,x:m,y:h}}const t0=25;function yA(n,r){const o=en(n),s=Vn(n),c=o.visualViewport;let u=s.clientWidth,m=s.clientHeight,h=0,v=0;if(c){u=c.width,m=c.height;const b=rm();(!b||b&&r==="fixed")&&(h=c.offsetLeft,v=c.offsetTop)}const p=fc(s);if(p<=0){const b=s.ownerDocument,y=b.body,w=getComputedStyle(y),C=b.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,N=Math.abs(s.clientWidth-y.clientWidth-C);N<=t0&&(u-=N)}else p<=t0&&(u+=p);return{width:u,height:m,x:h,y:v}}function bA(n,r){const o=Tr(n,!0,r==="fixed"),s=o.top+n.clientTop,c=o.left+n.clientLeft,u=ma(n)?ko(n):qn(1),m=n.clientWidth*u.x,h=n.clientHeight*u.y,v=c*u.x,p=s*u.y;return{width:m,height:h,x:v,y:p}}function n0(n,r,o){let s;if(r==="viewport")s=yA(n,o);else if(r==="document")s=vA(Vn(n));else if(An(r))s=bA(r,o);else{const c=Sb(n);s={x:r.x-c.x,y:r.y-c.y,width:r.width,height:r.height}}return qi(s)}function Eb(n,r){const o=Qa(n);return o===r||!An(o)||Oo(o)?!1:kn(o).position==="fixed"||Eb(o,r)}function xA(n,r){const o=r.get(n);if(o)return o;let s=Wl(n,[],!1).filter(h=>An(h)&&Ho(h)!=="body"),c=null;const u=kn(n).position==="fixed";let m=u?Qa(n):n;for(;An(m)&&!Oo(m);){const h=kn(m),v=am(m);!v&&h.position==="fixed"&&(c=null),(u?!v&&!c:!v&&h.position==="static"&&!!c&&(c.position==="absolute"||c.position==="fixed")||ns(m)&&!v&&Eb(n,m))?s=s.filter(b=>b!==m):c=h,m=Qa(m)}return r.set(n,s),s}function SA(n){let{element:r,boundary:o,rootBoundary:s,strategy:c}=n;const m=[...o==="clippingAncestors"?uc(r)?[]:xA(r,this._c):[].concat(o),s],h=n0(r,m[0],c);let v=h.top,p=h.right,b=h.bottom,y=h.left;for(let w=1;w<m.length;w++){const C=n0(r,m[w],c);v=Jt(C.top,v),p=Xa(C.right,p),b=Xa(C.bottom,b),y=Jt(C.left,y)}return{width:p-y,height:b-v,x:y,y:v}}function wA(n){const{width:r,height:o}=xb(n);return{width:r,height:o}}function EA(n,r,o){const s=ma(r),c=Vn(r),u=o==="fixed",m=Tr(n,!0,u,r);let h={scrollLeft:0,scrollTop:0};const v=qn(0);function p(){v.x=fc(c)}if(s||!s&&!u)if((Ho(r)!=="body"||ns(c))&&(h=dc(r)),s){const C=Tr(r,!0,u,r);v.x=C.x+r.clientLeft,v.y=C.y+r.clientTop}else c&&p();u&&!s&&c&&p();const b=c&&!s&&!u?wb(c,h):qn(0),y=m.left+h.scrollLeft-v.x-b.x,w=m.top+h.scrollTop-v.y-b.y;return{x:y,y:w,width:m.width,height:m.height}}function Gd(n){return kn(n).position==="static"}function a0(n,r){if(!ma(n)||kn(n).position==="fixed")return null;if(r)return r(n);let o=n.offsetParent;return Vn(n)===o&&(o=o.ownerDocument.body),o}function Nb(n,r){const o=en(n);if(uc(n))return o;if(!ma(n)){let c=Qa(n);for(;c&&!Oo(c);){if(An(c)&&!Gd(c))return c;c=Qa(c)}return o}let s=a0(n,r);for(;s&&cA(s)&&Gd(s);)s=a0(s,r);return s&&Oo(s)&&Gd(s)&&!am(s)?o:s||fA(n)||o}const NA=async function(n){const r=this.getOffsetParent||Nb,o=this.getDimensions,s=await o(n.floating);return{reference:EA(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function TA(n){return kn(n).direction==="rtl"}const CA={convertOffsetParentRelativeRectToViewportRelativeRect:pA,getDocumentElement:Vn,getClippingRect:SA,getOffsetParent:Nb,getElementRects:NA,getClientRects:gA,getDimensions:wA,getScale:ko,isElement:An,isRTL:TA};function Tb(n,r){return n.x===r.x&&n.y===r.y&&n.width===r.width&&n.height===r.height}function RA(n,r){let o=null,s;const c=Vn(n);function u(){var h;clearTimeout(s),(h=o)==null||h.disconnect(),o=null}function m(h,v){h===void 0&&(h=!1),v===void 0&&(v=1),u();const p=n.getBoundingClientRect(),{left:b,top:y,width:w,height:C}=p;if(h||r(),!w||!C)return;const N=Ni(y),E=Ni(c.clientWidth-(b+w)),T=Ni(c.clientHeight-(y+C)),A=Ni(b),O={rootMargin:-N+"px "+-E+"px "+-T+"px "+-A+"px",threshold:Jt(0,Xa(1,v))||1};let B=!0;function U(Z){const V=Z[0].intersectionRatio;if(V!==v){if(!B)return m();V?m(!1,V):s=setTimeout(()=>{m(!1,1e-7)},1e3)}V===1&&!Tb(p,n.getBoundingClientRect())&&m(),B=!1}try{o=new IntersectionObserver(U,{...O,root:c.ownerDocument})}catch{o=new IntersectionObserver(U,O)}o.observe(n)}return m(!0),u}function AA(n,r,o,s){s===void 0&&(s={});const{ancestorScroll:c=!0,ancestorResize:u=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:v=!1}=s,p=om(n),b=c||u?[...p?Wl(p):[],...r?Wl(r):[]]:[];b.forEach(A=>{c&&A.addEventListener("scroll",o,{passive:!0}),u&&A.addEventListener("resize",o)});const y=p&&h?RA(p,o):null;let w=-1,C=null;m&&(C=new ResizeObserver(A=>{let[k]=A;k&&k.target===p&&C&&r&&(C.unobserve(r),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var O;(O=C)==null||O.observe(r)})),o()}),p&&!v&&C.observe(p),r&&C.observe(r));let N,E=v?Tr(n):null;v&&T();function T(){const A=Tr(n);E&&!Tb(E,A)&&o(),E=A,N=requestAnimationFrame(T)}return o(),()=>{var A;b.forEach(k=>{c&&k.removeEventListener("scroll",o),u&&k.removeEventListener("resize",o)}),y?.(),(A=C)==null||A.disconnect(),C=null,v&&cancelAnimationFrame(N)}}const kA=oA,jA=lA,_A=nA,OA=iA,MA=aA,r0=tA,DA=sA,zA=(n,r,o)=>{const s=new Map,c={platform:CA,...o},u={...c.platform,_c:s};return eA(n,r,{...c,platform:u})};var UA=typeof document<"u",LA=function(){},ji=UA?g.useLayoutEffect:LA;function Vi(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(typeof n=="function"&&n.toString()===r.toString())return!0;let o,s,c;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(o=n.length,o!==r.length)return!1;for(s=o;s--!==0;)if(!Vi(n[s],r[s]))return!1;return!0}if(c=Object.keys(n),o=c.length,o!==Object.keys(r).length)return!1;for(s=o;s--!==0;)if(!{}.hasOwnProperty.call(r,c[s]))return!1;for(s=o;s--!==0;){const u=c[s];if(!(u==="_owner"&&n.$$typeof)&&!Vi(n[u],r[u]))return!1}return!0}return n!==n&&r!==r}function Cb(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function o0(n,r){const o=Cb(n);return Math.round(r*o)/o}function Xd(n){const r=g.useRef(n);return ji(()=>{r.current=n}),r}function BA(n){n===void 0&&(n={});const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:c,elements:{reference:u,floating:m}={},transform:h=!0,whileElementsMounted:v,open:p}=n,[b,y]=g.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[w,C]=g.useState(s);Vi(w,s)||C(s);const[N,E]=g.useState(null),[T,A]=g.useState(null),k=g.useCallback(X=>{X!==Z.current&&(Z.current=X,E(X))},[]),O=g.useCallback(X=>{X!==V.current&&(V.current=X,A(X))},[]),B=u||N,U=m||T,Z=g.useRef(null),V=g.useRef(null),$=g.useRef(b),G=v!=null,ce=Xd(v),ue=Xd(c),W=Xd(p),ee=g.useCallback(()=>{if(!Z.current||!V.current)return;const X={placement:r,strategy:o,middleware:w};ue.current&&(X.platform=ue.current),zA(Z.current,V.current,X).then(fe=>{const R={...fe,isPositioned:W.current!==!1};le.current&&!Vi($.current,R)&&($.current=R,ts.flushSync(()=>{y(R)}))})},[w,r,o,ue,W]);ji(()=>{p===!1&&$.current.isPositioned&&($.current.isPositioned=!1,y(X=>({...X,isPositioned:!1})))},[p]);const le=g.useRef(!1);ji(()=>(le.current=!0,()=>{le.current=!1}),[]),ji(()=>{if(B&&(Z.current=B),U&&(V.current=U),B&&U){if(ce.current)return ce.current(B,U,ee);ee()}},[B,U,ee,ce,G]);const J=g.useMemo(()=>({reference:Z,floating:V,setReference:k,setFloating:O}),[k,O]),_=g.useMemo(()=>({reference:B,floating:U}),[B,U]),P=g.useMemo(()=>{const X={position:o,left:0,top:0};if(!_.floating)return X;const fe=o0(_.floating,b.x),R=o0(_.floating,b.y);return h?{...X,transform:"translate("+fe+"px, "+R+"px)",...Cb(_.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:fe,top:R}},[o,h,_.floating,b.x,b.y]);return g.useMemo(()=>({...b,update:ee,refs:J,elements:_,floatingStyles:P}),[b,ee,J,_,P])}const HA=n=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:n,fn(o){const{element:s,padding:c}=typeof n=="function"?n(o):n;return s&&r(s)?s.current!=null?r0({element:s.current,padding:c}).fn(o):{}:s?r0({element:s,padding:c}).fn(o):{}}}},PA=(n,r)=>{const o=kA(n);return{name:o.name,fn:o.fn,options:[n,r]}},$A=(n,r)=>{const o=jA(n);return{name:o.name,fn:o.fn,options:[n,r]}},qA=(n,r)=>({fn:DA(n).fn,options:[n,r]}),VA=(n,r)=>{const o=_A(n);return{name:o.name,fn:o.fn,options:[n,r]}},YA=(n,r)=>{const o=OA(n);return{name:o.name,fn:o.fn,options:[n,r]}},IA=(n,r)=>{const o=MA(n);return{name:o.name,fn:o.fn,options:[n,r]}},GA=(n,r)=>{const o=HA(n);return{name:o.name,fn:o.fn,options:[n,r]}};var XA="Arrow",Rb=g.forwardRef((n,r)=>{const{children:o,width:s=10,height:c=5,...u}=n;return f.jsx(Ue.svg,{...u,ref:r,width:s,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?o:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Rb.displayName=XA;var QA=Rb;function Ab(n){const[r,o]=g.useState(void 0);return Dt(()=>{if(n){o({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const u=c[0];let m,h;if("borderBoxSize"in u){const v=u.borderBoxSize,p=Array.isArray(v)?v[0]:v;m=p.inlineSize,h=p.blockSize}else m=n.offsetWidth,h=n.offsetHeight;o({width:m,height:h})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else o(void 0)},[n]),r}var lm="Popper",[kb,jb]=Za(lm),[KA,_b]=kb(lm),Ob=n=>{const{__scopePopper:r,children:o}=n,[s,c]=g.useState(null);return f.jsx(KA,{scope:r,anchor:s,onAnchorChange:c,children:o})};Ob.displayName=lm;var Mb="PopperAnchor",Db=g.forwardRef((n,r)=>{const{__scopePopper:o,virtualRef:s,...c}=n,u=_b(Mb,o),m=g.useRef(null),h=We(r,m),v=g.useRef(null);return g.useEffect(()=>{const p=v.current;v.current=s?.current||m.current,p!==v.current&&u.onAnchorChange(v.current)}),s?null:f.jsx(Ue.div,{...c,ref:h})});Db.displayName=Mb;var sm="PopperContent",[ZA,FA]=kb(sm),zb=g.forwardRef((n,r)=>{const{__scopePopper:o,side:s="bottom",sideOffset:c=0,align:u="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:v=!0,collisionBoundary:p=[],collisionPadding:b=0,sticky:y="partial",hideWhenDetached:w=!1,updatePositionStrategy:C="optimized",onPlaced:N,...E}=n,T=_b(sm,o),[A,k]=g.useState(null),O=We(r,ie=>k(ie)),[B,U]=g.useState(null),Z=Ab(B),V=Z?.width??0,$=Z?.height??0,G=s+(u!=="center"?"-"+u:""),ce=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},ue=Array.isArray(p)?p:[p],W=ue.length>0,ee={padding:ce,boundary:ue.filter(JA),altBoundary:W},{refs:le,floatingStyles:J,placement:_,isPositioned:P,middlewareData:X}=BA({strategy:"fixed",placement:G,whileElementsMounted:(...ie)=>AA(...ie,{animationFrame:C==="always"}),elements:{reference:T.anchor},middleware:[PA({mainAxis:c+$,alignmentAxis:m}),v&&$A({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?qA():void 0,...ee}),v&&VA({...ee}),YA({...ee,apply:({elements:ie,rects:de,availableWidth:xe,availableHeight:Ce})=>{const{width:Ne,height:Re}=de.reference,et=ie.floating.style;et.setProperty("--radix-popper-available-width",`${xe}px`),et.setProperty("--radix-popper-available-height",`${Ce}px`),et.setProperty("--radix-popper-anchor-width",`${Ne}px`),et.setProperty("--radix-popper-anchor-height",`${Re}px`)}}),B&&GA({element:B,padding:h}),ek({arrowWidth:V,arrowHeight:$}),w&&IA({strategy:"referenceHidden",...ee})]}),[fe,R]=Bb(_),Y=Ga(N);Dt(()=>{P&&Y?.()},[P,Y]);const se=X.arrow?.x,Q=X.arrow?.y,oe=X.arrow?.centerOffset!==0,[te,ne]=g.useState();return Dt(()=>{A&&ne(window.getComputedStyle(A).zIndex)},[A]),f.jsx("div",{ref:le.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:P?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[X.transformOrigin?.x,X.transformOrigin?.y].join(" "),...X.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:f.jsx(ZA,{scope:o,placedSide:fe,onArrowChange:U,arrowX:se,arrowY:Q,shouldHideArrow:oe,children:f.jsx(Ue.div,{"data-side":fe,"data-align":R,...E,ref:O,style:{...E.style,animation:P?void 0:"none"}})})})});zb.displayName=sm;var Ub="PopperArrow",WA={top:"bottom",right:"left",bottom:"top",left:"right"},Lb=g.forwardRef(function(r,o){const{__scopePopper:s,...c}=r,u=FA(Ub,s),m=WA[u.placedSide];return f.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[m]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:f.jsx(QA,{...c,ref:o,style:{...c.style,display:"block"}})})});Lb.displayName=Ub;function JA(n){return n!==null}var ek=n=>({name:"transformOrigin",options:n,fn(r){const{placement:o,rects:s,middlewareData:c}=r,m=c.arrow?.centerOffset!==0,h=m?0:n.arrowWidth,v=m?0:n.arrowHeight,[p,b]=Bb(o),y={start:"0%",center:"50%",end:"100%"}[b],w=(c.arrow?.x??0)+h/2,C=(c.arrow?.y??0)+v/2;let N="",E="";return p==="bottom"?(N=m?y:`${w}px`,E=`${-v}px`):p==="top"?(N=m?y:`${w}px`,E=`${s.floating.height+v}px`):p==="right"?(N=`${-v}px`,E=m?y:`${C}px`):p==="left"&&(N=`${s.floating.width+v}px`,E=m?y:`${C}px`),{data:{x:N,y:E}}}});function Bb(n){const[r,o="center"]=n.split("-");return[r,o]}var tk=Ob,nk=Db,ak=zb,rk=Lb;function Hb(n){const r=g.useRef({value:n,previous:n});return g.useMemo(()=>(r.current.value!==n&&(r.current.previous=r.current.value,r.current.value=n),r.current.previous),[n])}var Pb=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"}),ok="VisuallyHidden",lk=g.forwardRef((n,r)=>f.jsx(Ue.span,{...n,ref:r,style:{...Pb,...n.style}}));lk.displayName=ok;var sk=[" ","Enter","ArrowUp","ArrowDown"],ik=[" ","Enter"],Cr="Select",[mc,hc,ck]=pb(Cr),[Po]=Za(Cr,[ck,jb]),pc=jb(),[uk,Fa]=Po(Cr),[dk,fk]=Po(Cr),$b=n=>{const{__scopeSelect:r,children:o,open:s,defaultOpen:c,onOpenChange:u,value:m,defaultValue:h,onValueChange:v,dir:p,name:b,autoComplete:y,disabled:w,required:C,form:N}=n,E=pc(r),[T,A]=g.useState(null),[k,O]=g.useState(null),[B,U]=g.useState(!1),Z=Jf(p),[V,$]=_o({prop:s,defaultProp:c??!1,onChange:u,caller:Cr}),[G,ce]=_o({prop:m,defaultProp:h,onChange:v,caller:Cr}),ue=g.useRef(null),W=T?N||!!T.closest("form"):!0,[ee,le]=g.useState(new Set),J=Array.from(ee).map(_=>_.props.value).join(";");return f.jsx(tk,{...E,children:f.jsxs(uk,{required:C,scope:r,trigger:T,onTriggerChange:A,valueNode:k,onValueNodeChange:O,valueNodeHasChildren:B,onValueNodeHasChildrenChange:U,contentId:Ya(),value:G,onValueChange:ce,open:V,onOpenChange:$,dir:Z,triggerPointerDownPosRef:ue,disabled:w,children:[f.jsx(mc.Provider,{scope:r,children:f.jsx(dk,{scope:n.__scopeSelect,onNativeOptionAdd:g.useCallback(_=>{le(P=>new Set(P).add(_))},[]),onNativeOptionRemove:g.useCallback(_=>{le(P=>{const X=new Set(P);return X.delete(_),X})},[]),children:o})}),W?f.jsxs(dx,{"aria-hidden":!0,required:C,tabIndex:-1,name:b,autoComplete:y,value:G,onChange:_=>ce(_.target.value),disabled:w,form:N,children:[G===void 0?f.jsx("option",{value:""}):null,Array.from(ee)]},J):null]})})};$b.displayName=Cr;var qb="SelectTrigger",Vb=g.forwardRef((n,r)=>{const{__scopeSelect:o,disabled:s=!1,...c}=n,u=pc(o),m=Fa(qb,o),h=m.disabled||s,v=We(r,m.onTriggerChange),p=hc(o),b=g.useRef("touch"),[y,w,C]=mx(E=>{const T=p().filter(O=>!O.disabled),A=T.find(O=>O.value===m.value),k=hx(T,E,A);k!==void 0&&m.onValueChange(k.value)}),N=E=>{h||(m.onOpenChange(!0),C()),E&&(m.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)})};return f.jsx(nk,{asChild:!0,...u,children:f.jsx(Ue.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":fx(m.value)?"":void 0,...c,ref:v,onClick:ze(c.onClick,E=>{E.currentTarget.focus(),b.current!=="mouse"&&N(E)}),onPointerDown:ze(c.onPointerDown,E=>{b.current=E.pointerType;const T=E.target;T.hasPointerCapture(E.pointerId)&&T.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&E.pointerType==="mouse"&&(N(E),E.preventDefault())}),onKeyDown:ze(c.onKeyDown,E=>{const T=y.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&w(E.key),!(T&&E.key===" ")&&sk.includes(E.key)&&(N(),E.preventDefault())})})})});Vb.displayName=qb;var Yb="SelectValue",Ib=g.forwardRef((n,r)=>{const{__scopeSelect:o,className:s,style:c,children:u,placeholder:m="",...h}=n,v=Fa(Yb,o),{onValueNodeHasChildrenChange:p}=v,b=u!==void 0,y=We(r,v.onValueNodeChange);return Dt(()=>{p(b)},[p,b]),f.jsx(Ue.span,{...h,ref:y,style:{pointerEvents:"none"},children:fx(v.value)?f.jsx(f.Fragment,{children:m}):u})});Ib.displayName=Yb;var mk="SelectIcon",Gb=g.forwardRef((n,r)=>{const{__scopeSelect:o,children:s,...c}=n;return f.jsx(Ue.span,{"aria-hidden":!0,...c,ref:r,children:s||"▼"})});Gb.displayName=mk;var hk="SelectPortal",Xb=n=>f.jsx(Yf,{asChild:!0,...n});Xb.displayName=hk;var Rr="SelectContent",Qb=g.forwardRef((n,r)=>{const o=Fa(Rr,n.__scopeSelect),[s,c]=g.useState();if(Dt(()=>{c(new DocumentFragment)},[]),!o.open){const u=s;return u?ts.createPortal(f.jsx(Kb,{scope:n.__scopeSelect,children:f.jsx(mc.Slot,{scope:n.__scopeSelect,children:f.jsx("div",{children:n.children})})}),u):null}return f.jsx(Zb,{...n,ref:r})});Qb.displayName=Rr;var xn=10,[Kb,Wa]=Po(Rr),pk="SelectContentImpl",gk=Fl("SelectContent.RemoveScroll"),Zb=g.forwardRef((n,r)=>{const{__scopeSelect:o,position:s="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:u,onPointerDownOutside:m,side:h,sideOffset:v,align:p,alignOffset:b,arrowPadding:y,collisionBoundary:w,collisionPadding:C,sticky:N,hideWhenDetached:E,avoidCollisions:T,...A}=n,k=Fa(Rr,o),[O,B]=g.useState(null),[U,Z]=g.useState(null),V=We(r,ie=>B(ie)),[$,G]=g.useState(null),[ce,ue]=g.useState(null),W=hc(o),[ee,le]=g.useState(!1),J=g.useRef(!1);g.useEffect(()=>{if(O)return Vy(O)},[O]),Dy();const _=g.useCallback(ie=>{const[de,...xe]=W().map(Re=>Re.ref.current),[Ce]=xe.slice(-1),Ne=document.activeElement;for(const Re of ie)if(Re===Ne||(Re?.scrollIntoView({block:"nearest"}),Re===de&&U&&(U.scrollTop=0),Re===Ce&&U&&(U.scrollTop=U.scrollHeight),Re?.focus(),document.activeElement!==Ne))return},[W,U]),P=g.useCallback(()=>_([$,O]),[_,$,O]);g.useEffect(()=>{ee&&P()},[ee,P]);const{onOpenChange:X,triggerPointerDownPosRef:fe}=k;g.useEffect(()=>{if(O){let ie={x:0,y:0};const de=Ce=>{ie={x:Math.abs(Math.round(Ce.pageX)-(fe.current?.x??0)),y:Math.abs(Math.round(Ce.pageY)-(fe.current?.y??0))}},xe=Ce=>{ie.x<=10&&ie.y<=10?Ce.preventDefault():O.contains(Ce.target)||X(!1),document.removeEventListener("pointermove",de),fe.current=null};return fe.current!==null&&(document.addEventListener("pointermove",de),document.addEventListener("pointerup",xe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",de),document.removeEventListener("pointerup",xe,{capture:!0})}}},[O,X,fe]),g.useEffect(()=>{const ie=()=>X(!1);return window.addEventListener("blur",ie),window.addEventListener("resize",ie),()=>{window.removeEventListener("blur",ie),window.removeEventListener("resize",ie)}},[X]);const[R,Y]=mx(ie=>{const de=W().filter(Ne=>!Ne.disabled),xe=de.find(Ne=>Ne.ref.current===document.activeElement),Ce=hx(de,ie,xe);Ce&&setTimeout(()=>Ce.ref.current.focus())}),se=g.useCallback((ie,de,xe)=>{const Ce=!J.current&&!xe;(k.value!==void 0&&k.value===de||Ce)&&(G(ie),Ce&&(J.current=!0))},[k.value]),Q=g.useCallback(()=>O?.focus(),[O]),oe=g.useCallback((ie,de,xe)=>{const Ce=!J.current&&!xe;(k.value!==void 0&&k.value===de||Ce)&&ue(ie)},[k.value]),te=s==="popper"?hf:Fb,ne=te===hf?{side:h,sideOffset:v,align:p,alignOffset:b,arrowPadding:y,collisionBoundary:w,collisionPadding:C,sticky:N,hideWhenDetached:E,avoidCollisions:T}:{};return f.jsx(Kb,{scope:o,content:O,viewport:U,onViewportChange:Z,itemRefCallback:se,selectedItem:$,onItemLeave:Q,itemTextRefCallback:oe,focusSelectedItem:P,selectedItemText:ce,position:s,isPositioned:ee,searchRef:R,children:f.jsx(If,{as:gk,allowPinchZoom:!0,children:f.jsx(Vf,{asChild:!0,trapped:k.open,onMountAutoFocus:ie=>{ie.preventDefault()},onUnmountAutoFocus:ze(c,ie=>{k.trigger?.focus({preventScroll:!0}),ie.preventDefault()}),children:f.jsx(qf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:ie=>ie.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:f.jsx(te,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:ie=>ie.preventDefault(),...A,...ne,onPlaced:()=>le(!0),ref:V,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:ze(A.onKeyDown,ie=>{const de=ie.ctrlKey||ie.altKey||ie.metaKey;if(ie.key==="Tab"&&ie.preventDefault(),!de&&ie.key.length===1&&Y(ie.key),["ArrowUp","ArrowDown","Home","End"].includes(ie.key)){let Ce=W().filter(Ne=>!Ne.disabled).map(Ne=>Ne.ref.current);if(["ArrowUp","End"].includes(ie.key)&&(Ce=Ce.slice().reverse()),["ArrowUp","ArrowDown"].includes(ie.key)){const Ne=ie.target,Re=Ce.indexOf(Ne);Ce=Ce.slice(Re+1)}setTimeout(()=>_(Ce)),ie.preventDefault()}})})})})})})});Zb.displayName=pk;var vk="SelectItemAlignedPosition",Fb=g.forwardRef((n,r)=>{const{__scopeSelect:o,onPlaced:s,...c}=n,u=Fa(Rr,o),m=Wa(Rr,o),[h,v]=g.useState(null),[p,b]=g.useState(null),y=We(r,V=>b(V)),w=hc(o),C=g.useRef(!1),N=g.useRef(!0),{viewport:E,selectedItem:T,selectedItemText:A,focusSelectedItem:k}=m,O=g.useCallback(()=>{if(u.trigger&&u.valueNode&&h&&p&&E&&T&&A){const V=u.trigger.getBoundingClientRect(),$=p.getBoundingClientRect(),G=u.valueNode.getBoundingClientRect(),ce=A.getBoundingClientRect();if(u.dir!=="rtl"){const Ne=ce.left-$.left,Re=G.left-Ne,et=V.left-Re,rt=V.width+et,hn=Math.max(rt,$.width),pn=window.innerWidth-xn,st=Qv(Re,[xn,Math.max(xn,pn-hn)]);h.style.minWidth=rt+"px",h.style.left=st+"px"}else{const Ne=$.right-ce.right,Re=window.innerWidth-G.right-Ne,et=window.innerWidth-V.right-Re,rt=V.width+et,hn=Math.max(rt,$.width),pn=window.innerWidth-xn,st=Qv(Re,[xn,Math.max(xn,pn-hn)]);h.style.minWidth=rt+"px",h.style.right=st+"px"}const ue=w(),W=window.innerHeight-xn*2,ee=E.scrollHeight,le=window.getComputedStyle(p),J=parseInt(le.borderTopWidth,10),_=parseInt(le.paddingTop,10),P=parseInt(le.borderBottomWidth,10),X=parseInt(le.paddingBottom,10),fe=J+_+ee+X+P,R=Math.min(T.offsetHeight*5,fe),Y=window.getComputedStyle(E),se=parseInt(Y.paddingTop,10),Q=parseInt(Y.paddingBottom,10),oe=V.top+V.height/2-xn,te=W-oe,ne=T.offsetHeight/2,ie=T.offsetTop+ne,de=J+_+ie,xe=fe-de;if(de<=oe){const Ne=ue.length>0&&T===ue[ue.length-1].ref.current;h.style.bottom="0px";const Re=p.clientHeight-E.offsetTop-E.offsetHeight,et=Math.max(te,ne+(Ne?Q:0)+Re+P),rt=de+et;h.style.height=rt+"px"}else{const Ne=ue.length>0&&T===ue[0].ref.current;h.style.top="0px";const et=Math.max(oe,J+E.offsetTop+(Ne?se:0)+ne)+xe;h.style.height=et+"px",E.scrollTop=de-oe+E.offsetTop}h.style.margin=`${xn}px 0`,h.style.minHeight=R+"px",h.style.maxHeight=W+"px",s?.(),requestAnimationFrame(()=>C.current=!0)}},[w,u.trigger,u.valueNode,h,p,E,T,A,u.dir,s]);Dt(()=>O(),[O]);const[B,U]=g.useState();Dt(()=>{p&&U(window.getComputedStyle(p).zIndex)},[p]);const Z=g.useCallback(V=>{V&&N.current===!0&&(O(),k?.(),N.current=!1)},[O,k]);return f.jsx(bk,{scope:o,contentWrapper:h,shouldExpandOnScrollRef:C,onScrollButtonChange:Z,children:f.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:B},children:f.jsx(Ue.div,{...c,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}})})})});Fb.displayName=vk;var yk="SelectPopperPosition",hf=g.forwardRef((n,r)=>{const{__scopeSelect:o,align:s="start",collisionPadding:c=xn,...u}=n,m=pc(o);return f.jsx(ak,{...m,...u,ref:r,align:s,collisionPadding:c,style:{boxSizing:"border-box",...u.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)"}})});hf.displayName=yk;var[bk,im]=Po(Rr,{}),pf="SelectViewport",Wb=g.forwardRef((n,r)=>{const{__scopeSelect:o,nonce:s,...c}=n,u=Wa(pf,o),m=im(pf,o),h=We(r,u.onViewportChange),v=g.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:s}),f.jsx(mc.Slot,{scope:o,children:f.jsx(Ue.div,{"data-radix-select-viewport":"",role:"presentation",...c,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...c.style},onScroll:ze(c.onScroll,p=>{const b=p.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:w}=m;if(w?.current&&y){const C=Math.abs(v.current-b.scrollTop);if(C>0){const N=window.innerHeight-xn*2,E=parseFloat(y.style.minHeight),T=parseFloat(y.style.height),A=Math.max(E,T);if(A<N){const k=A+C,O=Math.min(N,k),B=k-O;y.style.height=O+"px",y.style.bottom==="0px"&&(b.scrollTop=B>0?B:0,y.style.justifyContent="flex-end")}}}v.current=b.scrollTop})})})]})});Wb.displayName=pf;var Jb="SelectGroup",[xk,Sk]=Po(Jb),wk=g.forwardRef((n,r)=>{const{__scopeSelect:o,...s}=n,c=Ya();return f.jsx(xk,{scope:o,id:c,children:f.jsx(Ue.div,{role:"group","aria-labelledby":c,...s,ref:r})})});wk.displayName=Jb;var ex="SelectLabel",tx=g.forwardRef((n,r)=>{const{__scopeSelect:o,...s}=n,c=Sk(ex,o);return f.jsx(Ue.div,{id:c.id,...s,ref:r})});tx.displayName=ex;var Yi="SelectItem",[Ek,nx]=Po(Yi),ax=g.forwardRef((n,r)=>{const{__scopeSelect:o,value:s,disabled:c=!1,textValue:u,...m}=n,h=Fa(Yi,o),v=Wa(Yi,o),p=h.value===s,[b,y]=g.useState(u??""),[w,C]=g.useState(!1),N=We(r,k=>v.itemRefCallback?.(k,s,c)),E=Ya(),T=g.useRef("touch"),A=()=>{c||(h.onValueChange(s),h.onOpenChange(!1))};if(s==="")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(Ek,{scope:o,value:s,disabled:c,textId:E,isSelected:p,onItemTextChange:g.useCallback(k=>{y(O=>O||(k?.textContent??"").trim())},[]),children:f.jsx(mc.ItemSlot,{scope:o,value:s,disabled:c,textValue:b,children:f.jsx(Ue.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:ze(m.onFocus,()=>C(!0)),onBlur:ze(m.onBlur,()=>C(!1)),onClick:ze(m.onClick,()=>{T.current!=="mouse"&&A()}),onPointerUp:ze(m.onPointerUp,()=>{T.current==="mouse"&&A()}),onPointerDown:ze(m.onPointerDown,k=>{T.current=k.pointerType}),onPointerMove:ze(m.onPointerMove,k=>{T.current=k.pointerType,c?v.onItemLeave?.():T.current==="mouse"&&k.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ze(m.onPointerLeave,k=>{k.currentTarget===document.activeElement&&v.onItemLeave?.()}),onKeyDown:ze(m.onKeyDown,k=>{v.searchRef?.current!==""&&k.key===" "||(ik.includes(k.key)&&A(),k.key===" "&&k.preventDefault())})})})})});ax.displayName=Yi;var Yl="SelectItemText",rx=g.forwardRef((n,r)=>{const{__scopeSelect:o,className:s,style:c,...u}=n,m=Fa(Yl,o),h=Wa(Yl,o),v=nx(Yl,o),p=fk(Yl,o),[b,y]=g.useState(null),w=We(r,A=>y(A),v.onItemTextChange,A=>h.itemTextRefCallback?.(A,v.value,v.disabled)),C=b?.textContent,N=g.useMemo(()=>f.jsx("option",{value:v.value,disabled:v.disabled,children:C},v.value),[v.disabled,v.value,C]),{onNativeOptionAdd:E,onNativeOptionRemove:T}=p;return Dt(()=>(E(N),()=>T(N)),[E,T,N]),f.jsxs(f.Fragment,{children:[f.jsx(Ue.span,{id:v.textId,...u,ref:w}),v.isSelected&&m.valueNode&&!m.valueNodeHasChildren?ts.createPortal(u.children,m.valueNode):null]})});rx.displayName=Yl;var ox="SelectItemIndicator",lx=g.forwardRef((n,r)=>{const{__scopeSelect:o,...s}=n;return nx(ox,o).isSelected?f.jsx(Ue.span,{"aria-hidden":!0,...s,ref:r}):null});lx.displayName=ox;var gf="SelectScrollUpButton",sx=g.forwardRef((n,r)=>{const o=Wa(gf,n.__scopeSelect),s=im(gf,n.__scopeSelect),[c,u]=g.useState(!1),m=We(r,s.onScrollButtonChange);return Dt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const p=v.scrollTop>0;u(p)};const v=o.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?f.jsx(cx,{...n,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=o;h&&v&&(h.scrollTop=h.scrollTop-v.offsetHeight)}}):null});sx.displayName=gf;var vf="SelectScrollDownButton",ix=g.forwardRef((n,r)=>{const o=Wa(vf,n.__scopeSelect),s=im(vf,n.__scopeSelect),[c,u]=g.useState(!1),m=We(r,s.onScrollButtonChange);return Dt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const p=v.scrollHeight-v.clientHeight,b=Math.ceil(v.scrollTop)<p;u(b)};const v=o.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?f.jsx(cx,{...n,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=o;h&&v&&(h.scrollTop=h.scrollTop+v.offsetHeight)}}):null});ix.displayName=vf;var cx=g.forwardRef((n,r)=>{const{__scopeSelect:o,onAutoScroll:s,...c}=n,u=Wa("SelectScrollButton",o),m=g.useRef(null),h=hc(o),v=g.useCallback(()=>{m.current!==null&&(window.clearInterval(m.current),m.current=null)},[]);return g.useEffect(()=>()=>v(),[v]),Dt(()=>{h().find(b=>b.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[h]),f.jsx(Ue.div,{"aria-hidden":!0,...c,ref:r,style:{flexShrink:0,...c.style},onPointerDown:ze(c.onPointerDown,()=>{m.current===null&&(m.current=window.setInterval(s,50))}),onPointerMove:ze(c.onPointerMove,()=>{u.onItemLeave?.(),m.current===null&&(m.current=window.setInterval(s,50))}),onPointerLeave:ze(c.onPointerLeave,()=>{v()})})}),Nk="SelectSeparator",ux=g.forwardRef((n,r)=>{const{__scopeSelect:o,...s}=n;return f.jsx(Ue.div,{"aria-hidden":!0,...s,ref:r})});ux.displayName=Nk;var yf="SelectArrow",Tk=g.forwardRef((n,r)=>{const{__scopeSelect:o,...s}=n,c=pc(o),u=Fa(yf,o),m=Wa(yf,o);return u.open&&m.position==="popper"?f.jsx(rk,{...c,...s,ref:r}):null});Tk.displayName=yf;var Ck="SelectBubbleInput",dx=g.forwardRef(({__scopeSelect:n,value:r,...o},s)=>{const c=g.useRef(null),u=We(s,c),m=Hb(r);return g.useEffect(()=>{const h=c.current;if(!h)return;const v=window.HTMLSelectElement.prototype,b=Object.getOwnPropertyDescriptor(v,"value").set;if(m!==r&&b){const y=new Event("change",{bubbles:!0});b.call(h,r),h.dispatchEvent(y)}},[m,r]),f.jsx(Ue.select,{...o,style:{...Pb,...o.style},ref:u,defaultValue:r})});dx.displayName=Ck;function fx(n){return n===""||n===void 0}function mx(n){const r=Ga(n),o=g.useRef(""),s=g.useRef(0),c=g.useCallback(m=>{const h=o.current+m;r(h),(function v(p){o.current=p,window.clearTimeout(s.current),p!==""&&(s.current=window.setTimeout(()=>v(""),1e3))})(h)},[r]),u=g.useCallback(()=>{o.current="",window.clearTimeout(s.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(s.current),[]),[o,c,u]}function hx(n,r,o){const c=r.length>1&&Array.from(r).every(p=>p===r[0])?r[0]:r,u=o?n.indexOf(o):-1;let m=Rk(n,Math.max(u,0));c.length===1&&(m=m.filter(p=>p!==o));const v=m.find(p=>p.textValue.toLowerCase().startsWith(c.toLowerCase()));return v!==o?v:void 0}function Rk(n,r){return n.map((o,s)=>n[(r+s)%n.length])}var Ak=$b,px=Vb,kk=Ib,jk=Gb,_k=Xb,gx=Qb,Ok=Wb,vx=tx,yx=ax,Mk=rx,Dk=lx,bx=sx,xx=ix,Sx=ux;const wx=Ak,Ex=kk,cm=g.forwardRef(({className:n,children:r,...o},s)=>f.jsxs(px,{ref:s,className:ae("flex h-8 w-full items-center justify-between rounded-sm border border-input/85 bg-background/72 px-2.5 py-1.5 text-[11px] 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:[r,f.jsx(jk,{asChild:!0,children:f.jsx(Zl,{className:"h-4 w-4 opacity-50"})})]}));cm.displayName=px.displayName;const Nx=g.forwardRef(({className:n,...r},o)=>f.jsx(bx,{ref:o,className:ae("flex cursor-default items-center justify-center py-1",n),...r,children:f.jsx(PN,{className:"h-4 w-4"})}));Nx.displayName=bx.displayName;const Tx=g.forwardRef(({className:n,...r},o)=>f.jsx(xx,{ref:o,className:ae("flex cursor-default items-center justify-center py-1",n),...r,children:f.jsx(Zl,{className:"h-4 w-4"})}));Tx.displayName=xx.displayName;const um=g.forwardRef(({className:n,children:r,position:o="popper",...s},c)=>f.jsx(_k,{children:f.jsxs(gx,{ref:c,className:ae("relative z-50 max-h-80 min-w-[8rem] overflow-hidden rounded-sm border border-border/70 bg-popover/96 text-popover-foreground shadow-[0_16px_48px_-34px_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,...s,children:[f.jsx(Nx,{}),f.jsx(Ok,{className:ae("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),f.jsx(Tx,{})]})}));um.displayName=gx.displayName;const zk=g.forwardRef(({className:n,...r},o)=>f.jsx(vx,{ref:o,className:ae("py-1 pl-6 pr-2 text-[10px] font-semibold",n),...r}));zk.displayName=vx.displayName;const Ro=g.forwardRef(({className:n,children:r,...o},s)=>f.jsxs(yx,{ref:s,className:ae("relative flex w-full cursor-default select-none items-center rounded-sm py-1 pl-6 pr-2 text-[11px] 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-1.5 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(Dk,{children:f.jsx(Ui,{className:"h-3.5 w-3.5"})})}),f.jsx(Mk,{children:r})]}));Ro.displayName=yx.displayName;const Uk=g.forwardRef(({className:n,...r},o)=>f.jsx(Sx,{ref:o,className:ae("-mx-1 my-1 h-px bg-muted",n),...r}));Uk.displayName=Sx.displayName;var Qd="rovingFocusGroup.onEntryFocus",Lk={bubbles:!1,cancelable:!0},as="RovingFocusGroup",[bf,Cx,Bk]=pb(as),[Hk,Rx]=Za(as,[Bk]),[Pk,$k]=Hk(as),Ax=g.forwardRef((n,r)=>f.jsx(bf.Provider,{scope:n.__scopeRovingFocusGroup,children:f.jsx(bf.Slot,{scope:n.__scopeRovingFocusGroup,children:f.jsx(qk,{...n,ref:r})})}));Ax.displayName=as;var qk=g.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:o,orientation:s,loop:c=!1,dir:u,currentTabStopId:m,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:v,onEntryFocus:p,preventScrollOnEntryFocus:b=!1,...y}=n,w=g.useRef(null),C=We(r,w),N=Jf(u),[E,T]=_o({prop:m,defaultProp:h??null,onChange:v,caller:as}),[A,k]=g.useState(!1),O=Ga(p),B=Cx(o),U=g.useRef(!1),[Z,V]=g.useState(0);return g.useEffect(()=>{const $=w.current;if($)return $.addEventListener(Qd,O),()=>$.removeEventListener(Qd,O)},[O]),f.jsx(Pk,{scope:o,orientation:s,dir:N,loop:c,currentTabStopId:E,onItemFocus:g.useCallback($=>T($),[T]),onItemShiftTab:g.useCallback(()=>k(!0),[]),onFocusableItemAdd:g.useCallback(()=>V($=>$+1),[]),onFocusableItemRemove:g.useCallback(()=>V($=>$-1),[]),children:f.jsx(Ue.div,{tabIndex:A||Z===0?-1:0,"data-orientation":s,...y,ref:C,style:{outline:"none",...n.style},onMouseDown:ze(n.onMouseDown,()=>{U.current=!0}),onFocus:ze(n.onFocus,$=>{const G=!U.current;if($.target===$.currentTarget&&G&&!A){const ce=new CustomEvent(Qd,Lk);if($.currentTarget.dispatchEvent(ce),!ce.defaultPrevented){const ue=B().filter(_=>_.focusable),W=ue.find(_=>_.active),ee=ue.find(_=>_.id===E),J=[W,ee,...ue].filter(Boolean).map(_=>_.ref.current);_x(J,b)}}U.current=!1}),onBlur:ze(n.onBlur,()=>k(!1))})})}),kx="RovingFocusGroupItem",jx=g.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:o,focusable:s=!0,active:c=!1,tabStopId:u,children:m,...h}=n,v=Ya(),p=u||v,b=$k(kx,o),y=b.currentTabStopId===p,w=Cx(o),{onFocusableItemAdd:C,onFocusableItemRemove:N,currentTabStopId:E}=b;return g.useEffect(()=>{if(s)return C(),()=>N()},[s,C,N]),f.jsx(bf.ItemSlot,{scope:o,id:p,focusable:s,active:c,children:f.jsx(Ue.span,{tabIndex:y?0:-1,"data-orientation":b.orientation,...h,ref:r,onMouseDown:ze(n.onMouseDown,T=>{s?b.onItemFocus(p):T.preventDefault()}),onFocus:ze(n.onFocus,()=>b.onItemFocus(p)),onKeyDown:ze(n.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){b.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const A=Ik(T,b.orientation,b.dir);if(A!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let O=w().filter(B=>B.focusable).map(B=>B.ref.current);if(A==="last")O.reverse();else if(A==="prev"||A==="next"){A==="prev"&&O.reverse();const B=O.indexOf(T.currentTarget);O=b.loop?Gk(O,B+1):O.slice(B+1)}setTimeout(()=>_x(O))}}),children:typeof m=="function"?m({isCurrentTabStop:y,hasTabStop:E!=null}):m})})});jx.displayName=kx;var Vk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Yk(n,r){return r!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function Ik(n,r,o){const s=Yk(n.key,o);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return Vk[s]}function _x(n,r=!1){const o=document.activeElement;for(const s of n)if(s===o||(s.focus({preventScroll:r}),document.activeElement!==o))return}function Gk(n,r){return n.map((o,s)=>n[(r+s)%n.length])}var Xk=Ax,Qk=jx,gc="Tabs",[Kk]=Za(gc,[Rx]),Ox=Rx(),[Zk,dm]=Kk(gc),Mx=g.forwardRef((n,r)=>{const{__scopeTabs:o,value:s,onValueChange:c,defaultValue:u,orientation:m="horizontal",dir:h,activationMode:v="automatic",...p}=n,b=Jf(h),[y,w]=_o({prop:s,onChange:c,defaultProp:u??"",caller:gc});return f.jsx(Zk,{scope:o,baseId:Ya(),value:y,onValueChange:w,orientation:m,dir:b,activationMode:v,children:f.jsx(Ue.div,{dir:b,"data-orientation":m,...p,ref:r})})});Mx.displayName=gc;var Dx="TabsList",zx=g.forwardRef((n,r)=>{const{__scopeTabs:o,loop:s=!0,...c}=n,u=dm(Dx,o),m=Ox(o);return f.jsx(Xk,{asChild:!0,...m,orientation:u.orientation,dir:u.dir,loop:s,children:f.jsx(Ue.div,{role:"tablist","aria-orientation":u.orientation,...c,ref:r})})});zx.displayName=Dx;var Ux="TabsTrigger",Lx=g.forwardRef((n,r)=>{const{__scopeTabs:o,value:s,disabled:c=!1,...u}=n,m=dm(Ux,o),h=Ox(o),v=Px(m.baseId,s),p=$x(m.baseId,s),b=s===m.value;return f.jsx(Qk,{asChild:!0,...h,focusable:!c,active:b,children:f.jsx(Ue.button,{type:"button",role:"tab","aria-selected":b,"aria-controls":p,"data-state":b?"active":"inactive","data-disabled":c?"":void 0,disabled:c,id:v,...u,ref:r,onMouseDown:ze(n.onMouseDown,y=>{!c&&y.button===0&&y.ctrlKey===!1?m.onValueChange(s):y.preventDefault()}),onKeyDown:ze(n.onKeyDown,y=>{[" ","Enter"].includes(y.key)&&m.onValueChange(s)}),onFocus:ze(n.onFocus,()=>{const y=m.activationMode!=="manual";!b&&!c&&y&&m.onValueChange(s)})})})});Lx.displayName=Ux;var Bx="TabsContent",Hx=g.forwardRef((n,r)=>{const{__scopeTabs:o,value:s,forceMount:c,children:u,...m}=n,h=dm(Bx,o),v=Px(h.baseId,s),p=$x(h.baseId,s),b=s===h.value,y=g.useRef(b);return g.useEffect(()=>{const w=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(w)},[]),f.jsx(Lo,{present:c||b,children:({present:w})=>f.jsx(Ue.div,{"data-state":b?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":v,hidden:!w,id:p,tabIndex:0,...m,ref:r,style:{...n.style,animationDuration:y.current?"0s":void 0},children:w&&u})})});Hx.displayName=Bx;function Px(n,r){return`${n}-trigger-${r}`}function $x(n,r){return`${n}-content-${r}`}var Fk=Mx,qx=zx,Vx=Lx,Yx=Hx;const Wk=Fk,Ix=g.forwardRef(({className:n,...r},o)=>f.jsx(qx,{ref:o,className:ae("inline-flex h-8 items-center justify-center rounded-sm bg-muted/72 p-0.5 text-muted-foreground shadow-inner shadow-background/40",n),...r}));Ix.displayName=qx.displayName;const Il=g.forwardRef(({className:n,...r},o)=>f.jsx(Vx,{ref:o,className:ae("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-2 py-0.5 text-[11px] 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)]",n),...r}));Il.displayName=Vx.displayName;const Gl=g.forwardRef(({className:n,...r},o)=>f.jsx(Yx,{ref:o,className:ae("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),...r}));Gl.displayName=Yx.displayName;var Gx="AlertDialog",[Jk]=Za(Gx,[Iy]),ha=Iy(),Xx=n=>{const{__scopeAlertDialog:r,...o}=n,s=ha(r);return f.jsx(sb,{...s,...o,modal:!0})};Xx.displayName=Gx;var ej="AlertDialogTrigger",Qx=g.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...s}=n,c=ha(o);return f.jsx(ib,{...c,...s,ref:r})});Qx.displayName=ej;var tj="AlertDialogPortal",Kx=n=>{const{__scopeAlertDialog:r,...o}=n,s=ha(r);return f.jsx(cb,{...s,...o})};Kx.displayName=tj;var nj="AlertDialogOverlay",Zx=g.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...s}=n,c=ha(o);return f.jsx(Kf,{...c,...s,ref:r})});Zx.displayName=nj;var jo="AlertDialogContent",[aj,rj]=Jk(jo),oj=vR("AlertDialogContent"),Fx=g.forwardRef((n,r)=>{const{__scopeAlertDialog:o,children:s,...c}=n,u=ha(o),m=g.useRef(null),h=We(r,m),v=g.useRef(null);return f.jsx(M5,{contentName:jo,titleName:Wx,docsSlug:"alert-dialog",children:f.jsx(aj,{scope:o,cancelRef:v,children:f.jsxs(Zf,{role:"alertdialog",...u,...c,ref:h,onOpenAutoFocus:ze(c.onOpenAutoFocus,p=>{p.preventDefault(),v.current?.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:[f.jsx(oj,{children:s}),f.jsx(sj,{contentRef:m})]})})})});Fx.displayName=jo;var Wx="AlertDialogTitle",Jx=g.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...s}=n,c=ha(o);return f.jsx(Ff,{...c,...s,ref:r})});Jx.displayName=Wx;var e1="AlertDialogDescription",t1=g.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...s}=n,c=ha(o);return f.jsx(Wf,{...c,...s,ref:r})});t1.displayName=e1;var lj="AlertDialogAction",n1=g.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...s}=n,c=ha(o);return f.jsx(ic,{...c,...s,ref:r})});n1.displayName=lj;var a1="AlertDialogCancel",r1=g.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...s}=n,{cancelRef:c}=rj(a1,o),u=ha(o),m=We(r,c);return f.jsx(ic,{...u,...s,ref:m})});r1.displayName=a1;var sj=({contentRef:n})=>{const r=`\`${jo}\` requires a description for the component to be accessible for screen reader users.
|
|
341
|
+
|
|
342
|
+
You can add a description to the \`${jo}\` by passing a \`${e1}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
343
|
+
|
|
344
|
+
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 \`${jo}\`. 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.
|
|
345
|
+
|
|
346
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return g.useEffect(()=>{document.getElementById(n.current?.getAttribute("aria-describedby"))||console.warn(r)},[r,n]),null},ij=Xx,cj=Qx,uj=Kx,o1=Zx,l1=Fx,s1=n1,i1=r1,c1=Jx,u1=t1;const xf=ij,Sf=cj,dj=uj,d1=g.forwardRef(({className:n,...r},o)=>f.jsx(o1,{className:ae("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),...r,ref:o}));d1.displayName=o1.displayName;const Ii=g.forwardRef(({className:n,...r},o)=>f.jsxs(dj,{children:[f.jsx(d1,{}),f.jsx(l1,{ref:o,className:ae("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-3 rounded-sm border bg-background p-4 shadow-[0_24px_84px_-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),...r})]}));Ii.displayName=l1.displayName;const Gi=({className:n,...r})=>f.jsx("div",{className:ae("flex flex-col space-y-1.5 text-center sm:text-left",n),...r});Gi.displayName="AlertDialogHeader";const Xi=({className:n,...r})=>f.jsx("div",{className:ae("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...r});Xi.displayName="AlertDialogFooter";const Qi=g.forwardRef(({className:n,...r},o)=>f.jsx(c1,{ref:o,className:ae("text-sm font-semibold",n),...r}));Qi.displayName=c1.displayName;const Ki=g.forwardRef(({className:n,...r},o)=>f.jsx(u1,{ref:o,className:ae("text-[11px] text-muted-foreground",n),...r}));Ki.displayName=u1.displayName;const Zi=g.forwardRef(({className:n,...r},o)=>f.jsx(s1,{ref:o,className:ae($f(),n),...r}));Zi.displayName=s1.displayName;const Fi=g.forwardRef(({className:n,...r},o)=>f.jsx(i1,{ref:o,className:ae($f({variant:"outline"}),"mt-2 sm:mt-0",n),...r}));Fi.displayName=i1.displayName;const fj={online:"bg-emerald-500",busy:"bg-amber-500",offline:"bg-destructive"};function mj({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-emerald-500 opacity-30"}),f.jsx("span",{className:ae("relative inline-flex h-2.5 w-2.5 rounded-full",fj[n])})]})}function hj({role:n,size:r="default"}){return f.jsx(_t,{variant:n==="leader"?"default":"secondary",className:ae(r==="compact"?"px-1.5 py-0 text-[9px] leading-4":"text-[11px]"),children:n})}const f1={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-destructive-foreground",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 _O({status:n,size:r="default"}){const o=f1[n],s=r==="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(_t,{variant:o.variant,className:ae("rounded-sm font-medium shadow-none",s,o.className),children:[f.jsx("span",{className:ae("rounded-full",o.dotClass)}),n]})}function OO({status:n,isNative:r=!1,size:o="default",className:s}){const c=f1[n],u=[n,r?"native":null].filter(Boolean).join(", "),m=o==="compact"?"h-1.5 w-1.5":"h-2 w-2";return f.jsxs("span",{className:ae("inline-flex shrink-0 items-center gap-1",s),title:u,"aria-label":u,children:[f.jsx("span",{className:ae("rounded-full",m,c.dotClass),title:n}),r&&f.jsx("span",{className:ae("rounded-full bg-sky-500",m),title:"native"})]})}const pj={critical:{variant:"destructive",label:"Critical"},high:{variant:"outline",label:"High"},normal:{variant:"secondary",label:"Normal"},low:{variant:"secondary",label:"Low"}};function MO({priority:n}){const r=pj[n];return f.jsx(_t,{variant:r.variant,className:"rounded-sm px-1.5 py-0 text-[10px] leading-4 shadow-none",children:r.label})}function gj(n){return[{key:"workspace",label:"Workspace",value:n?.workspace},{key:"node",label:"Node app",value:n?.node},{key:"core",label:"Core",value:n?.core},{key:"dashboard",label:"Dashboard",value:n?.dashboard},{key:"api",label:"API",value:n?.api}].filter(o=>o.value)}function wo({label:n,value:r,mono:o=!1}){return f.jsxs("div",{className:"min-w-0 rounded-sm 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:r})]})}function vj({formatDateTime:n,viewInfo:r}){const o=gj(r.packages);return f.jsxs(Gl,{value:"about","data-about-layout":"compact",className:"mt-0 space-y-2",children:[f.jsxs(Sn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(wn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(En,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(MN,{className:"h-3.5 w-3.5 text-primary"}),"Repository & runtime"]}),f.jsx(Nn,{className:"text-[10px]",children:"Build source and runtime identity for this node."})]}),f.jsxs(Tn,{className:"space-y-2 px-3 pb-2.5",children:[r.repository?.url?f.jsxs("a",{href:r.repository.url,target:"_blank",rel:"noreferrer",className:"group flex min-w-0 items-center justify-between gap-2 rounded-sm 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:r.repository.url}),f.jsx(ay,{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-sm 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(wo,{label:"Branch",value:r.repository?.branch??"Unavailable",mono:!!r.repository?.branch}),f.jsx(wo,{label:"Commit",value:r.repository?.commit??"Unavailable",mono:!!r.repository?.commit}),f.jsx(wo,{label:"Runtime",value:`${r.packageName??"meshy"} ${r.version}`,mono:!0}),f.jsx(wo,{label:"Node.js",value:r.runtime?.nodeVersion??"Unavailable",mono:!!r.runtime?.nodeVersion}),f.jsx(wo,{label:"PID",value:r.runtime?String(r.runtime.pid):"Unavailable",mono:!!r.runtime}),f.jsx(wo,{label:"Started",value:n(r.runtime?.startedAt)})]})]})]}),f.jsxs(Sn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(wn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(En,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(eT,{className:"h-3.5 w-3.5 text-primary"}),"Package versions"]}),f.jsx(Nn,{className:"text-[10px]",children:"Version snapshot for the packages most relevant to this dashboard session."})]}),f.jsx(Tn,{"data-package-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:o.map(s=>f.jsxs("div",{className:"grid gap-1.5 rounded-sm 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:s.label}),f.jsx("div",{className:"min-w-0 truncate text-[10px] text-muted-foreground",children:s.value?.name}),f.jsx(_t,{variant:"outline",className:"w-fit rounded-sm border-border/70 bg-background/60 font-mono text-[10px]",children:s.value?.version})]},s.key))})]})]})}const DO="codex",zO="bypass",yj=[{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"}],UO=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],LO=new Set(yj.filter(n=>n.supportsFollowUp).map(n=>n.value)),BO=[{value:"active",label:"Active"},{value:"running",label:"Running"},{value:"waiting",label:"Waiting"},{value:"closed",label:"Closed"},{value:"shared",label:"Shared"},{value:"archived",label:"Archived"}],HO=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],bj=new Set(["pending","assigned"]),xj=new Set(["running"]),Sj=new Set(["completed","failed","cancelled"]),PO=10;function $O(n,r){switch(r){case"running":return xj.has(n.status);case"waiting":return bj.has(n.status);case"closed":return Sj.has(n.status);case"shared":return!!n.activeShare;case"archived":return n.status==="archived";default:return n.status!=="archived"}}function qO(n,r){if(r==="all")return!0;const o=n.conversationKind==="nativeSession";return r==="native"?o:!o}function VO(n,r){const o=r.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(s=>s.toLowerCase().includes(o)):!0}function wj(n,r,o){return n?r?.find(c=>c.id===n)?.name??o??n.slice(0,8):"unassigned"}function YO(n,r,o){return wj(n,r,o).toLowerCase()}function IO(n){return n.type!=="node.status"&&n.type!=="cluster.state"}function GO(n,r,o){return!n.assignedTo||o?.id===n.assignedTo?!0:r?.some(s=>s.id===n.assignedTo)??!1}function XO(n,r){return[...n].sort((o,s)=>o.id===r?-1:s.id===r?1:o.name.localeCompare(s.name))}function QO(n){if(!n||typeof n!="object")return null;const r=n,o=r.createMode,s=o==="chat"||o==="native"?o:void 0,c=r.createDefaults,u=c&&typeof c=="object"&&!Array.isArray(c)?c:null,m=u?{assignTo:typeof u.assignTo=="string"||u.assignTo===null?u.assignTo:void 0,project:typeof u.project=="string"||u.project===null?u.project:void 0}:void 0;return{draftNewTask:r.draftNewTask===!0,returnRoute:typeof r.returnRoute=="string"?r.returnRoute:void 0,returnTaskId:typeof r.returnTaskId=="string"||r.returnTaskId===null?r.returnTaskId:void 0,createMode:s,createDefaults:m}}function KO(n){return n==="default workspace"?n:n.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??n}function ZO(n){const r=Date.now()-n;return r<6e4?"just now":r<36e5?`${Math.floor(r/6e4)}m`:r<864e5?`${Math.floor(r/36e5)}h`:`${Math.floor(r/864e5)}d`}function FO(n){return new Date(n).toLocaleString()}function WO(n){const r=Math.floor(n/1e3),o=Math.floor(r/3600),s=Math.floor(r%3600/60),c=r%60;return`${String(o).padStart(2,"0")}:${String(s).padStart(2,"0")}:${String(c).padStart(2,"0")}`}async function m1(n,r="Copied to clipboard"){try{if(globalThis.navigator?.clipboard?.writeText)return await globalThis.navigator.clipboard.writeText(n),_e.success(r),!0;const o=globalThis.document,s=o?.execCommand?.bind(o);if(!o?.body||typeof o.createElement!="function"||typeof s!="function")throw new Error("Clipboard access is unavailable");const c=o.createElement("textarea"),u=o.activeElement,m=u&&typeof u.focus=="function"?u:null;c.value=n,c.setAttribute("readonly","true"),c.style.position="fixed",c.style.opacity="0",c.style.pointerEvents="none",o.body.appendChild(c),c.select(),c.setSelectionRange(0,c.value.length);const h=s("copy");if(o.body.removeChild(c),m?.focus(),!h)throw new Error("Clipboard access is unavailable");return _e.success(r),!0}catch(o){return _e.error(o instanceof Error?o.message:"Failed to copy"),!1}}const Ej="default workspace";function _i(n){const r=n.replace(/\\/g,"/");return r==="/"||/^[A-Za-z]:\/$/.test(r)?r:r.replace(/\/+$/g,"")||r}function Nj(n){const r=n.replace(/\\/g,"/");return r.startsWith("/")||r.startsWith("//")||/^[A-Za-z]:\//.test(r)}function Tj(n,r){const o=_i(n),s=r.replace(/\\/g,"/").replace(/^\/+|\/+$/g,"");return!s||s==="."?o:o==="/"||/^[A-Za-z]:\/$/.test(o)?`${o}${s}`:`${o}/${s}`}function Cj(n,r){const o=n.effectiveProjectPath?.trim();if(o)return _i(o);const s=n.project?.trim();if(!s)return Ej;if(Nj(s)||!n.assignedTo)return _i(s);const c=r?.get(n.assignedTo)?.trim();return c?Tj(c,s):_i(s)}function JO(n,r,o,s){const c=new Map;for(const m of n){const h=m.assignedTo??null,v=h??"__unassigned__",p=h?r.get(h)??m.assignedNodeName??h.slice(0,8):"Unassigned",b=Cj(m,s);c.has(v)||c.set(v,{nodeId:h,nodeName:p,dirMap:new Map});const y=c.get(v);y.dirMap.has(b)||y.dirMap.set(b,[]),y.dirMap.get(b).push(m)}const u=Array.from(c.values()).map(({nodeId:m,nodeName:h,dirMap:v})=>{const p=Array.from(v.entries()).map(([b,y])=>({path:b,tasks:y})).sort((b,y)=>y.tasks.length-b.tasks.length||b.path.localeCompare(y.path));return{nodeId:m,nodeName:h,dirs:p}});return u.sort((m,h)=>{if(o){if(m.nodeId===o)return-1;if(h.nodeId===o)return 1}return m.nodeId===null?1:h.nodeId===null?-1:m.nodeName.localeCompare(h.nodeName)}),u}const Rj=["queued","running"],Aj=["copilot.tunnel","copilot.tunnel.disable"],kj=1e4;function l0(n){return n?.status==="succeeded"||n?.status==="failed"}function jj(n){return n.reduce((r,o)=>!r||o.updatedAt>r.updatedAt?o:r,null)}async function _j(n,r=Q0){const o=await Promise.all(Aj.flatMap(s=>Rj.map(c=>r({kind:s,status:c,nodeId:n}))));return jj(o.flat())}function s0(n){return n?.split(/\r?\n/).map(r=>r.trim()).filter(Boolean).at(-1)??null}function Oj(n,r){return[n,...r].join(" ")}function Mj(n,r,o){return r&&!n?"Checking port 8314":n?n.status==="queued"?"Queued":n.status==="running"?n.kind==="copilot.tunnel.disable"?"Stopping Meshy-managed tunnel":n.kind==="copilot.tunnel"?n.result?.status==="auth-required"?"Waiting for GitHub device authorization":"Starting Copilot tunnel":"Checking port 8314":n.status==="succeeded"?n.result?.available?n.result.status==="already-running"?"Port 8314 is already reachable":"Proxy is listening on 8314":n.result?.status==="stopped"?"Meshy-managed tunnel stopped":"Port 8314 is not listening":o??"Tunnel operation failed":"Port 8314 status has not been checked"}function Dj(n,r){return r||n?.status==="queued"||n?.status==="running"?f.jsx(ry,{className:"h-3.5 w-3.5 animate-spin text-primary"}):n?.result?.available?f.jsx(Co,{className:"h-3.5 w-3.5 text-emerald-500"}):n?.status==="failed"?f.jsx(of,{className:"h-3.5 w-3.5 text-destructive"}):f.jsx(of,{className:"h-3.5 w-3.5 text-muted-foreground"})}function zj({checked:n,disabled:r,onCheckedChange:o}){return f.jsx("button",{type:"button",role:"switch","aria-checked":n,"aria-label":"Toggle GitHub Copilot Tunnel",title:n?"Disable GitHub Copilot Tunnel":"Enable GitHub Copilot Tunnel","data-copilot-tunnel-switch":"true",disabled:r,onClick:()=>o(!n),className:ae("relative h-5 w-9 shrink-0 rounded-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n?"bg-primary/85":"bg-muted"),children:f.jsx("span",{className:ae("absolute left-0.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 rounded-sm bg-background shadow-sm transition-transform",n?"translate-x-4":"translate-x-0")})})}function Uj({nodeId:n,nodeName:r}){const[o,s]=g.useState(null),[c,u]=g.useState(!1),[m,h]=g.useState(!1),v=o?.status==="queued"||o?.status==="running",p=o?.result,b=p?.auth??null,y=o?.error??p?.detail??s0(p?.stderr)??s0(p?.stdout),w=p?Oj(p.command,p.args):"npx -y ghc-tunnel@latest -d",C=!!p?.available||v&&o?.kind==="copilot.tunnel",N=c||m||v,E=g.useMemo(()=>Mj(o,c,y),[c,y,o]);g.useEffect(()=>{let A=!1;async function k(){u(!0);try{const O=await _j(n);if(A)return;if(O){s(O);return}const B=await bv(n);A||s(B)}catch(O){A||_e.error(O instanceof Error?O.message:"Failed to check Copilot tunnel")}finally{A||u(!1)}}return s(null),k(),()=>{A=!0}},[n]),g.useEffect(()=>{if(!o||l0(o))return;let A=!1;const k=o.id;async function O(){try{const U=await X0(k);if(A)return;if(U.kind==="copilot.tunnel.status"&&!l0(U)&&Date.now()-U.createdAt>kj){const Z=await bv(n);A||s(Z);return}s(U),U.status==="succeeded"&&U.kind==="copilot.tunnel"&&_e.success(`Copilot tunnel is available on ${r}`),U.status==="succeeded"&&U.kind==="copilot.tunnel.disable"&&_e.success(`Copilot tunnel stopped on ${r}`),U.status==="failed"&&U.kind!=="copilot.tunnel.status"&&_e.error(U.error??"Copilot tunnel failed")}catch(U){A||_e.error(U instanceof Error?U.message:"Failed to refresh Copilot tunnel")}}O();const B=window.setInterval(O,2e3);return()=>{A=!0,window.clearInterval(B)}},[n,r,o?.id,o?.status]);const T=g.useCallback(async A=>{h(!0);try{const k=A?await qE(n):await VE(n);s(k),_e.info(A?`Copilot tunnel enable requested on ${r}`:`Copilot tunnel stop requested on ${r}`)}catch(k){_e.error(k instanceof Error?k.message:"Failed to update Copilot tunnel")}finally{h(!1)}},[n,r]);return f.jsxs(Sn,{"data-copilot-tunnel-section":"true",className:"rounded-sm border-border/70 bg-background/75 shadow-none xl:col-span-2",children:[f.jsx(wn,{className:"pb-1.5 pt-2.5 px-3",children:f.jsxs("div",{className:"flex items-start justify-between gap-3",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsxs(En,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(ty,{className:"h-3.5 w-3.5 text-primary"}),"GitHub Copilot Tunnel"]}),f.jsx(Nn,{className:"text-[10px]",children:"Node-local Copilot proxy model provider."})]}),f.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[f.jsx("span",{"aria-label":E,title:E,className:"inline-flex h-5 w-5 items-center justify-center",children:Dj(o,c)}),f.jsx(zj,{checked:C,disabled:N,onCheckedChange:A=>{T(A)}})]})]})}),f.jsxs(Tn,{className:"space-y-2 px-3 pb-2.5",children:[f.jsxs("div",{className:"space-y-1.5 rounded-sm bg-background/55 px-2.5 py-2",children:[f.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] font-medium text-foreground",children:[f.jsx("span",{className:ae("h-1.5 w-1.5 rounded-sm",p?.available?"bg-emerald-500":v||c?"animate-pulse bg-amber-500":o?.status==="failed"?"bg-destructive":"bg-muted-foreground/50")}),E]}),f.jsx("div",{className:"truncate font-mono text-[10px] text-muted-foreground",children:w}),(v||c||m)&&f.jsx("div",{className:"h-0.5 overflow-hidden rounded-sm bg-muted",children:f.jsx("div",{className:"h-full w-1/3 animate-indeterminate-bar bg-primary/70"})})]}),b&&v&&f.jsxs("div",{className:"grid gap-2 rounded-sm border border-primary/35 bg-primary/8 px-2.5 py-2 sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center",children:[f.jsxs("div",{className:"min-w-0 space-y-1",children:[f.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] font-medium text-foreground",children:[f.jsx(nT,{className:"h-3.5 w-3.5 animate-pulse text-primary"}),"GitHub device login"]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 text-[10px] text-muted-foreground",children:[f.jsx("span",{className:"font-mono text-[11px] text-foreground",children:b.code}),b.expiresInSeconds?f.jsxs("span",{children:[Math.ceil(b.expiresInSeconds/60),"m expiry"]}):null]})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(Ct,{type:"button",variant:"outline",size:"icon",className:"h-7 w-7 rounded-sm",title:"Copy device code","aria-label":"Copy device code",onClick:()=>{m1(b.code,"Device code copied")},children:f.jsx(ny,{className:"h-3.5 w-3.5"})}),f.jsx(Ct,{asChild:!0,variant:"outline",size:"icon",className:"h-7 w-7 rounded-sm",title:"Open GitHub device login","aria-label":"Open GitHub device login",children:f.jsx("a",{href:b.url,target:"_blank",rel:"noreferrer",children:f.jsx(ay,{className:"h-3.5 w-3.5"})})})]})]}),y&&o?.status!=="succeeded"&&f.jsx("div",{className:"rounded-sm border border-border/60 bg-muted/35 px-2 py-1 text-[10px] text-muted-foreground",children:y})]})]})}const vc=g.forwardRef(({className:n,type:r,...o},s)=>f.jsx("input",{type:r,className:ae("flex h-8 w-full rounded-sm border border-input/85 bg-background/72 px-2.5 py-1.5 text-[11px] shadow-sm ring-offset-background transition-all duration-200 file:border-0 file:bg-transparent file:text-[11px] 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:s,...o}));vc.displayName="Input";function Lj(){return be("/system/quick-chats")}function Bj(n){return be("/system/quick-chats",{method:"PUT",body:JSON.stringify({quickChats:n})})}const wf="quick-chats:updated";function Hj(){typeof window>"u"||window.dispatchEvent(new CustomEvent(wf))}function Pj(){const[n,r]=g.useState([]),[o,s]=g.useState(!0),[c,u]=g.useState(!1),[m,h]=g.useState(null),v=g.useCallback(async()=>{s(!0);try{const b=await Lj();r(b.quickChats),h(null)}catch(b){h(b instanceof Error?b.message:"Failed to load quick chats")}finally{s(!1)}},[]),p=g.useCallback(async b=>{u(!0);try{const y=await Bj(b);return r(y.quickChats),h(null),Hj(),y.quickChats}catch(y){const w=y instanceof Error?y.message:"Failed to save quick chats";throw h(w),y}finally{u(!1)}},[]);return g.useEffect(()=>{v()},[v]),g.useEffect(()=>{if(typeof window>"u")return;const b=()=>{v()};return window.addEventListener(wf,b),()=>window.removeEventListener(wf,b)},[v]),{error:m,loading:o,quickChats:n,refresh:v,save:p,saving:c}}function h1(n){return n.trim().replace(/^\/+/,"").toLowerCase()}function p1(n,r){const o=n.trim();if(!o.startsWith("/"))return[];const s=h1(o);return r.filter(c=>c.alias.startsWith(s))}function Wi(n,r){return r<=0?-1:(n%r+r)%r}function eM(n,r,o=0){const s=p1(n,r),c=Wi(o,s.length);return c>=0?s[c]??null:null}function tM(n,r,o){const s=Wi(n,r);return s<0?0:Wi(s+o,r)}function nM({query:n,quickChats:r,selectedIndex:o=0,onSelect:s,onActiveIndexChange:c}){const u=p1(n,r);if(u.length===0)return null;const m=Wi(o,u.length);return f.jsxs("div",{"data-quick-chat-menu":"true",className:"mx-2 mb-0.5 rounded-sm bg-background/70 p-0.5 shadow-none sm:mx-5",children:[f.jsxs("div",{className:"flex items-center gap-1 px-1 py-0.5 text-[8px] uppercase tracking-[0.14em] text-muted-foreground/75",children:[f.jsx(oy,{className:"h-2.5 w-2.5 text-primary/55"}),"Quick chats"]}),f.jsx("div",{className:"max-h-24 overflow-y-auto",role:"listbox","aria-label":"Quick chats",children:u.map((h,v)=>f.jsxs("button",{type:"button",role:"option","aria-selected":v===m,"data-selected":v===m?"true":void 0,onMouseEnter:()=>c?.(v),onClick:()=>s(h),className:ae("flex w-full min-w-0 items-start gap-1.5 rounded-sm px-1 py-1 text-left text-[9px] transition-colors hover:bg-muted/50 hover:text-foreground"),children:[f.jsxs("span",{"data-quick-chat-alias":"true",className:ae("shrink-0 font-mono text-[9px] leading-3 text-primary/70",v===m&&"text-primary"),children:["/",h.alias]}),f.jsx("span",{"data-quick-chat-prompt":"true",className:ae("line-clamp-1 min-w-0 text-[9px] leading-3 text-muted-foreground",v===m&&"text-primary/90"),children:h.prompt})]},h.alias))})]})}const $j="h-14 w-full resize-none rounded-sm border border-border/70 bg-background/80 px-2 py-1.5 text-[11px] leading-4 ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50";let qj=0;function Oi(n,r=0){return{id:n?`${n.alias}:${r}`:`new:${qj++}`,alias:n?.alias??"",prompt:n?.prompt??""}}function Ef(n){return{quickChats:n.map(r=>({alias:h1(r.alias),prompt:r.prompt.trim()})).filter(r=>r.alias.length>0&&r.prompt.length>0)}}function Vj(n,r){const o=Ef(n).quickChats,s=r.map((u,m)=>Oi(u,m)),c=Ef(s).quickChats;return JSON.stringify(o)!==JSON.stringify(c)}function Yj(){const{error:n,loading:r,quickChats:o,save:s,saving:c}=Pj(),[u,m]=g.useState(()=>o.map((y,w)=>Oi(y,w))),h=u.length>0,v=g.useMemo(()=>Ef(u),[u]),p=g.useMemo(()=>Vj(u,o),[u,o]);g.useEffect(()=>{m(o.map((y,w)=>Oi(y,w)))},[o]);async function b(){try{await s(v.quickChats),_e.success("Quick chats saved")}catch(y){_e.error(y instanceof Error?y.message:"Failed to save quick chats")}}return f.jsxs("div",{className:"space-y-2",children:[f.jsx("div",{className:"rounded-sm border border-border/70 bg-background/75 px-3 py-2.5",children:f.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] font-semibold text-foreground",children:[f.jsx(oy,{className:"h-3.5 w-3.5 text-primary"}),"Quick chats"]}),f.jsx("div",{className:"mt-0.5 text-[10px] text-muted-foreground",children:"Reusable slash aliases for chat composers on this leader."})]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsxs(Ct,{type:"button",variant:"outline",onClick:()=>m(y=>[...y,Oi(void 0,y.length)]),className:"h-7 rounded-sm px-2 text-[10px]",children:[f.jsx(uT,{className:"h-3.5 w-3.5"}),"Add"]}),f.jsxs(Ct,{type:"button",onClick:b,disabled:c||!p,className:"h-7 rounded-sm px-2 text-[10px]",children:[c?f.jsx(ry,{className:"h-3.5 w-3.5 animate-spin"}):f.jsx(yT,{className:"h-3.5 w-3.5"}),"Save"]})]})]})}),r&&!h?f.jsx("div",{className:"rounded-sm border border-dashed border-border/70 bg-muted/20 px-3 py-4 text-[11px] text-muted-foreground",children:"Loading quick chats..."}):h?f.jsx("div",{className:"space-y-1.5",children:u.map((y,w)=>f.jsxs("div",{className:"grid gap-1.5 rounded-sm border border-border/60 bg-background/70 px-2 py-2 md:grid-cols-[12rem_minmax(0,1fr)_auto]",children:[f.jsx(vc,{"aria-label":`Quick chat ${w+1} alias`,value:y.alias,onChange:C=>m(N=>N.map(E=>E.id===y.id?{...E,alias:C.target.value}:E)),placeholder:"alias",className:"h-7 rounded-sm border-border/70 bg-background/80 px-2 font-mono text-[11px]"}),f.jsx("textarea",{"aria-label":`Quick chat ${w+1} prompt`,value:y.prompt,onChange:C=>m(N=>N.map(E=>E.id===y.id?{...E,prompt:C.target.value}:E)),placeholder:"Prompt text",className:$j}),f.jsx(Ct,{type:"button",variant:"ghost",size:"icon",onClick:()=>m(C=>C.filter(N=>N.id!==y.id)),"aria-label":`Remove quick chat ${w+1}`,className:"h-7 w-7 rounded-sm text-muted-foreground hover:bg-destructive/10 hover:text-destructive",children:f.jsx(_T,{className:"h-3.5 w-3.5"})})]},y.id))}):f.jsx("div",{className:"rounded-sm border border-dashed border-border/70 bg-muted/20 px-3 py-4 text-[11px] text-muted-foreground",children:"No quick chats configured."}),n&&f.jsx("div",{className:"rounded-sm border border-destructive/20 bg-destructive/10 px-3 py-2 text-[11px] text-destructive",children:n})]})}var yc="Checkbox",[Ij]=Za(yc),[Gj,fm]=Ij(yc);function Xj(n){const{__scopeCheckbox:r,checked:o,children:s,defaultChecked:c,disabled:u,form:m,name:h,onCheckedChange:v,required:p,value:b="on",internal_do_not_use_render:y}=n,[w,C]=_o({prop:o,defaultProp:c??!1,onChange:v,caller:yc}),[N,E]=g.useState(null),[T,A]=g.useState(null),k=g.useRef(!1),O=N?!!m||!!N.closest("form"):!0,B={checked:w,disabled:u,setChecked:C,control:N,setControl:E,name:h,form:m,value:b,hasConsumerStoppedPropagationRef:k,required:p,defaultChecked:Ia(c)?!1:c,isFormControl:O,bubbleInput:T,setBubbleInput:A};return f.jsx(Gj,{scope:r,...B,children:Qj(y)?y(B):s})}var g1="CheckboxTrigger",v1=g.forwardRef(({__scopeCheckbox:n,onKeyDown:r,onClick:o,...s},c)=>{const{control:u,value:m,disabled:h,checked:v,required:p,setControl:b,setChecked:y,hasConsumerStoppedPropagationRef:w,isFormControl:C,bubbleInput:N}=fm(g1,n),E=We(c,b),T=g.useRef(v);return g.useEffect(()=>{const A=u?.form;if(A){const k=()=>y(T.current);return A.addEventListener("reset",k),()=>A.removeEventListener("reset",k)}},[u,y]),f.jsx(Ue.button,{type:"button",role:"checkbox","aria-checked":Ia(v)?"mixed":v,"aria-required":p,"data-state":w1(v),"data-disabled":h?"":void 0,disabled:h,value:m,...s,ref:E,onKeyDown:ze(r,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:ze(o,A=>{y(k=>Ia(k)?!0:!k),N&&C&&(w.current=A.isPropagationStopped(),w.current||A.stopPropagation())})})});v1.displayName=g1;var mm=g.forwardRef((n,r)=>{const{__scopeCheckbox:o,name:s,checked:c,defaultChecked:u,required:m,disabled:h,value:v,onCheckedChange:p,form:b,...y}=n;return f.jsx(Xj,{__scopeCheckbox:o,checked:c,defaultChecked:u,disabled:h,required:m,onCheckedChange:p,name:s,form:b,value:v,internal_do_not_use_render:({isFormControl:w})=>f.jsxs(f.Fragment,{children:[f.jsx(v1,{...y,ref:r,__scopeCheckbox:o}),w&&f.jsx(S1,{__scopeCheckbox:o})]})})});mm.displayName=yc;var y1="CheckboxIndicator",b1=g.forwardRef((n,r)=>{const{__scopeCheckbox:o,forceMount:s,...c}=n,u=fm(y1,o);return f.jsx(Lo,{present:s||Ia(u.checked)||u.checked===!0,children:f.jsx(Ue.span,{"data-state":w1(u.checked),"data-disabled":u.disabled?"":void 0,...c,ref:r,style:{pointerEvents:"none",...n.style}})})});b1.displayName=y1;var x1="CheckboxBubbleInput",S1=g.forwardRef(({__scopeCheckbox:n,...r},o)=>{const{control:s,hasConsumerStoppedPropagationRef:c,checked:u,defaultChecked:m,required:h,disabled:v,name:p,value:b,form:y,bubbleInput:w,setBubbleInput:C}=fm(x1,n),N=We(o,C),E=Hb(u),T=Ab(s);g.useEffect(()=>{const k=w;if(!k)return;const O=window.HTMLInputElement.prototype,U=Object.getOwnPropertyDescriptor(O,"checked").set,Z=!c.current;if(E!==u&&U){const V=new Event("click",{bubbles:Z});k.indeterminate=Ia(u),U.call(k,Ia(u)?!1:u),k.dispatchEvent(V)}},[w,E,u,c]);const A=g.useRef(Ia(u)?!1:u);return f.jsx(Ue.input,{type:"checkbox","aria-hidden":!0,defaultChecked:m??A.current,required:h,disabled:v,name:p,value:b,form:y,...r,tabIndex:-1,ref:N,style:{...r.style,...T,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});S1.displayName=x1;function Qj(n){return typeof n=="function"}function Ia(n){return n==="indeterminate"}function w1(n){return Ia(n)?"indeterminate":n?"checked":"unchecked"}const E1=g.forwardRef(({className:n,...r},o)=>f.jsx(mm,{ref:o,className:ae("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),...r,children:f.jsx(b1,{className:ae("flex items-center justify-center text-current"),children:f.jsx(Ui,{className:"h-3.5 w-3.5"})})}));E1.displayName=mm.displayName;const i0=["queued","running"];function Kj(n){return n.map(r=>`${r.id}:${r.name}`).join("\0")}function Zj(n){return n==="claude"||n==="codex"||n==="copilot"}function N1(n){if(n.kind!=="agent.upgrade")return null;const r=n.payload?.agent;return Zj(r)?`${n.nodeId}:${r}`:null}function Fj(n){return n.status==="succeeded"||n.status==="failed"}async function T1(n,r={}){const o=r.getOperation??X0,s=r.pollIntervalMs??2e3,c=r.timeoutMs??24e4,u=Date.now()+c;let m=n;for(;!Fj(m)&&Date.now()<u;)await Jj(s),m=await o(n.id);return m}async function Wj(n,r=Q0){const o=new Set(n),s=await Promise.all(i0.map(u=>r({kind:"agent.upgrade",status:u}))),c=new Map;for(const u of s.flat()){if(!i0.includes(u.status)||o.size>0&&!o.has(u.nodeId))continue;const m=N1(u);if(!m)continue;const h=c.get(m);(!h||u.updatedAt>h.updatedAt)&&c.set(m,u)}return c}function Jj(n){return new Promise(r=>setTimeout(r,n))}const e_=1500,t_=1e3,n_=9e4;async function C1(n={}){const r=n.fetchHealth??a_,o=n.initialDelayMs??e_,s=n.pollIntervalMs??t_,c=n.previousPid,u=n.reload??(()=>window.location.reload()),m=n.sleep??o_,h=n.timeoutMs??n_,v=Date.now()+h;let p=!1;for(o>0&&await m(o);Date.now()<=v;){const b=r_(await r());if(!b.ok){p=!0,await m(s);continue}if(c===void 0||b.pid!==void 0&&b.pid!==c||p)return u(),!0;await m(s)}return!1}async function a_(){try{const n=await fetch("/api/system/health",{cache:"no-store"}),r=await n.json().catch(()=>null),o=r&&typeof r=="object"&&typeof r.pid=="number"?r.pid:void 0;return{ok:n.ok,pid:o}}catch{return!1}}function r_(n){return typeof n=="boolean"?{ok:n}:n}function o_(n){return new Promise(r=>window.setTimeout(r,n))}function l_(n,r=!0){return r?n?.restartMode==="development"?"Restart dev runtime":n?.updateAvailable?"Restart to update":"Restart runtime":n?.updateAvailable?"Restart follower to update":"Restart follower"}function s_({checkedLabel:n,disableAuthDefault:r,endpoint:o,isLiveLocalNode:s,nodeId:c,nodeName:u,onRefresh:m,pid:h,transportType:v,update:p,workDir:b}){const y=l_(p,s),[w,C]=g.useState(null),[N,E]=g.useState(()=>c0({disableAuthDefault:r,endpoint:o,nodeName:u,transportType:v,workDir:b})),[T,A]=g.useState(!1),[k,O]=g.useState(!1),[B,U]=g.useState(!1);g.useEffect(()=>{E(c0({disableAuthDefault:r,endpoint:o,nodeName:u,transportType:v,workDir:b}))},[r,o,u,v,b]);async function Z(){if(!c||T||k)return;const ce=p.updateAvailable?"update":"restart",ue=u_(N);if(N.port.trim()&&ue?.port===void 0){_e.error("Runtime restart port must be a positive integer");return}const W=ue?{reason:ce,startArgs:ue}:{reason:ce};A(!0);try{if(s){const _=await K0(W);C({..._,pid:_.pid??h,status:"accepted"}),_e.info(`Restarting ${u} from a detached helper. PID ${_.pid??h??"unknown"} will not stay attached to the original terminal window; follow ${_.logPath} for launch output.`),C1({previousPid:_.pid??h}).then(P=>{P||(A(!1),_e.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout. Refresh the page after the node finishes starting."))}).catch(P=>{A(!1),_e.error(P instanceof Error?P.message:"Runtime restart recovery failed")});return}const ee=await QE(c,W);C({operationId:ee.id,pid:h,status:ee.status}),_e.info(`Restart requested on ${u}. Operation ${Kd(ee.id)} will hand off to a detached process, so the new runtime will not stay attached to the original terminal window.`);const le=await T1(ee,{timeoutMs:6e4}),J=c_(le);C({command:J?.command,logPath:J?.logPath,mode:J?.mode,operationId:le.id,pid:J?.pid??h,status:le.status}),le.status==="succeeded"?(await m?.(),_e.success(`Restart handoff accepted on ${u}. Follow ${J?.logPath??"the node restart log"} for launch output.`)):le.status==="failed"?_e.error(le.error??`Restart failed on ${u}`):_e.info(`Restart operation ${Kd(le.id)} is still ${le.status}. More details will update after the node reports back.`),A(!1)}catch(ee){A(!1),_e.error(ee instanceof Error?ee.message:"Runtime restart failed")}}async function V(){if(!(!s||T||k)){O(!0);try{const ce=await IE();_e.info(`Stopping Meshy process ${ce.pid}`)}catch(ce){O(!1),_e.error(ce instanceof Error?ce.message:"Runtime stop failed")}}}const $=T?"restarting":k?"stopping":w?.status??"idle",G=p.restartMode==="development";return f.jsxs("div",{className:"overflow-hidden rounded-sm border border-border/70 bg-background/70",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(zi,{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:G?"Development launcher":`Latest ${p.latestVersion??"—"}`})]})]}),f.jsx("div",{className:"flex items-center gap-1.5",children:f.jsx(_t,{variant:p.updateAvailable?"default":"outline",className:"rounded-sm border-border/70 bg-background/60 px-1.5 py-0 font-mono text-[10px]",children:G?"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:$})]})]}),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:[s&&f.jsxs(xf,{children:[f.jsx(Sf,{asChild:!0,children:f.jsxs(Ct,{type:"button",size:"sm",variant:"ghost",disabled:T||k,className:"h-7 rounded-sm px-2 text-[11px] text-muted-foreground hover:bg-destructive/10 hover:text-destructive",children:[f.jsx(fT,{className:ae("mr-1 h-3.5 w-3.5",k&&"animate-pulse")}),k?"Stopping":"Stop"]})}),f.jsxs(Ii,{className:"max-w-[22rem] gap-2 rounded-sm p-4",children:[f.jsxs(Gi,{className:"space-y-1",children:[f.jsx(Qi,{className:"text-sm",children:"Stop runtime?"}),f.jsx(Ki,{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(Xi,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(Fi,{className:"h-7 rounded-sm px-2 text-[11px]",children:"Cancel"}),f.jsx(Zi,{className:"h-7 rounded-sm bg-destructive px-2 text-[11px] text-destructive-foreground hover:bg-destructive/90",onClick:()=>{V()},children:"Stop runtime"})]})]})]}),f.jsxs(xf,{children:[f.jsx(Sf,{asChild:!0,children:f.jsxs(Ct,{type:"button",size:"sm",variant:p.updateAvailable?"default":"outline",disabled:!c||T||k,className:"h-7 rounded-sm px-2 text-[11px]",children:[f.jsx(Ri,{className:ae("mr-1 h-3.5 w-3.5",T&&"animate-spin")}),T?"Restarting…":y]})}),f.jsxs(Ii,{className:"max-w-[28rem] gap-3 rounded-sm p-4",children:[f.jsxs(Gi,{className:"space-y-1",children:[f.jsxs(Qi,{className:"text-sm",children:[y,"?"]}),f.jsxs(Ki,{className:"text-[11px] leading-4",children:["Starts a detached restart helper, shuts down ",s?"the current node":u,", and brings it back with the configured launcher. The new process will not stay attached to the original terminal window."]})]}),f.jsx(i_,{value:N,onChange:E}),f.jsxs(Xi,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(Fi,{className:"h-7 rounded-sm px-2 text-[11px]",children:"Cancel"}),f.jsx(Zi,{className:"h-7 rounded-sm px-2 text-[11px]",onClick:()=>{Z()},children:y})]})]})]})]})]}),f.jsxs("div",{className:"border-t border-border/50",children:[f.jsxs("button",{type:"button",onClick:()=>U(ce=>!ce),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(uy,{className:"h-3 w-3"}),"Restart details"]}),f.jsx(Zl,{className:ae("h-3 w-3 transition-transform duration-150",B&&"rotate-180")})]}),B&&f.jsxs("div",{className:"border-t border-border/50 bg-muted/20 px-3 py-2 space-y-1",children:[f.jsx(wr,{label:"Current PID",value:h===void 0?"—":String(h),mono:h!==void 0}),f.jsx(wr,{label:"Restart PID",value:w?.pid===void 0?"Pending":String(w.pid),mono:w?.pid!==void 0}),f.jsx(wr,{label:"Operation",value:w?.operationId?Kd(w.operationId):"Local direct request",mono:!!w?.operationId}),f.jsx(wr,{label:"Status",value:w?.status??(T?"requested":"idle")}),f.jsx(wr,{label:"Launcher",value:w?.command??"Available after restart",mono:!!w?.command}),f.jsx(wr,{label:"Log",value:w?.logPath??"Available after restart",mono:!!w?.logPath}),f.jsx(wr,{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 i_({onChange:n,value:r}){const o=(s,c)=>{n({...r,[s]: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(Pl,{label:"HTTP port",value:r.port,onChange:s=>o("port",s),inputMode:"numeric"}),f.jsx(Pl,{label:"Node name",value:r.name,onChange:s=>o("name",s)}),f.jsx(Pl,{label:"Join endpoint",value:r.join,onChange:s=>o("join",s),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(wx,{value:r.transport,onValueChange:s=>o("transport",R1(s)),children:[f.jsx(cm,{className:"h-7 rounded-md border-border/70 bg-background/70 px-2 text-[10px]",children:f.jsx(Ex,{placeholder:"Transport"})}),f.jsxs(um,{children:[f.jsx(Ro,{className:"py-1 text-[11px]",value:"inherit",children:"current / default"}),f.jsx(Ro,{className:"py-1 text-[11px]",value:"direct",children:"direct"}),f.jsx(Ro,{className:"py-1 text-[11px]",value:"devtunnel",children:"devtunnel"}),f.jsx(Ro,{className:"py-1 text-[11px]",value:"tailscale",children:"tailscale"})]})]})]}),f.jsx(Pl,{label:"Working directory",value:r.workDir,onChange:s=>o("workDir",s)}),f.jsx(Pl,{label:"Config path",value:r.config,onChange:s=>o("config",s),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(E1,{className:"h-3.5 w-3.5",checked:r.disableAuth,onCheckedChange:s=>n({...r,disableAuth:s===!0,disableAuthKnown:!0})}),"Disable auth"]})]})]})}function Pl({className:n,inputMode:r,label:o,onChange:s,value:c}){return f.jsxs("label",{className:ae("space-y-1",n),children:[f.jsx("span",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:o}),f.jsx(vc,{className:"h-7 rounded-md px-2 text-[10px]",inputMode:r,value:c,onChange:u=>s(u.target.value)})]})}function wr({label:n,value:r,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:ae("break-all text-right text-foreground",o&&"font-mono"),children:r})]})}function c_(n){const r=n.result;if(!r||typeof r!="object")return null;const o=r;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 c0(n){return{port:d_(n.endpoint),name:n.nodeName,join:"",transport:R1(n.transportType),workDir:n.workDir??"",config:"",disableAuth:n.disableAuthDefault===!0,disableAuthKnown:n.disableAuthDefault!==void 0}}function u_(n){const r={},o=Number(n.port.trim());return n.port.trim()&&Number.isInteger(o)&&o>0&&(r.port=o),n.name.trim()&&(r.name=n.name.trim()),n.join.trim()&&(r.join=n.join.trim()),n.transport!=="inherit"&&(r.transport=n.transport),n.workDir.trim()&&(r.workDir=n.workDir.trim()),n.config.trim()&&(r.config=n.config.trim()),n.disableAuthKnown&&(r.disableAuth=n.disableAuth),Object.keys(r).length>0?r:void 0}function R1(n){return n==="direct"||n==="devtunnel"||n==="tailscale"?n:"inherit"}function d_(n){if(!n)return"";try{return new URL(n).port||""}catch{return""}}function Kd(n){return n.length<=8?n:n.slice(0,8)}function $l({formatDateTime:n,name:r,status:o,statusVariant:s}){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:r}),f.jsx("div",{className:"text-[10px] text-muted-foreground",children:n(o?.checkedAt)})]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[typeof o?.authenticated=="boolean"&&f.jsx(_t,{variant:o.authenticated?"default":"outline",className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:o.authenticated?"auth ok":"auth required"}),f.jsx(_t,{variant:s(o?.status),className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:o?.status??"unknown"})]})]})}function qt(n){if(n==null||n==="")return"Unavailable";const r=new Date(n);return Number.isNaN(r.getTime())?"Unavailable":new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(r)}function f_(n){const r=Math.max(0,Math.floor(n)),o=Math.floor(r/86400),s=Math.floor(r%86400/3600),c=Math.floor(r%3600/60);return o>0?`${o}d ${s}h`:s>0?`${s}h ${c}m`:`${c}m`}function u0(n){if(n==null||Number.isNaN(n))return"Unavailable";const r=["B","KB","MB","GB","TB"];let o=n,s=0;for(;o>=1024&&s<r.length-1;)o/=1024,s+=1;return`${o.toFixed(o>=10||s===0?0:1)} ${r[s]}`}function To(n){return n==="ok"?"default":n==="missing"||n==="install-failed"||n==="login-failed"?"destructive":n==="not-authenticated"||n==="unsupported-platform"?"outline":"secondary"}function m_(n){return n.available?f.jsx("span",{"data-agent-availability":"available","aria-label":"Available",title:"Available",className:"inline-flex h-5 w-5 items-center justify-center text-emerald-500",children:f.jsx(Co,{className:"h-3.5 w-3.5"})}):f.jsx("span",{"data-agent-availability":"unavailable","aria-label":"Unavailable",title:"Unavailable",className:"inline-flex h-5 w-5 items-center justify-center text-destructive",children:f.jsx(of,{className:"h-3.5 w-3.5"})})}function h_(n){return n.update?n.update.updateAvailable?f.jsxs(_t,{variant:"outline",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.14em]",children:["Update ",n.update.latestVersion]}):f.jsx(_t,{variant:"secondary",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.14em]",children:"Up to date"}):null}function p_(n){return n.available?null:n.metadataStatus??null}function g_(n){const r=`npm install -g ${n.update?.packageName}@latest`;return n.id==="claude"?`${r} --include=optional --ignore-scripts=false`:r}function v_(n){return n.error?n.error:n.result?.detail??null}function Fe({label:n,value:r,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:ae("break-all text-right text-[11px] text-foreground",o&&"font-mono text-[11px]"),children:r})]})}function ql({label:n,value:r,mono:o=!1,className:s}){return f.jsxs("div",{className:ae("min-w-0 space-y-0.5",s),children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:n}),f.jsx("div",{className:ae("truncate text-[11px] text-foreground",o&&"font-mono",n==="Path"&&"break-all whitespace-normal"),children:r})]})}function y_({agent:n,nodeName:r,activeOperation:o,onUpgrade:s}){const c=n.update?.updateAvailable===!0,u=h_(n),m=!!o,h=p_(n);return f.jsxs("div",{className:"rounded-sm 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(ey,{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:[m_(n),h&&f.jsx(_t,{variant:To(h),className:"rounded-sm px-1.5 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(ql,{label:"Version",value:n.version??"Unavailable",mono:!!n.version}),n.update&&f.jsx(ql,{label:"Latest",value:n.update.latestVersion??"Unavailable",mono:!!n.update.latestVersion}),f.jsx(ql,{label:"Checked",value:qt(n.checkedAt)}),n.update&&f.jsx(ql,{label:"Update check",value:qt(n.update.checkedAt)}),f.jsx(ql,{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(_t,{variant:"outline",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.14em]",children:["Upgrade ",o.status]}):c?f.jsxs(xf,{children:[f.jsx(Sf,{asChild:!0,children:f.jsx("button",{type:"button",disabled:m,className:"rounded-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/45 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60",children:u})}),f.jsxs(Ii,{children:[f.jsxs(Gi,{children:[f.jsxs(Qi,{children:["Upgrade ",n.label,"?"]}),f.jsxs(Ki,{children:["This runs ",g_(n)," on ",r,". Remote nodes execute the command on the remote machine."]})]}),f.jsxs(Xi,{children:[f.jsx(Fi,{children:"Cancel"}),f.jsx(Zi,{onClick:()=>s(n),children:"Upgrade"})]})]})]}):u})]}),n.update?.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 b_(n,r){return n?.nodes?.length?n.nodes:r?[r]:[]}function x_(n,r){if(r&&n.id===r.nodeId)return r;const o=n.settingsSnapshot;return{...n,nodeId:n.id,version:o?.version??"Unavailable",packageName:o?.packageName,uptime:o?.uptime??0,localDashboardOrigin:o?.runtime?.localDashboardOrigin??void 0,auth:o?.auth,os:o?.os,runtime:o?.runtime,runtimeUpdate:o?.runtimeUpdate,agents:o?.agents,startupRequirements:o?.startupRequirements,components:o?.components,repository:o?.repository,packages:o?.packages}}function S_(n,r){return n.id===r?`${n.name} (this node)`:`${n.name} (${n.role})`}function w_(n){return n==="claude"?"Claude Code":n==="copilot"?"Copilot CLI":"Codex"}function E_(n){const r=n.payload?.agent;return r==="claude"||r==="codex"||r==="copilot"?r:null}function N_({cluster:n,systemInfo:r,sseConnected:o,initialSelectedNodeId:s,onRefresh:c}){const u=g.useMemo(()=>b_(n,r),[n,r]),[m,h]=g.useState(()=>s??r?.nodeId??n?.self?.id??""),[v,p]=g.useState(()=>new Map),b=g.useRef(new Set),y=g.useRef(new Set),w=n?.self??r??u[0]??null,C=u.find(G=>G.id===m)??w,N=C?x_(C,r):null,E=!!(r&&C&&C.id===r.nodeId),T=E||!!C?.settingsSnapshot,A=N?.runtimeUpdate,k=N?.startupRequirements?.components??N?.components??{},O=g.useMemo(()=>u.map(G=>G.id),[u]),B=O.join("\0"),U=Kj(u),Z=g.useMemo(()=>new Map(u.map(G=>[G.id,G.name])),[U]);g.useEffect(()=>{s&&O.includes(s)&&h(s)},[s,B]);const V=g.useCallback(async(G,ce)=>{const ue=N1(G);if(!ue||b.current.has(G.id))return;const W=E_(G),ee=ce?.agentLabel??(W?w_(W):"Agent"),le=ce?.nodeName??Z.get(G.nodeId)??G.nodeId;b.current.add(G.id),p(J=>new Map(J).set(ue,G));try{const J=await T1(G);if(J.status==="succeeded")await c?.(),y.current.has(J.id)||(_e.success(`${ee} upgrade finished on ${le}`),y.current.add(J.id));else if(J.status==="failed")y.current.has(J.id)||(_e.error(v_(J)??`${ee} upgrade failed`),y.current.add(J.id));else{p(_=>new Map(_).set(ue,J)),_e.info(`${ee} upgrade is still ${J.status} on ${le}`);return}p(_=>{const P=new Map(_),X=P.get(ue);return(!X||X.id===J.id)&&P.delete(ue),P})}catch(J){p(_=>{const P=new Map(_),X=P.get(ue);return(!X||X.id===G.id)&&P.delete(ue),P}),_e.error(J instanceof Error?J.message:`${ee} upgrade failed`)}finally{b.current.delete(G.id)}},[c,Z]);g.useEffect(()=>{if(O.length===0)return;let G=!1;async function ce(){let ue;try{ue=await Wj(O)}catch{return}if(!G){p(W=>{const ee=new Map(W);for(const[le,J]of ue)ee.set(le,J);return ee});for(const W of ue.values())V(W)}}return ce(),()=>{G=!0}},[V,B]);async function $(G){if(C)try{const ce=await XE(C.id,G.id);_e.info(`${G.label} upgrade started on ${C.name}`),await V(ce,{agentLabel:G.label,nodeName:C.name})}catch(ce){_e.error(ce instanceof Error?ce.message:`${G.label} upgrade failed`)}}return!C||!N?f.jsx("div",{className:"rounded-sm border border-dashed border-border/70 bg-muted/20 px-3 py-5 text-center text-[11px] text-muted-foreground",children:"Loading session metadata..."}):f.jsxs("div",{className:"space-y-3",children:[f.jsxs("section",{className:"relative mt-1 rounded-sm border border-border/70 bg-background/75 p-3 shadow-none",children:[!E&&f.jsxs(_t,{variant:"outline",className:"absolute right-3 top-2.5 rounded-sm border-border/70 bg-background/60 px-1.5 py-0 text-[10px] uppercase tracking-[0.16em] whitespace-nowrap",children:["Updated ",qt(C.settingsSnapshot?.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-sm border border-border/70 bg-background/75 px-1.5 py-0 text-[10px] text-muted-foreground",children:[f.jsx(mj,{status:C.status}),f.jsx("span",{className:"font-medium text-foreground",children:C.name})]}),f.jsx(hj,{role:C.role}),f.jsx(_t,{variant:"outline",className:"rounded-sm border-border/70 bg-background/60 px-1.5 py-0 text-[10px] uppercase tracking-[0.16em]",children:C.transportType??N.transportType??"direct"}),f.jsx(_t,{variant:E?"default":"outline",className:"rounded-sm px-1.5 py-0 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."})]}),u.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(wx,{value:C.id,onValueChange:h,children:[f.jsx(cm,{className:"h-7 rounded-sm border-border/70 bg-background/70 text-[11px]",children:f.jsx(Ex,{placeholder:"Choose a node"})}),f.jsx(um,{className:"settings-node-select-content rounded-sm text-[10px] leading-4",children:u.map(G=>f.jsx(Ro,{value:G.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:S_(G,r?.nodeId)},G.id))})]})]})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsxs(_t,{variant:o?"default":"outline",className:"gap-1 rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.16em]",children:[f.jsx(hT,{className:"h-3 w-3"}),o?"Live link":"Reconnecting"]}),f.jsxs(_t,{variant:"outline",className:"rounded-sm border-border/70 bg-background/60 px-1.5 py-0 text-[10px] uppercase tracking-[0.16em]",children:["Uptime ",f_(N.uptime)]})]})]})]}),!T&&f.jsx("div",{className:"rounded-sm 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(Wk,{defaultValue:"session",className:"space-y-2",children:[f.jsxs(Ix,{className:"h-auto flex-wrap rounded-sm border border-border/60 bg-muted/40 p-0.5",children:[f.jsx(Il,{value:"session",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Session"}),f.jsx(Il,{value:"access",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Access"}),f.jsx(Il,{value:"quick-chats",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Quick chats"}),f.jsx(Il,{value:"about",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"About"})]}),f.jsxs(Gl,{value:"session",className:"mt-0 grid gap-2 xl:grid-cols-[1.15fr_0.85fr]",children:[f.jsxs(Sn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(wn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(En,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(iy,{className:"h-3.5 w-3.5 text-primary"}),"Selected node"]}),f.jsx(Nn,{className:"text-[10px]",children:"Cluster role, identity, and node-scoped runtime state."})]}),f.jsxs(Tn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(Fe,{label:"Node ID",value:N.nodeId,mono:!0}),f.jsx(Fe,{label:"Status",value:C.status}),f.jsx(Fe,{label:"Role",value:C.role}),f.jsx(Fe,{label:"Endpoint",value:C.endpoint,mono:!0}),f.jsx(Fe,{label:"Joined",value:qt(C.joinedAt)}),f.jsx(Fe,{label:"Heartbeat",value:qt(C.lastHeartbeat)}),f.jsx(Fe,{label:"Capabilities",value:C.capabilities.length>0?C.capabilities.join(", "):"None"})]})]}),f.jsxs(Sn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(wn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(En,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(XN,{className:"h-3.5 w-3.5 text-primary"}),"OS info"]}),f.jsx(Nn,{className:"text-[10px]",children:"Host and resource details reported by the current process."})]}),f.jsxs(Tn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(Fe,{label:"Host",value:N.os?.hostname??"Unavailable"}),f.jsx(Fe,{label:"Platform",value:N.os?`${N.os.platform} ${N.os.release}`:"Unavailable"}),f.jsx(Fe,{label:"Arch",value:N.os?.arch??"Unavailable"}),f.jsx(Fe,{label:"CPU",value:N.os?.cpuModel??"Unavailable"}),f.jsx(Fe,{label:"Cores",value:String(N.os?.cpuCount??"Unavailable")}),f.jsx(Fe,{label:"Memory",value:N.os?`${u0(N.os.freeMemoryBytes)} free / ${u0(N.os.totalMemoryBytes)} total`:"Unavailable"})]})]}),A&&f.jsx("div",{className:"xl:col-span-2",children:f.jsx(s_,{checkedLabel:qt(A.checkedAt),disableAuthDefault:N.auth?.enabled===void 0?void 0:N.auth.enabled===!1,endpoint:C.endpoint,isLiveLocalNode:E,nodeId:C.id,nodeName:C.name,onRefresh:c,pid:N.runtime?.pid,transportType:C.transportType,update:A,workDir:N.runtime?.workDir??C.workDir})}),f.jsx(Uj,{nodeId:C.id,nodeName:C.name}),f.jsxs(Sn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none xl:col-span-2",children:[f.jsxs(wn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(En,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(ey,{className:"h-3.5 w-3.5 text-primary"}),"Available agents"]}),f.jsx(Nn,{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(Tn,{"data-agent-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:(N.agents??[]).map(G=>f.jsx(y_,{agent:G,nodeName:C.name,activeOperation:v.get(`${C.id}:${G.id}`),onUpgrade:$},G.id))})]})]}),f.jsxs(Gl,{value:"access",className:"mt-0 grid gap-2 xl:grid-cols-2",children:[f.jsxs(Sn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(wn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(En,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(ty,{className:"h-3.5 w-3.5 text-primary"}),"Access surface"]}),f.jsx(Nn,{className:"text-[10px]",children:"How this node is exposed to the dashboard and other peers."})]}),f.jsxs(Tn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(Fe,{label:"Transport",value:C.transportType??N.transportType??"direct"}),f.jsx(Fe,{label:"Node URL",value:C.endpoint,mono:!0}),f.jsx(Fe,{label:"Node tunnel",value:C.devtunnelEndpoint??"Disabled",mono:!!C.devtunnelEndpoint}),f.jsx(Fe,{label:"Dashboard URL",value:C.dashboardOrigin??N.localDashboardOrigin??"Unavailable",mono:!!(C.dashboardOrigin||N.localDashboardOrigin)}),f.jsx(Fe,{label:"Local dashboard",value:N.localDashboardOrigin??"Unavailable",mono:!!N.localDashboardOrigin})]})]}),f.jsxs(Sn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(wn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(En,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(TT,{className:"h-3.5 w-3.5 text-primary"}),"Auth"]}),f.jsx(Nn,{className:"text-[10px]",children:"Current bearer-auth and trusted access posture."})]}),f.jsxs(Tn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(Fe,{label:"Enabled",value:N.auth?.enabled?"Yes":"No"}),f.jsx(Fe,{label:"Same tenant",value:N.auth?.allowSameTenant?"Allowed":"Off"}),f.jsx(Fe,{label:"Allowed users",value:N.auth?.allowedUsers.length?N.auth.allowedUsers.join(", "):"None"})]})]}),f.jsxs(Sn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(wn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(En,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(ZN,{className:"h-3.5 w-3.5 text-primary"}),"Paths"]}),f.jsx(Nn,{className:"text-[10px]",children:"Workspace and runtime paths currently used by this node."})]}),f.jsxs(Tn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(Fe,{label:"Work dir",value:N.runtime?.workDir??N.workDir??"Unavailable",mono:!!(N.runtime?.workDir??N.workDir)}),f.jsx(Fe,{label:"Storage",value:N.runtime?.storagePath??"Unavailable",mono:!!N.runtime?.storagePath}),f.jsx(Fe,{label:"Process cwd",value:N.runtime?.cwd??"Unavailable",mono:!!N.runtime?.cwd}),f.jsx(Fe,{label:"Started",value:qt(N.runtime?.startedAt)}),f.jsx(Fe,{label:"PID",value:N.runtime?String(N.runtime.pid):"Unavailable",mono:!!N.runtime})]})]}),f.jsxs(Sn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(wn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(En,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(zi,{className:"h-3.5 w-3.5 text-primary"}),"Startup checks"]}),f.jsx(Nn,{className:"text-[10px]",children:"Dependency preflight snapshot persisted during node startup."})]}),f.jsxs(Tn,{className:"space-y-3 px-3 pb-2.5",children:[f.jsxs("div",{className:"rounded-sm 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:qt(N.startupRequirements?.lastCheckedAt)})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsx($l,{formatDateTime:qt,name:"Azure CLI",status:k.az,statusVariant:To}),f.jsx($l,{formatDateTime:qt,name:"DevTunnel",status:k.devtunnel,statusVariant:To}),f.jsx($l,{formatDateTime:qt,name:"Claude Code",status:k.claude,statusVariant:To}),f.jsx($l,{formatDateTime:qt,name:"Codex",status:k.codex,statusVariant:To}),f.jsx($l,{formatDateTime:qt,name:"Copilot CLI",status:k.copilot,statusVariant:To})]})]})]})]}),f.jsx(Gl,{value:"quick-chats",className:"mt-0",children:f.jsx(Yj,{})}),f.jsx(vj,{formatDateTime:qt,viewInfo:N})]})]})}function T_({initialSelectedNodeId:n,open:r,onOpenChange:o,showTrigger:s=!0}={}){const{cluster:c,systemInfo:u,sseConnected:m,refresh:h}=W0();return f.jsx($5,{open:r,onOpenChange:o,showTrigger:s,children:f.jsx(N_,{cluster:c,systemInfo:u,sseConnected:m,initialSelectedNodeId:n,onRefresh:h})})}const Ji="meshy:show-live-events";function A1(){const n=globalThis.window;if(!n)return;const r=typeof n.CustomEvent=="function"?new n.CustomEvent(Ji):new n.Event(Ji);n.dispatchEvent(r)}function aM(n){const r=globalThis.window;return r?(r.addEventListener(Ji,n),()=>r.removeEventListener(Ji,n)):()=>{}}const C_={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"},R_={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 A_(n){return n.split(".")[0]??"unknown"}function k_(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function Eo(n,r,o){return typeof o=="string"&&o.length>0?o:r?.get(n)??n}function k1(n,r){const o=n.data,s=o.operation;switch(n.type){case"node.joined":return`${o.name} joined the cluster`;case"node.left":return`${Eo(o.nodeId,r,o.name)} left (${o.reason})`;case"node.status":return`${Eo(o.nodeId,r)} is now ${o.status}`;case"node.operation.created":return`${s?.kind} ${s?.status} on ${Eo(s?.nodeId,r)}`;case"node.operation.updated":return`${s?.kind} ${s?.status} on ${Eo(s?.nodeId,r)}`;case"transport.changed":return`${Eo(o.nodeId,r)} transport switched to ${o.transportType}`;case"task.created":return`"${o.title}" created`;case"task.assigned":return`task assigned to ${Eo(o.nodeId,r)}`;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 j_(n){return JSON.stringify(n,null,2)}function __({events:n,maxHeight:r="400px",nodeNameById:o,onDismiss:s,onSelect:c,density:u="default"}){if(n.length===0)return null;const m=u==="compact";return f.jsx("div",{className:"overflow-y-auto pr-1",style:{maxHeight:r},children:f.jsx("div",{className:"space-y-1.5",children:n.map(h=>{const v=A_(h.type);return f.jsx("div",{onClick:c?()=>c(h.id):void 0,onKeyDown:c?p=>{p.target===p.currentTarget&&(p.key!=="Enter"&&p.key!==" "||(p.preventDefault(),c(h.id)))}:void 0,"data-click-open-live-events":c?"true":void 0,role:c?"button":void 0,tabIndex:c?0:void 0,title:c?"Open in Live events":void 0,className:ae("transition-colors hover:bg-muted/30",c&&"cursor-pointer",m?"rounded-sm px-1 py-0.5":"rounded-sm 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:ae("font-mono text-muted-foreground",m?"text-[8px]":"text-[9px]"),children:k_(h.timestamp)}),m?f.jsx("span",{className:ae("max-w-[8.5rem] truncate text-[7px] font-medium uppercase tracking-[0.08em] text-muted-foreground/70",R_[v]),children:h.type}):f.jsx(_t,{variant:"outline",className:ae("w-fit text-[9px] font-medium uppercase tracking-[0.14em] px-1.5 py-0",C_[v]),children:h.type})]}),f.jsxs("div",{className:ae("flex shrink-0 items-center",m?"gap-px":"gap-0.5"),children:[f.jsx(Ct,{type:"button",variant:"ghost",size:"icon",className:ae("rounded-sm text-muted-foreground hover:text-foreground",m?"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:p=>{p.stopPropagation(),m1(j_(h),"Event copied")},"aria-label":`Copy ${h.type} event`,title:"Copy event",children:f.jsx(ny,{className:m?"h-2.5 w-2.5":"h-3 w-3"})}),s&&f.jsx(Ct,{type:"button",variant:"ghost",size:"icon",className:ae("rounded-sm text-muted-foreground hover:text-foreground",m?"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:p=>{p.stopPropagation(),s(h.id)},"aria-label":`Dismiss ${h.type} event`,title:"Dismiss event",children:f.jsx(dy,{className:m?"h-2.5 w-2.5":"h-3 w-3"})})]})]}),f.jsx("div",{className:"text-[9px] leading-snug text-foreground/85",children:k1(h,o)})]})},h.id)})})})}function j1(n){return n!==null}function _1(n){return n==="click"?n:"hover"}function Nf(n){return n==="hover"?null:n}function O1(n){return n==="click"?null:"click"}const O_=["node.","election.","transport."],M_="cluster.state";function D_(n){return n.type==="node.status"?!1:O_.some(r=>n.type.startsWith(r))}function z_(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function U_(n,r){return n?{time:z_(n.timestamp),text:k1(n,r)}:null}function L_(n){return n.transportType==="devtunnel"||!!n.devtunnelEndpoint}function B_(n){if(n.length===0)return"No node tunnel";const r=n.filter(c=>c.status==="offline").length;if(r>0)return`${r} offline`;const o=n.filter(c=>c.devtunnelHealth?.status==="failed").length;if(o>0)return`${o} failed`;const s=n.filter(c=>c.status!=="offline"&&c.devtunnelHealth?.status!=="healthy").length;return s>0?`${s} checking`:"Healthy"}function H_(n,r){const o=r?.get(n.id)??n.name??n.id;if(n.status==="offline")return{label:o,status:"offline"};const s=n.devtunnelHealth?.status??"checking";return{label:o,status:s}}function P_(n){if(n.length===0)return"No nodes";const r=n.filter(s=>s.status==="offline").length;if(r>0)return`${r} offline`;const o=n.filter(s=>s.status==="busy").length;return o>0?`${o} busy`:"Healthy"}function $_(n,r){return{label:r?.get(n.id)??n.name??n.id,status:n.status}}function q_({connected:n,events:r,nodes:o=[],currentNode:s=null,nodeNameById:c,desktopUpdate:u=null,desktopUpdateCheckPending:m=!1,desktopUpdateProgress:h=null,defaultOpen:v=!1,defaultActionMenuOpen:p=!1,onDesktopUpdateCheck:b,onDesktopUpdate:y,onDesktopRestart:w,onReload:C,onRestart:N}){const[E,T]=g.useState(v?"click":null),[A,k]=g.useState(p),[O,B]=g.useState(!0),[U,Z]=g.useState(new Set),[V,$]=g.useState(!1),[G,ce]=g.useState(!1),ue=j1(E),W=g.useRef(null),ee=g.useRef(null),le=g.useMemo(()=>r.filter(ye=>D_(ye)&&!U.has(ye.id)),[r,U]),J=g.useMemo(()=>r.find(ye=>ye.type===M_)??le[0],[r,le]),_=g.useMemo(()=>U_(J,c),[J,c]),P=g.useMemo(()=>{const ye=new Map(o.map(Xe=>[Xe.id,Xe]));return s&&ye.set(s.id,s),Array.from(ye.values())},[s,o]),X=g.useMemo(()=>P.filter(L_),[P]),fe=X.some(ye=>ye.status==="offline"||ye.devtunnelHealth?.status==="failed"),R=P.some(ye=>ye.status==="offline"),Y=P.some(ye=>ye.status==="busy"),se=P.length>0,Q=s?.name??"offline",oe=s?.role==="leader"?"Leader":s?.role==="follower"?"Follower":"Node",te=u!==null,ne=!!(te&&u?.updateAvailable&&u.latestVersion),ie=u?.latestVersion??null,de=!!(te&&!ne&&ie),xe=!!(te&&u?.detail==="Checking desktop update..."),Ce=!!(te&&!ne&&!ie&&u?.detail&&!xe),Ne=h?.percent??null,Re=Ne===null?null:`${Ne}%`,et=V?"Relaunching runtime...":"Relaunch to apply update",rt=Re?`Downloading ${Re}`:G?"Downloading and installing desktop update...":ne&&ie?`Available version ${ie}`:Ce?u?.detail??"Desktop update unavailable":"Desktop is current",hn=!!C,pn=!!(te&&w),Ja=!!(te&&b)||hn||pn,pt=te||!!N,jr=te||!!N||hn,Yn=pt?te?ne?"Update":de?"Latest":"Check":"Relaunch":"Reload",it=te&&!ne,gn=it?"Check":Yn,_r=pt?te?rt:et:"Reload dashboard page",pa=pt?te?G||h!==null:V:!1,Yt=pt?te?pa||!ne||!y:pa:!1,Rt=m||G||!b,Ut=te?ne&&ie?`Install desktop update ${ie}`:Ce?"Desktop update unavailable":"Desktop is current":pt?V?"Relaunching runtime":"Relaunch runtime":"Reload dashboard page";function Je(){ee.current&&(clearTimeout(ee.current),ee.current=null)}function On(){Je(),T(ye=>_1(ye))}function Or(){Je(),ee.current=setTimeout(()=>{T(ye=>Nf(ye)),ee.current=null},180)}function Mn(){Je()}function ga(){Je(),T(ye=>Nf(ye))}async function va(){if(!(!N||V)){$(!0);try{await N()}finally{$(!1)}}}async function nn(){if(!(!ne||!y||G)){ce(!0);try{await y()}finally{ce(!1)}}}async function In(){!b||m||G||await b()}async function Gn(){if(!(!w||V)){k(!1),$(!0);try{await w()}finally{$(!1)}}}async function ya(){if(!pt){await Lt();return}if(te){await nn();return}await va()}async function Lt(){C&&(k(!1),await C())}function er(){Z(ye=>{const Xe=new Set(ye);return le.forEach(me=>Xe.add(me.id)),Xe})}function tr(){A1(),T(null)}return g.useEffect(()=>()=>{Je()},[]),g.useEffect(()=>{Z(ye=>{if(ye.size===0)return ye;const Xe=new Set(r.map(He=>He.id)),me=new Set(Array.from(ye).filter(He=>Xe.has(He)));return me.size===ye.size?ye:me})},[r]),g.useEffect(()=>{ue||k(!1)},[ue]),g.useEffect(()=>{if(!ue)return;const ye=me=>{W.current?.contains(me.target)||(Je(),k(!1),T(null))},Xe=me=>{me.key==="Escape"&&(Je(),k(!1),T(null))};return document.addEventListener("pointerdown",ye),document.addEventListener("keydown",Xe),()=>{document.removeEventListener("pointerdown",ye),document.removeEventListener("keydown",Xe)}},[ue]),f.jsxs("div",{ref:W,className:"relative",children:[f.jsxs("button",{type:"button","aria-label":n?"Cluster link connected":"Cluster link reconnecting","aria-expanded":ue,"aria-haspopup":"dialog",onClick:()=>T(ye=>O1(ye)),onMouseEnter:On,onMouseLeave:Or,className:ae("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",ue&&(n?"bg-muted/60 text-foreground":"bg-destructive/12")),title:n?"Cluster link connected":"Cluster link reconnecting",children:[f.jsxs("span",{className:ae("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:ae("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:Q}),f.jsx("span",{className:ae("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:oe})]})]}),ue&&f.jsxs("div",{role:"dialog","aria-label":"Live link connection events",onMouseEnter:Mn,onMouseLeave:ga,className:"absolute right-0 top-[calc(100%+0.35rem)] z-50 w-[17rem] max-w-[calc(100vw-1.5rem)] overflow-hidden rounded-sm border border-border/60 bg-popover/98 shadow-[0_16px_44px_-34px_rgba(0,0,0,var(--panel-shadow-alpha))] backdrop-blur-sm 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(zi,{className:"h-3 w-3 text-emerald-500"}):f.jsx(MT,{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:ae("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:le.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"}),_?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"mt-0.5 truncate text-[9px] leading-snug text-foreground/80",children:_.text}),f.jsx("div",{className:"font-mono text-[8px] text-muted-foreground/60",children:_.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:[R?f.jsx(pi,{className:"h-3 w-3 shrink-0 text-destructive"}):Y?f.jsx(zi,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx(Co,{className:ae("h-3 w-3 shrink-0",se?"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:ae("shrink-0 rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",R?"border-destructive/30 bg-destructive/10 text-destructive":Y?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":se?"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:P_(P)})]}),P.length>0&&f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:P.map(ye=>{const{label:Xe,status:me}=$_(ye,c),He=me==="offline",Qe=me==="busy";return f.jsxs("div",{"aria-label":`${Xe} ${me}`,className:ae("flex items-center justify-between gap-2 rounded-sm px-2 py-0.5",He?"bg-destructive/6":Qe?"bg-amber-500/6":"bg-emerald-500/5"),title:`${Xe} ${me}`,children:[f.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:Xe}),He?f.jsx(pi,{className:"h-3 w-3 shrink-0 text-destructive"}):Qe?f.jsx(Ev,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx(Co,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},ye.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:[fe?f.jsx(pi,{className:"h-3 w-3 shrink-0 text-destructive"}):f.jsx(Co,{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:ae("shrink-0 rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",fe?"border-destructive/30 bg-destructive/10 text-destructive":"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"),children:B_(X)})]}),f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:X.map(ye=>{const{label:Xe,status:me}=H_(ye,c),He=me==="failed"||me==="offline",Qe=me!=="healthy"&&me!=="failed"&&me!=="offline",gt=ye.devtunnelHealth?.reason?`${Xe} ${me}: ${ye.devtunnelHealth.reason}`:`${Xe} ${me}`;return f.jsxs("div",{"aria-label":`${Xe} ${me}`,className:ae("flex items-center justify-between gap-2 rounded-sm px-2 py-0.5",He?"bg-destructive/6":Qe?"bg-muted/30":"bg-emerald-500/5"),title:gt,children:[f.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:Xe}),He?f.jsx(pi,{className:"h-3 w-3 shrink-0 text-destructive"}):Qe?f.jsx(Ev,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):f.jsx(Co,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},ye.id)})})]}),f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center gap-1 px-2 py-1",children:[f.jsxs("button",{type:"button",onClick:()=>B(ye=>!ye),className:"flex min-w-0 flex-1 items-center justify-between rounded-sm px-0.5 py-0.5 text-left hover:bg-muted/25",children:[f.jsxs("span",{className:"truncate text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:["Notifications ",le.length>0&&`(${le.length})`]}),O?f.jsx(Zl,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):f.jsx(rf,{className:"h-3 w-3 shrink-0 text-muted-foreground"})]}),!O&&le.length>0&&f.jsx(Ct,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px] font-medium text-muted-foreground hover:text-foreground",onClick:er,title:"Clear all notifications",children:"Clear all"})]}),O&&f.jsx("div",{className:"px-2 pb-1.5",children:f.jsx(__,{events:le,maxHeight:"10rem",density:"compact",emptyTitle:"No connection events yet",emptyDescription:"Node, election, and system events will appear here.",nodeNameById:c,onSelect:tr,onDismiss:ye=>Z(Xe=>new Set(Xe).add(ye))})})]}),te&&u?.detail&&!xe&&f.jsxs("div",{className:"flex items-center gap-1.5 border-t border-border/60 px-2.5 py-1 text-[8px] text-muted-foreground",children:[f.jsx("span",{className:"shrink-0 font-medium uppercase tracking-[0.12em]",children:"Desktop update"}),f.jsx("span",{className:"truncate",title:u.detail,children:u.detail})]}),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:jr&&f.jsxs("div",{className:"group/restart relative flex items-center",children:[f.jsxs("div",{className:"flex items-center overflow-hidden rounded-sm border border-border/50",children:[f.jsxs(Ct,{type:"button",variant:"ghost",size:"sm",className:ae("relative h-5 overflow-hidden rounded-none border-0 px-1.5 text-[9px] font-medium hover:text-foreground [&_svg]:size-2.5",ne?"bg-primary/12 text-primary hover:bg-primary/18":"bg-background/45 text-muted-foreground hover:bg-emerald-500/10"),onClick:()=>{ya()},disabled:Yt,"aria-label":Ut,"aria-describedby":"live-link-restart-hint",title:_r,children:[Ne!==null&&f.jsx("span",{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Ne,className:"pointer-events-none absolute inset-y-0 left-0 bg-primary/24",style:{width:`${Ne}%`}}),Ne===null&&f.jsx(Nv,{className:ae("relative z-10 h-2.5 w-2.5",pa&&"animate-pulse")}),f.jsx("span",{className:"relative z-10",children:Re??Yn})]}),Ja&&f.jsx(Ct,{type:"button",variant:"ghost",size:"sm",className:ae("h-5 rounded-none border-l border-border/50 px-1 text-[9px] hover:text-foreground [&_svg]:size-2.5",ne?"bg-primary/12 text-primary hover:bg-primary/18":"bg-background/45 text-muted-foreground hover:bg-emerald-500/10"),onClick:()=>k(ye=>!ye),"aria-label":"Open live link actions","aria-expanded":A,title:"Live link actions",children:f.jsx(Zl,{className:"h-2.5 w-2.5"})})]}),Ja&&A&&f.jsxs("div",{className:"absolute bottom-[calc(100%+0.25rem)] left-0 z-20 min-w-28 overflow-hidden rounded-sm border border-border/70 bg-background text-[9px] shadow-sm",children:[f.jsxs("button",{type:"button",className:"flex w-full items-center gap-1.5 px-2 py-1 text-left text-muted-foreground hover:bg-muted/55 hover:text-foreground disabled:opacity-45 disabled:hover:bg-transparent disabled:hover:text-muted-foreground",onClick:()=>{it?In():ya()},disabled:it?Rt:Yt,"aria-label":it?"Check for desktop updates":Ut,children:[it?f.jsx(Ri,{className:ae("h-2.5 w-2.5",m&&"animate-spin")}):f.jsx(Nv,{className:ae("h-2.5 w-2.5",pa&&"animate-pulse")}),f.jsx("span",{children:gn})]}),hn&&f.jsxs("button",{type:"button",className:"flex w-full items-center gap-1.5 border-t border-border/50 px-2 py-1 text-left text-muted-foreground hover:bg-muted/55 hover:text-foreground disabled:opacity-45 disabled:hover:bg-transparent disabled:hover:text-muted-foreground",onClick:()=>{Lt()},"aria-label":"Reload dashboard page",children:[f.jsx(Ri,{className:"h-2.5 w-2.5"}),f.jsx("span",{children:"Reload"})]}),pn&&f.jsxs("button",{type:"button",className:"flex w-full items-center gap-1.5 border-t border-border/50 px-2 py-1 text-left text-muted-foreground hover:bg-muted/55 hover:text-foreground",onClick:()=>{Gn()},disabled:V,"aria-label":"Restart Meshy Desktop",children:[f.jsx(Ri,{className:ae("h-2.5 w-2.5",V&&"animate-spin")}),f.jsx("span",{children:"Restart"})]})]}),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:_r})]})}),f.jsxs("div",{className:"flex items-center gap-1",children:[O&&f.jsx(Ct,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:er,disabled:le.length===0,title:"Clear all notifications",children:"Clear all"}),f.jsx(Ct,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:()=>T(null),children:"Close"})]})]})]})]})}const d0="dark",Ar="fluent",V_="clean",Zd="meshy-layout-default-migrated-to-compact",Tf="true",Y_="compact",I_=new Set(["airy","clean","fluent"]);function G_(n){return n!==null&&I_.has(n)}function bc(n){return n===Y_?"fluent":G_(n)?n:null}function X_(n,r){const o=bc(n);return o===V_&&r!==Tf?Ar:o??Ar}const ec="symphony",M1="default",Q_=new Set(["light","dark","system"]),K_=new Set(["porcelain","warm","finsight","edge","symphony","launcher"]),D1=g.createContext(null);function Z_(n){const r=new URLSearchParams(n).get("theme");return z1(r)?r:null}function F_(n){const r=new URLSearchParams(n).get("palette");return hm(r)}function W_(n){const r=new URLSearchParams(n).get("layout");return bc(r)}function J_(){if(typeof document>"u")return null;const n=document.documentElement;return{theme:n.classList.contains("dark")?"dark":"light",palette:hm(n.getAttribute("data-palette"))??ec,layout:bc(n.getAttribute("data-layout"))??Ar}}function rM(n,r=J_()){if(!r)return n;try{const o=/^[a-z][a-z\d+\-.]*:/i.test(n),s=typeof window<"u"?window.location.href:"http://localhost",c=new URL(n,s);return c.searchParams.set("theme",r.theme),c.searchParams.set("palette",r.palette),c.searchParams.set("layout",r.layout),o?c.toString():`${c.pathname}${c.search}${c.hash}`}catch{return n}}const Fd=.9;function f0(n){const r=n.trim().match(/^(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)%\s+(-?\d+(?:\.\d+)?)%$/);if(!r)return null;const o=(Number(r[1])%360+360)%360/60,s=tc(Number(r[2])/100,0,1),c=tc(Number(r[3])/100,0,1),u=(1-Math.abs(2*c-1))*s,m=u*(1-Math.abs(o%2-1)),h=c-u/2,[v,p,b]=o<1?[u,m,0]:o<2?[m,u,0]:o<3?[0,u,m]:o<4?[0,m,u]:o<5?[m,0,u]:[u,0,m];return[Math.round((v+h)*255),Math.round((p+h)*255),Math.round((b+h)*255),255]}function e3(n){const r=n.trim();if(!r||r==="transparent")return null;const o=r.match(/^rgba?\(\s*([+-]?\d+(?:\.\d+)?)\s*,\s*([+-]?\d+(?:\.\d+)?)\s*,\s*([+-]?\d+(?:\.\d+)?)(?:\s*,\s*([+-]?\d+(?:\.\d+)?))?\s*\)$/i);if(o)return[No(Number(o[1])),No(Number(o[2])),No(Number(o[3])),p0(o[4])];const s=r.match(/^rgba?\(\s*([+-]?\d+(?:\.\d+)?)\s+([+-]?\d+(?:\.\d+)?)\s+([+-]?\d+(?:\.\d+)?)(?:\s*\/\s*([+-]?\d+(?:\.\d+)?%?))?\s*\)$/i);return s?[No(Number(s[1])),No(Number(s[2])),No(Number(s[3])),p0(s[4])]:null}function t3(n,r,o){const s=f0(n);if(!s)return null;if(o==="clean"||o==="fluent")return s;const c=f0(r);return c?[Wd(s[0],c[0],Fd),Wd(s[1],c[1],Fd),Wd(s[2],c[2],Fd),255]:null}function n3(){const n=document.querySelector(".dashboard-shell-header-panel");if(!n)return null;const r=e3(getComputedStyle(n).backgroundColor);return!r||r[3]===0?null:r}function m0(){if(typeof window>"u"||typeof document>"u")return;const n=window.__TAURI__?.core?.invoke??null;if(!n)return;const r=document.documentElement,o=r.classList.contains("dark")?"dark":"light",s=getComputedStyle(r),c=bc(r.getAttribute("data-layout"))??Ar,u=n3()??t3(s.getPropertyValue("--card"),s.getPropertyValue("--background"),c);n("sync_desktop_theme",{theme:o,backgroundColor:u}).catch(()=>{})}function h0(){if(typeof window>"u")return()=>{};if(m0(),typeof window.requestAnimationFrame!="function")return()=>{};const n=window.requestAnimationFrame(()=>m0());return()=>window.cancelAnimationFrame(n)}function Wd(n,r,o){return Math.round(n*o+r*(1-o))}function tc(n,r,o){return Math.min(Math.max(n,r),o)}function No(n){return Math.round(tc(n,0,255))}function p0(n){if(n==null||n==="")return 255;const r=n.endsWith("%")?Number(n.slice(0,-1))/100:Number(n);return Math.round(tc(r,0,1)*255)}function a3({children:n}){const[r,o]=g.useState(()=>typeof window<"u"?Z_(window.location.search)??l3(localStorage.getItem("meshy-theme"))??d0:d0),[s,c]=g.useState(()=>typeof window<"u"?F_(window.location.search)??s3(localStorage.getItem("meshy-palette"))??ec:ec),[u,m]=g.useState(()=>{if(typeof window<"u"){const h=W_(window.location.search);if(h)return localStorage.setItem(Zd,Tf),h;const v=X_(localStorage.getItem("meshy-layout"),localStorage.getItem(Zd));return localStorage.setItem(Zd,Tf),v}return Ar});return g.useEffect(()=>{const h=document.documentElement,v=p=>{if(p==="system"){const b=window.matchMedia("(prefers-color-scheme: dark)").matches;h.classList.toggle("dark",b)}else h.classList.toggle("dark",p==="dark")};if(v(r),localStorage.setItem("meshy-theme",r),r==="system"){const p=window.matchMedia("(prefers-color-scheme: dark)"),b=()=>{v("system"),h0()};return p.addEventListener("change",b),()=>p.removeEventListener("change",b)}},[r]),g.useEffect(()=>{document.documentElement.setAttribute("data-palette",s),localStorage.setItem("meshy-palette",s)},[s]),g.useEffect(()=>{const h=document.documentElement;u===Ar?h.removeAttribute("data-layout"):h.setAttribute("data-layout",u),localStorage.setItem("meshy-layout",u)},[u]),g.useEffect(()=>h0(),[r,s,u]),f.jsx(D1.Provider,{value:{theme:r,setTheme:o,palette:s,setPalette:c,layout:u,setLayout:m},children:n})}function r3(){const n=g.useContext(D1);if(!n)throw new Error("useTheme must be used within ThemeProvider");return n}function z1(n){return n!==null&&Q_.has(n)}function o3(n){return n!==null&&K_.has(n)}function l3(n){return z1(n)?n:null}function hm(n){return n===M1?"porcelain":o3(n)?n:null}function s3(n){return n===M1?null:hm(n)}const i3=[{value:"light",label:"Light",icon:cy},{value:"dark",label:"Dark",icon:sy},{value:"system",label:"System",icon:ly}],U1=[{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"},{value:"symphony",label:"Symphony",hint:"Near-black rose accent"},{value:"launcher",label:"Launcher",hint:"Desktop startup blue"}],L1=[{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 c3(){const{theme:n,setTheme:r,palette:o,setPalette:s,layout:c,setLayout:u}=r3(),[m,h]=g.useState(null),v=g.useRef(null),p=g.useRef(null),b=j1(m),y=n==="dark"?sy:n==="light"?cy:ly,w=()=>{v.current&&(clearTimeout(v.current),v.current=null)},C=()=>{w(),v.current=setTimeout(()=>h(N=>Nf(N)),180)};return g.useEffect(()=>{if(!b)return;const N=E=>{p.current&&!p.current.contains(E.target)&&h(null)};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[b]),g.useEffect(()=>()=>w(),[]),f.jsxs("div",{ref:p,className:"relative",onMouseEnter:()=>{w(),h(N=>_1(N))},onMouseLeave:C,children:[f.jsx(Ct,{variant:"ghost",size:"icon",onClick:()=>h(N=>O1(N)),className:ae("h-8 w-8 rounded-sm",o!==ec||c!==Ar?"text-primary":"text-muted-foreground hover:bg-muted/50 hover:text-foreground"),title:"Appearance","aria-haspopup":"menu","aria-expanded":b,children:f.jsx(y,{className:"h-4 w-4"})}),b&&f.jsxs("div",{role:"menu",className:"fixed left-2 right-2 top-[4.25rem] z-50 w-auto max-w-none rounded-md border border-border/70 bg-popover/95 p-2 text-popover-foreground shadow-[0_24px_70px_-32px_rgba(0,0,0,0.45)] backdrop-blur-xl sm:absolute sm:left-auto sm:right-0 sm:top-[calc(100%+6px)] sm:w-[23rem] sm:max-w-[23rem]",children:[f.jsxs("div",{className:"mb-2 flex items-end justify-between gap-2",children:[f.jsxs("div",{children:[f.jsx("div",{className:"text-[8px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Appearance"}),f.jsxs("div",{className:"text-[10px] font-medium text-foreground",children:[u3(c)," / ",d3(o)]})]}),f.jsx("div",{className:"rounded-sm border border-border/60 bg-background/70 px-1.5 py-0.5 text-[8px] 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 grid grid-cols-3 gap-1 rounded-sm bg-muted/35 p-0.5",children:i3.map(({value:N,label:E,icon:T})=>{const A=n===N;return f.jsxs("button",{type:"button",onClick:()=>r(N),role:"menuitemradio","aria-checked":A,className:ae("flex min-h-[2.1rem] flex-col items-center justify-center gap-0.5 rounded-sm border px-1.5 py-1 text-[9px] font-medium transition-colors",A?"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(T,{className:"h-3 w-3"}),E]},N)})}),f.jsxs("div",{className:"grid gap-2 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:L1.map(({value:N,label:E,hint:T})=>{const A=c===N;return f.jsxs("button",{type:"button",onClick:()=>u(N),role:"menuitemradio","aria-checked":A,className:ae("flex min-h-[2.25rem] w-full items-center gap-1.5 rounded-sm border px-1.5 py-1 text-left transition-colors",A?"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:ae("text-[10px] font-medium leading-tight",A?"text-primary":"text-foreground"),children:E}),f.jsx("div",{className:"mt-0.5 text-[8px] leading-tight text-muted-foreground",children:T})]}),A&&f.jsx(Ui,{className:"h-3 w-3 text-primary"})]},N)})})]}),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(RT,{className:"h-2.5 w-2.5"}),"Palette"]}),f.jsx("div",{className:"space-y-1",children:U1.map(({value:N,label:E,hint:T})=>{const A=o===N;return f.jsxs("button",{type:"button",onClick:()=>s(N),role:"menuitemradio","aria-checked":A,className:ae("flex min-h-[2.25rem] w-full items-center gap-1.5 rounded-sm border px-1.5 py-1 text-left transition-colors",A?"border-primary/55 bg-primary/10":"border-border/45 bg-background/45 hover:border-border hover:bg-muted/55"),children:[f.jsx(f3,{value:N}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("div",{className:ae("text-[10px] font-medium leading-tight",A?"text-primary":"text-foreground"),children:E}),f.jsx("div",{className:"mt-0.5 text-[8px] leading-tight text-muted-foreground",children:T})]}),A&&f.jsx(Ui,{className:"h-3 w-3 text-primary"})]},N)})})]})]})]})]})}function u3(n){return L1.find(r=>r.value===n)?.label??n}function d3(n){return U1.find(r=>r.value===n)?.label??n}function f3({value:n}){const r={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%)"],symphony:["hsl(348 100% 71%)","hsl(0 0% 6%)","hsl(240 2% 9%)"],launcher:["hsl(213 77% 49%)","hsl(60 10% 96%)","hsl(0 0% 100%)"]},[o,s,c]=r[n];return f.jsxs("div",{className:ae("flex h-5 w-5 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:s}}),f.jsx("div",{className:"h-full w-1/3",style:{background:c}})]})}const Xl={tasks:{defaultSize:20,min:16,max:36,wheelStep:1},operations:{defaultSize:20,min:18,max:38,wheelStep:1},terminal:{defaultSize:18,min:10,max:30,wheelStep:1}},B1="meshy-dashboard-panel-state-v2",H1="meshy-dashboard-terminal-open-v1";function oM({operationsOpen:n}){return{layout:{desktopTasksOpen:!0,operationsOpen:n},sizes:{tasks:Xl.tasks.defaultSize,operations:Xl.operations.defaultSize,terminal:Xl.terminal.defaultSize}}}function Jd(n){return typeof n=="object"&&n!==null}function g0(n,r){return typeof n=="boolean"?n:r}function ef(n,r,o){return typeof r=="number"&&Number.isFinite(r)?Ql(n,r):o}function Ql(n,r){const o=Xl[n];return Math.min(o.max,Math.max(o.min,r))}function lM(n,r){if(!n)return r;try{const o=n.getItem(B1);if(!o)return r;const s=JSON.parse(o);if(!Jd(s))return r;const c=Jd(s.layout)?s.layout:{},u=Jd(s.sizes)?s.sizes:{};return{layout:{desktopTasksOpen:g0(c.desktopTasksOpen,r.layout.desktopTasksOpen),operationsOpen:g0(c.operationsOpen,r.layout.operationsOpen)},sizes:{tasks:ef("tasks",u.tasks,r.sizes.tasks),operations:ef("operations",u.operations,r.sizes.operations),terminal:ef("terminal",u.terminal,r.sizes.terminal)}}}catch{return r}}function sM(n,r){if(n)try{n.setItem(B1,JSON.stringify(r))}catch{}}function m3(n,r){if(!n)return r;try{const o=n.getItem(H1);return o==="true"?!0:o==="false"?!1:r}catch{return r}}function h3(n,r){if(n)try{n.setItem(H1,String(r))}catch{}}function v0(){try{return globalThis.window?.localStorage??globalThis.localStorage??null}catch{return null}}function iM(n){return`${Number(n.toFixed(2))}rem`}function cM(n,r,o,s,c,u,m){const h=Number.isFinite(m)&&m>0?m:16;return n==="tasks"?Ql(n,r+(c-o)/h):n==="operations"?Ql(n,r+(o-c)/h):Ql(n,r+(s-u)/h)}function uM(n,r,o){const s=o===0?0:o>0?-1:1;return Ql(n,r+s*Xl[n].wheelStep)}const p3=7200*1e3,g3=15*1e3,v3="meshy://desktop-update-progress",y3="Desktop update check timed out";function b3(){return f.jsxs("svg",{"data-meshy-app-icon":"header",viewBox:"0 0 1024 1024",className:"h-8 w-8","aria-hidden":"true",children:[f.jsxs("defs",{children:[f.jsxs("linearGradient",{id:"meshy-header-icon-bg",x1:"160",y1:"128",x2:"864",y2:"896",gradientUnits:"userSpaceOnUse",children:[f.jsx("stop",{offset:"0",stopColor:"#182033"}),f.jsx("stop",{offset:"1",stopColor:"#0a0f1f"})]}),f.jsxs("linearGradient",{id:"meshy-header-icon-edge",x1:"260",y1:"244",x2:"768",y2:"780",gradientUnits:"userSpaceOnUse",children:[f.jsx("stop",{offset:"0",stopColor:"#66e3ff"}),f.jsx("stop",{offset:"0.52",stopColor:"#8fd56b"}),f.jsx("stop",{offset:"1",stopColor:"#ffcb5b"})]})]}),f.jsx("rect",{width:"1024",height:"1024",rx:"224",fill:"url(#meshy-header-icon-bg)"}),f.jsx("path",{d:"M308 652V372l204 174 204-174v280",fill:"none",stroke:"url(#meshy-header-icon-edge)",strokeWidth:"86",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("circle",{cx:"308",cy:"372",r:"58",fill:"#66e3ff"}),f.jsx("circle",{cx:"512",cy:"546",r:"58",fill:"#8fd56b"}),f.jsx("circle",{cx:"716",cy:"372",r:"58",fill:"#ffcb5b"}),f.jsx("circle",{cx:"308",cy:"652",r:"58",fill:"#66e3ff"}),f.jsx("circle",{cx:"716",cy:"652",r:"58",fill:"#ffcb5b"})]})}function Vl(){return typeof window>"u"?null:window.__TAURI__?.core?.invoke??null}function x3(){return typeof window>"u"?null:window.__TAURI__?.event?.listen??null}function S3(n){if(!n||typeof n!="object")return null;const r=n;return r.phase!=="downloading"&&r.phase!=="installing"&&r.phase!=="complete"?null:{phase:r.phase,receivedBytes:typeof r.receivedBytes=="number"?r.receivedBytes:0,totalBytes:typeof r.totalBytes=="number"?r.totalBytes:null,percent:typeof r.percent=="number"?Math.max(0,Math.min(100,Math.round(r.percent))):null}}function y0(n){return{currentVersion:null,latestVersion:null,updateAvailable:!1,checkedAt:new Date().toISOString(),releaseUrl:null,assetName:null,installable:!1,detail:n}}async function w3(n,r,o){let s;const c=new Promise((u,m)=>{s=setTimeout(()=>{m(new Error(y3))},r)});try{return await Promise.race([n,c])}finally{s!==void 0&&clearTimeout(s)}}async function E3({activeCheck:n,startCheck:r,timeoutMs:o,shouldApply:s,applyUpdate:c,applyFailure:u,failureFallback:m="Desktop update check failed"}){let h=n.current;if(!h){let v;try{v=r()}catch(p){v=Promise.reject(p)}h=w3(v,o),n.current=h}try{const v=await h;return s()&&c(v),v}catch(v){return s()&&u(Cf(v,m)),null}finally{n.current===h&&(n.current=null)}}function Cf(n,r){if(n instanceof Error&&n.message.trim())return n.message;if(typeof n=="string"&&n.trim())return n;if(n&&typeof n=="object"&&"message"in n){const o=n.message;if(typeof o=="string"&&o.trim())return o}return r}function N3(n){return n.openedRelease?"Opened the latest Meshy release page.":n.installMethod==="tauri-updater"?"Installing desktop update. Meshy will relaunch to finish updating.":(n.assetName??"desktop update").toLowerCase().endsWith(".dmg")?"Downloaded desktop update. Open the DMG and drag Meshy to Applications to finish updating.":"Downloaded desktop update. Follow the installer to finish updating."}function T3(){const{cluster:n,events:r,sseConnected:o,systemInfo:s}=W0(),c=jn(),[u,m]=g.useState(()=>m3(v0(),!1)),[h,v]=g.useState(""),[p,b]=g.useState(null),[y,w]=g.useState(null),[C,N]=g.useState(!1),[E,T]=g.useState(null),A=g.useRef(null),k=!!Vl(),O=k?"max-w-none":"max-w-[1760px]",B=c.pathname==="/"||/^\/tasks\/[^/]+$/.test(c.pathname),U=g.useMemo(()=>{const W=new Map;for(const ee of n?.nodes??[])W.set(ee.id,ee.name);return n?.self&&W.set(n.self.id,n.self.name),W},[n?.nodes,n?.self]),Z=g.useCallback(W=>{m(ee=>typeof W=="function"?W(ee):W)},[]);g.useEffect(()=>{h3(v0(),u)},[u]);const V=g.useCallback(async(W=!0,ee=()=>!0)=>{const le=Vl();return le?(W&&ee()&&w(y0("Checking desktop update...")),E3({activeCheck:A,startCheck:()=>le("check_desktop_update"),timeoutMs:g3,shouldApply:ee,applyUpdate:J=>w(J),applyFailure:J=>w(_=>_?.updateAvailable?_:y0(J))})):(ee()&&w(null),null)},[]);async function $(){N(!0);try{await V(!1)}finally{N(!1)}}g.useEffect(()=>{if(!Vl()){w(null);return}let W=!1;const ee=()=>!W;V(!0,ee);const le=window.setInterval(()=>{V(!1,ee)},p3);return()=>{W=!0,window.clearInterval(le)}},[V,s?.version]),g.useEffect(()=>{const W=x3();if(!W)return;let ee=!1,le;return W(v3,J=>{const _=S3(J.payload);_&&T(_)}).then(J=>{if(ee){J();return}le=J}).catch(()=>{}),()=>{ee=!0,le?.()}},[]);async function G(){try{const W=await K0({reason:"restart"});_e.info(`Restarting runtime. Follow ${W.logPath} for launch output.`),await C1({previousPid:W.pid})||_e.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout.")}catch(W){_e.error(W instanceof Error?W.message:"Runtime restart failed")}}async function ce(){const W=Vl();if(!W){_e.error("Desktop updater is not available in this window");return}try{_e.info("Downloading desktop update..."),T({phase:"downloading",receivedBytes:0,totalBytes:null,percent:0});const ee=await W("install_desktop_update");T({phase:"complete",receivedBytes:1,totalBytes:1,percent:100}),_e.info(N3(ee))}catch(ee){_e.error(Cf(ee,"Desktop update failed"))}finally{T(null)}}async function ue(){const W=Vl();if(!W){_e.error("Desktop restart is not available in this window");return}try{_e.info("Restarting Meshy Desktop..."),await W("restart_desktop_app")}catch(ee){_e.error(Cf(ee,"Desktop 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:"dashboard-shell-header relative z-50 shrink-0 px-2 py-2",children:f.jsxs("div",{className:ae("dashboard-shell-header-panel dashboard-panel dashboard-panel-muted animate-panel-settle mx-auto flex items-center gap-0 rounded-lg px-3 py-2",O),children:[f.jsx("div",{className:"flex shrink-0 items-center gap-3 pr-3",children:f.jsxs(af,{to:"/","aria-label":"Meshy home",className:"flex items-center gap-2",children:[f.jsx(b3,{}),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"}),B&&f.jsxs("div",{className:"hidden min-w-0 flex-1 items-center px-3 md:flex",children:[p&&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:()=>v(p.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 ${p.nodeName}`,children:[f.jsx(iy,{className:"h-3 w-3 shrink-0 text-primary/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:p.nodeName})]}),f.jsx(rf,{className:"h-3 w-3 shrink-0 text-border/80"}),f.jsxs("button",{type:"button",onClick:()=>v(p.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:p.projectPath,children:[f.jsx(WN,{className:"h-3 w-3 shrink-0 text-muted-foreground/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:p.projectLabel})]}),f.jsx(rf,{className:"h-3 w-3 shrink-0 text-border/80"}),f.jsx(af,{to:`/tasks/${p.taskId}`,className:"min-w-0 truncate px-1 font-medium text-foreground/85 hover:text-foreground",title:p.taskTitle,children:p.taskTitle})]}),f.jsxs("div",{className:"relative ml-auto w-[18rem] max-w-[28rem]",children:[f.jsx(xT,{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(vc,{"aria-label":"Search tasks",value:h,onChange:W=>v(W.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:[B&&f.jsx(Ct,{variant:"ghost",size:"icon",onClick:()=>Z(W=>!W),"aria-label":u?"Close terminal":"Open terminal",title:u?"Close terminal":"Open terminal",className:ae("h-8 w-8 rounded-sm text-muted-foreground hover:bg-muted/50 hover:text-foreground",u&&"bg-primary/8 text-primary"),children:f.jsx(uy,{className:"h-4 w-4"})}),f.jsx(T_,{}),f.jsx(c3,{}),f.jsx("div",{className:"mx-0 h-4 w-px shrink-0 bg-border/50"}),f.jsx(q_,{connected:o,events:r,nodes:n?.nodes??[],currentNode:n?.self??null,nodeNameById:U,desktopUpdate:y,desktopUpdateCheckPending:C,desktopUpdateProgress:E,onDesktopUpdateCheck:k?$:void 0,onDesktopUpdate:y?.updateAvailable?ce:void 0,onDesktopRestart:k?ue:void 0,onReload:k?()=>window.location.reload():void 0,onRestart:G})]})]})}),f.jsx("main",{className:ae("dashboard-shell-main min-h-0 flex-1 px-2 pb-2",B?"overflow-hidden":"overflow-y-auto"),children:f.jsx("div",{className:ae("dashboard-shell-content mx-auto h-full min-h-0",O),children:f.jsx(rE,{context:{terminalOpen:u,setTerminalOpen:Z,headerSearchQuery:h,setHeaderSearchQuery:v,setHeaderTaskContext:b}})})})]})]})}const b0=g.lazy(async()=>({default:(await w0(()=>import("./DashboardPage-t7hNJ6ER.js").then(r=>r.D),__vite__mapDeps([0,1,2,3,4]))).DashboardPage})),C3=g.lazy(async()=>({default:(await w0(()=>import("./SharedConversationPage-fseaPX1s.js"),__vite__mapDeps([5,1]))).SharedConversationPage}));function R3(){return f.jsx(jE,{children:f.jsx(g.Suspense,{fallback:f.jsx(A3,{}),children:f.jsxs(lE,{children:[f.jsx(Er,{path:"/shared/tasks/:shareId",element:f.jsx(C3,{})}),f.jsxs(Er,{element:f.jsx(NN,{children:f.jsx(T3,{})}),children:[f.jsx(Er,{path:"/",element:f.jsx(b0,{})}),f.jsx(Er,{path:"/nodes",element:f.jsx(vv,{to:"/",replace:!0})}),f.jsx(Er,{path:"/tasks",element:f.jsx(vv,{to:"/",replace:!0})}),f.jsx(Er,{path:"/tasks/:id",element:f.jsx(b0,{})})]})]})})})}function A3(){return f.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function k3(n){const r=n??(typeof window>"u"?void 0:window);r?.__TAURI__&&r.addEventListener("contextmenu",o=>{o.preventDefault()})}function j3(n){const{className:r,style:o,toastOptions:s,...c}=n;function u(m){const h=m.target;if(!(h instanceof Element)||h.closest("button, a, input, textarea, select, [data-close-button], [data-button]"))return;const v=h.closest("[data-sonner-toast]");v&&v.dataset.type!=="loading"&&A1()}return f.jsx("div",{onClick:u,children:f.jsx(ZC,{className:["toaster group",r].filter(Boolean).join(" "),closeButton:!0,gap:6,offset:{right:"0.6rem",bottom:"0.6rem"},mobileOffset:{right:"0.5rem",bottom:"0.5rem",left:"0.5rem"},position:"bottom-right",visibleToasts:3,style:{"--normal-bg":"hsl(var(--popover))","--normal-text":"hsl(var(--popover-foreground))","--normal-border":"hsl(var(--border) / 0.7)","--width":"17rem",...o},toastOptions:{duration:3e3,closeButton:!0,...s,classNames:{toast:"meshy-toast",title:"meshy-toast__title",description:"meshy-toast__description",content:"meshy-toast__content",icon:"meshy-toast__icon",closeButton:"meshy-toast__close",actionButton:"meshy-toast__action",cancelButton:"meshy-toast__cancel",success:"meshy-toast--success",error:"meshy-toast--error",info:"meshy-toast--info",warning:"meshy-toast--warning",...s?.classNames}},...c})})}k3();a2.createRoot(document.getElementById("root")).render(f.jsx(g.StrictMode,{children:f.jsxs(a3,{children:[f.jsx(R3,{}),f.jsx(j3,{})]})}));export{_t as $,DO as A,Ct as B,Ui as C,zO as D,aO as E,ZN as F,L5 as G,db as H,vc as I,mb as J,rM as K,ry as L,ny as M,m1 as N,Ix as O,uT as P,nM as Q,oy as R,iy as S,UO as T,Il as U,wj as V,ey as W,dy as X,Wk as Y,OO as Z,MO as _,eM as a,kO as a$,FO as a0,Gl as a1,xf as a2,Ii as a3,Gi as a4,Qi as a5,Ki as a6,Xi as a7,Fi as a8,Zi as a9,bj as aA,NO as aB,iR as aC,Ri as aD,PO as aE,JO as aF,BO as aG,HO as aH,KO as aI,E1 as aJ,ZO as aK,Sf as aL,_T as aM,fO as aN,mO as aO,lM as aP,oM as aQ,v0 as aR,sM as aS,uM as aT,iM as aU,cM as aV,tO as aW,vN as aX,ZE as aY,AO as aZ,RO as a_,w0 as aa,z3 as ab,fb as ac,P5 as ad,Q3 as ae,uy as af,Co as ag,of as ah,X3 as ai,K3 as aj,G3 as ak,CO as al,B5 as am,hb as an,MT as ao,ET as ap,MN as aq,lT as ar,ts as as,XO as at,hT as au,__ as av,mj as aw,ay as ax,hj as ay,WO as az,tR as b,xN as b0,cO as b1,H3 as b2,L3 as b3,Q0 as b4,B3 as b5,P3 as b6,T_ as b7,uO as b8,dO as b9,D3 as bA,U3 as bB,M3 as bC,$3 as bD,_O as bE,yO as bF,vO as bG,gO as bH,hO as bI,pO as bJ,bO as bK,yj as bL,x0 as bM,PN as bN,wO as bO,SO as bP,xO as bQ,EO as bR,jO as bS,TO as bT,J3 as ba,Z3 as bb,F3 as bc,W3 as bd,eO as be,O3 as bf,jn as bg,B0 as bh,_3 as bi,W0 as bj,QO as bk,Pj as bl,aM as bm,GO as bn,$O as bo,qO as bp,YO as bq,VO as br,IO as bs,nO as bt,LO as bu,xj as bv,sO as bw,iO as bx,lO as by,oO as bz,Ae as c,ae as d,Ay as e,p1 as f,V3 as g,I3 as h,X0 as i,f as j,q3 as k,WN as l,tM as m,rf as n,Ro as o,Y3 as p,rO as q,g as r,wx as s,_e as t,cm as u,Ex as v,um as w,xT as x,Zl as y,RT as z};
|