meshy-node 0.10.6 → 0.10.8
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-BA5_31Nu.js +181 -0
- package/dashboard/assets/{DashboardShared-CnAnYJXR.js → DashboardShared-BfK1KyJO.js} +18 -18
- package/dashboard/assets/{DiffTab-JNuSFUCI.js → DiffTab-BPQY3AYd.js} +2 -2
- package/dashboard/assets/{FilesTab-uM8qGxbi.js → FilesTab-91w4HaID.js} +2 -2
- package/dashboard/assets/{MarkdownPreviewFrame-BueJ6Pjk.js → MarkdownPreviewFrame-C56qjNyn.js} +1 -1
- package/dashboard/assets/{PreviewTab-K7c436fs.js → PreviewTab-DQ4yhJji.js} +2 -2
- package/dashboard/assets/SharedConversationPage-hiwRfWZA.js +2 -0
- package/dashboard/assets/{file-Du0lhUCi.js → file-DQcCuz7j.js} +1 -1
- package/dashboard/assets/index-BvnWYZW6.js +346 -0
- package/dashboard/assets/index-By1kKB26.css +1 -0
- package/dashboard/index.html +2 -2
- package/main.cjs +1595 -1360
- package/package.json +1 -1
- package/runtime-metadata.json +4 -4
- package/dashboard/assets/DashboardPage-G8tVKIEN.js +0 -166
- package/dashboard/assets/SharedConversationPage-DKiA9AOk.js +0 -2
- package/dashboard/assets/index-BfhJ5QGx.js +0 -346
- package/dashboard/assets/index-Bol9w8Lt.css +0 -1
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-BA5_31Nu.js","assets/DashboardShared-BfK1KyJO.js","assets/MarkdownPreviewFrame-C56qjNyn.js","assets/PreviewTab-DQ4yhJji.js","assets/DashboardPage-BaHExl1O.css","assets/SharedConversationPage-hiwRfWZA.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function Jw(t,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 t)){const u=Object.getOwnPropertyDescriptor(s,c);u&&Object.defineProperty(t,c,u.get?u:{enumerable:!0,get:()=>s[c]})}}}return Object.freeze(Object.defineProperty(t,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 T0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var jd={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 lv;function e2(){if(lv)return zl;lv=1;var t=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:t,type:s,key:m,ref:c!==void 0?c:null,props:u}}return zl.Fragment=r,zl.jsx=o,zl.jsxs=o,zl}var sv;function t2(){return sv||(sv=1,jd.exports=e2()),jd.exports}var f=t2(),_d={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 iv;function n2(){if(iv)return Te;iv=1;var t=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(C){return C===null||typeof C!="object"?null:(C=y&&C[y]||C["@@iterator"],typeof C=="function"?C:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,E={};function N(C,V,re){this.props=C,this.context=V,this.refs=E,this.updater=re||k}N.prototype.isReactComponent={},N.prototype.setState=function(C,V){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,V,"setState")},N.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function T(){}T.prototype=N.prototype;function R(C,V,re){this.props=C,this.context=V,this.refs=E,this.updater=re||k}var O=R.prototype=new T;O.constructor=R,A(O,N.prototype),O.isPureReactComponent=!0;var H=Array.isArray,z={H:null,A:null,T:null,S:null,V:null},K=Object.prototype.hasOwnProperty;function I(C,V,re,Y,ee,J){return re=J.ref,{$$typeof:t,type:C,key:V,ref:re!==void 0?re:null,props:J}}function P(C,V){return I(C.type,V,void 0,void 0,void 0,C.props)}function le(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function de(C){var V={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(re){return V[re]})}var fe=/\/+/g;function W(C,V){return typeof C=="object"&&C!==null&&C.key!=null?de(""+C.key):V.toString(36)}function te(){}function se(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(te,te):(C.status="pending",C.then(function(V){C.status==="pending"&&(C.status="fulfilled",C.value=V)},function(V){C.status==="pending"&&(C.status="rejected",C.reason=V)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function X(C,V,re,Y,ee){var J=typeof C;(J==="undefined"||J==="boolean")&&(C=null);var ne=!1;if(C===null)ne=!0;else switch(J){case"bigint":case"string":case"number":ne=!0;break;case"object":switch(C.$$typeof){case t:case r:ne=!0;break;case b:return ne=C._init,X(ne(C._payload),V,re,Y,ee)}}if(ne)return ee=ee(C),ne=Y===""?"."+W(C,0):Y,H(ee)?(re="",ne!=null&&(re=ne.replace(fe,"$&/")+"/"),X(ee,V,re,"",function(xe){return xe})):ee!=null&&(le(ee)&&(ee=P(ee,re+(ee.key==null||C&&C.key===ee.key?"":(""+ee.key).replace(fe,"$&/")+"/")+ne)),V.push(ee)),1;ne=0;var ie=Y===""?".":Y+":";if(H(C))for(var ce=0;ce<C.length;ce++)Y=C[ce],J=ie+W(Y,ce),ne+=X(Y,V,re,J,ee);else if(ce=w(C),typeof ce=="function")for(C=ce.call(C),ce=0;!(Y=C.next()).done;)Y=Y.value,J=ie+W(Y,ce++),ne+=X(Y,V,re,J,ee);else if(J==="object"){if(typeof C.then=="function")return X(se(C),V,re,Y,ee);throw V=String(C),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return ne}function _(C,V,re){if(C==null)return C;var Y=[],ee=0;return X(C,Y,"","",function(J){return V.call(re,J,ee++)}),Y}function B(C){if(C._status===-1){var V=C._result;V=V(),V.then(function(re){(C._status===0||C._status===-1)&&(C._status=1,C._result=re)},function(re){(C._status===0||C._status===-1)&&(C._status=2,C._result=re)}),C._status===-1&&(C._status=0,C._result=V)}if(C._status===1)return C._result.default;throw C._result}var Q=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)};function ue(){}return Te.Children={map:_,forEach:function(C,V,re){_(C,function(){V.apply(this,arguments)},re)},count:function(C){var V=0;return _(C,function(){V++}),V},toArray:function(C){return _(C,function(V){return V})||[]},only:function(C){if(!le(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},Te.Component=N,Te.Fragment=o,Te.Profiler=c,Te.PureComponent=R,Te.StrictMode=s,Te.Suspense=v,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,Te.__COMPILER_RUNTIME={__proto__:null,c:function(C){return z.H.useMemoCache(C)}},Te.cache=function(C){return function(){return C.apply(null,arguments)}},Te.cloneElement=function(C,V,re){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var Y=A({},C.props),ee=C.key,J=void 0;if(V!=null)for(ne in V.ref!==void 0&&(J=void 0),V.key!==void 0&&(ee=""+V.key),V)!K.call(V,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&V.ref===void 0||(Y[ne]=V[ne]);var ne=arguments.length-2;if(ne===1)Y.children=re;else if(1<ne){for(var ie=Array(ne),ce=0;ce<ne;ce++)ie[ce]=arguments[ce+2];Y.children=ie}return I(C.type,ee,void 0,void 0,J,Y)},Te.createContext=function(C){return C={$$typeof:m,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:u,_context:C},C},Te.createElement=function(C,V,re){var Y,ee={},J=null;if(V!=null)for(Y in V.key!==void 0&&(J=""+V.key),V)K.call(V,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(ee[Y]=V[Y]);var ne=arguments.length-2;if(ne===1)ee.children=re;else if(1<ne){for(var ie=Array(ne),ce=0;ce<ne;ce++)ie[ce]=arguments[ce+2];ee.children=ie}if(C&&C.defaultProps)for(Y in ne=C.defaultProps,ne)ee[Y]===void 0&&(ee[Y]=ne[Y]);return I(C,J,void 0,void 0,null,ee)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(C){return{$$typeof:h,render:C}},Te.isValidElement=le,Te.lazy=function(C){return{$$typeof:b,_payload:{_status:-1,_result:C},_init:B}},Te.memo=function(C,V){return{$$typeof:p,type:C,compare:V===void 0?null:V}},Te.startTransition=function(C){var V=z.T,re={};z.T=re;try{var Y=C(),ee=z.S;ee!==null&&ee(re,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(ue,Q)}catch(J){Q(J)}finally{z.T=V}},Te.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},Te.use=function(C){return z.H.use(C)},Te.useActionState=function(C,V,re){return z.H.useActionState(C,V,re)},Te.useCallback=function(C,V){return z.H.useCallback(C,V)},Te.useContext=function(C){return z.H.useContext(C)},Te.useDebugValue=function(){},Te.useDeferredValue=function(C,V){return z.H.useDeferredValue(C,V)},Te.useEffect=function(C,V,re){var Y=z.H;if(typeof re=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(C,V)},Te.useId=function(){return z.H.useId()},Te.useImperativeHandle=function(C,V,re){return z.H.useImperativeHandle(C,V,re)},Te.useInsertionEffect=function(C,V){return z.H.useInsertionEffect(C,V)},Te.useLayoutEffect=function(C,V){return z.H.useLayoutEffect(C,V)},Te.useMemo=function(C,V){return z.H.useMemo(C,V)},Te.useOptimistic=function(C,V){return z.H.useOptimistic(C,V)},Te.useReducer=function(C,V,re){return z.H.useReducer(C,V,re)},Te.useRef=function(C){return z.H.useRef(C)},Te.useState=function(C){return z.H.useState(C)},Te.useSyncExternalStore=function(C,V,re){return z.H.useSyncExternalStore(C,V,re)},Te.useTransition=function(){return z.H.useTransition()},Te.version="19.1.0",Te}var cv;function Df(){return cv||(cv=1,_d.exports=n2()),_d.exports}var g=Df();const oe=T0(g),zf=Jw({__proto__:null,default:oe},[g]);var Od={exports:{}},Ul={},Md={exports:{}},Dd={};/**
|
|
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 uv;function a2(){return uv||(uv=1,(function(t){function r(_,B){var Q=_.length;_.push(B);e:for(;0<Q;){var ue=Q-1>>>1,C=_[ue];if(0<c(C,B))_[ue]=B,_[Q]=C,Q=ue;else break e}}function o(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var B=_[0],Q=_.pop();if(Q!==B){_[0]=Q;e:for(var ue=0,C=_.length,V=C>>>1;ue<V;){var re=2*(ue+1)-1,Y=_[re],ee=re+1,J=_[ee];if(0>c(Y,Q))ee<C&&0>c(J,Y)?(_[ue]=J,_[ee]=Q,ue=ee):(_[ue]=Y,_[re]=Q,ue=re);else if(ee<C&&0>c(J,Q))_[ue]=J,_[ee]=Q,ue=ee;else break e}}return B}function c(_,B){var Q=_.sortIndex-B.sortIndex;return Q!==0?Q:_.id-B.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var m=Date,h=m.now();t.unstable_now=function(){return m.now()-h}}var v=[],p=[],b=1,y=null,w=3,k=!1,A=!1,E=!1,N=!1,T=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function H(_){for(var B=o(p);B!==null;){if(B.callback===null)s(p);else if(B.startTime<=_)s(p),B.sortIndex=B.expirationTime,r(v,B);else break;B=o(p)}}function z(_){if(E=!1,H(_),!A)if(o(v)!==null)A=!0,K||(K=!0,W());else{var B=o(p);B!==null&&X(z,B.startTime-_)}}var K=!1,I=-1,P=5,le=-1;function de(){return N?!0:!(t.unstable_now()-le<P)}function fe(){if(N=!1,K){var _=t.unstable_now();le=_;var B=!0;try{e:{A=!1,E&&(E=!1,R(I),I=-1),k=!0;var Q=w;try{t:{for(H(_),y=o(v);y!==null&&!(y.expirationTime>_&&de());){var ue=y.callback;if(typeof ue=="function"){y.callback=null,w=y.priorityLevel;var C=ue(y.expirationTime<=_);if(_=t.unstable_now(),typeof C=="function"){y.callback=C,H(_),B=!0;break t}y===o(v)&&s(v),H(_)}else s(v);y=o(v)}if(y!==null)B=!0;else{var V=o(p);V!==null&&X(z,V.startTime-_),B=!1}}break e}finally{y=null,w=Q,k=!1}B=void 0}}finally{B?W():K=!1}}}var W;if(typeof O=="function")W=function(){O(fe)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,se=te.port2;te.port1.onmessage=fe,W=function(){se.postMessage(null)}}else W=function(){T(fe,0)};function X(_,B){I=T(function(){_(t.unstable_now())},B)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(_){_.callback=null},t.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"):P=0<_?Math.floor(1e3/_):5},t.unstable_getCurrentPriorityLevel=function(){return w},t.unstable_next=function(_){switch(w){case 1:case 2:case 3:var B=3;break;default:B=w}var Q=w;w=B;try{return _()}finally{w=Q}},t.unstable_requestPaint=function(){N=!0},t.unstable_runWithPriority=function(_,B){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var Q=w;w=_;try{return B()}finally{w=Q}},t.unstable_scheduleCallback=function(_,B,Q){var ue=t.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ue+Q:ue):Q=ue,_){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=Q+C,_={id:b++,callback:B,priorityLevel:_,startTime:Q,expirationTime:C,sortIndex:-1},Q>ue?(_.sortIndex=Q,r(p,_),o(v)===null&&_===o(p)&&(E?(R(I),I=-1):E=!0,X(z,Q-ue))):(_.sortIndex=C,r(v,_),A||k||(A=!0,K||(K=!0,W()))),_},t.unstable_shouldYield=de,t.unstable_wrapCallback=function(_){var B=w;return function(){var Q=w;w=B;try{return _.apply(this,arguments)}finally{w=Q}}}})(Dd)),Dd}var dv;function r2(){return dv||(dv=1,Md.exports=a2()),Md.exports}var zd={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 fv;function o2(){if(fv)return Mt;fv=1;var t=Df();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=t.__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,k=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:k}):b==="script"&&s.d.X(v,{crossOrigin:y,integrity:w,fetchPriority:k,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 mv;function C0(){if(mv)return zd.exports;mv=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),zd.exports=o2(),zd.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 hv;function l2(){if(hv)return Ul;hv=1;var t=r2(),r=Df(),o=C0();function s(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+n+" 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 n=e,a=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(a=n.return),e=n.return;while(e)}return n.tag===3?a:null}function m(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(u(e)!==e)throw Error(s(188))}function v(e){var n=e.alternate;if(!n){if(n=u(e),n===null)throw Error(s(188));return n!==e?null:e}for(var a=e,l=n;;){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),n;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:n}function p(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=p(e),n!==null)return n;e=e.sibling}return null}var b=Object.assign,y=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),R=Symbol.for("react.consumer"),O=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),de=Symbol.for("react.memo_cache_sentinel"),fe=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=fe&&e[fe]||e["@@iterator"],typeof e=="function"?e:null)}var te=Symbol.for("react.client.reference");function se(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case N:return"Profiler";case E:return"StrictMode";case z:return"Suspense";case K:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case k:return"Portal";case O:return(e.displayName||"Context")+".Provider";case R:return(e._context.displayName||"Context")+".Consumer";case H:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case I:return n=e.displayName||null,n!==null?n:se(e.type)||"Memo";case P:n=e._payload,e=e._init;try{return se(e(n))}catch{}}return null}var X=Array.isArray,_=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},ue=[],C=-1;function V(e){return{current:e}}function re(e){0>C||(e.current=ue[C],ue[C]=null,C--)}function Y(e,n){C++,ue[C]=e.current,e.current=n}var ee=V(null),J=V(null),ne=V(null),ie=V(null);function ce(e,n){switch(Y(ne,n),Y(J,e),Y(ee,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Dg(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Dg(n),e=zg(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}re(ee),Y(ee,e)}function xe(){re(ee),re(J),re(ne)}function Re(e){e.memoizedState!==null&&Y(ie,e);var n=ee.current,a=zg(n,e.type);n!==a&&(Y(J,e),Y(ee,a))}function Ne(e){J.current===e&&(re(ee),re(J)),ie.current===e&&(re(ie),jl._currentValue=Q)}var Ae=Object.prototype.hasOwnProperty,et=t.unstable_scheduleCallback,rt=t.unstable_cancelCallback,hn=t.unstable_shouldYield,pn=t.unstable_requestPaint,st=t.unstable_now,er=t.unstable_getCurrentPriorityLevel,pt=t.unstable_ImmediatePriority,_r=t.unstable_UserBlockingPriority,In=t.unstable_NormalPriority,it=t.unstable_LowPriority,gn=t.unstable_IdlePriority,Or=t.log,ga=t.unstable_setDisableYieldValue,It=null,Rt=null;function Ut(e){if(typeof Or=="function"&&ga(e),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(It,e)}catch{}}var Je=Math.clz32?Math.clz32:Mn,On=Math.log,Mr=Math.LN2;function Mn(e){return e>>>=0,e===0?32:31-(On(e)/Mr|0)|0}var va=256,ya=4194304;function nn(e){var n=e&42;if(n!==0)return n;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 Yn(e,n,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:n!==0&&n!==i&&(n&d)===0&&(d=i&-i,a=n&-n,d>=a||d===32&&(a&4194048)!==0)?n:i}function Gn(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function ba(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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=va;return va<<=1,(va&4194048)===0&&(va=256),e}function tr(){var e=ya;return ya<<=1,(ya&62914560)===0&&(ya=4194304),e}function nr(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function be(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Xe(e,n,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 G=31-Je(a),F=1<<G;S[G]=0,j[G]=-1;var $=L[G];if($!==null)for(L[G]=null,G=0;G<$.length;G++){var q=$[G];q!==null&&(q.lane&=-536870913)}a&=~F}l!==0&&me(e,l,0),d!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=d&~(x&~n))}function me(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var l=31-Je(n);e.entangledLanes|=n,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function He(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var l=31-Je(a),i=1<<l;i&n|e[l]&n&&(e[l]|=n),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 ar(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:ev(e.type))}function vt(e,n){var a=B.p;try{return B.p=e,n()}finally{B.p=a}}var ct=Math.random().toString(36).slice(2),ut="__reactFiber$"+ct,Ke="__reactProps$"+ct,St="__reactContainer$"+ct,Dr="__reactEvents$"+ct,Xn="__reactListeners$"+ct,Sm="__reactHandles$"+ct,wm="__reactResources$"+ct,$o="__reactMarker$"+ct;function Ec(e){delete e[ut],delete e[Ke],delete e[Dr],delete e[Xn],delete e[Sm]}function zr(e){var n=e[ut];if(n)return n;for(var a=e.parentNode;a;){if(n=a[St]||a[ut]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=Hg(e);e!==null;){if(a=e[ut])return a;e=Hg(e)}return n}e=a,a=e.parentNode}return null}function Ur(e){if(e=e[ut]||e[St]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function qo(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(s(33))}function Lr(e){var n=e[wm];return n||(n=e[wm]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function wt(e){e[$o]=!0}var Em=new Set,Nm={};function rr(e,n){Br(e,n),Br(e+"Capture",n)}function Br(e,n){for(Nm[e]=n,e=0;e<n.length;e++)Em.add(n[e])}var Y1=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]*$"),Tm={},Cm={};function G1(e){return Ae.call(Cm,e)?!0:Ae.call(Tm,e)?!1:Y1.test(e)?Cm[e]=!0:(Tm[e]=!0,!1)}function rs(e,n,a){if(G1(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var l=n.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function os(e,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+a)}}function Qn(e,n,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(n,a,""+l)}}var Nc,Rm;function Hr(e){if(Nc===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);Nc=n&&n[1]||"",Rm=-1<a.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+Nc+e+Rm}var Tc=!1;function Cc(e,n){if(!e||Tc)return"";Tc=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(n){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 $=q}Reflect.construct(e,[],F)}else{try{F.call()}catch(q){$=q}e.call(F.prototype)}}else{try{throw Error()}catch(q){$=q}(F=e())&&typeof F.catch=="function"&&F.catch(function(){})}}catch(q){if(q&&$&&typeof q.stack=="string")return[q.stack,$.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 G=`
|
|
47
|
+
`+j[l].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=l&&0<=i);break}}}finally{Tc=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Hr(a):""}function X1(e){switch(e.tag){case 26:case 27:case 5:return Hr(e.type);case 16:return Hr("Lazy");case 13:return Hr("Suspense");case 19:return Hr("SuspenseList");case 0:case 15:return Cc(e.type,!1);case 11:return Cc(e.type.render,!1);case 1:return Cc(e.type,!0);case 31:return Hr("Activity");default:return""}}function Am(e){try{var n="";do n+=X1(e),e=e.return;while(e);return n}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 km(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Q1(e){var n=km(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),l=""+e[n];if(!e.hasOwnProperty(n)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,d=a.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return i.call(this)},set:function(x){l=""+x,d.call(this,x)}}),Object.defineProperty(e,n,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ls(e){e._valueTracker||(e._valueTracker=Q1(e))}function jm(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),l="";return e&&(l=km(e)?e.checked?"true":"false":e.value),e=l,e!==a?(n.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 K1=/[\n"\\]/g;function rn(e){return e.replace(K1,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Rc(e,n,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"),n!=null?x==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+an(n)):e.value!==""+an(n)&&(e.value=""+an(n)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),n!=null?Ac(e,x,an(n)):a!=null?Ac(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 _m(e,n,a,l,i,d,x,S){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),n!=null||a!=null){if(!(d!=="submit"&&d!=="reset"||n!=null))return;a=a!=null?""+an(a):"",n=n!=null?""+an(n):a,S||n===e.value||(e.value=n),e.defaultValue=n}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 Ac(e,n,a){n==="number"&&ss(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Pr(e,n,a,l){if(e=e.options,n){n={};for(var i=0;i<a.length;i++)n["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=n.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&l&&(e[a].defaultSelected=!0)}else{for(a=""+an(a),n=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}n!==null||e[i].disabled||(n=e[i])}n!==null&&(n.selected=!0)}}function Om(e,n,a){if(n!=null&&(n=""+an(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+an(a):""}function Mm(e,n,a,l){if(n==null){if(l!=null){if(a!=null)throw Error(s(92));if(X(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),n=a}a=an(n),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function $r(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var Z1=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 Dm(e,n,a){var l=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":l?e.setProperty(n,a):typeof a!="number"||a===0||Z1.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function zm(e,n,a){if(n!=null&&typeof n!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||n!=null&&n.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in n)l=n[i],n.hasOwnProperty(i)&&a[i]!==l&&Dm(e,i,l)}else for(var d in n)n.hasOwnProperty(d)&&Dm(e,d,n[d])}function kc(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 F1=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"]]),W1=/^[\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 W1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var jc=null;function _c(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qr=null,Vr=null;function Um(e){var n=Ur(e);if(n&&(e=n.stateNode)){var a=e[Ke]||null;e:switch(e=n.stateNode,n.type){case"input":if(Rc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+rn(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var l=a[n];if(l!==e&&l.form===e.form){var i=l[Ke]||null;if(!i)throw Error(s(90));Rc(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(n=0;n<a.length;n++)l=a[n],l.form===e.form&&jm(l)}break e;case"textarea":Om(e,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&Pr(e,!!a.multiple,n,!1)}}}var Oc=!1;function Lm(e,n,a){if(Oc)return e(n,a);Oc=!0;try{var l=e(n);return l}finally{if(Oc=!1,(qr!==null||Vr!==null)&&(Xs(),qr&&(n=qr,e=Vr,Vr=qr=null,Um(n),e)))for(n=0;n<e.length;n++)Um(e[n])}}function Vo(e,n){var a=e.stateNode;if(a===null)return null;var l=a[Ke]||null;if(l===null)return null;a=l[n];e:switch(n){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,n,typeof a));return a}var Kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mc=!1;if(Kn)try{var Io={};Object.defineProperty(Io,"passive",{get:function(){Mc=!0}}),window.addEventListener("test",Io,Io),window.removeEventListener("test",Io,Io)}catch{Mc=!1}var xa=null,Dc=null,cs=null;function Bm(){if(cs)return cs;var e,n=Dc,a=n.length,l,i="value"in xa?xa.value:xa.textContent,d=i.length;for(e=0;e<a&&n[e]===i[e];e++);var x=a-e;for(l=1;l<=x&&n[a-l]===i[d-l];l++);return cs=i.slice(e,1<l?1-l:void 0)}function us(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function ds(){return!0}function Hm(){return!1}function Bt(e){function n(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:Hm,this.isPropagationStopped=Hm,this}return b(n.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}),n}var or={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fs=Bt(or),Yo=b({},or,{view:0,detail:0}),J1=Bt(Yo),zc,Uc,Go,ms=b({},Yo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bc,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"?(zc=e.screenX-Go.screenX,Uc=e.screenY-Go.screenY):Uc=zc=0,Go=e),zc)},movementY:function(e){return"movementY"in e?e.movementY:Uc}}),Pm=Bt(ms),eS=b({},ms,{dataTransfer:0}),tS=Bt(eS),nS=b({},Yo,{relatedTarget:0}),Lc=Bt(nS),aS=b({},or,{animationName:0,elapsedTime:0,pseudoElement:0}),rS=Bt(aS),oS=b({},or,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lS=Bt(oS),sS=b({},or,{data:0}),$m=Bt(sS),iS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cS={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"},uS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dS(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=uS[e])?!!n[e]:!1}function Bc(){return dS}var fS=b({},Yo,{key:function(e){if(e.key){var n=iS[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=us(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?cS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bc,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}}),mS=Bt(fS),hS=b({},ms,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qm=Bt(hS),pS=b({},Yo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bc}),gS=Bt(pS),vS=b({},or,{propertyName:0,elapsedTime:0,pseudoElement:0}),yS=Bt(vS),bS=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}),xS=Bt(bS),SS=b({},or,{newState:0,oldState:0}),wS=Bt(SS),ES=[9,13,27,32],Hc=Kn&&"CompositionEvent"in window,Xo=null;Kn&&"documentMode"in document&&(Xo=document.documentMode);var NS=Kn&&"TextEvent"in window&&!Xo,Vm=Kn&&(!Hc||Xo&&8<Xo&&11>=Xo),Im=" ",Ym=!1;function Gm(e,n){switch(e){case"keyup":return ES.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ir=!1;function TS(e,n){switch(e){case"compositionend":return Xm(n);case"keypress":return n.which!==32?null:(Ym=!0,Im);case"textInput":return e=n.data,e===Im&&Ym?null:e;default:return null}}function CS(e,n){if(Ir)return e==="compositionend"||!Hc&&Gm(e,n)?(e=Bm(),cs=Dc=xa=null,Ir=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Vm&&n.locale!=="ko"?null:n.data;default:return null}}var RS={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 n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!RS[e.type]:n==="textarea"}function Km(e,n,a,l){qr?Vr?Vr.push(l):Vr=[l]:qr=l,n=Js(n,"onChange"),0<n.length&&(a=new fs("onChange","change",null,a,l),e.push({event:a,listeners:n}))}var Qo=null,Ko=null;function AS(e){kg(e,0)}function hs(e){var n=qo(e);if(jm(n))return e}function Zm(e,n){if(e==="change")return n}var Fm=!1;if(Kn){var Pc;if(Kn){var $c="oninput"in document;if(!$c){var Wm=document.createElement("div");Wm.setAttribute("oninput","return;"),$c=typeof Wm.oninput=="function"}Pc=$c}else Pc=!1;Fm=Pc&&(!document.documentMode||9<document.documentMode)}function Jm(){Qo&&(Qo.detachEvent("onpropertychange",eh),Ko=Qo=null)}function eh(e){if(e.propertyName==="value"&&hs(Ko)){var n=[];Km(n,Ko,e,_c(e)),Lm(AS,n)}}function kS(e,n,a){e==="focusin"?(Jm(),Qo=n,Ko=a,Qo.attachEvent("onpropertychange",eh)):e==="focusout"&&Jm()}function jS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hs(Ko)}function _S(e,n){if(e==="click")return hs(n)}function OS(e,n){if(e==="input"||e==="change")return hs(n)}function MS(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Yt=typeof Object.is=="function"?Object.is:MS;function Zo(e,n){if(Yt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),l=Object.keys(n);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var i=a[l];if(!Ae.call(n,i)||!Yt(e[i],n[i]))return!1}return!0}function th(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nh(e,n){var a=th(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=n&&l>=n)return{node:a,offset:n-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=th(a)}}function ah(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?ah(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function rh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=ss(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=ss(e.document)}return n}function qc(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var DS=Kn&&"documentMode"in document&&11>=document.documentMode,Yr=null,Vc=null,Fo=null,Ic=!1;function oh(e,n,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ic||Yr==null||Yr!==ss(l)||(l=Yr,"selectionStart"in l&&qc(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(Vc,"onSelect"),0<l.length&&(n=new fs("onSelect","select",null,n,a),e.push({event:n,listeners:l}),n.target=Yr)))}function lr(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var Gr={animationend:lr("Animation","AnimationEnd"),animationiteration:lr("Animation","AnimationIteration"),animationstart:lr("Animation","AnimationStart"),transitionrun:lr("Transition","TransitionRun"),transitionstart:lr("Transition","TransitionStart"),transitioncancel:lr("Transition","TransitionCancel"),transitionend:lr("Transition","TransitionEnd")},Yc={},lh={};Kn&&(lh=document.createElement("div").style,"AnimationEvent"in window||(delete Gr.animationend.animation,delete Gr.animationiteration.animation,delete Gr.animationstart.animation),"TransitionEvent"in window||delete Gr.transitionend.transition);function sr(e){if(Yc[e])return Yc[e];if(!Gr[e])return e;var n=Gr[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in lh)return Yc[e]=n[a];return e}var sh=sr("animationend"),ih=sr("animationiteration"),ch=sr("animationstart"),zS=sr("transitionrun"),US=sr("transitionstart"),LS=sr("transitioncancel"),uh=sr("transitionend"),dh=new Map,Gc="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(" ");Gc.push("scrollEnd");function vn(e,n){dh.set(e,n),rr(n,[e])}var fh=new WeakMap;function on(e,n){if(typeof e=="object"&&e!==null){var a=fh.get(e);return a!==void 0?a:(n={value:e,source:n,stack:Am(n)},fh.set(e,n),n)}return{value:e,source:n,stack:Am(n)}}var ln=[],Xr=0,Xc=0;function ps(){for(var e=Xr,n=Xc=Xr=0;n<e;){var a=ln[n];ln[n++]=null;var l=ln[n];ln[n++]=null;var i=ln[n];ln[n++]=null;var d=ln[n];if(ln[n++]=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&&mh(a,i,d)}}function gs(e,n,a,l){ln[Xr++]=e,ln[Xr++]=n,ln[Xr++]=a,ln[Xr++]=l,Xc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Qc(e,n,a,l){return gs(e,n,a,l),vs(e)}function Qr(e,n){return gs(e,null,null,n),vs(e)}function mh(e,n,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&&n!==null&&(i=31-Je(a),e=d.hiddenUpdates,l=e[i],l===null?e[i]=[n]:l.push(n),n.lane=a|536870912),d):null}function vs(e){if(50<wl)throw wl=0,ed=null,Error(s(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Kr={};function BS(e,n,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=n,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,n,a,l){return new BS(e,n,a,l)}function Kc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zn(e,n){var a=e.alternate;return a===null?(a=Gt(e.tag,n,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=n,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,n=e.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function hh(e,n){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=n,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,n=a.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function ys(e,n,a,l,i,d){var x=0;if(l=e,typeof e=="function")Kc(e)&&(x=1);else if(typeof e=="string")x=Pw(e,a,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=Gt(31,a,n,i),e.elementType=le,e.lanes=d,e;case A:return ir(a.children,i,d,n);case E:x=8,i|=24;break;case N:return e=Gt(12,a,n,i|2),e.elementType=N,e.lanes=d,e;case z:return e=Gt(13,a,n,i),e.elementType=z,e.lanes=d,e;case K:return e=Gt(19,a,n,i),e.elementType=K,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case T:case O:x=10;break e;case R:x=9;break e;case H:x=11;break e;case I:x=14;break e;case P:x=16,l=null;break e}x=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return n=Gt(x,a,n,i),n.elementType=e,n.type=l,n.lanes=d,n}function ir(e,n,a,l){return e=Gt(7,e,l,n),e.lanes=a,e}function Zc(e,n,a){return e=Gt(6,e,null,n),e.lanes=a,e}function Fc(e,n,a){return n=Gt(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Zr=[],Fr=0,bs=null,xs=0,sn=[],cn=0,cr=null,Fn=1,Wn="";function ur(e,n){Zr[Fr++]=xs,Zr[Fr++]=bs,bs=e,xs=n}function ph(e,n,a){sn[cn++]=Fn,sn[cn++]=Wn,sn[cn++]=cr,cr=e;var l=Fn;e=Wn;var i=32-Je(l)-1;l&=~(1<<i),a+=1;var d=32-Je(n)+i;if(30<d){var x=i-i%5;d=(l&(1<<x)-1).toString(32),l>>=x,i-=x,Fn=1<<32-Je(n)+i|a<<i|l,Wn=d+e}else Fn=1<<d|a<<i|l,Wn=e}function Wc(e){e.return!==null&&(ur(e,1),ph(e,1,0))}function Jc(e){for(;e===bs;)bs=Zr[--Fr],Zr[Fr]=null,xs=Zr[--Fr],Zr[Fr]=null;for(;e===cr;)cr=sn[--cn],sn[cn]=null,Wn=sn[--cn],sn[cn]=null,Fn=sn[--cn],sn[cn]=null}var zt=null,ot=null,Pe=!1,dr=null,Dn=!1,eu=Error(s(519));function fr(e){var n=Error(s(418,""));throw el(on(n,e)),eu}function gh(e){var n=e.stateNode,a=e.type,l=e.memoizedProps;switch(n[ut]=e,n[Ke]=l,a){case"dialog":De("cancel",n),De("close",n);break;case"iframe":case"object":case"embed":De("load",n);break;case"video":case"audio":for(a=0;a<Nl.length;a++)De(Nl[a],n);break;case"source":De("error",n);break;case"img":case"image":case"link":De("error",n),De("load",n);break;case"details":De("toggle",n);break;case"input":De("invalid",n),_m(n,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),ls(n);break;case"select":De("invalid",n);break;case"textarea":De("invalid",n),Mm(n,l.value,l.defaultValue,l.children),ls(n)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||l.suppressHydrationWarning===!0||Mg(n.textContent,a)?(l.popover!=null&&(De("beforetoggle",n),De("toggle",n)),l.onScroll!=null&&De("scroll",n),l.onScrollEnd!=null&&De("scrollend",n),l.onClick!=null&&(n.onclick=ei),n=!0):n=!1,n||fr(e)}function vh(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 vh(e),Pe=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||gd(e.type,e.memoizedProps)),a=!a),a&&ot&&fr(e),vh(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(n===0){ot=bn(e.nextSibling);break e}n--}else a!=="$"&&a!=="$!"&&a!=="$?"||n++;e=e.nextSibling}ot=null}}else n===27?(n=ot,Ua(e.type)?(e=xd,xd=null,ot=e):ot=n):ot=zt?bn(e.stateNode.nextSibling):null;return!0}function Jo(){ot=zt=null,Pe=!1}function yh(){var e=dr;return e!==null&&($t===null?$t=e:$t.push.apply($t,e),dr=null),e}function el(e){dr===null?dr=[e]:dr.push(e)}var tu=V(null),mr=null,Jn=null;function Sa(e,n,a){Y(tu,n._currentValue),n._currentValue=a}function ea(e){e._currentValue=tu.current,re(tu)}function nu(e,n,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),e===a)break;e=e.return}}function au(e,n,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<n.length;j++)if(S.context===n[j]){d.lanes|=a,S=d.alternate,S!==null&&(S.lanes|=a),nu(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),nu(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,n,a,l){e=null;for(var i=n,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;Yt(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&&au(n,e,a,l),n.flags|=262144}function Ss(e){for(e=e.firstContext;e!==null;){if(!Yt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function hr(e){mr=e,Jn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ot(e){return bh(mr,e)}function ws(e,n){return mr===null&&hr(e),bh(e,n)}function bh(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},Jn===null){if(e===null)throw Error(s(308));Jn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Jn=Jn.next=n;return a}var HS=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},PS=t.unstable_scheduleCallback,$S=t.unstable_NormalPriority,yt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ru(){return{controller:new HS,data:new Map,refCount:0}}function nl(e){e.refCount--,e.refCount===0&&PS($S,function(){e.controller.abort()})}var al=null,ou=0,Wr=0,Jr=null;function qS(e,n){if(al===null){var a=al=[];ou=0,Wr=sd(),Jr={status:"pending",value:void 0,then:function(l){a.push(l)}}}return ou++,n.then(xh,xh),n}function xh(){if(--ou===0&&al!==null){Jr!==null&&(Jr.status="fulfilled");var e=al;al=null,Wr=0,Jr=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function VS(e,n){var a=[],l={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){l.status="fulfilled",l.value=n;for(var i=0;i<a.length;i++)(0,a[i])(n)},function(i){for(l.status="rejected",l.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),l}var Sh=_.S;_.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&qS(e,n),Sh!==null&&Sh(e,n)};var pr=V(null);function lu(){var e=pr.current;return e!==null?e:Ze.pooledCache}function Es(e,n){n===null?Y(pr,pr.current):Y(pr,n.pool)}function wh(){var e=lu();return e===null?null:{parent:yt._currentValue,pool:e}}var rl=Error(s(460)),Eh=Error(s(474)),Ns=Error(s(542)),su={then:function(){}};function Nh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ts(){}function Th(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(Ts,Ts),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Rh(e),e;default:if(typeof n.status=="string")n.then(Ts,Ts);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=n,e.status="pending",e.then(function(l){if(n.status==="pending"){var i=n;i.status="fulfilled",i.value=l}},function(l){if(n.status==="pending"){var i=n;i.status="rejected",i.reason=l}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Rh(e),e}throw ol=n,rl}}var ol=null;function Ch(){if(ol===null)throw Error(s(459));var e=ol;return ol=null,e}function Rh(e){if(e===rl||e===Ns)throw Error(s(483))}var wa=!1;function iu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cu(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ea(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Na(e,n,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,($e&2)!==0){var i=l.pending;return i===null?n.next=n:(n.next=i.next,i.next=n),l.pending=n,n=vs(e),mh(e,null,a),n}return gs(e,l,n,a),vs(e)}function ll(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var l=n.lanes;l&=e.pendingLanes,a|=l,n.lanes=a,He(e,a)}}function uu(e,n){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=n:d=d.next=n}else i=d=n;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=n:e.next=n,a.lastBaseUpdate=n}var du=!1;function sl(){if(du){var e=Jr;if(e!==null)throw e}}function il(e,n,a,l){du=!1;var i=e.updateQueue;wa=!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 G=e.alternate;G!==null&&(G=G.updateQueue,S=G.lastBaseUpdate,S!==x&&(S===null?G.firstBaseUpdate=L:S.next=L,G.lastBaseUpdate=j))}if(d!==null){var F=i.baseState;x=0,G=L=j=null,S=d;do{var $=S.lane&-536870913,q=$!==S.lane;if(q?(Le&$)===$:(l&$)===$){$!==0&&$===Wr&&(du=!0),G!==null&&(G=G.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var Ee=e,Se=S;$=n;var Ye=a;switch(Se.tag){case 1:if(Ee=Se.payload,typeof Ee=="function"){F=Ee.call(Ye,F,$);break e}F=Ee;break e;case 3:Ee.flags=Ee.flags&-65537|128;case 0:if(Ee=Se.payload,$=typeof Ee=="function"?Ee.call(Ye,F,$):Ee,$==null)break e;F=b({},F,$);break e;case 2:wa=!0}}$=S.callback,$!==null&&(e.flags|=64,q&&(e.flags|=8192),q=i.callbacks,q===null?i.callbacks=[$]:q.push($))}else q={lane:$,tag:S.tag,payload:S.payload,callback:S.callback,next:null},G===null?(L=G=q,j=F):G=G.next=q,x|=$;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);G===null&&(j=F),i.baseState=j,i.firstBaseUpdate=L,i.lastBaseUpdate=G,d===null&&(i.shared.lanes=0),Oa|=x,e.lanes=x,e.memoizedState=F}}function Ah(e,n){if(typeof e!="function")throw Error(s(191,e));e.call(n)}function kh(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Ah(a[e],n)}var eo=V(null),Cs=V(0);function jh(e,n){e=sa,Y(Cs,e),Y(eo,n),sa=e|n.baseLanes}function fu(){Y(Cs,sa),Y(eo,eo.current)}function mu(){sa=Cs.current,re(eo),re(Cs)}var Ta=0,je=null,Ve=null,mt=null,Rs=!1,to=!1,gr=!1,As=0,cl=0,no=null,IS=0;function dt(){throw Error(s(321))}function hu(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!Yt(e[a],n[a]))return!1;return!0}function pu(e,n,a,l,i,d){return Ta=d,je=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,_.H=e===null||e.memoizedState===null?mp:hp,gr=!1,d=a(l,i),gr=!1,to&&(d=Oh(n,a,l,i)),_h(e),d}function _h(e){_.H=Ds;var n=Ve!==null&&Ve.next!==null;if(Ta=0,mt=Ve=je=null,Rs=!1,cl=0,no=null,n)throw Error(s(300));e===null||Et||(e=e.dependencies,e!==null&&Ss(e)&&(Et=!0))}function Oh(e,n,a,l){je=e;var i=0;do{if(to&&(no=null),cl=0,to=!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=FS,d=n(a,l)}while(to);return d}function YS(){var e=_.H,n=e.useState()[0];return n=typeof n.then=="function"?ul(n):n,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(je.flags|=1024),n}function gu(){var e=As!==0;return As=0,e}function vu(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function yu(e){if(Rs){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Rs=!1}Ta=0,mt=Ve=je=null,to=!1,cl=As=0,no=null}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?je.memoizedState=mt=e:mt=mt.next=e,mt}function ht(){if(Ve===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var n=mt===null?je.memoizedState:mt.next;if(n!==null)mt=n,Ve=e;else{if(e===null)throw je.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?je.memoizedState=mt=e:mt=mt.next=e}return mt}function bu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ul(e){var n=cl;return cl+=1,no===null&&(no=[]),e=Th(no,e,n),n=je,(mt===null?n.memoizedState:mt.next)===null&&(n=n.alternate,_.H=n===null||n.memoizedState===null?mp:hp),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 xu(e){var n=null,a=je.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var l=je.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(n={data:l.data.map(function(i){return i.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=bu(),je.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),l=0;l<e;l++)a[l]=de;return n.index++,a}function ta(e,n){return typeof n=="function"?n(e):n}function js(e){var n=ht();return Su(n,Ve,e)}function Su(e,n,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}n.baseQueue=i=d,l.pending=null}if(d=e.baseState,i===null)e.memoizedState=d;else{n=i.next;var S=x=null,j=null,L=n,G=!1;do{var F=L.lane&-536870913;if(F!==L.lane?(Le&F)===F:(Ta&F)===F){var $=L.revertLane;if($===0)j!==null&&(j=j.next={lane:0,revertLane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),F===Wr&&(G=!0);else if((Ta&$)===$){L=L.next,$===Wr&&(G=!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,je.lanes|=$,Oa|=$;F=L.action,gr&&a(d,F),d=L.hasEagerState?L.eagerState:a(d,F)}else $={lane:F,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},j===null?(S=j=$,x=d):j=j.next=$,je.lanes|=F,Oa|=F;L=L.next}while(L!==null&&L!==n);if(j===null?x=d:j.next=S,!Yt(d,e.memoizedState)&&(Et=!0,G&&(a=Jr,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 wu(e){var n=ht(),a=n.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,i=a.pending,d=n.memoizedState;if(i!==null){a.pending=null;var x=i=i.next;do d=e(d,x.action),x=x.next;while(x!==i);Yt(d,n.memoizedState)||(Et=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),a.lastRenderedState=d}return[d,l]}function Mh(e,n,a){var l=je,i=ht(),d=Pe;if(d){if(a===void 0)throw Error(s(407));a=a()}else a=n();var x=!Yt((Ve||i).memoizedState,a);x&&(i.memoizedState=a,Et=!0),i=i.queue;var S=Uh.bind(null,l,i,e);if(dl(2048,8,S,[e]),i.getSnapshot!==n||x||mt!==null&&mt.memoizedState.tag&1){if(l.flags|=2048,ao(9,_s(),zh.bind(null,l,i,a,n),null),Ze===null)throw Error(s(349));d||(Ta&124)!==0||Dh(l,n,a)}return a}function Dh(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=je.updateQueue,n===null?(n=bu(),je.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function zh(e,n,a,l){n.value=a,n.getSnapshot=l,Lh(n)&&Bh(e)}function Uh(e,n,a){return a(function(){Lh(n)&&Bh(e)})}function Lh(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!Yt(e,a)}catch{return!0}}function Bh(e){var n=Qr(e,2);n!==null&&Ft(n,e,2)}function Eu(e){var n=Ht();if(typeof e=="function"){var a=e;if(e=a(),gr){Ut(!0);try{a()}finally{Ut(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:e},n}function Hh(e,n,a,l){return e.baseState=a,Su(e,Ve,typeof l=="function"?l:ta)}function GS(e,n,a,l,i){if(Ms(e))throw Error(s(485));if(e=n.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=n.pending,a===null?(d.next=n.pending=d,Ph(n,d)):(d.next=a.next,n.pending=a.next=d)}}function Ph(e,n){var a=n.action,l=n.payload,i=e.state;if(n.isTransition){var d=_.T,x={};_.T=x;try{var S=a(i,l),j=_.S;j!==null&&j(x,S),$h(e,n,S)}catch(L){Nu(e,n,L)}finally{_.T=d}}else try{d=a(i,l),$h(e,n,d)}catch(L){Nu(e,n,L)}}function $h(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){qh(e,n,l)},function(l){return Nu(e,n,l)}):qh(e,n,a)}function qh(e,n,a){n.status="fulfilled",n.value=a,Vh(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,Ph(e,a)))}function Nu(e,n,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do n.status="rejected",n.reason=a,Vh(n),n=n.next;while(n!==l)}e.action=null}function Vh(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Ih(e,n){return n}function Yh(e,n){if(Pe){var a=Ze.formState;if(a!==null){e:{var l=je;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}}fr(l)}l=!1}l&&(n=a[0])}}return a=Ht(),a.memoizedState=a.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ih,lastRenderedState:n},a.queue=l,a=up.bind(null,je,l),l.dispatch=a,l=Eu(!1),d=ku.bind(null,je,!1,l.queue),l=Ht(),i={state:n,dispatch:null,action:e,pending:null},l.queue=i,a=GS.bind(null,je,i,d,a),i.dispatch=a,l.memoizedState=e,[n,a,!1]}function Gh(e){var n=ht();return Xh(n,Ve,e)}function Xh(e,n,a){if(n=Su(e,n,Ih)[0],e=js(ta)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var l=ul(n)}catch(x){throw x===rl?Ns:x}else l=n;n=ht();var i=n.queue,d=i.dispatch;return a!==n.memoizedState&&(je.flags|=2048,ao(9,_s(),XS.bind(null,i,a),null)),[l,d,e]}function XS(e,n){e.action=n}function Qh(e){var n=ht(),a=Ve;if(a!==null)return Xh(n,a,e);ht(),n=n.memoizedState,a=ht();var l=a.queue.dispatch;return a.memoizedState=e,[n,l,!1]}function ao(e,n,a,l){return e={tag:e,create:a,deps:l,inst:n,next:null},n=je.updateQueue,n===null&&(n=bu(),je.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,n.lastEffect=e),e}function _s(){return{destroy:void 0,resource:void 0}}function Kh(){return ht().memoizedState}function Os(e,n,a,l){var i=Ht();l=l===void 0?null:l,je.flags|=e,i.memoizedState=ao(1|n,_s(),a,l)}function dl(e,n,a,l){var i=ht();l=l===void 0?null:l;var d=i.memoizedState.inst;Ve!==null&&l!==null&&hu(l,Ve.memoizedState.deps)?i.memoizedState=ao(n,d,a,l):(je.flags|=e,i.memoizedState=ao(1|n,d,a,l))}function Zh(e,n){Os(8390656,8,e,n)}function Fh(e,n){dl(2048,8,e,n)}function Wh(e,n){return dl(4,2,e,n)}function Jh(e,n){return dl(4,4,e,n)}function ep(e,n){if(typeof n=="function"){e=e();var a=n(e);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function tp(e,n,a){a=a!=null?a.concat([e]):null,dl(4,4,ep.bind(null,n,e),a)}function Tu(){}function np(e,n){var a=ht();n=n===void 0?null:n;var l=a.memoizedState;return n!==null&&hu(n,l[1])?l[0]:(a.memoizedState=[e,n],e)}function ap(e,n){var a=ht();n=n===void 0?null:n;var l=a.memoizedState;if(n!==null&&hu(n,l[1]))return l[0];if(l=e(),gr){Ut(!0);try{e()}finally{Ut(!1)}}return a.memoizedState=[l,n],l}function Cu(e,n,a){return a===void 0||(Ta&1073741824)!==0?e.memoizedState=n:(e.memoizedState=a,e=lg(),je.lanes|=e,Oa|=e,a)}function rp(e,n,a,l){return Yt(a,n)?a:eo.current!==null?(e=Cu(e,a,l),Yt(e,n)||(Et=!0),e):(Ta&42)===0?(Et=!0,e.memoizedState=a):(e=lg(),je.lanes|=e,Oa|=e,n)}function op(e,n,a,l,i){var d=B.p;B.p=d!==0&&8>d?d:8;var x=_.T,S={};_.T=S,ku(e,!1,n,a);try{var j=i(),L=_.S;if(L!==null&&L(S,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var G=VS(j,l);fl(e,n,G,Zt(e))}else fl(e,n,l,Zt(e))}catch(F){fl(e,n,{then:function(){},status:"rejected",reason:F},Zt())}finally{B.p=d,_.T=x}}function QS(){}function Ru(e,n,a,l){if(e.tag!==5)throw Error(s(476));var i=lp(e).queue;op(e,i,n,Q,a===null?QS:function(){return sp(e),a(l)})}function lp(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:Q},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function sp(e){var n=lp(e).next.queue;fl(e,n,{},Zt())}function Au(){return Ot(jl)}function ip(){return ht().memoizedState}function cp(){return ht().memoizedState}function KS(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=Zt();e=Ea(a);var l=Na(n,e,a);l!==null&&(Ft(l,n,a),ll(l,n,a)),n={cache:ru()},e.payload=n;return}n=n.return}}function ZS(e,n,a){var l=Zt();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Ms(e)?dp(n,a):(a=Qc(e,n,a,l),a!==null&&(Ft(a,e,l),fp(a,n,l)))}function up(e,n,a){var l=Zt();fl(e,n,a,l)}function fl(e,n,a,l){var i={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ms(e))dp(n,i);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var x=n.lastRenderedState,S=d(x,a);if(i.hasEagerState=!0,i.eagerState=S,Yt(S,x))return gs(e,n,i,0),Ze===null&&ps(),!1}catch{}if(a=Qc(e,n,i,l),a!==null)return Ft(a,e,l),fp(a,n,l),!0}return!1}function ku(e,n,a,l){if(l={lane:2,revertLane:sd(),action:l,hasEagerState:!1,eagerState:null,next:null},Ms(e)){if(n)throw Error(s(479))}else n=Qc(e,a,l,2),n!==null&&Ft(n,e,2)}function Ms(e){var n=e.alternate;return e===je||n!==null&&n===je}function dp(e,n){to=Rs=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function fp(e,n,a){if((a&4194048)!==0){var l=n.lanes;l&=e.pendingLanes,a|=l,n.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},mp={readContext:Ot,use:ks,useCallback:function(e,n){return Ht().memoizedState=[e,n===void 0?null:n],e},useContext:Ot,useEffect:Zh,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,Os(4194308,4,ep.bind(null,n,e),a)},useLayoutEffect:function(e,n){return Os(4194308,4,e,n)},useInsertionEffect:function(e,n){Os(4,2,e,n)},useMemo:function(e,n){var a=Ht();n=n===void 0?null:n;var l=e();if(gr){Ut(!0);try{e()}finally{Ut(!1)}}return a.memoizedState=[l,n],l},useReducer:function(e,n,a){var l=Ht();if(a!==void 0){var i=a(n);if(gr){Ut(!0);try{a(n)}finally{Ut(!1)}}}else i=n;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=ZS.bind(null,je,e),[l.memoizedState,e]},useRef:function(e){var n=Ht();return e={current:e},n.memoizedState=e},useState:function(e){e=Eu(e);var n=e.queue,a=up.bind(null,je,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:Tu,useDeferredValue:function(e,n){var a=Ht();return Cu(a,e,n)},useTransition:function(){var e=Eu(!1);return e=op.bind(null,je,e.queue,!0,!1),Ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var l=je,i=Ht();if(Pe){if(a===void 0)throw Error(s(407));a=a()}else{if(a=n(),Ze===null)throw Error(s(349));(Le&124)!==0||Dh(l,n,a)}i.memoizedState=a;var d={value:a,getSnapshot:n};return i.queue=d,Zh(Uh.bind(null,l,d,e),[e]),l.flags|=2048,ao(9,_s(),zh.bind(null,l,d,a,n),null),a},useId:function(){var e=Ht(),n=Ze.identifierPrefix;if(Pe){var a=Wn,l=Fn;a=(l&~(1<<32-Je(l)-1)).toString(32)+a,n="«"+n+"R"+a,a=As++,0<a&&(n+="H"+a.toString(32)),n+="»"}else a=IS++,n="«"+n+"r"+a.toString(32)+"»";return e.memoizedState=n},useHostTransitionStatus:Au,useFormState:Yh,useActionState:Yh,useOptimistic:function(e){var n=Ht();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=ku.bind(null,je,!0,a),a.dispatch=n,[e,n]},useMemoCache:xu,useCacheRefresh:function(){return Ht().memoizedState=KS.bind(null,je)}},hp={readContext:Ot,use:ks,useCallback:np,useContext:Ot,useEffect:Fh,useImperativeHandle:tp,useInsertionEffect:Wh,useLayoutEffect:Jh,useMemo:ap,useReducer:js,useRef:Kh,useState:function(){return js(ta)},useDebugValue:Tu,useDeferredValue:function(e,n){var a=ht();return rp(a,Ve.memoizedState,e,n)},useTransition:function(){var e=js(ta)[0],n=ht().memoizedState;return[typeof e=="boolean"?e:ul(e),n]},useSyncExternalStore:Mh,useId:ip,useHostTransitionStatus:Au,useFormState:Gh,useActionState:Gh,useOptimistic:function(e,n){var a=ht();return Hh(a,Ve,e,n)},useMemoCache:xu,useCacheRefresh:cp},FS={readContext:Ot,use:ks,useCallback:np,useContext:Ot,useEffect:Fh,useImperativeHandle:tp,useInsertionEffect:Wh,useLayoutEffect:Jh,useMemo:ap,useReducer:wu,useRef:Kh,useState:function(){return wu(ta)},useDebugValue:Tu,useDeferredValue:function(e,n){var a=ht();return Ve===null?Cu(a,e,n):rp(a,Ve.memoizedState,e,n)},useTransition:function(){var e=wu(ta)[0],n=ht().memoizedState;return[typeof e=="boolean"?e:ul(e),n]},useSyncExternalStore:Mh,useId:ip,useHostTransitionStatus:Au,useFormState:Qh,useActionState:Qh,useOptimistic:function(e,n){var a=ht();return Ve!==null?Hh(a,Ve,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:xu,useCacheRefresh:cp},ro=null,ml=0;function zs(e){var n=ml;return ml+=1,ro===null&&(ro=[]),Th(ro,e,n)}function hl(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Us(e,n){throw n.$$typeof===y?Error(s(525)):(e=Object.prototype.toString.call(n),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function pp(e){var n=e._init;return n(e._payload)}function gp(e){function n(D,M){if(e){var U=D.deletions;U===null?(D.deletions=[M],D.flags|=16):U.push(M)}}function a(D,M){if(!e)return null;for(;M!==null;)n(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,U){return D.index=U,e?(U=D.alternate,U!==null?(U=U.index,U<M?(D.flags|=67108866,M):U):(D.flags|=67108866,M)):(D.flags|=1048576,M)}function x(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function S(D,M,U,Z){return M===null||M.tag!==6?(M=Zc(U,D.mode,Z),M.return=D,M):(M=i(M,U),M.return=D,M)}function j(D,M,U,Z){var he=U.type;return he===A?G(D,M,U.props.children,Z,U.key):M!==null&&(M.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===P&&pp(he)===M.type)?(M=i(M,U.props),hl(M,U),M.return=D,M):(M=ys(U.type,U.key,U.props,null,D.mode,Z),hl(M,U),M.return=D,M)}function L(D,M,U,Z){return M===null||M.tag!==4||M.stateNode.containerInfo!==U.containerInfo||M.stateNode.implementation!==U.implementation?(M=Fc(U,D.mode,Z),M.return=D,M):(M=i(M,U.children||[]),M.return=D,M)}function G(D,M,U,Z,he){return M===null||M.tag!==7?(M=ir(U,D.mode,Z,he),M.return=D,M):(M=i(M,U),M.return=D,M)}function F(D,M,U){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Zc(""+M,D.mode,U),M.return=D,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case w:return U=ys(M.type,M.key,M.props,null,D.mode,U),hl(U,M),U.return=D,U;case k:return M=Fc(M,D.mode,U),M.return=D,M;case P:var Z=M._init;return M=Z(M._payload),F(D,M,U)}if(X(M)||W(M))return M=ir(M,D.mode,U,null),M.return=D,M;if(typeof M.then=="function")return F(D,zs(M),U);if(M.$$typeof===O)return F(D,ws(D,M),U);Us(D,M)}return null}function $(D,M,U,Z){var he=M!==null?M.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return he!==null?null:S(D,M,""+U,Z);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case w:return U.key===he?j(D,M,U,Z):null;case k:return U.key===he?L(D,M,U,Z):null;case P:return he=U._init,U=he(U._payload),$(D,M,U,Z)}if(X(U)||W(U))return he!==null?null:G(D,M,U,Z,null);if(typeof U.then=="function")return $(D,M,zs(U),Z);if(U.$$typeof===O)return $(D,M,ws(D,U),Z);Us(D,U)}return null}function q(D,M,U,Z,he){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return D=D.get(U)||null,S(M,D,""+Z,he);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case w:return D=D.get(Z.key===null?U:Z.key)||null,j(M,D,Z,he);case k:return D=D.get(Z.key===null?U:Z.key)||null,L(M,D,Z,he);case P:var Oe=Z._init;return Z=Oe(Z._payload),q(D,M,U,Z,he)}if(X(Z)||W(Z))return D=D.get(U)||null,G(M,D,Z,he,null);if(typeof Z.then=="function")return q(D,M,U,zs(Z),he);if(Z.$$typeof===O)return q(D,M,U,ws(M,Z),he);Us(M,Z)}return null}function Ee(D,M,U,Z){for(var he=null,Oe=null,ye=M,we=M=0,Tt=null;ye!==null&&we<U.length;we++){ye.index>we?(Tt=ye,ye=null):Tt=ye.sibling;var Be=$(D,ye,U[we],Z);if(Be===null){ye===null&&(ye=Tt);break}e&&ye&&Be.alternate===null&&n(D,ye),M=d(Be,M,we),Oe===null?he=Be:Oe.sibling=Be,Oe=Be,ye=Tt}if(we===U.length)return a(D,ye),Pe&&ur(D,we),he;if(ye===null){for(;we<U.length;we++)ye=F(D,U[we],Z),ye!==null&&(M=d(ye,M,we),Oe===null?he=ye:Oe.sibling=ye,Oe=ye);return Pe&&ur(D,we),he}for(ye=l(ye);we<U.length;we++)Tt=q(ye,D,we,U[we],Z),Tt!==null&&(e&&Tt.alternate!==null&&ye.delete(Tt.key===null?we:Tt.key),M=d(Tt,M,we),Oe===null?he=Tt:Oe.sibling=Tt,Oe=Tt);return e&&ye.forEach(function($a){return n(D,$a)}),Pe&&ur(D,we),he}function Se(D,M,U,Z){if(U==null)throw Error(s(151));for(var he=null,Oe=null,ye=M,we=M=0,Tt=null,Be=U.next();ye!==null&&!Be.done;we++,Be=U.next()){ye.index>we?(Tt=ye,ye=null):Tt=ye.sibling;var $a=$(D,ye,Be.value,Z);if($a===null){ye===null&&(ye=Tt);break}e&&ye&&$a.alternate===null&&n(D,ye),M=d($a,M,we),Oe===null?he=$a:Oe.sibling=$a,Oe=$a,ye=Tt}if(Be.done)return a(D,ye),Pe&&ur(D,we),he;if(ye===null){for(;!Be.done;we++,Be=U.next())Be=F(D,Be.value,Z),Be!==null&&(M=d(Be,M,we),Oe===null?he=Be:Oe.sibling=Be,Oe=Be);return Pe&&ur(D,we),he}for(ye=l(ye);!Be.done;we++,Be=U.next())Be=q(ye,D,we,Be.value,Z),Be!==null&&(e&&Be.alternate!==null&&ye.delete(Be.key===null?we:Be.key),M=d(Be,M,we),Oe===null?he=Be:Oe.sibling=Be,Oe=Be);return e&&ye.forEach(function(Ww){return n(D,Ww)}),Pe&&ur(D,we),he}function Ye(D,M,U,Z){if(typeof U=="object"&&U!==null&&U.type===A&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case w:e:{for(var he=U.key;M!==null;){if(M.key===he){if(he=U.type,he===A){if(M.tag===7){a(D,M.sibling),Z=i(M,U.props.children),Z.return=D,D=Z;break e}}else if(M.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===P&&pp(he)===M.type){a(D,M.sibling),Z=i(M,U.props),hl(Z,U),Z.return=D,D=Z;break e}a(D,M);break}else n(D,M);M=M.sibling}U.type===A?(Z=ir(U.props.children,D.mode,Z,U.key),Z.return=D,D=Z):(Z=ys(U.type,U.key,U.props,null,D.mode,Z),hl(Z,U),Z.return=D,D=Z)}return x(D);case k:e:{for(he=U.key;M!==null;){if(M.key===he)if(M.tag===4&&M.stateNode.containerInfo===U.containerInfo&&M.stateNode.implementation===U.implementation){a(D,M.sibling),Z=i(M,U.children||[]),Z.return=D,D=Z;break e}else{a(D,M);break}else n(D,M);M=M.sibling}Z=Fc(U,D.mode,Z),Z.return=D,D=Z}return x(D);case P:return he=U._init,U=he(U._payload),Ye(D,M,U,Z)}if(X(U))return Ee(D,M,U,Z);if(W(U)){if(he=W(U),typeof he!="function")throw Error(s(150));return U=he.call(U),Se(D,M,U,Z)}if(typeof U.then=="function")return Ye(D,M,zs(U),Z);if(U.$$typeof===O)return Ye(D,M,ws(D,U),Z);Us(D,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,M!==null&&M.tag===6?(a(D,M.sibling),Z=i(M,U),Z.return=D,D=Z):(a(D,M),Z=Zc(U,D.mode,Z),Z.return=D,D=Z),x(D)):a(D,M)}return function(D,M,U,Z){try{ml=0;var he=Ye(D,M,U,Z);return ro=null,he}catch(ye){if(ye===rl||ye===Ns)throw ye;var Oe=Gt(29,ye,null,D.mode);return Oe.lanes=Z,Oe.return=D,Oe}}}var oo=gp(!0),vp=gp(!1),un=V(null),zn=null;function Ca(e){var n=e.alternate;Y(bt,bt.current&1),Y(un,e),zn===null&&(n===null||eo.current!==null||n.memoizedState!==null)&&(zn=e)}function yp(e){if(e.tag===22){if(Y(bt,bt.current),Y(un,e),zn===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(zn=e)}}else Ra()}function Ra(){Y(bt,bt.current),Y(un,un.current)}function na(e){re(un),zn===e&&(zn=null),re(bt)}var bt=V(0);function Ls(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||bd(a)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function ju(e,n,a,l){n=e.memoizedState,a=a(l,n),a=a==null?n:b({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var _u={enqueueSetState:function(e,n,a){e=e._reactInternals;var l=Zt(),i=Ea(l);i.payload=n,a!=null&&(i.callback=a),n=Na(e,i,l),n!==null&&(Ft(n,e,l),ll(n,e,l))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var l=Zt(),i=Ea(l);i.tag=1,i.payload=n,a!=null&&(i.callback=a),n=Na(e,i,l),n!==null&&(Ft(n,e,l),ll(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=Zt(),l=Ea(a);l.tag=2,n!=null&&(l.callback=n),n=Na(e,l,a),n!==null&&(Ft(n,e,a),ll(n,e,a))}};function bp(e,n,a,l,i,d,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,d,x):n.prototype&&n.prototype.isPureReactComponent?!Zo(a,l)||!Zo(i,d):!0}function xp(e,n,a,l){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,l),n.state!==e&&_u.enqueueReplaceState(n,n.state,null)}function vr(e,n){var a=n;if("ref"in n){a={};for(var l in n)l!=="ref"&&(a[l]=n[l])}if(e=e.defaultProps){a===n&&(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 n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Sp(e){Bs(e)}function wp(e){console.error(e)}function Ep(e){Bs(e)}function Hs(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(l){setTimeout(function(){throw l})}}function Np(e,n,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Ou(e,n,a){return a=Ea(a),a.tag=3,a.payload={element:null},a.callback=function(){Hs(e,n)},a}function Tp(e){return e=Ea(e),e.tag=3,e}function Cp(e,n,a,l){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var d=l.value;e.payload=function(){return i(d)},e.callback=function(){Np(n,a,l)}}var x=a.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){Np(n,a,l),typeof i!="function"&&(Ma===null?Ma=new Set([this]):Ma.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function WS(e,n,a,l,i){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(n=a.alternate,n!==null&&tl(n,a,i,!0),a=un.current,a!==null){switch(a.tag){case 13:return zn===null?nd():a.alternate===null&<===0&&(lt=3),a.flags&=-257,a.flags|=65536,a.lanes=i,l===su?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([l]):n.add(l),rd(e,l,i)),!1;case 22:return a.flags|=65536,l===su?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([l]):a.add(l)),rd(e,l,i)),!1}throw Error(s(435,a.tag))}return rd(e,l,i),nd(),!1}if(Pe)return n=un.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=i,l!==eu&&(e=Error(s(422),{cause:l}),el(on(e,a)))):(l!==eu&&(n=Error(s(423),{cause:l}),el(on(n,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=on(l,a),i=Ou(e.stateNode,l,i),uu(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),n===null)return!0;l=on(l,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=Ou(a.stateNode,l,e),uu(a,e),!1;case 1:if(n=a.type,d=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Ma===null||!Ma.has(d))))return a.flags|=65536,i&=-i,a.lanes|=i,i=Tp(i),Cp(i,e,a,l),uu(a,i),!1}a=a.return}while(a!==null);return!1}var Rp=Error(s(461)),Et=!1;function At(e,n,a,l){n.child=e===null?vp(n,null,a,l):oo(n,e.child,a,l)}function Ap(e,n,a,l,i){a=a.render;var d=n.ref;if("ref"in l){var x={};for(var S in l)S!=="ref"&&(x[S]=l[S])}else x=l;return hr(n),l=pu(e,n,a,x,d,i),S=gu(),e!==null&&!Et?(vu(e,n,i),aa(e,n,i)):(Pe&&S&&Wc(n),n.flags|=1,At(e,n,l,i),n.child)}function kp(e,n,a,l,i){if(e===null){var d=a.type;return typeof d=="function"&&!Kc(d)&&d.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=d,jp(e,n,d,l,i)):(e=ys(a.type,null,l,n,n.mode,i),e.ref=n.ref,e.return=n,n.child=e)}if(d=e.child,!Pu(e,i)){var x=d.memoizedProps;if(a=a.compare,a=a!==null?a:Zo,a(x,l)&&e.ref===n.ref)return aa(e,n,i)}return n.flags|=1,e=Zn(d,l),e.ref=n.ref,e.return=n,n.child=e}function jp(e,n,a,l,i){if(e!==null){var d=e.memoizedProps;if(Zo(d,l)&&e.ref===n.ref)if(Et=!1,n.pendingProps=l=d,Pu(e,i))(e.flags&131072)!==0&&(Et=!0);else return n.lanes=e.lanes,aa(e,n,i)}return Mu(e,n,a,l,i)}function _p(e,n,a){var l=n.pendingProps,i=l.children,d=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((n.flags&128)!==0){if(l=d!==null?d.baseLanes|a:a,e!==null){for(i=n.child=e.child,d=0;i!==null;)d=d|i.lanes|i.childLanes,i=i.sibling;n.childLanes=d&~l}else n.childLanes=0,n.child=null;return Op(e,n,l,a)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Es(n,d!==null?d.cachePool:null),d!==null?jh(n,d):fu(),yp(n);else return n.lanes=n.childLanes=536870912,Op(e,n,d!==null?d.baseLanes|a:a,a)}else d!==null?(Es(n,d.cachePool),jh(n,d),Ra(),n.memoizedState=null):(e!==null&&Es(n,null),fu(),Ra());return At(e,n,i,a),n.child}function Op(e,n,a,l){var i=lu();return i=i===null?null:{parent:yt._currentValue,pool:i},n.memoizedState={baseLanes:a,cachePool:i},e!==null&&Es(n,null),fu(),yp(n),e!==null&&tl(e,n,l,!0),null}function Ps(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function Mu(e,n,a,l,i){return hr(n),a=pu(e,n,a,l,void 0,i),l=gu(),e!==null&&!Et?(vu(e,n,i),aa(e,n,i)):(Pe&&l&&Wc(n),n.flags|=1,At(e,n,a,i),n.child)}function Mp(e,n,a,l,i,d){return hr(n),n.updateQueue=null,a=Oh(n,l,a,i),_h(e),l=gu(),e!==null&&!Et?(vu(e,n,d),aa(e,n,d)):(Pe&&l&&Wc(n),n.flags|=1,At(e,n,a,d),n.child)}function Dp(e,n,a,l,i){if(hr(n),n.stateNode===null){var d=Kr,x=a.contextType;typeof x=="object"&&x!==null&&(d=Ot(x)),d=new a(l,d),n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=_u,n.stateNode=d,d._reactInternals=n,d=n.stateNode,d.props=l,d.state=n.memoizedState,d.refs={},iu(n),x=a.contextType,d.context=typeof x=="object"&&x!==null?Ot(x):Kr,d.state=n.memoizedState,x=a.getDerivedStateFromProps,typeof x=="function"&&(ju(n,a,x,l),d.state=n.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&&_u.enqueueReplaceState(d,d.state,null),il(n,l,d,i),sl(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),l=!0}else if(e===null){d=n.stateNode;var S=n.memoizedProps,j=vr(a,S);d.props=j;var L=d.context,G=a.contextType;x=Kr,typeof G=="object"&&G!==null&&(x=Ot(G));var F=a.getDerivedStateFromProps;G=typeof F=="function"||typeof d.getSnapshotBeforeUpdate=="function",S=n.pendingProps!==S,G||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(S||L!==x)&&xp(n,d,l,x),wa=!1;var $=n.memoizedState;d.state=$,il(n,l,d,i),sl(),L=n.memoizedState,S||$!==L||wa?(typeof F=="function"&&(ju(n,a,F,l),L=n.memoizedState),(j=wa||bp(n,a,j,l,$,L,x))?(G||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"&&(n.flags|=4194308)):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=l,n.memoizedState=L),d.props=l,d.state=L,d.context=x,l=j):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{d=n.stateNode,cu(e,n),x=n.memoizedProps,G=vr(a,x),d.props=G,F=n.pendingProps,$=d.context,L=a.contextType,j=Kr,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||$!==j)&&xp(n,d,l,j),wa=!1,$=n.memoizedState,d.state=$,il(n,l,d,i),sl();var q=n.memoizedState;x!==F||$!==q||wa||e!==null&&e.dependencies!==null&&Ss(e.dependencies)?(typeof S=="function"&&(ju(n,a,S,l),q=n.memoizedState),(G=wa||bp(n,a,G,l,$,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"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&$===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&$===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=q),d.props=l,d.state=q,d.context=j,l=G):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&$===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&$===e.memoizedState||(n.flags|=1024),l=!1)}return d=l,Ps(e,n),l=(n.flags&128)!==0,d||l?(d=n.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:d.render(),n.flags|=1,e!==null&&l?(n.child=oo(n,e.child,null,i),n.child=oo(n,null,a,i)):At(e,n,a,i),n.memoizedState=d.state,e=n.child):e=aa(e,n,i),e}function zp(e,n,a,l){return Jo(),n.flags|=256,At(e,n,a,l),n.child}var Du={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function zu(e){return{baseLanes:e,cachePool:wh()}}function Uu(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=dn),e}function Up(e,n,a){var l=n.pendingProps,i=!1,d=(n.flags&128)!==0,x;if((x=d)||(x=e!==null&&e.memoizedState===null?!1:(bt.current&2)!==0),x&&(i=!0,n.flags&=-129),x=(n.flags&32)!==0,n.flags&=-33,e===null){if(Pe){if(i?Ca(n):Ra(),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?(n.memoizedState={dehydrated:S,treeContext:cr!==null?{id:Fn,overflow:Wn}:null,retryLane:536870912,hydrationErrors:null},j=Gt(18,null,null,0),j.stateNode=S,j.return=n,n.child=j,zt=n,ot=null,j=!0):j=!1}j||fr(n)}if(S=n.memoizedState,S!==null&&(S=S.dehydrated,S!==null))return bd(S)?n.lanes=32:n.lanes=536870912,null;na(n)}return S=l.children,l=l.fallback,i?(Ra(),i=n.mode,S=$s({mode:"hidden",children:S},i),l=ir(l,i,a,null),S.return=n,l.return=n,S.sibling=l,n.child=S,i=n.child,i.memoizedState=zu(a),i.childLanes=Uu(e,x,a),n.memoizedState=Du,l):(Ca(n),Lu(n,S))}if(j=e.memoizedState,j!==null&&(S=j.dehydrated,S!==null)){if(d)n.flags&256?(Ca(n),n.flags&=-257,n=Bu(e,n,a)):n.memoizedState!==null?(Ra(),n.child=e.child,n.flags|=128,n=null):(Ra(),i=l.fallback,S=n.mode,l=$s({mode:"visible",children:l.children},S),i=ir(i,S,a,null),i.flags|=2,l.return=n,i.return=n,l.sibling=i,n.child=l,oo(n,e.child,null,a),l=n.child,l.memoizedState=zu(a),l.childLanes=Uu(e,x,a),n.memoizedState=Du,n=i);else if(Ca(n),bd(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}),n=Bu(e,n,a)}else if(Et||tl(e,n,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,Qr(e,l),Ft(x,e,l),Rp;S.data==="$?"||nd(),n=Bu(e,n,a)}else S.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=j.treeContext,ot=bn(S.nextSibling),zt=n,Pe=!0,dr=null,Dn=!1,e!==null&&(sn[cn++]=Fn,sn[cn++]=Wn,sn[cn++]=cr,Fn=e.id,Wn=e.overflow,cr=n),n=Lu(n,l.children),n.flags|=4096);return n}return i?(Ra(),i=l.fallback,S=n.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=ir(i,S,a,null),i.flags|=2),i.return=n,l.return=n,l.sibling=i,n.child=l,l=i,i=n.child,S=e.child.memoizedState,S===null?S=zu(a):(j=S.cachePool,j!==null?(L=yt._currentValue,j=j.parent!==L?{parent:L,pool:L}:j):j=wh(),S={baseLanes:S.baseLanes|a,cachePool:j}),i.memoizedState=S,i.childLanes=Uu(e,x,a),n.memoizedState=Du,l):(Ca(n),a=e.child,e=a.sibling,a=Zn(a,{mode:"visible",children:l.children}),a.return=n,a.sibling=null,e!==null&&(x=n.deletions,x===null?(n.deletions=[e],n.flags|=16):x.push(e)),n.child=a,n.memoizedState=null,a)}function Lu(e,n){return n=$s({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function $s(e,n){return e=Gt(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Bu(e,n,a){return oo(n,e.child,null,a),e=Lu(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Lp(e,n,a){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),nu(e.return,n,a)}function Hu(e,n,a,l,i){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:i}:(d.isBackwards=n,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=a,d.tailMode=i)}function Bp(e,n,a){var l=n.pendingProps,i=l.revealOrder,d=l.tail;if(At(e,n,l.children,a),l=bt.current,(l&2)!==0)l=l&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lp(e,a,n);else if(e.tag===19)Lp(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(Y(bt,l),i){case"forwards":for(a=n.child,i=null;a!==null;)e=a.alternate,e!==null&&Ls(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=n.child,n.child=null):(i=a.sibling,a.sibling=null),Hu(n,!1,i,a,d);break;case"backwards":for(a=null,i=n.child,n.child=null;i!==null;){if(e=i.alternate,e!==null&&Ls(e)===null){n.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}Hu(n,!0,a,null,d);break;case"together":Hu(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function aa(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Oa|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(tl(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(s(153));if(n.child!==null){for(e=n.child,a=Zn(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=Zn(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function Pu(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Ss(e)))}function JS(e,n,a){switch(n.tag){case 3:ce(n,n.stateNode.containerInfo),Sa(n,yt,e.memoizedState.cache),Jo();break;case 27:case 5:Re(n);break;case 4:ce(n,n.stateNode.containerInfo);break;case 10:Sa(n,n.type,n.memoizedProps.value);break;case 13:var l=n.memoizedState;if(l!==null)return l.dehydrated!==null?(Ca(n),n.flags|=128,null):(a&n.child.childLanes)!==0?Up(e,n,a):(Ca(n),e=aa(e,n,a),e!==null?e.sibling:null);Ca(n);break;case 19:var i=(e.flags&128)!==0;if(l=(a&n.childLanes)!==0,l||(tl(e,n,a,!1),l=(a&n.childLanes)!==0),i){if(l)return Bp(e,n,a);n.flags|=128}if(i=n.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Y(bt,bt.current),l)break;return null;case 22:case 23:return n.lanes=0,_p(e,n,a);case 24:Sa(n,yt,e.memoizedState.cache)}return aa(e,n,a)}function Hp(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)Et=!0;else{if(!Pu(e,a)&&(n.flags&128)===0)return Et=!1,JS(e,n,a);Et=(e.flags&131072)!==0}else Et=!1,Pe&&(n.flags&1048576)!==0&&ph(n,xs,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var l=n.elementType,i=l._init;if(l=i(l._payload),n.type=l,typeof l=="function")Kc(l)?(e=vr(l,e),n.tag=1,n=Dp(null,n,l,e,a)):(n.tag=0,n=Mu(null,n,l,e,a));else{if(l!=null){if(i=l.$$typeof,i===H){n.tag=11,n=Ap(null,n,l,e,a);break e}else if(i===I){n.tag=14,n=kp(null,n,l,e,a);break e}}throw n=se(l)||l,Error(s(306,n,""))}}return n;case 0:return Mu(e,n,n.type,n.pendingProps,a);case 1:return l=n.type,i=vr(l,n.pendingProps),Dp(e,n,l,i,a);case 3:e:{if(ce(n,n.stateNode.containerInfo),e===null)throw Error(s(387));l=n.pendingProps;var d=n.memoizedState;i=d.element,cu(e,n),il(n,l,null,a);var x=n.memoizedState;if(l=x.cache,Sa(n,yt,l),l!==d.cache&&au(n,[yt],a,!0),sl(),l=x.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:x.cache},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){n=zp(e,n,l,a);break e}else if(l!==i){i=on(Error(s(424)),n),el(i),n=zp(e,n,l,a);break e}else for(e=n.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ot=bn(e.firstChild),zt=n,Pe=!0,dr=null,Dn=!0,a=vp(n,null,l,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Jo(),l===i){n=aa(e,n,a);break e}At(e,n,l,a)}n=n.child}return n;case 26:return Ps(e,n),e===null?(a=Vg(n.type,null,n.pendingProps,null))?n.memoizedState=a:Pe||(a=n.type,e=n.pendingProps,l=ti(ne.current).createElement(a),l[ut]=n,l[Ke]=e,jt(l,a,e),wt(l),n.stateNode=l):n.memoizedState=Vg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Re(n),e===null&&Pe&&(l=n.stateNode=Pg(n.type,n.pendingProps,ne.current),zt=n,Dn=!0,i=ot,Ua(n.type)?(xd=i,ot=bn(l.firstChild)):ot=i),At(e,n,n.pendingProps.children,a),Ps(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Pe&&((i=l=ot)&&(l=Rw(l,n.type,n.pendingProps,Dn),l!==null?(n.stateNode=l,zt=n,ot=bn(l.firstChild),Dn=!1,i=!0):i=!1),i||fr(n)),Re(n),i=n.type,d=n.pendingProps,x=e!==null?e.memoizedProps:null,l=d.children,gd(i,d)?l=null:x!==null&&gd(i,x)&&(n.flags|=32),n.memoizedState!==null&&(i=pu(e,n,YS,null,null,a),jl._currentValue=i),Ps(e,n),At(e,n,l,a),n.child;case 6:return e===null&&Pe&&((e=a=ot)&&(a=Aw(a,n.pendingProps,Dn),a!==null?(n.stateNode=a,zt=n,ot=null,e=!0):e=!1),e||fr(n)),null;case 13:return Up(e,n,a);case 4:return ce(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=oo(n,null,l,a):At(e,n,l,a),n.child;case 11:return Ap(e,n,n.type,n.pendingProps,a);case 7:return At(e,n,n.pendingProps,a),n.child;case 8:return At(e,n,n.pendingProps.children,a),n.child;case 12:return At(e,n,n.pendingProps.children,a),n.child;case 10:return l=n.pendingProps,Sa(n,n.type,l.value),At(e,n,l.children,a),n.child;case 9:return i=n.type._context,l=n.pendingProps.children,hr(n),i=Ot(i),l=l(i),n.flags|=1,At(e,n,l,a),n.child;case 14:return kp(e,n,n.type,n.pendingProps,a);case 15:return jp(e,n,n.type,n.pendingProps,a);case 19:return Bp(e,n,a);case 31:return l=n.pendingProps,a=n.mode,l={mode:l.mode,children:l.children},e===null?(a=$s(l,a),a.ref=n.ref,n.child=a,a.return=n,n=a):(a=Zn(e.child,l),a.ref=n.ref,n.child=a,a.return=n,n=a),n;case 22:return _p(e,n,a);case 24:return hr(n),l=Ot(yt),e===null?(i=lu(),i===null&&(i=Ze,d=ru(),i.pooledCache=d,d.refCount++,d!==null&&(i.pooledCacheLanes|=a),i=d),n.memoizedState={parent:l,cache:i},iu(n),Sa(n,yt,i)):((e.lanes&a)!==0&&(cu(e,n),il(n,null,null,a),sl()),i=e.memoizedState,d=n.memoizedState,i.parent!==l?(i={parent:l,cache:l},n.memoizedState=i,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=i),Sa(n,yt,l)):(l=d.cache,Sa(n,yt,l),l!==i.cache&&au(n,[yt],a,!0))),At(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(s(156,n.tag))}function ra(e){e.flags|=4}function Pp(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Qg(n)){if(n=un.current,n!==null&&((Le&4194048)===Le?zn!==null:(Le&62914560)!==Le&&(Le&536870912)===0||n!==zn))throw ol=su,Eh;e.flags|=8192}}function qs(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?tr():536870912,e.lanes|=n,co|=n)}function pl(e,n){if(!Pe)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.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?n||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function at(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(n)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,n}function ew(e,n,a){var l=n.pendingProps;switch(Jc(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(n),null;case 1:return at(n),null;case 3:return a=n.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),ea(yt),xe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Wo(n)?ra(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,yh())),at(n),null;case 26:return a=n.memoizedState,e===null?(ra(n),a!==null?(at(n),Pp(n,a)):(at(n),n.flags&=-16777217)):a?a!==e.memoizedState?(ra(n),at(n),Pp(n,a)):(at(n),n.flags&=-16777217):(e.memoizedProps!==l&&ra(n),at(n),n.flags&=-16777217),null;case 27:Ne(n),a=ne.current;var i=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==l&&ra(n);else{if(!l){if(n.stateNode===null)throw Error(s(166));return at(n),null}e=ee.current,Wo(n)?gh(n):(e=Pg(i,l,a),n.stateNode=e,ra(n))}return at(n),null;case 5:if(Ne(n),a=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&ra(n);else{if(!l){if(n.stateNode===null)throw Error(s(166));return at(n),null}if(e=ee.current,Wo(n))gh(n);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]=n,e[Ke]=l;e:for(i=n.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===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}n.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(n)}}return at(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==l&&ra(n);else{if(typeof l!="string"&&n.stateNode===null)throw Error(s(166));if(e=ne.current,Wo(n)){if(e=n.stateNode,a=n.memoizedProps,l=null,i=zt,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[ut]=n,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Mg(e.nodeValue,a)),e||fr(n)}else e=ti(e).createTextNode(l),e[ut]=n,n.stateNode=e}return at(n),null;case 13:if(l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Wo(n),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=n.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(s(317));i[ut]=n}else Jo(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;at(n),i=!1}else i=yh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return n.flags&256?(na(n),n):(na(n),null)}if(na(n),(n.flags&128)!==0)return n.lanes=a,n;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=n.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&&(n.child.flags|=8192),qs(n,n.updateQueue),at(n),null;case 4:return xe(),e===null&&dd(n.stateNode.containerInfo),at(n),null;case 10:return ea(n.type),at(n),null;case 19:if(re(bt),i=n.memoizedState,i===null)return at(n),null;if(l=(n.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=n.child;e!==null;){if(d=Ls(e),d!==null){for(n.flags|=128,pl(i,!1),e=d.updateQueue,n.updateQueue=e,qs(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)hh(a,e),a=a.sibling;return Y(bt,bt.current&1|2),n.child}e=e.sibling}i.tail!==null&&st()>Ys&&(n.flags|=128,l=!0,pl(i,!1),n.lanes=4194304)}else{if(!l)if(e=Ls(d),e!==null){if(n.flags|=128,l=!0,e=e.updateQueue,n.updateQueue=e,qs(n,e),pl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!Pe)return at(n),null}else 2*st()-i.renderingStartTime>Ys&&a!==536870912&&(n.flags|=128,l=!0,pl(i,!1),n.lanes=4194304);i.isBackwards?(d.sibling=n.child,n.child=d):(e=i.last,e!==null?e.sibling=d:n.child=d,i.last=d)}return i.tail!==null?(n=i.tail,i.rendering=n,i.tail=n.sibling,i.renderingStartTime=st(),n.sibling=null,e=bt.current,Y(bt,l?e&1|2:e&1),n):(at(n),null);case 22:case 23:return na(n),mu(),l=n.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(n.flags|=8192):l&&(n.flags|=8192),l?(a&536870912)!==0&&(n.flags&128)===0&&(at(n),n.subtreeFlags&6&&(n.flags|=8192)):at(n),a=n.updateQueue,a!==null&&qs(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==a&&(n.flags|=2048),e!==null&&re(pr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),ea(yt),at(n),null;case 25:return null;case 30:return null}throw Error(s(156,n.tag))}function tw(e,n){switch(Jc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ea(yt),xe(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Ne(n),null;case 13:if(na(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(s(340));Jo()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return re(bt),null;case 4:return xe(),null;case 10:return ea(n.type),null;case 22:case 23:return na(n),mu(),e!==null&&re(pr),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return ea(yt),null;case 25:return null;default:return null}}function $p(e,n){switch(Jc(n),n.tag){case 3:ea(yt),xe();break;case 26:case 27:case 5:Ne(n);break;case 4:xe();break;case 13:na(n);break;case 19:re(bt);break;case 10:ea(n.type);break;case 22:case 23:na(n),mu(),e!==null&&re(pr);break;case 24:ea(yt)}}function gl(e,n){try{var a=n.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(n,n.return,S)}}function Aa(e,n,a){try{var l=n.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=n;var j=a,L=S;try{L()}catch(G){Ge(i,j,G)}}}l=l.next}while(l!==d)}}catch(G){Ge(n,n.return,G)}}function qp(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{kh(n,a)}catch(l){Ge(e,e.return,l)}}}function Vp(e,n,a){a.props=vr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ge(e,n,l)}}function vl(e,n){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,n,i)}}function Un(e,n){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(i){Ge(e,n,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,n,i)}else a.current=null}function Ip(e){var n=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(n){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 $u(e,n,a){try{var l=e.stateNode;ww(l,e.type,a,n),l[Ke]=n}catch(i){Ge(e,e.return,i)}}function Yp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ua(e.type)||e.tag===4}function qu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yp(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&&Ua(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 Vu(e,n,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(e),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=ei));else if(l!==4&&(l===27&&Ua(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(Vu(e,n,a),e=e.sibling;e!==null;)Vu(e,n,a),e=e.sibling}function Vs(e,n,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(l!==4&&(l===27&&Ua(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Vs(e,n,a),e=e.sibling;e!==null;)Vs(e,n,a),e=e.sibling}function Gp(e){var n=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,i=n.attributes;i.length;)n.removeAttributeNode(i[0]);jt(n,l,a),n[ut]=e,n[Ke]=a}catch(d){Ge(e,e.return,d)}}var oa=!1,ft=!1,Iu=!1,Xp=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function nw(e,n){if(e=e.containerInfo,hd=si,e=rh(e),qc(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,G=0,F=e,$=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;)$=F,F=q;for(;;){if(F===e)break t;if($===a&&++L===i&&(S=x),$===d&&++G===l&&(j=x),(q=F.nextSibling)!==null)break;F=$,$=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(pd={focusedElem:e,selectionRange:a},si=!1,Nt=n;Nt!==null;)if(n=Nt,e=n.child,(n.subtreeFlags&1024)!==0&&e!==null)e.return=n,Nt=e;else for(;Nt!==null;){switch(n=Nt,d=n.alternate,e=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,a=n,i=d.memoizedProps,d=d.memoizedState,l=a.stateNode;try{var Ee=vr(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=n.stateNode.containerInfo,a=e.nodeType,a===9)yd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":yd(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=n.sibling,e!==null){e.return=n.return,Nt=e;break}Nt=n.return}}function Qp(e,n,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ka(e,a),l&4&&gl(5,a);break;case 1:if(ka(e,a),l&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(x){Ge(a,a.return,x)}else{var i=vr(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(i,n,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Ge(a,a.return,x)}}l&64&&qp(a),l&512&&vl(a,a.return);break;case 3:if(ka(e,a),l&64&&(e=a.updateQueue,e!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{kh(e,n)}catch(x){Ge(a,a.return,x)}}break;case 27:n===null&&l&4&&Gp(a);case 26:case 5:ka(e,a),n===null&&l&4&&Ip(a),l&512&&vl(a,a.return);break;case 12:ka(e,a);break;case 13:ka(e,a),l&4&&Fp(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=dw.bind(null,a),kw(e,a))));break;case 22:if(l=a.memoizedState!==null||oa,!l){n=n!==null&&n.memoizedState!==null||ft,i=oa;var d=ft;oa=l,(ft=n)&&!d?ja(e,a,(a.subtreeFlags&8772)!==0):ka(e,a),oa=i,ft=d}break;case 30:break;default:ka(e,a)}}function Kp(e){var n=e.alternate;n!==null&&(e.alternate=null,Kp(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Ec(n)),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,n,a){for(a=a.child;a!==null;)Zp(e,n,a),a=a.sibling}function Zp(e,n,a){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(It,a)}catch{}switch(a.tag){case 26:ft||Un(a,n),la(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ft||Un(a,n);var l=tt,i=Pt;Ua(a.type)&&(tt=a.stateNode,Pt=!1),la(e,n,a),Cl(a.stateNode),tt=l,Pt=i;break;case 5:ft||Un(a,n);case 6:if(l=tt,i=Pt,tt=null,la(e,n,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,n,d)}else try{tt.removeChild(a.stateNode)}catch(d){Ge(a,n,d)}break;case 18:tt!==null&&(Pt?(e=tt,Bg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Dl(e)):Bg(tt,a.stateNode));break;case 4:l=tt,i=Pt,tt=a.stateNode.containerInfo,Pt=!0,la(e,n,a),tt=l,Pt=i;break;case 0:case 11:case 14:case 15:ft||Aa(2,a,n),ft||Aa(4,a,n),la(e,n,a);break;case 1:ft||(Un(a,n),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Vp(a,n,l)),la(e,n,a);break;case 21:la(e,n,a);break;case 22:ft=(l=ft)||a.memoizedState!==null,la(e,n,a),ft=l;break;default:la(e,n,a)}}function Fp(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Dl(e)}catch(a){Ge(n,n.return,a)}}function aw(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Xp),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Xp),n;default:throw Error(s(435,e.tag))}}function Yu(e,n){var a=aw(e);n.forEach(function(l){var i=fw.bind(null,e,l);a.has(l)||(a.add(l),l.then(i,i))})}function Xt(e,n){var a=n.deletions;if(a!==null)for(var l=0;l<a.length;l++){var i=a[l],d=e,x=n,S=x;e:for(;S!==null;){switch(S.tag){case 27:if(Ua(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));Zp(d,x,i),tt=null,Pt=!1,d=i.alternate,d!==null&&(d.return=null),i.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)Wp(n,e),n=n.sibling}var yn=null;function Wp(e,n){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xt(n,e),Qt(e),l&4&&(Aa(3,e,e.return),gl(3,e),Aa(5,e,e.return));break;case 1:Xt(n,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(n,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=Gg("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=Gg("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 Xg(i,e.type,e.stateNode);else e.stateNode=Yg(i,l,e.memoizedProps);else d!==l?(d===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):d.count--,l===null?Xg(i,e.type,e.stateNode):Yg(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&$u(e,e.memoizedProps,a.memoizedProps)}break;case 27:Xt(n,e),Qt(e),l&512&&(ft||a===null||Un(a,a.return)),a!==null&&l&4&&$u(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Xt(n,e),Qt(e),l&512&&(ft||a===null||Un(a,a.return)),e.flags&32){i=e.stateNode;try{$r(i,"")}catch(q){Ge(e,e.return,q)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,$u(e,i,a!==null?a.memoizedProps:i)),l&1024&&(Iu=!0);break;case 6:if(Xt(n,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(n.containerInfo),Xt(n,e),yn=i,Qt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Dl(n.containerInfo)}catch(q){Ge(e,e.return,q)}Iu&&(Iu=!1,Jp(e));break;case 4:l=yn,yn=ni(e.stateNode.containerInfo),Xt(n,e),Qt(e),yn=l;break;case 12:Xt(n,e),Qt(e);break;case 13:Xt(n,e),Qt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Fu=st()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yu(e,l)));break;case 22:i=e.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,L=oa,G=ft;if(oa=L||i,ft=G||j,Xt(n,e),ft=G,oa=L,Qt(e),l&8192)e:for(n=e.stateNode,n._visibility=i?n._visibility&-2:n._visibility|1,i&&(a===null||j||oa||ft||yr(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){j=a=n;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,$=F!=null&&F.hasOwnProperty("display")?F.display:null;S.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(q){Ge(j,j.return,q)}}}else if(n.tag===6){if(a===null){j=n;try{j.stateNode.nodeValue=i?"":j.memoizedProps}catch(q){Ge(j,j.return,q)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Yu(e,a))));break;case 19:Xt(n,e),Qt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yu(e,l)));break;case 30:break;case 21:break;default:Xt(n,e),Qt(e)}}function Qt(e){var n=e.flags;if(n&2){try{for(var a,l=e.return;l!==null;){if(Yp(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var i=a.stateNode,d=qu(e);Vs(e,d,i);break;case 5:var x=a.stateNode;a.flags&32&&($r(x,""),a.flags&=-33);var S=qu(e);Vs(e,S,x);break;case 3:case 4:var j=a.stateNode.containerInfo,L=qu(e);Vu(e,L,j);break;default:throw Error(s(161))}}catch(G){Ge(e,e.return,G)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Jp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Jp(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function ka(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Qp(e,n.alternate,n),n=n.sibling}function yr(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Aa(4,n,n.return),yr(n);break;case 1:Un(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Vp(n,n.return,a),yr(n);break;case 27:Cl(n.stateNode);case 26:case 5:Un(n,n.return),yr(n);break;case 22:n.memoizedState===null&&yr(n);break;case 30:yr(n);break;default:yr(n)}e=e.sibling}}function ja(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var l=n.alternate,i=e,d=n,x=d.flags;switch(d.tag){case 0:case 11:case 15:ja(i,d,a),gl(4,d);break;case 1:if(ja(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++)Ah(j[i],S)}catch(L){Ge(l,l.return,L)}}a&&x&64&&qp(d),vl(d,d.return);break;case 27:Gp(d);case 26:case 5:ja(i,d,a),a&&l===null&&x&4&&Ip(d),vl(d,d.return);break;case 12:ja(i,d,a);break;case 13:ja(i,d,a),a&&x&4&&Fp(i,d);break;case 22:d.memoizedState===null&&ja(i,d,a),vl(d,d.return);break;case 30:break;default:ja(i,d,a)}n=n.sibling}}function Gu(e,n){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&nl(a))}function Xu(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&nl(e))}function Ln(e,n,a,l){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)eg(e,n,a,l),n=n.sibling}function eg(e,n,a,l){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Ln(e,n,a,l),i&2048&&gl(9,n);break;case 1:Ln(e,n,a,l);break;case 3:Ln(e,n,a,l),i&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&nl(e)));break;case 12:if(i&2048){Ln(e,n,a,l),e=n.stateNode;try{var d=n.memoizedProps,x=d.id,S=d.onPostCommit;typeof S=="function"&&S(x,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){Ge(n,n.return,j)}}else Ln(e,n,a,l);break;case 13:Ln(e,n,a,l);break;case 23:break;case 22:d=n.stateNode,x=n.alternate,n.memoizedState!==null?d._visibility&2?Ln(e,n,a,l):yl(e,n):d._visibility&2?Ln(e,n,a,l):(d._visibility|=2,lo(e,n,a,l,(n.subtreeFlags&10256)!==0)),i&2048&&Gu(x,n);break;case 24:Ln(e,n,a,l),i&2048&&Xu(n.alternate,n);break;default:Ln(e,n,a,l)}}function lo(e,n,a,l,i){for(i=i&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var d=e,x=n,S=a,j=l,L=x.flags;switch(x.tag){case 0:case 11:case 15:lo(d,x,S,j,i),gl(8,x);break;case 23:break;case 22:var G=x.stateNode;x.memoizedState!==null?G._visibility&2?lo(d,x,S,j,i):yl(d,x):(G._visibility|=2,lo(d,x,S,j,i)),i&&L&2048&&Gu(x.alternate,x);break;case 24:lo(d,x,S,j,i),i&&L&2048&&Xu(x.alternate,x);break;default:lo(d,x,S,j,i)}n=n.sibling}}function yl(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,l=n,i=l.flags;switch(l.tag){case 22:yl(a,l),i&2048&&Gu(l.alternate,l);break;case 24:yl(a,l),i&2048&&Xu(l.alternate,l);break;default:yl(a,l)}n=n.sibling}}var bl=8192;function so(e){if(e.subtreeFlags&bl)for(e=e.child;e!==null;)tg(e),e=e.sibling}function tg(e){switch(e.tag){case 26:so(e),e.flags&bl&&e.memoizedState!==null&&qw(yn,e.memoizedState,e.memoizedProps);break;case 5:so(e);break;case 3:case 4:var n=yn;yn=ni(e.stateNode.containerInfo),so(e),yn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=bl,bl=16777216,so(e),bl=n):so(e));break;default:so(e)}}function ng(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function xl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var l=n[a];Nt=l,rg(l,e)}ng(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ag(e),e=e.sibling}function ag(e){switch(e.tag){case 0:case 11:case 15:xl(e),e.flags&2048&&Aa(9,e,e.return);break;case 3:xl(e);break;case 12:xl(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Is(e)):xl(e);break;default:xl(e)}}function Is(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var l=n[a];Nt=l,rg(l,e)}ng(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Aa(8,n,n.return),Is(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,Is(n));break;default:Is(n)}e=e.sibling}}function rg(e,n){for(;Nt!==null;){var a=Nt;switch(a.tag){case 0:case 11:case 15:Aa(8,a,n);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(Kp(l),l===a){Nt=null;break e}if(i!==null){i.return=d,Nt=i;break e}Nt=d}}}var rw={getCacheForType:function(e){var n=Ot(yt),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a}},ow=typeof WeakMap=="function"?WeakMap:Map,$e=0,Ze=null,Me=null,Le=0,qe=0,Kt=null,_a=!1,io=!1,Qu=!1,sa=0,lt=0,Oa=0,br=0,Ku=0,dn=0,co=0,Sl=null,$t=null,Zu=!1,Fu=0,Ys=1/0,Gs=null,Ma=null,kt=0,Da=null,uo=null,fo=0,Wu=0,Ju=null,og=null,wl=0,ed=null;function Zt(){if(($e&2)!==0&&Le!==0)return Le&-Le;if(_.T!==null){var e=Wr;return e!==0?e:sd()}return ar()}function lg(){dn===0&&(dn=(Le&536870912)===0||Pe?Lt():536870912);var e=un.current;return e!==null&&(e.flags|=32),dn}function Ft(e,n,a){(e===Ze&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&(mo(e,0),za(e,Le,dn,!1)),be(e,a),(($e&2)===0||e!==Ze)&&(e===Ze&&(($e&2)===0&&(br|=a),lt===4&&za(e,Le,dn,!1)),Bn(e))}function sg(e,n,a){if(($e&6)!==0)throw Error(s(327));var l=!a&&(n&124)===0&&(n&e.expiredLanes)===0||Gn(e,n),i=l?iw(e,n):ad(e,n,!0),d=l;do{if(i===0){io&&!l&&za(e,n,0,!1);break}else{if(a=e.current.alternate,d&&!lw(a)){i=ad(e,n,!1),d=!1;continue}if(i===2){if(d=n,e.errorRecoveryDisabledLanes&d)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){n=x;e:{var S=e;i=Sl;var j=S.current.memoizedState.isDehydrated;if(j&&(mo(S,x).flags|=256),x=ad(S,x,!1),x!==2){if(Qu&&!j){S.errorRecoveryDisabledLanes|=d,br|=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){mo(e,0),za(e,n,0,!0);break}e:{switch(l=e,d=i,d){case 0:case 1:throw Error(s(345));case 4:if((n&4194048)!==n)break;case 6:za(l,n,dn,!_a);break e;case 2:$t=null;break;case 3:case 5:break;default:throw Error(s(329))}if((n&62914560)===n&&(i=Fu+300-st(),10<i)){if(za(l,n,dn,!_a),Yn(l,0,!0)!==0)break e;l.timeoutHandle=Ug(ig.bind(null,l,a,$t,Gs,Zu,n,dn,br,co,_a,d,2,-0,0),i);break e}ig(l,a,$t,Gs,Zu,n,dn,br,co,_a,d,0,-0,0)}}break}while(!0);Bn(e)}function ig(e,n,a,l,i,d,x,S,j,L,G,F,$,q){if(e.timeoutHandle=-1,F=n.subtreeFlags,(F&8192||(F&16785408)===16785408)&&(kl={stylesheets:null,count:0,unsuspend:$w},tg(n),F=Vw(),F!==null)){e.cancelPendingCommit=F(pg.bind(null,e,n,d,a,l,i,x,S,j,G,1,$,q)),za(e,d,x,!L);return}pg(e,n,d,a,l,i,x,S,j)}function lw(e){for(var n=e;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.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(!Yt(d(),i))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function za(e,n,a,l){n&=~Ku,n&=~br,e.suspendedLanes|=n,e.pingedLanes&=~n,l&&(e.warmLanes|=n),l=e.expirationTimes;for(var i=n;0<i;){var d=31-Je(i),x=1<<d;l[d]=-1,i&=~x}a!==0&&me(e,a,n)}function Xs(){return($e&6)===0?(El(0),!1):!0}function td(){if(Me!==null){if(qe===0)var e=Me.return;else e=Me,Jn=mr=null,yu(e),ro=null,ml=0,e=Me;for(;e!==null;)$p(e.alternate,e),e=e.return;Me=null}}function mo(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Nw(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),td(),Ze=e,Me=a=Zn(e.current,null),Le=n,qe=0,Kt=null,_a=!1,io=Gn(e,n),Qu=!1,co=dn=Ku=br=Oa=lt=0,$t=Sl=null,Zu=!1,(n&8)!==0&&(n|=n&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=n;0<l;){var i=31-Je(l),d=1<<i;n|=e[i],l&=~d}return sa=n,ps(),a}function cg(e,n){je=null,_.H=Ds,n===rl||n===Ns?(n=Ch(),qe=3):n===Eh?(n=Ch(),qe=4):qe=n===Rp?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Kt=n,Me===null&&(lt=1,Hs(e,on(n,e.current)))}function ug(){var e=_.H;return _.H=Ds,e===null?Ds:e}function dg(){var e=_.A;return _.A=rw,e}function nd(){lt=4,_a||(Le&4194048)!==Le&&un.current!==null||(io=!0),(Oa&134217727)===0&&(br&134217727)===0||Ze===null||za(Ze,Le,dn,!1)}function ad(e,n,a){var l=$e;$e|=2;var i=ug(),d=dg();(Ze!==e||Le!==n)&&(Gs=null,mo(e,n)),n=!1;var x=lt;e:do try{if(qe!==0&&Me!==null){var S=Me,j=Kt;switch(qe){case 8:td(),x=6;break e;case 3:case 2:case 9:case 6:un.current===null&&(n=!0);var L=qe;if(qe=0,Kt=null,ho(e,S,j,L),a&&io){x=0;break e}break;default:L=qe,qe=0,Kt=null,ho(e,S,j,L)}}sw(),x=lt;break}catch(G){cg(e,G)}while(!0);return n&&e.shellSuspendCounter++,Jn=mr=null,$e=l,_.H=i,_.A=d,Me===null&&(Ze=null,Le=0,ps()),x}function sw(){for(;Me!==null;)fg(Me)}function iw(e,n){var a=$e;$e|=2;var l=ug(),i=dg();Ze!==e||Le!==n?(Gs=null,Ys=st()+500,mo(e,n)):io=Gn(e,n);e:do try{if(qe!==0&&Me!==null){n=Me;var d=Kt;t:switch(qe){case 1:qe=0,Kt=null,ho(e,n,d,1);break;case 2:case 9:if(Nh(d)){qe=0,Kt=null,mg(n);break}n=function(){qe!==2&&qe!==9||Ze!==e||(qe=7),Bn(e)},d.then(n,n);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:Nh(d)?(qe=0,Kt=null,mg(n)):(qe=0,Kt=null,ho(e,n,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,ho(e,n,d,5);break;case 6:qe=0,Kt=null,ho(e,n,d,6);break;case 8:td(),lt=6;break e;default:throw Error(s(462))}}cw();break}catch(G){cg(e,G)}while(!0);return Jn=mr=null,_.H=l,_.A=i,$e=a,Me!==null?0:(Ze=null,Le=0,ps(),lt)}function cw(){for(;Me!==null&&!hn();)fg(Me)}function fg(e){var n=Hp(e.alternate,e,sa);e.memoizedProps=e.pendingProps,n===null?Qs(e):Me=n}function mg(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=Mp(a,n,n.pendingProps,n.type,void 0,Le);break;case 11:n=Mp(a,n,n.pendingProps,n.type.render,n.ref,Le);break;case 5:yu(n);default:$p(a,n),n=Me=hh(n,sa),n=Hp(a,n,sa)}e.memoizedProps=e.pendingProps,n===null?Qs(e):Me=n}function ho(e,n,a,l){Jn=mr=null,yu(n),ro=null,ml=0;var i=n.return;try{if(WS(e,i,n,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}n.flags&32768?(Pe||l===1?e=!0:io||(Le&536870912)!==0?e=!1:(_a=e=!0,(l===2||l===9||l===3||l===6)&&(l=un.current,l!==null&&l.tag===13&&(l.flags|=16384))),hg(n,e)):Qs(n)}function Qs(e){var n=e;do{if((n.flags&32768)!==0){hg(n,_a);return}e=n.return;var a=ew(n.alternate,n,sa);if(a!==null){Me=a;return}if(n=n.sibling,n!==null){Me=n;return}Me=n=e}while(n!==null);lt===0&&(lt=5)}function hg(e,n){do{var a=tw(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),!n&&(e=e.sibling,e!==null)){Me=e;return}Me=e=a}while(e!==null);lt=6,Me=null}function pg(e,n,a,l,i,d,x,S,j){e.cancelPendingCommit=null;do Ks();while(kt!==0);if(($e&6)!==0)throw Error(s(327));if(n!==null){if(n===e.current)throw Error(s(177));if(d=n.lanes|n.childLanes,d|=Xc,Xe(e,a,d,x,S,j),e===Ze&&(Me=Ze=null,Le=0),uo=n,Da=e,fo=a,Wu=d,Ju=i,og=l,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,mw(In,function(){return xg(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||l){l=_.T,_.T=null,i=B.p,B.p=2,x=$e,$e|=4;try{nw(e,n,a)}finally{$e=x,B.p=i,_.T=l}}kt=1,gg(),vg(),yg()}}function gg(){if(kt===1){kt=0;var e=Da,n=uo,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=_.T,_.T=null;var l=B.p;B.p=2;var i=$e;$e|=4;try{Wp(n,e);var d=pd,x=rh(e.containerInfo),S=d.focusedElem,j=d.selectionRange;if(x!==S&&S&&S.ownerDocument&&ah(S.ownerDocument.documentElement,S)){if(j!==null&&qc(S)){var L=j.start,G=j.end;if(G===void 0&&(G=L),"selectionStart"in S)S.selectionStart=L,S.selectionEnd=Math.min(G,S.value.length);else{var F=S.ownerDocument||document,$=F&&F.defaultView||window;if($.getSelection){var q=$.getSelection(),Ee=S.textContent.length,Se=Math.min(j.start,Ee),Ye=j.end===void 0?Se:Math.min(j.end,Ee);!q.extend&&Se>Ye&&(x=Ye,Ye=Se,Se=x);var D=nh(S,Se),M=nh(S,Ye);if(D&&M&&(q.rangeCount!==1||q.anchorNode!==D.node||q.anchorOffset!==D.offset||q.focusNode!==M.node||q.focusOffset!==M.offset)){var U=F.createRange();U.setStart(D.node,D.offset),q.removeAllRanges(),Se>Ye?(q.addRange(U),q.extend(M.node,M.offset)):(U.setEnd(M.node,M.offset),q.addRange(U))}}}}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 Z=F[S];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}si=!!hd,pd=hd=null}finally{$e=i,B.p=l,_.T=a}}e.current=n,kt=2}}function vg(){if(kt===2){kt=0;var e=Da,n=uo,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=_.T,_.T=null;var l=B.p;B.p=2;var i=$e;$e|=4;try{Qp(e,n.alternate,n)}finally{$e=i,B.p=l,_.T=a}}kt=3}}function yg(){if(kt===4||kt===3){kt=0,pn();var e=Da,n=uo,a=fo,l=og;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?kt=5:(kt=0,uo=Da=null,bg(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Ma=null),gt(a),n=n.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(It,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=_.T,i=B.p,B.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=n,B.p=i}}(fo&3)!==0&&Ks(),Bn(e),i=e.pendingLanes,(a&4194090)!==0&&(i&42)!==0?e===ed?wl++:(wl=0,ed=e):wl=0,El(0)}}function bg(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,nl(n)))}function Ks(e){return gg(),vg(),yg(),xg()}function xg(){if(kt!==5)return!1;var e=Da,n=Wu;Wu=0;var a=gt(fo),l=_.T,i=B.p;try{B.p=32>a?32:a,_.T=null,a=Ju,Ju=null;var d=Da,x=fo;if(kt=0,uo=Da=null,fo=0,($e&6)!==0)throw Error(s(331));var S=$e;if($e|=4,ag(d.current),eg(d,d.current,x,a),$e=S,El(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(It,d)}catch{}return!0}finally{B.p=i,_.T=l,bg(e,n)}}function Sg(e,n,a){n=on(a,n),n=Ou(e.stateNode,n,2),e=Na(e,n,2),e!==null&&(be(e,2),Bn(e))}function Ge(e,n,a){if(e.tag===3)Sg(e,e,a);else for(;n!==null;){if(n.tag===3){Sg(n,e,a);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ma===null||!Ma.has(l))){e=on(a,e),a=Tp(2),l=Na(n,a,2),l!==null&&(Cp(a,l,n,e),be(l,2),Bn(l));break}}n=n.return}}function rd(e,n,a){var l=e.pingCache;if(l===null){l=e.pingCache=new ow;var i=new Set;l.set(n,i)}else i=l.get(n),i===void 0&&(i=new Set,l.set(n,i));i.has(a)||(Qu=!0,i.add(a),e=uw.bind(null,e,n,a),n.then(e,e))}function uw(e,n,a){var l=e.pingCache;l!==null&&l.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ze===e&&(Le&a)===a&&(lt===4||lt===3&&(Le&62914560)===Le&&300>st()-Fu?($e&2)===0&&mo(e,0):Ku|=a,co===Le&&(co=0)),Bn(e)}function wg(e,n){n===0&&(n=tr()),e=Qr(e,n),e!==null&&(be(e,n),Bn(e))}function dw(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),wg(e,a)}function fw(e,n){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(n),wg(e,a)}function mw(e,n){return et(e,n)}var Zs=null,po=null,od=!1,Fs=!1,ld=!1,xr=0;function Bn(e){e!==po&&e.next===null&&(po===null?Zs=po=e:po=po.next=e),Fs=!0,od||(od=!0,pw())}function El(e,n){if(!ld&&Fs){ld=!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,Cg(l,d))}else d=Le,d=Yn(l,l===Ze?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(d&3)===0||Gn(l,d)||(a=!0,Cg(l,d));l=l.next}while(a);ld=!1}}function hw(){Eg()}function Eg(){Fs=od=!1;var e=0;xr!==0&&(Ew()&&(e=xr),xr=0);for(var n=st(),a=null,l=Zs;l!==null;){var i=l.next,d=Ng(l,n);d===0?(l.next=null,a===null?Zs=i:a.next=i,i===null&&(po=a)):(a=l,(e!==0||(d&3)!==0)&&(Fs=!0)),l=i}El(e)}function Ng(e,n){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]=ba(S,n)):j<=n&&(e.expiredLanes|=S),d&=~S}if(n=Ze,a=Le,a=Yn(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===n&&(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(n=a&-a,n===e.callbackPriority)return n;switch(l!==null&&rt(l),gt(a)){case 2:case 8:a=_r;break;case 32:a=In;break;case 268435456:a=gn;break;default:a=In}return l=Tg.bind(null,e),a=et(a,l),e.callbackPriority=n,e.callbackNode=a,n}return l!==null&&l!==null&&rt(l),e.callbackPriority=2,e.callbackNode=null,2}function Tg(e,n){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=Yn(e,e===Ze?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(sg(e,l,n),Ng(e,st()),e.callbackNode!=null&&e.callbackNode===a?Tg.bind(null,e):null)}function Cg(e,n){if(Ks())return null;sg(e,n,!0)}function pw(){Tw(function(){($e&6)!==0?et(pt,hw):Eg()})}function sd(){return xr===0&&(xr=Lt()),xr}function Rg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:is(""+e)}function Ag(e,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,e.id&&a.setAttribute("form",e.id),n.parentNode.insertBefore(a,n),e=new FormData(e),a.parentNode.removeChild(a),e}function gw(e,n,a,l,i){if(n==="submit"&&a&&a.stateNode===i){var d=Rg((i[Ke]||null).action),x=l.submitter;x&&(n=(n=x[Ke]||null)?Rg(n.formAction):x.getAttribute("formAction"),n!==null&&(d=n,x=null));var S=new fs("action","action",null,l,i);e.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(xr!==0){var j=x?Ag(i,x):new FormData(i);Ru(a,{pending:!0,data:j,method:i.method,action:d},null,j)}}else typeof d=="function"&&(S.preventDefault(),j=x?Ag(i,x):new FormData(i),Ru(a,{pending:!0,data:j,method:i.method,action:d},d,j))},currentTarget:i}]})}}for(var id=0;id<Gc.length;id++){var cd=Gc[id],vw=cd.toLowerCase(),yw=cd[0].toUpperCase()+cd.slice(1);vn(vw,"on"+yw)}vn(sh,"onAnimationEnd"),vn(ih,"onAnimationIteration"),vn(ch,"onAnimationStart"),vn("dblclick","onDoubleClick"),vn("focusin","onFocus"),vn("focusout","onBlur"),vn(zS,"onTransitionRun"),vn(US,"onTransitionStart"),vn(LS,"onTransitionCancel"),vn(uh,"onTransitionEnd"),Br("onMouseEnter",["mouseout","mouseover"]),Br("onMouseLeave",["mouseout","mouseover"]),Br("onPointerEnter",["pointerout","pointerover"]),Br("onPointerLeave",["pointerout","pointerover"]),rr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rr("onBeforeInput",["compositionend","keypress","textInput","paste"]),rr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rr("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(" "),bw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nl));function kg(e,n){n=(n&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(n)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(G){Bs(G)}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(G){Bs(G)}i.currentTarget=null,d=j}}}}function De(e,n){var a=n[Dr];a===void 0&&(a=n[Dr]=new Set);var l=e+"__bubble";a.has(l)||(jg(n,e,2,!1),a.add(l))}function ud(e,n,a){var l=0;n&&(l|=4),jg(a,e,l,n)}var Ws="_reactListening"+Math.random().toString(36).slice(2);function dd(e){if(!e[Ws]){e[Ws]=!0,Em.forEach(function(a){a!=="selectionchange"&&(bw.has(a)||ud(a,!1,e),ud(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Ws]||(n[Ws]=!0,ud("selectionchange",!1,n))}}function jg(e,n,a,l){switch(ev(n)){case 2:var i=Gw;break;case 8:i=Xw;break;default:i=Td}a=i.bind(null,n,a,e),i=void 0,!Mc||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(n,a,{capture:!0,passive:i}):e.addEventListener(n,a,!0):i!==void 0?e.addEventListener(n,a,{passive:i}):e.addEventListener(n,a,!1)}function fd(e,n,a,l,i){var d=l;if((n&1)===0&&(n&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=zr(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}Lm(function(){var L=d,G=_c(a),F=[];e:{var $=dh.get(e);if($!==void 0){var q=fs,Ee=e;switch(e){case"keypress":if(us(a)===0)break e;case"keydown":case"keyup":q=mS;break;case"focusin":Ee="focus",q=Lc;break;case"focusout":Ee="blur",q=Lc;break;case"beforeblur":case"afterblur":q=Lc;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=Pm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=tS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=gS;break;case sh:case ih:case ch:q=rS;break;case uh:q=yS;break;case"scroll":case"scrollend":q=J1;break;case"wheel":q=xS;break;case"copy":case"cut":case"paste":q=lS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=qm;break;case"toggle":case"beforetoggle":q=wS}var Se=(n&4)!==0,Ye=!Se&&(e==="scroll"||e==="scrollend"),D=Se?$!==null?$+"Capture":null:$;Se=[];for(var M=L,U;M!==null;){var Z=M;if(U=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||U===null||D===null||(Z=Vo(M,D),Z!=null&&Se.push(Tl(M,Z,U))),Ye)break;M=M.return}0<Se.length&&($=new q($,Ee,null,a,G),F.push({event:$,listeners:Se}))}}if((n&7)===0){e:{if($=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",$&&a!==jc&&(Ee=a.relatedTarget||a.fromElement)&&(zr(Ee)||Ee[St]))break e;if((q||$)&&($=G.window===G?G:($=G.ownerDocument)?$.defaultView||$.parentWindow:window,q?(Ee=a.relatedTarget||a.toElement,q=L,Ee=Ee?zr(Ee):null,Ee!==null&&(Ye=u(Ee),Se=Ee.tag,Ee!==Ye||Se!==5&&Se!==27&&Se!==6)&&(Ee=null)):(q=null,Ee=L),q!==Ee)){if(Se=Pm,Z="onMouseLeave",D="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(Se=qm,Z="onPointerLeave",D="onPointerEnter",M="pointer"),Ye=q==null?$:qo(q),U=Ee==null?$:qo(Ee),$=new Se(Z,M+"leave",q,a,G),$.target=Ye,$.relatedTarget=U,Z=null,zr(G)===L&&(Se=new Se(D,M+"enter",Ee,a,G),Se.target=U,Se.relatedTarget=Ye,Z=Se),Ye=Z,q&&Ee)t:{for(Se=q,D=Ee,M=0,U=Se;U;U=go(U))M++;for(U=0,Z=D;Z;Z=go(Z))U++;for(;0<M-U;)Se=go(Se),M--;for(;0<U-M;)D=go(D),U--;for(;M--;){if(Se===D||D!==null&&Se===D.alternate)break t;Se=go(Se),D=go(D)}Se=null}else Se=null;q!==null&&_g(F,$,q,Se,!1),Ee!==null&&Ye!==null&&_g(F,Ye,Ee,Se,!0)}}e:{if($=L?qo(L):window,q=$.nodeName&&$.nodeName.toLowerCase(),q==="select"||q==="input"&&$.type==="file")var he=Zm;else if(Qm($))if(Fm)he=OS;else{he=jS;var Oe=kS}else q=$.nodeName,!q||q.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?L&&kc(L.elementType)&&(he=Zm):he=_S;if(he&&(he=he(e,L))){Km(F,he,a,G);break e}Oe&&Oe(e,$,L),e==="focusout"&&L&&$.type==="number"&&L.memoizedProps.value!=null&&Ac($,"number",$.value)}switch(Oe=L?qo(L):window,e){case"focusin":(Qm(Oe)||Oe.contentEditable==="true")&&(Yr=Oe,Vc=L,Fo=null);break;case"focusout":Fo=Vc=Yr=null;break;case"mousedown":Ic=!0;break;case"contextmenu":case"mouseup":case"dragend":Ic=!1,oh(F,a,G);break;case"selectionchange":if(DS)break;case"keydown":case"keyup":oh(F,a,G)}var ye;if(Hc)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 Ir?Gm(e,a)&&(we="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(we="onCompositionStart");we&&(Vm&&a.locale!=="ko"&&(Ir||we!=="onCompositionStart"?we==="onCompositionEnd"&&Ir&&(ye=Bm()):(xa=G,Dc="value"in xa?xa.value:xa.textContent,Ir=!0)),Oe=Js(L,we),0<Oe.length&&(we=new $m(we,e,null,a,G),F.push({event:we,listeners:Oe}),ye?we.data=ye:(ye=Xm(a),ye!==null&&(we.data=ye)))),(ye=NS?TS(e,a):CS(e,a))&&(we=Js(L,"onBeforeInput"),0<we.length&&(Oe=new $m("onBeforeInput","beforeinput",null,a,G),F.push({event:Oe,listeners:we}),Oe.data=ye)),gw(F,e,L,a,G)}kg(F,n)})}function Tl(e,n,a){return{instance:e,listener:n,currentTarget:a}}function Js(e,n){for(var a=n+"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,n),i!=null&&l.push(Tl(e,i,d))),e.tag===3)return l;e=e.return}return[]}function go(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function _g(e,n,a,l,i){for(var d=n._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:n,listeners:x})}var xw=/\r\n?/g,Sw=/\u0000|\uFFFD/g;function Og(e){return(typeof e=="string"?e:""+e).replace(xw,`
|
|
50
|
+
`).replace(Sw,"")}function Mg(e,n){return n=Og(n),Og(e)===n}function ei(){}function Ie(e,n,a,l,i,d){switch(a){case"children":typeof l=="string"?n==="body"||n==="textarea"&&l===""||$r(e,l):(typeof l=="number"||typeof l=="bigint")&&n!=="body"&&$r(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":zm(e,l,d);break;case"data":if(n!=="object"){os(e,"data",l);break}case"src":case"href":if(l===""&&(n!=="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"?(n!=="input"&&Ie(e,n,"name",i.name,i,null),Ie(e,n,"formEncType",i.formEncType,i,null),Ie(e,n,"formMethod",i.formMethod,i,null),Ie(e,n,"formTarget",i.formTarget,i,null)):(Ie(e,n,"encType",i.encType,i,null),Ie(e,n,"method",i.method,i,null),Ie(e,n,"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=F1.get(a)||a,rs(e,a,l))}}function md(e,n,a,l,i,d){switch(a){case"style":zm(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"?$r(e,l):(typeof l=="number"||typeof l=="bigint")&&$r(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(!Nm.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),n=a.slice(2,i?a.length-7:void 0),d=e[Ke]||null,d=d!=null?d[a]:null,typeof d=="function"&&e.removeEventListener(n,d,i),typeof l=="function")){typeof d!="function"&&d!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,l,i);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):rs(e,a,l)}}}function jt(e,n,a){switch(n){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,n));default:Ie(e,n,d,x,a,null)}}i&&Ie(e,n,"srcSet",a.srcSet,a,null),l&&Ie(e,n,"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 G=a[l];if(G!=null)switch(l){case"name":i=G;break;case"type":x=G;break;case"checked":j=G;break;case"defaultChecked":L=G;break;case"value":d=G;break;case"defaultValue":S=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(s(137,n));break;default:Ie(e,n,l,G,a,null)}}_m(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:Ie(e,n,i,S,a,null)}n=d,a=x,e.multiple=!!l,n!=null?Pr(e,!!l,n,!1):a!=null&&Pr(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:Ie(e,n,x,S,a,null)}Mm(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":Ie(e,n,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,n));default:Ie(e,n,L,l,a,null)}return;default:if(kc(n)){for(G in a)a.hasOwnProperty(G)&&(l=a[G],l!==void 0&&md(e,n,G,l,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(l=a[S],l!=null&&Ie(e,n,S,l,a,null))}function ww(e,n,a,l){switch(n){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,G=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)||Ie(e,n,q,null,l,F)}}for(var $ in l){var q=l[$];if(F=a[$],l.hasOwnProperty($)&&(q!=null||F!=null))switch($){case"type":d=q;break;case"name":i=q;break;case"checked":L=q;break;case"defaultChecked":G=q;break;case"value":x=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,n));break;default:q!==F&&Ie(e,n,$,q,l,F)}}Rc(e,x,S,j,L,G,d,i);return;case"select":q=x=S=$=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)||Ie(e,n,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":$=d;break;case"defaultValue":S=d;break;case"multiple":x=d;default:d!==j&&Ie(e,n,i,d,l,j)}n=S,a=x,l=q,$!=null?Pr(e,!!a,$,!1):!!l!=!!a&&(n!=null?Pr(e,!!a,n,!0):Pr(e,!!a,a?[]:"",!1));return;case"textarea":q=$=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:Ie(e,n,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":$=i;break;case"defaultValue":q=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(s(91));break;default:i!==d&&Ie(e,n,x,i,l,d)}Om(e,$,q);return;case"option":for(var Ee in a)$=a[Ee],a.hasOwnProperty(Ee)&&$!=null&&!l.hasOwnProperty(Ee)&&(Ee==="selected"?e.selected=!1:Ie(e,n,Ee,null,l,$));for(j in l)$=l[j],q=a[j],l.hasOwnProperty(j)&&$!==q&&($!=null||q!=null)&&(j==="selected"?e.selected=$&&typeof $!="function"&&typeof $!="symbol":Ie(e,n,j,$,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)$=a[Se],a.hasOwnProperty(Se)&&$!=null&&!l.hasOwnProperty(Se)&&Ie(e,n,Se,null,l,$);for(L in l)if($=l[L],q=a[L],l.hasOwnProperty(L)&&$!==q&&($!=null||q!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(s(137,n));break;default:Ie(e,n,L,$,l,q)}return;default:if(kc(n)){for(var Ye in a)$=a[Ye],a.hasOwnProperty(Ye)&&$!==void 0&&!l.hasOwnProperty(Ye)&&md(e,n,Ye,void 0,l,$);for(G in l)$=l[G],q=a[G],!l.hasOwnProperty(G)||$===q||$===void 0&&q===void 0||md(e,n,G,$,l,q);return}}for(var D in a)$=a[D],a.hasOwnProperty(D)&&$!=null&&!l.hasOwnProperty(D)&&Ie(e,n,D,null,l,$);for(F in l)$=l[F],q=a[F],!l.hasOwnProperty(F)||$===q||$==null&&q==null||Ie(e,n,F,$,l,q)}var hd=null,pd=null;function ti(e){return e.nodeType===9?e:e.ownerDocument}function Dg(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 zg(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function gd(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var vd=null;function Ew(){var e=window.event;return e&&e.type==="popstate"?e===vd?!1:(vd=e,!0):(vd=null,!1)}var Ug=typeof setTimeout=="function"?setTimeout:void 0,Nw=typeof clearTimeout=="function"?clearTimeout:void 0,Lg=typeof Promise=="function"?Promise:void 0,Tw=typeof queueMicrotask=="function"?queueMicrotask:typeof Lg<"u"?function(e){return Lg.resolve(null).then(e).catch(Cw)}:Ug;function Cw(e){setTimeout(function(){throw e})}function Ua(e){return e==="head"}function Bg(e,n){var a=n,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(n);return}i--}else a==="$"||a==="$?"||a==="$!"?i++:l=a.charCodeAt(0)-48;else l=0;a=d}while(a);Dl(n)}function yd(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":yd(a),Ec(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Rw(e,n,a,l){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[$o])switch(n){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(n==="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 Aw(e,n,a){if(n==="")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 bd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function kw(e,n){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")n();else{var l=function(){n(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function bn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return e}var xd=null;function Hg(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(n===0)return e;n--}else a==="/$"&&n++}e=e.previousSibling}return null}function Pg(e,n,a){switch(n=ti(a),e){case"html":if(e=n.documentElement,!e)throw Error(s(452));return e;case"head":if(e=n.head,!e)throw Error(s(453));return e;case"body":if(e=n.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Cl(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Ec(e)}var fn=new Map,$g=new Set;function ni(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ia=B.d;B.d={f:jw,r:_w,D:Ow,C:Mw,L:Dw,m:zw,X:Lw,S:Uw,M:Bw};function jw(){var e=ia.f(),n=Xs();return e||n}function _w(e){var n=Ur(e);n!==null&&n.tag===5&&n.type==="form"?sp(n):ia.r(e)}var vo=typeof document>"u"?null:document;function qg(e,n,a){var l=vo;if(l&&typeof n=="string"&&n){var i=rn(n);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),$g.has(i)||($g.add(i),e={rel:e,crossOrigin:a,href:n},l.querySelector(i)===null&&(n=l.createElement("link"),jt(n,"link",e),wt(n),l.head.appendChild(n)))}}function Ow(e){ia.D(e),qg("dns-prefetch",e,null)}function Mw(e,n){ia.C(e,n),qg("preconnect",e,n)}function Dw(e,n,a){ia.L(e,n,a);var l=vo;if(l&&e&&n){var i='link[rel="preload"][as="'+rn(n)+'"]';n==="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(n){case"style":d=yo(e);break;case"script":d=bo(e)}fn.has(d)||(e=b({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),fn.set(d,e),l.querySelector(i)!==null||n==="style"&&l.querySelector(Rl(d))||n==="script"&&l.querySelector(Al(d))||(n=l.createElement("link"),jt(n,"link",e),wt(n),l.head.appendChild(n)))}}function zw(e,n){ia.m(e,n);var a=vo;if(a&&e){var l=n&&typeof n.as=="string"?n.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=bo(e)}if(!fn.has(d)&&(e=b({rel:"modulepreload",href:e},n),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 Uw(e,n,a){ia.S(e,n,a);var l=vo;if(l&&e){var i=Lr(l).hoistableStyles,d=yo(e);n=n||"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":n},a),(a=fn.get(d))&&Sd(e,a);var j=x=l.createElement("link");wt(j),jt(j,"link",e),j._p=new Promise(function(L,G){j.onload=L,j.onerror=G}),j.addEventListener("load",function(){S.loading|=1}),j.addEventListener("error",function(){S.loading|=2}),S.loading|=4,ai(x,n,l)}x={type:"stylesheet",instance:x,count:1,state:S},i.set(d,x)}}}function Lw(e,n){ia.X(e,n);var a=vo;if(a&&e){var l=Lr(a).hoistableScripts,i=bo(e),d=l.get(i);d||(d=a.querySelector(Al(i)),d||(e=b({src:e,async:!0},n),(n=fn.get(i))&&wd(e,n),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 Bw(e,n){ia.M(e,n);var a=vo;if(a&&e){var l=Lr(a).hoistableScripts,i=bo(e),d=l.get(i);d||(d=a.querySelector(Al(i)),d||(e=b({src:e,async:!0,type:"module"},n),(n=fn.get(i))&&wd(e,n),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 Vg(e,n,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"?(n=yo(a.href),a=Lr(i).hoistableStyles,l=a.get(n),l||(l={type:"style",instance:null,count:0,state:null},a.set(n,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=yo(a.href);var d=Lr(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||Hw(i,e,a,x.state))),n&&l===null)throw Error(s(528,""));return x}if(n&&l!==null)throw Error(s(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=bo(a),a=Lr(i).hoistableScripts,l=a.get(n),l||(l={type:"script",instance:null,count:0,state:null},a.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function yo(e){return'href="'+rn(e)+'"'}function Rl(e){return'link[rel="stylesheet"]['+e+"]"}function Ig(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Hw(e,n,a,l){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?l.loading=1:(n=e.createElement("link"),l.preload=n,n.addEventListener("load",function(){return l.loading|=1}),n.addEventListener("error",function(){return l.loading|=2}),jt(n,"link",a),wt(n),e.head.appendChild(n))}function bo(e){return'[src="'+rn(e)+'"]'}function Al(e){return"script[async]"+e}function Yg(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var l=e.querySelector('style[data-href~="'+rn(a.href)+'"]');if(l)return n.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),n.instance=l;case"stylesheet":i=yo(a.href);var d=e.querySelector(Rl(i));if(d)return n.state.loading|=4,n.instance=d,wt(d),d;l=Ig(a),(i=fn.get(i))&&Sd(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),n.state.loading|=4,ai(d,a.precedence,e),n.instance=d;case"script":return d=bo(a.src),(i=e.querySelector(Al(d)))?(n.instance=i,wt(i),i):(l=a,(i=fn.get(d))&&(l=b({},a),wd(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),wt(i),jt(i,"link",l),e.head.appendChild(i),n.instance=i);case"void":return null;default:throw Error(s(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(l=n.instance,n.state.loading|=4,ai(l,a.precedence,e));return n.instance}function ai(e,n,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===n)d=S;else if(d!==i)break}d?d.parentNode.insertBefore(e,d.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild))}function Sd(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function wd(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var ri=null;function Gg(e,n,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(n)||"";x=e+x;var S=l.get(x);S?S.push(d):l.set(x,[d])}}return l}function Xg(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function Pw(e,n,a){if(a===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;return n.rel==="stylesheet"?(e=n.disabled,typeof n.precedence=="string"&&e==null):!0;case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Qg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var kl=null;function $w(){}function qw(e,n,a){if(kl===null)throw Error(s(475));var l=kl;if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=yo(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)),n.state.loading|=4,n.instance=d,wt(d);return}d=e.ownerDocument||e,a=Ig(a),(i=fn.get(i))&&Sd(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),n.instance=d}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(l.count++,n=oi.bind(l),e.addEventListener("load",n),e.addEventListener("error",n))}}function Vw(){if(kl===null)throw Error(s(475));var e=kl;return e.stylesheets&&e.count===0&&Ed(e,e.stylesheets),0<e.count?function(n){var a=setTimeout(function(){if(e.stylesheets&&Ed(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a)}}:null}function oi(){if(this.count--,this.count===0){if(this.stylesheets)Ed(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var li=null;function Ed(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,li=new Map,n.forEach(Iw,e),li=null,oi.call(e))}function Iw(e,n){if(!(n.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=n.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)),n.state.loading|=4}}var jl={$$typeof:O,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function Yw(e,n,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=nr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nr(0),this.hiddenUpdates=nr(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 Kg(e,n,a,l,i,d,x,S,j,L,G,F){return e=new Yw(e,n,a,x,S,j,L,F),n=1,d===!0&&(n|=24),d=Gt(3,null,null,n),e.current=d,d.stateNode=e,n=ru(),n.refCount++,e.pooledCache=n,n.refCount++,d.memoizedState={element:l,isDehydrated:a,cache:n},iu(d),e}function Zg(e){return e?(e=Kr,e):Kr}function Fg(e,n,a,l,i,d){i=Zg(i),l.context===null?l.context=i:l.pendingContext=i,l=Ea(n),l.payload={element:a},d=d===void 0?null:d,d!==null&&(l.callback=d),a=Na(e,l,n),a!==null&&(Ft(a,e,n),ll(a,e,n))}function Wg(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function Nd(e,n){Wg(e,n),(e=e.alternate)&&Wg(e,n)}function Jg(e){if(e.tag===13){var n=Qr(e,67108864);n!==null&&Ft(n,e,67108864),Nd(e,67108864)}}var si=!0;function Gw(e,n,a,l){var i=_.T;_.T=null;var d=B.p;try{B.p=2,Td(e,n,a,l)}finally{B.p=d,_.T=i}}function Xw(e,n,a,l){var i=_.T;_.T=null;var d=B.p;try{B.p=8,Td(e,n,a,l)}finally{B.p=d,_.T=i}}function Td(e,n,a,l){if(si){var i=Cd(l);if(i===null)fd(e,n,l,ii,a),tv(e,l);else if(Kw(i,e,n,a,l))l.stopPropagation();else if(tv(e,l),n&4&&-1<Qw.indexOf(e)){for(;i!==null;){var d=Ur(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&&(Ys=st()+500,El(0))}}break;case 13:S=Qr(d,2),S!==null&&Ft(S,d,2),Xs(),Nd(d,2)}if(d=Cd(l),d===null&&fd(e,n,l,ii,a),d===i)break;i=d}i!==null&&l.stopPropagation()}else fd(e,n,l,null,a)}}function Cd(e){return e=_c(e),Rd(e)}var ii=null;function Rd(e){if(ii=null,e=zr(e),e!==null){var n=u(e);if(n===null)e=null;else{var a=n.tag;if(a===13){if(e=m(n),e!==null)return e;e=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return ii=e,null}function ev(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(er()){case pt:return 2;case _r:return 8;case In:case it:return 32;case gn:return 268435456;default:return 32}default:return 32}}var Ad=!1,La=null,Ba=null,Ha=null,_l=new Map,Ol=new Map,Pa=[],Qw="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 tv(e,n){switch(e){case"focusin":case"focusout":La=null;break;case"dragenter":case"dragleave":Ba=null;break;case"mouseover":case"mouseout":Ha=null;break;case"pointerover":case"pointerout":_l.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ol.delete(n.pointerId)}}function Ml(e,n,a,l,i,d){return e===null||e.nativeEvent!==d?(e={blockedOn:n,domEventName:a,eventSystemFlags:l,nativeEvent:d,targetContainers:[i]},n!==null&&(n=Ur(n),n!==null&&Jg(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,i!==null&&n.indexOf(i)===-1&&n.push(i),e)}function Kw(e,n,a,l,i){switch(n){case"focusin":return La=Ml(La,e,n,a,l,i),!0;case"dragenter":return Ba=Ml(Ba,e,n,a,l,i),!0;case"mouseover":return Ha=Ml(Ha,e,n,a,l,i),!0;case"pointerover":var d=i.pointerId;return _l.set(d,Ml(_l.get(d)||null,e,n,a,l,i)),!0;case"gotpointercapture":return d=i.pointerId,Ol.set(d,Ml(Ol.get(d)||null,e,n,a,l,i)),!0}return!1}function nv(e){var n=zr(e.target);if(n!==null){var a=u(n);if(a!==null){if(n=a.tag,n===13){if(n=m(a),n!==null){e.blockedOn=n,vt(e.priority,function(){if(a.tag===13){var l=Zt();l=Qe(l);var i=Qr(a,l);i!==null&&Ft(i,a,l),Nd(a,l)}});return}}else if(n===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 n=e.targetContainers;0<n.length;){var a=Cd(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);jc=l,a.target.dispatchEvent(l),jc=null}else return n=Ur(a),n!==null&&Jg(n),e.blockedOn=a,!1;n.shift()}return!0}function av(e,n,a){ci(e)&&a.delete(n)}function Zw(){Ad=!1,La!==null&&ci(La)&&(La=null),Ba!==null&&ci(Ba)&&(Ba=null),Ha!==null&&ci(Ha)&&(Ha=null),_l.forEach(av),Ol.forEach(av)}function ui(e,n){e.blockedOn===n&&(e.blockedOn=null,Ad||(Ad=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Zw)))}var di=null;function rv(e){di!==e&&(di=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){di===e&&(di=null);for(var n=0;n<e.length;n+=3){var a=e[n],l=e[n+1],i=e[n+2];if(typeof l!="function"){if(Rd(l||a)===null)continue;break}var d=Ur(a);d!==null&&(e.splice(n,3),n-=3,Ru(d,{pending:!0,data:i,method:a.method,action:l},l,i))}}))}function Dl(e){function n(j){return ui(j,e)}La!==null&&ui(La,e),Ba!==null&&ui(Ba,e),Ha!==null&&ui(Ha,e),_l.forEach(n),Ol.forEach(n);for(var a=0;a<Pa.length;a++){var l=Pa[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Pa.length&&(a=Pa[0],a.blockedOn===null);)nv(a),a.blockedOn===null&&Pa.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||rv(a);else if(x){var S=null;if(d&&d.hasAttribute("formAction")){if(i=d,x=d[Ke]||null)S=x.formAction;else if(Rd(i)!==null)continue}else S=x.action;typeof S=="function"?a[l+1]=S:(a.splice(l,3),l-=3),rv(a)}}}function kd(e){this._internalRoot=e}fi.prototype.render=kd.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(s(409));var a=n.current,l=Zt();Fg(a,l,e,n,null,null)},fi.prototype.unmount=kd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Fg(e.current,2,null,e,null,null),Xs(),n[St]=null}};function fi(e){this._internalRoot=e}fi.prototype.unstable_scheduleHydration=function(e){if(e){var n=ar();e={blockedOn:null,target:e,priority:n};for(var a=0;a<Pa.length&&n!==0&&n<Pa[a].priority;a++);Pa.splice(a,0,e),a===0&&nv(e)}};var ov=r.version;if(ov!=="19.1.0")throw Error(s(527,ov,"19.1.0"));B.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=v(n),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var Fw={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{It=mi.inject(Fw),Rt=mi}catch{}}return Ul.createRoot=function(e,n){if(!c(e))throw Error(s(299));var a=!1,l="",i=Sp,d=wp,x=Ep,S=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(S=n.unstable_transitionCallbacks)),n=Kg(e,1,!1,null,null,a,l,i,d,x,S,null),e[St]=n.current,dd(e),new kd(n)},Ul.hydrateRoot=function(e,n,a){if(!c(e))throw Error(s(299));var l=!1,i="",d=Sp,x=wp,S=Ep,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)),n=Kg(e,1,!0,n,a??null,l,i,d,x,S,j,L),n.context=Zg(null),a=n.current,l=Zt(),l=Qe(l),i=Ea(l),i.callback=null,Na(a,i,l),a=l,n.current.lanes=a,be(n,a),Bn(n),e[St]=n.current,dd(e),new fi(n)},Ul.version="19.1.0",Ul}var pv;function s2(){if(pv)return Od.exports;pv=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Od.exports=l2(),Od.exports}var i2=s2();const c2="modulepreload",u2=function(t){return"/"+t},gv={},R0=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=u2(p),p in gv)return;gv[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":c2,b||(w.as="script"),w.crossOrigin="",w.href=p,v&&w.setAttribute("nonce",v),document.head.appendChild(w),b)return new Promise((k,A)=>{w.addEventListener("load",k),w.addEventListener("error",()=>A(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 Uf=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,A0=/^[\\/]{2}/;function d2(t,r){return r+t.replace(/\\/g,"/")}var vv="popstate";function yv(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function f2(t={}){function r(s,c){let u=c.state?.masked,{pathname:m,search:h,hash:v}=u||s.location;return of("",{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 h2(r,o,null,t)}function nt(t,r){if(t===!1||t===null||typeof t>"u")throw new Error(r)}function Rn(t,r){if(!t){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function m2(){return Math.random().toString(36).substring(2,10)}function bv(t,r){return{usr:t.state,key:t.key,idx:r,masked:t.mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function of(t,r,o=null,s,c){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof r=="string"?Mo(r):r,state:o,key:r&&r.key||s||m2(),mask:c}}function Kl({pathname:t="/",search:r="",hash:o=""}){return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(t+=o.charAt(0)==="#"?o:"#"+o),t}function Mo(t){let r={};if(t){let o=t.indexOf("#");o>=0&&(r.hash=t.substring(o),t=t.substring(0,o));let s=t.indexOf("?");s>=0&&(r.search=t.substring(s),t=t.substring(0,s)),t&&(r.pathname=t)}return r}function h2(t,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 N=b(),T=N==null?null:N-p;p=N,v&&v({action:h,location:E.location,delta:T})}function w(N,T){h="PUSH";let R=yv(N)?N:of(E.location,N,T);p=b()+1;let O=bv(R,p),H=E.createHref(R.mask||R);try{m.pushState(O,"",H)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;c.location.assign(H)}u&&v&&v({action:h,location:E.location,delta:1})}function k(N,T){h="REPLACE";let R=yv(N)?N:of(E.location,N,T);p=b();let O=bv(R,p),H=E.createHref(R.mask||R);m.replaceState(O,"",H),u&&v&&v({action:h,location:E.location,delta:0})}function A(N){return p2(c,N)}let E={get action(){return h},get location(){return t(c,m)},listen(N){if(v)throw new Error("A history only accepts one active listener");return c.addEventListener(vv,y),v=N,()=>{c.removeEventListener(vv,y),v=null}},createHref(N){return r(c,N)},createURL:A,encodeLocation(N){let T=A(N);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:w,replace:k,go(N){return m.go(N)}};return E}function p2(t,r,o=!1){let s="http://localhost";t&&(s=t.location.origin!=="null"?t.location.origin:t.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&&A0.test(c)&&(c=s+c),new URL(c,s)}function k0(t,r,o="/"){return g2(t,r,o,!1)}function g2(t,r,o,s,c){let u=typeof r=="string"?Mo(r):r,m=da(u.pathname||"/",o);if(m==null)return null;let h=v2(t),v=null,p=A2(m);for(let b=0;v==null&&b<h.length;++b)v=R2(h[b],p,s);return v}function v2(t){let r=j0(t);return y2(r),r}function j0(t,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}".`),j0(m.children,r,w,y,v)),!(m.path==null&&!m.index)&&r.push({path:y,score:T2(y,m.index),routesMeta:w.map((k,A)=>{let[E,N]=M0(k.relativePath,k.caseSensitive,A===w.length-1);return{...k,matcher:E,compiledParams:N}})})};return t.forEach((m,h)=>{if(m.path===""||!m.path?.includes("?"))u(m,h);else for(let v of _0(m.path))u(m,h,!0,v)}),r}function _0(t){let r=t.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=_0(s.join("/")),h=[];return h.push(...m.map(v=>v===""?u:[u,v].join("/"))),c&&h.push(...m),h.map(v=>t.startsWith("/")&&v===""?"/":v)}function y2(t){t.sort((r,o)=>r.score!==o.score?o.score-r.score:C2(r.routesMeta.map(s=>s.childrenIndex),o.routesMeta.map(s=>s.childrenIndex)))}var b2=/^:[\w-]+$/,x2=3,S2=2,w2=1,E2=10,N2=-2,xv=t=>t==="*";function T2(t,r){let o=t.split("/"),s=o.length;return o.some(xv)&&(s+=N2),r&&(s+=S2),o.filter(c=>!xv(c)).reduce((c,u)=>c+(b2.test(u)?x2:u===""?w2:E2),s)}function C2(t,r){return t.length===r.length&&t.slice(0,-1).every((s,c)=>s===r[c])?t[t.length-1]-r[r.length-1]:0}function R2(t,r,o=!1){let{routesMeta:s}=t,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?O0(y,b,v.matcher,v.compiledParams):Di(y,b),k=v.route;if(!w&&p&&o&&!s[s.length-1].route.index&&(w=Di({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:_2(Cn([u,w.pathnameBase])),route:k}),w.pathnameBase!=="/"&&(u=Cn([u,w.pathnameBase]))}return m}function Di(t,r){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[o,s]=M0(t.path,t.caseSensitive,t.end);return O0(t,r,o,s)}function O0(t,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 A=h[w]||"";m=u.slice(0,u.length-A.length).replace(/(.)\/+$/,"$1")}const k=h[w];return y&&!k?p[b]=void 0:p[b]=(k||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:m,pattern:t}}function M0(t,r=!1,o=!0){Rn(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let s=[],c="^"+t.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 t.endsWith("*")?(s.push({paramName:"*"}),c+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?c+="\\/*$":t!==""&&t!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,r?void 0:"i"),s]}function A2(t){try{return t.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return Rn(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),t}}function da(t,r){if(r==="/")return t;if(!t.toLowerCase().startsWith(r.toLowerCase()))return null;let o=r.endsWith("/")?r.length-1:r.length,s=t.charAt(o);return s&&s!=="/"?null:t.slice(o)||"/"}function k2(t,r="/"){let{pathname:o,search:s="",hash:c=""}=typeof t=="string"?Mo(t):t,u;return o?(o=D0(o),o.startsWith("/")?u=Sv(o.substring(1),"/"):u=Sv(o,r)):u=r,{pathname:u,search:O2(s),hash:M2(c)}}function Sv(t,r){let o=zi(r).split("/");return t.split("/").forEach(c=>{c===".."?o.length>1&&o.pop():c!=="."&&o.push(c)}),o.length>1?o.join("/"):"/"}function Ud(t,r,o,s){return`Cannot include a '${t}' 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 j2(t){return t.filter((r,o)=>o===0||r.route.path&&r.route.path.length>0)}function Lf(t){let r=j2(t);return r.map((o,s)=>s===r.length-1?o.pathname:o.pathnameBase)}function oc(t,r,o,s=!1){let c;typeof t=="string"?c=Mo(t):(c={...t},nt(!c.pathname||!c.pathname.includes("?"),Ud("?","pathname","search",c)),nt(!c.pathname||!c.pathname.includes("#"),Ud("#","pathname","hash",c)),nt(!c.search||!c.search.includes("#"),Ud("#","search","hash",c)));let u=t===""||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=k2(c,h),p=m&&m!=="/"&&m.endsWith("/"),b=(u||m===".")&&o.endsWith("/");return!v.pathname.endsWith("/")&&(p||b)&&(v.pathname+="/"),v}var D0=t=>t.replace(/[\\/]{2,}/g,"/"),Cn=t=>D0(t.join("/")),zi=t=>t.replace(/\/+$/,""),_2=t=>zi(t).replace(/^\/*/,"/"),O2=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,M2=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,D2=class{constructor(t,r,o,s=!1){this.status=t,this.statusText=r||"",this.internal=s,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function z2(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function U2(t){let r=t.map(o=>o.route.path).filter(Boolean);return Cn(r)||"/"}var z0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function U0(t,r){let o=t;if(typeof o!="string"||!Uf.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let s=o,c=!1;if(z0)try{let u=new URL(window.location.href),m=A0.test(o)?new URL(d2(o,u.protocol)):new URL(o),h=da(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 L0=["POST","PUT","PATCH","DELETE"];new Set(L0);var L2=["GET",...L0];new Set(L2);var B2=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function H2(t){try{return B2.includes(new URL(t).protocol)}catch{return!1}}var Do=g.createContext(null);Do.displayName="DataRouter";var lc=g.createContext(null);lc.displayName="DataRouterState";var B0=g.createContext(!1);function P2(){return g.useContext(B0)}var H0=g.createContext({isTransitioning:!1});H0.displayName="ViewTransition";var $2=g.createContext(new Map);$2.displayName="Fetchers";var q2=g.createContext(null);q2.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 Bf=g.createContext(null);Bf.displayName="RouteError";var P0="REACT_ROUTER_ERROR",V2="REDIRECT",I2="ROUTE_ERROR_RESPONSE";function Y2(t){if(t.startsWith(`${P0}:${V2}:{`))try{let r=JSON.parse(t.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 G2(t){if(t.startsWith(`${P0}:${I2}:{`))try{let r=JSON.parse(t.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new D2(r.status,r.statusText,r.data)}catch{}}function X2(t,{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(t,{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 $0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function q0(t){g.useContext(tn).static||g.useLayoutEffect(t)}function V0(){let{isDataRoute:t}=g.useContext(mn);return t?sE():Q2()}function Q2(){nt(zo(),"useNavigate() may be used only in the context of a <Router> component.");let t=g.useContext(Do),{basename:r,navigator:o}=g.useContext(tn),{matches:s}=g.useContext(mn),{pathname:c}=jn(),u=JSON.stringify(Lf(s)),m=g.useRef(!1);return q0(()=>{m.current=!0}),g.useCallback((v,p={})=>{if(Rn(m.current,$0),!m.current)return;if(typeof v=="number"){o.go(v);return}let b=oc(v,JSON.parse(u),c,p.relative==="path");t==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,t])}var I0=g.createContext(null);function B3(){return g.useContext(I0)}function K2(t){let r=g.useContext(mn).outlet;return g.useMemo(()=>r&&g.createElement(I0.Provider,{value:t},r),[r,t])}function H3(){let{matches:t}=g.useContext(mn);return t[t.length-1]?.params??{}}function es(t,{relative:r}={}){let{matches:o}=g.useContext(mn),{pathname:s}=jn(),c=JSON.stringify(Lf(o));return g.useMemo(()=>oc(t,JSON.parse(c),s,r==="path"),[t,c,s,r])}function Z2(t,r){return Y0(t,r)}function Y0(t,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 N=p&&p.path||"";X0(h,!p||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${N}">) 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="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let b=jn(),y;if(r){let N=typeof r=="string"?Mo(r):r;nt(v==="/"||N.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 "${N.pathname}" was given in the \`location\` prop.`),y=N}else y=b;let w=y.pathname||"/",k=w;if(v!=="/"){let N=v.replace(/^\//,"").split("/");k="/"+w.replace(/^\//,"").split("/").slice(N.length).join("/")}let A=o&&o.state.matches.length?o.state.matches.map(N=>Object.assign(N,{route:o.manifest[N.route.id]||N.route})):k0(t,{pathname:k});Rn(p||A!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Rn(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.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=tE(A&&A.map(N=>Object.assign({},N,{params:Object.assign({},m,N.params),pathname:Cn([v,s.encodeLocation?s.encodeLocation(N.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?v:Cn([v,s.encodeLocation?s.encodeLocation(N.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.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 F2(){let t=lE(),r=z2(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),o=t instanceof Error?t.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:",t),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 W2=g.createElement(F2,null),G0=class extends g.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){this.props.onError?this.props.onError(t,r):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const o=G2(t.digest);o&&(t=o)}let r=t!==void 0?g.createElement(mn.Provider,{value:this.props.routeContext},g.createElement(Bf.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?g.createElement(J2,{error:t},r):r}};G0.contextType=B0;var Ld=new WeakMap;function J2({children:t,error:r}){let{basename:o}=g.useContext(tn);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let s=Y2(r.digest);if(s){let c=Ld.get(r);if(c)throw c;let u=U0(s.location,o),m=u.absoluteURL||u.to;if(H2(m))throw new Error("Invalid redirect location");if(z0&&!Ld.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 Ld.set(r,h),h}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m}`})}}return t}function eE({routeContext:t,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:t},o)}function tE(t,r=[],o){let s=o?.state;if(t==null){if(!s)return null;if(s.errors)t=s.matches;else if(r.length===0&&!s.initialized&&s.matches.length>0)t=s.matches;else return null}let c=t,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:k}=s,A=y.route.loader&&!w.hasOwnProperty(y.route.id)&&(!k||k[y.route.id]===void 0);if(y.route.lazy||A){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:U2(s.matches),errorInfo:y})}:void 0;return c.reduceRight((b,y,w)=>{let k,A=!1,E=null,N=null;s&&(k=u&&y.route.id?u[y.route.id]:void 0,E=y.route.errorElement||W2,m&&(h<0&&w===0?(X0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,N=null):h===w&&(A=!0,N=y.route.hydrateFallbackElement||null)));let T=r.concat(c.slice(0,w+1)),R=()=>{let O;return k?O=E:A?O=N:y.route.Component?O=g.createElement(y.route.Component,null):y.route.element?O=y.route.element:O=b,g.createElement(eE,{match:y,routeContext:{outlet:b,matches:T,isDataRoute:s!=null},children:O})};return s&&(y.route.ErrorBoundary||y.route.errorElement||w===0)?g.createElement(G0,{location:s.location,revalidation:s.revalidation,component:E,error:k,children:R(),routeContext:{outlet:null,matches:T,isDataRoute:!0},onError:p}):R()},null)}function Hf(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function nE(t){let r=g.useContext(Do);return nt(r,Hf(t)),r}function aE(t){let r=g.useContext(lc);return nt(r,Hf(t)),r}function rE(t){let r=g.useContext(mn);return nt(r,Hf(t)),r}function Pf(t){let r=rE(t),o=r.matches[r.matches.length-1];return nt(o.route.id,`${t} can only be used on routes that contain a unique "id"`),o.route.id}function oE(){return Pf("useRouteId")}function lE(){let t=g.useContext(Bf),r=aE("useRouteError"),o=Pf("useRouteError");return t!==void 0?t:r.errors?.[o]}function sE(){let{router:t}=nE("useNavigate"),r=Pf("useNavigate"),o=g.useRef(!1);return q0(()=>{o.current=!0}),g.useCallback(async(c,u={})=>{Rn(o.current,$0),o.current&&(typeof c=="number"?await t.navigate(c):await t.navigate(c,{fromRouteId:r,...u}))},[t,r])}var wv={};function X0(t,r,o){!r&&!wv[t]&&(wv[t]=!0,Rn(!1,o))}g.memo(iE);function iE({routes:t,manifest:r,future:o,state:s,isStatic:c,onError:u}){return Y0(t,void 0,{manifest:r,state:s,isStatic:c,onError:u})}function Ev({to:t,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=V0(),v=oc(t,Lf(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 cE(t){return K2(t.context)}function Nr(t){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 uE({basename:t="/",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=t.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:k="default",mask:A}=o,E=g.useMemo(()=>{let N=da(p,h);return N==null?null:{location:{pathname:N,search:b,hash:y,state:w,key:k,mask:A},navigationType:s}},[h,p,b,y,w,k,s,A]);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 dE({children:t,location:r}){return Z2(lf(t),r)}function lf(t,r=[]){let o=[];return g.Children.forEach(t,(s,c)=>{if(!g.isValidElement(s))return;let u=[...r,c];if(s.type===g.Fragment){o.push.apply(o,lf(s.props.children,u));return}nt(s.type===Nr,`[${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=lf(s.props.children,u)),o.push(m)}),o}var Ci="get",Ri="application/x-www-form-urlencoded";function sc(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function fE(t){return sc(t)&&t.tagName.toLowerCase()==="button"}function mE(t){return sc(t)&&t.tagName.toLowerCase()==="form"}function hE(t){return sc(t)&&t.tagName.toLowerCase()==="input"}function pE(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function gE(t,r){return t.button===0&&(!r||r==="_self")&&!pE(t)}var hi=null;function vE(){if(hi===null)try{new FormData(document.createElement("form"),0),hi=!1}catch{hi=!0}return hi}var yE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bd(t){return t!=null&&!yE.has(t)?(Rn(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ri}"`),null):t}function bE(t,r){let o,s,c,u,m;if(mE(t)){let h=t.getAttribute("action");s=h?da(h,r):null,o=t.getAttribute("method")||Ci,c=Bd(t.getAttribute("enctype"))||Ri,u=new FormData(t)}else if(fE(t)||hE(t)&&(t.type==="submit"||t.type==="image")){let h=t.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=t.getAttribute("formaction")||h.getAttribute("action");if(s=v?da(v,r):null,o=t.getAttribute("formmethod")||h.getAttribute("method")||Ci,c=Bd(t.getAttribute("formenctype"))||Bd(h.getAttribute("enctype"))||Ri,u=new FormData(h,t),!vE()){let{name:p,type:b,value:y}=t;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(sc(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=Ci,s=null,c=Ri,m=t}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 $f(t,r){if(t===!1||t===null||typeof t>"u")throw new Error(r)}function Q0(t,r,o,s){let c=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return o?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${s}`:c.pathname=`${c.pathname}.${s}`:c.pathname==="/"?c.pathname=`_root.${s}`:r&&da(c.pathname,r)==="/"?c.pathname=`${zi(r)}/_root.${s}`:c.pathname=`${zi(c.pathname)}.${s}`,c}async function xE(t,r){if(t.id in r)return r[t.id];try{let o=await import(t.module);return r[t.id]=o,o}catch(o){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function SE(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function wE(t,r,o){let s=await Promise.all(t.map(async c=>{let u=r.routes[c.route.id];if(u){let m=await xE(u,o);return m.links?m.links():[]}return[]}));return CE(s.flat(1).filter(SE).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Nv(t,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(t,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function EE(t,r,{includeHydrateFallback:o}={}){return NE(t.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 NE(t){return[...new Set(t)]}function TE(t){let r={},o=Object.keys(t).sort();for(let s of o)r[s]=t[s];return r}function CE(t,r){let o=new Set;return new Set(r),t.reduce((s,c)=>{let u=JSON.stringify(TE(c));return o.has(u)||(o.add(u),s.push({key:u,link:c})),s},[])}function qf(){let t=g.useContext(Do);return $f(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function RE(){let t=g.useContext(lc);return $f(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Vf=g.createContext(void 0);Vf.displayName="FrameworkContext";function ic(){let t=g.useContext(Vf);return $f(t,"You must render this element inside a <HydratedRouter> element"),t}function AE(t,r){let o=g.useContext(Vf),[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(t==="render"&&m(!0),t==="viewport"){let E=T=>{T.forEach(R=>{m(R.isIntersecting)})},N=new IntersectionObserver(E,{threshold:.5});return w.current&&N.observe(w.current),()=>{N.disconnect()}}},[t]),g.useEffect(()=>{if(s){let E=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(E)}}},[s]);let k=()=>{c(!0)},A=()=>{c(!1),m(!1)};return o?t!=="intent"?[u,w,{}]:[u,w,{onFocus:Ll(h,k),onBlur:Ll(v,A),onMouseEnter:Ll(p,k),onMouseLeave:Ll(b,A),onTouchStart:Ll(y,k)}]:[!1,w,{}]}function Ll(t,r){return o=>{t&&t(o),o.defaultPrevented||r(o)}}function kE({page:t,...r}){let o=P2(),{nonce:s}=ic(),{router:c}=qf(),u=g.useMemo(()=>k0(c.routes,t,c.basename),[c.routes,t,c.basename]);return u?(r.nonce==null&&s&&(r={...r,nonce:s}),o?g.createElement(_E,{page:t,matches:u,...r}):g.createElement(OE,{page:t,matches:u,...r})):null}function jE(t){let{manifest:r,routeModules:o}=ic(),[s,c]=g.useState([]);return g.useEffect(()=>{let u=!1;return wE(t,r,o).then(m=>{u||c(m)}),()=>{u=!0}},[t,r,o]),s}function _E({page:t,matches:r,...o}){let s=jn(),{future:c}=ic(),{basename:u}=qf(),m=g.useMemo(()=>{if(t===s.pathname+s.search+s.hash)return[];let h=Q0(t,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,t,s,r]);return g.createElement(g.Fragment,null,m.map(h=>g.createElement("link",{key:h,rel:"prefetch",as:"fetch",href:h,...o})))}function OE({page:t,matches:r,...o}){let s=jn(),{future:c,manifest:u,routeModules:m}=ic(),{basename:h}=qf(),{loaderData:v,matches:p}=RE(),b=g.useMemo(()=>Nv(t,r,p,u,s,"data"),[t,r,p,u,s]),y=g.useMemo(()=>Nv(t,r,p,u,s,"assets"),[t,r,p,u,s]),w=g.useMemo(()=>{if(t===s.pathname+s.search+s.hash)return[];let E=new Set,N=!1;if(r.forEach(R=>{let O=u.routes[R.route.id];!O||!O.hasLoader||(!b.some(H=>H.route.id===R.route.id)&&R.route.id in v&&m[R.route.id]?.shouldRevalidate||O.hasClientLoader?N=!0:E.add(R.route.id))}),E.size===0)return[];let T=Q0(t,h,c.v8_trailingSlashAwareDataRequests,"data");return N&&E.size>0&&T.searchParams.set("_routes",r.filter(R=>E.has(R.route.id)).map(R=>R.route.id).join(",")),[T.pathname+T.search]},[h,c.v8_trailingSlashAwareDataRequests,v,s,u,b,r,t,m]),k=g.useMemo(()=>EE(y,u),[y,u]),A=jE(y);return g.createElement(g.Fragment,null,w.map(E=>g.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...o})),k.map(E=>g.createElement("link",{key:E,rel:"modulepreload",href:E,...o})),A.map(({key:E,link:N})=>g.createElement("link",{key:E,nonce:o.nonce,...N,crossOrigin:N.crossOrigin??o.crossOrigin})))}function ME(...t){return r=>{t.forEach(o=>{typeof o=="function"?o(r):o!=null&&(o.current=r)})}}var DE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{DE&&(window.__reactRouterVersion="7.18.0")}catch{}function zE({basename:t,children:r,useTransitions:o,window:s}){let c=g.useRef();c.current==null&&(c.current=f2({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(uE,{basename:t,children:r,location:m.location,navigationType:m.action,navigator:u,useTransitions:o})}var K0=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:k,...A},E){let{basename:N,navigator:T,useTransitions:R}=g.useContext(tn),O=typeof b=="string"&&Uf.test(b),H=U0(b,N);b=H.to;let z=X2(b,{relative:c}),K=jn(),I=null;if(h){let X=oc(h,[],K.mask?K.mask.pathname:"/",!0);N!=="/"&&(X.pathname=X.pathname==="/"?N:Cn([N,X.pathname])),I=T.createHref(X)}let[P,le,de]=AE(s,A),fe=BE(b,{replace:m,mask:h,state:v,target:p,preventScrollReset:y,relative:c,viewTransition:w,defaultShouldRevalidate:k,useTransitions:R});function W(X){r&&r(X),X.defaultPrevented||fe(X)}let te=!(H.isExternal||u),se=g.createElement("a",{...A,...de,href:(te?I:void 0)||H.absoluteURL||z,onClick:te?W:r,ref:ME(E,le),target:p,"data-discover":!O&&o==="render"?"true":void 0});return P&&!O?g.createElement(g.Fragment,null,se,g.createElement(kE,{page:z})):se});K0.displayName="Link";var sf=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(),k=g.useContext(lc),{navigator:A,basename:E}=g.useContext(tn),N=k!=null&&VE(y)&&h===!0,T=A.encodeLocation?A.encodeLocation(y).pathname:y.pathname,R=w.pathname,O=k&&k.navigation&&k.navigation.location?k.navigation.location.pathname:null;o||(R=R.toLowerCase(),O=O?O.toLowerCase():null,T=T.toLowerCase()),O&&E&&(O=da(O,E)||O);const H=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let z=R===T||!c&&R.startsWith(T)&&R.charAt(H)==="/",K=O!=null&&(O===T||!c&&O.startsWith(T)&&O.charAt(T.length)==="/"),I={isActive:z,isPending:K,isTransitioning:N},P=z?r:void 0,le;typeof s=="function"?le=s(I):le=[s,z?"active":null,K?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let de=typeof u=="function"?u(I):u;return g.createElement(K0,{...p,"aria-current":P,className:le,ref:b,style:de,to:m,viewTransition:h},typeof v=="function"?v(I):v)});sf.displayName="NavLink";var UE=g.forwardRef(({discover:t="render",fetcherKey:r,navigate:o,reloadDocument:s,replace:c,state:u,method:m=Ci,action:h,onSubmit:v,relative:p,preventScrollReset:b,viewTransition:y,defaultShouldRevalidate:w,...k},A)=>{let{useTransitions:E}=g.useContext(tn),N=$E(),T=qE(h,{relative:p}),R=m.toLowerCase()==="get"?"get":"post",O=typeof h=="string"&&Uf.test(h),H=z=>{if(v&&v(z),z.defaultPrevented)return;z.preventDefault();let K=z.nativeEvent.submitter,I=K?.getAttribute("formmethod")||m,P=()=>N(K||z.currentTarget,{fetcherKey:r,method:I,navigate:o,replace:c,state:u,relative:p,preventScrollReset:b,viewTransition:y,defaultShouldRevalidate:w});E&&o!==!1?g.startTransition(()=>P()):P()};return g.createElement("form",{ref:A,method:R,action:T,onSubmit:s?v:H,...k,"data-discover":!O&&t==="render"?"true":void 0})});UE.displayName="Form";function LE(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Z0(t){let r=g.useContext(Do);return nt(r,LE(t)),r}function BE(t,{target:r,replace:o,mask:s,state:c,preventScrollReset:u,relative:m,viewTransition:h,defaultShouldRevalidate:v,useTransitions:p}={}){let b=V0(),y=jn(),w=es(t,{relative:m});return g.useCallback(k=>{if(gE(k,r)){k.preventDefault();let A=o!==void 0?o:Kl(y)===Kl(w),E=()=>b(t,{replace:A,mask:s,state:c,preventScrollReset:u,relative:m,viewTransition:h,defaultShouldRevalidate:v});p?g.startTransition(()=>E()):E()}},[y,b,w,o,s,c,r,t,u,m,h,v,p])}var HE=0,PE=()=>`__${String(++HE)}__`;function $E(){let{router:t}=Z0("useSubmit"),{basename:r}=g.useContext(tn),o=oE(),s=t.fetch,c=t.navigate;return g.useCallback(async(u,m={})=>{let{action:h,method:v,encType:p,formData:b,body:y}=bE(u,r);if(m.navigate===!1){let w=m.fetcherKey||PE();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 qE(t,{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(t||".",{relative:r})},m=jn();if(t==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(!t||t===".")&&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 VE(t,{relative:r}={}){let o=g.useContext(H0);nt(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Z0("useViewTransitionState"),c=es(t,{relative:r});if(!o.isTransitioning)return!1;let u=da(o.currentLocation.pathname,s)||o.currentLocation.pathname,m=da(o.nextLocation.pathname,s)||o.nextLocation.pathname;return Di(c.pathname,m)!=null||Di(c.pathname,u)!=null}var ts=C0();const F0=T0(ts),IE="/api";function YE(t){const r=new Headers(t?.headers);return t?.body!==void 0&&t.body!==null&&!r.has("Content-Type")&&r.set("Content-Type","application/json"),r}function GE(t,r){if(typeof t=="string"&&t)return t;if(t&&typeof t=="object"){const o=t,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 ve(t,r){const o=await fetch(`${IE}${t}`,{...r,headers:YE(r)});if(!o.ok){const s=await o.json().catch(()=>o.statusText);throw new Error(GE(s,`HTTP ${o.status}`))}return o.json()}function Uo(t,r){return ve(t,{...r,cache:"no-store"})}function W0(t){return ve(`/node-operations/${t}`)}async function J0(t={}){const r=new URLSearchParams;t.nodeId&&r.set("nodeId",t.nodeId),t.status&&r.set("status",t.status),t.kind&&r.set("kind",t.kind);const o=r.toString();return(await ve(`/node-operations${o?`?${o}`:""}`)).operations}function XE(t){return ve(`/nodes/${t}/copilot-tunnel/enable`,{method:"POST"})}function Tv(t){return ve(`/nodes/${t}/copilot-tunnel/status`,{method:"POST"})}function QE(t){return ve(`/nodes/${t}/copilot-tunnel/disable`,{method:"POST"})}function KE(){return ve("/system/info")}function ZE(t){return ve("/system/default-task-agent",{method:"PUT",body:JSON.stringify({defaultTaskAgent:t})})}function P3(t){return ve("/system/transport",{method:"POST",body:JSON.stringify({type:t})})}function ey(t){return ve("/system/runtime/restart",{method:"POST",body:JSON.stringify(t)})}function FE(){return ve("/system/runtime/stop",{method:"POST"})}function WE(){return ve("/cluster/state")}function $3(){return ve("/cluster/promote",{method:"POST"})}function q3(t){return ve("/cluster/connect",{method:"POST",body:JSON.stringify(t)})}function V3(){return ve("/cluster/disconnect",{method:"POST"})}function I3(t={}){return ve("/mobile/pairings",{method:"POST",body:JSON.stringify(t)})}function Y3(t){return ve(`/mobile/pairings/${encodeURIComponent(t)}`)}function JE(t,r){return ve(`/nodes/${t}/agents/${r}/upgrade`,{method:"POST"})}function eN(t,r){return ve(`/nodes/${t}/runtime/restart`,{method:"POST",body:JSON.stringify(r)})}async function G3(){return(await ve("/devboxes")).devboxes}function X3(t,r){return ve(`/nodes/${t}/devbox/configure`,{method:"POST",body:JSON.stringify({devbox:r})})}function Q3(t){return ve(`/nodes/${t}/devbox/status`)}function K3(t){return ve(`/nodes/${t}/devbox/start`,{method:"POST"})}function Z3(t,r){return ve(`/nodes/${t}/devtunnel`,{method:"POST",body:JSON.stringify({enabled:r})})}function F3(t,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 ve(`/nodes/${t}/workdir/tree${s?`?${s}`:""}`)}function W3(t,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 ve(`/nodes/${t}/workdir/branch${s?`?${s}`:""}`)}function J3(t,r){const o=new URLSearchParams;return o.set("agent",r.agent),o.set("limit",String(Math.min(Math.max(1,r.limit),100))),ve(`/nodes/${t}/native-sessions?${o.toString()}`)}function eO(t,r){return ve(`/nodes/${t}/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 tO(t,r){return ve(`/nodes/${t}/terminal/sessions`,{method:"POST",body:JSON.stringify(r)})}function nO(t){return ve(`/nodes/${t}/terminal/sessions`)}function aO(t,r){return ve(`/nodes/${t}/terminal/sessions/${r}`)}function rO(t,r){return ve(`/nodes/${t}/terminal/sessions/${r}/stop`,{method:"POST"})}function If(t,r){t.set("scope",r.kind),r.kind==="project"&&t.set("projectPath",r.projectPath)}function oO(t,r){const o=new URLSearchParams;return If(o,r.scope),r.agents?.length&&o.set("agents",r.agents.join(",")),ve(`/nodes/${encodeURIComponent(t)}/capabilities?${o.toString()}`)}function lO(t,r,o){const s=new URLSearchParams;o&&If(s,o);const c=s.toString();return ve(`/nodes/${encodeURIComponent(t)}/capabilities/${encodeURIComponent(r)}${c?`?${c}`:""}`)}function sO(t,r,o){const s=new URLSearchParams;o&&If(s,o);const c=s.toString();return ve(`/nodes/${encodeURIComponent(t)}/capabilities/${encodeURIComponent(r)}${c?`?${c}`:""}`,{method:"DELETE"})}function iO(t){return ve("/capabilities/conflict-check",{method:"POST",body:JSON.stringify(t)})}function cO(t){return ve("/capabilities/share",{method:"POST",body:JSON.stringify(t)})}async function uO(t){const r=new URLSearchParams;if(t?.status&&r.set("status",t.status),t?.assignedTo&&r.set("assignedTo",t.assignedTo),t?.priority&&r.set("priority",t.priority),t?.limit){const s=Math.min(Math.max(1,t.limit),100);r.set("limit",String(s))}if(t?.offset&&r.set("offset",String(t.offset)),t?.projectPath&&r.set("projectPath",t.projectPath),t?.cursor&&r.set("cursor",t.cursor),t?.completedLimitPerProject!==void 0){const s=Math.min(Math.max(1,t.completedLimitPerProject),100);r.set("completedLimitPerProject",String(s))}const o=r.toString();return ve(`/tasks${o?`?${o}`:""}`)}function dO(t){return ve(`/tasks/${t}`)}function fO(t){return ve("/tasks",{method:"POST",body:JSON.stringify(t)})}function mO(t){return ve("/tasks/import-session",{method:"POST",body:JSON.stringify(t)})}function hO(t){return ve("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:t})})}function pO(t){return ve("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:t})})}function gO(t){return ve(`/tasks/${t}/cancel`,{method:"POST"})}function vO(t){return ve(`/tasks/${t}/retry`,{method:"POST"})}function yO(t,r,o={}){const s=new URLSearchParams;r!==void 0&&s.set("after",String(r)),o.minTotal!==void 0&&s.set("minTotal",String(o.minTotal));const c=s.size>0?`?${s.toString()}`:"";return ve(`/tasks/${t}/logs${c}`)}function bO(t,r,o){return ve(`/tasks/${t}/message`,{method:"POST",body:JSON.stringify({content:r,...o?{targetAgent:o}:{}})})}function xO(t,r){return ve(`/tasks/${t}/queued-messages/${encodeURIComponent(r)}`,{method:"DELETE"})}function SO(t,r){return ve(`/tasks/${t}/share`,{method:"POST",body:JSON.stringify(r)})}function wO(t){return ve(`/tasks/${t}/share`,{method:"DELETE"})}function EO(t){return Uo(`/shared/conversations/${encodeURIComponent(t)}`)}function NO(t,r){return Uo(`/shared/conversations/${encodeURIComponent(t)}/logs`)}function TO(t){return Uo(`/shared/conversations/${encodeURIComponent(t)}/output`)}function CO(t,r="."){return Uo(`/shared/conversations/${encodeURIComponent(t)}/output/tree?path=${encodeURIComponent(r)}`)}function RO(t,r){return Uo(`/shared/conversations/${encodeURIComponent(t)}/output/content?path=${encodeURIComponent(r)}`)}function AO(t,r){return Uo(`/shared/conversations/${encodeURIComponent(t)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(r?{path:r}:{})})}function ty(t){return t?typeof t=="string"?{path:t}:{...t.path?{path:t.path}:{},...t.port!==void 0?{port:t.port}:{}}:{}}function kO(t){return ve(`/tasks/${t}/output`)}function jO(t,r="."){return ve(`/tasks/${t}/output/tree?path=${encodeURIComponent(r)}`)}function _O(t,r){return ve(`/tasks/${t}/output/content?path=${encodeURIComponent(r)}`)}function OO(t,r){return ve(`/tasks/${t}/output/preview-sessions`,{method:"POST",body:JSON.stringify(ty(r))})}function MO(t,r){return ve(`/nodes/${t}/preview-sessions`,{method:"POST",body:JSON.stringify(ty(r))})}function DO(t){return ve(`/tasks/${t}/output/diff`)}function tN({hasStarted:t,enabled:r}){return r&&!t}function nN(t,r,o=!0){const s=g.useRef(t),c=g.useRef(!1);g.useEffect(()=>{s.current=t},[t]),g.useEffect(()=>{if(!o)return;const u=()=>s.current();tN({hasStarted:c.current,enabled:o})&&(c.current=!0,u());const m=setInterval(u,r);return()=>clearInterval(m)},[r,o])}function aN(t){return t?t.replace(/\/+$/,""):""}function rN(t){const r=t??"/api";return r?r.startsWith("/")?r.replace(/\/+$/,""):`/${r.replace(/\/+$/,"")}`:""}function Hd(...t){const r=new Headers;for(const o of t){if(!o)continue;new Headers(o).forEach((c,u)=>r.set(u,c))}return r}var oN=class extends Error{status;statusText;code;details;body;constructor(t,r){super(t),this.name="MeshyApiError",this.status=r.status,this.statusText=r.statusText,this.code=r.code,this.details=r.details,this.body=r.body}};function lN(t,r){if(typeof t=="string"&&t)return{message:t};if(t&&typeof t=="object"){const o=t,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(t,r){const o=r.toString();return o?`${t}?${o}`:t}function Wt(t,r,o){o!==void 0&&t.set(r,String(o))}function pi(t){return t===null||Array.isArray(t)||typeof t=="object"&&t!==null&&!(t instanceof ArrayBuffer)}function Cv(t){return t?typeof t=="string"?{path:t}:{...t.path?{path:t.path}:{},...t.port!==void 0?{port:t.port}:{}}:{}}var sN=class{baseUrl;apiPrefix;defaultHeaders;credentials;fetchImpl;config;constructor(t={}){const r=t.fetchImpl??((o,s)=>globalThis.fetch(o,s));if(!r)throw new Error("MeshyClient requires a fetch implementation");this.fetchImpl=r,this.baseUrl=aN(t.baseUrl),this.apiPrefix=rN(t.apiPrefix),this.defaultHeaders=Hd(t.defaultHeaders),this.credentials=t.credentials,this.config=t}buildApiUrl(t){const r=t.startsWith("/")?t:`/${t}`;return`${this.baseUrl}${this.apiPrefix}${r}`}buildApiurl(t){return this.buildApiUrl(t)}async buildRequestHeaders(t={}){const r=await this.config.tokenProvider?.(),o=await this.config.headersProvider?.();return Hd(t.accept?{Accept:t.accept}:{Accept:"application/json"},t.json?{"Content-Type":"application/json"}:void 0,this.config.defaultHeaders,o,r?{Authorization:`Bearer ${r}`}:void 0,t.headers)}async fetchApi(t,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.buildRequestHeaders({json:pi(r.body),headers:r.headers}),m=pi(r.body)?JSON.stringify(r.body):r.body;try{return await this.fetchImpl(this.buildApiUrl(t),{...r,headers:u,body:m,credentials:r.credentials??this.config.credentials,signal:r.signal??s?.signal})}finally{c&&clearTimeout(c)}}async request(t,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=Hd({Accept:"application/json"},pi(r.body)?{"Content-Type":"application/json"}:void 0,this.config.defaultHeaders,m,u?{Authorization:`Bearer ${u}`}:void 0,r.headers),p=pi(r.body)?JSON.stringify(r.body):r.body;try{const b=await this.fetchImpl(this.buildApiUrl(t),{...r,headers:v,body:p,credentials:h,signal:r.signal??s?.signal});if(!b.ok){const y=await b.json().catch(()=>b.statusText),w=lN(y,`HTTP ${b.status}`);throw new oN(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(t){return this.request("/system/transport",{method:"POST",body:{type:t}})}restartRuntime(t){return this.request("/system/runtime/restart",{method:"POST",body:t})}stopRuntime(){return this.request("/system/runtime/stop",{method:"POST"})}getClusterState(){return this.request("/cluster/state")}promoteToLeader(){return this.request("/cluster/promote",{method:"POST"})}joinCluster(t){return this.request("/cluster/join",{method:"POST",body:t})}connectToCluster(t){return this.request("/cluster/connect",{method:"POST",body:t})}disconnectFromCluster(){return this.request("/cluster/disconnect",{method:"POST"})}async getNodes(t={}){const r=new URLSearchParams;return Wt(r,"status",t.status),Wt(r,"capability",t.capability),(await this.request(Bl("/nodes",r))).nodes}getNode(t){return this.request(`/nodes/${encodeURIComponent(t)}`)}getNodeStatus(t){return this.request(`/nodes/${encodeURIComponent(t)}/status`)}removeNode(t){return this.request(`/nodes/${encodeURIComponent(t)}`,{method:"DELETE"})}leaveCluster(t){return this.request("/cluster/leave",{method:"POST",body:{nodeId:t}})}updateNode(t,r){return this.request(`/nodes/${encodeURIComponent(t)}`,{method:"PATCH",body:r})}toggleNodeDevTunnel(t,r){return this.request(`/nodes/${encodeURIComponent(t)}/devtunnel`,{method:"POST",body:{enabled:r}})}getNodeOperation(t){return this.request(`/node-operations/${encodeURIComponent(t)}`)}async listNodeOperations(t={}){const r=new URLSearchParams;return Wt(r,"nodeId",t.nodeId),Wt(r,"status",t.status),Wt(r,"kind",t.kind),(await this.request(Bl("/node-operations",r))).operations}upgradeNodeAgent(t,r){return this.request(`/nodes/${encodeURIComponent(t)}/agents/${r}/upgrade`,{method:"POST"})}restartNodeRuntime(t,r){return this.request(`/nodes/${encodeURIComponent(t)}/runtime/restart`,{method:"POST",body:r})}getNodeWorkDirTree(t,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(t)}/workdir/tree`,o))}getNodeWorkDirBranchInfo(t,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(t)}/workdir/branch`,o))}createNodeWorkDirBranch(t,r){return this.request(`/nodes/${encodeURIComponent(t)}/workdir/branch`,{method:"POST",body:r})}createNodePreviewSession(t,r){return this.request(`/nodes/${encodeURIComponent(t)}/preview-sessions`,{method:"POST",body:Cv(r)})}getNodeNativeSessions(t,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(t)}/native-sessions?${o.toString()}`)}hideNodeNativeSession(t,r,o){return this.request(`/nodes/${encodeURIComponent(t)}/native-sessions/${encodeURIComponent(r)}/${encodeURIComponent(o)}`,{method:"DELETE"})}hideNodeNativeSessionFolder(t,r){return this.request(`/nodes/${encodeURIComponent(t)}/native-sessions/folders/hide`,{method:"POST",body:r})}startNodeTerminalSession(t,r){return this.request(`/nodes/${encodeURIComponent(t)}/terminal/sessions`,{method:"POST",body:r})}listNodeTerminalSessions(t){return this.request(`/nodes/${encodeURIComponent(t)}/terminal/sessions`)}getNodeTerminalSession(t,r){return this.request(`/nodes/${encodeURIComponent(t)}/terminal/sessions/${encodeURIComponent(r)}`)}stopNodeTerminalSession(t,r){return this.request(`/nodes/${encodeURIComponent(t)}/terminal/sessions/${encodeURIComponent(r)}/stop`,{method:"POST"})}async getTasks(t={}){const r=new URLSearchParams;return Wt(r,"status",t.status),Wt(r,"assignedTo",t.assignedTo),Wt(r,"priority",t.priority),t.limit&&r.set("limit",String(Math.min(Math.max(1,t.limit),100))),t.offset&&r.set("offset",String(t.offset)),(await this.request(Bl("/tasks",r))).tasks}getTask(t){return this.request(`/tasks/${encodeURIComponent(t)}`)}createTask(t){return this.request("/tasks",{method:"POST",body:t})}attachNativeSession(t){return this.request("/tasks/import-session",{method:"POST",body:t})}deleteTask(t){return this.request(`/tasks/${encodeURIComponent(t)}`,{method:"DELETE"})}batchDeleteTasks(t){return this.request("/tasks/batch/delete",{method:"POST",body:{ids:t}})}batchArchiveTasks(t){return this.request("/tasks/batch/archive",{method:"POST",body:{ids:t}})}archiveTask(t){return this.request(`/tasks/${encodeURIComponent(t)}`,{method:"PATCH",body:{status:"archived"}})}updateTaskTitle(t,r){return this.request(`/tasks/${encodeURIComponent(t)}`,{method:"PATCH",body:{title:r}})}cancelTask(t){return this.request(`/tasks/${encodeURIComponent(t)}/cancel`,{method:"POST"})}retryTask(t){return this.request(`/tasks/${encodeURIComponent(t)}/retry`,{method:"POST"})}assignTask(t,r){return this.request(`/tasks/${encodeURIComponent(t)}/assign`,{method:"POST",body:{nodeId:r}})}getTaskLogs(t,r){return this.request(`/tasks/${encodeURIComponent(t)}/logs${r!==void 0?`?after=${r}`:""}`)}sendTaskMessage(t,r){return this.request(`/tasks/${encodeURIComponent(t)}/message`,{method:"POST",body:{content:r}})}createTaskShare(t,r){return this.request(`/tasks/${encodeURIComponent(t)}/share`,{method:"POST",body:r})}deleteTaskShare(t){return this.request(`/tasks/${encodeURIComponent(t)}/share`,{method:"DELETE"})}getSharedConversation(t){return this.request(`/shared/conversations/${encodeURIComponent(t)}`)}getSharedConversationLogs(t,r){return this.request(`/shared/conversations/${encodeURIComponent(t)}/logs${r!==void 0?`?after=${r}`:""}`)}getSharedTaskOutput(t){return this.request(`/shared/conversations/${encodeURIComponent(t)}/output`)}getSharedTaskOutputTree(t,r="."){return this.request(`/shared/conversations/${encodeURIComponent(t)}/output/tree?path=${encodeURIComponent(r)}`)}getSharedTaskOutputContent(t,r){return this.request(`/shared/conversations/${encodeURIComponent(t)}/output/content?path=${encodeURIComponent(r)}`)}createSharedTaskPreviewSession(t,r){return this.request(`/shared/conversations/${encodeURIComponent(t)}/output/preview-sessions`,{method:"POST",body:r?{path:r}:{}})}getTaskOutput(t){return this.request(`/tasks/${encodeURIComponent(t)}/output`)}getTaskOutputTree(t,r="."){return this.request(`/tasks/${encodeURIComponent(t)}/output/tree?path=${encodeURIComponent(r)}`)}getTaskOutputContent(t,r){return this.request(`/tasks/${encodeURIComponent(t)}/output/content?path=${encodeURIComponent(r)}`)}createTaskPreviewSession(t,r){return this.request(`/tasks/${encodeURIComponent(t)}/output/preview-sessions`,{method:"POST",body:Cv(r)})}getTaskOutputDiff(t){return this.request(`/tasks/${encodeURIComponent(t)}/output/diff`)}},iN=new sN,cN=["node.joined","node.left","node.status","node.operation.created","node.operation.updated","node.nativeSessions.changed","task.created","task.assigned","task.status","task.updated","task.deleted","task.output","task.logs.ready","election.started","election.complete","cluster.state","transport.changed"],uN=0,dN=class{client;eventTypes;eventSourceFactory;pollIntervalMs;poll;eventSource=null;pollTimer=null;listeners=new Map;connectionListeners=new Map;listenerId=0;connected=!1;constructor(t){this.client=t.client,this.eventTypes=t.eventTypes??cN,this.eventSourceFactory=t.eventSourceFactory??(fN(t.client)?void 0:hN()),this.pollIntervalMs=t.pollIntervalMs??1e4,this.poll=t.poll}start(){if(!(this.eventSource||this.pollTimer)){if(this.eventSourceFactory){const t=new this.eventSourceFactory(mN(this.client,"/events"),this.client.credentials==="include"?{withCredentials:!0}:void 0);this.eventSource=t,t.onopen=()=>this.setConnected(!0),t.onerror=()=>{this.setConnected(!1),this.startPolling()};for(const r of this.eventTypes)t.addEventListener(r,o=>this.emit({id:String(++uN),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(t,r){const o=++this.listenerId;return this.listeners.set(o,{pattern:t,callback:r}),()=>this.listeners.delete(o)}onConnectionChange(t){const r=++this.listenerId;return this.connectionListeners.set(r,t),t(this.connected),()=>this.connectionListeners.delete(r)}isConnected(){return this.connected}emit(t){for(const{pattern:r,callback:o}of this.listeners.values())t.type.startsWith(r)&&o(t)}setConnected(t){if(this.connected!==t){this.connected=t;for(const r of this.connectionListeners.values())r(t)}}startPolling(){!this.poll||this.pollTimer||(this.pollTimer=setInterval(()=>{this.poll?.().then(()=>this.setConnected(!0)).catch(()=>{this.setConnected(!1)})},this.pollIntervalMs))}};function fN(t){return t.defaultHeaders.has("x-tunnel-authorization")}function mN(t,r){const o=t.buildApiUrl??t.buildApiurl;if(!o)throw new Error("MeshyClient is missing buildApiUrl");return o.call(t,r)}function hN(){return globalThis.EventSource}var pN=3,gN="mmp";function zO(t){return JSON.stringify({t:gN,v:pN,n:t.nodeId,N:t.nodeName,u:t.apiBaseUrl,p:t.pairingId,e:t.expiresAt,m:t.maxUses,a:{t:t.aad.tenantId,c:t.aad.clientId,s:t.aad.scopes}})}function vN(t=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 dN({client:iN});u.current=b;const y=b.subscribe("",k=>{const A=k;o(E=>[A,...E].slice(0,t));for(const[,{pattern:E,callback:N}]of h.current)A.type.startsWith(E)&&N(A)}),w=b.onConnectionChange(c);return b.start(),()=>{y(),w(),b.stop(),u.current=null}},[t]);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 yN=1e4,bN=6e4,xN=yN,SN=250,wN=new Set(["node.joined","node.left","task.created","task.assigned","task.deleted"]),EN=new Set(["task.created","task.assigned","task.status","task.deleted"]);function NN(t){return t?bN:xN}function UO(t){return wN.has(t)}function TN(t){return EN.has(t)}function CN(t,r){if(!r)return!0;const o=t.leaderId,s=t.term,c=t.nodeCount;return typeof o!="string"&&o!==null||typeof s!="number"||typeof c!="number"?!0:r.leaderId!==o||r.term!==s||r.nodeCount!==c}function RN(t,r,o){if(t==="node.joined"||t==="node.left"||t!=="node.status")return!0;const s=r.nodeId,c=r.status;return typeof s!="string"||typeof c!="string"?!0:o.get(s)!==c}function LO(t,r){const o=r.taskId,s=r.status;if(typeof o!="string"||typeof s!="string")return t;let c=!1;const u=t.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:t}function BO(t,r){const o=r.taskId;if(typeof o!="string")return t;const s=t.filter(c=>c.id!==o);return s.length===t.length?t:s}const ny=g.createContext(null);function AN({children:t}){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:k,subscribe:A}=vN(),E=g.useCallback(async()=>{try{const[T,R]=await Promise.all([WE(),KE()]),O=T,H=R.nodeId??R.id,z=O.nodes??[],K=z.find(le=>le.id===H)??{id:H,name:R.name,endpoint:R.endpoint,role:R.role,status:R.status,capabilities:R.capabilities,joinedAt:R.joinedAt,lastHeartbeat:R.lastHeartbeat},I=O.leaderId?z.find(le=>le.id===O.leaderId)??null:null,P={leader:I?{id:I.id,name:I.name,endpoint:I.endpoint,...I.dashboardOrigin?{dashboardOrigin:I.dashboardOrigin}:{}}:null,term:O.term??0,nodes:z,self:K,taskSummary:O.taskSummary??{total:0,pending:0,running:0,completed:0,failed:0}};b.current={leaderId:P.leader?.id??null,term:P.term,nodeCount:P.nodes.length},y.current=new Map(P.nodes.map(le=>[le.id,le.status])),y.current.set(P.self.id,P.self.status),o(P),c(R),v(null)}catch(T){v(T instanceof Error?T.message:"Failed to fetch cluster state")}finally{m(!1)}},[]),N=g.useCallback(()=>{p.current===null&&(p.current=window.setTimeout(()=>{p.current=null,E()},SN))},[E]);return nN(E,NN(k)),g.useEffect(()=>()=>{p.current!==null&&(window.clearTimeout(p.current),p.current=null)},[]),g.useEffect(()=>{const T=[A("cluster",R=>{CN(R.data,b.current)&&N()}),A("election",N),A("node",R=>{RN(R.type,R.data,y.current)&&N()}),A("transport",N),A("task",R=>{TN(R.type)&&N()})];return()=>T.forEach(R=>R())},[A,N]),f.jsx(ny.Provider,{value:{cluster:r,systemInfo:s,events:w,sseConnected:k,subscribe:A,refresh:E,loading:u,error:h},children:t})}function ay(){const t=g.useContext(ny);if(!t)throw new Error("useCluster must be used within ClusterProvider");return t}/**
|
|
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 ry=(...t)=>t.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 kN=t=>t.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 jN=t=>t.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 Rv=t=>{const r=jN(t);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 Pd={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 _N=t=>{for(const r in t)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1},ON=g.createContext({}),MN=()=>g.useContext(ON),DN=g.forwardRef(({color:t,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:k=""}=MN()??{},A=s??y?Number(o??b)*24/Number(r??p):o??b;return g.createElement("svg",{ref:v,...Pd,width:r??p??Pd.width,height:r??p??Pd.height,stroke:t??w,strokeWidth:A,className:ry("lucide",k,c),...!u&&!_N(h)&&{"aria-hidden":"true"},...h},[...m.map(([E,N])=>g.createElement(E,N)),...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 ke=(t,r)=>{const o=g.forwardRef(({className:s,...c},u)=>g.createElement(DN,{ref:u,iconNode:r,className:ry(`lucide-${kN(Rv(t))}`,`lucide-${t}`,s),...c}));return o.displayName=Rv(t),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 zN=[["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"}]],Ui=ke("activity",zN);/**
|
|
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 UN=[["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"}]],LN=ke("book-open",UN);/**
|
|
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 BN=[["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"}]],Yf=ke("bot",BN);/**
|
|
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 HN=[["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"}]],oy=ke("cable",HN);/**
|
|
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 PN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Li=ke("check",PN);/**
|
|
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 $N=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Zl=ke("chevron-down",$N);/**
|
|
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 qN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],cf=ke("chevron-right",qN);/**
|
|
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 VN=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],IN=ke("chevron-up",VN);/**
|
|
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 YN=[["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"}]],gi=ke("circle-alert",YN);/**
|
|
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 GN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ro=ke("circle-check",GN);/**
|
|
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 XN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],Av=ke("circle-dot",XN);/**
|
|
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 QN=[["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"}]],uf=ke("circle-x",QN);/**
|
|
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 KN=[["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"}]],ly=ke("copy",KN);/**
|
|
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 ZN=[["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"}]],FN=ke("cpu",ZN);/**
|
|
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 WN=[["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"}]],sy=ke("external-link",WN);/**
|
|
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 JN=[["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"}]],eT=ke("folder-tree",JN);/**
|
|
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 tT=[["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"}]],nT=ke("folder",tT);/**
|
|
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 aT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],rT=ke("info",aT);/**
|
|
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 oT=[["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"}]],lT=ke("key-round",oT);/**
|
|
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 sT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],iy=ke("loader-circle",sT);/**
|
|
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 iT=[["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"}]],cy=ke("message-square-text",iT);/**
|
|
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 cT=[["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"}]],uT=ke("monitor-cog",cT);/**
|
|
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 dT=[["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"}]],uy=ke("monitor",dT);/**
|
|
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 fT=[["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"}]],dy=ke("moon",fT);/**
|
|
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 mT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],hT=ke("plus",mT);/**
|
|
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 pT=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],gT=ke("power",pT);/**
|
|
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 vT=[["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"}]],yT=ke("radio",vT);/**
|
|
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 bT=[["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"}]],Ai=ke("refresh-cw",bT);/**
|
|
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 xT=[["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"}]],kv=ke("rocket",xT);/**
|
|
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 ST=[["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"}]],wT=ke("save",ST);/**
|
|
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 ET=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],NT=ke("search",ET);/**
|
|
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 TT=[["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"}]],fy=ke("server",TT);/**
|
|
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 CT=[["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"}]],RT=ke("settings",CT);/**
|
|
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 AT=[["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"}]],kT=ke("shield",AT);/**
|
|
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 jT=[["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"}]],_T=ke("sparkles",jT);/**
|
|
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 OT=[["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"}]],my=ke("sun",OT);/**
|
|
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 MT=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],hy=ke("terminal",MT);/**
|
|
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 DT=[["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"}]],zT=ke("trash-2",DT);/**
|
|
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 UT=[["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"}]],LT=ke("wifi-off",UT);/**
|
|
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 BT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],py=ke("x",BT);function gy(t){var r,o,s="";if(typeof t=="string"||typeof t=="number")s+=t;else if(typeof t=="object")if(Array.isArray(t)){var c=t.length;for(r=0;r<c;r++)t[r]&&(o=gy(t[r]))&&(s&&(s+=" "),s+=o)}else for(o in t)t[o]&&(s&&(s+=" "),s+=o);return s}function vy(){for(var t,r,o=0,s="",c=arguments.length;o<c;o++)(t=arguments[o])&&(r=gy(t))&&(s&&(s+=" "),s+=r);return s}const HT=(t,r)=>{const o=new Array(t.length+r.length);for(let s=0;s<t.length;s++)o[s]=t[s];for(let s=0;s<r.length;s++)o[t.length+s]=r[s];return o},PT=(t,r)=>({classGroupId:t,validator:r}),yy=(t=new Map,r=null,o)=>({nextPart:t,validators:r,classGroupId:o}),Bi="-",jv=[],$T="arbitrary..",qT=t=>{const r=IT(t),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=t;return{getClassGroupId:m=>{if(m.startsWith("[")&&m.endsWith("]"))return VT(m);const h=m.split(Bi),v=h[0]===""&&h.length>1?1:0;return by(h,v,r)},getConflictingClassGroupIds:(m,h)=>{if(h){const v=s[m],p=o[m];return v?p?HT(p,v):v:p||jv}return o[m]||jv}}},by=(t,r,o)=>{if(t.length-r===0)return o.classGroupId;const c=t[r],u=o.nextPart.get(c);if(u){const p=by(t,r+1,u);if(p)return p}const m=o.validators;if(m===null)return;const h=r===0?t.join(Bi):t.slice(r).join(Bi),v=m.length;for(let p=0;p<v;p++){const b=m[p];if(b.validator(h))return b.classGroupId}},VT=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=t.slice(1,-1),o=r.indexOf(":"),s=r.slice(0,o);return s?$T+s:void 0})(),IT=t=>{const{theme:r,classGroups:o}=t;return YT(o,r)},YT=(t,r)=>{const o=yy();for(const s in t){const c=t[s];Gf(c,o,s,r)}return o},Gf=(t,r,o,s)=>{const c=t.length;for(let u=0;u<c;u++){const m=t[u];GT(m,r,o,s)}},GT=(t,r,o,s)=>{if(typeof t=="string"){XT(t,r,o);return}if(typeof t=="function"){QT(t,r,o,s);return}KT(t,r,o,s)},XT=(t,r,o)=>{const s=t===""?r:xy(r,t);s.classGroupId=o},QT=(t,r,o,s)=>{if(ZT(t)){Gf(t(s),r,o,s);return}r.validators===null&&(r.validators=[]),r.validators.push(PT(o,t))},KT=(t,r,o,s)=>{const c=Object.entries(t),u=c.length;for(let m=0;m<u;m++){const[h,v]=c[m];Gf(v,xy(r,h),o,s)}},xy=(t,r)=>{let o=t;const s=r.split(Bi),c=s.length;for(let u=0;u<c;u++){const m=s[u];let h=o.nextPart.get(m);h||(h=yy(),o.nextPart.set(m,h)),o=h}return o},ZT=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,FT=t=>{if(t<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),s=Object.create(null);const c=(u,m)=>{o[u]=m,r++,r>t&&(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)}}},df="!",_v=":",WT=[],Ov=(t,r,o,s,c)=>({modifiers:t,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:s,isExternal:c}),JT=t=>{const{prefix:r,experimentalParseClassName:o}=t;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 N=c[E];if(m===0&&h===0){if(N===_v){u.push(c.slice(v,E)),v=E+1;continue}if(N==="/"){p=E;continue}}N==="["?m++:N==="]"?m--:N==="("?h++:N===")"&&h--}const y=u.length===0?c:c.slice(v);let w=y,k=!1;y.endsWith(df)?(w=y.slice(0,-1),k=!0):y.startsWith(df)&&(w=y.slice(1),k=!0);const A=p&&p>v?p-v:void 0;return Ov(u,k,w,A)};if(r){const c=r+_v,u=s;s=m=>m.startsWith(c)?u(m.slice(c.length)):Ov(WT,!1,m,void 0,!0)}if(o){const c=s;s=u=>o({className:u,parseClassName:c})}return s},eC=t=>{const r=new Map;return t.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}},tC=t=>({cache:FT(t.cacheSize),parseClassName:JT(t),sortModifiers:eC(t),...qT(t)}),nC=/\s+/,aC=(t,r)=>{const{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:c,sortModifiers:u}=r,m=[],h=t.trim().split(nC);let v="";for(let p=h.length-1;p>=0;p-=1){const b=h[p],{isExternal:y,modifiers:w,hasImportantModifier:k,baseClassName:A,maybePostfixModifierPosition:E}=o(b);if(y){v=b+(v.length>0?" "+v:v);continue}let N=!!E,T=s(N?A.substring(0,E):A);if(!T){if(!N){v=b+(v.length>0?" "+v:v);continue}if(T=s(A),!T){v=b+(v.length>0?" "+v:v);continue}N=!1}const R=w.length===0?"":w.length===1?w[0]:u(w).join(":"),O=k?R+df:R,H=O+T;if(m.indexOf(H)>-1)continue;m.push(H);const z=c(T,N);for(let K=0;K<z.length;++K){const I=z[K];m.push(O+I)}v=b+(v.length>0?" "+v:v)}return v},rC=(...t)=>{let r=0,o,s,c="";for(;r<t.length;)(o=t[r++])&&(s=Sy(o))&&(c&&(c+=" "),c+=s);return c},Sy=t=>{if(typeof t=="string")return t;let r,o="";for(let s=0;s<t.length;s++)t[s]&&(r=Sy(t[s]))&&(o&&(o+=" "),o+=r);return o},oC=(t,...r)=>{let o,s,c,u;const m=v=>{const p=r.reduce((b,y)=>y(b),t());return o=tC(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=aC(v,o);return c(v,b),b};return u=m,(...v)=>u(rC(...v))},lC=[],xt=t=>{const r=o=>o[t]||lC;return r.isThemeGetter=!0,r},wy=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ey=/^\((?:(\w[\w-]*):)?(.+)\)$/i,sC=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,iC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cC=/\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$/,uC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,dC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qa=t=>sC.test(t),_e=t=>!!t&&!Number.isNaN(Number(t)),Va=t=>!!t&&Number.isInteger(Number(t)),$d=t=>t.endsWith("%")&&_e(t.slice(0,-1)),ca=t=>iC.test(t),Ny=()=>!0,mC=t=>cC.test(t)&&!uC.test(t),Xf=()=>!1,hC=t=>dC.test(t),pC=t=>fC.test(t),gC=t=>!pe(t)&&!ge(t),vC=t=>Za(t,Ry,Xf),pe=t=>wy.test(t),Sr=t=>Za(t,Ay,mC),Mv=t=>Za(t,TC,_e),yC=t=>Za(t,jy,Ny),bC=t=>Za(t,ky,Xf),Dv=t=>Za(t,Ty,Xf),xC=t=>Za(t,Cy,pC),vi=t=>Za(t,_y,hC),ge=t=>Ey.test(t),Hl=t=>jr(t,Ay),SC=t=>jr(t,ky),zv=t=>jr(t,Ty),wC=t=>jr(t,Ry),EC=t=>jr(t,Cy),yi=t=>jr(t,_y,!0),NC=t=>jr(t,jy,!0),Za=(t,r,o)=>{const s=wy.exec(t);return s?s[1]?r(s[1]):o(s[2]):!1},jr=(t,r,o=!1)=>{const s=Ey.exec(t);return s?s[1]?r(s[1]):o:!1},Ty=t=>t==="position"||t==="percentage",Cy=t=>t==="image"||t==="url",Ry=t=>t==="length"||t==="size"||t==="bg-size",Ay=t=>t==="length",TC=t=>t==="number",ky=t=>t==="family-name",jy=t=>t==="number"||t==="weight",_y=t=>t==="shadow",CC=()=>{const t=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"),k=xt("drop-shadow"),A=xt("blur"),E=xt("perspective"),N=xt("aspect"),T=xt("ease"),R=xt("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...H(),ge,pe],K=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],P=()=>[ge,pe,v],le=()=>[qa,"full","auto",...P()],de=()=>[Va,"none","subgrid",ge,pe],fe=()=>["auto",{span:["full",Va,ge,pe]},Va,ge,pe],W=()=>[Va,"auto",ge,pe],te=()=>["auto","min","max","fr",ge,pe],se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...P()],B=()=>[qa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],Q=()=>[qa,"screen","full","dvw","lvw","svw","min","max","fit",...P()],ue=()=>[qa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],C=()=>[t,ge,pe],V=()=>[...H(),zv,Dv,{position:[ge,pe]}],re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",wC,vC,{size:[ge,pe]}],ee=()=>[$d,Hl,Sr],J=()=>["","none","full",p,ge,pe],ne=()=>["",_e,Hl,Sr],ie=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>[_e,$d,zv,Dv],Re=()=>["","none",A,ge,pe],Ne=()=>["none",_e,ge,pe],Ae=()=>["none",_e,ge,pe],et=()=>[_e,ge,pe],rt=()=>[qa,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ca],breakpoint:[ca],color:[Ny],container:[ca],"drop-shadow":[ca],ease:["in","out","in-out"],font:[gC],"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",_e],text:[ca],"text-shadow":[ca],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",qa,pe,ge,N]}],container:["container"],columns:[{columns:[_e,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:z()}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:le()}],"inset-x":[{"inset-x":le()}],"inset-y":[{"inset-y":le()}],start:[{"inset-s":le(),start:le()}],end:[{"inset-e":le(),end:le()}],"inset-bs":[{"inset-bs":le()}],"inset-be":[{"inset-be":le()}],top:[{top:le()}],right:[{right:le()}],bottom:[{bottom:le()}],left:[{left:le()}],visibility:["visible","invisible","collapse"],z:[{z:[Va,"auto",ge,pe]}],basis:[{basis:[qa,"full","auto",h,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,qa,"auto","initial","none",pe]}],grow:[{grow:["",_e,ge,pe]}],shrink:[{shrink:["",_e,ge,pe]}],order:[{order:[Va,"first","last","none",ge,pe]}],"grid-cols":[{"grid-cols":de()}],"col-start-end":[{col:fe()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":de()}],"row-start-end":[{row:fe()}],"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":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],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":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],"inline-size":[{inline:["auto",...Q()]}],"min-inline-size":[{"min-inline":["auto",...Q()]}],"max-inline-size":[{"max-inline":["none",...Q()]}],"block-size":[{block:["auto",...ue()]}],"min-block-size":[{"min-block":["auto",...ue()]}],"max-block-size":[{"max-block":["none",...ue()]}],w:[{w:[h,"screen",...B()]}],"min-w":[{"min-w":[h,"screen","none",...B()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[m]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",o,Hl,Sr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,NC,yC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",$d,pe]}],"font-family":[{font:[SC,bC,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":[_e,"none",ge,Mv]}],leading:[{leading:[u,...P()]}],"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:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",ge,Sr]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[_e,"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:P()}],"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:V()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Va,ge,pe],radial:["",ge,pe],conic:[Va,ge,pe]},EC,xC]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:ee()}],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"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:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-bs":[{"border-bs":C()}],"border-color-be":[{"border-be":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,ge,pe]}],"outline-w":[{outline:["",_e,Hl,Sr]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",b,yi,vi]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",y,yi,vi]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[_e,Sr]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",w,yi,vi]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[_e,ge,pe]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"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":[_e]}],"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":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"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":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"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":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"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":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"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":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"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":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"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":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"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":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"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":H()}],"mask-image-conic-pos":[{"mask-conic":[_e]}],"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":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:V()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,pe]}],filter:[{filter:["","none",ge,pe]}],blur:[{blur:Re()}],brightness:[{brightness:[_e,ge,pe]}],contrast:[{contrast:[_e,ge,pe]}],"drop-shadow":[{"drop-shadow":["","none",k,yi,vi]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",_e,ge,pe]}],"hue-rotate":[{"hue-rotate":[_e,ge,pe]}],invert:[{invert:["",_e,ge,pe]}],saturate:[{saturate:[_e,ge,pe]}],sepia:[{sepia:["",_e,ge,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,pe]}],"backdrop-blur":[{"backdrop-blur":Re()}],"backdrop-brightness":[{"backdrop-brightness":[_e,ge,pe]}],"backdrop-contrast":[{"backdrop-contrast":[_e,ge,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,ge,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,ge,pe]}],"backdrop-invert":[{"backdrop-invert":["",_e,ge,pe]}],"backdrop-opacity":[{"backdrop-opacity":[_e,ge,pe]}],"backdrop-saturate":[{"backdrop-saturate":[_e,ge,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,ge,pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"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:[_e,"initial",ge,pe]}],ease:[{ease:["linear","initial",T,ge,pe]}],delay:[{delay:[_e,ge,pe]}],animate:[{animate:["none",R,ge,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ge,pe]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:Ne()}],"rotate-x":[{"rotate-x":Ne()}],"rotate-y":[{"rotate-y":Ne()}],"rotate-z":[{"rotate-z":Ne()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"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:z()}],"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:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"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":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",...C()]}],"stroke-w":[{stroke:[_e,Hl,Sr,Mv]}],stroke:[{stroke:["none",...C()]}],"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"]}},RC=oC(CC);function ae(...t){return RC(vy(t))}function AC(t){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=t:o.appendChild(document.createTextNode(t))}const kC=t=>{switch(t){case"success":return OC;case"info":return DC;case"warning":return MC;case"error":return zC;default:return null}},jC=Array(12).fill(0),_C=({visible:t,className:r})=>oe.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":t},oe.createElement("div",{className:"sonner-spinner"},jC.map((o,s)=>oe.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),OC=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},oe.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"})),MC=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},oe.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"})),DC=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},oe.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"})),zC=oe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},oe.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"})),UC=oe.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"},oe.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),oe.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),LC=()=>{const[t,r]=oe.useState(document.hidden);return oe.useEffect(()=>{const o=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),t};let ff=1;class BC{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:ff++,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],oe.isValidElement(p))u=!1,this.create({id:s,type:"default",message:p});else if(PC(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,A=typeof y=="object"&&!oe.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:w,...A})}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,A=typeof y=="object"&&!oe.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:w,...A})}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,A=typeof y=="object"&&!oe.isValidElement(y)?y:{message:y};this.create({id:s,type:"success",description:w,...A})}}).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,k=typeof b=="object"&&!oe.isValidElement(b)?b:{message:b};this.create({id:s,type:"error",description:y,...k})}}).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||ff++;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 BC,HC=(t,r)=>{const o=r?.id||ff++;return Vt.addToast({title:t,...r,id:o}),o},PC=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",$C=HC,qC=()=>Vt.toasts,VC=()=>Vt.getActiveToasts(),Ce=Object.assign($C,{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:qC,getToasts:VC});AC("[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 bi(t){return t.label!==void 0}const IC=3,YC="24px",GC="16px",Uv=4e3,XC=356,QC=14,KC=45,ZC=200;function Hn(...t){return t.filter(Boolean).join(" ")}function FC(t){const[r,o]=t.split("-"),s=[];return r&&s.push(r),o&&s.push(o),s}const WC=t=>{var r,o,s,c,u,m,h,v,p;const{invert:b,toast:y,unstyled:w,interacting:k,setHeights:A,visibleToasts:E,heights:N,index:T,toasts:R,expanded:O,removeToast:H,defaultRichColors:z,closeButton:K,style:I,cancelButtonStyle:P,actionButtonStyle:le,className:de="",descriptionClassName:fe="",duration:W,position:te,gap:se,expandByDefault:X,classNames:_,icons:B,closeButtonAriaLabel:Q="Close toast"}=t,[ue,C]=oe.useState(null),[V,re]=oe.useState(null),[Y,ee]=oe.useState(!1),[J,ne]=oe.useState(!1),[ie,ce]=oe.useState(!1),[xe,Re]=oe.useState(!1),[Ne,Ae]=oe.useState(!1),[et,rt]=oe.useState(0),[hn,pn]=oe.useState(0),st=oe.useRef(y.duration||W||Uv),er=oe.useRef(null),pt=oe.useRef(null),_r=T===0,In=T+1<=E,it=y.type,gn=y.dismissible!==!1,Or=y.className||"",ga=y.descriptionClassName||"",It=oe.useMemo(()=>N.findIndex(me=>me.toastId===y.id)||0,[N,y.id]),Rt=oe.useMemo(()=>{var me;return(me=y.closeButton)!=null?me:K},[y.closeButton,K]),Ut=oe.useMemo(()=>y.duration||W||Uv,[y.duration,W]),Je=oe.useRef(0),On=oe.useRef(0),Mr=oe.useRef(0),Mn=oe.useRef(null),[va,ya]=te.split("-"),nn=oe.useMemo(()=>N.reduce((me,He,Qe)=>Qe>=It?me:me+He.height,0),[N,It]),Yn=LC(),Gn=y.invert||b,ba=it==="loading";On.current=oe.useMemo(()=>It*se+nn,[It,nn]),oe.useEffect(()=>{st.current=Ut},[Ut]),oe.useEffect(()=>{ee(!0)},[]),oe.useEffect(()=>{const me=pt.current;if(me){const He=me.getBoundingClientRect().height;return pn(He),A(Qe=>[{toastId:y.id,height:He,position:y.position},...Qe]),()=>A(Qe=>Qe.filter(gt=>gt.toastId!==y.id))}},[A,y.id]),oe.useLayoutEffect(()=>{if(!Y)return;const me=pt.current,He=me.style.height;me.style.height="auto";const Qe=me.getBoundingClientRect().height;me.style.height=He,pn(Qe),A(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])},[Y,y.title,y.description,A,y.id,y.jsx,y.action,y.cancel]);const Lt=oe.useCallback(()=>{ne(!0),rt(On.current),A(me=>me.filter(He=>He.toastId!==y.id)),setTimeout(()=>{H(y)},ZC)},[y,H,A,On]);oe.useEffect(()=>{if(y.promise&&it==="loading"||y.duration===1/0||y.type==="loading")return;let me;return O||k||Yn?(()=>{if(Mr.current<Je.current){const gt=new Date().getTime()-Je.current;st.current=st.current-gt}Mr.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,k,y,it,Yn,Lt]),oe.useEffect(()=>{y.delete&&(Lt(),y.onDismiss==null||y.onDismiss.call(y,y))},[Lt,y.delete]);function tr(){var me;if(B?.loading){var He;return oe.createElement("div",{className:Hn(_?.loader,y==null||(He=y.classNames)==null?void 0:He.loader,"sonner-loader"),"data-visible":it==="loading"},B.loading)}return oe.createElement(_C,{className:Hn(_?.loader,y==null||(me=y.classNames)==null?void 0:me.loader),visible:it==="loading"})}const nr=y.icon||B?.[it]||kC(it);var be,Xe;return oe.createElement("li",{tabIndex:0,ref:pt,className:Hn(de,Or,_?.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":(be=y.richColors)!=null?be:z,"data-styled":!(y.jsx||y.unstyled||w),"data-mounted":Y,"data-promise":!!y.promise,"data-swiped":Ne,"data-removed":J,"data-visible":In,"data-y-position":va,"data-x-position":ya,"data-index":T,"data-front":_r,"data-swiping":ie,"data-dismissible":gn,"data-type":it,"data-invert":Gn,"data-swipe-out":xe,"data-swipe-direction":V,"data-expanded":!!(O||X&&Y),"data-testid":y.testId,style:{"--index":T,"--toasts-before":T,"--z-index":R.length-T,"--offset":`${J?et:On.current}px`,"--initial-height":X?"auto":`${hn}px`,...I,...y.style},onDragEnd:()=>{ce(!1),C(null),Mn.current=null},onPointerDown:me=>{me.button!==2&&(ba||!gn||(er.current=new Date,rt(On.current),me.target.setPointerCapture(me.pointerId),me.target.tagName!=="BUTTON"&&(ce(!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),ar=Number(((He=pt.current)==null?void 0:He.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),vt=new Date().getTime()-((Qe=er.current)==null?void 0:Qe.getTime()),ct=ue==="x"?gt:ar,ut=Math.abs(ct)/vt;if(Math.abs(ct)>=KC||ut>.11){rt(On.current),y.onDismiss==null||y.onDismiss.call(y,y),re(ue==="x"?gt>0?"right":"left":ar>0?"down":"up"),Lt(),Re(!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")}Ae(!1),ce(!1),C(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=t.swipeDirections)!=null?ut:FC(te);!ue&&(Math.abs(ct)>1||Math.abs(vt)>1)&&C(Math.abs(ct)>Math.abs(vt)?"x":"y");let St={x:0,y:0};const Dr=Xn=>1/(1.5+Math.abs(Xn)/20);if(ue==="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*Dr(vt);St.y=Math.abs(Xn)<Math.abs(vt)?Xn:vt}}else if(ue==="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*Dr(ct);St.x=Math.abs(Xn)<Math.abs(ct)?Xn:ct}(Math.abs(St.x)>0||Math.abs(St.y)>0)&&Ae(!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"?oe.createElement("button",{"aria-label":Q,"data-disabled":ba,"data-close-button":!0,onClick:ba||!gn?()=>{}:()=>{Lt(),y.onDismiss==null||y.onDismiss.call(y,y)},className:Hn(_?.closeButton,y==null||(s=y.classNames)==null?void 0:s.closeButton)},(Xe=B?.close)!=null?Xe:UC):null,(it||y.icon||y.promise)&&y.icon!==null&&(B?.[it]!==null||y.icon)?oe.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||tr():null,y.type!=="loading"?nr:null):null,oe.createElement("div",{"data-content":"",className:Hn(_?.content,y==null||(u=y.classNames)==null?void 0:u.content)},oe.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?oe.createElement("div",{"data-description":"",className:Hn(fe,ga,_?.description,y==null||(h=y.classNames)==null?void 0:h.description)},typeof y.description=="function"?y.description():y.description):null),oe.isValidElement(y.cancel)?y.cancel:y.cancel&&bi(y.cancel)?oe.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||P,onClick:me=>{bi(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,oe.isValidElement(y.action)?y.action:y.action&&bi(y.action)?oe.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||le,onClick:me=>{bi(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 Lv(){if(typeof window>"u"||typeof document>"u")return"ltr";const t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function JC(t,r){const o={};return[t,r].forEach((s,c)=>{const u=c===1,m=u?"--mobile-offset":"--offset",h=u?GC:YC;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 eR=oe.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:k,duration:A,style:E,visibleToasts:N=IC,toastOptions:T,dir:R=Lv(),gap:O=QC,icons:H,containerAriaLabel:z="Notifications"}=r,[K,I]=oe.useState([]),P=oe.useMemo(()=>s?K.filter(Y=>Y.toasterId===s):K.filter(Y=>!Y.toasterId),[K,s]),le=oe.useMemo(()=>Array.from(new Set([u].concat(P.filter(Y=>Y.position).map(Y=>Y.position)))),[P,u]),[de,fe]=oe.useState([]),[W,te]=oe.useState(!1),[se,X]=oe.useState(!1),[_,B]=oe.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Q=oe.useRef(null),ue=m.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=oe.useRef(null),V=oe.useRef(!1),re=oe.useCallback(Y=>{I(ee=>{var J;return(J=ee.find(ne=>ne.id===Y.id))!=null&&J.delete||Vt.dismiss(Y.id),ee.filter(({id:ne})=>ne!==Y.id)})},[]);return oe.useEffect(()=>Vt.subscribe(Y=>{if(Y.dismiss){requestAnimationFrame(()=>{I(ee=>ee.map(J=>J.id===Y.id?{...J,delete:!0}:J))});return}setTimeout(()=>{F0.flushSync(()=>{I(ee=>{const J=ee.findIndex(ne=>ne.id===Y.id);return J!==-1?[...ee.slice(0,J),{...ee[J],...Y},...ee.slice(J+1)]:[Y,...ee]})})})}),[K]),oe.useEffect(()=>{if(w!=="system"){B(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window>"u")return;const Y=window.matchMedia("(prefers-color-scheme: dark)");try{Y.addEventListener("change",({matches:ee})=>{B(ee?"dark":"light")})}catch{Y.addListener(({matches:J})=>{try{B(J?"dark":"light")}catch(ne){console.error(ne)}})}},[w]),oe.useEffect(()=>{K.length<=1&&te(!1)},[K]),oe.useEffect(()=>{const Y=ee=>{var J;if(m.every(ce=>ee[ce]||ee.code===ce)){var ie;te(!0),(ie=Q.current)==null||ie.focus()}ee.code==="Escape"&&(document.activeElement===Q.current||(J=Q.current)!=null&&J.contains(document.activeElement))&&te(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[m]),oe.useEffect(()=>{if(Q.current)return()=>{C.current&&(C.current.focus({preventScroll:!0}),C.current=null,V.current=!1)}},[Q.current]),oe.createElement("section",{ref:o,"aria-label":`${z} ${ue}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},le.map((Y,ee)=>{var J;const[ne,ie]=Y.split("-");return P.length?oe.createElement("ol",{key:Y,dir:R==="auto"?Lv():R,tabIndex:-1,ref:Q,className:p,"data-sonner-toaster":!0,"data-sonner-theme":_,"data-y-position":ne,"data-x-position":ie,style:{"--front-toast-height":`${((J=de[0])==null?void 0:J.height)||0}px`,"--width":`${XC}px`,"--gap":`${O}px`,...E,...JC(b,y)},onBlur:ce=>{V.current&&!ce.currentTarget.contains(ce.relatedTarget)&&(V.current=!1,C.current&&(C.current.focus({preventScroll:!0}),C.current=null))},onFocus:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||V.current||(V.current=!0,C.current=ce.relatedTarget)},onMouseEnter:()=>te(!0),onMouseMove:()=>te(!0),onMouseLeave:()=>{se||te(!1)},onDragEnd:()=>te(!1),onPointerDown:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||X(!0)},onPointerUp:()=>X(!1)},P.filter(ce=>!ce.position&&ee===0||ce.position===Y).map((ce,xe)=>{var Re,Ne;return oe.createElement(WC,{key:ce.id,icons:H,index:xe,toast:ce,defaultRichColors:k,duration:(Re=T?.duration)!=null?Re:A,className:T?.className,descriptionClassName:T?.descriptionClassName,invert:c,visibleToasts:N,closeButton:(Ne=T?.closeButton)!=null?Ne:v,interacting:se,position:Y,style:T?.style,unstyled:T?.unstyled,classNames:T?.classNames,cancelButtonStyle:T?.cancelButtonStyle,actionButtonStyle:T?.actionButtonStyle,closeButtonAriaLabel:T?.closeButtonAriaLabel,removeToast:re,toasts:P.filter(Ae=>Ae.position==ce.position),heights:de.filter(Ae=>Ae.position==ce.position),setHeights:fe,expandByDefault:h,gap:O,expanded:W,swipeDirections:r.swipeDirections})})):null}))}),Bv=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Hv=vy,Oy=(t,r)=>o=>{var s;if(r?.variants==null)return Hv(t,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=Bv(b)||Bv(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,...k}=b;return Object.entries(k).every(A=>{let[E,N]=A;return Array.isArray(N)?N.includes({...u,...h}[E]):{...u,...h}[E]===N})?[...p,y,w]:p},[]);return Hv(t,m,v,o?.class,o?.className)},tR=Oy("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:t,variant:r,...o}){return f.jsx("div",{className:ae(tR({variant:r}),t),...o})}const Sn=g.forwardRef(({className:t,...r},o)=>f.jsx("div",{ref:o,className:ae("rounded-sm border border-border/70 bg-card/80 text-card-foreground shadow-none",t),...r}));Sn.displayName="Card";const wn=g.forwardRef(({className:t,...r},o)=>f.jsx("div",{ref:o,className:ae("flex flex-col space-y-1 p-3",t),...r}));wn.displayName="CardHeader";const En=g.forwardRef(({className:t,...r},o)=>f.jsx("div",{ref:o,className:ae("text-[12px] font-semibold leading-none tracking-tight",t),...r}));En.displayName="CardTitle";const Nn=g.forwardRef(({className:t,...r},o)=>f.jsx("div",{ref:o,className:ae("text-[10px] text-muted-foreground",t),...r}));Nn.displayName="CardDescription";const Tn=g.forwardRef(({className:t,...r},o)=>f.jsx("div",{ref:o,className:ae("p-3 pt-0",t),...r}));Tn.displayName="CardContent";const nR=g.forwardRef(({className:t,...r},o)=>f.jsx("div",{ref:o,className:ae("flex items-center p-3 pt-0",t),...r}));nR.displayName="CardFooter";function Pv(t,r){if(typeof t=="function")return t(r);t!=null&&(t.current=r)}function Qf(...t){return r=>{let o=!1;const s=t.map(c=>{const u=Pv(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():Pv(t[c],null)}}}}function We(...t){return g.useCallback(Qf(...t),t)}var aR=Symbol.for("react.lazy"),Hi=zf[" use ".trim().toString()];function rR(t){return typeof t=="object"&&t!==null&&"then"in t}function My(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===aR&&"_payload"in t&&rR(t._payload)}function oR(t){const r=sR(t),o=g.forwardRef((s,c)=>{let{children:u,...m}=s;My(u)&&typeof Hi=="function"&&(u=Hi(u._payload));const h=g.Children.toArray(u),v=h.find(cR);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=`${t}.Slot`,o}var lR=oR("Slot");function sR(t){const r=g.forwardRef((o,s)=>{let{children:c,...u}=o;if(My(c)&&typeof Hi=="function"&&(c=Hi(c._payload)),g.isValidElement(c)){const m=dR(c),h=uR(u,c.props);return c.type!==g.Fragment&&(h.ref=s?Qf(s,m):m),g.cloneElement(c,h)}return g.Children.count(c)>1?g.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}var iR=Symbol("radix.slottable");function cR(t){return g.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===iR}function uR(t,r){const o={...r};for(const s in r){const c=t[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{...t,...o}}function dR(t){let r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?t.ref:(r=Object.getOwnPropertyDescriptor(t,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?t.props.ref:t.props.ref||t.ref)}const Kf=Oy("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:t,variant:r,size:o,asChild:s=!1,...c},u)=>{const m=s?lR:"button";return f.jsx(m,{className:ae(Kf({variant:r,size:o,className:t})),ref:u,...c})});Ct.displayName="Button";async function fR(t,r={}){try{await ve("/telemetry/events",{method:"POST",body:JSON.stringify({name:`feature.${t}`,appType:"browser",dimensions:r})})}catch{}}function ze(t,r,{checkForDefaultPrevented:o=!0}={}){return function(c){if(t?.(c),o===!1||!c.defaultPrevented)return r?.(c)}}function mR(t,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=t+"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 \`${t}\``)}return[s,c]}function Fa(t,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:k,...A}=y,E=w?.[t]?.[v]||h,N=g.useMemo(()=>A,Object.values(A));return f.jsx(E.Provider,{value:N,children:k})};p.displayName=u+"Provider";function b(y,w){const k=w?.[t]?.[v]||h,A=g.useContext(k);if(A)return A;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?.[t]||u;return g.useMemo(()=>({[`__scope${t}`]:{...h,[t]:v}}),[h,v])}};return c.scopeName=t,[s,hR(c,...r)]}function hR(...t){const r=t[0];if(t.length===1)return r;const o=()=>{const s=t.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:()=>{},pR=zf[" useId ".trim().toString()]||(()=>{}),gR=0;function Ya(t){const[r,o]=g.useState(pR());return Dt(()=>{o(s=>s??String(gR++))},[t]),r?`radix-${r}`:""}var vR=zf[" useInsertionEffect ".trim().toString()]||Dt;function _o({prop:t,defaultProp:r,onChange:o=()=>{},caller:s}){const[c,u,m]=yR({defaultProp:r,onChange:o}),h=t!==void 0,v=h?t:c;{const b=g.useRef(t!==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=bR(b)?b(t):b;y!==t&&m.current?.(y)}else u(b)},[h,t,u,m]);return[v,p]}function yR({defaultProp:t,onChange:r}){const[o,s]=g.useState(t),c=g.useRef(o),u=g.useRef(r);return vR(()=>{u.current=r},[r]),g.useEffect(()=>{c.current!==o&&(u.current?.(o),c.current=o)},[o,c]),[o,s,u]}function bR(t){return typeof t=="function"}function Fl(t){const r=xR(t),o=g.forwardRef((s,c)=>{const{children:u,...m}=s,h=g.Children.toArray(u),v=h.find(wR);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=`${t}.Slot`,o}function xR(t){const r=g.forwardRef((o,s)=>{const{children:c,...u}=o;if(g.isValidElement(c)){const m=NR(c),h=ER(u,c.props);return c.type!==g.Fragment&&(h.ref=s?Qf(s,m):m),g.cloneElement(c,h)}return g.Children.count(c)>1?g.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}var Dy=Symbol("radix.slottable");function SR(t){const r=({children:o})=>f.jsx(f.Fragment,{children:o});return r.displayName=`${t}.Slottable`,r.__radixId=Dy,r}function wR(t){return g.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Dy}function ER(t,r){const o={...r};for(const s in r){const c=t[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{...t,...o}}function NR(t){let r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?t.ref:(r=Object.getOwnPropertyDescriptor(t,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?t.props.ref:t.props.ref||t.ref)}var TR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ue=TR.reduce((t,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}`,{...t,[r]:s}},{});function CR(t,r){t&&ts.flushSync(()=>t.dispatchEvent(r))}function Xa(t){const r=g.useRef(t);return g.useEffect(()=>{r.current=t}),g.useMemo(()=>(...o)=>r.current?.(...o),[])}function RR(t,r=globalThis?.document){const o=Xa(t);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 AR="DismissableLayer",mf="dismissableLayer.update",kR="dismissableLayer.pointerDownOutside",jR="dismissableLayer.focusOutside",$v,zy=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zf=g.forwardRef((t,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:m,onDismiss:h,...v}=t,p=g.useContext(zy),[b,y]=g.useState(null),w=b?.ownerDocument??globalThis?.document,[,k]=g.useState({}),A=We(r,I=>y(I)),E=Array.from(p.layers),[N]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),T=E.indexOf(N),R=b?E.indexOf(b):-1,O=p.layersWithOutsidePointerEventsDisabled.size>0,H=R>=T,z=MR(I=>{const P=I.target,le=[...p.branches].some(de=>de.contains(P));!H||le||(c?.(I),m?.(I),I.defaultPrevented||h?.())},w),K=DR(I=>{const P=I.target;[...p.branches].some(de=>de.contains(P))||(u?.(I),m?.(I),I.defaultPrevented||h?.())},w);return RR(I=>{R===p.layers.size-1&&(s?.(I),!I.defaultPrevented&&h&&(I.preventDefault(),h()))},w),g.useEffect(()=>{if(b)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&($v=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(b)),p.layers.add(b),qv(),()=>{o&&p.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=$v)}},[b,w,o,p]),g.useEffect(()=>()=>{b&&(p.layers.delete(b),p.layersWithOutsidePointerEventsDisabled.delete(b),qv())},[b,p]),g.useEffect(()=>{const I=()=>k({});return document.addEventListener(mf,I),()=>document.removeEventListener(mf,I)},[]),f.jsx(Ue.div,{...v,ref:A,style:{pointerEvents:O?H?"auto":"none":void 0,...t.style},onFocusCapture:ze(t.onFocusCapture,K.onFocusCapture),onBlurCapture:ze(t.onBlurCapture,K.onBlurCapture),onPointerDownCapture:ze(t.onPointerDownCapture,z.onPointerDownCapture)})});Zf.displayName=AR;var _R="DismissableLayerBranch",OR=g.forwardRef((t,r)=>{const o=g.useContext(zy),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,{...t,ref:c})});OR.displayName=_R;function MR(t,r=globalThis?.document){const o=Xa(t),s=g.useRef(!1),c=g.useRef(()=>{});return g.useEffect(()=>{const u=h=>{if(h.target&&!s.current){let v=function(){Uy(kR,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 DR(t,r=globalThis?.document){const o=Xa(t),s=g.useRef(!1);return g.useEffect(()=>{const c=u=>{u.target&&!s.current&&Uy(jR,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 qv(){const t=new CustomEvent(mf);document.dispatchEvent(t)}function Uy(t,r,o,{discrete:s}){const c=o.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:o});r&&c.addEventListener(t,r,{once:!0}),s?CR(c,u):c.dispatchEvent(u)}var qd="focusScope.autoFocusOnMount",Vd="focusScope.autoFocusOnUnmount",Vv={bubbles:!1,cancelable:!0},zR="FocusScope",Ff=g.forwardRef((t,r)=>{const{loop:o=!1,trapped:s=!1,onMountAutoFocus:c,onUnmountAutoFocus:u,...m}=t,[h,v]=g.useState(null),p=Xa(c),b=Xa(u),y=g.useRef(null),w=We(r,E=>v(E)),k=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(s){let E=function(O){if(k.paused||!h)return;const H=O.target;h.contains(H)?y.current=H:Ia(y.current,{select:!0})},N=function(O){if(k.paused||!h)return;const H=O.relatedTarget;H!==null&&(h.contains(H)||Ia(y.current,{select:!0}))},T=function(O){if(document.activeElement===document.body)for(const z of O)z.removedNodes.length>0&&Ia(h)};document.addEventListener("focusin",E),document.addEventListener("focusout",N);const R=new MutationObserver(T);return h&&R.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",N),R.disconnect()}}},[s,h,k.paused]),g.useEffect(()=>{if(h){Yv.add(k);const E=document.activeElement;if(!h.contains(E)){const T=new CustomEvent(qd,Vv);h.addEventListener(qd,p),h.dispatchEvent(T),T.defaultPrevented||(UR($R(Ly(h)),{select:!0}),document.activeElement===E&&Ia(h))}return()=>{h.removeEventListener(qd,p),setTimeout(()=>{const T=new CustomEvent(Vd,Vv);h.addEventListener(Vd,b),h.dispatchEvent(T),T.defaultPrevented||Ia(E??document.body,{select:!0}),h.removeEventListener(Vd,b),Yv.remove(k)},0)}}},[h,p,b,k]);const A=g.useCallback(E=>{if(!o&&!s||k.paused)return;const N=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,T=document.activeElement;if(N&&T){const R=E.currentTarget,[O,H]=LR(R);O&&H?!E.shiftKey&&T===H?(E.preventDefault(),o&&Ia(O,{select:!0})):E.shiftKey&&T===O&&(E.preventDefault(),o&&Ia(H,{select:!0})):T===R&&E.preventDefault()}},[o,s,k.paused]);return f.jsx(Ue.div,{tabIndex:-1,...m,ref:w,onKeyDown:A})});Ff.displayName=zR;function UR(t,{select:r=!1}={}){const o=document.activeElement;for(const s of t)if(Ia(s,{select:r}),document.activeElement!==o)return}function LR(t){const r=Ly(t),o=Iv(r,t),s=Iv(r.reverse(),t);return[o,s]}function Ly(t){const r=[],o=document.createTreeWalker(t,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 Iv(t,r){for(const o of t)if(!BR(o,{upTo:r}))return o}function BR(t,{upTo:r}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(r!==void 0&&t===r)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function HR(t){return t instanceof HTMLInputElement&&"select"in t}function Ia(t,{select:r=!1}={}){if(t&&t.focus){const o=document.activeElement;t.focus({preventScroll:!0}),t!==o&&HR(t)&&r&&t.select()}}var Yv=PR();function PR(){let t=[];return{add(r){const o=t[0];r!==o&&o?.pause(),t=Gv(t,r),t.unshift(r)},remove(r){t=Gv(t,r),t[0]?.resume()}}}function Gv(t,r){const o=[...t],s=o.indexOf(r);return s!==-1&&o.splice(s,1),o}function $R(t){return t.filter(r=>r.tagName!=="A")}var qR="Portal",Wf=g.forwardRef((t,r)=>{const{container:o,...s}=t,[c,u]=g.useState(!1);Dt(()=>u(!0),[]);const m=o||c&&globalThis?.document?.body;return m?F0.createPortal(f.jsx(Ue.div,{...s,ref:r}),m):null});Wf.displayName=qR;function VR(t,r){return g.useReducer((o,s)=>r[o][s]??o,t)}var Lo=t=>{const{present:r,children:o}=t,s=IR(r),c=typeof o=="function"?o({present:s.isPresent}):g.Children.only(o),u=We(s.ref,YR(c));return typeof o=="function"||s.isPresent?g.cloneElement(c,{ref:u}):null};Lo.displayName="Presence";function IR(t){const[r,o]=g.useState(),s=g.useRef(null),c=g.useRef(t),u=g.useRef("none"),m=t?"mounted":"unmounted",[h,v]=VR(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const p=xi(s.current);u.current=h==="mounted"?p:"none"},[h]),Dt(()=>{const p=s.current,b=c.current;if(b!==t){const w=u.current,k=xi(p);t?v("MOUNT"):k==="none"||p?.display==="none"?v("UNMOUNT"):v(b&&w!==k?"ANIMATION_OUT":"UNMOUNT"),c.current=t}},[t,v]),Dt(()=>{if(r){let p;const b=r.ownerDocument.defaultView??window,y=k=>{const E=xi(s.current).includes(CSS.escape(k.animationName));if(k.target===r&&E&&(v("ANIMATION_END"),!c.current)){const N=r.style.animationFillMode;r.style.animationFillMode="forwards",p=b.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=N)})}},w=k=>{k.target===r&&(u.current=xi(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 xi(t){return t?.animationName||"none"}function YR(t){let r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?t.ref:(r=Object.getOwnPropertyDescriptor(t,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?t.props.ref:t.props.ref||t.ref)}var Id=0;function By(){g.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Xv()),document.body.insertAdjacentElement("beforeend",t[1]??Xv()),Id++,()=>{Id===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Id--}},[])}function Xv(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}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 Hy(t,r){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&r.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,s=Object.getOwnPropertySymbols(t);c<s.length;c++)r.indexOf(s[c])<0&&Object.prototype.propertyIsEnumerable.call(t,s[c])&&(o[s[c]]=t[s[c]]);return o}function GR(t,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 t.concat(u||Array.prototype.slice.call(r))}var ki="right-scroll-bar-position",ji="width-before-scroll-bar",XR="with-scroll-bars-hidden",QR="--removed-body-scroll-bar-size";function Yd(t,r){return typeof t=="function"?t(r):t&&(t.current=r),t}function KR(t,r){var o=g.useState(function(){return{value:t,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 ZR=typeof window<"u"?g.useLayoutEffect:g.useEffect,Qv=new WeakMap;function FR(t,r){var o=KR(null,function(s){return t.forEach(function(c){return Yd(c,s)})});return ZR(function(){var s=Qv.get(o);if(s){var c=new Set(s),u=new Set(t),m=o.current;c.forEach(function(h){u.has(h)||Yd(h,null)}),u.forEach(function(h){c.has(h)||Yd(h,m)})}Qv.set(o,t)},[t]),o}function WR(t){return t}function JR(t,r){r===void 0&&(r=WR);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]:t},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 eA(t){t===void 0&&(t={});var r=JR(null);return r.options=Pn({async:!0,ssr:!1},t),r}var Py=function(t){var r=t.sideCar,o=Hy(t,["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))};Py.isSideCarExport=!0;function tA(t,r){return t.useMedium(r),Py}var $y=eA(),Gd=function(){},cc=g.forwardRef(function(t,r){var o=g.useRef(null),s=g.useState({onScrollCapture:Gd,onWheelCapture:Gd,onTouchMoveCapture:Gd}),c=s[0],u=s[1],m=t.forwardProps,h=t.children,v=t.className,p=t.removeScrollBar,b=t.enabled,y=t.shards,w=t.sideCar,k=t.noRelative,A=t.noIsolation,E=t.inert,N=t.allowPinchZoom,T=t.as,R=T===void 0?"div":T,O=t.gapMode,H=Hy(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=w,K=FR([o,r]),I=Pn(Pn({},H),c);return g.createElement(g.Fragment,null,b&&g.createElement(z,{sideCar:$y,removeScrollBar:p,shards:y,noRelative:k,noIsolation:A,inert:E,setCallbacks:u,allowPinchZoom:!!N,lockRef:o,gapMode:O}),m?g.cloneElement(g.Children.only(h),Pn(Pn({},I),{ref:K})):g.createElement(R,Pn({},I,{className:v,ref:K}),h))});cc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};cc.classNames={fullWidth:ji,zeroRight:ki};var nA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function aA(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var r=nA();return r&&t.setAttribute("nonce",r),t}function rA(t,r){t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}function oA(t){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(t)}var lA=function(){var t=0,r=null;return{add:function(o){t==0&&(r=aA())&&(rA(r,o),oA(r)),t++},remove:function(){t--,!t&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},sA=function(){var t=lA();return function(r,o){g.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&o])}},qy=function(){var t=sA(),r=function(o){var s=o.styles,c=o.dynamic;return t(s,c),null};return r},iA={left:0,top:0,right:0,gap:0},Xd=function(t){return parseInt(t||"",10)||0},cA=function(t){var r=window.getComputedStyle(document.body),o=r[t==="padding"?"paddingLeft":"marginLeft"],s=r[t==="padding"?"paddingTop":"marginTop"],c=r[t==="padding"?"paddingRight":"marginRight"];return[Xd(o),Xd(s),Xd(c)]},uA=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return iA;var r=cA(t),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])}},dA=qy(),Ao="data-scroll-locked",fA=function(t,r,o,s){var c=t.left,u=t.top,m=t.right,h=t.gap;return o===void 0&&(o="margin"),`
|
|
297
|
+
.`.concat(XR,` {
|
|
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(ki,` {
|
|
315
|
+
right: `).concat(h,"px ").concat(s,`;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.`).concat(ji,` {
|
|
319
|
+
margin-right: `).concat(h,"px ").concat(s,`;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.`).concat(ki," .").concat(ki,` {
|
|
323
|
+
right: 0 `).concat(s,`;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.`).concat(ji," .").concat(ji,` {
|
|
327
|
+
margin-right: 0 `).concat(s,`;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
body[`).concat(Ao,`] {
|
|
331
|
+
`).concat(QR,": ").concat(h,`px;
|
|
332
|
+
}
|
|
333
|
+
`)},Kv=function(){var t=parseInt(document.body.getAttribute(Ao)||"0",10);return isFinite(t)?t:0},mA=function(){g.useEffect(function(){return document.body.setAttribute(Ao,(Kv()+1).toString()),function(){var t=Kv()-1;t<=0?document.body.removeAttribute(Ao):document.body.setAttribute(Ao,t.toString())}},[])},hA=function(t){var r=t.noRelative,o=t.noImportant,s=t.gapMode,c=s===void 0?"margin":s;mA();var u=g.useMemo(function(){return uA(c)},[c]);return g.createElement(dA,{styles:fA(u,!r,c,o?"":"!important")})},hf=!1;if(typeof window<"u")try{var Si=Object.defineProperty({},"passive",{get:function(){return hf=!0,!0}});window.addEventListener("test",Si,Si),window.removeEventListener("test",Si,Si)}catch{hf=!1}var xo=hf?{passive:!1}:!1,pA=function(t){return t.tagName==="TEXTAREA"},Vy=function(t,r){if(!(t instanceof Element))return!1;var o=window.getComputedStyle(t);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!pA(t)&&o[r]==="visible")},gA=function(t){return Vy(t,"overflowY")},vA=function(t){return Vy(t,"overflowX")},Zv=function(t,r){var o=r.ownerDocument,s=r;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var c=Iy(t,s);if(c){var u=Yy(t,s),m=u[1],h=u[2];if(m>h)return!0}s=s.parentNode}while(s&&s!==o.body);return!1},yA=function(t){var r=t.scrollTop,o=t.scrollHeight,s=t.clientHeight;return[r,o,s]},bA=function(t){var r=t.scrollLeft,o=t.scrollWidth,s=t.clientWidth;return[r,o,s]},Iy=function(t,r){return t==="v"?gA(r):vA(r)},Yy=function(t,r){return t==="v"?yA(r):bA(r)},xA=function(t,r){return t==="h"&&r==="rtl"?-1:1},SA=function(t,r,o,s,c){var u=xA(t,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 k=Yy(t,h),A=k[0],E=k[1],N=k[2],T=E-N-u*A;(A||T)&&Iy(t,h)&&(y+=T,w+=A);var R=h.parentNode;h=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}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},wi=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Fv=function(t){return[t.deltaX,t.deltaY]},Wv=function(t){return t&&"current"in t?t.current:t},wA=function(t,r){return t[0]===r[0]&&t[1]===r[1]},EA=function(t){return`
|
|
334
|
+
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
335
|
+
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
336
|
+
`)},NA=0,So=[];function TA(t){var r=g.useRef([]),o=g.useRef([0,0]),s=g.useRef(),c=g.useState(NA++)[0],u=g.useState(qy)[0],m=g.useRef(t);g.useEffect(function(){m.current=t},[t]),g.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(c));var E=GR([t.lockRef.current],(t.shards||[]).map(Wv),!0).filter(Boolean);return E.forEach(function(N){return N.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),E.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(c))})}}},[t.inert,t.lockRef.current,t.shards]);var h=g.useCallback(function(E,N){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!m.current.allowPinchZoom;var T=wi(E),R=o.current,O="deltaX"in E?E.deltaX:R[0]-T[0],H="deltaY"in E?E.deltaY:R[1]-T[1],z,K=E.target,I=Math.abs(O)>Math.abs(H)?"h":"v";if("touches"in E&&I==="h"&&K.type==="range")return!1;var P=window.getSelection(),le=P&&P.anchorNode,de=le?le===K||le.contains(K):!1;if(de)return!1;var fe=Zv(I,K);if(!fe)return!0;if(fe?z=I:(z=I==="v"?"h":"v",fe=Zv(I,K)),!fe)return!1;if(!s.current&&"changedTouches"in E&&(O||H)&&(s.current=z),!z)return!0;var W=s.current||z;return SA(W,N,E,W==="h"?O:H)},[]),v=g.useCallback(function(E){var N=E;if(!(!So.length||So[So.length-1]!==u)){var T="deltaY"in N?Fv(N):wi(N),R=r.current.filter(function(z){return z.name===N.type&&(z.target===N.target||N.target===z.shadowParent)&&wA(z.delta,T)})[0];if(R&&R.should){N.cancelable&&N.preventDefault();return}if(!R){var O=(m.current.shards||[]).map(Wv).filter(Boolean).filter(function(z){return z.contains(N.target)}),H=O.length>0?h(N,O[0]):!m.current.noIsolation;H&&N.cancelable&&N.preventDefault()}}},[]),p=g.useCallback(function(E,N,T,R){var O={name:E,delta:N,target:T,should:R,shadowParent:CA(T)};r.current.push(O),setTimeout(function(){r.current=r.current.filter(function(H){return H!==O})},1)},[]),b=g.useCallback(function(E){o.current=wi(E),s.current=void 0},[]),y=g.useCallback(function(E){p(E.type,Fv(E),E.target,h(E,t.lockRef.current))},[]),w=g.useCallback(function(E){p(E.type,wi(E),E.target,h(E,t.lockRef.current))},[]);g.useEffect(function(){return So.push(u),t.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:w}),document.addEventListener("wheel",v,xo),document.addEventListener("touchmove",v,xo),document.addEventListener("touchstart",b,xo),function(){So=So.filter(function(E){return E!==u}),document.removeEventListener("wheel",v,xo),document.removeEventListener("touchmove",v,xo),document.removeEventListener("touchstart",b,xo)}},[]);var k=t.removeScrollBar,A=t.inert;return g.createElement(g.Fragment,null,A?g.createElement(u,{styles:EA(c)}):null,k?g.createElement(hA,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function CA(t){for(var r=null;t!==null;)t instanceof ShadowRoot&&(r=t.host,t=t.host),t=t.parentNode;return r}const RA=tA($y,TA);var Jf=g.forwardRef(function(t,r){return g.createElement(cc,Pn({},t,{ref:r,sideCar:RA}))});Jf.classNames=cc.classNames;var AA=function(t){if(typeof document>"u")return null;var r=Array.isArray(t)?t[0]:t;return r.ownerDocument.body},wo=new WeakMap,Ei=new WeakMap,Ni={},Qd=0,Gy=function(t){return t&&(t.host||Gy(t.parentNode))},kA=function(t,r){return r.map(function(o){if(t.contains(o))return o;var s=Gy(o);return s&&t.contains(s)?s:(console.error("aria-hidden",o,"in not contained inside",t,". Doing nothing"),null)}).filter(function(o){return!!o})},jA=function(t,r,o,s){var c=kA(r,Array.isArray(t)?t:[t]);Ni[o]||(Ni[o]=new WeakMap);var u=Ni[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 k=w.getAttribute(s),A=k!==null&&k!=="false",E=(wo.get(w)||0)+1,N=(u.get(w)||0)+1;wo.set(w,E),u.set(w,N),m.push(w),E===1&&A&&Ei.set(w,!0),N===1&&w.setAttribute(o,"true"),A||w.setAttribute(s,"true")}catch(T){console.error("aria-hidden: cannot operate on ",w,T)}})};return b(r),h.clear(),Qd++,function(){m.forEach(function(y){var w=wo.get(y)-1,k=u.get(y)-1;wo.set(y,w),u.set(y,k),w||(Ei.has(y)||y.removeAttribute(s),Ei.delete(y)),k||y.removeAttribute(o)}),Qd--,Qd||(wo=new WeakMap,wo=new WeakMap,Ei=new WeakMap,Ni={})}},Xy=function(t,r,o){o===void 0&&(o="data-aria-hidden");var s=Array.from(Array.isArray(t)?t:[t]),c=AA(t);return c?(s.push.apply(s,Array.from(c.querySelectorAll("[aria-live], script"))),jA(s,c,o,"aria-hidden")):function(){return null}},uc="Dialog",[Qy,Ky]=Fa(uc),[_A,_n]=Qy(uc),Zy=t=>{const{__scopeDialog:r,children:o,open:s,defaultOpen:c,onOpenChange:u,modal:m=!0}=t,h=g.useRef(null),v=g.useRef(null),[p,b]=_o({prop:s,defaultProp:c??!1,onChange:u,caller:uc});return f.jsx(_A,{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})};Zy.displayName=uc;var Fy="DialogTrigger",Wy=g.forwardRef((t,r)=>{const{__scopeDialog:o,...s}=t,c=_n(Fy,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":nm(c.open),...s,ref:u,onClick:ze(t.onClick,c.onOpenToggle)})});Wy.displayName=Fy;var em="DialogPortal",[OA,Jy]=Qy(em,{forceMount:void 0}),eb=t=>{const{__scopeDialog:r,forceMount:o,children:s,container:c}=t,u=_n(em,r);return f.jsx(OA,{scope:r,forceMount:o,children:g.Children.map(s,m=>f.jsx(Lo,{present:o||u.open,children:f.jsx(Wf,{asChild:!0,container:c,children:m})}))})};eb.displayName=em;var Pi="DialogOverlay",tb=g.forwardRef((t,r)=>{const o=Jy(Pi,t.__scopeDialog),{forceMount:s=o.forceMount,...c}=t,u=_n(Pi,t.__scopeDialog);return u.modal?f.jsx(Lo,{present:s||u.open,children:f.jsx(DA,{...c,ref:r})}):null});tb.displayName=Pi;var MA=Fl("DialogOverlay.RemoveScroll"),DA=g.forwardRef((t,r)=>{const{__scopeDialog:o,...s}=t,c=_n(Pi,o);return f.jsx(Jf,{as:MA,allowPinchZoom:!0,shards:[c.contentRef],children:f.jsx(Ue.div,{"data-state":nm(c.open),...s,ref:r,style:{pointerEvents:"auto",...s.style}})})}),Tr="DialogContent",nb=g.forwardRef((t,r)=>{const o=Jy(Tr,t.__scopeDialog),{forceMount:s=o.forceMount,...c}=t,u=_n(Tr,t.__scopeDialog);return f.jsx(Lo,{present:s||u.open,children:u.modal?f.jsx(zA,{...c,ref:r}):f.jsx(UA,{...c,ref:r})})});nb.displayName=Tr;var zA=g.forwardRef((t,r)=>{const o=_n(Tr,t.__scopeDialog),s=g.useRef(null),c=We(r,o.contentRef,s);return g.useEffect(()=>{const u=s.current;if(u)return Xy(u)},[]),f.jsx(ab,{...t,ref:c,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ze(t.onCloseAutoFocus,u=>{u.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:ze(t.onPointerDownOutside,u=>{const m=u.detail.originalEvent,h=m.button===0&&m.ctrlKey===!0;(m.button===2||h)&&u.preventDefault()}),onFocusOutside:ze(t.onFocusOutside,u=>u.preventDefault())})}),UA=g.forwardRef((t,r)=>{const o=_n(Tr,t.__scopeDialog),s=g.useRef(!1),c=g.useRef(!1);return f.jsx(ab,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{t.onCloseAutoFocus?.(u),u.defaultPrevented||(s.current||o.triggerRef.current?.focus(),u.preventDefault()),s.current=!1,c.current=!1},onInteractOutside:u=>{t.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()}})}),ab=g.forwardRef((t,r)=>{const{__scopeDialog:o,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:u,...m}=t,h=_n(Tr,o),v=g.useRef(null),p=We(r,v);return By(),f.jsxs(f.Fragment,{children:[f.jsx(Ff,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:c,onUnmountAutoFocus:u,children:f.jsx(Zf,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":nm(h.open),...m,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(BA,{titleId:h.titleId}),f.jsx(PA,{contentRef:v,descriptionId:h.descriptionId})]})]})}),tm="DialogTitle",rb=g.forwardRef((t,r)=>{const{__scopeDialog:o,...s}=t,c=_n(tm,o);return f.jsx(Ue.h2,{id:c.titleId,...s,ref:r})});rb.displayName=tm;var ob="DialogDescription",lb=g.forwardRef((t,r)=>{const{__scopeDialog:o,...s}=t,c=_n(ob,o);return f.jsx(Ue.p,{id:c.descriptionId,...s,ref:r})});lb.displayName=ob;var sb="DialogClose",ib=g.forwardRef((t,r)=>{const{__scopeDialog:o,...s}=t,c=_n(sb,o);return f.jsx(Ue.button,{type:"button",...s,ref:r,onClick:ze(t.onClick,()=>c.onOpenChange(!1))})});ib.displayName=sb;function nm(t){return t?"open":"closed"}var cb="DialogTitleWarning",[LA,ub]=mR(cb,{contentName:Tr,titleName:tm,docsSlug:"dialog"}),BA=({titleId:t})=>{const r=ub(cb),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(()=>{t&&(document.getElementById(t)||console.error(o))},[o,t]),null},HA="DialogDescriptionWarning",PA=({contentRef:t,descriptionId:r})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ub(HA).contentName}}.`;return g.useEffect(()=>{const c=t.current?.getAttribute("aria-describedby");r&&c&&(document.getElementById(r)||console.warn(s))},[s,t,r]),null},db=Zy,fb=Wy,mb=eb,am=tb,rm=nb,om=rb,lm=lb,dc=ib;const $A=db,qA=fb,VA=mb,HO=dc,hb=g.forwardRef(({className:t,...r},o)=>f.jsx(am,{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",t),...r}));hb.displayName=am.displayName;const pb=g.forwardRef(({className:t,children:r,...o},s)=>f.jsxs(VA,{children:[f.jsx(hb,{}),f.jsxs(rm,{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%]",t),...o,children:[r,f.jsxs(dc,{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(py,{className:"h-3.5 w-3.5"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));pb.displayName=rm.displayName;const gb=({className:t,...r})=>f.jsx("div",{className:ae("flex flex-col space-y-1.5 text-center sm:text-left",t),...r});gb.displayName="DialogHeader";const IA=({className:t,...r})=>f.jsx("div",{className:ae("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r});IA.displayName="DialogFooter";const vb=g.forwardRef(({className:t,...r},o)=>f.jsx(om,{ref:o,className:ae("text-sm font-semibold leading-none tracking-tight",t),...r}));vb.displayName=om.displayName;const yb=g.forwardRef(({className:t,...r},o)=>f.jsx(lm,{ref:o,className:ae("text-[11px] text-muted-foreground",t),...r}));yb.displayName=lm.displayName;function YA({children:t,open:r,onOpenChange:o,showTrigger:s=!0}){const[c,u]=g.useState(!1),m=r??c,h=g.useCallback(v=>{v&&fR("settings.opened",{surface:"settings"}),r===void 0&&u(v),o?.(v)},[r,o]);return f.jsxs($A,{open:m,onOpenChange:h,children:[s&&f.jsx(qA,{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(RT,{className:"h-4 w-4"})})}),f.jsxs(pb,{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(gb,{className:"shrink-0 border-b border-border/60 px-3 py-1.5 sm:px-3.5",children:[f.jsxs(vb,{className:"flex items-center gap-1.5 text-[11px]",children:[f.jsx(uT,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),f.jsx(yb,{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:t})]})]})}function Jv(t,[r,o]){return Math.min(o,Math.max(r,t))}function bb(t){const r=t+"CollectionProvider",[o,s]=Fa(r),[c,u]=o(r,{collectionRef:{current:null},itemMap:new Map}),m=E=>{const{scope:N,children:T}=E,R=oe.useRef(null),O=oe.useRef(new Map).current;return f.jsx(c,{scope:N,itemMap:O,collectionRef:R,children:T})};m.displayName=r;const h=t+"CollectionSlot",v=Fl(h),p=oe.forwardRef((E,N)=>{const{scope:T,children:R}=E,O=u(h,T),H=We(N,O.collectionRef);return f.jsx(v,{ref:H,children:R})});p.displayName=h;const b=t+"CollectionItemSlot",y="data-radix-collection-item",w=Fl(b),k=oe.forwardRef((E,N)=>{const{scope:T,children:R,...O}=E,H=oe.useRef(null),z=We(N,H),K=u(b,T);return oe.useEffect(()=>(K.itemMap.set(H,{ref:H,...O}),()=>{K.itemMap.delete(H)})),f.jsx(w,{[y]:"",ref:z,children:R})});k.displayName=b;function A(E){const N=u(t+"CollectionConsumer",E);return oe.useCallback(()=>{const R=N.collectionRef.current;if(!R)return[];const O=Array.from(R.querySelectorAll(`[${y}]`));return Array.from(N.itemMap.values()).sort((K,I)=>O.indexOf(K.ref.current)-O.indexOf(I.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:m,Slot:p,ItemSlot:k},A,s]}var GA=g.createContext(void 0);function sm(t){const r=g.useContext(GA);return t||r||"ltr"}const XA=["top","right","bottom","left"],Qa=Math.min,Jt=Math.max,$i=Math.round,Ti=Math.floor,qn=t=>({x:t,y:t}),QA={left:"right",right:"left",bottom:"top",top:"bottom"};function pf(t,r,o){return Jt(t,Qa(r,o))}function fa(t,r){return typeof t=="function"?t(r):t}function ma(t){return t.split("-")[0]}function Bo(t){return t.split("-")[1]}function im(t){return t==="x"?"y":"x"}function cm(t){return t==="y"?"height":"width"}function $n(t){const r=t[0];return r==="t"||r==="b"?"y":"x"}function um(t){return im($n(t))}function KA(t,r,o){o===void 0&&(o=!1);const s=Bo(t),c=um(t),u=cm(c);let m=c==="x"?s===(o?"end":"start")?"right":"left":s==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(m=qi(m)),[m,qi(m)]}function ZA(t){const r=qi(t);return[gf(t),r,gf(r)]}function gf(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const e0=["left","right"],t0=["right","left"],FA=["top","bottom"],WA=["bottom","top"];function JA(t,r,o){switch(t){case"top":case"bottom":return o?r?t0:e0:r?e0:t0;case"left":case"right":return r?FA:WA;default:return[]}}function e5(t,r,o,s){const c=Bo(t);let u=JA(ma(t),o==="start",s);return c&&(u=u.map(m=>m+"-"+c),r&&(u=u.concat(u.map(gf)))),u}function qi(t){const r=ma(t);return QA[r]+t.slice(r.length)}function t5(t){return{top:0,right:0,bottom:0,left:0,...t}}function xb(t){return typeof t!="number"?t5(t):{top:t,right:t,bottom:t,left:t}}function Vi(t){const{x:r,y:o,width:s,height:c}=t;return{width:s,height:c,top:o,left:r,right:r+s,bottom:o+c,x:r,y:o}}function n0(t,r,o){let{reference:s,floating:c}=t;const u=$n(r),m=um(r),h=cm(m),v=ma(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 k;switch(v){case"top":k={x:b,y:s.y-c.height};break;case"bottom":k={x:b,y:s.y+s.height};break;case"right":k={x:s.x+s.width,y};break;case"left":k={x:s.x-c.width,y};break;default:k={x:s.x,y:s.y}}switch(Bo(r)){case"start":k[m]-=w*(o&&p?-1:1);break;case"end":k[m]+=w*(o&&p?-1:1);break}return k}async function n5(t,r){var o;r===void 0&&(r={});const{x:s,y:c,platform:u,rects:m,elements:h,strategy:v}=t,{boundary:p="clippingAncestors",rootBoundary:b="viewport",elementContext:y="floating",altBoundary:w=!1,padding:k=0}=fa(r,t),A=xb(k),N=h[w?y==="floating"?"reference":"floating":y],T=Vi(await u.getClippingRect({element:(o=await(u.isElement==null?void 0:u.isElement(N)))==null||o?N:N.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(h.floating)),boundary:p,rootBoundary:b,strategy:v})),R=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)),H=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},z=Vi(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:R,offsetParent:O,strategy:v}):R);return{top:(T.top-z.top+A.top)/H.y,bottom:(z.bottom-T.bottom+A.bottom)/H.y,left:(T.left-z.left+A.left)/H.x,right:(z.right-T.right+A.right)/H.x}}const a5=50,r5=async(t,r,o)=>{const{placement:s="bottom",strategy:c="absolute",middleware:u=[],platform:m}=o,h=m.detectOverflow?m:{...m,detectOverflow:n5},v=await(m.isRTL==null?void 0:m.isRTL(r));let p=await m.getElementRects({reference:t,floating:r,strategy:c}),{x:b,y}=n0(p,s,v),w=s,k=0;const A={};for(let E=0;E<u.length;E++){const N=u[E];if(!N)continue;const{name:T,fn:R}=N,{x:O,y:H,data:z,reset:K}=await R({x:b,y,initialPlacement:s,placement:w,strategy:c,middlewareData:A,rects:p,platform:h,elements:{reference:t,floating:r}});b=O??b,y=H??y,A[T]={...A[T],...z},K&&k<a5&&(k++,typeof K=="object"&&(K.placement&&(w=K.placement),K.rects&&(p=K.rects===!0?await m.getElementRects({reference:t,floating:r,strategy:c}):K.rects),{x:b,y}=n0(p,w,v)),E=-1)}return{x:b,y,placement:w,strategy:c,middlewareData:A}},o5=t=>({name:"arrow",options:t,async fn(r){const{x:o,y:s,placement:c,rects:u,platform:m,elements:h,middlewareData:v}=r,{element:p,padding:b=0}=fa(t,r)||{};if(p==null)return{};const y=xb(b),w={x:o,y:s},k=um(c),A=cm(k),E=await m.getDimensions(p),N=k==="y",T=N?"top":"left",R=N?"bottom":"right",O=N?"clientHeight":"clientWidth",H=u.reference[A]+u.reference[k]-w[k]-u.floating[A],z=w[k]-u.reference[k],K=await(m.getOffsetParent==null?void 0:m.getOffsetParent(p));let I=K?K[O]:0;(!I||!await(m.isElement==null?void 0:m.isElement(K)))&&(I=h.floating[O]||u.floating[A]);const P=H/2-z/2,le=I/2-E[A]/2-1,de=Qa(y[T],le),fe=Qa(y[R],le),W=de,te=I-E[A]-fe,se=I/2-E[A]/2+P,X=pf(W,se,te),_=!v.arrow&&Bo(c)!=null&&se!==X&&u.reference[A]/2-(se<W?de:fe)-E[A]/2<0,B=_?se<W?se-W:se-te:0;return{[k]:w[k]+B,data:{[k]:X,centerOffset:se-X-B,..._&&{alignmentOffset:B}},reset:_}}}),l5=function(t){return t===void 0&&(t={}),{name:"flip",options:t,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:k="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:E=!0,...N}=fa(t,r);if((o=u.arrow)!=null&&o.alignmentOffset)return{};const T=ma(c),R=$n(h),O=ma(h)===h,H=await(v.isRTL==null?void 0:v.isRTL(p.floating)),z=w||(O||!E?[qi(h)]:ZA(h)),K=A!=="none";!w&&K&&z.push(...e5(h,E,A,H));const I=[h,...z],P=await v.detectOverflow(r,N),le=[];let de=((s=u.flip)==null?void 0:s.overflows)||[];if(b&&le.push(P[T]),y){const se=KA(c,m,H);le.push(P[se[0]],P[se[1]])}if(de=[...de,{placement:c,overflows:le}],!le.every(se=>se<=0)){var fe,W;const se=(((fe=u.flip)==null?void 0:fe.index)||0)+1,X=I[se];if(X&&(!(y==="alignment"?R!==$n(X):!1)||de.every(Q=>$n(Q.placement)===R?Q.overflows[0]>0:!0)))return{data:{index:se,overflows:de},reset:{placement:X}};let _=(W=de.filter(B=>B.overflows[0]<=0).sort((B,Q)=>B.overflows[1]-Q.overflows[1])[0])==null?void 0:W.placement;if(!_)switch(k){case"bestFit":{var te;const B=(te=de.filter(Q=>{if(K){const ue=$n(Q.placement);return ue===R||ue==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(ue=>ue>0).reduce((ue,C)=>ue+C,0)]).sort((Q,ue)=>Q[1]-ue[1])[0])==null?void 0:te[0];B&&(_=B);break}case"initialPlacement":_=h;break}if(c!==_)return{reset:{placement:_}}}return{}}}};function a0(t,r){return{top:t.top-r.height,right:t.right-r.width,bottom:t.bottom-r.height,left:t.left-r.width}}function r0(t){return XA.some(r=>t[r]>=0)}const s5=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(r){const{rects:o,platform:s}=r,{strategy:c="referenceHidden",...u}=fa(t,r);switch(c){case"referenceHidden":{const m=await s.detectOverflow(r,{...u,elementContext:"reference"}),h=a0(m,o.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:r0(h)}}}case"escaped":{const m=await s.detectOverflow(r,{...u,altBoundary:!0}),h=a0(m,o.floating);return{data:{escapedOffsets:h,escaped:r0(h)}}}default:return{}}}}},Sb=new Set(["left","top"]);async function i5(t,r){const{placement:o,platform:s,elements:c}=t,u=await(s.isRTL==null?void 0:s.isRTL(c.floating)),m=ma(o),h=Bo(o),v=$n(o)==="y",p=Sb.has(m)?-1:1,b=u&&v?-1:1,y=fa(r,t);let{mainAxis:w,crossAxis:k,alignmentAxis:A}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return h&&typeof A=="number"&&(k=h==="end"?A*-1:A),v?{x:k*b,y:w*p}:{x:w*p,y:k*b}}const c5=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(r){var o,s;const{x:c,y:u,placement:m,middlewareData:h}=r,v=await i5(r,t);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}}}}},u5=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(r){const{x:o,y:s,placement:c,platform:u}=r,{mainAxis:m=!0,crossAxis:h=!1,limiter:v={fn:T=>{let{x:R,y:O}=T;return{x:R,y:O}}},...p}=fa(t,r),b={x:o,y:s},y=await u.detectOverflow(r,p),w=$n(ma(c)),k=im(w);let A=b[k],E=b[w];if(m){const T=k==="y"?"top":"left",R=k==="y"?"bottom":"right",O=A+y[T],H=A-y[R];A=pf(O,A,H)}if(h){const T=w==="y"?"top":"left",R=w==="y"?"bottom":"right",O=E+y[T],H=E-y[R];E=pf(O,E,H)}const N=v.fn({...r,[k]:A,[w]:E});return{...N,data:{x:N.x-o,y:N.y-s,enabled:{[k]:m,[w]:h}}}}}},d5=function(t){return t===void 0&&(t={}),{options:t,fn(r){const{x:o,y:s,placement:c,rects:u,middlewareData:m}=r,{offset:h=0,mainAxis:v=!0,crossAxis:p=!0}=fa(t,r),b={x:o,y:s},y=$n(c),w=im(y);let k=b[w],A=b[y];const E=fa(h,r),N=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(v){const O=w==="y"?"height":"width",H=u.reference[w]-u.floating[O]+N.mainAxis,z=u.reference[w]+u.reference[O]-N.mainAxis;k<H?k=H:k>z&&(k=z)}if(p){var T,R;const O=w==="y"?"width":"height",H=Sb.has(ma(c)),z=u.reference[y]-u.floating[O]+(H&&((T=m.offset)==null?void 0:T[y])||0)+(H?0:N.crossAxis),K=u.reference[y]+u.reference[O]+(H?0:((R=m.offset)==null?void 0:R[y])||0)-(H?N.crossAxis:0);A<z?A=z:A>K&&(A=K)}return{[w]:k,[y]:A}}}},f5=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(r){var o,s;const{placement:c,rects:u,platform:m,elements:h}=r,{apply:v=()=>{},...p}=fa(t,r),b=await m.detectOverflow(r,p),y=ma(c),w=Bo(c),k=$n(c)==="y",{width:A,height:E}=u.floating;let N,T;y==="top"||y==="bottom"?(N=y,T=w===(await(m.isRTL==null?void 0:m.isRTL(h.floating))?"start":"end")?"left":"right"):(T=y,N=w==="end"?"top":"bottom");const R=E-b.top-b.bottom,O=A-b.left-b.right,H=Qa(E-b[N],R),z=Qa(A-b[T],O),K=!r.middlewareData.shift;let I=H,P=z;if((o=r.middlewareData.shift)!=null&&o.enabled.x&&(P=O),(s=r.middlewareData.shift)!=null&&s.enabled.y&&(I=R),K&&!w){const de=Jt(b.left,0),fe=Jt(b.right,0),W=Jt(b.top,0),te=Jt(b.bottom,0);k?P=A-2*(de!==0||fe!==0?de+fe:Jt(b.left,b.right)):I=E-2*(W!==0||te!==0?W+te:Jt(b.top,b.bottom))}await v({...r,availableWidth:P,availableHeight:I});const le=await m.getDimensions(h.floating);return A!==le.width||E!==le.height?{reset:{rects:!0}}:{}}}};function fc(){return typeof window<"u"}function Ho(t){return wb(t)?(t.nodeName||"").toLowerCase():"#document"}function en(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function Vn(t){var r;return(r=(wb(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function wb(t){return fc()?t instanceof Node||t instanceof en(t).Node:!1}function An(t){return fc()?t instanceof Element||t instanceof en(t).Element:!1}function ha(t){return fc()?t instanceof HTMLElement||t instanceof en(t).HTMLElement:!1}function o0(t){return!fc()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof en(t).ShadowRoot}function ns(t){const{overflow:r,overflowX:o,overflowY:s,display:c}=kn(t);return/auto|scroll|overlay|hidden|clip/.test(r+s+o)&&c!=="inline"&&c!=="contents"}function m5(t){return/^(table|td|th)$/.test(Ho(t))}function mc(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const h5=/transform|translate|scale|rotate|perspective|filter/,p5=/paint|layout|strict|content/,wr=t=>!!t&&t!=="none";let Kd;function dm(t){const r=An(t)?kn(t):t;return wr(r.transform)||wr(r.translate)||wr(r.scale)||wr(r.rotate)||wr(r.perspective)||!fm()&&(wr(r.backdropFilter)||wr(r.filter))||h5.test(r.willChange||"")||p5.test(r.contain||"")}function g5(t){let r=Ka(t);for(;ha(r)&&!Oo(r);){if(dm(r))return r;if(mc(r))return null;r=Ka(r)}return null}function fm(){return Kd==null&&(Kd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Kd}function Oo(t){return/^(html|body|#document)$/.test(Ho(t))}function kn(t){return en(t).getComputedStyle(t)}function hc(t){return An(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ka(t){if(Ho(t)==="html")return t;const r=t.assignedSlot||t.parentNode||o0(t)&&t.host||Vn(t);return o0(r)?r.host:r}function Eb(t){const r=Ka(t);return Oo(r)?t.ownerDocument?t.ownerDocument.body:t.body:ha(r)&&ns(r)?r:Eb(r)}function Wl(t,r,o){var s;r===void 0&&(r=[]),o===void 0&&(o=!0);const c=Eb(t),u=c===((s=t.ownerDocument)==null?void 0:s.body),m=en(c);if(u){const h=vf(m);return r.concat(m,m.visualViewport||[],ns(c)?c:[],h&&o?Wl(h):[])}else return r.concat(c,Wl(c,[],o))}function vf(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Nb(t){const r=kn(t);let o=parseFloat(r.width)||0,s=parseFloat(r.height)||0;const c=ha(t),u=c?t.offsetWidth:o,m=c?t.offsetHeight:s,h=$i(o)!==u||$i(s)!==m;return h&&(o=u,s=m),{width:o,height:s,$:h}}function mm(t){return An(t)?t:t.contextElement}function ko(t){const r=mm(t);if(!ha(r))return qn(1);const o=r.getBoundingClientRect(),{width:s,height:c,$:u}=Nb(r);let m=(u?$i(o.width):o.width)/s,h=(u?$i(o.height):o.height)/c;return(!m||!Number.isFinite(m))&&(m=1),(!h||!Number.isFinite(h))&&(h=1),{x:m,y:h}}const v5=qn(0);function Tb(t){const r=en(t);return!fm()||!r.visualViewport?v5:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function y5(t,r,o){return r===void 0&&(r=!1),!o||r&&o!==en(t)?!1:r}function Cr(t,r,o,s){r===void 0&&(r=!1),o===void 0&&(o=!1);const c=t.getBoundingClientRect(),u=mm(t);let m=qn(1);r&&(s?An(s)&&(m=ko(s)):m=ko(t));const h=y5(u,o,s)?Tb(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),k=s&&An(s)?en(s):s;let A=w,E=vf(A);for(;E&&s&&k!==A;){const N=ko(E),T=E.getBoundingClientRect(),R=kn(E),O=T.left+(E.clientLeft+parseFloat(R.paddingLeft))*N.x,H=T.top+(E.clientTop+parseFloat(R.paddingTop))*N.y;v*=N.x,p*=N.y,b*=N.x,y*=N.y,v+=O,p+=H,A=en(E),E=vf(A)}}return Vi({width:b,height:y,x:v,y:p})}function pc(t,r){const o=hc(t).scrollLeft;return r?r.left+o:Cr(Vn(t)).left+o}function Cb(t,r){const o=t.getBoundingClientRect(),s=o.left+r.scrollLeft-pc(t,o),c=o.top+r.scrollTop;return{x:s,y:c}}function b5(t){let{elements:r,rect:o,offsetParent:s,strategy:c}=t;const u=c==="fixed",m=Vn(s),h=r?mc(r.floating):!1;if(s===m||h&&u)return o;let v={scrollLeft:0,scrollTop:0},p=qn(1);const b=qn(0),y=ha(s);if((y||!y&&!u)&&((Ho(s)!=="body"||ns(m))&&(v=hc(s)),y)){const k=Cr(s);p=ko(s),b.x=k.x+s.clientLeft,b.y=k.y+s.clientTop}const w=m&&!y&&!u?Cb(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 x5(t){return Array.from(t.getClientRects())}function S5(t){const r=Vn(t),o=hc(t),s=t.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+pc(t);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 l0=25;function w5(t,r){const o=en(t),s=Vn(t),c=o.visualViewport;let u=s.clientWidth,m=s.clientHeight,h=0,v=0;if(c){u=c.width,m=c.height;const b=fm();(!b||b&&r==="fixed")&&(h=c.offsetLeft,v=c.offsetTop)}const p=pc(s);if(p<=0){const b=s.ownerDocument,y=b.body,w=getComputedStyle(y),k=b.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,A=Math.abs(s.clientWidth-y.clientWidth-k);A<=l0&&(u-=A)}else p<=l0&&(u+=p);return{width:u,height:m,x:h,y:v}}function E5(t,r){const o=Cr(t,!0,r==="fixed"),s=o.top+t.clientTop,c=o.left+t.clientLeft,u=ha(t)?ko(t):qn(1),m=t.clientWidth*u.x,h=t.clientHeight*u.y,v=c*u.x,p=s*u.y;return{width:m,height:h,x:v,y:p}}function s0(t,r,o){let s;if(r==="viewport")s=w5(t,o);else if(r==="document")s=S5(Vn(t));else if(An(r))s=E5(r,o);else{const c=Tb(t);s={x:r.x-c.x,y:r.y-c.y,width:r.width,height:r.height}}return Vi(s)}function Rb(t,r){const o=Ka(t);return o===r||!An(o)||Oo(o)?!1:kn(o).position==="fixed"||Rb(o,r)}function N5(t,r){const o=r.get(t);if(o)return o;let s=Wl(t,[],!1).filter(h=>An(h)&&Ho(h)!=="body"),c=null;const u=kn(t).position==="fixed";let m=u?Ka(t):t;for(;An(m)&&!Oo(m);){const h=kn(m),v=dm(m);!v&&h.position==="fixed"&&(c=null),(u?!v&&!c:!v&&h.position==="static"&&!!c&&(c.position==="absolute"||c.position==="fixed")||ns(m)&&!v&&Rb(t,m))?s=s.filter(b=>b!==m):c=h,m=Ka(m)}return r.set(t,s),s}function T5(t){let{element:r,boundary:o,rootBoundary:s,strategy:c}=t;const m=[...o==="clippingAncestors"?mc(r)?[]:N5(r,this._c):[].concat(o),s],h=s0(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 k=s0(r,m[w],c);v=Jt(k.top,v),p=Qa(k.right,p),b=Qa(k.bottom,b),y=Jt(k.left,y)}return{width:p-y,height:b-v,x:y,y:v}}function C5(t){const{width:r,height:o}=Nb(t);return{width:r,height:o}}function R5(t,r,o){const s=ha(r),c=Vn(r),u=o==="fixed",m=Cr(t,!0,u,r);let h={scrollLeft:0,scrollTop:0};const v=qn(0);function p(){v.x=pc(c)}if(s||!s&&!u)if((Ho(r)!=="body"||ns(c))&&(h=hc(r)),s){const k=Cr(r,!0,u,r);v.x=k.x+r.clientLeft,v.y=k.y+r.clientTop}else c&&p();u&&!s&&c&&p();const b=c&&!s&&!u?Cb(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 Zd(t){return kn(t).position==="static"}function i0(t,r){if(!ha(t)||kn(t).position==="fixed")return null;if(r)return r(t);let o=t.offsetParent;return Vn(t)===o&&(o=o.ownerDocument.body),o}function Ab(t,r){const o=en(t);if(mc(t))return o;if(!ha(t)){let c=Ka(t);for(;c&&!Oo(c);){if(An(c)&&!Zd(c))return c;c=Ka(c)}return o}let s=i0(t,r);for(;s&&m5(s)&&Zd(s);)s=i0(s,r);return s&&Oo(s)&&Zd(s)&&!dm(s)?o:s||g5(t)||o}const A5=async function(t){const r=this.getOffsetParent||Ab,o=this.getDimensions,s=await o(t.floating);return{reference:R5(t.reference,await r(t.floating),t.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function k5(t){return kn(t).direction==="rtl"}const j5={convertOffsetParentRelativeRectToViewportRelativeRect:b5,getDocumentElement:Vn,getClippingRect:T5,getOffsetParent:Ab,getElementRects:A5,getClientRects:x5,getDimensions:C5,getScale:ko,isElement:An,isRTL:k5};function kb(t,r){return t.x===r.x&&t.y===r.y&&t.width===r.width&&t.height===r.height}function _5(t,r){let o=null,s;const c=Vn(t);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=t.getBoundingClientRect(),{left:b,top:y,width:w,height:k}=p;if(h||r(),!w||!k)return;const A=Ti(y),E=Ti(c.clientWidth-(b+w)),N=Ti(c.clientHeight-(y+k)),T=Ti(b),O={rootMargin:-A+"px "+-E+"px "+-N+"px "+-T+"px",threshold:Jt(0,Qa(1,v))||1};let H=!0;function z(K){const I=K[0].intersectionRatio;if(I!==v){if(!H)return m();I?m(!1,I):s=setTimeout(()=>{m(!1,1e-7)},1e3)}I===1&&!kb(p,t.getBoundingClientRect())&&m(),H=!1}try{o=new IntersectionObserver(z,{...O,root:c.ownerDocument})}catch{o=new IntersectionObserver(z,O)}o.observe(t)}return m(!0),u}function O5(t,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=mm(t),b=c||u?[...p?Wl(p):[],...r?Wl(r):[]]:[];b.forEach(T=>{c&&T.addEventListener("scroll",o,{passive:!0}),u&&T.addEventListener("resize",o)});const y=p&&h?_5(p,o):null;let w=-1,k=null;m&&(k=new ResizeObserver(T=>{let[R]=T;R&&R.target===p&&k&&r&&(k.unobserve(r),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var O;(O=k)==null||O.observe(r)})),o()}),p&&!v&&k.observe(p),r&&k.observe(r));let A,E=v?Cr(t):null;v&&N();function N(){const T=Cr(t);E&&!kb(E,T)&&o(),E=T,A=requestAnimationFrame(N)}return o(),()=>{var T;b.forEach(R=>{c&&R.removeEventListener("scroll",o),u&&R.removeEventListener("resize",o)}),y?.(),(T=k)==null||T.disconnect(),k=null,v&&cancelAnimationFrame(A)}}const M5=c5,D5=u5,z5=l5,U5=f5,L5=s5,c0=o5,B5=d5,H5=(t,r,o)=>{const s=new Map,c={platform:j5,...o},u={...c.platform,_c:s};return r5(t,r,{...c,platform:u})};var P5=typeof document<"u",$5=function(){},_i=P5?g.useLayoutEffect:$5;function Ii(t,r){if(t===r)return!0;if(typeof t!=typeof r)return!1;if(typeof t=="function"&&t.toString()===r.toString())return!0;let o,s,c;if(t&&r&&typeof t=="object"){if(Array.isArray(t)){if(o=t.length,o!==r.length)return!1;for(s=o;s--!==0;)if(!Ii(t[s],r[s]))return!1;return!0}if(c=Object.keys(t),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"&&t.$$typeof)&&!Ii(t[u],r[u]))return!1}return!0}return t!==t&&r!==r}function jb(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function u0(t,r){const o=jb(t);return Math.round(r*o)/o}function Fd(t){const r=g.useRef(t);return _i(()=>{r.current=t}),r}function q5(t){t===void 0&&(t={});const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:c,elements:{reference:u,floating:m}={},transform:h=!0,whileElementsMounted:v,open:p}=t,[b,y]=g.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[w,k]=g.useState(s);Ii(w,s)||k(s);const[A,E]=g.useState(null),[N,T]=g.useState(null),R=g.useCallback(Q=>{Q!==K.current&&(K.current=Q,E(Q))},[]),O=g.useCallback(Q=>{Q!==I.current&&(I.current=Q,T(Q))},[]),H=u||A,z=m||N,K=g.useRef(null),I=g.useRef(null),P=g.useRef(b),le=v!=null,de=Fd(v),fe=Fd(c),W=Fd(p),te=g.useCallback(()=>{if(!K.current||!I.current)return;const Q={placement:r,strategy:o,middleware:w};fe.current&&(Q.platform=fe.current),H5(K.current,I.current,Q).then(ue=>{const C={...ue,isPositioned:W.current!==!1};se.current&&!Ii(P.current,C)&&(P.current=C,ts.flushSync(()=>{y(C)}))})},[w,r,o,fe,W]);_i(()=>{p===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,y(Q=>({...Q,isPositioned:!1})))},[p]);const se=g.useRef(!1);_i(()=>(se.current=!0,()=>{se.current=!1}),[]),_i(()=>{if(H&&(K.current=H),z&&(I.current=z),H&&z){if(de.current)return de.current(H,z,te);te()}},[H,z,te,de,le]);const X=g.useMemo(()=>({reference:K,floating:I,setReference:R,setFloating:O}),[R,O]),_=g.useMemo(()=>({reference:H,floating:z}),[H,z]),B=g.useMemo(()=>{const Q={position:o,left:0,top:0};if(!_.floating)return Q;const ue=u0(_.floating,b.x),C=u0(_.floating,b.y);return h?{...Q,transform:"translate("+ue+"px, "+C+"px)",...jb(_.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:ue,top:C}},[o,h,_.floating,b.x,b.y]);return g.useMemo(()=>({...b,update:te,refs:X,elements:_,floatingStyles:B}),[b,te,X,_,B])}const V5=t=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:t,fn(o){const{element:s,padding:c}=typeof t=="function"?t(o):t;return s&&r(s)?s.current!=null?c0({element:s.current,padding:c}).fn(o):{}:s?c0({element:s,padding:c}).fn(o):{}}}},I5=(t,r)=>{const o=M5(t);return{name:o.name,fn:o.fn,options:[t,r]}},Y5=(t,r)=>{const o=D5(t);return{name:o.name,fn:o.fn,options:[t,r]}},G5=(t,r)=>({fn:B5(t).fn,options:[t,r]}),X5=(t,r)=>{const o=z5(t);return{name:o.name,fn:o.fn,options:[t,r]}},Q5=(t,r)=>{const o=U5(t);return{name:o.name,fn:o.fn,options:[t,r]}},K5=(t,r)=>{const o=L5(t);return{name:o.name,fn:o.fn,options:[t,r]}},Z5=(t,r)=>{const o=V5(t);return{name:o.name,fn:o.fn,options:[t,r]}};var F5="Arrow",_b=g.forwardRef((t,r)=>{const{children:o,width:s=10,height:c=5,...u}=t;return f.jsx(Ue.svg,{...u,ref:r,width:s,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?o:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});_b.displayName=F5;var W5=_b;function Ob(t){const[r,o]=g.useState(void 0);return Dt(()=>{if(t){o({width:t.offsetWidth,height:t.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=t.offsetWidth,h=t.offsetHeight;o({width:m,height:h})});return s.observe(t,{box:"border-box"}),()=>s.unobserve(t)}else o(void 0)},[t]),r}var hm="Popper",[Mb,Db]=Fa(hm),[J5,zb]=Mb(hm),Ub=t=>{const{__scopePopper:r,children:o}=t,[s,c]=g.useState(null);return f.jsx(J5,{scope:r,anchor:s,onAnchorChange:c,children:o})};Ub.displayName=hm;var Lb="PopperAnchor",Bb=g.forwardRef((t,r)=>{const{__scopePopper:o,virtualRef:s,...c}=t,u=zb(Lb,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})});Bb.displayName=Lb;var pm="PopperContent",[ek,tk]=Mb(pm),Hb=g.forwardRef((t,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:k="optimized",onPlaced:A,...E}=t,N=zb(pm,o),[T,R]=g.useState(null),O=We(r,ie=>R(ie)),[H,z]=g.useState(null),K=Ob(H),I=K?.width??0,P=K?.height??0,le=s+(u!=="center"?"-"+u:""),de=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},fe=Array.isArray(p)?p:[p],W=fe.length>0,te={padding:de,boundary:fe.filter(ak),altBoundary:W},{refs:se,floatingStyles:X,placement:_,isPositioned:B,middlewareData:Q}=q5({strategy:"fixed",placement:le,whileElementsMounted:(...ie)=>O5(...ie,{animationFrame:k==="always"}),elements:{reference:N.anchor},middleware:[I5({mainAxis:c+P,alignmentAxis:m}),v&&Y5({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?G5():void 0,...te}),v&&X5({...te}),Q5({...te,apply:({elements:ie,rects:ce,availableWidth:xe,availableHeight:Re})=>{const{width:Ne,height:Ae}=ce.reference,et=ie.floating.style;et.setProperty("--radix-popper-available-width",`${xe}px`),et.setProperty("--radix-popper-available-height",`${Re}px`),et.setProperty("--radix-popper-anchor-width",`${Ne}px`),et.setProperty("--radix-popper-anchor-height",`${Ae}px`)}}),H&&Z5({element:H,padding:h}),rk({arrowWidth:I,arrowHeight:P}),w&&K5({strategy:"referenceHidden",...te})]}),[ue,C]=qb(_),V=Xa(A);Dt(()=>{B&&V?.()},[B,V]);const re=Q.arrow?.x,Y=Q.arrow?.y,ee=Q.arrow?.centerOffset!==0,[J,ne]=g.useState();return Dt(()=>{T&&ne(window.getComputedStyle(T).zIndex)},[T]),f.jsx("div",{ref:se.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:B?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[Q.transformOrigin?.x,Q.transformOrigin?.y].join(" "),...Q.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:f.jsx(ek,{scope:o,placedSide:ue,onArrowChange:z,arrowX:re,arrowY:Y,shouldHideArrow:ee,children:f.jsx(Ue.div,{"data-side":ue,"data-align":C,...E,ref:O,style:{...E.style,animation:B?void 0:"none"}})})})});Hb.displayName=pm;var Pb="PopperArrow",nk={top:"bottom",right:"left",bottom:"top",left:"right"},$b=g.forwardRef(function(r,o){const{__scopePopper:s,...c}=r,u=tk(Pb,s),m=nk[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(W5,{...c,ref:o,style:{...c.style,display:"block"}})})});$b.displayName=Pb;function ak(t){return t!==null}var rk=t=>({name:"transformOrigin",options:t,fn(r){const{placement:o,rects:s,middlewareData:c}=r,m=c.arrow?.centerOffset!==0,h=m?0:t.arrowWidth,v=m?0:t.arrowHeight,[p,b]=qb(o),y={start:"0%",center:"50%",end:"100%"}[b],w=(c.arrow?.x??0)+h/2,k=(c.arrow?.y??0)+v/2;let A="",E="";return p==="bottom"?(A=m?y:`${w}px`,E=`${-v}px`):p==="top"?(A=m?y:`${w}px`,E=`${s.floating.height+v}px`):p==="right"?(A=`${-v}px`,E=m?y:`${k}px`):p==="left"&&(A=`${s.floating.width+v}px`,E=m?y:`${k}px`),{data:{x:A,y:E}}}});function qb(t){const[r,o="center"]=t.split("-");return[r,o]}var ok=Ub,lk=Bb,sk=Hb,ik=$b;function Vb(t){const r=g.useRef({value:t,previous:t});return g.useMemo(()=>(r.current.value!==t&&(r.current.previous=r.current.value,r.current.value=t),r.current.previous),[t])}var Ib=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"}),ck="VisuallyHidden",uk=g.forwardRef((t,r)=>f.jsx(Ue.span,{...t,ref:r,style:{...Ib,...t.style}}));uk.displayName=ck;var dk=[" ","Enter","ArrowUp","ArrowDown"],fk=[" ","Enter"],Rr="Select",[gc,vc,mk]=bb(Rr),[Po]=Fa(Rr,[mk,Db]),yc=Db(),[hk,Wa]=Po(Rr),[pk,gk]=Po(Rr),Yb=t=>{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:k,form:A}=t,E=yc(r),[N,T]=g.useState(null),[R,O]=g.useState(null),[H,z]=g.useState(!1),K=sm(p),[I,P]=_o({prop:s,defaultProp:c??!1,onChange:u,caller:Rr}),[le,de]=_o({prop:m,defaultProp:h,onChange:v,caller:Rr}),fe=g.useRef(null),W=N?A||!!N.closest("form"):!0,[te,se]=g.useState(new Set),X=Array.from(te).map(_=>_.props.value).join(";");return f.jsx(ok,{...E,children:f.jsxs(hk,{required:k,scope:r,trigger:N,onTriggerChange:T,valueNode:R,onValueNodeChange:O,valueNodeHasChildren:H,onValueNodeHasChildrenChange:z,contentId:Ya(),value:le,onValueChange:de,open:I,onOpenChange:P,dir:K,triggerPointerDownPosRef:fe,disabled:w,children:[f.jsx(gc.Provider,{scope:r,children:f.jsx(pk,{scope:t.__scopeSelect,onNativeOptionAdd:g.useCallback(_=>{se(B=>new Set(B).add(_))},[]),onNativeOptionRemove:g.useCallback(_=>{se(B=>{const Q=new Set(B);return Q.delete(_),Q})},[]),children:o})}),W?f.jsxs(gx,{"aria-hidden":!0,required:k,tabIndex:-1,name:b,autoComplete:y,value:le,onChange:_=>de(_.target.value),disabled:w,form:A,children:[le===void 0?f.jsx("option",{value:""}):null,Array.from(te)]},X):null]})})};Yb.displayName=Rr;var Gb="SelectTrigger",Xb=g.forwardRef((t,r)=>{const{__scopeSelect:o,disabled:s=!1,...c}=t,u=yc(o),m=Wa(Gb,o),h=m.disabled||s,v=We(r,m.onTriggerChange),p=vc(o),b=g.useRef("touch"),[y,w,k]=yx(E=>{const N=p().filter(O=>!O.disabled),T=N.find(O=>O.value===m.value),R=bx(N,E,T);R!==void 0&&m.onValueChange(R.value)}),A=E=>{h||(m.onOpenChange(!0),k()),E&&(m.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)})};return f.jsx(lk,{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":vx(m.value)?"":void 0,...c,ref:v,onClick:ze(c.onClick,E=>{E.currentTarget.focus(),b.current!=="mouse"&&A(E)}),onPointerDown:ze(c.onPointerDown,E=>{b.current=E.pointerType;const N=E.target;N.hasPointerCapture(E.pointerId)&&N.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&E.pointerType==="mouse"&&(A(E),E.preventDefault())}),onKeyDown:ze(c.onKeyDown,E=>{const N=y.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&w(E.key),!(N&&E.key===" ")&&dk.includes(E.key)&&(A(),E.preventDefault())})})})});Xb.displayName=Gb;var Qb="SelectValue",Kb=g.forwardRef((t,r)=>{const{__scopeSelect:o,className:s,style:c,children:u,placeholder:m="",...h}=t,v=Wa(Qb,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:vx(v.value)?f.jsx(f.Fragment,{children:m}):u})});Kb.displayName=Qb;var vk="SelectIcon",Zb=g.forwardRef((t,r)=>{const{__scopeSelect:o,children:s,...c}=t;return f.jsx(Ue.span,{"aria-hidden":!0,...c,ref:r,children:s||"▼"})});Zb.displayName=vk;var yk="SelectPortal",Fb=t=>f.jsx(Wf,{asChild:!0,...t});Fb.displayName=yk;var Ar="SelectContent",Wb=g.forwardRef((t,r)=>{const o=Wa(Ar,t.__scopeSelect),[s,c]=g.useState();if(Dt(()=>{c(new DocumentFragment)},[]),!o.open){const u=s;return u?ts.createPortal(f.jsx(Jb,{scope:t.__scopeSelect,children:f.jsx(gc.Slot,{scope:t.__scopeSelect,children:f.jsx("div",{children:t.children})})}),u):null}return f.jsx(ex,{...t,ref:r})});Wb.displayName=Ar;var xn=10,[Jb,Ja]=Po(Ar),bk="SelectContentImpl",xk=Fl("SelectContent.RemoveScroll"),ex=g.forwardRef((t,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:k,sticky:A,hideWhenDetached:E,avoidCollisions:N,...T}=t,R=Wa(Ar,o),[O,H]=g.useState(null),[z,K]=g.useState(null),I=We(r,ie=>H(ie)),[P,le]=g.useState(null),[de,fe]=g.useState(null),W=vc(o),[te,se]=g.useState(!1),X=g.useRef(!1);g.useEffect(()=>{if(O)return Xy(O)},[O]),By();const _=g.useCallback(ie=>{const[ce,...xe]=W().map(Ae=>Ae.ref.current),[Re]=xe.slice(-1),Ne=document.activeElement;for(const Ae of ie)if(Ae===Ne||(Ae?.scrollIntoView({block:"nearest"}),Ae===ce&&z&&(z.scrollTop=0),Ae===Re&&z&&(z.scrollTop=z.scrollHeight),Ae?.focus(),document.activeElement!==Ne))return},[W,z]),B=g.useCallback(()=>_([P,O]),[_,P,O]);g.useEffect(()=>{te&&B()},[te,B]);const{onOpenChange:Q,triggerPointerDownPosRef:ue}=R;g.useEffect(()=>{if(O){let ie={x:0,y:0};const ce=Re=>{ie={x:Math.abs(Math.round(Re.pageX)-(ue.current?.x??0)),y:Math.abs(Math.round(Re.pageY)-(ue.current?.y??0))}},xe=Re=>{ie.x<=10&&ie.y<=10?Re.preventDefault():O.contains(Re.target)||Q(!1),document.removeEventListener("pointermove",ce),ue.current=null};return ue.current!==null&&(document.addEventListener("pointermove",ce),document.addEventListener("pointerup",xe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ce),document.removeEventListener("pointerup",xe,{capture:!0})}}},[O,Q,ue]),g.useEffect(()=>{const ie=()=>Q(!1);return window.addEventListener("blur",ie),window.addEventListener("resize",ie),()=>{window.removeEventListener("blur",ie),window.removeEventListener("resize",ie)}},[Q]);const[C,V]=yx(ie=>{const ce=W().filter(Ne=>!Ne.disabled),xe=ce.find(Ne=>Ne.ref.current===document.activeElement),Re=bx(ce,ie,xe);Re&&setTimeout(()=>Re.ref.current.focus())}),re=g.useCallback((ie,ce,xe)=>{const Re=!X.current&&!xe;(R.value!==void 0&&R.value===ce||Re)&&(le(ie),Re&&(X.current=!0))},[R.value]),Y=g.useCallback(()=>O?.focus(),[O]),ee=g.useCallback((ie,ce,xe)=>{const Re=!X.current&&!xe;(R.value!==void 0&&R.value===ce||Re)&&fe(ie)},[R.value]),J=s==="popper"?yf:tx,ne=J===yf?{side:h,sideOffset:v,align:p,alignOffset:b,arrowPadding:y,collisionBoundary:w,collisionPadding:k,sticky:A,hideWhenDetached:E,avoidCollisions:N}:{};return f.jsx(Jb,{scope:o,content:O,viewport:z,onViewportChange:K,itemRefCallback:re,selectedItem:P,onItemLeave:Y,itemTextRefCallback:ee,focusSelectedItem:B,selectedItemText:de,position:s,isPositioned:te,searchRef:C,children:f.jsx(Jf,{as:xk,allowPinchZoom:!0,children:f.jsx(Ff,{asChild:!0,trapped:R.open,onMountAutoFocus:ie=>{ie.preventDefault()},onUnmountAutoFocus:ze(c,ie=>{R.trigger?.focus({preventScroll:!0}),ie.preventDefault()}),children:f.jsx(Zf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:ie=>ie.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:f.jsx(J,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:ie=>ie.preventDefault(),...T,...ne,onPlaced:()=>se(!0),ref:I,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:ze(T.onKeyDown,ie=>{const ce=ie.ctrlKey||ie.altKey||ie.metaKey;if(ie.key==="Tab"&&ie.preventDefault(),!ce&&ie.key.length===1&&V(ie.key),["ArrowUp","ArrowDown","Home","End"].includes(ie.key)){let Re=W().filter(Ne=>!Ne.disabled).map(Ne=>Ne.ref.current);if(["ArrowUp","End"].includes(ie.key)&&(Re=Re.slice().reverse()),["ArrowUp","ArrowDown"].includes(ie.key)){const Ne=ie.target,Ae=Re.indexOf(Ne);Re=Re.slice(Ae+1)}setTimeout(()=>_(Re)),ie.preventDefault()}})})})})})})});ex.displayName=bk;var Sk="SelectItemAlignedPosition",tx=g.forwardRef((t,r)=>{const{__scopeSelect:o,onPlaced:s,...c}=t,u=Wa(Ar,o),m=Ja(Ar,o),[h,v]=g.useState(null),[p,b]=g.useState(null),y=We(r,I=>b(I)),w=vc(o),k=g.useRef(!1),A=g.useRef(!0),{viewport:E,selectedItem:N,selectedItemText:T,focusSelectedItem:R}=m,O=g.useCallback(()=>{if(u.trigger&&u.valueNode&&h&&p&&E&&N&&T){const I=u.trigger.getBoundingClientRect(),P=p.getBoundingClientRect(),le=u.valueNode.getBoundingClientRect(),de=T.getBoundingClientRect();if(u.dir!=="rtl"){const Ne=de.left-P.left,Ae=le.left-Ne,et=I.left-Ae,rt=I.width+et,hn=Math.max(rt,P.width),pn=window.innerWidth-xn,st=Jv(Ae,[xn,Math.max(xn,pn-hn)]);h.style.minWidth=rt+"px",h.style.left=st+"px"}else{const Ne=P.right-de.right,Ae=window.innerWidth-le.right-Ne,et=window.innerWidth-I.right-Ae,rt=I.width+et,hn=Math.max(rt,P.width),pn=window.innerWidth-xn,st=Jv(Ae,[xn,Math.max(xn,pn-hn)]);h.style.minWidth=rt+"px",h.style.right=st+"px"}const fe=w(),W=window.innerHeight-xn*2,te=E.scrollHeight,se=window.getComputedStyle(p),X=parseInt(se.borderTopWidth,10),_=parseInt(se.paddingTop,10),B=parseInt(se.borderBottomWidth,10),Q=parseInt(se.paddingBottom,10),ue=X+_+te+Q+B,C=Math.min(N.offsetHeight*5,ue),V=window.getComputedStyle(E),re=parseInt(V.paddingTop,10),Y=parseInt(V.paddingBottom,10),ee=I.top+I.height/2-xn,J=W-ee,ne=N.offsetHeight/2,ie=N.offsetTop+ne,ce=X+_+ie,xe=ue-ce;if(ce<=ee){const Ne=fe.length>0&&N===fe[fe.length-1].ref.current;h.style.bottom="0px";const Ae=p.clientHeight-E.offsetTop-E.offsetHeight,et=Math.max(J,ne+(Ne?Y:0)+Ae+B),rt=ce+et;h.style.height=rt+"px"}else{const Ne=fe.length>0&&N===fe[0].ref.current;h.style.top="0px";const et=Math.max(ee,X+E.offsetTop+(Ne?re:0)+ne)+xe;h.style.height=et+"px",E.scrollTop=ce-ee+E.offsetTop}h.style.margin=`${xn}px 0`,h.style.minHeight=C+"px",h.style.maxHeight=W+"px",s?.(),requestAnimationFrame(()=>k.current=!0)}},[w,u.trigger,u.valueNode,h,p,E,N,T,u.dir,s]);Dt(()=>O(),[O]);const[H,z]=g.useState();Dt(()=>{p&&z(window.getComputedStyle(p).zIndex)},[p]);const K=g.useCallback(I=>{I&&A.current===!0&&(O(),R?.(),A.current=!1)},[O,R]);return f.jsx(Ek,{scope:o,contentWrapper:h,shouldExpandOnScrollRef:k,onScrollButtonChange:K,children:f.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:H},children:f.jsx(Ue.div,{...c,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}})})})});tx.displayName=Sk;var wk="SelectPopperPosition",yf=g.forwardRef((t,r)=>{const{__scopeSelect:o,align:s="start",collisionPadding:c=xn,...u}=t,m=yc(o);return f.jsx(sk,{...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)"}})});yf.displayName=wk;var[Ek,gm]=Po(Ar,{}),bf="SelectViewport",nx=g.forwardRef((t,r)=>{const{__scopeSelect:o,nonce:s,...c}=t,u=Ja(bf,o),m=gm(bf,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(gc.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 k=Math.abs(v.current-b.scrollTop);if(k>0){const A=window.innerHeight-xn*2,E=parseFloat(y.style.minHeight),N=parseFloat(y.style.height),T=Math.max(E,N);if(T<A){const R=T+k,O=Math.min(A,R),H=R-O;y.style.height=O+"px",y.style.bottom==="0px"&&(b.scrollTop=H>0?H:0,y.style.justifyContent="flex-end")}}}v.current=b.scrollTop})})})]})});nx.displayName=bf;var ax="SelectGroup",[Nk,Tk]=Po(ax),rx=g.forwardRef((t,r)=>{const{__scopeSelect:o,...s}=t,c=Ya();return f.jsx(Nk,{scope:o,id:c,children:f.jsx(Ue.div,{role:"group","aria-labelledby":c,...s,ref:r})})});rx.displayName=ax;var ox="SelectLabel",lx=g.forwardRef((t,r)=>{const{__scopeSelect:o,...s}=t,c=Tk(ox,o);return f.jsx(Ue.div,{id:c.id,...s,ref:r})});lx.displayName=ox;var Yi="SelectItem",[Ck,sx]=Po(Yi),ix=g.forwardRef((t,r)=>{const{__scopeSelect:o,value:s,disabled:c=!1,textValue:u,...m}=t,h=Wa(Yi,o),v=Ja(Yi,o),p=h.value===s,[b,y]=g.useState(u??""),[w,k]=g.useState(!1),A=We(r,R=>v.itemRefCallback?.(R,s,c)),E=Ya(),N=g.useRef("touch"),T=()=>{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(Ck,{scope:o,value:s,disabled:c,textId:E,isSelected:p,onItemTextChange:g.useCallback(R=>{y(O=>O||(R?.textContent??"").trim())},[]),children:f.jsx(gc.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:A,onFocus:ze(m.onFocus,()=>k(!0)),onBlur:ze(m.onBlur,()=>k(!1)),onClick:ze(m.onClick,()=>{N.current!=="mouse"&&T()}),onPointerUp:ze(m.onPointerUp,()=>{N.current==="mouse"&&T()}),onPointerDown:ze(m.onPointerDown,R=>{N.current=R.pointerType}),onPointerMove:ze(m.onPointerMove,R=>{N.current=R.pointerType,c?v.onItemLeave?.():N.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ze(m.onPointerLeave,R=>{R.currentTarget===document.activeElement&&v.onItemLeave?.()}),onKeyDown:ze(m.onKeyDown,R=>{v.searchRef?.current!==""&&R.key===" "||(fk.includes(R.key)&&T(),R.key===" "&&R.preventDefault())})})})})});ix.displayName=Yi;var Il="SelectItemText",cx=g.forwardRef((t,r)=>{const{__scopeSelect:o,className:s,style:c,...u}=t,m=Wa(Il,o),h=Ja(Il,o),v=sx(Il,o),p=gk(Il,o),[b,y]=g.useState(null),w=We(r,T=>y(T),v.onItemTextChange,T=>h.itemTextRefCallback?.(T,v.value,v.disabled)),k=b?.textContent,A=g.useMemo(()=>f.jsx("option",{value:v.value,disabled:v.disabled,children:k},v.value),[v.disabled,v.value,k]),{onNativeOptionAdd:E,onNativeOptionRemove:N}=p;return Dt(()=>(E(A),()=>N(A)),[E,N,A]),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]})});cx.displayName=Il;var ux="SelectItemIndicator",dx=g.forwardRef((t,r)=>{const{__scopeSelect:o,...s}=t;return sx(ux,o).isSelected?f.jsx(Ue.span,{"aria-hidden":!0,...s,ref:r}):null});dx.displayName=ux;var xf="SelectScrollUpButton",fx=g.forwardRef((t,r)=>{const o=Ja(xf,t.__scopeSelect),s=gm(xf,t.__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(hx,{...t,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=o;h&&v&&(h.scrollTop=h.scrollTop-v.offsetHeight)}}):null});fx.displayName=xf;var Sf="SelectScrollDownButton",mx=g.forwardRef((t,r)=>{const o=Ja(Sf,t.__scopeSelect),s=gm(Sf,t.__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(hx,{...t,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=o;h&&v&&(h.scrollTop=h.scrollTop+v.offsetHeight)}}):null});mx.displayName=Sf;var hx=g.forwardRef((t,r)=>{const{__scopeSelect:o,onAutoScroll:s,...c}=t,u=Ja("SelectScrollButton",o),m=g.useRef(null),h=vc(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()})})}),Rk="SelectSeparator",px=g.forwardRef((t,r)=>{const{__scopeSelect:o,...s}=t;return f.jsx(Ue.div,{"aria-hidden":!0,...s,ref:r})});px.displayName=Rk;var wf="SelectArrow",Ak=g.forwardRef((t,r)=>{const{__scopeSelect:o,...s}=t,c=yc(o),u=Wa(wf,o),m=Ja(wf,o);return u.open&&m.position==="popper"?f.jsx(ik,{...c,...s,ref:r}):null});Ak.displayName=wf;var kk="SelectBubbleInput",gx=g.forwardRef(({__scopeSelect:t,value:r,...o},s)=>{const c=g.useRef(null),u=We(s,c),m=Vb(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:{...Ib,...o.style},ref:u,defaultValue:r})});gx.displayName=kk;function vx(t){return t===""||t===void 0}function yx(t){const r=Xa(t),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 bx(t,r,o){const c=r.length>1&&Array.from(r).every(p=>p===r[0])?r[0]:r,u=o?t.indexOf(o):-1;let m=jk(t,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 jk(t,r){return t.map((o,s)=>t[(r+s)%t.length])}var _k=Yb,xx=Xb,Ok=Kb,Mk=Zb,Dk=Fb,Sx=Wb,zk=nx,Uk=rx,wx=lx,Ex=ix,Lk=cx,Bk=dx,Nx=fx,Tx=mx,Cx=px;const Ef=_k,PO=Uk,Nf=Ok,Gi=g.forwardRef(({className:t,children:r,...o},s)=>f.jsxs(xx,{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",t),...o,children:[r,f.jsx(Mk,{asChild:!0,children:f.jsx(Zl,{className:"h-4 w-4 opacity-50"})})]}));Gi.displayName=xx.displayName;const Rx=g.forwardRef(({className:t,...r},o)=>f.jsx(Nx,{ref:o,className:ae("flex cursor-default items-center justify-center py-1",t),...r,children:f.jsx(IN,{className:"h-4 w-4"})}));Rx.displayName=Nx.displayName;const Ax=g.forwardRef(({className:t,...r},o)=>f.jsx(Tx,{ref:o,className:ae("flex cursor-default items-center justify-center py-1",t),...r,children:f.jsx(Zl,{className:"h-4 w-4"})}));Ax.displayName=Tx.displayName;const Xi=g.forwardRef(({className:t,children:r,position:o="popper",...s},c)=>f.jsx(Dk,{children:f.jsxs(Sx,{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",t),position:o,...s,children:[f.jsx(Rx,{}),f.jsx(zk,{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(Ax,{})]})}));Xi.displayName=Sx.displayName;const Hk=g.forwardRef(({className:t,...r},o)=>f.jsx(wx,{ref:o,className:ae("py-1 pl-6 pr-2 text-[10px] font-semibold",t),...r}));Hk.displayName=wx.displayName;const ua=g.forwardRef(({className:t,children:r,...o},s)=>f.jsxs(Ex,{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",t),...o,children:[f.jsx("span",{className:"absolute left-1.5 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(Bk,{children:f.jsx(Li,{className:"h-3.5 w-3.5"})})}),f.jsx(Lk,{children:r})]}));ua.displayName=Ex.displayName;const Pk=g.forwardRef(({className:t,...r},o)=>f.jsx(Cx,{ref:o,className:ae("-mx-1 my-1 h-px bg-muted",t),...r}));Pk.displayName=Cx.displayName;var Wd="rovingFocusGroup.onEntryFocus",$k={bubbles:!1,cancelable:!0},as="RovingFocusGroup",[Tf,kx,qk]=bb(as),[Vk,jx]=Fa(as,[qk]),[Ik,Yk]=Vk(as),_x=g.forwardRef((t,r)=>f.jsx(Tf.Provider,{scope:t.__scopeRovingFocusGroup,children:f.jsx(Tf.Slot,{scope:t.__scopeRovingFocusGroup,children:f.jsx(Gk,{...t,ref:r})})}));_x.displayName=as;var Gk=g.forwardRef((t,r)=>{const{__scopeRovingFocusGroup:o,orientation:s,loop:c=!1,dir:u,currentTabStopId:m,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:v,onEntryFocus:p,preventScrollOnEntryFocus:b=!1,...y}=t,w=g.useRef(null),k=We(r,w),A=sm(u),[E,N]=_o({prop:m,defaultProp:h??null,onChange:v,caller:as}),[T,R]=g.useState(!1),O=Xa(p),H=kx(o),z=g.useRef(!1),[K,I]=g.useState(0);return g.useEffect(()=>{const P=w.current;if(P)return P.addEventListener(Wd,O),()=>P.removeEventListener(Wd,O)},[O]),f.jsx(Ik,{scope:o,orientation:s,dir:A,loop:c,currentTabStopId:E,onItemFocus:g.useCallback(P=>N(P),[N]),onItemShiftTab:g.useCallback(()=>R(!0),[]),onFocusableItemAdd:g.useCallback(()=>I(P=>P+1),[]),onFocusableItemRemove:g.useCallback(()=>I(P=>P-1),[]),children:f.jsx(Ue.div,{tabIndex:T||K===0?-1:0,"data-orientation":s,...y,ref:k,style:{outline:"none",...t.style},onMouseDown:ze(t.onMouseDown,()=>{z.current=!0}),onFocus:ze(t.onFocus,P=>{const le=!z.current;if(P.target===P.currentTarget&&le&&!T){const de=new CustomEvent(Wd,$k);if(P.currentTarget.dispatchEvent(de),!de.defaultPrevented){const fe=H().filter(_=>_.focusable),W=fe.find(_=>_.active),te=fe.find(_=>_.id===E),X=[W,te,...fe].filter(Boolean).map(_=>_.ref.current);Dx(X,b)}}z.current=!1}),onBlur:ze(t.onBlur,()=>R(!1))})})}),Ox="RovingFocusGroupItem",Mx=g.forwardRef((t,r)=>{const{__scopeRovingFocusGroup:o,focusable:s=!0,active:c=!1,tabStopId:u,children:m,...h}=t,v=Ya(),p=u||v,b=Yk(Ox,o),y=b.currentTabStopId===p,w=kx(o),{onFocusableItemAdd:k,onFocusableItemRemove:A,currentTabStopId:E}=b;return g.useEffect(()=>{if(s)return k(),()=>A()},[s,k,A]),f.jsx(Tf.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(t.onMouseDown,N=>{s?b.onItemFocus(p):N.preventDefault()}),onFocus:ze(t.onFocus,()=>b.onItemFocus(p)),onKeyDown:ze(t.onKeyDown,N=>{if(N.key==="Tab"&&N.shiftKey){b.onItemShiftTab();return}if(N.target!==N.currentTarget)return;const T=Kk(N,b.orientation,b.dir);if(T!==void 0){if(N.metaKey||N.ctrlKey||N.altKey||N.shiftKey)return;N.preventDefault();let O=w().filter(H=>H.focusable).map(H=>H.ref.current);if(T==="last")O.reverse();else if(T==="prev"||T==="next"){T==="prev"&&O.reverse();const H=O.indexOf(N.currentTarget);O=b.loop?Zk(O,H+1):O.slice(H+1)}setTimeout(()=>Dx(O))}}),children:typeof m=="function"?m({isCurrentTabStop:y,hasTabStop:E!=null}):m})})});Mx.displayName=Ox;var Xk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Qk(t,r){return r!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function Kk(t,r,o){const s=Qk(t.key,o);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return Xk[s]}function Dx(t,r=!1){const o=document.activeElement;for(const s of t)if(s===o||(s.focus({preventScroll:r}),document.activeElement!==o))return}function Zk(t,r){return t.map((o,s)=>t[(r+s)%t.length])}var Fk=_x,Wk=Mx,bc="Tabs",[Jk]=Fa(bc,[jx]),zx=jx(),[ej,vm]=Jk(bc),Ux=g.forwardRef((t,r)=>{const{__scopeTabs:o,value:s,onValueChange:c,defaultValue:u,orientation:m="horizontal",dir:h,activationMode:v="automatic",...p}=t,b=sm(h),[y,w]=_o({prop:s,onChange:c,defaultProp:u??"",caller:bc});return f.jsx(ej,{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})})});Ux.displayName=bc;var Lx="TabsList",Bx=g.forwardRef((t,r)=>{const{__scopeTabs:o,loop:s=!0,...c}=t,u=vm(Lx,o),m=zx(o);return f.jsx(Fk,{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})})});Bx.displayName=Lx;var Hx="TabsTrigger",Px=g.forwardRef((t,r)=>{const{__scopeTabs:o,value:s,disabled:c=!1,...u}=t,m=vm(Hx,o),h=zx(o),v=Vx(m.baseId,s),p=Ix(m.baseId,s),b=s===m.value;return f.jsx(Wk,{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(t.onMouseDown,y=>{!c&&y.button===0&&y.ctrlKey===!1?m.onValueChange(s):y.preventDefault()}),onKeyDown:ze(t.onKeyDown,y=>{[" ","Enter"].includes(y.key)&&m.onValueChange(s)}),onFocus:ze(t.onFocus,()=>{const y=m.activationMode!=="manual";!b&&!c&&y&&m.onValueChange(s)})})})});Px.displayName=Hx;var $x="TabsContent",qx=g.forwardRef((t,r)=>{const{__scopeTabs:o,value:s,forceMount:c,children:u,...m}=t,h=vm($x,o),v=Vx(h.baseId,s),p=Ix(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:{...t.style,animationDuration:y.current?"0s":void 0},children:w&&u})})});qx.displayName=$x;function Vx(t,r){return`${t}-trigger-${r}`}function Ix(t,r){return`${t}-content-${r}`}var tj=Ux,Yx=Bx,Gx=Px,Xx=qx;const nj=tj,Qx=g.forwardRef(({className:t,...r},o)=>f.jsx(Yx,{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",t),...r}));Qx.displayName=Yx.displayName;const Yl=g.forwardRef(({className:t,...r},o)=>f.jsx(Gx,{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)]",t),...r}));Yl.displayName=Gx.displayName;const Gl=g.forwardRef(({className:t,...r},o)=>f.jsx(Xx,{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",t),...r}));Gl.displayName=Xx.displayName;var Kx="AlertDialog",[aj]=Fa(Kx,[Ky]),pa=Ky(),Zx=t=>{const{__scopeAlertDialog:r,...o}=t,s=pa(r);return f.jsx(db,{...s,...o,modal:!0})};Zx.displayName=Kx;var rj="AlertDialogTrigger",Fx=g.forwardRef((t,r)=>{const{__scopeAlertDialog:o,...s}=t,c=pa(o);return f.jsx(fb,{...c,...s,ref:r})});Fx.displayName=rj;var oj="AlertDialogPortal",Wx=t=>{const{__scopeAlertDialog:r,...o}=t,s=pa(r);return f.jsx(mb,{...s,...o})};Wx.displayName=oj;var lj="AlertDialogOverlay",Jx=g.forwardRef((t,r)=>{const{__scopeAlertDialog:o,...s}=t,c=pa(o);return f.jsx(am,{...c,...s,ref:r})});Jx.displayName=lj;var jo="AlertDialogContent",[sj,ij]=aj(jo),cj=SR("AlertDialogContent"),e1=g.forwardRef((t,r)=>{const{__scopeAlertDialog:o,children:s,...c}=t,u=pa(o),m=g.useRef(null),h=We(r,m),v=g.useRef(null);return f.jsx(LA,{contentName:jo,titleName:t1,docsSlug:"alert-dialog",children:f.jsx(sj,{scope:o,cancelRef:v,children:f.jsxs(rm,{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(cj,{children:s}),f.jsx(dj,{contentRef:m})]})})})});e1.displayName=jo;var t1="AlertDialogTitle",n1=g.forwardRef((t,r)=>{const{__scopeAlertDialog:o,...s}=t,c=pa(o);return f.jsx(om,{...c,...s,ref:r})});n1.displayName=t1;var a1="AlertDialogDescription",r1=g.forwardRef((t,r)=>{const{__scopeAlertDialog:o,...s}=t,c=pa(o);return f.jsx(lm,{...c,...s,ref:r})});r1.displayName=a1;var uj="AlertDialogAction",o1=g.forwardRef((t,r)=>{const{__scopeAlertDialog:o,...s}=t,c=pa(o);return f.jsx(dc,{...c,...s,ref:r})});o1.displayName=uj;var l1="AlertDialogCancel",s1=g.forwardRef((t,r)=>{const{__scopeAlertDialog:o,...s}=t,{cancelRef:c}=ij(l1,o),u=pa(o),m=We(r,c);return f.jsx(dc,{...u,...s,ref:m})});s1.displayName=l1;var dj=({contentRef:t})=>{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 \`${a1}\` 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(t.current?.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},fj=Zx,mj=Fx,hj=Wx,i1=Jx,c1=e1,u1=o1,d1=s1,f1=n1,m1=r1;const Cf=fj,Rf=mj,pj=hj,h1=g.forwardRef(({className:t,...r},o)=>f.jsx(i1,{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",t),...r,ref:o}));h1.displayName=i1.displayName;const Qi=g.forwardRef(({className:t,...r},o)=>f.jsxs(pj,{children:[f.jsx(h1,{}),f.jsx(c1,{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%]",t),...r})]}));Qi.displayName=c1.displayName;const Ki=({className:t,...r})=>f.jsx("div",{className:ae("flex flex-col space-y-1.5 text-center sm:text-left",t),...r});Ki.displayName="AlertDialogHeader";const Zi=({className:t,...r})=>f.jsx("div",{className:ae("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r});Zi.displayName="AlertDialogFooter";const Fi=g.forwardRef(({className:t,...r},o)=>f.jsx(f1,{ref:o,className:ae("text-sm font-semibold",t),...r}));Fi.displayName=f1.displayName;const Wi=g.forwardRef(({className:t,...r},o)=>f.jsx(m1,{ref:o,className:ae("text-[11px] text-muted-foreground",t),...r}));Wi.displayName=m1.displayName;const Ji=g.forwardRef(({className:t,...r},o)=>f.jsx(u1,{ref:o,className:ae(Kf(),t),...r}));Ji.displayName=u1.displayName;const ec=g.forwardRef(({className:t,...r},o)=>f.jsx(d1,{ref:o,className:ae(Kf({variant:"outline"}),"mt-2 sm:mt-0",t),...r}));ec.displayName=d1.displayName;const gj={online:"bg-emerald-500",busy:"bg-amber-500",offline:"bg-destructive"};function vj({status:t}){return f.jsxs("span",{className:"relative inline-flex h-2.5 w-2.5",children:[t==="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",gj[t])})]})}function yj({role:t,size:r="default"}){return f.jsx(_t,{variant:t==="leader"?"default":"secondary",className:ae(r==="compact"?"px-1.5 py-0 text-[9px] leading-4":"text-[11px]"),children:t})}const p1={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:t,size:r="default"}){const o=p1[t],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)}),t]})}function qO({status:t,isNative:r=!1,size:o="default",className:s}){const c=p1[t],u=[t,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:t}),r&&f.jsx("span",{className:ae("rounded-full bg-sky-500",m),title:"native"})]})}const bj={critical:{variant:"destructive",label:"Critical"},high:{variant:"outline",label:"High"},normal:{variant:"secondary",label:"Normal"},low:{variant:"secondary",label:"Low"}};function VO({priority:t}){const r=bj[t];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 xj(t){return[{key:"workspace",label:"Workspace",value:t?.workspace},{key:"node",label:"Node app",value:t?.node},{key:"core",label:"Core",value:t?.core},{key:"dashboard",label:"Dashboard",value:t?.dashboard},{key:"api",label:"API",value:t?.api}].filter(o=>o.value)}function Eo({label:t,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:t}),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 Sj({formatDateTime:t,viewInfo:r}){const o=xj(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(LN,{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(sy,{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(Eo,{label:"Branch",value:r.repository?.branch??"Unavailable",mono:!!r.repository?.branch}),f.jsx(Eo,{label:"Commit",value:r.repository?.commit??"Unavailable",mono:!!r.repository?.commit}),f.jsx(Eo,{label:"Runtime",value:`${r.packageName??"meshy"} ${r.version}`,mono:!0}),f.jsx(Eo,{label:"Node.js",value:r.runtime?.nodeVersion??"Unavailable",mono:!!r.runtime?.nodeVersion}),f.jsx(Eo,{label:"PID",value:r.runtime?String(r.runtime.pid):"Unavailable",mono:!!r.runtime}),f.jsx(Eo,{label:"Started",value:t(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(rT,{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 wj="codex",IO="bypass",g1=[{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"}],v1=g1.filter(t=>t.value==="codex"||t.value==="claudecode"||t.value==="copilot");function Af(t){return v1.some(r=>r.value===t)?t:wj}const YO=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],Ej=new Set(g1.filter(t=>t.supportsFollowUp).map(t=>t.value));function GO(t){const r=s=>typeof s=="string"&&Ej.has(s),o=(t.nodeSupportedAgents??[]).filter(r);return o.length>0?Array.from(new Set(o)):Array.from(new Set([t.taskAgent,t.activeAgent].filter(r)))}const XO=[{value:"active",label:"Active"},{value:"running",label:"Running"},{value:"waiting",label:"Waiting"},{value:"closed",label:"Closed"},{value:"shared",label:"Shared"},{value:"archived",label:"Archived"}],QO=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],Nj=new Set(["pending","assigned"]),Tj=new Set(["running"]),Cj=new Set(["completed","failed","cancelled"]),KO=10;function ZO(t,r){switch(r){case"running":return Tj.has(t.status);case"waiting":return Nj.has(t.status);case"closed":return Cj.has(t.status);case"shared":return!!t.activeShare;case"archived":return t.status==="archived";default:return t.status!=="archived"}}function FO(t,r){if(r==="all")return!0;const o=t.conversationKind==="nativeSession";return r==="native"?o:!o}function WO(t,r){const o=r.trim().toLowerCase();return o?[t.title,t.description,t.id,t.agent,t.assignedTo??"",t.assignedNodeName??"",t.project??"",t.effectiveProjectPath??"",t.conversationKind==="nativeSession"?"native session":"meshy chat",t.activeShare?"shared conversation":""].some(s=>s.toLowerCase().includes(o)):!0}function Rj(t,r,o){return t?r?.find(c=>c.id===t)?.name??o??t.slice(0,8):"unassigned"}function JO(t,r,o){return Rj(t,r,o).toLowerCase()}function eM(t){return t.type!=="node.status"&&t.type!=="cluster.state"}function tM(t,r,o){return!t.assignedTo||o?.id===t.assignedTo?!0:r?.some(s=>s.id===t.assignedTo)??!1}function nM(t,r){return[...t].sort((o,s)=>o.id===r?-1:s.id===r?1:o.name.localeCompare(s.name))}function aM(t){if(!t||typeof t!="object")return null;const r=t,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 rM(t){return t==="default workspace"?t:t.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??t}function oM(t){const r=Date.now()-t;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 lM(t){return new Date(t).toLocaleString()}function sM(t){const r=Math.floor(t/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 y1(t,r="Copied to clipboard"){try{if(globalThis.navigator?.clipboard?.writeText)return await globalThis.navigator.clipboard.writeText(t),Ce.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=t,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 Ce.success(r),!0}catch(o){return Ce.error(o instanceof Error?o.message:"Failed to copy"),!1}}const Aj="default workspace";function Oi(t){const r=t.replace(/\\/g,"/");return r==="/"||/^[A-Za-z]:\/$/.test(r)?r:r.replace(/\/+$/g,"")||r}function kj(t){const r=t.replace(/\\/g,"/");return r.startsWith("/")||r.startsWith("//")||/^[A-Za-z]:\//.test(r)}function jj(t,r){const o=Oi(t),s=r.replace(/\\/g,"/").replace(/^\/+|\/+$/g,"");return!s||s==="."?o:o==="/"||/^[A-Za-z]:\/$/.test(o)?`${o}${s}`:`${o}/${s}`}function _j(t,r){const o=t.effectiveProjectPath?.trim();if(o)return Oi(o);const s=t.project?.trim();if(!s)return Aj;if(kj(s)||!t.assignedTo)return Oi(s);const c=r?.get(t.assignedTo)?.trim();return c?jj(c,s):Oi(s)}function iM({nodeStatusById:t,nodeNameById:r,nodeFilter:o,searchQuery:s,nodeWorkDirById:c}){const u=o.trim().toLowerCase(),m=s.trim().toLowerCase(),h=[];for(const[v,p]of t){if(p==="offline"||u==="unassigned")continue;const b=r.get(v)??v.slice(0,8);if(!(u&&u!=="all"&&b.toLowerCase()!==u)){if(m){const y=c?.get(v)??"";if(![v,b,y].some(k=>k.toLowerCase().includes(m)))continue}h.push(v)}}return h}function cM(t,r,o,s,c){const u=new Map;for(const h of t){const v=h.assignedTo??null,p=v??"__unassigned__",b=v?r.get(v)??h.assignedNodeName??v.slice(0,8):"Unassigned",y=_j(h,s);u.has(p)||u.set(p,{nodeId:v,nodeName:b,dirMap:new Map});const w=u.get(p);w.dirMap.has(y)||w.dirMap.set(y,[]),w.dirMap.get(y).push(h)}for(const h of c??[])u.has(h)||u.set(h,{nodeId:h,nodeName:r.get(h)??h.slice(0,8),dirMap:new Map});const m=Array.from(u.values()).map(({nodeId:h,nodeName:v,dirMap:p})=>{const b=Array.from(p.entries()).map(([y,w])=>({path:y,tasks:w})).sort((y,w)=>w.tasks.length-y.tasks.length||y.path.localeCompare(w.path));return{nodeId:h,nodeName:v,dirs:b}});return m.sort((h,v)=>{if(o){if(h.nodeId===o)return-1;if(v.nodeId===o)return 1}return h.nodeId===null?1:v.nodeId===null?-1:h.nodeName.localeCompare(v.nodeName)}),m}const Oj=["queued","running"],Mj=["copilot.tunnel","copilot.tunnel.disable"],Dj=1e4;function d0(t){return t?.status==="succeeded"||t?.status==="failed"}function zj(t){return t.reduce((r,o)=>!r||o.updatedAt>r.updatedAt?o:r,null)}async function Uj(t,r=J0){const o=await Promise.all(Mj.flatMap(s=>Oj.map(c=>r({kind:s,status:c,nodeId:t}))));return zj(o.flat())}function f0(t){return t?.split(/\r?\n/).map(r=>r.trim()).filter(Boolean).at(-1)??null}function Lj(t,r){return[t,...r].join(" ")}function Bj(t,r,o){return r&&!t?"Checking port 8314":t?t.status==="queued"?"Queued":t.status==="running"?t.kind==="copilot.tunnel.disable"?"Stopping Meshy-managed tunnel":t.kind==="copilot.tunnel"?t.result?.status==="auth-required"?"Waiting for GitHub device authorization":"Starting Copilot tunnel":"Checking port 8314":t.status==="succeeded"?t.result?.available?t.result.status==="already-running"?"Port 8314 is already reachable":"Proxy is listening on 8314":t.result?.status==="stopped"?"Meshy-managed tunnel stopped":"Port 8314 is not listening":o??"Tunnel operation failed":"Port 8314 status has not been checked"}function Hj(t,r){return r||t?.status==="queued"||t?.status==="running"?f.jsx(iy,{className:"h-3.5 w-3.5 animate-spin text-primary"}):t?.result?.available?f.jsx(Ro,{className:"h-3.5 w-3.5 text-emerald-500"}):t?.status==="failed"?f.jsx(uf,{className:"h-3.5 w-3.5 text-destructive"}):f.jsx(uf,{className:"h-3.5 w-3.5 text-muted-foreground"})}function Pj({checked:t,disabled:r,onCheckedChange:o}){return f.jsx("button",{type:"button",role:"switch","aria-checked":t,"aria-label":"Toggle GitHub Copilot Tunnel",title:t?"Disable GitHub Copilot Tunnel":"Enable GitHub Copilot Tunnel","data-copilot-tunnel-switch":"true",disabled:r,onClick:()=>o(!t),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",t?"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",t?"translate-x-4":"translate-x-0")})})}function $j({nodeId:t,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??f0(p?.stderr)??f0(p?.stdout),w=p?Lj(p.command,p.args):"npx -y ghc-tunnel@latest -d",k=!!p?.available||v&&o?.kind==="copilot.tunnel",A=c||m||v,E=g.useMemo(()=>Bj(o,c,y),[c,y,o]);g.useEffect(()=>{let T=!1;async function R(){u(!0);try{const O=await Uj(t);if(T)return;if(O){s(O);return}const H=await Tv(t);T||s(H)}catch(O){T||Ce.error(O instanceof Error?O.message:"Failed to check Copilot tunnel")}finally{T||u(!1)}}return s(null),R(),()=>{T=!0}},[t]),g.useEffect(()=>{if(!o||d0(o))return;let T=!1;const R=o.id;async function O(){try{const z=await W0(R);if(T)return;if(z.kind==="copilot.tunnel.status"&&!d0(z)&&Date.now()-z.createdAt>Dj){const K=await Tv(t);T||s(K);return}s(z),z.status==="succeeded"&&z.kind==="copilot.tunnel"&&Ce.success(`Copilot tunnel is available on ${r}`),z.status==="succeeded"&&z.kind==="copilot.tunnel.disable"&&Ce.success(`Copilot tunnel stopped on ${r}`),z.status==="failed"&&z.kind!=="copilot.tunnel.status"&&Ce.error(z.error??"Copilot tunnel failed")}catch(z){T||Ce.error(z instanceof Error?z.message:"Failed to refresh Copilot tunnel")}}O();const H=window.setInterval(O,2e3);return()=>{T=!0,window.clearInterval(H)}},[t,r,o?.id,o?.status]);const N=g.useCallback(async T=>{h(!0);try{const R=T?await XE(t):await QE(t);s(R),Ce.info(T?`Copilot tunnel enable requested on ${r}`:`Copilot tunnel stop requested on ${r}`)}catch(R){Ce.error(R instanceof Error?R.message:"Failed to update Copilot tunnel")}finally{h(!1)}},[t,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(oy,{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:Hj(o,c)}),f.jsx(Pj,{checked:k,disabled:A,onCheckedChange:T=>{N(T)}})]})]})}),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(lT,{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:()=>{y1(b.code,"Device code copied")},children:f.jsx(ly,{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(sy,{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})]})]})}function qj({value:t,disabled:r=!1,saving:o=!1,onChange:s}){const c=Af(t);return f.jsxs("div",{"data-default-task-agent-selector":"true",className:"flex shrink-0 flex-col gap-1 sm:items-end",children:[f.jsxs("div",{className:"flex items-center gap-1 text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:[f.jsx(Yf,{className:"h-3 w-3"}),"Default agent"]}),f.jsx("div",{className:"flex h-7 items-center gap-0.5 rounded-sm border border-border/60 bg-background/60 p-0.5",children:v1.map(u=>{const m=u.value===c;return f.jsx("button",{type:"button","data-default-task-agent-option":u.value,"aria-pressed":m,disabled:r||o,onClick:()=>s(u.value),className:ae("h-6 rounded-sm border border-transparent px-2 text-[10px] font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-60",m?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-background/80 hover:text-foreground"),children:u.label},u.value)})})]})}const xc=g.forwardRef(({className:t,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",t),ref:s,...o}));xc.displayName="Input";function Vj(){return ve("/system/quick-chats")}function Ij(t){return ve("/system/quick-chats",{method:"PUT",body:JSON.stringify({quickChats:t})})}const kf="quick-chats:updated";function Yj(){typeof window>"u"||window.dispatchEvent(new CustomEvent(kf))}function Gj(){const[t,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 Vj();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 Ij(b);return r(y.quickChats),h(null),Yj(),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(kf,b),()=>window.removeEventListener(kf,b)},[v]),{error:m,loading:o,quickChats:t,refresh:v,save:p,saving:c}}function b1(t){return t.trim().replace(/^\/+/,"").toLowerCase()}function x1(t,r){const o=t.trim();if(!o.startsWith("/"))return[];const s=b1(o);return r.filter(c=>c.alias.startsWith(s))}function tc(t,r){return r<=0?-1:(t%r+r)%r}function uM(t,r,o=0){const s=x1(t,r),c=tc(o,s.length);return c>=0?s[c]??null:null}function dM(t,r,o){const s=tc(t,r);return s<0?0:tc(s+o,r)}function fM({query:t,quickChats:r,selectedIndex:o=0,onSelect:s,onActiveIndexChange:c}){const u=x1(t,r);if(u.length===0)return null;const m=tc(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(cy,{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 Xj="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 Mi(t,r=0){return{id:t?`${t.alias}:${r}`:`new:${Qj++}`,alias:t?.alias??"",prompt:t?.prompt??""}}function jf(t){return{quickChats:t.map(r=>({alias:b1(r.alias),prompt:r.prompt.trim()})).filter(r=>r.alias.length>0&&r.prompt.length>0)}}function Kj(t,r){const o=jf(t).quickChats,s=r.map((u,m)=>Mi(u,m)),c=jf(s).quickChats;return JSON.stringify(o)!==JSON.stringify(c)}function Zj(){const{error:t,loading:r,quickChats:o,save:s,saving:c}=Gj(),[u,m]=g.useState(()=>o.map((y,w)=>Mi(y,w))),h=u.length>0,v=g.useMemo(()=>jf(u),[u]),p=g.useMemo(()=>Kj(u,o),[u,o]);g.useEffect(()=>{m(o.map((y,w)=>Mi(y,w)))},[o]);async function b(){try{await s(v.quickChats),Ce.success("Quick chats saved")}catch(y){Ce.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(cy,{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,Mi(void 0,y.length)]),className:"h-7 rounded-sm px-2 text-[10px]",children:[f.jsx(hT,{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(iy,{className:"h-3.5 w-3.5 animate-spin"}):f.jsx(wT,{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(xc,{"aria-label":`Quick chat ${w+1} alias`,value:y.alias,onChange:k=>m(A=>A.map(E=>E.id===y.id?{...E,alias:k.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:k=>m(A=>A.map(E=>E.id===y.id?{...E,prompt:k.target.value}:E)),placeholder:"Prompt text",className:Xj}),f.jsx(Ct,{type:"button",variant:"ghost",size:"icon",onClick:()=>m(k=>k.filter(A=>A.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(zT,{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."}),t&&f.jsx("div",{className:"rounded-sm border border-destructive/20 bg-destructive/10 px-3 py-2 text-[11px] text-destructive",children:t})]})}var Sc="Checkbox",[Fj]=Fa(Sc),[Wj,ym]=Fj(Sc);function Jj(t){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}=t,[w,k]=_o({prop:o,defaultProp:c??!1,onChange:v,caller:Sc}),[A,E]=g.useState(null),[N,T]=g.useState(null),R=g.useRef(!1),O=A?!!m||!!A.closest("form"):!0,H={checked:w,disabled:u,setChecked:k,control:A,setControl:E,name:h,form:m,value:b,hasConsumerStoppedPropagationRef:R,required:p,defaultChecked:Ga(c)?!1:c,isFormControl:O,bubbleInput:N,setBubbleInput:T};return f.jsx(Wj,{scope:r,...H,children:e_(y)?y(H):s})}var S1="CheckboxTrigger",w1=g.forwardRef(({__scopeCheckbox:t,onKeyDown:r,onClick:o,...s},c)=>{const{control:u,value:m,disabled:h,checked:v,required:p,setControl:b,setChecked:y,hasConsumerStoppedPropagationRef:w,isFormControl:k,bubbleInput:A}=ym(S1,t),E=We(c,b),N=g.useRef(v);return g.useEffect(()=>{const T=u?.form;if(T){const R=()=>y(N.current);return T.addEventListener("reset",R),()=>T.removeEventListener("reset",R)}},[u,y]),f.jsx(Ue.button,{type:"button",role:"checkbox","aria-checked":Ga(v)?"mixed":v,"aria-required":p,"data-state":R1(v),"data-disabled":h?"":void 0,disabled:h,value:m,...s,ref:E,onKeyDown:ze(r,T=>{T.key==="Enter"&&T.preventDefault()}),onClick:ze(o,T=>{y(R=>Ga(R)?!0:!R),A&&k&&(w.current=T.isPropagationStopped(),w.current||T.stopPropagation())})})});w1.displayName=S1;var bm=g.forwardRef((t,r)=>{const{__scopeCheckbox:o,name:s,checked:c,defaultChecked:u,required:m,disabled:h,value:v,onCheckedChange:p,form:b,...y}=t;return f.jsx(Jj,{__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(w1,{...y,ref:r,__scopeCheckbox:o}),w&&f.jsx(C1,{__scopeCheckbox:o})]})})});bm.displayName=Sc;var E1="CheckboxIndicator",N1=g.forwardRef((t,r)=>{const{__scopeCheckbox:o,forceMount:s,...c}=t,u=ym(E1,o);return f.jsx(Lo,{present:s||Ga(u.checked)||u.checked===!0,children:f.jsx(Ue.span,{"data-state":R1(u.checked),"data-disabled":u.disabled?"":void 0,...c,ref:r,style:{pointerEvents:"none",...t.style}})})});N1.displayName=E1;var T1="CheckboxBubbleInput",C1=g.forwardRef(({__scopeCheckbox:t,...r},o)=>{const{control:s,hasConsumerStoppedPropagationRef:c,checked:u,defaultChecked:m,required:h,disabled:v,name:p,value:b,form:y,bubbleInput:w,setBubbleInput:k}=ym(T1,t),A=We(o,k),E=Vb(u),N=Ob(s);g.useEffect(()=>{const R=w;if(!R)return;const O=window.HTMLInputElement.prototype,z=Object.getOwnPropertyDescriptor(O,"checked").set,K=!c.current;if(E!==u&&z){const I=new Event("click",{bubbles:K});R.indeterminate=Ga(u),z.call(R,Ga(u)?!1:u),R.dispatchEvent(I)}},[w,E,u,c]);const T=g.useRef(Ga(u)?!1:u);return f.jsx(Ue.input,{type:"checkbox","aria-hidden":!0,defaultChecked:m??T.current,required:h,disabled:v,name:p,value:b,form:y,...r,tabIndex:-1,ref:A,style:{...r.style,...N,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});C1.displayName=T1;function e_(t){return typeof t=="function"}function Ga(t){return t==="indeterminate"}function R1(t){return Ga(t)?"indeterminate":t?"checked":"unchecked"}const A1=g.forwardRef(({className:t,...r},o)=>f.jsx(bm,{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",t),...r,children:f.jsx(N1,{className:ae("flex items-center justify-center text-current"),children:f.jsx(Li,{className:"h-3.5 w-3.5"})})}));A1.displayName=bm.displayName;const m0=["queued","running"];function t_(t){return t.map(r=>`${r.id}:${r.name}`).join("\0")}function n_(t){return t==="claude"||t==="codex"||t==="copilot"}function k1(t){if(t.kind!=="agent.upgrade")return null;const r=t.payload?.agent;return n_(r)?`${t.nodeId}:${r}`:null}function a_(t){return t.status==="succeeded"||t.status==="failed"}async function j1(t,r={}){const o=r.getOperation??W0,s=r.pollIntervalMs??2e3,c=r.timeoutMs??24e4,u=Date.now()+c;let m=t;for(;!a_(m)&&Date.now()<u;)await o_(s),m=await o(t.id);return m}async function r_(t,r=J0){const o=new Set(t),s=await Promise.all(m0.map(u=>r({kind:"agent.upgrade",status:u}))),c=new Map;for(const u of s.flat()){if(!m0.includes(u.status)||o.size>0&&!o.has(u.nodeId))continue;const m=k1(u);if(!m)continue;const h=c.get(m);(!h||u.updatedAt>h.updatedAt)&&c.set(m,u)}return c}function o_(t){return new Promise(r=>setTimeout(r,t))}const l_=1500,s_=1e3,i_=9e4;async function _1(t={}){const r=t.fetchHealth??c_,o=t.initialDelayMs??l_,s=t.pollIntervalMs??s_,c=t.previousPid,u=t.reload??(()=>window.location.reload()),m=t.sleep??d_,h=t.timeoutMs??i_,v=Date.now()+h;let p=!1;for(o>0&&await m(o);Date.now()<=v;){const b=u_(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 c_(){try{const t=await fetch("/api/system/health",{cache:"no-store"}),r=await t.json().catch(()=>null),o=r&&typeof r=="object"&&typeof r.pid=="number"?r.pid:void 0;return{ok:t.ok,pid:o}}catch{return!1}}function u_(t){return typeof t=="boolean"?{ok:t}:t}function d_(t){return new Promise(r=>window.setTimeout(r,t))}function f_(t,r=!0){return r?t?.restartMode==="development"?"Restart dev runtime":t?.updateAvailable?"Restart to update":"Restart runtime":t?.updateAvailable?"Restart follower to update":"Restart follower"}function m_({checkedLabel:t,disableAuthDefault:r,endpoint:o,isLiveLocalNode:s,nodeId:c,nodeName:u,onRefresh:m,pid:h,transportType:v,update:p,workDir:b}){const y=f_(p,s),[w,k]=g.useState(null),[A,E]=g.useState(()=>h0({disableAuthDefault:r,endpoint:o,nodeName:u,transportType:v,workDir:b})),[N,T]=g.useState(!1),[R,O]=g.useState(!1),[H,z]=g.useState(!1);g.useEffect(()=>{E(h0({disableAuthDefault:r,endpoint:o,nodeName:u,transportType:v,workDir:b}))},[r,o,u,v,b]);async function K(){if(!c||N||R)return;const de=p.updateAvailable?"update":"restart",fe=g_(A);if(A.port.trim()&&fe?.port===void 0){Ce.error("Runtime restart port must be a positive integer");return}const W=fe?{reason:de,startArgs:fe}:{reason:de};T(!0);try{if(s){const _=await ey(W);k({..._,pid:_.pid??h,status:"accepted"}),Ce.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.`),_1({previousPid:_.pid??h}).then(B=>{B||(T(!1),Ce.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout. Refresh the page after the node finishes starting."))}).catch(B=>{T(!1),Ce.error(B instanceof Error?B.message:"Runtime restart recovery failed")});return}const te=await eN(c,W);k({operationId:te.id,pid:h,status:te.status}),Ce.info(`Restart requested on ${u}. Operation ${Jd(te.id)} will hand off to a detached process, so the new runtime will not stay attached to the original terminal window.`);const se=await j1(te,{timeoutMs:6e4}),X=p_(se);k({command:X?.command,logPath:X?.logPath,mode:X?.mode,operationId:se.id,pid:X?.pid??h,status:se.status}),se.status==="succeeded"?(await m?.(),Ce.success(`Restart handoff accepted on ${u}. Follow ${X?.logPath??"the node restart log"} for launch output.`)):se.status==="failed"?Ce.error(se.error??`Restart failed on ${u}`):Ce.info(`Restart operation ${Jd(se.id)} is still ${se.status}. More details will update after the node reports back.`),T(!1)}catch(te){T(!1),Ce.error(te instanceof Error?te.message:"Runtime restart failed")}}async function I(){if(!(!s||N||R)){O(!0);try{const de=await FE();Ce.info(`Stopping Meshy process ${de.pid}`)}catch(de){O(!1),Ce.error(de instanceof Error?de.message:"Runtime stop failed")}}}const P=N?"restarting":R?"stopping":w?.status??"idle",le=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(Ui,{className:"h-3.5 w-3.5 text-primary shrink-0"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-[11px] font-semibold text-foreground leading-tight",children:"Runtime"}),f.jsx("div",{className:"text-[10px] text-muted-foreground leading-tight",children:le?"Development launcher":`Latest ${p.latestVersion??"—"}`})]})]}),f.jsx("div",{className:"flex items-center gap-1.5",children:f.jsx(_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:le?"dev":p.updateAvailable?`→ ${p.latestVersion}`:"current"})})]}),f.jsxs("div",{className:"grid grid-cols-2 divide-x divide-border/50 border-b border-border/50",children:[f.jsxs("div",{className:"px-3 py-1.5",children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:"PID"}),f.jsx("div",{className:"mt-0.5 font-mono text-[11px] text-foreground",children:h??"—"})]}),f.jsxs("div",{className:"px-3 py-1.5",children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:"Status"}),f.jsx("div",{className:"mt-0.5 text-[11px] text-foreground capitalize",children:P})]})]}),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 ",t]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[s&&f.jsxs(Cf,{children:[f.jsx(Rf,{asChild:!0,children:f.jsxs(Ct,{type:"button",size:"sm",variant:"ghost",disabled:N||R,className:"h-7 rounded-sm px-2 text-[11px] text-muted-foreground hover:bg-destructive/10 hover:text-destructive",children:[f.jsx(gT,{className:ae("mr-1 h-3.5 w-3.5",R&&"animate-pulse")}),R?"Stopping":"Stop"]})}),f.jsxs(Qi,{className:"max-w-[22rem] gap-2 rounded-sm p-4",children:[f.jsxs(Ki,{className:"space-y-1",children:[f.jsx(Fi,{className:"text-sm",children:"Stop runtime?"}),f.jsx(Wi,{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(Zi,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(ec,{className:"h-7 rounded-sm px-2 text-[11px]",children:"Cancel"}),f.jsx(Ji,{className:"h-7 rounded-sm bg-destructive px-2 text-[11px] text-destructive-foreground hover:bg-destructive/90",onClick:()=>{I()},children:"Stop runtime"})]})]})]}),f.jsxs(Cf,{children:[f.jsx(Rf,{asChild:!0,children:f.jsxs(Ct,{type:"button",size:"sm",variant:p.updateAvailable?"default":"outline",disabled:!c||N||R,className:"h-7 rounded-sm px-2 text-[11px]",children:[f.jsx(Ai,{className:ae("mr-1 h-3.5 w-3.5",N&&"animate-spin")}),N?"Restarting…":y]})}),f.jsxs(Qi,{className:"max-w-[28rem] gap-3 rounded-sm p-4",children:[f.jsxs(Ki,{className:"space-y-1",children:[f.jsxs(Fi,{className:"text-sm",children:[y,"?"]}),f.jsxs(Wi,{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(h_,{value:A,onChange:E}),f.jsxs(Zi,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(ec,{className:"h-7 rounded-sm px-2 text-[11px]",children:"Cancel"}),f.jsx(Ji,{className:"h-7 rounded-sm px-2 text-[11px]",onClick:()=>{K()},children:y})]})]})]})]})]}),f.jsxs("div",{className:"border-t border-border/50",children:[f.jsxs("button",{type:"button",onClick:()=>z(de=>!de),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(hy,{className:"h-3 w-3"}),"Restart details"]}),f.jsx(Zl,{className:ae("h-3 w-3 transition-transform duration-150",H&&"rotate-180")})]}),H&&f.jsxs("div",{className:"border-t border-border/50 bg-muted/20 px-3 py-2 space-y-1",children:[f.jsx(Er,{label:"Current PID",value:h===void 0?"—":String(h),mono:h!==void 0}),f.jsx(Er,{label:"Restart PID",value:w?.pid===void 0?"Pending":String(w.pid),mono:w?.pid!==void 0}),f.jsx(Er,{label:"Operation",value:w?.operationId?Jd(w.operationId):"Local direct request",mono:!!w?.operationId}),f.jsx(Er,{label:"Status",value:w?.status??(N?"requested":"idle")}),f.jsx(Er,{label:"Launcher",value:w?.command??"Available after restart",mono:!!w?.command}),f.jsx(Er,{label:"Log",value:w?.logPath??"Available after restart",mono:!!w?.logPath}),f.jsx(Er,{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 h_({onChange:t,value:r}){const o=(s,c)=>{t({...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(Ef,{value:r.transport,onValueChange:s=>o("transport",O1(s)),children:[f.jsx(Gi,{className:"h-7 rounded-md border-border/70 bg-background/70 px-2 text-[10px]",children:f.jsx(Nf,{placeholder:"Transport"})}),f.jsxs(Xi,{children:[f.jsx(ua,{className:"py-1 text-[11px]",value:"inherit",children:"current / default"}),f.jsx(ua,{className:"py-1 text-[11px]",value:"direct",children:"direct"}),f.jsx(ua,{className:"py-1 text-[11px]",value:"devtunnel",children:"devtunnel"}),f.jsx(ua,{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("div",{className:"space-y-1 sm:col-span-2",children:[f.jsx("label",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:"GHC tunnel"}),f.jsxs(Ef,{value:r.ghcTunnel,onValueChange:s=>o("ghcTunnel",v_(s)),children:[f.jsx(Gi,{className:"h-7 rounded-sm border-border/70 bg-background/70 px-2 text-[10px]",children:f.jsx(Nf,{placeholder:"GHC tunnel"})}),f.jsxs(Xi,{children:[f.jsx(ua,{className:"py-1 text-[11px]",value:"inherit",children:"current / remembered"}),f.jsx(ua,{className:"py-1 text-[11px]",value:"enable",children:"enable"}),f.jsx(ua,{className:"py-1 text-[11px]",value:"disable",children:"disable"})]})]})]}),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(A1,{className:"h-3.5 w-3.5",checked:r.disableAuth,onCheckedChange:s=>t({...r,disableAuth:s===!0,disableAuthKnown:!0})}),"Disable auth"]})]})]})}function Pl({className:t,inputMode:r,label:o,onChange:s,value:c}){return f.jsxs("label",{className:ae("space-y-1",t),children:[f.jsx("span",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:o}),f.jsx(xc,{className:"h-7 rounded-md px-2 text-[10px]",inputMode:r,value:c,onChange:u=>s(u.target.value)})]})}function Er({label:t,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:t}),f.jsx("span",{className:ae("break-all text-right text-foreground",o&&"font-mono"),children:r})]})}function p_(t){const r=t.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 h0(t){return{port:y_(t.endpoint),name:t.nodeName,join:"",transport:O1(t.transportType),workDir:t.workDir??"",config:"",disableAuth:t.disableAuthDefault===!0,disableAuthKnown:t.disableAuthDefault!==void 0,ghcTunnel:"inherit"}}function g_(t){const r={},o=Number(t.port.trim());return t.port.trim()&&Number.isInteger(o)&&o>0&&(r.port=o),t.name.trim()&&(r.name=t.name.trim()),t.join.trim()&&(r.join=t.join.trim()),t.transport!=="inherit"&&(r.transport=t.transport),t.workDir.trim()&&(r.workDir=t.workDir.trim()),t.config.trim()&&(r.config=t.config.trim()),t.disableAuthKnown&&(r.disableAuth=t.disableAuth),t.ghcTunnel==="enable"&&(r.ghcTunnel=!0),t.ghcTunnel==="disable"&&(r.ghcTunnel=!1),Object.keys(r).length>0?r:void 0}function O1(t){return t==="direct"||t==="devtunnel"||t==="tailscale"?t:"inherit"}function v_(t){return t==="enable"||t==="disable"?t:"inherit"}function y_(t){if(!t)return"";try{return new URL(t).port||""}catch{return""}}function Jd(t){return t.length<=8?t:t.slice(0,8)}function $l({formatDateTime:t,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:t(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(t){if(t==null||t==="")return"Unavailable";const r=new Date(t);return Number.isNaN(r.getTime())?"Unavailable":new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(r)}function b_(t){const r=Math.max(0,Math.floor(t)),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 p0(t){if(t==null||Number.isNaN(t))return"Unavailable";const r=["B","KB","MB","GB","TB"];let o=t,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 Co(t){return t==="ok"?"default":t==="missing"||t==="install-failed"||t==="login-failed"?"destructive":t==="not-authenticated"||t==="unsupported-platform"?"outline":"secondary"}function x_(t){return t.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(Ro,{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(uf,{className:"h-3.5 w-3.5"})})}function S_(t){return t.update?t.update.updateAvailable?f.jsxs(_t,{variant:"outline",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.14em]",children:["Update ",t.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 w_(t){return t.available?null:t.metadataStatus??null}function E_(t){const r=`npm install -g ${t.update?.packageName}@latest`;return t.id==="claude"?`${r} --include=optional --ignore-scripts=false`:r}function N_(t){return t.error?t.error:t.result?.detail??null}function Fe({label:t,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:t}),f.jsx("span",{className:ae("break-all text-right text-[11px] text-foreground",o&&"font-mono text-[11px]"),children:r})]})}function ql({label:t,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:t}),f.jsx("div",{className:ae("truncate text-[11px] text-foreground",o&&"font-mono",t==="Path"&&"break-all whitespace-normal"),children:r})]})}function T_({agent:t,nodeName:r,activeOperation:o,onUpgrade:s}){const c=t.update?.updateAvailable===!0,u=S_(t),m=!!o,h=w_(t);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(Yf,{className:"h-3.5 w-3.5 shrink-0 text-primary"}),f.jsx("span",{className:"truncate",children:t.label})]}),f.jsxs("div",{className:"truncate text-[10px] text-muted-foreground",children:["Command: ",f.jsx("span",{className:"font-mono text-[10px]",children:t.command})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[x_(t),h&&f.jsx(_t,{variant:Co(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:t.version??"Unavailable",mono:!!t.version}),t.update&&f.jsx(ql,{label:"Latest",value:t.update.latestVersion??"Unavailable",mono:!!t.update.latestVersion}),f.jsx(ql,{label:"Checked",value:qt(t.checkedAt)}),t.update&&f.jsx(ql,{label:"Update check",value:qt(t.update.checkedAt)}),f.jsx(ql,{label:"Path",value:t.path??"Not on PATH",mono:!!t.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(Cf,{children:[f.jsx(Rf,{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(Qi,{children:[f.jsxs(Ki,{children:[f.jsxs(Fi,{children:["Upgrade ",t.label,"?"]}),f.jsxs(Wi,{children:["This runs ",E_(t)," on ",r,". Remote nodes execute the command on the remote machine."]})]}),f.jsxs(Zi,{children:[f.jsx(ec,{children:"Cancel"}),f.jsx(Ji,{onClick:()=>s(t),children:"Upgrade"})]})]})]}):u})]}),t.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:t.update.detail}),t.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:t.detail})]})}function C_(t,r){return t?.nodes?.length?t.nodes:r?[r]:[]}function R_(t,r){if(r&&t.id===r.nodeId)return r;const o=t.settingsSnapshot;return{...t,nodeId:t.id,version:o?.version??"Unavailable",packageName:o?.packageName,uptime:o?.uptime??0,defaultTaskAgent:o?.defaultTaskAgent,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 A_(t,r){return t.id===r?`${t.name} (this node)`:`${t.name} (${t.role})`}function k_(t){return t==="claude"?"Claude Code":t==="copilot"?"Copilot CLI":"Codex"}function j_(t){const r=t.payload?.agent;return r==="claude"||r==="codex"||r==="copilot"?r:null}function __({cluster:t,systemInfo:r,sseConnected:o,initialSelectedNodeId:s,onRefresh:c}){const u=g.useMemo(()=>C_(t,r),[t,r]),[m,h]=g.useState(()=>s??r?.nodeId??t?.self?.id??""),[v,p]=g.useState(()=>new Map),[b,y]=g.useState("codex"),[w,k]=g.useState(!1),A=g.useRef(new Set),E=g.useRef(new Set),N=t?.self??r??u[0]??null,T=u.find(X=>X.id===m)??N,R=T?R_(T,r):null,O=!!(r&&T&&T.id===r.nodeId),H=O||!!T?.settingsSnapshot,z=R?.runtimeUpdate,K=Af(R?.defaultTaskAgent),I=R?.startupRequirements?.components??R?.components??{},P=g.useMemo(()=>u.map(X=>X.id),[u]),le=P.join("\0"),de=t_(u),fe=g.useMemo(()=>new Map(u.map(X=>[X.id,X.name])),[de]);g.useEffect(()=>{s&&P.includes(s)&&h(s)},[s,le]),g.useEffect(()=>{y(K)},[T?.id,K]);const W=g.useCallback(async(X,_)=>{const B=k1(X);if(!B||A.current.has(X.id))return;const Q=j_(X),ue=_?.agentLabel??(Q?k_(Q):"Agent"),C=_?.nodeName??fe.get(X.nodeId)??X.nodeId;A.current.add(X.id),p(V=>new Map(V).set(B,X));try{const V=await j1(X);if(V.status==="succeeded")await c?.(),E.current.has(V.id)||(Ce.success(`${ue} upgrade finished on ${C}`),E.current.add(V.id));else if(V.status==="failed")E.current.has(V.id)||(Ce.error(N_(V)??`${ue} upgrade failed`),E.current.add(V.id));else{p(re=>new Map(re).set(B,V)),Ce.info(`${ue} upgrade is still ${V.status} on ${C}`);return}p(re=>{const Y=new Map(re),ee=Y.get(B);return(!ee||ee.id===V.id)&&Y.delete(B),Y})}catch(V){p(re=>{const Y=new Map(re),ee=Y.get(B);return(!ee||ee.id===X.id)&&Y.delete(B),Y}),Ce.error(V instanceof Error?V.message:`${ue} upgrade failed`)}finally{A.current.delete(X.id)}},[c,fe]);g.useEffect(()=>{if(P.length===0)return;let X=!1;async function _(){let B;try{B=await r_(P)}catch{return}if(!X){p(Q=>{const ue=new Map(Q);for(const[C,V]of B)ue.set(C,V);return ue});for(const Q of B.values())W(Q)}}return _(),()=>{X=!0}},[W,le]);async function te(X){if(T)try{const _=await JE(T.id,X.id);Ce.info(`${X.label} upgrade started on ${T.name}`),await W(_,{agentLabel:X.label,nodeName:T.name})}catch(_){Ce.error(_ instanceof Error?_.message:`${X.label} upgrade failed`)}}async function se(X){if(!O||X===K)return;const _=b;y(X),k(!0);try{const B=await ZE(X);y(Af(B.defaultTaskAgent)),await c?.(),Ce.success("Default agent updated")}catch(B){y(_),Ce.error(B instanceof Error?B.message:"Failed to update default agent")}finally{k(!1)}}return!T||!R?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:[!O&&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(T.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(vj,{status:T.status}),f.jsx("span",{className:"font-medium text-foreground",children:T.name})]}),f.jsx(yj,{role:T.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:T.transportType??R.transportType??"direct"}),f.jsx(_t,{variant:O?"default":"outline",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.16em]",children:O?"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(Ef,{value:T.id,onValueChange:h,children:[f.jsx(Gi,{className:"h-7 rounded-sm border-border/70 bg-background/70 text-[11px]",children:f.jsx(Nf,{placeholder:"Choose a node"})}),f.jsx(Xi,{className:"settings-node-select-content rounded-sm text-[10px] leading-4",children:u.map(X=>f.jsx(ua,{value:X.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:A_(X,r?.nodeId)},X.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(yT,{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 ",b_(R.uptime)]})]})]})]}),!H&&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(nj,{defaultValue:"session",className:"space-y-2",children:[f.jsxs(Qx,{className:"h-auto flex-wrap rounded-sm border border-border/60 bg-muted/40 p-0.5",children:[f.jsx(Yl,{value:"session",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Session"}),f.jsx(Yl,{value:"access",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Access"}),f.jsx(Yl,{value:"quick-chats",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Quick chats"}),f.jsx(Yl,{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(fy,{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:R.nodeId,mono:!0}),f.jsx(Fe,{label:"Status",value:T.status}),f.jsx(Fe,{label:"Role",value:T.role}),f.jsx(Fe,{label:"Endpoint",value:T.endpoint,mono:!0}),f.jsx(Fe,{label:"Joined",value:qt(T.joinedAt)}),f.jsx(Fe,{label:"Heartbeat",value:qt(T.lastHeartbeat)}),f.jsx(Fe,{label:"Capabilities",value:T.capabilities.length>0?T.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(FN,{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:R.os?.hostname??"Unavailable"}),f.jsx(Fe,{label:"Platform",value:R.os?`${R.os.platform} ${R.os.release}`:"Unavailable"}),f.jsx(Fe,{label:"Arch",value:R.os?.arch??"Unavailable"}),f.jsx(Fe,{label:"CPU",value:R.os?.cpuModel??"Unavailable"}),f.jsx(Fe,{label:"Cores",value:String(R.os?.cpuCount??"Unavailable")}),f.jsx(Fe,{label:"Memory",value:R.os?`${p0(R.os.freeMemoryBytes)} free / ${p0(R.os.totalMemoryBytes)} total`:"Unavailable"})]})]}),z&&f.jsx("div",{className:"xl:col-span-2",children:f.jsx(m_,{checkedLabel:qt(z.checkedAt),disableAuthDefault:R.auth?.enabled===void 0?void 0:R.auth.enabled===!1,endpoint:T.endpoint,isLiveLocalNode:O,nodeId:T.id,nodeName:T.name,onRefresh:c,pid:R.runtime?.pid,transportType:T.transportType,update:z,workDir:R.runtime?.workDir??T.workDir})}),f.jsx($j,{nodeId:T.id,nodeName:T.name}),f.jsxs(Sn,{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 flex-col gap-2 sm:flex-row sm:items-start sm:justify-between",children:[f.jsxs("div",{className:"min-w-0 space-y-1",children:[f.jsxs(En,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(Yf,{className:"h-3.5 w-3.5 text-primary"}),"Available agents"]}),f.jsx(Nn,{className:"text-[10px]",children:O?"Live command availability for runtime agents on this node.":"Most recent agent availability snapshot synced from this node."})]}),f.jsx(qj,{value:w?b:K,disabled:!O,saving:w,onChange:se})]})}),f.jsx(Tn,{"data-agent-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:(R.agents??[]).map(X=>f.jsx(T_,{agent:X,nodeName:T.name,activeOperation:v.get(`${T.id}:${X.id}`),onUpgrade:te},X.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(oy,{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:T.transportType??R.transportType??"direct"}),f.jsx(Fe,{label:"Node URL",value:T.endpoint,mono:!0}),f.jsx(Fe,{label:"Node tunnel",value:T.devtunnelEndpoint??"Disabled",mono:!!T.devtunnelEndpoint}),f.jsx(Fe,{label:"Dashboard URL",value:T.dashboardOrigin??R.localDashboardOrigin??"Unavailable",mono:!!(T.dashboardOrigin||R.localDashboardOrigin)}),f.jsx(Fe,{label:"Local dashboard",value:R.localDashboardOrigin??"Unavailable",mono:!!R.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(kT,{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:R.auth?.enabled?"Yes":"No"}),f.jsx(Fe,{label:"Same tenant",value:R.auth?.allowSameTenant?"Allowed":"Off"}),f.jsx(Fe,{label:"Allowed users",value:R.auth?.allowedUsers.length?R.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(eT,{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:R.runtime?.workDir??R.workDir??"Unavailable",mono:!!(R.runtime?.workDir??R.workDir)}),f.jsx(Fe,{label:"Storage",value:R.runtime?.storagePath??"Unavailable",mono:!!R.runtime?.storagePath}),f.jsx(Fe,{label:"Process cwd",value:R.runtime?.cwd??"Unavailable",mono:!!R.runtime?.cwd}),f.jsx(Fe,{label:"Started",value:qt(R.runtime?.startedAt)}),f.jsx(Fe,{label:"PID",value:R.runtime?String(R.runtime.pid):"Unavailable",mono:!!R.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(Ui,{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(R.startupRequirements?.lastCheckedAt)})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsx($l,{formatDateTime:qt,name:"Azure CLI",status:I.az,statusVariant:Co}),f.jsx($l,{formatDateTime:qt,name:"DevTunnel",status:I.devtunnel,statusVariant:Co}),f.jsx($l,{formatDateTime:qt,name:"Claude Code",status:I.claude,statusVariant:Co}),f.jsx($l,{formatDateTime:qt,name:"Codex",status:I.codex,statusVariant:Co}),f.jsx($l,{formatDateTime:qt,name:"Copilot CLI",status:I.copilot,statusVariant:Co})]})]})]})]}),f.jsx(Gl,{value:"quick-chats",className:"mt-0",children:f.jsx(Zj,{})}),f.jsx(Sj,{formatDateTime:qt,viewInfo:R})]})]})}function O_({initialSelectedNodeId:t,open:r,onOpenChange:o,showTrigger:s=!0}={}){const{cluster:c,systemInfo:u,sseConnected:m,refresh:h}=ay();return f.jsx(YA,{open:r,onOpenChange:o,showTrigger:s,children:f.jsx(__,{cluster:c,systemInfo:u,sseConnected:m,initialSelectedNodeId:t,onRefresh:h})})}const nc="meshy:show-live-events";function M1(){const t=globalThis.window;if(!t)return;const r=typeof t.CustomEvent=="function"?new t.CustomEvent(nc):new t.Event(nc);t.dispatchEvent(r)}function mM(t){const r=globalThis.window;return r?(r.addEventListener(nc,t),()=>r.removeEventListener(nc,t)):()=>{}}const M_={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"},D_={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 z_(t){return t.split(".")[0]??"unknown"}function U_(t){return new Date(t).toLocaleTimeString("en-US",{hour12:!1})}function No(t,r,o){return typeof o=="string"&&o.length>0?o:r?.get(t)??t}function D1(t,r){const o=t.data,s=o.operation;switch(t.type){case"node.joined":return`${o.name} joined the cluster`;case"node.left":return`${No(o.nodeId,r,o.name)} left (${o.reason})`;case"node.status":return`${No(o.nodeId,r)} is now ${o.status}`;case"node.operation.created":return`${s?.kind} ${s?.status} on ${No(s?.nodeId,r)}`;case"node.operation.updated":return`${s?.kind} ${s?.status} on ${No(s?.nodeId,r)}`;case"transport.changed":return`${No(o.nodeId,r)} transport switched to ${o.transportType}`;case"task.created":return`"${o.title}" created`;case"task.assigned":return`task assigned to ${No(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 L_(t){return JSON.stringify(t,null,2)}function B_({events:t,maxHeight:r="400px",nodeNameById:o,onDismiss:s,onSelect:c,density:u="default"}){if(t.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:t.map(h=>{const v=z_(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:U_(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",D_[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",M_[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(),y1(L_(h),"Event copied")},"aria-label":`Copy ${h.type} event`,title:"Copy event",children:f.jsx(ly,{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(py,{className:m?"h-2.5 w-2.5":"h-3 w-3"})})]})]}),f.jsx("div",{className:"text-[9px] leading-snug text-foreground/85",children:D1(h,o)})]})},h.id)})})})}function z1(t){return t!==null}function U1(t){return t==="click"?t:"hover"}function _f(t){return t==="hover"?null:t}function L1(t){return t==="click"?null:"click"}const H_=["node.","election.","transport."],P_="cluster.state";function $_(t){return t.type==="node.status"?!1:H_.some(r=>t.type.startsWith(r))}function q_(t){return new Date(t).toLocaleTimeString("en-US",{hour12:!1})}function V_(t,r){return t?{time:q_(t.timestamp),text:D1(t,r)}:null}function I_(t){return t.transportType==="devtunnel"||!!t.devtunnelEndpoint}function Y_(t){if(t.length===0)return"No node tunnel";const r=t.filter(c=>c.status==="offline").length;if(r>0)return`${r} offline`;const o=t.filter(c=>c.devtunnelHealth?.status==="failed").length;if(o>0)return`${o} failed`;const s=t.filter(c=>c.status!=="offline"&&c.devtunnelHealth?.status!=="healthy").length;return s>0?`${s} checking`:"Healthy"}function G_(t,r){const o=r?.get(t.id)??t.name??t.id;if(t.status==="offline")return{label:o,status:"offline"};const s=t.devtunnelHealth?.status??"checking";return{label:o,status:s}}function X_(t){if(t.length===0)return"No nodes";const r=t.filter(s=>s.status==="offline").length;if(r>0)return`${r} offline`;const o=t.filter(s=>s.status==="busy").length;return o>0?`${o} busy`:"Healthy"}function Q_(t,r){return{label:r?.get(t.id)??t.name??t.id,status:t.status}}function K_({connected:t,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:k,onRestart:A}){const[E,N]=g.useState(v?"click":null),[T,R]=g.useState(p),[O,H]=g.useState(!0),[z,K]=g.useState(new Set),[I,P]=g.useState(!1),[le,de]=g.useState(!1),fe=z1(E),W=g.useRef(null),te=g.useRef(null),se=g.useMemo(()=>r.filter(be=>$_(be)&&!z.has(be.id)),[r,z]),X=g.useMemo(()=>r.find(be=>be.type===P_)??se[0],[r,se]),_=g.useMemo(()=>V_(X,c),[X,c]),B=g.useMemo(()=>{const be=new Map(o.map(Xe=>[Xe.id,Xe]));return s&&be.set(s.id,s),Array.from(be.values())},[s,o]),Q=g.useMemo(()=>B.filter(I_),[B]),ue=Q.some(be=>be.status==="offline"||be.devtunnelHealth?.status==="failed"),C=B.some(be=>be.status==="offline"),V=B.some(be=>be.status==="busy"),re=B.length>0,Y=s?.name??"offline",ee=s?.role==="leader"?"Leader":s?.role==="follower"?"Follower":"Node",J=u!==null,ne=!!(J&&u?.updateAvailable&&u.latestVersion),ie=u?.latestVersion??null,ce=!!(J&&!ne&&ie),xe=!!(J&&u?.detail==="Checking desktop update..."),Re=!!(J&&!ne&&!ie&&u?.detail&&!xe),Ne=h?.percent??null,Ae=Ne===null?null:`${Ne}%`,et=I?"Relaunching runtime...":"Relaunch to apply update",rt=Ae?`Downloading ${Ae}`:le?"Downloading and installing desktop update...":ne&&ie?`Available version ${ie}`:Re?u?.detail??"Desktop update unavailable":"Desktop is current",hn=!!k,pn=!!(J&&w),er=!!(J&&b)||hn||pn,pt=J||!!A,_r=J||!!A||hn,In=pt?J?ne?"Update":ce?"Latest":"Check":"Relaunch":"Reload",it=J&&!ne,gn=it?"Check":In,Or=pt?J?rt:et:"Reload dashboard page",ga=pt?J?le||h!==null:I:!1,It=pt?J?ga||!ne||!y:ga:!1,Rt=m||le||!b,Ut=J?ne&&ie?`Install desktop update ${ie}`:Re?"Desktop update unavailable":"Desktop is current":pt?I?"Relaunching runtime":"Relaunch runtime":"Reload dashboard page";function Je(){te.current&&(clearTimeout(te.current),te.current=null)}function On(){Je(),N(be=>U1(be))}function Mr(){Je(),te.current=setTimeout(()=>{N(be=>_f(be)),te.current=null},180)}function Mn(){Je()}function va(){Je(),N(be=>_f(be))}async function ya(){if(!(!A||I)){P(!0);try{await A()}finally{P(!1)}}}async function nn(){if(!(!ne||!y||le)){de(!0);try{await y()}finally{de(!1)}}}async function Yn(){!b||m||le||await b()}async function Gn(){if(!(!w||I)){R(!1),P(!0);try{await w()}finally{P(!1)}}}async function ba(){if(!pt){await Lt();return}if(J){await nn();return}await ya()}async function Lt(){k&&(R(!1),await k())}function tr(){K(be=>{const Xe=new Set(be);return se.forEach(me=>Xe.add(me.id)),Xe})}function nr(){M1(),N(null)}return g.useEffect(()=>()=>{Je()},[]),g.useEffect(()=>{K(be=>{if(be.size===0)return be;const Xe=new Set(r.map(He=>He.id)),me=new Set(Array.from(be).filter(He=>Xe.has(He)));return me.size===be.size?be:me})},[r]),g.useEffect(()=>{fe||R(!1)},[fe]),g.useEffect(()=>{if(!fe)return;const be=me=>{W.current?.contains(me.target)||(Je(),R(!1),N(null))},Xe=me=>{me.key==="Escape"&&(Je(),R(!1),N(null))};return document.addEventListener("pointerdown",be),document.addEventListener("keydown",Xe),()=>{document.removeEventListener("pointerdown",be),document.removeEventListener("keydown",Xe)}},[fe]),f.jsxs("div",{ref:W,className:"relative",children:[f.jsxs("button",{type:"button","aria-label":t?"Cluster link connected":"Cluster link reconnecting","aria-expanded":fe,"aria-haspopup":"dialog",onClick:()=>N(be=>L1(be)),onMouseEnter:On,onMouseLeave:Mr,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]",t?"bg-muted/40 text-muted-foreground hover:bg-muted/60 hover:text-foreground":"bg-destructive/8 text-destructive hover:bg-destructive/12",fe&&(t?"bg-muted/60 text-foreground":"bg-destructive/12")),title:t?"Cluster link connected":"Cluster link reconnecting",children:[f.jsxs("span",{className:ae("relative flex h-2 w-2 shrink-0"),children:[t&&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",t?"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:Y}),f.jsx("span",{className:ae("shrink-0 rounded border px-1 py-px text-[8px] font-semibold uppercase tracking-[0.1em]",t?"border-emerald-500/25 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-destructive/30 bg-destructive/10 text-destructive"),children:ee})]})]}),fe&&f.jsxs("div",{role:"dialog","aria-label":"Live link connection events",onMouseEnter:Mn,onMouseLeave:va,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:[t?f.jsx(Ui,{className:"h-3 w-3 text-emerald-500"}):f.jsx(LT,{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:t?"· 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]",t?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-destructive/30 bg-destructive/10 text-destructive"),children:t?"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:se.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:[C?f.jsx(gi,{className:"h-3 w-3 shrink-0 text-destructive"}):V?f.jsx(Ui,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx(Ro,{className:ae("h-3 w-3 shrink-0",re?"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]",C?"border-destructive/30 bg-destructive/10 text-destructive":V?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":re?"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:X_(B)})]}),B.length>0&&f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:B.map(be=>{const{label:Xe,status:me}=Q_(be,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(gi,{className:"h-3 w-3 shrink-0 text-destructive"}):Qe?f.jsx(Av,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx(Ro,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},be.id)})})]}),Q.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:[ue?f.jsx(gi,{className:"h-3 w-3 shrink-0 text-destructive"}):f.jsx(Ro,{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]",ue?"border-destructive/30 bg-destructive/10 text-destructive":"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"),children:Y_(Q)})]}),f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:Q.map(be=>{const{label:Xe,status:me}=G_(be,c),He=me==="failed"||me==="offline",Qe=me!=="healthy"&&me!=="failed"&&me!=="offline",gt=be.devtunnelHealth?.reason?`${Xe} ${me}: ${be.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(gi,{className:"h-3 w-3 shrink-0 text-destructive"}):Qe?f.jsx(Av,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):f.jsx(Ro,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},be.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:()=>H(be=>!be),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 ",se.length>0&&`(${se.length})`]}),O?f.jsx(Zl,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):f.jsx(cf,{className:"h-3 w-3 shrink-0 text-muted-foreground"})]}),!O&&se.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:tr,title:"Clear all notifications",children:"Clear all"})]}),O&&f.jsx("div",{className:"px-2 pb-1.5",children:f.jsx(B_,{events:se,maxHeight:"10rem",density:"compact",emptyTitle:"No connection events yet",emptyDescription:"Node, election, and system events will appear here.",nodeNameById:c,onSelect:nr,onDismiss:be=>K(Xe=>new Set(Xe).add(be))})})]}),J&&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:_r&&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:()=>{ba()},disabled:It,"aria-label":Ut,"aria-describedby":"live-link-restart-hint",title:Or,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(kv,{className:ae("relative z-10 h-2.5 w-2.5",ga&&"animate-pulse")}),f.jsx("span",{className:"relative z-10",children:Ae??In})]}),er&&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:()=>R(be=>!be),"aria-label":"Open live link actions","aria-expanded":T,title:"Live link actions",children:f.jsx(Zl,{className:"h-2.5 w-2.5"})})]}),er&&T&&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?Yn():ba()},disabled:it?Rt:It,"aria-label":it?"Check for desktop updates":Ut,children:[it?f.jsx(Ai,{className:ae("h-2.5 w-2.5",m&&"animate-spin")}):f.jsx(kv,{className:ae("h-2.5 w-2.5",ga&&"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(Ai,{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:I,"aria-label":"Restart Meshy Desktop",children:[f.jsx(Ai,{className:ae("h-2.5 w-2.5",I&&"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:Or})]})}),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:tr,disabled:se.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:()=>N(null),children:"Close"})]})]})]})]})}const g0="dark",kr="fluent",Z_="clean",ef="meshy-layout-default-migrated-to-compact",Of="true",F_="compact",W_=new Set(["airy","clean","fluent"]);function J_(t){return t!==null&&W_.has(t)}function wc(t){return t===F_?"fluent":J_(t)?t:null}function e3(t,r){const o=wc(t);return o===Z_&&r!==Of?kr:o??kr}const ac="symphony",B1="default",t3=new Set(["light","dark","system"]),n3=new Set(["porcelain","warm","finsight","edge","symphony","launcher"]),H1=g.createContext(null);function a3(t){const r=new URLSearchParams(t).get("theme");return P1(r)?r:null}function r3(t){const r=new URLSearchParams(t).get("palette");return xm(r)}function o3(t){const r=new URLSearchParams(t).get("layout");return wc(r)}function l3(){if(typeof document>"u")return null;const t=document.documentElement;return{theme:t.classList.contains("dark")?"dark":"light",palette:xm(t.getAttribute("data-palette"))??ac,layout:wc(t.getAttribute("data-layout"))??kr}}function hM(t,r=l3()){if(!r)return t;try{const o=/^[a-z][a-z\d+\-.]*:/i.test(t),s=typeof window<"u"?window.location.href:"http://localhost",c=new URL(t,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 t}}const tf=.9;function v0(t){const r=t.trim().match(/^(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)%\s+(-?\d+(?:\.\d+)?)%$/);if(!r)return null;const o=(Number(r[1])%360+360)%360/60,s=rc(Number(r[2])/100,0,1),c=rc(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 s3(t){const r=t.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[To(Number(o[1])),To(Number(o[2])),To(Number(o[3])),x0(o[4])];const s=r.match(/^rgba?\(\s*([+-]?\d+(?:\.\d+)?)\s+([+-]?\d+(?:\.\d+)?)\s+([+-]?\d+(?:\.\d+)?)(?:\s*\/\s*([+-]?\d+(?:\.\d+)?%?))?\s*\)$/i);return s?[To(Number(s[1])),To(Number(s[2])),To(Number(s[3])),x0(s[4])]:null}function i3(t,r,o){const s=v0(t);if(!s)return null;if(o==="clean"||o==="fluent")return s;const c=v0(r);return c?[nf(s[0],c[0],tf),nf(s[1],c[1],tf),nf(s[2],c[2],tf),255]:null}function c3(){const t=document.querySelector(".dashboard-shell-header-panel");if(!t)return null;const r=s3(getComputedStyle(t).backgroundColor);return!r||r[3]===0?null:r}function y0(){if(typeof window>"u"||typeof document>"u")return;const t=window.__TAURI__?.core?.invoke??null;if(!t)return;const r=document.documentElement,o=r.classList.contains("dark")?"dark":"light",s=getComputedStyle(r),c=wc(r.getAttribute("data-layout"))??kr,u=c3()??i3(s.getPropertyValue("--card"),s.getPropertyValue("--background"),c);t("sync_desktop_theme",{theme:o,backgroundColor:u}).catch(()=>{})}function b0(){if(typeof window>"u")return()=>{};if(y0(),typeof window.requestAnimationFrame!="function")return()=>{};const t=window.requestAnimationFrame(()=>y0());return()=>window.cancelAnimationFrame(t)}function nf(t,r,o){return Math.round(t*o+r*(1-o))}function rc(t,r,o){return Math.min(Math.max(t,r),o)}function To(t){return Math.round(rc(t,0,255))}function x0(t){if(t==null||t==="")return 255;const r=t.endsWith("%")?Number(t.slice(0,-1))/100:Number(t);return Math.round(rc(r,0,1)*255)}function u3({children:t}){const[r,o]=g.useState(()=>typeof window<"u"?a3(window.location.search)??m3(localStorage.getItem("meshy-theme"))??g0:g0),[s,c]=g.useState(()=>typeof window<"u"?r3(window.location.search)??h3(localStorage.getItem("meshy-palette"))??ac:ac),[u,m]=g.useState(()=>{if(typeof window<"u"){const h=o3(window.location.search);if(h)return localStorage.setItem(ef,Of),h;const v=e3(localStorage.getItem("meshy-layout"),localStorage.getItem(ef));return localStorage.setItem(ef,Of),v}return kr});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"),b0()};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===kr?h.removeAttribute("data-layout"):h.setAttribute("data-layout",u),localStorage.setItem("meshy-layout",u)},[u]),g.useEffect(()=>b0(),[r,s,u]),f.jsx(H1.Provider,{value:{theme:r,setTheme:o,palette:s,setPalette:c,layout:u,setLayout:m},children:t})}function d3(){const t=g.useContext(H1);if(!t)throw new Error("useTheme must be used within ThemeProvider");return t}function P1(t){return t!==null&&t3.has(t)}function f3(t){return t!==null&&n3.has(t)}function m3(t){return P1(t)?t:null}function xm(t){return t===B1?"porcelain":f3(t)?t:null}function h3(t){return t===B1?null:xm(t)}const p3=[{value:"light",label:"Light",icon:my},{value:"dark",label:"Dark",icon:dy},{value:"system",label:"System",icon:uy}],$1=[{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"}],q1=[{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 g3(){const{theme:t,setTheme:r,palette:o,setPalette:s,layout:c,setLayout:u}=d3(),[m,h]=g.useState(null),v=g.useRef(null),p=g.useRef(null),b=z1(m),y=t==="dark"?dy:t==="light"?my:uy,w=()=>{v.current&&(clearTimeout(v.current),v.current=null)},k=()=>{w(),v.current=setTimeout(()=>h(A=>_f(A)),180)};return g.useEffect(()=>{if(!b)return;const A=E=>{p.current&&!p.current.contains(E.target)&&h(null)};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[b]),g.useEffect(()=>()=>w(),[]),f.jsxs("div",{ref:p,className:"relative",onMouseEnter:()=>{w(),h(A=>U1(A))},onMouseLeave:k,children:[f.jsx(Ct,{variant:"ghost",size:"icon",onClick:()=>h(A=>L1(A)),className:ae("h-8 w-8 rounded-sm",o!==ac||c!==kr?"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:[v3(c)," / ",y3(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:t})]}),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:p3.map(({value:A,label:E,icon:N})=>{const T=t===A;return f.jsxs("button",{type:"button",onClick:()=>r(A),role:"menuitemradio","aria-checked":T,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",T?"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(N,{className:"h-3 w-3"}),E]},A)})}),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:q1.map(({value:A,label:E,hint:N})=>{const T=c===A;return f.jsxs("button",{type:"button",onClick:()=>u(A),role:"menuitemradio","aria-checked":T,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",T?"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",T?"text-primary":"text-foreground"),children:E}),f.jsx("div",{className:"mt-0.5 text-[8px] leading-tight text-muted-foreground",children:N})]}),T&&f.jsx(Li,{className:"h-3 w-3 text-primary"})]},A)})})]}),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(_T,{className:"h-2.5 w-2.5"}),"Palette"]}),f.jsx("div",{className:"space-y-1",children:$1.map(({value:A,label:E,hint:N})=>{const T=o===A;return f.jsxs("button",{type:"button",onClick:()=>s(A),role:"menuitemradio","aria-checked":T,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",T?"border-primary/55 bg-primary/10":"border-border/45 bg-background/45 hover:border-border hover:bg-muted/55"),children:[f.jsx(b3,{value:A}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("div",{className:ae("text-[10px] font-medium leading-tight",T?"text-primary":"text-foreground"),children:E}),f.jsx("div",{className:"mt-0.5 text-[8px] leading-tight text-muted-foreground",children:N})]}),T&&f.jsx(Li,{className:"h-3 w-3 text-primary"})]},A)})})]})]})]})]})}function v3(t){return q1.find(r=>r.value===t)?.label??t}function y3(t){return $1.find(r=>r.value===t)?.label??t}function b3({value:t}){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[t];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}},V1="meshy-dashboard-panel-state-v2",I1="meshy-dashboard-terminal-open-v1";function pM({operationsOpen:t}){return{layout:{desktopTasksOpen:!0,operationsOpen:t},sizes:{tasks:Xl.tasks.defaultSize,operations:Xl.operations.defaultSize,terminal:Xl.terminal.defaultSize}}}function af(t){return typeof t=="object"&&t!==null}function S0(t,r){return typeof t=="boolean"?t:r}function rf(t,r,o){return typeof r=="number"&&Number.isFinite(r)?Ql(t,r):o}function Ql(t,r){const o=Xl[t];return Math.min(o.max,Math.max(o.min,r))}function gM(t,r){if(!t)return r;try{const o=t.getItem(V1);if(!o)return r;const s=JSON.parse(o);if(!af(s))return r;const c=af(s.layout)?s.layout:{},u=af(s.sizes)?s.sizes:{};return{layout:{desktopTasksOpen:S0(c.desktopTasksOpen,r.layout.desktopTasksOpen),operationsOpen:S0(c.operationsOpen,r.layout.operationsOpen)},sizes:{tasks:rf("tasks",u.tasks,r.sizes.tasks),operations:rf("operations",u.operations,r.sizes.operations),terminal:rf("terminal",u.terminal,r.sizes.terminal)}}}catch{return r}}function vM(t,r){if(t)try{t.setItem(V1,JSON.stringify(r))}catch{}}function x3(t,r){if(!t)return r;try{const o=t.getItem(I1);return o==="true"?!0:o==="false"?!1:r}catch{return r}}function S3(t,r){if(t)try{t.setItem(I1,String(r))}catch{}}function w0(){try{return globalThis.window?.localStorage??globalThis.localStorage??null}catch{return null}}function yM(t){return`${Number(t.toFixed(2))}rem`}function bM(t,r,o,s,c,u,m){const h=Number.isFinite(m)&&m>0?m:16;return t==="tasks"?Ql(t,r+(c-o)/h):t==="operations"?Ql(t,r+(o-c)/h):Ql(t,r+(s-u)/h)}function xM(t,r,o){const s=o===0?0:o>0?-1:1;return Ql(t,r+s*Xl[t].wheelStep)}const w3=7200*1e3,E3=15*1e3,N3="meshy://desktop-update-progress",T3="Desktop update check timed out";function C3(){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 R3(){return typeof window>"u"?null:window.__TAURI__?.event?.listen??null}function A3(t){if(!t||typeof t!="object")return null;const r=t;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 E0(t){return{currentVersion:null,latestVersion:null,updateAvailable:!1,checkedAt:new Date().toISOString(),releaseUrl:null,assetName:null,installable:!1,detail:t}}async function k3(t,r,o){let s;const c=new Promise((u,m)=>{s=setTimeout(()=>{m(new Error(T3))},r)});try{return await Promise.race([t,c])}finally{s!==void 0&&clearTimeout(s)}}async function j3({activeCheck:t,startCheck:r,timeoutMs:o,shouldApply:s,applyUpdate:c,applyFailure:u,failureFallback:m="Desktop update check failed"}){let h=t.current;if(!h){let v;try{v=r()}catch(p){v=Promise.reject(p)}h=k3(v,o),t.current=h}try{const v=await h;return s()&&c(v),v}catch(v){return s()&&u(Mf(v,m)),null}finally{t.current===h&&(t.current=null)}}function Mf(t,r){if(t instanceof Error&&t.message.trim())return t.message;if(typeof t=="string"&&t.trim())return t;if(t&&typeof t=="object"&&"message"in t){const o=t.message;if(typeof o=="string"&&o.trim())return o}return r}function _3(t){return t.openedRelease?"Opened the latest Meshy release page.":t.installMethod==="tauri-updater"?"Installing desktop update. Meshy will relaunch to finish updating.":(t.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 O3(){const{cluster:t,events:r,sseConnected:o,systemInfo:s}=ay(),c=jn(),[u,m]=g.useState(()=>x3(w0(),!1)),[h,v]=g.useState(""),[p,b]=g.useState(null),[y,w]=g.useState(null),[k,A]=g.useState(!1),[E,N]=g.useState(null),T=g.useRef(null),R=!!Vl(),O=R?"max-w-none":"max-w-[1760px]",H=c.pathname==="/"||/^\/tasks\/[^/]+$/.test(c.pathname),z=g.useMemo(()=>{const W=new Map;for(const te of t?.nodes??[])W.set(te.id,te.name);return t?.self&&W.set(t.self.id,t.self.name),W},[t?.nodes,t?.self]),K=g.useCallback(W=>{m(te=>typeof W=="function"?W(te):W)},[]);g.useEffect(()=>{S3(w0(),u)},[u]);const I=g.useCallback(async(W=!0,te=()=>!0)=>{const se=Vl();return se?(W&&te()&&w(E0("Checking desktop update...")),j3({activeCheck:T,startCheck:()=>se("check_desktop_update"),timeoutMs:E3,shouldApply:te,applyUpdate:X=>w(X),applyFailure:X=>w(_=>_?.updateAvailable?_:E0(X))})):(te()&&w(null),null)},[]);async function P(){A(!0);try{await I(!1)}finally{A(!1)}}g.useEffect(()=>{if(!Vl()){w(null);return}let W=!1;const te=()=>!W;I(!0,te);const se=window.setInterval(()=>{I(!1,te)},w3);return()=>{W=!0,window.clearInterval(se)}},[I,s?.version]),g.useEffect(()=>{const W=R3();if(!W)return;let te=!1,se;return W(N3,X=>{const _=A3(X.payload);_&&N(_)}).then(X=>{if(te){X();return}se=X}).catch(()=>{}),()=>{te=!0,se?.()}},[]);async function le(){try{const W=await ey({reason:"restart"});Ce.info(`Restarting runtime. Follow ${W.logPath} for launch output.`),await _1({previousPid:W.pid})||Ce.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout.")}catch(W){Ce.error(W instanceof Error?W.message:"Runtime restart failed")}}async function de(){const W=Vl();if(!W){Ce.error("Desktop updater is not available in this window");return}try{Ce.info("Downloading desktop update..."),N({phase:"downloading",receivedBytes:0,totalBytes:null,percent:0});const te=await W("install_desktop_update");N({phase:"complete",receivedBytes:1,totalBytes:1,percent:100}),Ce.info(_3(te))}catch(te){Ce.error(Mf(te,"Desktop update failed"))}finally{N(null)}}async function fe(){const W=Vl();if(!W){Ce.error("Desktop restart is not available in this window");return}try{Ce.info("Restarting Meshy Desktop..."),await W("restart_desktop_app")}catch(te){Ce.error(Mf(te,"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(sf,{to:"/","aria-label":"Meshy home",className:"flex items-center gap-2",children:[f.jsx(C3,{}),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"}),H&&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(fy,{className:"h-3 w-3 shrink-0 text-primary/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:p.nodeName})]}),f.jsx(cf,{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(nT,{className:"h-3 w-3 shrink-0 text-muted-foreground/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:p.projectLabel})]}),f.jsx(cf,{className:"h-3 w-3 shrink-0 text-border/80"}),f.jsx(sf,{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(NT,{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(xc,{"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:[H&&f.jsx(Ct,{variant:"ghost",size:"icon",onClick:()=>K(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(hy,{className:"h-4 w-4"})}),f.jsx(O_,{}),f.jsx(g3,{}),f.jsx("div",{className:"mx-0 h-4 w-px shrink-0 bg-border/50"}),f.jsx(K_,{connected:o,events:r,nodes:t?.nodes??[],currentNode:t?.self??null,nodeNameById:z,desktopUpdate:y,desktopUpdateCheckPending:k,desktopUpdateProgress:E,onDesktopUpdateCheck:R?P:void 0,onDesktopUpdate:y?.updateAvailable?de:void 0,onDesktopRestart:R?fe:void 0,onReload:R?()=>window.location.reload():void 0,onRestart:le})]})]})}),f.jsx("main",{className:ae("dashboard-shell-main min-h-0 flex-1 px-2 pb-2",H?"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(cE,{context:{terminalOpen:u,setTerminalOpen:K,headerSearchQuery:h,setHeaderSearchQuery:v,setHeaderTaskContext:b}})})})]})]})}const N0=g.lazy(async()=>({default:(await R0(()=>import("./DashboardPage-BA5_31Nu.js").then(r=>r.D),__vite__mapDeps([0,1,2,3,4]))).DashboardPage})),M3=g.lazy(async()=>({default:(await R0(()=>import("./SharedConversationPage-hiwRfWZA.js"),__vite__mapDeps([5,1]))).SharedConversationPage}));function D3(){return f.jsx(zE,{children:f.jsx(g.Suspense,{fallback:f.jsx(z3,{}),children:f.jsxs(dE,{children:[f.jsx(Nr,{path:"/shared/tasks/:shareId",element:f.jsx(M3,{})}),f.jsxs(Nr,{element:f.jsx(AN,{children:f.jsx(O3,{})}),children:[f.jsx(Nr,{path:"/",element:f.jsx(N0,{})}),f.jsx(Nr,{path:"/nodes",element:f.jsx(Ev,{to:"/",replace:!0})}),f.jsx(Nr,{path:"/tasks",element:f.jsx(Ev,{to:"/",replace:!0})}),f.jsx(Nr,{path:"/tasks/:id",element:f.jsx(N0,{})})]})]})})})}function z3(){return f.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function U3(t){const r=t??(typeof window>"u"?void 0:window);r?.__TAURI__&&r.addEventListener("contextmenu",o=>{o.preventDefault()})}function L3(t){const{className:r,style:o,toastOptions:s,...c}=t;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"&&M1()}return f.jsx("div",{onClick:u,children:f.jsx(eR,{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})})}U3();i2.createRoot(document.getElementById("root")).render(f.jsx(g.StrictMode,{children:f.jsxs(u3,{children:[f.jsx(D3,{}),f.jsx(L3,{})]})}));export{qO as $,Af as A,Ct as B,Li as C,IO as D,fO as E,eT as F,$A as G,pb as H,xc as I,vb as J,hM as K,iy as L,ly as M,y1 as N,Qx as O,hT as P,fM as Q,cy as R,fy as S,YO as T,Yl as U,IN as V,Rj as W,py as X,GO as Y,Yf as Z,nj as _,uM as a,uO as a$,VO as a0,_t as a1,lM as a2,Gl as a3,Cf as a4,Qi as a5,Ki as a6,Fi as a7,Wi as a8,Zi as a9,B_ as aA,vj as aB,sy as aC,yj as aD,sM as aE,Nj as aF,MO as aG,fR as aH,KO as aI,iM as aJ,cM as aK,XO as aL,QO as aM,rM as aN,A1 as aO,oM as aP,Rf as aQ,zT as aR,SO as aS,wO as aT,gM as aU,pM as aV,w0 as aW,vM as aX,xM as aY,yM as aZ,bM as a_,ec as aa,Ji as ab,R0 as ac,q3 as ad,gb as ae,IA as af,aO as ag,hy as ah,Ro as ai,uf as aj,nO as ak,rO as al,tO as am,zO as an,I3 as ao,Y3 as ap,qA as aq,yb as ar,Ai as as,LT as at,RT as au,LN as av,uT as aw,ts as ax,nM as ay,yT as az,oR as b,SN as b0,nN as b1,LO as b2,UO as b3,BO as b4,NN as b5,yO as b6,Q3 as b7,G3 as b8,J0 as b9,Tj as bA,gO as bB,vO as bC,pO as bD,hO as bE,$3 as bF,V3 as bG,P3 as bH,Z3 as bI,$O as bJ,RO as bK,CO as bL,TO as bM,EO as bN,NO as bO,AO as bP,g1 as bQ,Pk as bR,PO as bS,Hk as bT,T0 as bU,_O as bV,jO as bW,kO as bX,OO as bY,HO as bZ,DO as b_,X3 as ba,K3 as bb,O_ as bc,bO as bd,xO as be,iO as bf,oO as bg,lO as bh,sO as bi,cO as bj,H3 as bk,jn as bl,V0 as bm,B3 as bn,ay as bo,aM as bp,Gj as bq,mM as br,tM as bs,ZO as bt,FO as bu,JO as bv,WO as bw,eM as bx,dO as by,Ej as bz,ke as c,ae as d,Oy as e,x1 as f,W3 as g,eO as h,W0 as i,f as j,F3 as k,nT as l,dM as m,cf as n,ua as o,J3 as p,mO as q,g as r,Ef as s,Ce as t,Gi as u,Nf as v,Xi as w,NT as x,Zl as y,_T as z};
|