groove-dev 0.26.33 → 0.26.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,638 @@
1
+ import{r as vj,c as yj,a as v,j as l,b as N0,A as Zf,m as Ef,R as Da}from"./vendor-C0HXlhrU.js";import{r as Sj,a as P0,R as Qj,H as Ba,P as Ha,b as jj,u as wj,c as kj,d as $j,i as Tj,B as Nj}from"./reactflow-BQPfi37R.js";import{P as z0,N as qf,a as fi,D as Pj,b as oa,T as xn,I as Ac,s as _s,t as Z,L as Ts,i as R0,c as C0,d as _0,e as hi,f as Wl,g as zj,h as Pl,j as sc,k as Xs,l as Zc,m as Fe,E as Zl,n as vn,o as Fa,p as X0,q as Mf,r as A0,u as Rj,v as Cj,w as _j,x as df,y as Xj,z as ti,A as Aj,B as Zj,C as Ej,F as Z0,G as qj,H as _g,J as Mj,K as Yj,M as Uj,O as Vj,Q as Gj,R as Lj,S as Dj,U as Wj,V as Bj,W as Hj,X as Ij,Y as Fj,Z as Kj}from"./codemirror-BBL3i_JW.js";import{D as Jj,o as ew,L as tw}from"./xterm--7_ns2zW.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function s(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(o){if(o.ep)return;o.ep=!0;const u=s(o);fetch(o.href,u)}})();var gO={exports:{}},Lr={},bO={exports:{}},vO={};/**
2
+ * @license React
3
+ * scheduler.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Xg;function nw(){return Xg||(Xg=1,(function(t){function n(P,B){var E=P.length;P.push(B);e:for(;0<E;){var ce=E-1>>>1,ee=P[ce];if(0<o(ee,B))P[ce]=B,P[E]=ee,E=ce;else break e}}function s(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var B=P[0],E=P.pop();if(E!==B){P[0]=E;e:for(var ce=0,ee=P.length,ve=ee>>>1;ce<ve;){var Se=2*(ce+1)-1,ye=P[Se],Ce=Se+1,H=P[Ce];if(0>o(ye,E))Ce<ee&&0>o(H,ye)?(P[ce]=H,P[Ce]=E,ce=Ce):(P[ce]=ye,P[Se]=E,ce=Se);else if(Ce<ee&&0>o(H,E))P[ce]=H,P[Ce]=E,ce=Ce;else break e}}return B}function o(P,B){var E=P.sortIndex-B.sortIndex;return E!==0?E:P.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 d=Date,O=d.now();t.unstable_now=function(){return d.now()-O}}var h=[],p=[],x=1,g=null,b=3,y=!1,Q=!1,w=!1,k=!1,j=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function X(P){for(var B=s(p);B!==null;){if(B.callback===null)r(p);else if(B.startTime<=P)r(p),B.sortIndex=B.expirationTime,n(h,B);else break;B=s(p)}}function G(P){if(w=!1,X(P),!Q)if(s(h)!==null)Q=!0,R||(R=!0,F());else{var B=s(p);B!==null&&W(G,B.startTime-P)}}var R=!1,_=-1,T=5,Y=-1;function M(){return k?!0:!(t.unstable_now()-Y<T)}function ae(){if(k=!1,R){var P=t.unstable_now();Y=P;var B=!0;try{e:{Q=!1,w&&(w=!1,z(_),_=-1),y=!0;var E=b;try{t:{for(X(P),g=s(h);g!==null&&!(g.expirationTime>P&&M());){var ce=g.callback;if(typeof ce=="function"){g.callback=null,b=g.priorityLevel;var ee=ce(g.expirationTime<=P);if(P=t.unstable_now(),typeof ee=="function"){g.callback=ee,X(P),B=!0;break t}g===s(h)&&r(h),X(P)}else r(h);g=s(h)}if(g!==null)B=!0;else{var ve=s(p);ve!==null&&W(G,ve.startTime-P),B=!1}}break e}finally{g=null,b=E,y=!1}B=void 0}}finally{B?F():R=!1}}}var F;if(typeof N=="function")F=function(){N(ae)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,ie=se.port2;se.port1.onmessage=ae,F=function(){ie.postMessage(null)}}else F=function(){j(ae,0)};function W(P,B){_=j(function(){P(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(P){P.callback=null},t.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<P?Math.floor(1e3/P):5},t.unstable_getCurrentPriorityLevel=function(){return b},t.unstable_next=function(P){switch(b){case 1:case 2:case 3:var B=3;break;default:B=b}var E=b;b=B;try{return P()}finally{b=E}},t.unstable_requestPaint=function(){k=!0},t.unstable_runWithPriority=function(P,B){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var E=b;b=P;try{return B()}finally{b=E}},t.unstable_scheduleCallback=function(P,B,E){var ce=t.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0<E?ce+E:ce):E=ce,P){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=E+ee,P={id:x++,callback:B,priorityLevel:P,startTime:E,expirationTime:ee,sortIndex:-1},E>ce?(P.sortIndex=E,n(p,P),s(h)===null&&P===s(p)&&(w?(z(_),_=-1):w=!0,W(G,E-ce))):(P.sortIndex=ee,n(h,P),Q||y||(Q=!0,R||(R=!0,F()))),P},t.unstable_shouldYield=M,t.unstable_wrapCallback=function(P){var B=b;return function(){var E=b;b=B;try{return P.apply(this,arguments)}finally{b=E}}}})(vO)),vO}var Ag;function aw(){return Ag||(Ag=1,bO.exports=nw()),bO.exports}/**
10
+ * @license React
11
+ * react-dom-client.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Zg;function sw(){if(Zg)return Lr;Zg=1;var t=aw(),n=vj(),s=Sj();function r(e){var a="https://react.dev/errors/"+e;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var a=e,i=e;if(e.alternate)for(;a.return;)a=a.return;else{e=a;do a=e,(a.flags&4098)!==0&&(i=a.return),e=a.return;while(e)}return a.tag===3?i:null}function d(e){if(e.tag===13){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function O(e){if(e.tag===31){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function h(e){if(u(e)!==e)throw Error(r(188))}function p(e){var a=e.alternate;if(!a){if(a=u(e),a===null)throw Error(r(188));return a!==e?null:e}for(var i=e,c=a;;){var f=i.return;if(f===null)break;var m=f.alternate;if(m===null){if(c=f.return,c!==null){i=c;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===i)return h(f),e;if(m===c)return h(f),a;m=m.sibling}throw Error(r(188))}if(i.return!==c.return)i=f,c=m;else{for(var S=!1,$=f.child;$;){if($===i){S=!0,i=f,c=m;break}if($===c){S=!0,c=f,i=m;break}$=$.sibling}if(!S){for($=m.child;$;){if($===i){S=!0,i=m,c=f;break}if($===c){S=!0,c=m,i=f;break}$=$.sibling}if(!S)throw Error(r(189))}}if(i.alternate!==c)throw Error(r(190))}if(i.tag!==3)throw Error(r(188));return i.stateNode.current===i?e:a}function x(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e;for(e=e.child;e!==null;){if(a=x(e),a!==null)return a;e=e.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),Q=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),N=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),M=Symbol.for("react.memo_cache_sentinel"),ae=Symbol.iterator;function F(e){return e===null||typeof e!="object"?null:(e=ae&&e[ae]||e["@@iterator"],typeof e=="function"?e:null)}var se=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case j:return"Profiler";case k:return"StrictMode";case G:return"Suspense";case R:return"SuspenseList";case Y:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Q:return"Portal";case N:return e.displayName||"Context";case z:return(e._context.displayName||"Context")+".Consumer";case X:var a=e.render;return e=e.displayName,e||(e=a.displayName||a.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _:return a=e.displayName||null,a!==null?a:ie(e.type)||"Memo";case T:a=e._payload,e=e._init;try{return ie(e(a))}catch{}}return null}var W=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E={pending:!1,data:null,method:null,action:null},ce=[],ee=-1;function ve(e){return{current:e}}function Se(e){0>ee||(e.current=ce[ee],ce[ee]=null,ee--)}function ye(e,a){ee++,ce[ee]=e.current,e.current=a}var Ce=ve(null),H=ve(null),ue=ve(null),_e=ve(null);function Ot(e,a){switch(ye(ue,a),ye(H,e),ye(Ce,null),a.nodeType){case 9:case 11:e=(e=a.documentElement)&&(e=e.namespaceURI)?ag(e):0;break;default:if(e=a.tagName,a=a.namespaceURI)a=ag(a),e=sg(a,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Se(Ce),ye(Ce,e)}function Ze(){Se(Ce),Se(H),Se(ue)}function He(e){e.memoizedState!==null&&ye(_e,e);var a=Ce.current,i=sg(a,e.type);a!==i&&(ye(H,e),ye(Ce,i))}function bt(e){H.current===e&&(Se(Ce),Se(H)),_e.current===e&&(Se(_e),Yr._currentValue=E)}var dn,It;function yt(e){if(dn===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);dn=a&&a[1]||"",It=-1<i.stack.indexOf(`
18
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
19
+ `+dn+e+It}var Fl=!1;function Kl(e,a){if(!e||Fl)return"";Fl=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var ne=function(){throw Error()};if(Object.defineProperty(ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ne,[])}catch(I){var L=I}Reflect.construct(e,[],ne)}else{try{ne.call()}catch(I){L=I}e.call(ne.prototype)}}else{try{throw Error()}catch(I){L=I}(ne=e())&&typeof ne.catch=="function"&&ne.catch(function(){})}}catch(I){if(I&&L&&typeof I.stack=="string")return[I.stack,L.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=c.DetermineComponentFrameRoot(),S=m[0],$=m[1];if(S&&$){var C=S.split(`
20
+ `),V=$.split(`
21
+ `);for(f=c=0;c<C.length&&!C[c].includes("DetermineComponentFrameRoot");)c++;for(;f<V.length&&!V[f].includes("DetermineComponentFrameRoot");)f++;if(c===C.length||f===V.length)for(c=C.length-1,f=V.length-1;1<=c&&0<=f&&C[c]!==V[f];)f--;for(;1<=c&&0<=f;c--,f--)if(C[c]!==V[f]){if(c!==1||f!==1)do if(c--,f--,0>f||C[c]!==V[f]){var J=`
22
+ `+C[c].replace(" at new "," at ");return e.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",e.displayName)),J}while(1<=c&&0<=f);break}}}finally{Fl=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?yt(i):""}function au(e,a){switch(e.tag){case 26:case 27:case 5:return yt(e.type);case 16:return yt("Lazy");case 13:return e.child!==a&&a!==null?yt("Suspense Fallback"):yt("Suspense");case 19:return yt("SuspenseList");case 0:case 15:return Kl(e.type,!1);case 11:return Kl(e.type.render,!1);case 1:return Kl(e.type,!0);case 31:return yt("Activity");default:return""}}function ji(e){try{var a="",i=null;do a+=au(e,i),i=e,e=e.return;while(e);return a}catch(c){return`
23
+ Error generating stack: `+c.message+`
24
+ `+c.stack}}var pa=Object.prototype.hasOwnProperty,su=t.unstable_scheduleCallback,lu=t.unstable_cancelCallback,KS=t.unstable_shouldYield,JS=t.unstable_requestPaint,_t=t.unstable_now,e2=t.unstable_getCurrentPriorityLevel,Xh=t.unstable_ImmediatePriority,Ah=t.unstable_UserBlockingPriority,wi=t.unstable_NormalPriority,t2=t.unstable_LowPriority,Zh=t.unstable_IdlePriority,n2=t.log,a2=t.unstable_setDisableYieldValue,Jl=null,Xt=null;function xa(e){if(typeof n2=="function"&&a2(e),Xt&&typeof Xt.setStrictMode=="function")try{Xt.setStrictMode(Jl,e)}catch{}}var At=Math.clz32?Math.clz32:r2,s2=Math.log,l2=Math.LN2;function r2(e){return e>>>=0,e===0?32:31-(s2(e)/l2|0)|0}var ki=256,$i=262144,Ti=4194304;function rs(e){var a=e&42;if(a!==0)return a;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ni(e,a,i){var c=e.pendingLanes;if(c===0)return 0;var f=0,m=e.suspendedLanes,S=e.pingedLanes;e=e.warmLanes;var $=c&134217727;return $!==0?(c=$&~m,c!==0?f=rs(c):(S&=$,S!==0?f=rs(S):i||(i=$&~e,i!==0&&(f=rs(i))))):($=c&~m,$!==0?f=rs($):S!==0?f=rs(S):i||(i=c&~e,i!==0&&(f=rs(i)))),f===0?0:a!==0&&a!==f&&(a&m)===0&&(m=f&-f,i=a&-a,m>=i||m===32&&(i&4194048)!==0)?a:f}function er(e,a){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&a)===0}function i2(e,a){switch(e){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 Eh(){var e=Ti;return Ti<<=1,(Ti&62914560)===0&&(Ti=4194304),e}function ru(e){for(var a=[],i=0;31>i;i++)a.push(e);return a}function tr(e,a){e.pendingLanes|=a,a!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function o2(e,a,i,c,f,m){var S=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var $=e.entanglements,C=e.expirationTimes,V=e.hiddenUpdates;for(i=S&~i;0<i;){var J=31-At(i),ne=1<<J;$[J]=0,C[J]=-1;var L=V[J];if(L!==null)for(V[J]=null,J=0;J<L.length;J++){var I=L[J];I!==null&&(I.lane&=-536870913)}i&=~ne}c!==0&&qh(e,c,0),m!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=m&~(S&~a))}function qh(e,a,i){e.pendingLanes|=a,e.suspendedLanes&=~a;var c=31-At(a);e.entangledLanes|=a,e.entanglements[c]=e.entanglements[c]|1073741824|i&261930}function Mh(e,a){var i=e.entangledLanes|=a;for(e=e.entanglements;i;){var c=31-At(i),f=1<<c;f&a|e[c]&a&&(e[c]|=a),i&=~f}}function Yh(e,a){var i=a&-a;return i=(i&42)!==0?1:iu(i),(i&(e.suspendedLanes|a))!==0?0:i}function iu(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 ou(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Uh(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:$g(e.type))}function Vh(e,a){var i=B.p;try{return B.p=e,a()}finally{B.p=i}}var ga=Math.random().toString(36).slice(2),ft="__reactFiber$"+ga,wt="__reactProps$"+ga,qs="__reactContainer$"+ga,cu="__reactEvents$"+ga,c2="__reactListeners$"+ga,u2="__reactHandles$"+ga,Gh="__reactResources$"+ga,nr="__reactMarker$"+ga;function uu(e){delete e[ft],delete e[wt],delete e[cu],delete e[c2],delete e[u2]}function Ms(e){var a=e[ft];if(a)return a;for(var i=e.parentNode;i;){if(a=i[qs]||i[ft]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(e=dg(e);e!==null;){if(i=e[ft])return i;e=dg(e)}return a}e=i,i=e.parentNode}return null}function Ys(e){if(e=e[ft]||e[qs]){var a=e.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return e}return null}function ar(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e.stateNode;throw Error(r(33))}function Us(e){var a=e[Gh];return a||(a=e[Gh]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function ut(e){e[nr]=!0}var Lh=new Set,Dh={};function is(e,a){Vs(e,a),Vs(e+"Capture",a)}function Vs(e,a){for(Dh[e]=a,e=0;e<a.length;e++)Lh.add(a[e])}var d2=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]*$"),Wh={},Bh={};function O2(e){return pa.call(Bh,e)?!0:pa.call(Wh,e)?!1:d2.test(e)?Bh[e]=!0:(Wh[e]=!0,!1)}function Pi(e,a,i){if(O2(a))if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){e.removeAttribute(a);return}}e.setAttribute(a,""+i)}}function zi(e,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttribute(a,""+i)}}function Zn(e,a,i,c){if(c===null)e.removeAttribute(i);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(a,i,""+c)}}function Ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hh(e){var a=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function f2(e,a,i){var c=Object.getOwnPropertyDescriptor(e.constructor.prototype,a);if(!e.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var f=c.get,m=c.set;return Object.defineProperty(e,a,{configurable:!0,get:function(){return f.call(this)},set:function(S){i=""+S,m.call(this,S)}}),Object.defineProperty(e,a,{enumerable:c.enumerable}),{getValue:function(){return i},setValue:function(S){i=""+S},stopTracking:function(){e._valueTracker=null,delete e[a]}}}}function du(e){if(!e._valueTracker){var a=Hh(e)?"checked":"value";e._valueTracker=f2(e,a,""+e[a])}}function Ih(e){if(!e)return!1;var a=e._valueTracker;if(!a)return!0;var i=a.getValue(),c="";return e&&(c=Hh(e)?e.checked?"true":"false":e.value),e=c,e!==i?(a.setValue(e),!0):!1}function Ri(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var h2=/[\n"\\]/g;function Kt(e){return e.replace(h2,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Ou(e,a,i,c,f,m,S,$){e.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.type=S:e.removeAttribute("type"),a!=null?S==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+Ft(a)):e.value!==""+Ft(a)&&(e.value=""+Ft(a)):S!=="submit"&&S!=="reset"||e.removeAttribute("value"),a!=null?fu(e,S,Ft(a)):i!=null?fu(e,S,Ft(i)):c!=null&&e.removeAttribute("value"),f==null&&m!=null&&(e.defaultChecked=!!m),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"?e.name=""+Ft($):e.removeAttribute("name")}function Fh(e,a,i,c,f,m,S,$){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.type=m),a!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||a!=null)){du(e);return}i=i!=null?""+Ft(i):"",a=a!=null?""+Ft(a):i,$||a===e.value||(e.value=a),e.defaultValue=a}c=c??f,c=typeof c!="function"&&typeof c!="symbol"&&!!c,e.checked=$?e.checked:!!c,e.defaultChecked=!!c,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(e.name=S),du(e)}function fu(e,a,i){a==="number"&&Ri(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Gs(e,a,i,c){if(e=e.options,a){a={};for(var f=0;f<i.length;f++)a["$"+i[f]]=!0;for(i=0;i<e.length;i++)f=a.hasOwnProperty("$"+e[i].value),e[i].selected!==f&&(e[i].selected=f),f&&c&&(e[i].defaultSelected=!0)}else{for(i=""+Ft(i),a=null,f=0;f<e.length;f++){if(e[f].value===i){e[f].selected=!0,c&&(e[f].defaultSelected=!0);return}a!==null||e[f].disabled||(a=e[f])}a!==null&&(a.selected=!0)}}function Kh(e,a,i){if(a!=null&&(a=""+Ft(a),a!==e.value&&(e.value=a),i==null)){e.defaultValue!==a&&(e.defaultValue=a);return}e.defaultValue=i!=null?""+Ft(i):""}function Jh(e,a,i,c){if(a==null){if(c!=null){if(i!=null)throw Error(r(92));if(W(c)){if(1<c.length)throw Error(r(93));c=c[0]}i=c}i==null&&(i=""),a=i}i=Ft(a),e.defaultValue=i,c=e.textContent,c===i&&c!==""&&c!==null&&(e.value=c),du(e)}function Ls(e,a){if(a){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=a;return}}e.textContent=a}var m2=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 em(e,a,i){var c=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?c?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="":c?e.setProperty(a,i):typeof i!="number"||i===0||m2.has(a)?a==="float"?e.cssFloat=i:e[a]=(""+i).trim():e[a]=i+"px"}function tm(e,a,i){if(a!=null&&typeof a!="object")throw Error(r(62));if(e=e.style,i!=null){for(var c in i)!i.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?e.setProperty(c,""):c==="float"?e.cssFloat="":e[c]="");for(var f in a)c=a[f],a.hasOwnProperty(f)&&i[f]!==c&&em(e,f,c)}else for(var m in a)a.hasOwnProperty(m)&&em(e,m,a[m])}function hu(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 p2=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"]]),x2=/^[\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 Ci(e){return x2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function En(){}var mu=null;function pu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ds=null,Ws=null;function nm(e){var a=Ys(e);if(a&&(e=a.stateNode)){var i=e[wt]||null;e:switch(e=a.stateNode,a.type){case"input":if(Ou(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Kt(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var c=i[a];if(c!==e&&c.form===e.form){var f=c[wt]||null;if(!f)throw Error(r(90));Ou(c,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(a=0;a<i.length;a++)c=i[a],c.form===e.form&&Ih(c)}break e;case"textarea":Kh(e,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&Gs(e,!!i.multiple,a,!1)}}}var xu=!1;function am(e,a,i){if(xu)return e(a,i);xu=!0;try{var c=e(a);return c}finally{if(xu=!1,(Ds!==null||Ws!==null)&&(yo(),Ds&&(a=Ds,e=Ws,Ws=Ds=null,nm(a),e)))for(a=0;a<e.length;a++)nm(e[a])}}function sr(e,a){var i=e.stateNode;if(i===null)return null;var c=i[wt]||null;if(c===null)return null;i=c[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(e=e.type,c=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!c;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(r(231,a,typeof i));return i}var qn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gu=!1;if(qn)try{var lr={};Object.defineProperty(lr,"passive",{get:function(){gu=!0}}),window.addEventListener("test",lr,lr),window.removeEventListener("test",lr,lr)}catch{gu=!1}var ba=null,bu=null,_i=null;function sm(){if(_i)return _i;var e,a=bu,i=a.length,c,f="value"in ba?ba.value:ba.textContent,m=f.length;for(e=0;e<i&&a[e]===f[e];e++);var S=i-e;for(c=1;c<=S&&a[i-c]===f[m-c];c++);return _i=f.slice(e,1<c?1-c:void 0)}function Xi(e){var a=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&a===13&&(e=13)):e=a,e===10&&(e=13),32<=e||e===13?e:0}function Ai(){return!0}function lm(){return!1}function kt(e){function a(i,c,f,m,S){this._reactName=i,this._targetInst=f,this.type=c,this.nativeEvent=m,this.target=S,this.currentTarget=null;for(var $ in e)e.hasOwnProperty($)&&(i=e[$],this[$]=i?i(m):m[$]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Ai:lm,this.isPropagationStopped=lm,this}return g(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Ai)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Ai)},persist:function(){},isPersistent:Ai}),a}var os={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zi=kt(os),rr=g({},os,{view:0,detail:0}),g2=kt(rr),vu,yu,ir,Ei=g({},rr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qu,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!==ir&&(ir&&e.type==="mousemove"?(vu=e.screenX-ir.screenX,yu=e.screenY-ir.screenY):yu=vu=0,ir=e),vu)},movementY:function(e){return"movementY"in e?e.movementY:yu}}),rm=kt(Ei),b2=g({},Ei,{dataTransfer:0}),v2=kt(b2),y2=g({},rr,{relatedTarget:0}),Su=kt(y2),S2=g({},os,{animationName:0,elapsedTime:0,pseudoElement:0}),Q2=kt(S2),j2=g({},os,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),w2=kt(j2),k2=g({},os,{data:0}),im=kt(k2),$2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},T2={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"},N2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function P2(e){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(e):(e=N2[e])?!!a[e]:!1}function Qu(){return P2}var z2=g({},rr,{key:function(e){if(e.key){var a=$2[e.key]||e.key;if(a!=="Unidentified")return a}return e.type==="keypress"?(e=Xi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?T2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qu,charCode:function(e){return e.type==="keypress"?Xi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),R2=kt(z2),C2=g({},Ei,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),om=kt(C2),_2=g({},rr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qu}),X2=kt(_2),A2=g({},os,{propertyName:0,elapsedTime:0,pseudoElement:0}),Z2=kt(A2),E2=g({},Ei,{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}),q2=kt(E2),M2=g({},os,{newState:0,oldState:0}),Y2=kt(M2),U2=[9,13,27,32],ju=qn&&"CompositionEvent"in window,or=null;qn&&"documentMode"in document&&(or=document.documentMode);var V2=qn&&"TextEvent"in window&&!or,cm=qn&&(!ju||or&&8<or&&11>=or),um=" ",dm=!1;function Om(e,a){switch(e){case"keyup":return U2.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bs=!1;function G2(e,a){switch(e){case"compositionend":return fm(a);case"keypress":return a.which!==32?null:(dm=!0,um);case"textInput":return e=a.data,e===um&&dm?null:e;default:return null}}function L2(e,a){if(Bs)return e==="compositionend"||!ju&&Om(e,a)?(e=sm(),_i=bu=ba=null,Bs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return cm&&a.locale!=="ko"?null:a.data;default:return null}}var D2={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 hm(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a==="input"?!!D2[e.type]:a==="textarea"}function mm(e,a,i,c){Ds?Ws?Ws.push(c):Ws=[c]:Ds=c,a=To(a,"onChange"),0<a.length&&(i=new Zi("onChange","change",null,i,c),e.push({event:i,listeners:a}))}var cr=null,ur=null;function W2(e){Fx(e,0)}function qi(e){var a=ar(e);if(Ih(a))return e}function pm(e,a){if(e==="change")return a}var xm=!1;if(qn){var wu;if(qn){var ku="oninput"in document;if(!ku){var gm=document.createElement("div");gm.setAttribute("oninput","return;"),ku=typeof gm.oninput=="function"}wu=ku}else wu=!1;xm=wu&&(!document.documentMode||9<document.documentMode)}function bm(){cr&&(cr.detachEvent("onpropertychange",vm),ur=cr=null)}function vm(e){if(e.propertyName==="value"&&qi(ur)){var a=[];mm(a,ur,e,pu(e)),am(W2,a)}}function B2(e,a,i){e==="focusin"?(bm(),cr=a,ur=i,cr.attachEvent("onpropertychange",vm)):e==="focusout"&&bm()}function H2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qi(ur)}function I2(e,a){if(e==="click")return qi(a)}function F2(e,a){if(e==="input"||e==="change")return qi(a)}function K2(e,a){return e===a&&(e!==0||1/e===1/a)||e!==e&&a!==a}var Zt=typeof Object.is=="function"?Object.is:K2;function dr(e,a){if(Zt(e,a))return!0;if(typeof e!="object"||e===null||typeof a!="object"||a===null)return!1;var i=Object.keys(e),c=Object.keys(a);if(i.length!==c.length)return!1;for(c=0;c<i.length;c++){var f=i[c];if(!pa.call(a,f)||!Zt(e[f],a[f]))return!1}return!0}function ym(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sm(e,a){var i=ym(e);e=0;for(var c;i;){if(i.nodeType===3){if(c=e+i.textContent.length,e<=a&&c>=a)return{node:i,offset:a-e};e=c}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=ym(i)}}function Qm(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?Qm(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function jm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var a=Ri(e.document);a instanceof e.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)e=a.contentWindow;else break;a=Ri(e.document)}return a}function $u(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a&&(a==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||a==="textarea"||e.contentEditable==="true")}var J2=qn&&"documentMode"in document&&11>=document.documentMode,Hs=null,Tu=null,Or=null,Nu=!1;function wm(e,a,i){var c=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Nu||Hs==null||Hs!==Ri(c)||(c=Hs,"selectionStart"in c&&$u(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Or&&dr(Or,c)||(Or=c,c=To(Tu,"onSelect"),0<c.length&&(a=new Zi("onSelect","select",null,a,i),e.push({event:a,listeners:c}),a.target=Hs)))}function cs(e,a){var i={};return i[e.toLowerCase()]=a.toLowerCase(),i["Webkit"+e]="webkit"+a,i["Moz"+e]="moz"+a,i}var Is={animationend:cs("Animation","AnimationEnd"),animationiteration:cs("Animation","AnimationIteration"),animationstart:cs("Animation","AnimationStart"),transitionrun:cs("Transition","TransitionRun"),transitionstart:cs("Transition","TransitionStart"),transitioncancel:cs("Transition","TransitionCancel"),transitionend:cs("Transition","TransitionEnd")},Pu={},km={};qn&&(km=document.createElement("div").style,"AnimationEvent"in window||(delete Is.animationend.animation,delete Is.animationiteration.animation,delete Is.animationstart.animation),"TransitionEvent"in window||delete Is.transitionend.transition);function us(e){if(Pu[e])return Pu[e];if(!Is[e])return e;var a=Is[e],i;for(i in a)if(a.hasOwnProperty(i)&&i in km)return Pu[e]=a[i];return e}var $m=us("animationend"),Tm=us("animationiteration"),Nm=us("animationstart"),eQ=us("transitionrun"),tQ=us("transitionstart"),nQ=us("transitioncancel"),Pm=us("transitionend"),zm=new Map,zu="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(" ");zu.push("scrollEnd");function On(e,a){zm.set(e,a),is(a,[e])}var Mi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=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(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Jt=[],Fs=0,Ru=0;function Yi(){for(var e=Fs,a=Ru=Fs=0;a<e;){var i=Jt[a];Jt[a++]=null;var c=Jt[a];Jt[a++]=null;var f=Jt[a];Jt[a++]=null;var m=Jt[a];if(Jt[a++]=null,c!==null&&f!==null){var S=c.pending;S===null?f.next=f:(f.next=S.next,S.next=f),c.pending=f}m!==0&&Rm(i,f,m)}}function Ui(e,a,i,c){Jt[Fs++]=e,Jt[Fs++]=a,Jt[Fs++]=i,Jt[Fs++]=c,Ru|=c,e.lanes|=c,e=e.alternate,e!==null&&(e.lanes|=c)}function Cu(e,a,i,c){return Ui(e,a,i,c),Vi(e)}function ds(e,a){return Ui(e,null,null,a),Vi(e)}function Rm(e,a,i){e.lanes|=i;var c=e.alternate;c!==null&&(c.lanes|=i);for(var f=!1,m=e.return;m!==null;)m.childLanes|=i,c=m.alternate,c!==null&&(c.childLanes|=i),m.tag===22&&(e=m.stateNode,e===null||e._visibility&1||(f=!0)),e=m,m=m.return;return e.tag===3?(m=e.stateNode,f&&a!==null&&(f=31-At(i),e=m.hiddenUpdates,c=e[f],c===null?e[f]=[a]:c.push(a),a.lane=i|536870912),m):null}function Vi(e){if(50<_r)throw _r=0,Ud=null,Error(r(185));for(var a=e.return;a!==null;)e=a,a=e.return;return e.tag===3?e.stateNode:null}var Ks={};function aQ(e,a,i,c){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Et(e,a,i,c){return new aQ(e,a,i,c)}function _u(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mn(e,a){var i=e.alternate;return i===null?(i=Et(e.tag,a,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=a,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,a=e.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function Cm(e,a){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=a,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,a=i.dependencies,e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),e}function Gi(e,a,i,c,f,m){var S=0;if(c=e,typeof e=="function")_u(e)&&(S=1);else if(typeof e=="string")S=oj(e,i,Ce.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Y:return e=Et(31,i,a,f),e.elementType=Y,e.lanes=m,e;case w:return Os(i.children,f,m,a);case k:S=8,f|=24;break;case j:return e=Et(12,i,a,f|2),e.elementType=j,e.lanes=m,e;case G:return e=Et(13,i,a,f),e.elementType=G,e.lanes=m,e;case R:return e=Et(19,i,a,f),e.elementType=R,e.lanes=m,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N:S=10;break e;case z:S=9;break e;case X:S=11;break e;case _:S=14;break e;case T:S=16,c=null;break e}S=29,i=Error(r(130,e===null?"null":typeof e,"")),c=null}return a=Et(S,i,a,f),a.elementType=e,a.type=c,a.lanes=m,a}function Os(e,a,i,c){return e=Et(7,e,c,a),e.lanes=i,e}function Xu(e,a,i){return e=Et(6,e,null,a),e.lanes=i,e}function _m(e){var a=Et(18,null,null,0);return a.stateNode=e,a}function Au(e,a,i){return a=Et(4,e.children!==null?e.children:[],e.key,a),a.lanes=i,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}var Xm=new WeakMap;function en(e,a){if(typeof e=="object"&&e!==null){var i=Xm.get(e);return i!==void 0?i:(a={value:e,source:a,stack:ji(a)},Xm.set(e,a),a)}return{value:e,source:a,stack:ji(a)}}var Js=[],el=0,Li=null,fr=0,tn=[],nn=0,va=null,Qn=1,jn="";function Yn(e,a){Js[el++]=fr,Js[el++]=Li,Li=e,fr=a}function Am(e,a,i){tn[nn++]=Qn,tn[nn++]=jn,tn[nn++]=va,va=e;var c=Qn;e=jn;var f=32-At(c)-1;c&=~(1<<f),i+=1;var m=32-At(a)+f;if(30<m){var S=f-f%5;m=(c&(1<<S)-1).toString(32),c>>=S,f-=S,Qn=1<<32-At(a)+f|i<<f|c,jn=m+e}else Qn=1<<m|i<<f|c,jn=e}function Zu(e){e.return!==null&&(Yn(e,1),Am(e,1,0))}function Eu(e){for(;e===Li;)Li=Js[--el],Js[el]=null,fr=Js[--el],Js[el]=null;for(;e===va;)va=tn[--nn],tn[nn]=null,jn=tn[--nn],tn[nn]=null,Qn=tn[--nn],tn[nn]=null}function Zm(e,a){tn[nn++]=Qn,tn[nn++]=jn,tn[nn++]=va,Qn=a.id,jn=a.overflow,va=e}var ht=null,De=null,Pe=!1,ya=null,an=!1,qu=Error(r(519));function Sa(e){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw hr(en(a,e)),qu}function Em(e){var a=e.stateNode,i=e.type,c=e.memoizedProps;switch(a[ft]=e,a[wt]=c,i){case"dialog":$e("cancel",a),$e("close",a);break;case"iframe":case"object":case"embed":$e("load",a);break;case"video":case"audio":for(i=0;i<Ar.length;i++)$e(Ar[i],a);break;case"source":$e("error",a);break;case"img":case"image":case"link":$e("error",a),$e("load",a);break;case"details":$e("toggle",a);break;case"input":$e("invalid",a),Fh(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":$e("invalid",a);break;case"textarea":$e("invalid",a),Jh(a,c.value,c.defaultValue,c.children)}i=c.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||c.suppressHydrationWarning===!0||tg(a.textContent,i)?(c.popover!=null&&($e("beforetoggle",a),$e("toggle",a)),c.onScroll!=null&&$e("scroll",a),c.onScrollEnd!=null&&$e("scrollend",a),c.onClick!=null&&(a.onclick=En),a=!0):a=!1,a||Sa(e,!0)}function qm(e){for(ht=e.return;ht;)switch(ht.tag){case 5:case 31:case 13:an=!1;return;case 27:case 3:an=!0;return;default:ht=ht.return}}function tl(e){if(e!==ht)return!1;if(!Pe)return qm(e),Pe=!0,!1;var a=e.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||aO(e.type,e.memoizedProps)),i=!i),i&&De&&Sa(e),qm(e),a===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));De=ug(e)}else if(a===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));De=ug(e)}else a===27?(a=De,Aa(e.type)?(e=oO,oO=null,De=e):De=a):De=ht?ln(e.stateNode.nextSibling):null;return!0}function fs(){De=ht=null,Pe=!1}function Mu(){var e=ya;return e!==null&&(Pt===null?Pt=e:Pt.push.apply(Pt,e),ya=null),e}function hr(e){ya===null?ya=[e]:ya.push(e)}var Yu=ve(null),hs=null,Un=null;function Qa(e,a,i){ye(Yu,a._currentValue),a._currentValue=i}function Vn(e){e._currentValue=Yu.current,Se(Yu)}function Uu(e,a,i){for(;e!==null;){var c=e.alternate;if((e.childLanes&a)!==a?(e.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),e===i)break;e=e.return}}function Vu(e,a,i,c){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var m=f.dependencies;if(m!==null){var S=f.child;m=m.firstContext;e:for(;m!==null;){var $=m;m=f;for(var C=0;C<a.length;C++)if($.context===a[C]){m.lanes|=i,$=m.alternate,$!==null&&($.lanes|=i),Uu(m.return,i,e),c||(S=null);break e}m=$.next}}else if(f.tag===18){if(S=f.return,S===null)throw Error(r(341));S.lanes|=i,m=S.alternate,m!==null&&(m.lanes|=i),Uu(S,i,e),S=null}else S=f.child;if(S!==null)S.return=f;else for(S=f;S!==null;){if(S===e){S=null;break}if(f=S.sibling,f!==null){f.return=S.return,S=f;break}S=S.return}f=S}}function nl(e,a,i,c){e=null;for(var f=a,m=!1;f!==null;){if(!m){if((f.flags&524288)!==0)m=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var S=f.alternate;if(S===null)throw Error(r(387));if(S=S.memoizedProps,S!==null){var $=f.type;Zt(f.pendingProps.value,S.value)||(e!==null?e.push($):e=[$])}}else if(f===_e.current){if(S=f.alternate,S===null)throw Error(r(387));S.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(Yr):e=[Yr])}f=f.return}e!==null&&Vu(a,e,i,c),a.flags|=262144}function Di(e){for(e=e.firstContext;e!==null;){if(!Zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ms(e){hs=e,Un=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return Mm(hs,e)}function Wi(e,a){return hs===null&&ms(e),Mm(e,a)}function Mm(e,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},Un===null){if(e===null)throw Error(r(308));Un=a,e.dependencies={lanes:0,firstContext:a},e.flags|=524288}else Un=Un.next=a;return i}var sQ=typeof AbortController<"u"?AbortController:function(){var e=[],a=this.signal={aborted:!1,addEventListener:function(i,c){e.push(c)}};this.abort=function(){a.aborted=!0,e.forEach(function(i){return i()})}},lQ=t.unstable_scheduleCallback,rQ=t.unstable_NormalPriority,at={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gu(){return{controller:new sQ,data:new Map,refCount:0}}function mr(e){e.refCount--,e.refCount===0&&lQ(rQ,function(){e.controller.abort()})}var pr=null,Lu=0,al=0,sl=null;function iQ(e,a){if(pr===null){var i=pr=[];Lu=0,al=Bd(),sl={status:"pending",value:void 0,then:function(c){i.push(c)}}}return Lu++,a.then(Ym,Ym),a}function Ym(){if(--Lu===0&&pr!==null){sl!==null&&(sl.status="fulfilled");var e=pr;pr=null,al=0,sl=null;for(var a=0;a<e.length;a++)(0,e[a])()}}function oQ(e,a){var i=[],c={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return e.then(function(){c.status="fulfilled",c.value=a;for(var f=0;f<i.length;f++)(0,i[f])(a)},function(f){for(c.status="rejected",c.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),c}var Um=P.S;P.S=function(e,a){wx=_t(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&iQ(e,a),Um!==null&&Um(e,a)};var ps=ve(null);function Du(){var e=ps.current;return e!==null?e:Le.pooledCache}function Bi(e,a){a===null?ye(ps,ps.current):ye(ps,a.pool)}function Vm(){var e=Du();return e===null?null:{parent:at._currentValue,pool:e}}var ll=Error(r(460)),Wu=Error(r(474)),Hi=Error(r(542)),Ii={then:function(){}};function Gm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Lm(e,a,i){switch(i=e[i],i===void 0?e.push(a):i!==a&&(a.then(En,En),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,Wm(e),e;default:if(typeof a.status=="string")a.then(En,En);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=a,e.status="pending",e.then(function(c){if(a.status==="pending"){var f=a;f.status="fulfilled",f.value=c}},function(c){if(a.status==="pending"){var f=a;f.status="rejected",f.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,Wm(e),e}throw gs=a,ll}}function xs(e){try{var a=e._init;return a(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(gs=i,ll):i}}var gs=null;function Dm(){if(gs===null)throw Error(r(459));var e=gs;return gs=null,e}function Wm(e){if(e===ll||e===Hi)throw Error(r(483))}var rl=null,xr=0;function Fi(e){var a=xr;return xr+=1,rl===null&&(rl=[]),Lm(rl,e,a)}function gr(e,a){a=a.props.ref,e.ref=a!==void 0?a:null}function Ki(e,a){throw a.$$typeof===b?Error(r(525)):(e=Object.prototype.toString.call(a),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":e)))}function Bm(e){function a(q,A){if(e){var U=q.deletions;U===null?(q.deletions=[A],q.flags|=16):U.push(A)}}function i(q,A){if(!e)return null;for(;A!==null;)a(q,A),A=A.sibling;return null}function c(q){for(var A=new Map;q!==null;)q.key!==null?A.set(q.key,q):A.set(q.index,q),q=q.sibling;return A}function f(q,A){return q=Mn(q,A),q.index=0,q.sibling=null,q}function m(q,A,U){return q.index=U,e?(U=q.alternate,U!==null?(U=U.index,U<A?(q.flags|=67108866,A):U):(q.flags|=67108866,A)):(q.flags|=1048576,A)}function S(q){return e&&q.alternate===null&&(q.flags|=67108866),q}function $(q,A,U,te){return A===null||A.tag!==6?(A=Xu(U,q.mode,te),A.return=q,A):(A=f(A,U),A.return=q,A)}function C(q,A,U,te){var xe=U.type;return xe===w?J(q,A,U.props.children,te,U.key):A!==null&&(A.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===T&&xs(xe)===A.type)?(A=f(A,U.props),gr(A,U),A.return=q,A):(A=Gi(U.type,U.key,U.props,null,q.mode,te),gr(A,U),A.return=q,A)}function V(q,A,U,te){return A===null||A.tag!==4||A.stateNode.containerInfo!==U.containerInfo||A.stateNode.implementation!==U.implementation?(A=Au(U,q.mode,te),A.return=q,A):(A=f(A,U.children||[]),A.return=q,A)}function J(q,A,U,te,xe){return A===null||A.tag!==7?(A=Os(U,q.mode,te,xe),A.return=q,A):(A=f(A,U),A.return=q,A)}function ne(q,A,U){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Xu(""+A,q.mode,U),A.return=q,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case y:return U=Gi(A.type,A.key,A.props,null,q.mode,U),gr(U,A),U.return=q,U;case Q:return A=Au(A,q.mode,U),A.return=q,A;case T:return A=xs(A),ne(q,A,U)}if(W(A)||F(A))return A=Os(A,q.mode,U,null),A.return=q,A;if(typeof A.then=="function")return ne(q,Fi(A),U);if(A.$$typeof===N)return ne(q,Wi(q,A),U);Ki(q,A)}return null}function L(q,A,U,te){var xe=A!==null?A.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return xe!==null?null:$(q,A,""+U,te);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case y:return U.key===xe?C(q,A,U,te):null;case Q:return U.key===xe?V(q,A,U,te):null;case T:return U=xs(U),L(q,A,U,te)}if(W(U)||F(U))return xe!==null?null:J(q,A,U,te,null);if(typeof U.then=="function")return L(q,A,Fi(U),te);if(U.$$typeof===N)return L(q,A,Wi(q,U),te);Ki(q,U)}return null}function I(q,A,U,te,xe){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return q=q.get(U)||null,$(A,q,""+te,xe);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case y:return q=q.get(te.key===null?U:te.key)||null,C(A,q,te,xe);case Q:return q=q.get(te.key===null?U:te.key)||null,V(A,q,te,xe);case T:return te=xs(te),I(q,A,U,te,xe)}if(W(te)||F(te))return q=q.get(U)||null,J(A,q,te,xe,null);if(typeof te.then=="function")return I(q,A,U,Fi(te),xe);if(te.$$typeof===N)return I(q,A,U,Wi(A,te),xe);Ki(A,te)}return null}function de(q,A,U,te){for(var xe=null,Xe=null,he=A,je=A=0,Ne=null;he!==null&&je<U.length;je++){he.index>je?(Ne=he,he=null):Ne=he.sibling;var Ae=L(q,he,U[je],te);if(Ae===null){he===null&&(he=Ne);break}e&&he&&Ae.alternate===null&&a(q,he),A=m(Ae,A,je),Xe===null?xe=Ae:Xe.sibling=Ae,Xe=Ae,he=Ne}if(je===U.length)return i(q,he),Pe&&Yn(q,je),xe;if(he===null){for(;je<U.length;je++)he=ne(q,U[je],te),he!==null&&(A=m(he,A,je),Xe===null?xe=he:Xe.sibling=he,Xe=he);return Pe&&Yn(q,je),xe}for(he=c(he);je<U.length;je++)Ne=I(he,q,je,U[je],te),Ne!==null&&(e&&Ne.alternate!==null&&he.delete(Ne.key===null?je:Ne.key),A=m(Ne,A,je),Xe===null?xe=Ne:Xe.sibling=Ne,Xe=Ne);return e&&he.forEach(function(Ya){return a(q,Ya)}),Pe&&Yn(q,je),xe}function be(q,A,U,te){if(U==null)throw Error(r(151));for(var xe=null,Xe=null,he=A,je=A=0,Ne=null,Ae=U.next();he!==null&&!Ae.done;je++,Ae=U.next()){he.index>je?(Ne=he,he=null):Ne=he.sibling;var Ya=L(q,he,Ae.value,te);if(Ya===null){he===null&&(he=Ne);break}e&&he&&Ya.alternate===null&&a(q,he),A=m(Ya,A,je),Xe===null?xe=Ya:Xe.sibling=Ya,Xe=Ya,he=Ne}if(Ae.done)return i(q,he),Pe&&Yn(q,je),xe;if(he===null){for(;!Ae.done;je++,Ae=U.next())Ae=ne(q,Ae.value,te),Ae!==null&&(A=m(Ae,A,je),Xe===null?xe=Ae:Xe.sibling=Ae,Xe=Ae);return Pe&&Yn(q,je),xe}for(he=c(he);!Ae.done;je++,Ae=U.next())Ae=I(he,q,je,Ae.value,te),Ae!==null&&(e&&Ae.alternate!==null&&he.delete(Ae.key===null?je:Ae.key),A=m(Ae,A,je),Xe===null?xe=Ae:Xe.sibling=Ae,Xe=Ae);return e&&he.forEach(function(bj){return a(q,bj)}),Pe&&Yn(q,je),xe}function Ge(q,A,U,te){if(typeof U=="object"&&U!==null&&U.type===w&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case y:e:{for(var xe=U.key;A!==null;){if(A.key===xe){if(xe=U.type,xe===w){if(A.tag===7){i(q,A.sibling),te=f(A,U.props.children),te.return=q,q=te;break e}}else if(A.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===T&&xs(xe)===A.type){i(q,A.sibling),te=f(A,U.props),gr(te,U),te.return=q,q=te;break e}i(q,A);break}else a(q,A);A=A.sibling}U.type===w?(te=Os(U.props.children,q.mode,te,U.key),te.return=q,q=te):(te=Gi(U.type,U.key,U.props,null,q.mode,te),gr(te,U),te.return=q,q=te)}return S(q);case Q:e:{for(xe=U.key;A!==null;){if(A.key===xe)if(A.tag===4&&A.stateNode.containerInfo===U.containerInfo&&A.stateNode.implementation===U.implementation){i(q,A.sibling),te=f(A,U.children||[]),te.return=q,q=te;break e}else{i(q,A);break}else a(q,A);A=A.sibling}te=Au(U,q.mode,te),te.return=q,q=te}return S(q);case T:return U=xs(U),Ge(q,A,U,te)}if(W(U))return de(q,A,U,te);if(F(U)){if(xe=F(U),typeof xe!="function")throw Error(r(150));return U=xe.call(U),be(q,A,U,te)}if(typeof U.then=="function")return Ge(q,A,Fi(U),te);if(U.$$typeof===N)return Ge(q,A,Wi(q,U),te);Ki(q,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,A!==null&&A.tag===6?(i(q,A.sibling),te=f(A,U),te.return=q,q=te):(i(q,A),te=Xu(U,q.mode,te),te.return=q,q=te),S(q)):i(q,A)}return function(q,A,U,te){try{xr=0;var xe=Ge(q,A,U,te);return rl=null,xe}catch(he){if(he===ll||he===Hi)throw he;var Xe=Et(29,he,null,q.mode);return Xe.lanes=te,Xe.return=q,Xe}finally{}}}var bs=Bm(!0),Hm=Bm(!1),ja=!1;function Bu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hu(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function wa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ka(e,a,i){var c=e.updateQueue;if(c===null)return null;if(c=c.shared,(Ee&2)!==0){var f=c.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),c.pending=a,a=Vi(e),Rm(e,null,i),a}return Ui(e,c,a,i),Vi(e)}function br(e,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var c=a.lanes;c&=e.pendingLanes,i|=c,a.lanes=i,Mh(e,i)}}function Iu(e,a){var i=e.updateQueue,c=e.alternate;if(c!==null&&(c=c.updateQueue,i===c)){var f=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var S={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?f=m=S:m=m.next=S,i=i.next}while(i!==null);m===null?f=m=a:m=m.next=a}else f=m=a;i={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:c.shared,callbacks:c.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=a:e.next=a,i.lastBaseUpdate=a}var Fu=!1;function vr(){if(Fu){var e=sl;if(e!==null)throw e}}function yr(e,a,i,c){Fu=!1;var f=e.updateQueue;ja=!1;var m=f.firstBaseUpdate,S=f.lastBaseUpdate,$=f.shared.pending;if($!==null){f.shared.pending=null;var C=$,V=C.next;C.next=null,S===null?m=V:S.next=V,S=C;var J=e.alternate;J!==null&&(J=J.updateQueue,$=J.lastBaseUpdate,$!==S&&($===null?J.firstBaseUpdate=V:$.next=V,J.lastBaseUpdate=C))}if(m!==null){var ne=f.baseState;S=0,J=V=C=null,$=m;do{var L=$.lane&-536870913,I=L!==$.lane;if(I?(Te&L)===L:(c&L)===L){L!==0&&L===al&&(Fu=!0),J!==null&&(J=J.next={lane:0,tag:$.tag,payload:$.payload,callback:null,next:null});e:{var de=e,be=$;L=a;var Ge=i;switch(be.tag){case 1:if(de=be.payload,typeof de=="function"){ne=de.call(Ge,ne,L);break e}ne=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=be.payload,L=typeof de=="function"?de.call(Ge,ne,L):de,L==null)break e;ne=g({},ne,L);break e;case 2:ja=!0}}L=$.callback,L!==null&&(e.flags|=64,I&&(e.flags|=8192),I=f.callbacks,I===null?f.callbacks=[L]:I.push(L))}else I={lane:L,tag:$.tag,payload:$.payload,callback:$.callback,next:null},J===null?(V=J=I,C=ne):J=J.next=I,S|=L;if($=$.next,$===null){if($=f.shared.pending,$===null)break;I=$,$=I.next,I.next=null,f.lastBaseUpdate=I,f.shared.pending=null}}while(!0);J===null&&(C=ne),f.baseState=C,f.firstBaseUpdate=V,f.lastBaseUpdate=J,m===null&&(f.shared.lanes=0),za|=S,e.lanes=S,e.memoizedState=ne}}function Im(e,a){if(typeof e!="function")throw Error(r(191,e));e.call(a)}function Fm(e,a){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Im(i[e],a)}var il=ve(null),Ji=ve(0);function Km(e,a){e=Kn,ye(Ji,e),ye(il,a),Kn=e|a.baseLanes}function Ku(){ye(Ji,Kn),ye(il,il.current)}function Ju(){Kn=Ji.current,Se(il),Se(Ji)}var qt=ve(null),sn=null;function $a(e){var a=e.alternate;ye(tt,tt.current&1),ye(qt,e),sn===null&&(a===null||il.current!==null||a.memoizedState!==null)&&(sn=e)}function ed(e){ye(tt,tt.current),ye(qt,e),sn===null&&(sn=e)}function Jm(e){e.tag===22?(ye(tt,tt.current),ye(qt,e),sn===null&&(sn=e)):Ta()}function Ta(){ye(tt,tt.current),ye(qt,qt.current)}function Mt(e){Se(qt),sn===e&&(sn=null),Se(tt)}var tt=ve(0);function eo(e){for(var a=e;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||rO(i)||iO(i)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Gn=0,Qe=null,Ue=null,st=null,to=!1,ol=!1,vs=!1,no=0,Sr=0,cl=null,cQ=0;function Je(){throw Error(r(321))}function td(e,a){if(a===null)return!1;for(var i=0;i<a.length&&i<e.length;i++)if(!Zt(e[i],a[i]))return!1;return!0}function nd(e,a,i,c,f,m){return Gn=m,Qe=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,P.H=e===null||e.memoizedState===null?Ap:xd,vs=!1,m=i(c,f),vs=!1,ol&&(m=tp(a,i,c,f)),ep(e),m}function ep(e){P.H=wr;var a=Ue!==null&&Ue.next!==null;if(Gn=0,st=Ue=Qe=null,to=!1,Sr=0,cl=null,a)throw Error(r(300));e===null||lt||(e=e.dependencies,e!==null&&Di(e)&&(lt=!0))}function tp(e,a,i,c){Qe=e;var f=0;do{if(ol&&(cl=null),Sr=0,ol=!1,25<=f)throw Error(r(301));if(f+=1,st=Ue=null,e.updateQueue!=null){var m=e.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}P.H=Zp,m=a(i,c)}while(ol);return m}function uQ(){var e=P.H,a=e.useState()[0];return a=typeof a.then=="function"?Qr(a):a,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(Qe.flags|=1024),a}function ad(){var e=no!==0;return no=0,e}function sd(e,a,i){a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~i}function ld(e){if(to){for(e=e.memoizedState;e!==null;){var a=e.queue;a!==null&&(a.pending=null),e=e.next}to=!1}Gn=0,st=Ue=Qe=null,ol=!1,Sr=no=0,cl=null}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?Qe.memoizedState=st=e:st=st.next=e,st}function nt(){if(Ue===null){var e=Qe.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var a=st===null?Qe.memoizedState:st.next;if(a!==null)st=a,Ue=e;else{if(e===null)throw Qe.alternate===null?Error(r(467)):Error(r(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},st===null?Qe.memoizedState=st=e:st=st.next=e}return st}function ao(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qr(e){var a=Sr;return Sr+=1,cl===null&&(cl=[]),e=Lm(cl,e,a),a=Qe,(st===null?a.memoizedState:st.next)===null&&(a=a.alternate,P.H=a===null||a.memoizedState===null?Ap:xd),e}function so(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Qr(e);if(e.$$typeof===N)return mt(e)}throw Error(r(438,String(e)))}function rd(e){var a=null,i=Qe.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var c=Qe.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=ao(),Qe.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(e),c=0;c<e;c++)i[c]=M;return a.index++,i}function Ln(e,a){return typeof a=="function"?a(e):a}function lo(e){var a=nt();return id(a,Ue,e)}function id(e,a,i){var c=e.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=i;var f=e.baseQueue,m=c.pending;if(m!==null){if(f!==null){var S=f.next;f.next=m.next,m.next=S}a.baseQueue=f=m,c.pending=null}if(m=e.baseState,f===null)e.memoizedState=m;else{a=f.next;var $=S=null,C=null,V=a,J=!1;do{var ne=V.lane&-536870913;if(ne!==V.lane?(Te&ne)===ne:(Gn&ne)===ne){var L=V.revertLane;if(L===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),ne===al&&(J=!0);else if((Gn&L)===L){V=V.next,L===al&&(J=!0);continue}else ne={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},C===null?($=C=ne,S=m):C=C.next=ne,Qe.lanes|=L,za|=L;ne=V.action,vs&&i(m,ne),m=V.hasEagerState?V.eagerState:i(m,ne)}else L={lane:ne,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},C===null?($=C=L,S=m):C=C.next=L,Qe.lanes|=ne,za|=ne;V=V.next}while(V!==null&&V!==a);if(C===null?S=m:C.next=$,!Zt(m,e.memoizedState)&&(lt=!0,J&&(i=sl,i!==null)))throw i;e.memoizedState=m,e.baseState=S,e.baseQueue=C,c.lastRenderedState=m}return f===null&&(c.lanes=0),[e.memoizedState,c.dispatch]}function od(e){var a=nt(),i=a.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=e;var c=i.dispatch,f=i.pending,m=a.memoizedState;if(f!==null){i.pending=null;var S=f=f.next;do m=e(m,S.action),S=S.next;while(S!==f);Zt(m,a.memoizedState)||(lt=!0),a.memoizedState=m,a.baseQueue===null&&(a.baseState=m),i.lastRenderedState=m}return[m,c]}function np(e,a,i){var c=Qe,f=nt(),m=Pe;if(m){if(i===void 0)throw Error(r(407));i=i()}else i=a();var S=!Zt((Ue||f).memoizedState,i);if(S&&(f.memoizedState=i,lt=!0),f=f.queue,dd(lp.bind(null,c,f,e),[e]),f.getSnapshot!==a||S||st!==null&&st.memoizedState.tag&1){if(c.flags|=2048,ul(9,{destroy:void 0},sp.bind(null,c,f,i,a),null),Le===null)throw Error(r(349));m||(Gn&127)!==0||ap(c,a,i)}return i}function ap(e,a,i){e.flags|=16384,e={getSnapshot:a,value:i},a=Qe.updateQueue,a===null?(a=ao(),Qe.updateQueue=a,a.stores=[e]):(i=a.stores,i===null?a.stores=[e]:i.push(e))}function sp(e,a,i,c){a.value=i,a.getSnapshot=c,rp(a)&&ip(e)}function lp(e,a,i){return i(function(){rp(a)&&ip(e)})}function rp(e){var a=e.getSnapshot;e=e.value;try{var i=a();return!Zt(e,i)}catch{return!0}}function ip(e){var a=ds(e,2);a!==null&&zt(a,e,2)}function cd(e){var a=St();if(typeof e=="function"){var i=e;if(e=i(),vs){xa(!0);try{i()}finally{xa(!1)}}}return a.memoizedState=a.baseState=e,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:e},a}function op(e,a,i,c){return e.baseState=i,id(e,Ue,typeof c=="function"?c:Ln)}function dQ(e,a,i,c,f){if(oo(e))throw Error(r(485));if(e=a.action,e!==null){var m={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){m.listeners.push(S)}};P.T!==null?i(!0):m.isTransition=!1,c(m),i=a.pending,i===null?(m.next=a.pending=m,cp(a,m)):(m.next=i.next,a.pending=i.next=m)}}function cp(e,a){var i=a.action,c=a.payload,f=e.state;if(a.isTransition){var m=P.T,S={};P.T=S;try{var $=i(f,c),C=P.S;C!==null&&C(S,$),up(e,a,$)}catch(V){ud(e,a,V)}finally{m!==null&&S.types!==null&&(m.types=S.types),P.T=m}}else try{m=i(f,c),up(e,a,m)}catch(V){ud(e,a,V)}}function up(e,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(c){dp(e,a,c)},function(c){return ud(e,a,c)}):dp(e,a,i)}function dp(e,a,i){a.status="fulfilled",a.value=i,Op(a),e.state=i,a=e.pending,a!==null&&(i=a.next,i===a?e.pending=null:(i=i.next,a.next=i,cp(e,i)))}function ud(e,a,i){var c=e.pending;if(e.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=i,Op(a),a=a.next;while(a!==c)}e.action=null}function Op(e){e=e.listeners;for(var a=0;a<e.length;a++)(0,e[a])()}function fp(e,a){return a}function hp(e,a){if(Pe){var i=Le.formState;if(i!==null){e:{var c=Qe;if(Pe){if(De){t:{for(var f=De,m=an;f.nodeType!==8;){if(!m){f=null;break t}if(f=ln(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){De=ln(f.nextSibling),c=f.data==="F!";break e}}Sa(c)}c=!1}c&&(a=i[0])}}return i=St(),i.memoizedState=i.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fp,lastRenderedState:a},i.queue=c,i=Cp.bind(null,Qe,c),c.dispatch=i,c=cd(!1),m=pd.bind(null,Qe,!1,c.queue),c=St(),f={state:a,dispatch:null,action:e,pending:null},c.queue=f,i=dQ.bind(null,Qe,f,m,i),f.dispatch=i,c.memoizedState=e,[a,i,!1]}function mp(e){var a=nt();return pp(a,Ue,e)}function pp(e,a,i){if(a=id(e,a,fp)[0],e=lo(Ln)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=Qr(a)}catch(S){throw S===ll?Hi:S}else c=a;a=nt();var f=a.queue,m=f.dispatch;return i!==a.memoizedState&&(Qe.flags|=2048,ul(9,{destroy:void 0},OQ.bind(null,f,i),null)),[c,m,e]}function OQ(e,a){e.action=a}function xp(e){var a=nt(),i=Ue;if(i!==null)return pp(a,i,e);nt(),a=a.memoizedState,i=nt();var c=i.queue.dispatch;return i.memoizedState=e,[a,c,!1]}function ul(e,a,i,c){return e={tag:e,create:i,deps:c,inst:a,next:null},a=Qe.updateQueue,a===null&&(a=ao(),Qe.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=e.next=e:(c=i.next,i.next=e,e.next=c,a.lastEffect=e),e}function gp(){return nt().memoizedState}function ro(e,a,i,c){var f=St();Qe.flags|=e,f.memoizedState=ul(1|a,{destroy:void 0},i,c===void 0?null:c)}function io(e,a,i,c){var f=nt();c=c===void 0?null:c;var m=f.memoizedState.inst;Ue!==null&&c!==null&&td(c,Ue.memoizedState.deps)?f.memoizedState=ul(a,m,i,c):(Qe.flags|=e,f.memoizedState=ul(1|a,m,i,c))}function bp(e,a){ro(8390656,8,e,a)}function dd(e,a){io(2048,8,e,a)}function fQ(e){Qe.flags|=4;var a=Qe.updateQueue;if(a===null)a=ao(),Qe.updateQueue=a,a.events=[e];else{var i=a.events;i===null?a.events=[e]:i.push(e)}}function vp(e){var a=nt().memoizedState;return fQ({ref:a,nextImpl:e}),function(){if((Ee&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function yp(e,a){return io(4,2,e,a)}function Sp(e,a){return io(4,4,e,a)}function Qp(e,a){if(typeof a=="function"){e=e();var i=a(e);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return e=e(),a.current=e,function(){a.current=null}}function jp(e,a,i){i=i!=null?i.concat([e]):null,io(4,4,Qp.bind(null,a,e),i)}function Od(){}function wp(e,a){var i=nt();a=a===void 0?null:a;var c=i.memoizedState;return a!==null&&td(a,c[1])?c[0]:(i.memoizedState=[e,a],e)}function kp(e,a){var i=nt();a=a===void 0?null:a;var c=i.memoizedState;if(a!==null&&td(a,c[1]))return c[0];if(c=e(),vs){xa(!0);try{e()}finally{xa(!1)}}return i.memoizedState=[c,a],c}function fd(e,a,i){return i===void 0||(Gn&1073741824)!==0&&(Te&261930)===0?e.memoizedState=a:(e.memoizedState=i,e=$x(),Qe.lanes|=e,za|=e,i)}function $p(e,a,i,c){return Zt(i,a)?i:il.current!==null?(e=fd(e,i,c),Zt(e,a)||(lt=!0),e):(Gn&42)===0||(Gn&1073741824)!==0&&(Te&261930)===0?(lt=!0,e.memoizedState=i):(e=$x(),Qe.lanes|=e,za|=e,a)}function Tp(e,a,i,c,f){var m=B.p;B.p=m!==0&&8>m?m:8;var S=P.T,$={};P.T=$,pd(e,!1,a,i);try{var C=f(),V=P.S;if(V!==null&&V($,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var J=oQ(C,c);jr(e,a,J,Vt(e))}else jr(e,a,c,Vt(e))}catch(ne){jr(e,a,{then:function(){},status:"rejected",reason:ne},Vt())}finally{B.p=m,S!==null&&$.types!==null&&(S.types=$.types),P.T=S}}function hQ(){}function hd(e,a,i,c){if(e.tag!==5)throw Error(r(476));var f=Np(e).queue;Tp(e,f,a,E,i===null?hQ:function(){return Pp(e),i(c)})}function Np(e){var a=e.memoizedState;if(a!==null)return a;a={memoizedState:E,baseState:E,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:E},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:i},next:null},e.memoizedState=a,e=e.alternate,e!==null&&(e.memoizedState=a),a}function Pp(e){var a=Np(e);a.next===null&&(a=e.alternate.memoizedState),jr(e,a.next.queue,{},Vt())}function md(){return mt(Yr)}function zp(){return nt().memoizedState}function Rp(){return nt().memoizedState}function mQ(e){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var i=Vt();e=wa(i);var c=ka(a,e,i);c!==null&&(zt(c,a,i),br(c,a,i)),a={cache:Gu()},e.payload=a;return}a=a.return}}function pQ(e,a,i){var c=Vt();i={lane:c,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},oo(e)?_p(a,i):(i=Cu(e,a,i,c),i!==null&&(zt(i,e,c),Xp(i,a,c)))}function Cp(e,a,i){var c=Vt();jr(e,a,i,c)}function jr(e,a,i,c){var f={lane:c,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(oo(e))_p(a,f);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=a.lastRenderedReducer,m!==null))try{var S=a.lastRenderedState,$=m(S,i);if(f.hasEagerState=!0,f.eagerState=$,Zt($,S))return Ui(e,a,f,0),Le===null&&Yi(),!1}catch{}finally{}if(i=Cu(e,a,f,c),i!==null)return zt(i,e,c),Xp(i,a,c),!0}return!1}function pd(e,a,i,c){if(c={lane:2,revertLane:Bd(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},oo(e)){if(a)throw Error(r(479))}else a=Cu(e,i,c,2),a!==null&&zt(a,e,2)}function oo(e){var a=e.alternate;return e===Qe||a!==null&&a===Qe}function _p(e,a){ol=to=!0;var i=e.pending;i===null?a.next=a:(a.next=i.next,i.next=a),e.pending=a}function Xp(e,a,i){if((i&4194048)!==0){var c=a.lanes;c&=e.pendingLanes,i|=c,a.lanes=i,Mh(e,i)}}var wr={readContext:mt,use:so,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je};wr.useEffectEvent=Je;var Ap={readContext:mt,use:so,useCallback:function(e,a){return St().memoizedState=[e,a===void 0?null:a],e},useContext:mt,useEffect:bp,useImperativeHandle:function(e,a,i){i=i!=null?i.concat([e]):null,ro(4194308,4,Qp.bind(null,a,e),i)},useLayoutEffect:function(e,a){return ro(4194308,4,e,a)},useInsertionEffect:function(e,a){ro(4,2,e,a)},useMemo:function(e,a){var i=St();a=a===void 0?null:a;var c=e();if(vs){xa(!0);try{e()}finally{xa(!1)}}return i.memoizedState=[c,a],c},useReducer:function(e,a,i){var c=St();if(i!==void 0){var f=i(a);if(vs){xa(!0);try{i(a)}finally{xa(!1)}}}else f=a;return c.memoizedState=c.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},c.queue=e,e=e.dispatch=pQ.bind(null,Qe,e),[c.memoizedState,e]},useRef:function(e){var a=St();return e={current:e},a.memoizedState=e},useState:function(e){e=cd(e);var a=e.queue,i=Cp.bind(null,Qe,a);return a.dispatch=i,[e.memoizedState,i]},useDebugValue:Od,useDeferredValue:function(e,a){var i=St();return fd(i,e,a)},useTransition:function(){var e=cd(!1);return e=Tp.bind(null,Qe,e.queue,!0,!1),St().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,a,i){var c=Qe,f=St();if(Pe){if(i===void 0)throw Error(r(407));i=i()}else{if(i=a(),Le===null)throw Error(r(349));(Te&127)!==0||ap(c,a,i)}f.memoizedState=i;var m={value:i,getSnapshot:a};return f.queue=m,bp(lp.bind(null,c,m,e),[e]),c.flags|=2048,ul(9,{destroy:void 0},sp.bind(null,c,m,i,a),null),i},useId:function(){var e=St(),a=Le.identifierPrefix;if(Pe){var i=jn,c=Qn;i=(c&~(1<<32-At(c)-1)).toString(32)+i,a="_"+a+"R_"+i,i=no++,0<i&&(a+="H"+i.toString(32)),a+="_"}else i=cQ++,a="_"+a+"r_"+i.toString(32)+"_";return e.memoizedState=a},useHostTransitionStatus:md,useFormState:hp,useActionState:hp,useOptimistic:function(e){var a=St();a.memoizedState=a.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=pd.bind(null,Qe,!0,i),i.dispatch=a,[e,a]},useMemoCache:rd,useCacheRefresh:function(){return St().memoizedState=mQ.bind(null,Qe)},useEffectEvent:function(e){var a=St(),i={impl:e};return a.memoizedState=i,function(){if((Ee&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}},xd={readContext:mt,use:so,useCallback:wp,useContext:mt,useEffect:dd,useImperativeHandle:jp,useInsertionEffect:yp,useLayoutEffect:Sp,useMemo:kp,useReducer:lo,useRef:gp,useState:function(){return lo(Ln)},useDebugValue:Od,useDeferredValue:function(e,a){var i=nt();return $p(i,Ue.memoizedState,e,a)},useTransition:function(){var e=lo(Ln)[0],a=nt().memoizedState;return[typeof e=="boolean"?e:Qr(e),a]},useSyncExternalStore:np,useId:zp,useHostTransitionStatus:md,useFormState:mp,useActionState:mp,useOptimistic:function(e,a){var i=nt();return op(i,Ue,e,a)},useMemoCache:rd,useCacheRefresh:Rp};xd.useEffectEvent=vp;var Zp={readContext:mt,use:so,useCallback:wp,useContext:mt,useEffect:dd,useImperativeHandle:jp,useInsertionEffect:yp,useLayoutEffect:Sp,useMemo:kp,useReducer:od,useRef:gp,useState:function(){return od(Ln)},useDebugValue:Od,useDeferredValue:function(e,a){var i=nt();return Ue===null?fd(i,e,a):$p(i,Ue.memoizedState,e,a)},useTransition:function(){var e=od(Ln)[0],a=nt().memoizedState;return[typeof e=="boolean"?e:Qr(e),a]},useSyncExternalStore:np,useId:zp,useHostTransitionStatus:md,useFormState:xp,useActionState:xp,useOptimistic:function(e,a){var i=nt();return Ue!==null?op(i,Ue,e,a):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:rd,useCacheRefresh:Rp};Zp.useEffectEvent=vp;function gd(e,a,i,c){a=e.memoizedState,i=i(c,a),i=i==null?a:g({},a,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var bd={enqueueSetState:function(e,a,i){e=e._reactInternals;var c=Vt(),f=wa(c);f.payload=a,i!=null&&(f.callback=i),a=ka(e,f,c),a!==null&&(zt(a,e,c),br(a,e,c))},enqueueReplaceState:function(e,a,i){e=e._reactInternals;var c=Vt(),f=wa(c);f.tag=1,f.payload=a,i!=null&&(f.callback=i),a=ka(e,f,c),a!==null&&(zt(a,e,c),br(a,e,c))},enqueueForceUpdate:function(e,a){e=e._reactInternals;var i=Vt(),c=wa(i);c.tag=2,a!=null&&(c.callback=a),a=ka(e,c,i),a!==null&&(zt(a,e,i),br(a,e,i))}};function Ep(e,a,i,c,f,m,S){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(c,m,S):a.prototype&&a.prototype.isPureReactComponent?!dr(i,c)||!dr(f,m):!0}function qp(e,a,i,c){e=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,c),a.state!==e&&bd.enqueueReplaceState(a,a.state,null)}function ys(e,a){var i=a;if("ref"in a){i={};for(var c in a)c!=="ref"&&(i[c]=a[c])}if(e=e.defaultProps){i===a&&(i=g({},i));for(var f in e)i[f]===void 0&&(i[f]=e[f])}return i}function Mp(e){Mi(e)}function Yp(e){console.error(e)}function Up(e){Mi(e)}function co(e,a){try{var i=e.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function Vp(e,a,i){try{var c=e.onCaughtError;c(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function vd(e,a,i){return i=wa(i),i.tag=3,i.payload={element:null},i.callback=function(){co(e,a)},i}function Gp(e){return e=wa(e),e.tag=3,e}function Lp(e,a,i,c){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var m=c.value;e.payload=function(){return f(m)},e.callback=function(){Vp(a,i,c)}}var S=i.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(e.callback=function(){Vp(a,i,c),typeof f!="function"&&(Ra===null?Ra=new Set([this]):Ra.add(this));var $=c.stack;this.componentDidCatch(c.value,{componentStack:$!==null?$:""})})}function xQ(e,a,i,c,f){if(i.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=i.alternate,a!==null&&nl(a,i,f,!0),i=qt.current,i!==null){switch(i.tag){case 31:case 13:return sn===null?So():i.alternate===null&&et===0&&(et=3),i.flags&=-257,i.flags|=65536,i.lanes=f,c===Ii?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([c]):a.add(c),Ld(e,c,f)),!1;case 22:return i.flags|=65536,c===Ii?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([c]):i.add(c)),Ld(e,c,f)),!1}throw Error(r(435,i.tag))}return Ld(e,c,f),So(),!1}if(Pe)return a=qt.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,c!==qu&&(e=Error(r(422),{cause:c}),hr(en(e,i)))):(c!==qu&&(a=Error(r(423),{cause:c}),hr(en(a,i))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,c=en(c,i),f=vd(e.stateNode,c,f),Iu(e,f),et!==4&&(et=2)),!1;var m=Error(r(520),{cause:c});if(m=en(m,i),Cr===null?Cr=[m]:Cr.push(m),et!==4&&(et=2),a===null)return!0;c=en(c,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,e=f&-f,i.lanes|=e,e=vd(i.stateNode,c,e),Iu(i,e),!1;case 1:if(a=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Ra===null||!Ra.has(m))))return i.flags|=65536,f&=-f,i.lanes|=f,f=Gp(f),Lp(f,e,i,c),Iu(i,f),!1}i=i.return}while(i!==null);return!1}var yd=Error(r(461)),lt=!1;function pt(e,a,i,c){a.child=e===null?Hm(a,null,i,c):bs(a,e.child,i,c)}function Dp(e,a,i,c,f){i=i.render;var m=a.ref;if("ref"in c){var S={};for(var $ in c)$!=="ref"&&(S[$]=c[$])}else S=c;return ms(a),c=nd(e,a,i,S,m,f),$=ad(),e!==null&&!lt?(sd(e,a,f),Dn(e,a,f)):(Pe&&$&&Zu(a),a.flags|=1,pt(e,a,c,f),a.child)}function Wp(e,a,i,c,f){if(e===null){var m=i.type;return typeof m=="function"&&!_u(m)&&m.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=m,Bp(e,a,m,c,f)):(e=Gi(i.type,null,c,a,a.mode,f),e.ref=a.ref,e.return=a,a.child=e)}if(m=e.child,!Nd(e,f)){var S=m.memoizedProps;if(i=i.compare,i=i!==null?i:dr,i(S,c)&&e.ref===a.ref)return Dn(e,a,f)}return a.flags|=1,e=Mn(m,c),e.ref=a.ref,e.return=a,a.child=e}function Bp(e,a,i,c,f){if(e!==null){var m=e.memoizedProps;if(dr(m,c)&&e.ref===a.ref)if(lt=!1,a.pendingProps=c=m,Nd(e,f))(e.flags&131072)!==0&&(lt=!0);else return a.lanes=e.lanes,Dn(e,a,f)}return Sd(e,a,i,c,f)}function Hp(e,a,i,c){var f=c.children,m=e!==null?e.memoizedState:null;if(e===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((a.flags&128)!==0){if(m=m!==null?m.baseLanes|i:i,e!==null){for(c=a.child=e.child,f=0;c!==null;)f=f|c.lanes|c.childLanes,c=c.sibling;c=f&~m}else c=0,a.child=null;return Ip(e,a,m,i,c)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},e!==null&&Bi(a,m!==null?m.cachePool:null),m!==null?Km(a,m):Ku(),Jm(a);else return c=a.lanes=536870912,Ip(e,a,m!==null?m.baseLanes|i:i,i,c)}else m!==null?(Bi(a,m.cachePool),Km(a,m),Ta(),a.memoizedState=null):(e!==null&&Bi(a,null),Ku(),Ta());return pt(e,a,f,i),a.child}function kr(e,a){return e!==null&&e.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Ip(e,a,i,c,f){var m=Du();return m=m===null?null:{parent:at._currentValue,pool:m},a.memoizedState={baseLanes:i,cachePool:m},e!==null&&Bi(a,null),Ku(),Jm(a),e!==null&&nl(e,a,c,!0),a.childLanes=f,null}function uo(e,a){return a=fo({mode:a.mode,children:a.children},e.mode),a.ref=e.ref,e.child=a,a.return=e,a}function Fp(e,a,i){return bs(a,e.child,null,i),e=uo(a,a.pendingProps),e.flags|=2,Mt(a),a.memoizedState=null,e}function gQ(e,a,i){var c=a.pendingProps,f=(a.flags&128)!==0;if(a.flags&=-129,e===null){if(Pe){if(c.mode==="hidden")return e=uo(a,c),a.lanes=536870912,kr(null,e);if(ed(a),(e=De)?(e=cg(e,an),e=e!==null&&e.data==="&"?e:null,e!==null&&(a.memoizedState={dehydrated:e,treeContext:va!==null?{id:Qn,overflow:jn}:null,retryLane:536870912,hydrationErrors:null},i=_m(e),i.return=a,a.child=i,ht=a,De=null)):e=null,e===null)throw Sa(a);return a.lanes=536870912,null}return uo(a,c)}var m=e.memoizedState;if(m!==null){var S=m.dehydrated;if(ed(a),f)if(a.flags&256)a.flags&=-257,a=Fp(e,a,i);else if(a.memoizedState!==null)a.child=e.child,a.flags|=128,a=null;else throw Error(r(558));else if(lt||nl(e,a,i,!1),f=(i&e.childLanes)!==0,lt||f){if(c=Le,c!==null&&(S=Yh(c,i),S!==0&&S!==m.retryLane))throw m.retryLane=S,ds(e,S),zt(c,e,S),yd;So(),a=Fp(e,a,i)}else e=m.treeContext,De=ln(S.nextSibling),ht=a,Pe=!0,ya=null,an=!1,e!==null&&Zm(a,e),a=uo(a,c),a.flags|=4096;return a}return e=Mn(e.child,{mode:c.mode,children:c.children}),e.ref=a.ref,a.child=e,e.return=a,e}function Oo(e,a){var i=a.ref;if(i===null)e!==null&&e.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(r(284));(e===null||e.ref!==i)&&(a.flags|=4194816)}}function Sd(e,a,i,c,f){return ms(a),i=nd(e,a,i,c,void 0,f),c=ad(),e!==null&&!lt?(sd(e,a,f),Dn(e,a,f)):(Pe&&c&&Zu(a),a.flags|=1,pt(e,a,i,f),a.child)}function Kp(e,a,i,c,f,m){return ms(a),a.updateQueue=null,i=tp(a,c,i,f),ep(e),c=ad(),e!==null&&!lt?(sd(e,a,m),Dn(e,a,m)):(Pe&&c&&Zu(a),a.flags|=1,pt(e,a,i,m),a.child)}function Jp(e,a,i,c,f){if(ms(a),a.stateNode===null){var m=Ks,S=i.contextType;typeof S=="object"&&S!==null&&(m=mt(S)),m=new i(c,m),a.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=bd,a.stateNode=m,m._reactInternals=a,m=a.stateNode,m.props=c,m.state=a.memoizedState,m.refs={},Bu(a),S=i.contextType,m.context=typeof S=="object"&&S!==null?mt(S):Ks,m.state=a.memoizedState,S=i.getDerivedStateFromProps,typeof S=="function"&&(gd(a,i,S,c),m.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(S=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),S!==m.state&&bd.enqueueReplaceState(m,m.state,null),yr(a,c,m,f),vr(),m.state=a.memoizedState),typeof m.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(e===null){m=a.stateNode;var $=a.memoizedProps,C=ys(i,$);m.props=C;var V=m.context,J=i.contextType;S=Ks,typeof J=="object"&&J!==null&&(S=mt(J));var ne=i.getDerivedStateFromProps;J=typeof ne=="function"||typeof m.getSnapshotBeforeUpdate=="function",$=a.pendingProps!==$,J||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||($||V!==S)&&qp(a,m,c,S),ja=!1;var L=a.memoizedState;m.state=L,yr(a,c,m,f),vr(),V=a.memoizedState,$||L!==V||ja?(typeof ne=="function"&&(gd(a,i,ne,c),V=a.memoizedState),(C=ja||Ep(a,i,C,c,L,V,S))?(J||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(a.flags|=4194308)):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=V),m.props=c,m.state=V,m.context=S,c=C):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{m=a.stateNode,Hu(e,a),S=a.memoizedProps,J=ys(i,S),m.props=J,ne=a.pendingProps,L=m.context,V=i.contextType,C=Ks,typeof V=="object"&&V!==null&&(C=mt(V)),$=i.getDerivedStateFromProps,(V=typeof $=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(S!==ne||L!==C)&&qp(a,m,c,C),ja=!1,L=a.memoizedState,m.state=L,yr(a,c,m,f),vr();var I=a.memoizedState;S!==ne||L!==I||ja||e!==null&&e.dependencies!==null&&Di(e.dependencies)?(typeof $=="function"&&(gd(a,i,$,c),I=a.memoizedState),(J=ja||Ep(a,i,J,c,L,I,C)||e!==null&&e.dependencies!==null&&Di(e.dependencies))?(V||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(c,I,C),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(c,I,C)),typeof m.componentDidUpdate=="function"&&(a.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof m.componentDidUpdate!="function"||S===e.memoizedProps&&L===e.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&L===e.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=I),m.props=c,m.state=I,m.context=C,c=J):(typeof m.componentDidUpdate!="function"||S===e.memoizedProps&&L===e.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&L===e.memoizedState||(a.flags|=1024),c=!1)}return m=c,Oo(e,a),c=(a.flags&128)!==0,m||c?(m=a.stateNode,i=c&&typeof i.getDerivedStateFromError!="function"?null:m.render(),a.flags|=1,e!==null&&c?(a.child=bs(a,e.child,null,f),a.child=bs(a,null,i,f)):pt(e,a,i,f),a.memoizedState=m.state,e=a.child):e=Dn(e,a,f),e}function ex(e,a,i,c){return fs(),a.flags|=256,pt(e,a,i,c),a.child}var Qd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jd(e){return{baseLanes:e,cachePool:Vm()}}function wd(e,a,i){return e=e!==null?e.childLanes&~i:0,a&&(e|=Ut),e}function tx(e,a,i){var c=a.pendingProps,f=!1,m=(a.flags&128)!==0,S;if((S=m)||(S=e!==null&&e.memoizedState===null?!1:(tt.current&2)!==0),S&&(f=!0,a.flags&=-129),S=(a.flags&32)!==0,a.flags&=-33,e===null){if(Pe){if(f?$a(a):Ta(),(e=De)?(e=cg(e,an),e=e!==null&&e.data!=="&"?e:null,e!==null&&(a.memoizedState={dehydrated:e,treeContext:va!==null?{id:Qn,overflow:jn}:null,retryLane:536870912,hydrationErrors:null},i=_m(e),i.return=a,a.child=i,ht=a,De=null)):e=null,e===null)throw Sa(a);return iO(e)?a.lanes=32:a.lanes=536870912,null}var $=c.children;return c=c.fallback,f?(Ta(),f=a.mode,$=fo({mode:"hidden",children:$},f),c=Os(c,f,i,null),$.return=a,c.return=a,$.sibling=c,a.child=$,c=a.child,c.memoizedState=jd(i),c.childLanes=wd(e,S,i),a.memoizedState=Qd,kr(null,c)):($a(a),kd(a,$))}var C=e.memoizedState;if(C!==null&&($=C.dehydrated,$!==null)){if(m)a.flags&256?($a(a),a.flags&=-257,a=$d(e,a,i)):a.memoizedState!==null?(Ta(),a.child=e.child,a.flags|=128,a=null):(Ta(),$=c.fallback,f=a.mode,c=fo({mode:"visible",children:c.children},f),$=Os($,f,i,null),$.flags|=2,c.return=a,$.return=a,c.sibling=$,a.child=c,bs(a,e.child,null,i),c=a.child,c.memoizedState=jd(i),c.childLanes=wd(e,S,i),a.memoizedState=Qd,a=kr(null,c));else if($a(a),iO($)){if(S=$.nextSibling&&$.nextSibling.dataset,S)var V=S.dgst;S=V,c=Error(r(419)),c.stack="",c.digest=S,hr({value:c,source:null,stack:null}),a=$d(e,a,i)}else if(lt||nl(e,a,i,!1),S=(i&e.childLanes)!==0,lt||S){if(S=Le,S!==null&&(c=Yh(S,i),c!==0&&c!==C.retryLane))throw C.retryLane=c,ds(e,c),zt(S,e,c),yd;rO($)||So(),a=$d(e,a,i)}else rO($)?(a.flags|=192,a.child=e.child,a=null):(e=C.treeContext,De=ln($.nextSibling),ht=a,Pe=!0,ya=null,an=!1,e!==null&&Zm(a,e),a=kd(a,c.children),a.flags|=4096);return a}return f?(Ta(),$=c.fallback,f=a.mode,C=e.child,V=C.sibling,c=Mn(C,{mode:"hidden",children:c.children}),c.subtreeFlags=C.subtreeFlags&65011712,V!==null?$=Mn(V,$):($=Os($,f,i,null),$.flags|=2),$.return=a,c.return=a,c.sibling=$,a.child=c,kr(null,c),c=a.child,$=e.child.memoizedState,$===null?$=jd(i):(f=$.cachePool,f!==null?(C=at._currentValue,f=f.parent!==C?{parent:C,pool:C}:f):f=Vm(),$={baseLanes:$.baseLanes|i,cachePool:f}),c.memoizedState=$,c.childLanes=wd(e,S,i),a.memoizedState=Qd,kr(e.child,c)):($a(a),i=e.child,e=i.sibling,i=Mn(i,{mode:"visible",children:c.children}),i.return=a,i.sibling=null,e!==null&&(S=a.deletions,S===null?(a.deletions=[e],a.flags|=16):S.push(e)),a.child=i,a.memoizedState=null,i)}function kd(e,a){return a=fo({mode:"visible",children:a},e.mode),a.return=e,e.child=a}function fo(e,a){return e=Et(22,e,null,a),e.lanes=0,e}function $d(e,a,i){return bs(a,e.child,null,i),e=kd(a,a.pendingProps.children),e.flags|=2,a.memoizedState=null,e}function nx(e,a,i){e.lanes|=a;var c=e.alternate;c!==null&&(c.lanes|=a),Uu(e.return,a,i)}function Td(e,a,i,c,f,m){var S=e.memoizedState;S===null?e.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:i,tailMode:f,treeForkCount:m}:(S.isBackwards=a,S.rendering=null,S.renderingStartTime=0,S.last=c,S.tail=i,S.tailMode=f,S.treeForkCount=m)}function ax(e,a,i){var c=a.pendingProps,f=c.revealOrder,m=c.tail;c=c.children;var S=tt.current,$=(S&2)!==0;if($?(S=S&1|2,a.flags|=128):S&=1,ye(tt,S),pt(e,a,c,i),c=Pe?fr:0,!$&&e!==null&&(e.flags&128)!==0)e:for(e=a.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nx(e,i,a);else if(e.tag===19)nx(e,i,a);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===a)break e;for(;e.sibling===null;){if(e.return===null||e.return===a)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(i=a.child,f=null;i!==null;)e=i.alternate,e!==null&&eo(e)===null&&(f=i),i=i.sibling;i=f,i===null?(f=a.child,a.child=null):(f=i.sibling,i.sibling=null),Td(a,!1,f,i,m,c);break;case"backwards":case"unstable_legacy-backwards":for(i=null,f=a.child,a.child=null;f!==null;){if(e=f.alternate,e!==null&&eo(e)===null){a.child=f;break}e=f.sibling,f.sibling=i,i=f,f=e}Td(a,!0,i,null,m,c);break;case"together":Td(a,!1,null,null,void 0,c);break;default:a.memoizedState=null}return a.child}function Dn(e,a,i){if(e!==null&&(a.dependencies=e.dependencies),za|=a.lanes,(i&a.childLanes)===0)if(e!==null){if(nl(e,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(e!==null&&a.child!==e.child)throw Error(r(153));if(a.child!==null){for(e=a.child,i=Mn(e,e.pendingProps),a.child=i,i.return=a;e.sibling!==null;)e=e.sibling,i=i.sibling=Mn(e,e.pendingProps),i.return=a;i.sibling=null}return a.child}function Nd(e,a){return(e.lanes&a)!==0?!0:(e=e.dependencies,!!(e!==null&&Di(e)))}function bQ(e,a,i){switch(a.tag){case 3:Ot(a,a.stateNode.containerInfo),Qa(a,at,e.memoizedState.cache),fs();break;case 27:case 5:He(a);break;case 4:Ot(a,a.stateNode.containerInfo);break;case 10:Qa(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,ed(a),null;break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?($a(a),a.flags|=128,null):(i&a.child.childLanes)!==0?tx(e,a,i):($a(a),e=Dn(e,a,i),e!==null?e.sibling:null);$a(a);break;case 19:var f=(e.flags&128)!==0;if(c=(i&a.childLanes)!==0,c||(nl(e,a,i,!1),c=(i&a.childLanes)!==0),f){if(c)return ax(e,a,i);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),ye(tt,tt.current),c)break;return null;case 22:return a.lanes=0,Hp(e,a,i,a.pendingProps);case 24:Qa(a,at,e.memoizedState.cache)}return Dn(e,a,i)}function sx(e,a,i){if(e!==null)if(e.memoizedProps!==a.pendingProps)lt=!0;else{if(!Nd(e,i)&&(a.flags&128)===0)return lt=!1,bQ(e,a,i);lt=(e.flags&131072)!==0}else lt=!1,Pe&&(a.flags&1048576)!==0&&Am(a,fr,a.index);switch(a.lanes=0,a.tag){case 16:e:{var c=a.pendingProps;if(e=xs(a.elementType),a.type=e,typeof e=="function")_u(e)?(c=ys(e,c),a.tag=1,a=Jp(null,a,e,c,i)):(a.tag=0,a=Sd(null,a,e,c,i));else{if(e!=null){var f=e.$$typeof;if(f===X){a.tag=11,a=Dp(null,a,e,c,i);break e}else if(f===_){a.tag=14,a=Wp(null,a,e,c,i);break e}}throw a=ie(e)||e,Error(r(306,a,""))}}return a;case 0:return Sd(e,a,a.type,a.pendingProps,i);case 1:return c=a.type,f=ys(c,a.pendingProps),Jp(e,a,c,f,i);case 3:e:{if(Ot(a,a.stateNode.containerInfo),e===null)throw Error(r(387));c=a.pendingProps;var m=a.memoizedState;f=m.element,Hu(e,a),yr(a,c,null,i);var S=a.memoizedState;if(c=S.cache,Qa(a,at,c),c!==m.cache&&Vu(a,[at],i,!0),vr(),c=S.element,m.isDehydrated)if(m={element:c,isDehydrated:!1,cache:S.cache},a.updateQueue.baseState=m,a.memoizedState=m,a.flags&256){a=ex(e,a,c,i);break e}else if(c!==f){f=en(Error(r(424)),a),hr(f),a=ex(e,a,c,i);break e}else{switch(e=a.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(De=ln(e.firstChild),ht=a,Pe=!0,ya=null,an=!0,i=Hm(a,null,c,i),a.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(fs(),c===f){a=Dn(e,a,i);break e}pt(e,a,c,i)}a=a.child}return a;case 26:return Oo(e,a),e===null?(i=mg(a.type,null,a.pendingProps,null))?a.memoizedState=i:Pe||(i=a.type,e=a.pendingProps,c=No(ue.current).createElement(i),c[ft]=a,c[wt]=e,xt(c,i,e),ut(c),a.stateNode=c):a.memoizedState=mg(a.type,e.memoizedProps,a.pendingProps,e.memoizedState),null;case 27:return He(a),e===null&&Pe&&(c=a.stateNode=Og(a.type,a.pendingProps,ue.current),ht=a,an=!0,f=De,Aa(a.type)?(oO=f,De=ln(c.firstChild)):De=f),pt(e,a,a.pendingProps.children,i),Oo(e,a),e===null&&(a.flags|=4194304),a.child;case 5:return e===null&&Pe&&((f=c=De)&&(c=HQ(c,a.type,a.pendingProps,an),c!==null?(a.stateNode=c,ht=a,De=ln(c.firstChild),an=!1,f=!0):f=!1),f||Sa(a)),He(a),f=a.type,m=a.pendingProps,S=e!==null?e.memoizedProps:null,c=m.children,aO(f,m)?c=null:S!==null&&aO(f,S)&&(a.flags|=32),a.memoizedState!==null&&(f=nd(e,a,uQ,null,null,i),Yr._currentValue=f),Oo(e,a),pt(e,a,c,i),a.child;case 6:return e===null&&Pe&&((e=i=De)&&(i=IQ(i,a.pendingProps,an),i!==null?(a.stateNode=i,ht=a,De=null,e=!0):e=!1),e||Sa(a)),null;case 13:return tx(e,a,i);case 4:return Ot(a,a.stateNode.containerInfo),c=a.pendingProps,e===null?a.child=bs(a,null,c,i):pt(e,a,c,i),a.child;case 11:return Dp(e,a,a.type,a.pendingProps,i);case 7:return pt(e,a,a.pendingProps,i),a.child;case 8:return pt(e,a,a.pendingProps.children,i),a.child;case 12:return pt(e,a,a.pendingProps.children,i),a.child;case 10:return c=a.pendingProps,Qa(a,a.type,c.value),pt(e,a,c.children,i),a.child;case 9:return f=a.type._context,c=a.pendingProps.children,ms(a),f=mt(f),c=c(f),a.flags|=1,pt(e,a,c,i),a.child;case 14:return Wp(e,a,a.type,a.pendingProps,i);case 15:return Bp(e,a,a.type,a.pendingProps,i);case 19:return ax(e,a,i);case 31:return gQ(e,a,i);case 22:return Hp(e,a,i,a.pendingProps);case 24:return ms(a),c=mt(at),e===null?(f=Du(),f===null&&(f=Le,m=Gu(),f.pooledCache=m,m.refCount++,m!==null&&(f.pooledCacheLanes|=i),f=m),a.memoizedState={parent:c,cache:f},Bu(a),Qa(a,at,f)):((e.lanes&i)!==0&&(Hu(e,a),yr(a,null,null,i),vr()),f=e.memoizedState,m=a.memoizedState,f.parent!==c?(f={parent:c,cache:c},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),Qa(a,at,c)):(c=m.cache,Qa(a,at,c),c!==f.cache&&Vu(a,[at],i,!0))),pt(e,a,a.pendingProps.children,i),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function Wn(e){e.flags|=4}function Pd(e,a,i,c,f){if((a=(e.mode&32)!==0)&&(a=!1),a){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(zx())e.flags|=8192;else throw gs=Ii,Wu}else e.flags&=-16777217}function lx(e,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!vg(a))if(zx())e.flags|=8192;else throw gs=Ii,Wu}function ho(e,a){a!==null&&(e.flags|=4),e.flags&16384&&(a=e.tag!==22?Eh():536870912,e.lanes|=a,hl|=a)}function $r(e,a){if(!Pe)switch(e.tailMode){case"hidden":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var c=null;i!==null;)i.alternate!==null&&(c=i),i=i.sibling;c===null?a||e.tail===null?e.tail=null:e.tail.sibling=null:c.sibling=null}}function We(e){var a=e.alternate!==null&&e.alternate.child===e.child,i=0,c=0;if(a)for(var f=e.child;f!==null;)i|=f.lanes|f.childLanes,c|=f.subtreeFlags&65011712,c|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)i|=f.lanes|f.childLanes,c|=f.subtreeFlags,c|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=c,e.childLanes=i,a}function vQ(e,a,i){var c=a.pendingProps;switch(Eu(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(a),null;case 1:return We(a),null;case 3:return i=a.stateNode,c=null,e!==null&&(c=e.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),Vn(at),Ze(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(tl(a)?Wn(a):e===null||e.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Mu())),We(a),null;case 26:var f=a.type,m=a.memoizedState;return e===null?(Wn(a),m!==null?(We(a),lx(a,m)):(We(a),Pd(a,f,null,c,i))):m?m!==e.memoizedState?(Wn(a),We(a),lx(a,m)):(We(a),a.flags&=-16777217):(e=e.memoizedProps,e!==c&&Wn(a),We(a),Pd(a,f,e,c,i)),null;case 27:if(bt(a),i=ue.current,f=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==c&&Wn(a);else{if(!c){if(a.stateNode===null)throw Error(r(166));return We(a),null}e=Ce.current,tl(a)?Em(a):(e=Og(f,c,i),a.stateNode=e,Wn(a))}return We(a),null;case 5:if(bt(a),f=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==c&&Wn(a);else{if(!c){if(a.stateNode===null)throw Error(r(166));return We(a),null}if(m=Ce.current,tl(a))Em(a);else{var S=No(ue.current);switch(m){case 1:m=S.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:m=S.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":m=S.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":m=S.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":m=S.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof c.is=="string"?S.createElement("select",{is:c.is}):S.createElement("select"),c.multiple?m.multiple=!0:c.size&&(m.size=c.size);break;default:m=typeof c.is=="string"?S.createElement(f,{is:c.is}):S.createElement(f)}}m[ft]=a,m[wt]=c;e:for(S=a.child;S!==null;){if(S.tag===5||S.tag===6)m.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===a)break e;for(;S.sibling===null;){if(S.return===null||S.return===a)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}a.stateNode=m;e:switch(xt(m,f,c),f){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Wn(a)}}return We(a),Pd(a,a.type,e===null?null:e.memoizedProps,a.pendingProps,i),null;case 6:if(e&&a.stateNode!=null)e.memoizedProps!==c&&Wn(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(r(166));if(e=ue.current,tl(a)){if(e=a.stateNode,i=a.memoizedProps,c=null,f=ht,f!==null)switch(f.tag){case 27:case 5:c=f.memoizedProps}e[ft]=a,e=!!(e.nodeValue===i||c!==null&&c.suppressHydrationWarning===!0||tg(e.nodeValue,i)),e||Sa(a,!0)}else e=No(e).createTextNode(c),e[ft]=a,a.stateNode=e}return We(a),null;case 31:if(i=a.memoizedState,e===null||e.memoizedState!==null){if(c=tl(a),i!==null){if(e===null){if(!c)throw Error(r(318));if(e=a.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[ft]=a}else fs(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;We(a),e=!1}else i=Mu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return a.flags&256?(Mt(a),a):(Mt(a),null);if((a.flags&128)!==0)throw Error(r(558))}return We(a),null;case 13:if(c=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=tl(a),c!==null&&c.dehydrated!==null){if(e===null){if(!f)throw Error(r(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(317));f[ft]=a}else fs(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;We(a),f=!1}else f=Mu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return a.flags&256?(Mt(a),a):(Mt(a),null)}return Mt(a),(a.flags&128)!==0?(a.lanes=i,a):(i=c!==null,e=e!==null&&e.memoizedState!==null,i&&(c=a.child,f=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(f=c.alternate.memoizedState.cachePool.pool),m=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(m=c.memoizedState.cachePool.pool),m!==f&&(c.flags|=2048)),i!==e&&i&&(a.child.flags|=8192),ho(a,a.updateQueue),We(a),null);case 4:return Ze(),e===null&&Kd(a.stateNode.containerInfo),We(a),null;case 10:return Vn(a.type),We(a),null;case 19:if(Se(tt),c=a.memoizedState,c===null)return We(a),null;if(f=(a.flags&128)!==0,m=c.rendering,m===null)if(f)$r(c,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=a.child;e!==null;){if(m=eo(e),m!==null){for(a.flags|=128,$r(c,!1),e=m.updateQueue,a.updateQueue=e,ho(a,e),a.subtreeFlags=0,e=i,i=a.child;i!==null;)Cm(i,e),i=i.sibling;return ye(tt,tt.current&1|2),Pe&&Yn(a,c.treeForkCount),a.child}e=e.sibling}c.tail!==null&&_t()>bo&&(a.flags|=128,f=!0,$r(c,!1),a.lanes=4194304)}else{if(!f)if(e=eo(m),e!==null){if(a.flags|=128,f=!0,e=e.updateQueue,a.updateQueue=e,ho(a,e),$r(c,!0),c.tail===null&&c.tailMode==="hidden"&&!m.alternate&&!Pe)return We(a),null}else 2*_t()-c.renderingStartTime>bo&&i!==536870912&&(a.flags|=128,f=!0,$r(c,!1),a.lanes=4194304);c.isBackwards?(m.sibling=a.child,a.child=m):(e=c.last,e!==null?e.sibling=m:a.child=m,c.last=m)}return c.tail!==null?(e=c.tail,c.rendering=e,c.tail=e.sibling,c.renderingStartTime=_t(),e.sibling=null,i=tt.current,ye(tt,f?i&1|2:i&1),Pe&&Yn(a,c.treeForkCount),e):(We(a),null);case 22:case 23:return Mt(a),Ju(),c=a.memoizedState!==null,e!==null?e.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(i&536870912)!==0&&(a.flags&128)===0&&(We(a),a.subtreeFlags&6&&(a.flags|=8192)):We(a),i=a.updateQueue,i!==null&&ho(a,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048),e!==null&&Se(ps),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),Vn(at),We(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function yQ(e,a){switch(Eu(a),a.tag){case 1:return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return Vn(at),Ze(),e=a.flags,(e&65536)!==0&&(e&128)===0?(a.flags=e&-65537|128,a):null;case 26:case 27:case 5:return bt(a),null;case 31:if(a.memoizedState!==null){if(Mt(a),a.alternate===null)throw Error(r(340));fs()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 13:if(Mt(a),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(r(340));fs()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return Se(tt),null;case 4:return Ze(),null;case 10:return Vn(a.type),null;case 22:case 23:return Mt(a),Ju(),e!==null&&Se(ps),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 24:return Vn(at),null;case 25:return null;default:return null}}function rx(e,a){switch(Eu(a),a.tag){case 3:Vn(at),Ze();break;case 26:case 27:case 5:bt(a);break;case 4:Ze();break;case 31:a.memoizedState!==null&&Mt(a);break;case 13:Mt(a);break;case 19:Se(tt);break;case 10:Vn(a.type);break;case 22:case 23:Mt(a),Ju(),e!==null&&Se(ps);break;case 24:Vn(at)}}function Tr(e,a){try{var i=a.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var f=c.next;i=f;do{if((i.tag&e)===e){c=void 0;var m=i.create,S=i.inst;c=m(),S.destroy=c}i=i.next}while(i!==f)}}catch($){Ye(a,a.return,$)}}function Na(e,a,i){try{var c=a.updateQueue,f=c!==null?c.lastEffect:null;if(f!==null){var m=f.next;c=m;do{if((c.tag&e)===e){var S=c.inst,$=S.destroy;if($!==void 0){S.destroy=void 0,f=a;var C=i,V=$;try{V()}catch(J){Ye(f,C,J)}}}c=c.next}while(c!==m)}}catch(J){Ye(a,a.return,J)}}function ix(e){var a=e.updateQueue;if(a!==null){var i=e.stateNode;try{Fm(a,i)}catch(c){Ye(e,e.return,c)}}}function ox(e,a,i){i.props=ys(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(c){Ye(e,a,c)}}function Nr(e,a){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var c=e.stateNode;break;case 30:c=e.stateNode;break;default:c=e.stateNode}typeof i=="function"?e.refCleanup=i(c):i.current=c}}catch(f){Ye(e,a,f)}}function wn(e,a){var i=e.ref,c=e.refCleanup;if(i!==null)if(typeof c=="function")try{c()}catch(f){Ye(e,a,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){Ye(e,a,f)}else i.current=null}function cx(e){var a=e.type,i=e.memoizedProps,c=e.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&c.focus();break e;case"img":i.src?c.src=i.src:i.srcSet&&(c.srcset=i.srcSet)}}catch(f){Ye(e,e.return,f)}}function zd(e,a,i){try{var c=e.stateNode;VQ(c,e.type,i,a),c[wt]=a}catch(f){Ye(e,e.return,f)}}function ux(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Aa(e.type)||e.tag===4}function Rd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ux(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&&Aa(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 Cd(e,a,i){var c=e.tag;if(c===5||c===6)e=e.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(e),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=En));else if(c!==4&&(c===27&&Aa(e.type)&&(i=e.stateNode,a=null),e=e.child,e!==null))for(Cd(e,a,i),e=e.sibling;e!==null;)Cd(e,a,i),e=e.sibling}function mo(e,a,i){var c=e.tag;if(c===5||c===6)e=e.stateNode,a?i.insertBefore(e,a):i.appendChild(e);else if(c!==4&&(c===27&&Aa(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(mo(e,a,i),e=e.sibling;e!==null;)mo(e,a,i),e=e.sibling}function dx(e){var a=e.stateNode,i=e.memoizedProps;try{for(var c=e.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);xt(a,c,i),a[ft]=e,a[wt]=i}catch(m){Ye(e,e.return,m)}}var Bn=!1,rt=!1,_d=!1,Ox=typeof WeakSet=="function"?WeakSet:Set,dt=null;function SQ(e,a){if(e=e.containerInfo,tO=Ao,e=jm(e),$u(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var c=i.getSelection&&i.getSelection();if(c&&c.rangeCount!==0){i=c.anchorNode;var f=c.anchorOffset,m=c.focusNode;c=c.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var S=0,$=-1,C=-1,V=0,J=0,ne=e,L=null;t:for(;;){for(var I;ne!==i||f!==0&&ne.nodeType!==3||($=S+f),ne!==m||c!==0&&ne.nodeType!==3||(C=S+c),ne.nodeType===3&&(S+=ne.nodeValue.length),(I=ne.firstChild)!==null;)L=ne,ne=I;for(;;){if(ne===e)break t;if(L===i&&++V===f&&($=S),L===m&&++J===c&&(C=S),(I=ne.nextSibling)!==null)break;ne=L,L=ne.parentNode}ne=I}i=$===-1||C===-1?null:{start:$,end:C}}else i=null}i=i||{start:0,end:0}}else i=null;for(nO={focusedElem:e,selectionRange:i},Ao=!1,dt=a;dt!==null;)if(a=dt,e=a.child,(a.subtreeFlags&1028)!==0&&e!==null)e.return=a,dt=e;else for(;dt!==null;){switch(a=dt,m=a.alternate,e=a.flags,a.tag){case 0:if((e&4)!==0&&(e=a.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)f=e[i],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&m!==null){e=void 0,i=a,f=m.memoizedProps,m=m.memoizedState,c=i.stateNode;try{var de=ys(i.type,f);e=c.getSnapshotBeforeUpdate(de,m),c.__reactInternalSnapshotBeforeUpdate=e}catch(be){Ye(i,i.return,be)}}break;case 3:if((e&1024)!==0){if(e=a.stateNode.containerInfo,i=e.nodeType,i===9)lO(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":lO(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=a.sibling,e!==null){e.return=a.return,dt=e;break}dt=a.return}}function fx(e,a,i){var c=i.flags;switch(i.tag){case 0:case 11:case 15:In(e,i),c&4&&Tr(5,i);break;case 1:if(In(e,i),c&4)if(e=i.stateNode,a===null)try{e.componentDidMount()}catch(S){Ye(i,i.return,S)}else{var f=ys(i.type,a.memoizedProps);a=a.memoizedState;try{e.componentDidUpdate(f,a,e.__reactInternalSnapshotBeforeUpdate)}catch(S){Ye(i,i.return,S)}}c&64&&ix(i),c&512&&Nr(i,i.return);break;case 3:if(In(e,i),c&64&&(e=i.updateQueue,e!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{Fm(e,a)}catch(S){Ye(i,i.return,S)}}break;case 27:a===null&&c&4&&dx(i);case 26:case 5:In(e,i),a===null&&c&4&&cx(i),c&512&&Nr(i,i.return);break;case 12:In(e,i);break;case 31:In(e,i),c&4&&px(e,i);break;case 13:In(e,i),c&4&&xx(e,i),c&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=zQ.bind(null,i),FQ(e,i))));break;case 22:if(c=i.memoizedState!==null||Bn,!c){a=a!==null&&a.memoizedState!==null||rt,f=Bn;var m=rt;Bn=c,(rt=a)&&!m?Fn(e,i,(i.subtreeFlags&8772)!==0):In(e,i),Bn=f,rt=m}break;case 30:break;default:In(e,i)}}function hx(e){var a=e.alternate;a!==null&&(e.alternate=null,hx(a)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(a=e.stateNode,a!==null&&uu(a)),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 Ie=null,$t=!1;function Hn(e,a,i){for(i=i.child;i!==null;)mx(e,a,i),i=i.sibling}function mx(e,a,i){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(Jl,i)}catch{}switch(i.tag){case 26:rt||wn(i,a),Hn(e,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:rt||wn(i,a);var c=Ie,f=$t;Aa(i.type)&&(Ie=i.stateNode,$t=!1),Hn(e,a,i),Er(i.stateNode),Ie=c,$t=f;break;case 5:rt||wn(i,a);case 6:if(c=Ie,f=$t,Ie=null,Hn(e,a,i),Ie=c,$t=f,Ie!==null)if($t)try{(Ie.nodeType===9?Ie.body:Ie.nodeName==="HTML"?Ie.ownerDocument.body:Ie).removeChild(i.stateNode)}catch(m){Ye(i,a,m)}else try{Ie.removeChild(i.stateNode)}catch(m){Ye(i,a,m)}break;case 18:Ie!==null&&($t?(e=Ie,ig(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Sl(e)):ig(Ie,i.stateNode));break;case 4:c=Ie,f=$t,Ie=i.stateNode.containerInfo,$t=!0,Hn(e,a,i),Ie=c,$t=f;break;case 0:case 11:case 14:case 15:Na(2,i,a),rt||Na(4,i,a),Hn(e,a,i);break;case 1:rt||(wn(i,a),c=i.stateNode,typeof c.componentWillUnmount=="function"&&ox(i,a,c)),Hn(e,a,i);break;case 21:Hn(e,a,i);break;case 22:rt=(c=rt)||i.memoizedState!==null,Hn(e,a,i),rt=c;break;default:Hn(e,a,i)}}function px(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Sl(e)}catch(i){Ye(a,a.return,i)}}}function xx(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Sl(e)}catch(i){Ye(a,a.return,i)}}function QQ(e){switch(e.tag){case 31:case 13:case 19:var a=e.stateNode;return a===null&&(a=e.stateNode=new Ox),a;case 22:return e=e.stateNode,a=e._retryCache,a===null&&(a=e._retryCache=new Ox),a;default:throw Error(r(435,e.tag))}}function po(e,a){var i=QQ(e);a.forEach(function(c){if(!i.has(c)){i.add(c);var f=RQ.bind(null,e,c);c.then(f,f)}})}function Tt(e,a){var i=a.deletions;if(i!==null)for(var c=0;c<i.length;c++){var f=i[c],m=e,S=a,$=S;e:for(;$!==null;){switch($.tag){case 27:if(Aa($.type)){Ie=$.stateNode,$t=!1;break e}break;case 5:Ie=$.stateNode,$t=!1;break e;case 3:case 4:Ie=$.stateNode.containerInfo,$t=!0;break e}$=$.return}if(Ie===null)throw Error(r(160));mx(m,S,f),Ie=null,$t=!1,m=f.alternate,m!==null&&(m.return=null),f.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)gx(a,e),a=a.sibling}var fn=null;function gx(e,a){var i=e.alternate,c=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Tt(a,e),Nt(e),c&4&&(Na(3,e,e.return),Tr(3,e),Na(5,e,e.return));break;case 1:Tt(a,e),Nt(e),c&512&&(rt||i===null||wn(i,i.return)),c&64&&Bn&&(e=e.updateQueue,e!==null&&(c=e.callbacks,c!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?c:i.concat(c))));break;case 26:var f=fn;if(Tt(a,e),Nt(e),c&512&&(rt||i===null||wn(i,i.return)),c&4){var m=i!==null?i.memoizedState:null;if(c=e.memoizedState,i===null)if(c===null)if(e.stateNode===null){e:{c=e.type,i=e.memoizedProps,f=f.ownerDocument||f;t:switch(c){case"title":m=f.getElementsByTagName("title")[0],(!m||m[nr]||m[ft]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=f.createElement(c),f.head.insertBefore(m,f.querySelector("head > title"))),xt(m,c,i),m[ft]=e,ut(m),c=m;break e;case"link":var S=gg("link","href",f).get(c+(i.href||""));if(S){for(var $=0;$<S.length;$++)if(m=S[$],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){S.splice($,1);break t}}m=f.createElement(c),xt(m,c,i),f.head.appendChild(m);break;case"meta":if(S=gg("meta","content",f).get(c+(i.content||""))){for($=0;$<S.length;$++)if(m=S[$],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){S.splice($,1);break t}}m=f.createElement(c),xt(m,c,i),f.head.appendChild(m);break;default:throw Error(r(468,c))}m[ft]=e,ut(m),c=m}e.stateNode=c}else bg(f,e.type,e.stateNode);else e.stateNode=xg(f,c,e.memoizedProps);else m!==c?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,c===null?bg(f,e.type,e.stateNode):xg(f,c,e.memoizedProps)):c===null&&e.stateNode!==null&&zd(e,e.memoizedProps,i.memoizedProps)}break;case 27:Tt(a,e),Nt(e),c&512&&(rt||i===null||wn(i,i.return)),i!==null&&c&4&&zd(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Tt(a,e),Nt(e),c&512&&(rt||i===null||wn(i,i.return)),e.flags&32){f=e.stateNode;try{Ls(f,"")}catch(de){Ye(e,e.return,de)}}c&4&&e.stateNode!=null&&(f=e.memoizedProps,zd(e,f,i!==null?i.memoizedProps:f)),c&1024&&(_d=!0);break;case 6:if(Tt(a,e),Nt(e),c&4){if(e.stateNode===null)throw Error(r(162));c=e.memoizedProps,i=e.stateNode;try{i.nodeValue=c}catch(de){Ye(e,e.return,de)}}break;case 3:if(Ro=null,f=fn,fn=Po(a.containerInfo),Tt(a,e),fn=f,Nt(e),c&4&&i!==null&&i.memoizedState.isDehydrated)try{Sl(a.containerInfo)}catch(de){Ye(e,e.return,de)}_d&&(_d=!1,bx(e));break;case 4:c=fn,fn=Po(e.stateNode.containerInfo),Tt(a,e),Nt(e),fn=c;break;case 12:Tt(a,e),Nt(e);break;case 31:Tt(a,e),Nt(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,po(e,c)));break;case 13:Tt(a,e),Nt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(go=_t()),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,po(e,c)));break;case 22:f=e.memoizedState!==null;var C=i!==null&&i.memoizedState!==null,V=Bn,J=rt;if(Bn=V||f,rt=J||C,Tt(a,e),rt=J,Bn=V,Nt(e),c&8192)e:for(a=e.stateNode,a._visibility=f?a._visibility&-2:a._visibility|1,f&&(i===null||C||Bn||rt||Ss(e)),i=null,a=e;;){if(a.tag===5||a.tag===26){if(i===null){C=i=a;try{if(m=C.stateNode,f)S=m.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{$=C.stateNode;var ne=C.memoizedProps.style,L=ne!=null&&ne.hasOwnProperty("display")?ne.display:null;$.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(de){Ye(C,C.return,de)}}}else if(a.tag===6){if(i===null){C=a;try{C.stateNode.nodeValue=f?"":C.memoizedProps}catch(de){Ye(C,C.return,de)}}}else if(a.tag===18){if(i===null){C=a;try{var I=C.stateNode;f?og(I,!0):og(C.stateNode,!1)}catch(de){Ye(C,C.return,de)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===e)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break e;for(;a.sibling===null;){if(a.return===null||a.return===e)break e;i===a&&(i=null),a=a.return}i===a&&(i=null),a.sibling.return=a.return,a=a.sibling}c&4&&(c=e.updateQueue,c!==null&&(i=c.retryQueue,i!==null&&(c.retryQueue=null,po(e,i))));break;case 19:Tt(a,e),Nt(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,po(e,c)));break;case 30:break;case 21:break;default:Tt(a,e),Nt(e)}}function Nt(e){var a=e.flags;if(a&2){try{for(var i,c=e.return;c!==null;){if(ux(c)){i=c;break}c=c.return}if(i==null)throw Error(r(160));switch(i.tag){case 27:var f=i.stateNode,m=Rd(e);mo(e,m,f);break;case 5:var S=i.stateNode;i.flags&32&&(Ls(S,""),i.flags&=-33);var $=Rd(e);mo(e,$,S);break;case 3:case 4:var C=i.stateNode.containerInfo,V=Rd(e);Cd(e,V,C);break;default:throw Error(r(161))}}catch(J){Ye(e,e.return,J)}e.flags&=-3}a&4096&&(e.flags&=-4097)}function bx(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var a=e;bx(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),e=e.sibling}}function In(e,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)fx(e,a.alternate,a),a=a.sibling}function Ss(e){for(e=e.child;e!==null;){var a=e;switch(a.tag){case 0:case 11:case 14:case 15:Na(4,a,a.return),Ss(a);break;case 1:wn(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&ox(a,a.return,i),Ss(a);break;case 27:Er(a.stateNode);case 26:case 5:wn(a,a.return),Ss(a);break;case 22:a.memoizedState===null&&Ss(a);break;case 30:Ss(a);break;default:Ss(a)}e=e.sibling}}function Fn(e,a,i){for(i=i&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,f=e,m=a,S=m.flags;switch(m.tag){case 0:case 11:case 15:Fn(f,m,i),Tr(4,m);break;case 1:if(Fn(f,m,i),c=m,f=c.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(V){Ye(c,c.return,V)}if(c=m,f=c.updateQueue,f!==null){var $=c.stateNode;try{var C=f.shared.hiddenCallbacks;if(C!==null)for(f.shared.hiddenCallbacks=null,f=0;f<C.length;f++)Im(C[f],$)}catch(V){Ye(c,c.return,V)}}i&&S&64&&ix(m),Nr(m,m.return);break;case 27:dx(m);case 26:case 5:Fn(f,m,i),i&&c===null&&S&4&&cx(m),Nr(m,m.return);break;case 12:Fn(f,m,i);break;case 31:Fn(f,m,i),i&&S&4&&px(f,m);break;case 13:Fn(f,m,i),i&&S&4&&xx(f,m);break;case 22:m.memoizedState===null&&Fn(f,m,i),Nr(m,m.return);break;case 30:break;default:Fn(f,m,i)}a=a.sibling}}function Xd(e,a){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(e=a.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&mr(i))}function Ad(e,a){e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&mr(e))}function hn(e,a,i,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)vx(e,a,i,c),a=a.sibling}function vx(e,a,i,c){var f=a.flags;switch(a.tag){case 0:case 11:case 15:hn(e,a,i,c),f&2048&&Tr(9,a);break;case 1:hn(e,a,i,c);break;case 3:hn(e,a,i,c),f&2048&&(e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&mr(e)));break;case 12:if(f&2048){hn(e,a,i,c),e=a.stateNode;try{var m=a.memoizedProps,S=m.id,$=m.onPostCommit;typeof $=="function"&&$(S,a.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Ye(a,a.return,C)}}else hn(e,a,i,c);break;case 31:hn(e,a,i,c);break;case 13:hn(e,a,i,c);break;case 23:break;case 22:m=a.stateNode,S=a.alternate,a.memoizedState!==null?m._visibility&2?hn(e,a,i,c):Pr(e,a):m._visibility&2?hn(e,a,i,c):(m._visibility|=2,dl(e,a,i,c,(a.subtreeFlags&10256)!==0||!1)),f&2048&&Xd(S,a);break;case 24:hn(e,a,i,c),f&2048&&Ad(a.alternate,a);break;default:hn(e,a,i,c)}}function dl(e,a,i,c,f){for(f=f&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var m=e,S=a,$=i,C=c,V=S.flags;switch(S.tag){case 0:case 11:case 15:dl(m,S,$,C,f),Tr(8,S);break;case 23:break;case 22:var J=S.stateNode;S.memoizedState!==null?J._visibility&2?dl(m,S,$,C,f):Pr(m,S):(J._visibility|=2,dl(m,S,$,C,f)),f&&V&2048&&Xd(S.alternate,S);break;case 24:dl(m,S,$,C,f),f&&V&2048&&Ad(S.alternate,S);break;default:dl(m,S,$,C,f)}a=a.sibling}}function Pr(e,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=e,c=a,f=c.flags;switch(c.tag){case 22:Pr(i,c),f&2048&&Xd(c.alternate,c);break;case 24:Pr(i,c),f&2048&&Ad(c.alternate,c);break;default:Pr(i,c)}a=a.sibling}}var zr=8192;function Ol(e,a,i){if(e.subtreeFlags&zr)for(e=e.child;e!==null;)yx(e,a,i),e=e.sibling}function yx(e,a,i){switch(e.tag){case 26:Ol(e,a,i),e.flags&zr&&e.memoizedState!==null&&cj(i,fn,e.memoizedState,e.memoizedProps);break;case 5:Ol(e,a,i);break;case 3:case 4:var c=fn;fn=Po(e.stateNode.containerInfo),Ol(e,a,i),fn=c;break;case 22:e.memoizedState===null&&(c=e.alternate,c!==null&&c.memoizedState!==null?(c=zr,zr=16777216,Ol(e,a,i),zr=c):Ol(e,a,i));break;default:Ol(e,a,i)}}function Sx(e){var a=e.alternate;if(a!==null&&(e=a.child,e!==null)){a.child=null;do a=e.sibling,e.sibling=null,e=a;while(e!==null)}}function Rr(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var c=a[i];dt=c,jx(c,e)}Sx(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Qx(e),e=e.sibling}function Qx(e){switch(e.tag){case 0:case 11:case 15:Rr(e),e.flags&2048&&Na(9,e,e.return);break;case 3:Rr(e);break;case 12:Rr(e);break;case 22:var a=e.stateNode;e.memoizedState!==null&&a._visibility&2&&(e.return===null||e.return.tag!==13)?(a._visibility&=-3,xo(e)):Rr(e);break;default:Rr(e)}}function xo(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var c=a[i];dt=c,jx(c,e)}Sx(e)}for(e=e.child;e!==null;){switch(a=e,a.tag){case 0:case 11:case 15:Na(8,a,a.return),xo(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,xo(a));break;default:xo(a)}e=e.sibling}}function jx(e,a){for(;dt!==null;){var i=dt;switch(i.tag){case 0:case 11:case 15:Na(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var c=i.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:mr(i.memoizedState.cache)}if(c=i.child,c!==null)c.return=i,dt=c;else e:for(i=e;dt!==null;){c=dt;var f=c.sibling,m=c.return;if(hx(c),c===i){dt=null;break e}if(f!==null){f.return=m,dt=f;break e}dt=m}}}var jQ={getCacheForType:function(e){var a=mt(at),i=a.data.get(e);return i===void 0&&(i=e(),a.data.set(e,i)),i},cacheSignal:function(){return mt(at).controller.signal}},wQ=typeof WeakMap=="function"?WeakMap:Map,Ee=0,Le=null,ke=null,Te=0,Me=0,Yt=null,Pa=!1,fl=!1,Zd=!1,Kn=0,et=0,za=0,Qs=0,Ed=0,Ut=0,hl=0,Cr=null,Pt=null,qd=!1,go=0,wx=0,bo=1/0,vo=null,Ra=null,ot=0,Ca=null,ml=null,Jn=0,Md=0,Yd=null,kx=null,_r=0,Ud=null;function Vt(){return(Ee&2)!==0&&Te!==0?Te&-Te:P.T!==null?Bd():Uh()}function $x(){if(Ut===0)if((Te&536870912)===0||Pe){var e=$i;$i<<=1,($i&3932160)===0&&($i=262144),Ut=e}else Ut=536870912;return e=qt.current,e!==null&&(e.flags|=32),Ut}function zt(e,a,i){(e===Le&&(Me===2||Me===9)||e.cancelPendingCommit!==null)&&(pl(e,0),_a(e,Te,Ut,!1)),tr(e,i),((Ee&2)===0||e!==Le)&&(e===Le&&((Ee&2)===0&&(Qs|=i),et===4&&_a(e,Te,Ut,!1)),kn(e))}function Tx(e,a,i){if((Ee&6)!==0)throw Error(r(327));var c=!i&&(a&127)===0&&(a&e.expiredLanes)===0||er(e,a),f=c?TQ(e,a):Gd(e,a,!0),m=c;do{if(f===0){fl&&!c&&_a(e,a,0,!1);break}else{if(i=e.current.alternate,m&&!kQ(i)){f=Gd(e,a,!1),m=!1;continue}if(f===2){if(m=a,e.errorRecoveryDisabledLanes&m)var S=0;else S=e.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){a=S;e:{var $=e;f=Cr;var C=$.current.memoizedState.isDehydrated;if(C&&(pl($,S).flags|=256),S=Gd($,S,!1),S!==2){if(Zd&&!C){$.errorRecoveryDisabledLanes|=m,Qs|=m,f=4;break e}m=Pt,Pt=f,m!==null&&(Pt===null?Pt=m:Pt.push.apply(Pt,m))}f=S}if(m=!1,f!==2)continue}}if(f===1){pl(e,0),_a(e,a,0,!0);break}e:{switch(c=e,m=f,m){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:_a(c,a,Ut,!Pa);break e;case 2:Pt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(f=go+300-_t(),10<f)){if(_a(c,a,Ut,!Pa),Ni(c,0,!0)!==0)break e;Jn=a,c.timeoutHandle=lg(Nx.bind(null,c,i,Pt,vo,qd,a,Ut,Qs,hl,Pa,m,"Throttled",-0,0),f);break e}Nx(c,i,Pt,vo,qd,a,Ut,Qs,hl,Pa,m,null,-0,0)}}break}while(!0);kn(e)}function Nx(e,a,i,c,f,m,S,$,C,V,J,ne,L,I){if(e.timeoutHandle=-1,ne=a.subtreeFlags,ne&8192||(ne&16785408)===16785408){ne={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:En},yx(a,m,ne);var de=(m&62914560)===m?go-_t():(m&4194048)===m?wx-_t():0;if(de=uj(ne,de),de!==null){Jn=m,e.cancelPendingCommit=de(Zx.bind(null,e,a,m,i,c,f,S,$,C,J,ne,null,L,I)),_a(e,m,S,!V);return}}Zx(e,a,m,i,c,f,S,$,C)}function kQ(e){for(var a=e;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var c=0;c<i.length;c++){var f=i[c],m=f.getSnapshot;f=f.value;try{if(!Zt(m(),f))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function _a(e,a,i,c){a&=~Ed,a&=~Qs,e.suspendedLanes|=a,e.pingedLanes&=~a,c&&(e.warmLanes|=a),c=e.expirationTimes;for(var f=a;0<f;){var m=31-At(f),S=1<<m;c[m]=-1,f&=~S}i!==0&&qh(e,i,a)}function yo(){return(Ee&6)===0?(Xr(0),!1):!0}function Vd(){if(ke!==null){if(Me===0)var e=ke.return;else e=ke,Un=hs=null,ld(e),rl=null,xr=0,e=ke;for(;e!==null;)rx(e.alternate,e),e=e.return;ke=null}}function pl(e,a){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,DQ(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),Jn=0,Vd(),Le=e,ke=i=Mn(e.current,null),Te=a,Me=0,Yt=null,Pa=!1,fl=er(e,a),Zd=!1,hl=Ut=Ed=Qs=za=et=0,Pt=Cr=null,qd=!1,(a&8)!==0&&(a|=a&32);var c=e.entangledLanes;if(c!==0)for(e=e.entanglements,c&=a;0<c;){var f=31-At(c),m=1<<f;a|=e[f],c&=~m}return Kn=a,Yi(),i}function Px(e,a){Qe=null,P.H=wr,a===ll||a===Hi?(a=Dm(),Me=3):a===Wu?(a=Dm(),Me=4):Me=a===yd?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Yt=a,ke===null&&(et=1,co(e,en(a,e.current)))}function zx(){var e=qt.current;return e===null?!0:(Te&4194048)===Te?sn===null:(Te&62914560)===Te||(Te&536870912)!==0?e===sn:!1}function Rx(){var e=P.H;return P.H=wr,e===null?wr:e}function Cx(){var e=P.A;return P.A=jQ,e}function So(){et=4,Pa||(Te&4194048)!==Te&&qt.current!==null||(fl=!0),(za&134217727)===0&&(Qs&134217727)===0||Le===null||_a(Le,Te,Ut,!1)}function Gd(e,a,i){var c=Ee;Ee|=2;var f=Rx(),m=Cx();(Le!==e||Te!==a)&&(vo=null,pl(e,a)),a=!1;var S=et;e:do try{if(Me!==0&&ke!==null){var $=ke,C=Yt;switch(Me){case 8:Vd(),S=6;break e;case 3:case 2:case 9:case 6:qt.current===null&&(a=!0);var V=Me;if(Me=0,Yt=null,xl(e,$,C,V),i&&fl){S=0;break e}break;default:V=Me,Me=0,Yt=null,xl(e,$,C,V)}}$Q(),S=et;break}catch(J){Px(e,J)}while(!0);return a&&e.shellSuspendCounter++,Un=hs=null,Ee=c,P.H=f,P.A=m,ke===null&&(Le=null,Te=0,Yi()),S}function $Q(){for(;ke!==null;)_x(ke)}function TQ(e,a){var i=Ee;Ee|=2;var c=Rx(),f=Cx();Le!==e||Te!==a?(vo=null,bo=_t()+500,pl(e,a)):fl=er(e,a);e:do try{if(Me!==0&&ke!==null){a=ke;var m=Yt;t:switch(Me){case 1:Me=0,Yt=null,xl(e,a,m,1);break;case 2:case 9:if(Gm(m)){Me=0,Yt=null,Xx(a);break}a=function(){Me!==2&&Me!==9||Le!==e||(Me=7),kn(e)},m.then(a,a);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:Gm(m)?(Me=0,Yt=null,Xx(a)):(Me=0,Yt=null,xl(e,a,m,7));break;case 5:var S=null;switch(ke.tag){case 26:S=ke.memoizedState;case 5:case 27:var $=ke;if(S?vg(S):$.stateNode.complete){Me=0,Yt=null;var C=$.sibling;if(C!==null)ke=C;else{var V=$.return;V!==null?(ke=V,Qo(V)):ke=null}break t}}Me=0,Yt=null,xl(e,a,m,5);break;case 6:Me=0,Yt=null,xl(e,a,m,6);break;case 8:Vd(),et=6;break e;default:throw Error(r(462))}}NQ();break}catch(J){Px(e,J)}while(!0);return Un=hs=null,P.H=c,P.A=f,Ee=i,ke!==null?0:(Le=null,Te=0,Yi(),et)}function NQ(){for(;ke!==null&&!KS();)_x(ke)}function _x(e){var a=sx(e.alternate,e,Kn);e.memoizedProps=e.pendingProps,a===null?Qo(e):ke=a}function Xx(e){var a=e,i=a.alternate;switch(a.tag){case 15:case 0:a=Kp(i,a,a.pendingProps,a.type,void 0,Te);break;case 11:a=Kp(i,a,a.pendingProps,a.type.render,a.ref,Te);break;case 5:ld(a);default:rx(i,a),a=ke=Cm(a,Kn),a=sx(i,a,Kn)}e.memoizedProps=e.pendingProps,a===null?Qo(e):ke=a}function xl(e,a,i,c){Un=hs=null,ld(a),rl=null,xr=0;var f=a.return;try{if(xQ(e,f,a,i,Te)){et=1,co(e,en(i,e.current)),ke=null;return}}catch(m){if(f!==null)throw ke=f,m;et=1,co(e,en(i,e.current)),ke=null;return}a.flags&32768?(Pe||c===1?e=!0:fl||(Te&536870912)!==0?e=!1:(Pa=e=!0,(c===2||c===9||c===3||c===6)&&(c=qt.current,c!==null&&c.tag===13&&(c.flags|=16384))),Ax(a,e)):Qo(a)}function Qo(e){var a=e;do{if((a.flags&32768)!==0){Ax(a,Pa);return}e=a.return;var i=vQ(a.alternate,a,Kn);if(i!==null){ke=i;return}if(a=a.sibling,a!==null){ke=a;return}ke=a=e}while(a!==null);et===0&&(et=5)}function Ax(e,a){do{var i=yQ(e.alternate,e);if(i!==null){i.flags&=32767,ke=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(e=e.sibling,e!==null)){ke=e;return}ke=e=i}while(e!==null);et=6,ke=null}function Zx(e,a,i,c,f,m,S,$,C){e.cancelPendingCommit=null;do jo();while(ot!==0);if((Ee&6)!==0)throw Error(r(327));if(a!==null){if(a===e.current)throw Error(r(177));if(m=a.lanes|a.childLanes,m|=Ru,o2(e,i,m,S,$,C),e===Le&&(ke=Le=null,Te=0),ml=a,Ca=e,Jn=i,Md=m,Yd=f,kx=c,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,CQ(wi,function(){return Ux(),null})):(e.callbackNode=null,e.callbackPriority=0),c=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||c){c=P.T,P.T=null,f=B.p,B.p=2,S=Ee,Ee|=4;try{SQ(e,a,i)}finally{Ee=S,B.p=f,P.T=c}}ot=1,Ex(),qx(),Mx()}}function Ex(){if(ot===1){ot=0;var e=Ca,a=ml,i=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||i){i=P.T,P.T=null;var c=B.p;B.p=2;var f=Ee;Ee|=4;try{gx(a,e);var m=nO,S=jm(e.containerInfo),$=m.focusedElem,C=m.selectionRange;if(S!==$&&$&&$.ownerDocument&&Qm($.ownerDocument.documentElement,$)){if(C!==null&&$u($)){var V=C.start,J=C.end;if(J===void 0&&(J=V),"selectionStart"in $)$.selectionStart=V,$.selectionEnd=Math.min(J,$.value.length);else{var ne=$.ownerDocument||document,L=ne&&ne.defaultView||window;if(L.getSelection){var I=L.getSelection(),de=$.textContent.length,be=Math.min(C.start,de),Ge=C.end===void 0?be:Math.min(C.end,de);!I.extend&&be>Ge&&(S=Ge,Ge=be,be=S);var q=Sm($,be),A=Sm($,Ge);if(q&&A&&(I.rangeCount!==1||I.anchorNode!==q.node||I.anchorOffset!==q.offset||I.focusNode!==A.node||I.focusOffset!==A.offset)){var U=ne.createRange();U.setStart(q.node,q.offset),I.removeAllRanges(),be>Ge?(I.addRange(U),I.extend(A.node,A.offset)):(U.setEnd(A.node,A.offset),I.addRange(U))}}}}for(ne=[],I=$;I=I.parentNode;)I.nodeType===1&&ne.push({element:I,left:I.scrollLeft,top:I.scrollTop});for(typeof $.focus=="function"&&$.focus(),$=0;$<ne.length;$++){var te=ne[$];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}Ao=!!tO,nO=tO=null}finally{Ee=f,B.p=c,P.T=i}}e.current=a,ot=2}}function qx(){if(ot===2){ot=0;var e=Ca,a=ml,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=P.T,P.T=null;var c=B.p;B.p=2;var f=Ee;Ee|=4;try{fx(e,a.alternate,a)}finally{Ee=f,B.p=c,P.T=i}}ot=3}}function Mx(){if(ot===4||ot===3){ot=0,JS();var e=Ca,a=ml,i=Jn,c=kx;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?ot=5:(ot=0,ml=Ca=null,Yx(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(Ra=null),ou(i),a=a.stateNode,Xt&&typeof Xt.onCommitFiberRoot=="function")try{Xt.onCommitFiberRoot(Jl,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=P.T,f=B.p,B.p=2,P.T=null;try{for(var m=e.onRecoverableError,S=0;S<c.length;S++){var $=c[S];m($.value,{componentStack:$.stack})}}finally{P.T=a,B.p=f}}(Jn&3)!==0&&jo(),kn(e),f=e.pendingLanes,(i&261930)!==0&&(f&42)!==0?e===Ud?_r++:(_r=0,Ud=e):_r=0,Xr(0)}}function Yx(e,a){(e.pooledCacheLanes&=a)===0&&(a=e.pooledCache,a!=null&&(e.pooledCache=null,mr(a)))}function jo(){return Ex(),qx(),Mx(),Ux()}function Ux(){if(ot!==5)return!1;var e=Ca,a=Md;Md=0;var i=ou(Jn),c=P.T,f=B.p;try{B.p=32>i?32:i,P.T=null,i=Yd,Yd=null;var m=Ca,S=Jn;if(ot=0,ml=Ca=null,Jn=0,(Ee&6)!==0)throw Error(r(331));var $=Ee;if(Ee|=4,Qx(m.current),vx(m,m.current,S,i),Ee=$,Xr(0,!1),Xt&&typeof Xt.onPostCommitFiberRoot=="function")try{Xt.onPostCommitFiberRoot(Jl,m)}catch{}return!0}finally{B.p=f,P.T=c,Yx(e,a)}}function Vx(e,a,i){a=en(i,a),a=vd(e.stateNode,a,2),e=ka(e,a,2),e!==null&&(tr(e,2),kn(e))}function Ye(e,a,i){if(e.tag===3)Vx(e,e,i);else for(;a!==null;){if(a.tag===3){Vx(a,e,i);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Ra===null||!Ra.has(c))){e=en(i,e),i=Gp(2),c=ka(a,i,2),c!==null&&(Lp(i,c,a,e),tr(c,2),kn(c));break}}a=a.return}}function Ld(e,a,i){var c=e.pingCache;if(c===null){c=e.pingCache=new wQ;var f=new Set;c.set(a,f)}else f=c.get(a),f===void 0&&(f=new Set,c.set(a,f));f.has(i)||(Zd=!0,f.add(i),e=PQ.bind(null,e,a,i),a.then(e,e))}function PQ(e,a,i){var c=e.pingCache;c!==null&&c.delete(a),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,Le===e&&(Te&i)===i&&(et===4||et===3&&(Te&62914560)===Te&&300>_t()-go?(Ee&2)===0&&pl(e,0):Ed|=i,hl===Te&&(hl=0)),kn(e)}function Gx(e,a){a===0&&(a=Eh()),e=ds(e,a),e!==null&&(tr(e,a),kn(e))}function zQ(e){var a=e.memoizedState,i=0;a!==null&&(i=a.retryLane),Gx(e,i)}function RQ(e,a){var i=0;switch(e.tag){case 31:case 13:var c=e.stateNode,f=e.memoizedState;f!==null&&(i=f.retryLane);break;case 19:c=e.stateNode;break;case 22:c=e.stateNode._retryCache;break;default:throw Error(r(314))}c!==null&&c.delete(a),Gx(e,i)}function CQ(e,a){return su(e,a)}var wo=null,gl=null,Dd=!1,ko=!1,Wd=!1,Xa=0;function kn(e){e!==gl&&e.next===null&&(gl===null?wo=gl=e:gl=gl.next=e),ko=!0,Dd||(Dd=!0,XQ())}function Xr(e,a){if(!Wd&&ko){Wd=!0;do for(var i=!1,c=wo;c!==null;){if(e!==0){var f=c.pendingLanes;if(f===0)var m=0;else{var S=c.suspendedLanes,$=c.pingedLanes;m=(1<<31-At(42|e)+1)-1,m&=f&~(S&~$),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,Bx(c,m))}else m=Te,m=Ni(c,c===Le?m:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(m&3)===0||er(c,m)||(i=!0,Bx(c,m));c=c.next}while(i);Wd=!1}}function _Q(){Lx()}function Lx(){ko=Dd=!1;var e=0;Xa!==0&&LQ()&&(e=Xa);for(var a=_t(),i=null,c=wo;c!==null;){var f=c.next,m=Dx(c,a);m===0?(c.next=null,i===null?wo=f:i.next=f,f===null&&(gl=i)):(i=c,(e!==0||(m&3)!==0)&&(ko=!0)),c=f}ot!==0&&ot!==5||Xr(e),Xa!==0&&(Xa=0)}function Dx(e,a){for(var i=e.suspendedLanes,c=e.pingedLanes,f=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var S=31-At(m),$=1<<S,C=f[S];C===-1?(($&i)===0||($&c)!==0)&&(f[S]=i2($,a)):C<=a&&(e.expiredLanes|=$),m&=~$}if(a=Le,i=Te,i=Ni(e,e===a?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),c=e.callbackNode,i===0||e===a&&(Me===2||Me===9)||e.cancelPendingCommit!==null)return c!==null&&c!==null&&lu(c),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||er(e,i)){if(a=i&-i,a===e.callbackPriority)return a;switch(c!==null&&lu(c),ou(i)){case 2:case 8:i=Ah;break;case 32:i=wi;break;case 268435456:i=Zh;break;default:i=wi}return c=Wx.bind(null,e),i=su(i,c),e.callbackPriority=a,e.callbackNode=i,a}return c!==null&&c!==null&&lu(c),e.callbackPriority=2,e.callbackNode=null,2}function Wx(e,a){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(jo()&&e.callbackNode!==i)return null;var c=Te;return c=Ni(e,e===Le?c:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),c===0?null:(Tx(e,c,a),Dx(e,_t()),e.callbackNode!=null&&e.callbackNode===i?Wx.bind(null,e):null)}function Bx(e,a){if(jo())return null;Tx(e,a,!0)}function XQ(){WQ(function(){(Ee&6)!==0?su(Xh,_Q):Lx()})}function Bd(){if(Xa===0){var e=al;e===0&&(e=ki,ki<<=1,(ki&261888)===0&&(ki=256)),Xa=e}return Xa}function Hx(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ci(""+e)}function Ix(e,a){var i=a.ownerDocument.createElement("input");return i.name=a.name,i.value=a.value,e.id&&i.setAttribute("form",e.id),a.parentNode.insertBefore(i,a),e=new FormData(e),i.parentNode.removeChild(i),e}function AQ(e,a,i,c,f){if(a==="submit"&&i&&i.stateNode===f){var m=Hx((f[wt]||null).action),S=c.submitter;S&&(a=(a=S[wt]||null)?Hx(a.formAction):S.getAttribute("formAction"),a!==null&&(m=a,S=null));var $=new Zi("action","action",null,c,f);e.push({event:$,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Xa!==0){var C=S?Ix(f,S):new FormData(f);hd(i,{pending:!0,data:C,method:f.method,action:m},null,C)}}else typeof m=="function"&&($.preventDefault(),C=S?Ix(f,S):new FormData(f),hd(i,{pending:!0,data:C,method:f.method,action:m},m,C))},currentTarget:f}]})}}for(var Hd=0;Hd<zu.length;Hd++){var Id=zu[Hd],ZQ=Id.toLowerCase(),EQ=Id[0].toUpperCase()+Id.slice(1);On(ZQ,"on"+EQ)}On($m,"onAnimationEnd"),On(Tm,"onAnimationIteration"),On(Nm,"onAnimationStart"),On("dblclick","onDoubleClick"),On("focusin","onFocus"),On("focusout","onBlur"),On(eQ,"onTransitionRun"),On(tQ,"onTransitionStart"),On(nQ,"onTransitionCancel"),On(Pm,"onTransitionEnd"),Vs("onMouseEnter",["mouseout","mouseover"]),Vs("onMouseLeave",["mouseout","mouseover"]),Vs("onPointerEnter",["pointerout","pointerover"]),Vs("onPointerLeave",["pointerout","pointerover"]),is("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),is("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),is("onBeforeInput",["compositionend","keypress","textInput","paste"]),is("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),is("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),is("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ar="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(" "),qQ=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ar));function Fx(e,a){a=(a&4)!==0;for(var i=0;i<e.length;i++){var c=e[i],f=c.event;c=c.listeners;e:{var m=void 0;if(a)for(var S=c.length-1;0<=S;S--){var $=c[S],C=$.instance,V=$.currentTarget;if($=$.listener,C!==m&&f.isPropagationStopped())break e;m=$,f.currentTarget=V;try{m(f)}catch(J){Mi(J)}f.currentTarget=null,m=C}else for(S=0;S<c.length;S++){if($=c[S],C=$.instance,V=$.currentTarget,$=$.listener,C!==m&&f.isPropagationStopped())break e;m=$,f.currentTarget=V;try{m(f)}catch(J){Mi(J)}f.currentTarget=null,m=C}}}}function $e(e,a){var i=a[cu];i===void 0&&(i=a[cu]=new Set);var c=e+"__bubble";i.has(c)||(Kx(a,e,2,!1),i.add(c))}function Fd(e,a,i){var c=0;a&&(c|=4),Kx(i,e,c,a)}var $o="_reactListening"+Math.random().toString(36).slice(2);function Kd(e){if(!e[$o]){e[$o]=!0,Lh.forEach(function(i){i!=="selectionchange"&&(qQ.has(i)||Fd(i,!1,e),Fd(i,!0,e))});var a=e.nodeType===9?e:e.ownerDocument;a===null||a[$o]||(a[$o]=!0,Fd("selectionchange",!1,a))}}function Kx(e,a,i,c){switch($g(a)){case 2:var f=fj;break;case 8:f=hj;break;default:f=fO}i=f.bind(null,a,i,e),f=void 0,!gu||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(f=!0),c?f!==void 0?e.addEventListener(a,i,{capture:!0,passive:f}):e.addEventListener(a,i,!0):f!==void 0?e.addEventListener(a,i,{passive:f}):e.addEventListener(a,i,!1)}function Jd(e,a,i,c,f){var m=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var S=c.tag;if(S===3||S===4){var $=c.stateNode.containerInfo;if($===f)break;if(S===4)for(S=c.return;S!==null;){var C=S.tag;if((C===3||C===4)&&S.stateNode.containerInfo===f)return;S=S.return}for(;$!==null;){if(S=Ms($),S===null)return;if(C=S.tag,C===5||C===6||C===26||C===27){c=m=S;continue e}$=$.parentNode}}c=c.return}am(function(){var V=m,J=pu(i),ne=[];e:{var L=zm.get(e);if(L!==void 0){var I=Zi,de=e;switch(e){case"keypress":if(Xi(i)===0)break e;case"keydown":case"keyup":I=R2;break;case"focusin":de="focus",I=Su;break;case"focusout":de="blur",I=Su;break;case"beforeblur":case"afterblur":I=Su;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":I=rm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=v2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=X2;break;case $m:case Tm:case Nm:I=Q2;break;case Pm:I=Z2;break;case"scroll":case"scrollend":I=g2;break;case"wheel":I=q2;break;case"copy":case"cut":case"paste":I=w2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=om;break;case"toggle":case"beforetoggle":I=Y2}var be=(a&4)!==0,Ge=!be&&(e==="scroll"||e==="scrollend"),q=be?L!==null?L+"Capture":null:L;be=[];for(var A=V,U;A!==null;){var te=A;if(U=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||U===null||q===null||(te=sr(A,q),te!=null&&be.push(Zr(A,te,U))),Ge)break;A=A.return}0<be.length&&(L=new I(L,de,null,i,J),ne.push({event:L,listeners:be}))}}if((a&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",I=e==="mouseout"||e==="pointerout",L&&i!==mu&&(de=i.relatedTarget||i.fromElement)&&(Ms(de)||de[qs]))break e;if((I||L)&&(L=J.window===J?J:(L=J.ownerDocument)?L.defaultView||L.parentWindow:window,I?(de=i.relatedTarget||i.toElement,I=V,de=de?Ms(de):null,de!==null&&(Ge=u(de),be=de.tag,de!==Ge||be!==5&&be!==27&&be!==6)&&(de=null)):(I=null,de=V),I!==de)){if(be=rm,te="onMouseLeave",q="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(be=om,te="onPointerLeave",q="onPointerEnter",A="pointer"),Ge=I==null?L:ar(I),U=de==null?L:ar(de),L=new be(te,A+"leave",I,i,J),L.target=Ge,L.relatedTarget=U,te=null,Ms(J)===V&&(be=new be(q,A+"enter",de,i,J),be.target=U,be.relatedTarget=Ge,te=be),Ge=te,I&&de)t:{for(be=MQ,q=I,A=de,U=0,te=q;te;te=be(te))U++;te=0;for(var xe=A;xe;xe=be(xe))te++;for(;0<U-te;)q=be(q),U--;for(;0<te-U;)A=be(A),te--;for(;U--;){if(q===A||A!==null&&q===A.alternate){be=q;break t}q=be(q),A=be(A)}be=null}else be=null;I!==null&&Jx(ne,L,I,be,!1),de!==null&&Ge!==null&&Jx(ne,Ge,de,be,!0)}}e:{if(L=V?ar(V):window,I=L.nodeName&&L.nodeName.toLowerCase(),I==="select"||I==="input"&&L.type==="file")var Xe=pm;else if(hm(L))if(xm)Xe=F2;else{Xe=H2;var he=B2}else I=L.nodeName,!I||I.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?V&&hu(V.elementType)&&(Xe=pm):Xe=I2;if(Xe&&(Xe=Xe(e,V))){mm(ne,Xe,i,J);break e}he&&he(e,L,V),e==="focusout"&&V&&L.type==="number"&&V.memoizedProps.value!=null&&fu(L,"number",L.value)}switch(he=V?ar(V):window,e){case"focusin":(hm(he)||he.contentEditable==="true")&&(Hs=he,Tu=V,Or=null);break;case"focusout":Or=Tu=Hs=null;break;case"mousedown":Nu=!0;break;case"contextmenu":case"mouseup":case"dragend":Nu=!1,wm(ne,i,J);break;case"selectionchange":if(J2)break;case"keydown":case"keyup":wm(ne,i,J)}var je;if(ju)e:{switch(e){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else Bs?Om(e,i)&&(Ne="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Ne="onCompositionStart");Ne&&(cm&&i.locale!=="ko"&&(Bs||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&Bs&&(je=sm()):(ba=J,bu="value"in ba?ba.value:ba.textContent,Bs=!0)),he=To(V,Ne),0<he.length&&(Ne=new im(Ne,e,null,i,J),ne.push({event:Ne,listeners:he}),je?Ne.data=je:(je=fm(i),je!==null&&(Ne.data=je)))),(je=V2?G2(e,i):L2(e,i))&&(Ne=To(V,"onBeforeInput"),0<Ne.length&&(he=new im("onBeforeInput","beforeinput",null,i,J),ne.push({event:he,listeners:Ne}),he.data=je)),AQ(ne,e,V,i,J)}Fx(ne,a)})}function Zr(e,a,i){return{instance:e,listener:a,currentTarget:i}}function To(e,a){for(var i=a+"Capture",c=[];e!==null;){var f=e,m=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||m===null||(f=sr(e,i),f!=null&&c.unshift(Zr(e,f,m)),f=sr(e,a),f!=null&&c.push(Zr(e,f,m))),e.tag===3)return c;e=e.return}return[]}function MQ(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Jx(e,a,i,c,f){for(var m=a._reactName,S=[];i!==null&&i!==c;){var $=i,C=$.alternate,V=$.stateNode;if($=$.tag,C!==null&&C===c)break;$!==5&&$!==26&&$!==27||V===null||(C=V,f?(V=sr(i,m),V!=null&&S.unshift(Zr(i,V,C))):f||(V=sr(i,m),V!=null&&S.push(Zr(i,V,C)))),i=i.return}S.length!==0&&e.push({event:a,listeners:S})}var YQ=/\r\n?/g,UQ=/\u0000|\uFFFD/g;function eg(e){return(typeof e=="string"?e:""+e).replace(YQ,`
25
+ `).replace(UQ,"")}function tg(e,a){return a=eg(a),eg(e)===a}function Ve(e,a,i,c,f,m){switch(i){case"children":typeof c=="string"?a==="body"||a==="textarea"&&c===""||Ls(e,c):(typeof c=="number"||typeof c=="bigint")&&a!=="body"&&Ls(e,""+c);break;case"className":zi(e,"class",c);break;case"tabIndex":zi(e,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":zi(e,i,c);break;case"style":tm(e,c,m);break;case"data":if(a!=="object"){zi(e,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||i!=="href")){e.removeAttribute(i);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(i);break}c=Ci(""+c),e.setAttribute(i,c);break;case"action":case"formAction":if(typeof c=="function"){e.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(i==="formAction"?(a!=="input"&&Ve(e,a,"name",f.name,f,null),Ve(e,a,"formEncType",f.formEncType,f,null),Ve(e,a,"formMethod",f.formMethod,f,null),Ve(e,a,"formTarget",f.formTarget,f,null)):(Ve(e,a,"encType",f.encType,f,null),Ve(e,a,"method",f.method,f,null),Ve(e,a,"target",f.target,f,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(i);break}c=Ci(""+c),e.setAttribute(i,c);break;case"onClick":c!=null&&(e.onclick=En);break;case"onScroll":c!=null&&$e("scroll",e);break;case"onScrollEnd":c!=null&&$e("scrollend",e);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(i=c.__html,i!=null){if(f.children!=null)throw Error(r(60));e.innerHTML=i}}break;case"multiple":e.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":e.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){e.removeAttribute("xlink:href");break}i=Ci(""+c),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(i,""+c):e.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":c===!0?e.setAttribute(i,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(i,c):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?e.setAttribute(i,c):e.removeAttribute(i);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?e.removeAttribute(i):e.setAttribute(i,c);break;case"popover":$e("beforetoggle",e),$e("toggle",e),Pi(e,"popover",c);break;case"xlinkActuate":Zn(e,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Zn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Zn(e,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Zn(e,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Zn(e,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Zn(e,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Zn(e,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Zn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Zn(e,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Pi(e,"is",c);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=p2.get(i)||i,Pi(e,i,c))}}function eO(e,a,i,c,f,m){switch(i){case"style":tm(e,c,m);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(i=c.__html,i!=null){if(f.children!=null)throw Error(r(60));e.innerHTML=i}}break;case"children":typeof c=="string"?Ls(e,c):(typeof c=="number"||typeof c=="bigint")&&Ls(e,""+c);break;case"onScroll":c!=null&&$e("scroll",e);break;case"onScrollEnd":c!=null&&$e("scrollend",e);break;case"onClick":c!=null&&(e.onclick=En);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Dh.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),a=i.slice(2,f?i.length-7:void 0),m=e[wt]||null,m=m!=null?m[i]:null,typeof m=="function"&&e.removeEventListener(a,m,f),typeof c=="function")){typeof m!="function"&&m!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(a,c,f);break e}i in e?e[i]=c:c===!0?e.setAttribute(i,""):Pi(e,i,c)}}}function xt(e,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",e),$e("load",e);var c=!1,f=!1,m;for(m in i)if(i.hasOwnProperty(m)){var S=i[m];if(S!=null)switch(m){case"src":c=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:Ve(e,a,m,S,i,null)}}f&&Ve(e,a,"srcSet",i.srcSet,i,null),c&&Ve(e,a,"src",i.src,i,null);return;case"input":$e("invalid",e);var $=m=S=f=null,C=null,V=null;for(c in i)if(i.hasOwnProperty(c)){var J=i[c];if(J!=null)switch(c){case"name":f=J;break;case"type":S=J;break;case"checked":C=J;break;case"defaultChecked":V=J;break;case"value":m=J;break;case"defaultValue":$=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,a));break;default:Ve(e,a,c,J,i,null)}}Fh(e,m,$,C,V,S,f,!1);return;case"select":$e("invalid",e),c=S=m=null;for(f in i)if(i.hasOwnProperty(f)&&($=i[f],$!=null))switch(f){case"value":m=$;break;case"defaultValue":S=$;break;case"multiple":c=$;default:Ve(e,a,f,$,i,null)}a=m,i=S,e.multiple=!!c,a!=null?Gs(e,!!c,a,!1):i!=null&&Gs(e,!!c,i,!0);return;case"textarea":$e("invalid",e),m=f=c=null;for(S in i)if(i.hasOwnProperty(S)&&($=i[S],$!=null))switch(S){case"value":c=$;break;case"defaultValue":f=$;break;case"children":m=$;break;case"dangerouslySetInnerHTML":if($!=null)throw Error(r(91));break;default:Ve(e,a,S,$,i,null)}Jh(e,c,f,m);return;case"option":for(C in i)if(i.hasOwnProperty(C)&&(c=i[C],c!=null))switch(C){case"selected":e.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:Ve(e,a,C,c,i,null)}return;case"dialog":$e("beforetoggle",e),$e("toggle",e),$e("cancel",e),$e("close",e);break;case"iframe":case"object":$e("load",e);break;case"video":case"audio":for(c=0;c<Ar.length;c++)$e(Ar[c],e);break;case"image":$e("error",e),$e("load",e);break;case"details":$e("toggle",e);break;case"embed":case"source":case"link":$e("error",e),$e("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(V in i)if(i.hasOwnProperty(V)&&(c=i[V],c!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:Ve(e,a,V,c,i,null)}return;default:if(hu(a)){for(J in i)i.hasOwnProperty(J)&&(c=i[J],c!==void 0&&eO(e,a,J,c,i,void 0));return}}for($ in i)i.hasOwnProperty($)&&(c=i[$],c!=null&&Ve(e,a,$,c,i,null))}function VQ(e,a,i,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,m=null,S=null,$=null,C=null,V=null,J=null;for(I in i){var ne=i[I];if(i.hasOwnProperty(I)&&ne!=null)switch(I){case"checked":break;case"value":break;case"defaultValue":C=ne;default:c.hasOwnProperty(I)||Ve(e,a,I,null,c,ne)}}for(var L in c){var I=c[L];if(ne=i[L],c.hasOwnProperty(L)&&(I!=null||ne!=null))switch(L){case"type":m=I;break;case"name":f=I;break;case"checked":V=I;break;case"defaultChecked":J=I;break;case"value":S=I;break;case"defaultValue":$=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(r(137,a));break;default:I!==ne&&Ve(e,a,L,I,c,ne)}}Ou(e,S,$,C,V,J,m,f);return;case"select":I=S=$=L=null;for(m in i)if(C=i[m],i.hasOwnProperty(m)&&C!=null)switch(m){case"value":break;case"multiple":I=C;default:c.hasOwnProperty(m)||Ve(e,a,m,null,c,C)}for(f in c)if(m=c[f],C=i[f],c.hasOwnProperty(f)&&(m!=null||C!=null))switch(f){case"value":L=m;break;case"defaultValue":$=m;break;case"multiple":S=m;default:m!==C&&Ve(e,a,f,m,c,C)}a=$,i=S,c=I,L!=null?Gs(e,!!i,L,!1):!!c!=!!i&&(a!=null?Gs(e,!!i,a,!0):Gs(e,!!i,i?[]:"",!1));return;case"textarea":I=L=null;for($ in i)if(f=i[$],i.hasOwnProperty($)&&f!=null&&!c.hasOwnProperty($))switch($){case"value":break;case"children":break;default:Ve(e,a,$,null,c,f)}for(S in c)if(f=c[S],m=i[S],c.hasOwnProperty(S)&&(f!=null||m!=null))switch(S){case"value":L=f;break;case"defaultValue":I=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(r(91));break;default:f!==m&&Ve(e,a,S,f,c,m)}Kh(e,L,I);return;case"option":for(var de in i)if(L=i[de],i.hasOwnProperty(de)&&L!=null&&!c.hasOwnProperty(de))switch(de){case"selected":e.selected=!1;break;default:Ve(e,a,de,null,c,L)}for(C in c)if(L=c[C],I=i[C],c.hasOwnProperty(C)&&L!==I&&(L!=null||I!=null))switch(C){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:Ve(e,a,C,L,c,I)}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 be in i)L=i[be],i.hasOwnProperty(be)&&L!=null&&!c.hasOwnProperty(be)&&Ve(e,a,be,null,c,L);for(V in c)if(L=c[V],I=i[V],c.hasOwnProperty(V)&&L!==I&&(L!=null||I!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,a));break;default:Ve(e,a,V,L,c,I)}return;default:if(hu(a)){for(var Ge in i)L=i[Ge],i.hasOwnProperty(Ge)&&L!==void 0&&!c.hasOwnProperty(Ge)&&eO(e,a,Ge,void 0,c,L);for(J in c)L=c[J],I=i[J],!c.hasOwnProperty(J)||L===I||L===void 0&&I===void 0||eO(e,a,J,L,c,I);return}}for(var q in i)L=i[q],i.hasOwnProperty(q)&&L!=null&&!c.hasOwnProperty(q)&&Ve(e,a,q,null,c,L);for(ne in c)L=c[ne],I=i[ne],!c.hasOwnProperty(ne)||L===I||L==null&&I==null||Ve(e,a,ne,L,c,I)}function ng(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function GQ(){if(typeof performance.getEntriesByType=="function"){for(var e=0,a=0,i=performance.getEntriesByType("resource"),c=0;c<i.length;c++){var f=i[c],m=f.transferSize,S=f.initiatorType,$=f.duration;if(m&&$&&ng(S)){for(S=0,$=f.responseEnd,c+=1;c<i.length;c++){var C=i[c],V=C.startTime;if(V>$)break;var J=C.transferSize,ne=C.initiatorType;J&&ng(ne)&&(C=C.responseEnd,S+=J*(C<$?1:($-V)/(C-V)))}if(--c,a+=8*(m+S)/(f.duration/1e3),e++,10<e)break}}if(0<e)return a/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var tO=null,nO=null;function No(e){return e.nodeType===9?e:e.ownerDocument}function ag(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sg(e,a){if(e===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&a==="foreignObject"?0:e}function aO(e,a){return e==="textarea"||e==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var sO=null;function LQ(){var e=window.event;return e&&e.type==="popstate"?e===sO?!1:(sO=e,!0):(sO=null,!1)}var lg=typeof setTimeout=="function"?setTimeout:void 0,DQ=typeof clearTimeout=="function"?clearTimeout:void 0,rg=typeof Promise=="function"?Promise:void 0,WQ=typeof queueMicrotask=="function"?queueMicrotask:typeof rg<"u"?function(e){return rg.resolve(null).then(e).catch(BQ)}:lg;function BQ(e){setTimeout(function(){throw e})}function Aa(e){return e==="head"}function ig(e,a){var i=a,c=0;do{var f=i.nextSibling;if(e.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"||i==="/&"){if(c===0){e.removeChild(f),Sl(a);return}c--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")c++;else if(i==="html")Er(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,Er(i);for(var m=i.firstChild;m;){var S=m.nextSibling,$=m.nodeName;m[nr]||$==="SCRIPT"||$==="STYLE"||$==="LINK"&&m.rel.toLowerCase()==="stylesheet"||i.removeChild(m),m=S}}else i==="body"&&Er(e.ownerDocument.body);i=f}while(i);Sl(a)}function og(e,a){var i=e;e=0;do{var c=i.nextSibling;if(i.nodeType===1?a?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(a?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),c&&c.nodeType===8)if(i=c.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=c}while(i)}function lO(e){var a=e.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":lO(i),uu(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function HQ(e,a,i,c){for(;e.nodeType===1;){var f=i;if(e.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(c){if(!e[nr])switch(a){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(m=e.getAttribute("rel"),m==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(m!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(m=e.getAttribute("src"),(m!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&m&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(a==="input"&&e.type==="hidden"){var m=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===m)return e}else return e;if(e=ln(e.nextSibling),e===null)break}return null}function IQ(e,a,i){if(a==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=ln(e.nextSibling),e===null))return null;return e}function cg(e,a){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=ln(e.nextSibling),e===null))return null;return e}function rO(e){return e.data==="$?"||e.data==="$~"}function iO(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function FQ(e,a){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=a;else if(e.data!=="$?"||i.readyState!=="loading")a();else{var c=function(){a(),i.removeEventListener("DOMContentLoaded",c)};i.addEventListener("DOMContentLoaded",c),e._reactRetry=c}}function ln(e){for(;e!=null;e=e.nextSibling){var a=e.nodeType;if(a===1||a===3)break;if(a===8){if(a=e.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return e}var oO=null;function ug(e){e=e.nextSibling;for(var a=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(a===0)return ln(e.nextSibling);a--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||a++}e=e.nextSibling}return null}function dg(e){e=e.previousSibling;for(var a=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(a===0)return e;a--}else i!=="/$"&&i!=="/&"||a++}e=e.previousSibling}return null}function Og(e,a,i){switch(a=No(i),e){case"html":if(e=a.documentElement,!e)throw Error(r(452));return e;case"head":if(e=a.head,!e)throw Error(r(453));return e;case"body":if(e=a.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Er(e){for(var a=e.attributes;a.length;)e.removeAttributeNode(a[0]);uu(e)}var rn=new Map,fg=new Set;function Po(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ea=B.d;B.d={f:KQ,r:JQ,D:ej,C:tj,L:nj,m:aj,X:lj,S:sj,M:rj};function KQ(){var e=ea.f(),a=yo();return e||a}function JQ(e){var a=Ys(e);a!==null&&a.tag===5&&a.type==="form"?Pp(a):ea.r(e)}var bl=typeof document>"u"?null:document;function hg(e,a,i){var c=bl;if(c&&typeof a=="string"&&a){var f=Kt(a);f='link[rel="'+e+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),fg.has(f)||(fg.add(f),e={rel:e,crossOrigin:i,href:a},c.querySelector(f)===null&&(a=c.createElement("link"),xt(a,"link",e),ut(a),c.head.appendChild(a)))}}function ej(e){ea.D(e),hg("dns-prefetch",e,null)}function tj(e,a){ea.C(e,a),hg("preconnect",e,a)}function nj(e,a,i){ea.L(e,a,i);var c=bl;if(c&&e&&a){var f='link[rel="preload"][as="'+Kt(a)+'"]';a==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+Kt(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+Kt(i.imageSizes)+'"]')):f+='[href="'+Kt(e)+'"]';var m=f;switch(a){case"style":m=vl(e);break;case"script":m=yl(e)}rn.has(m)||(e=g({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:e,as:a},i),rn.set(m,e),c.querySelector(f)!==null||a==="style"&&c.querySelector(qr(m))||a==="script"&&c.querySelector(Mr(m))||(a=c.createElement("link"),xt(a,"link",e),ut(a),c.head.appendChild(a)))}}function aj(e,a){ea.m(e,a);var i=bl;if(i&&e){var c=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+Kt(c)+'"][href="'+Kt(e)+'"]',m=f;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=yl(e)}if(!rn.has(m)&&(e=g({rel:"modulepreload",href:e},a),rn.set(m,e),i.querySelector(f)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Mr(m)))return}c=i.createElement("link"),xt(c,"link",e),ut(c),i.head.appendChild(c)}}}function sj(e,a,i){ea.S(e,a,i);var c=bl;if(c&&e){var f=Us(c).hoistableStyles,m=vl(e);a=a||"default";var S=f.get(m);if(!S){var $={loading:0,preload:null};if(S=c.querySelector(qr(m)))$.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":a},i),(i=rn.get(m))&&cO(e,i);var C=S=c.createElement("link");ut(C),xt(C,"link",e),C._p=new Promise(function(V,J){C.onload=V,C.onerror=J}),C.addEventListener("load",function(){$.loading|=1}),C.addEventListener("error",function(){$.loading|=2}),$.loading|=4,zo(S,a,c)}S={type:"stylesheet",instance:S,count:1,state:$},f.set(m,S)}}}function lj(e,a){ea.X(e,a);var i=bl;if(i&&e){var c=Us(i).hoistableScripts,f=yl(e),m=c.get(f);m||(m=i.querySelector(Mr(f)),m||(e=g({src:e,async:!0},a),(a=rn.get(f))&&uO(e,a),m=i.createElement("script"),ut(m),xt(m,"link",e),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},c.set(f,m))}}function rj(e,a){ea.M(e,a);var i=bl;if(i&&e){var c=Us(i).hoistableScripts,f=yl(e),m=c.get(f);m||(m=i.querySelector(Mr(f)),m||(e=g({src:e,async:!0,type:"module"},a),(a=rn.get(f))&&uO(e,a),m=i.createElement("script"),ut(m),xt(m,"link",e),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},c.set(f,m))}}function mg(e,a,i,c){var f=(f=ue.current)?Po(f):null;if(!f)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=vl(i.href),i=Us(f).hoistableStyles,c=i.get(a),c||(c={type:"style",instance:null,count:0,state:null},i.set(a,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=vl(i.href);var m=Us(f).hoistableStyles,S=m.get(e);if(S||(f=f.ownerDocument||f,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(e,S),(m=f.querySelector(qr(e)))&&!m._p&&(S.instance=m,S.state.loading=5),rn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},rn.set(e,i),m||ij(f,e,i,S.state))),a&&c===null)throw Error(r(528,""));return S}if(a&&c!==null)throw Error(r(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=yl(i),i=Us(f).hoistableScripts,c=i.get(a),c||(c={type:"script",instance:null,count:0,state:null},i.set(a,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function vl(e){return'href="'+Kt(e)+'"'}function qr(e){return'link[rel="stylesheet"]['+e+"]"}function pg(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function ij(e,a,i,c){e.querySelector('link[rel="preload"][as="style"]['+a+"]")?c.loading=1:(a=e.createElement("link"),c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2}),xt(a,"link",i),ut(a),e.head.appendChild(a))}function yl(e){return'[src="'+Kt(e)+'"]'}function Mr(e){return"script[async]"+e}function xg(e,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var c=e.querySelector('style[data-href~="'+Kt(i.href)+'"]');if(c)return a.instance=c,ut(c),c;var f=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return c=(e.ownerDocument||e).createElement("style"),ut(c),xt(c,"style",f),zo(c,i.precedence,e),a.instance=c;case"stylesheet":f=vl(i.href);var m=e.querySelector(qr(f));if(m)return a.state.loading|=4,a.instance=m,ut(m),m;c=pg(i),(f=rn.get(f))&&cO(c,f),m=(e.ownerDocument||e).createElement("link"),ut(m);var S=m;return S._p=new Promise(function($,C){S.onload=$,S.onerror=C}),xt(m,"link",c),a.state.loading|=4,zo(m,i.precedence,e),a.instance=m;case"script":return m=yl(i.src),(f=e.querySelector(Mr(m)))?(a.instance=f,ut(f),f):(c=i,(f=rn.get(m))&&(c=g({},i),uO(c,f)),e=e.ownerDocument||e,f=e.createElement("script"),ut(f),xt(f,"link",c),e.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,zo(c,i.precedence,e));return a.instance}function zo(e,a,i){for(var c=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=c.length?c[c.length-1]:null,m=f,S=0;S<c.length;S++){var $=c[S];if($.dataset.precedence===a)m=$;else if(m!==f)break}m?m.parentNode.insertBefore(e,m.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(e,a.firstChild))}function cO(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.title==null&&(e.title=a.title)}function uO(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.integrity==null&&(e.integrity=a.integrity)}var Ro=null;function gg(e,a,i){if(Ro===null){var c=new Map,f=Ro=new Map;f.set(i,c)}else f=Ro,c=f.get(i),c||(c=new Map,f.set(i,c));if(c.has(e))return c;for(c.set(e,null),i=i.getElementsByTagName(e),f=0;f<i.length;f++){var m=i[f];if(!(m[nr]||m[ft]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var S=m.getAttribute(a)||"";S=e+S;var $=c.get(S);$?$.push(m):c.set(S,[m])}}return c}function bg(e,a,i){e=e.ownerDocument||e,e.head.insertBefore(i,a==="title"?e.querySelector("head > title"):null)}function oj(e,a,i){if(i===1||a.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return e=a.disabled,typeof a.precedence=="string"&&e==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function vg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function cj(e,a,i,c){if(i.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=vl(c.href),m=a.querySelector(qr(f));if(m){a=m._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(e.count++,e=Co.bind(e),a.then(e,e)),i.state.loading|=4,i.instance=m,ut(m);return}m=a.ownerDocument||a,c=pg(c),(f=rn.get(f))&&cO(c,f),m=m.createElement("link"),ut(m);var S=m;S._p=new Promise(function($,C){S.onload=$,S.onerror=C}),xt(m,"link",c),i.instance=m}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=Co.bind(e),a.addEventListener("load",i),a.addEventListener("error",i))}}var dO=0;function uj(e,a){return e.stylesheets&&e.count===0&&Xo(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var c=setTimeout(function(){if(e.stylesheets&&Xo(e,e.stylesheets),e.unsuspend){var m=e.unsuspend;e.unsuspend=null,m()}},6e4+a);0<e.imgBytes&&dO===0&&(dO=62500*GQ());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xo(e,e.stylesheets),e.unsuspend)){var m=e.unsuspend;e.unsuspend=null,m()}},(e.imgBytes>dO?50:800)+a);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(c),clearTimeout(f)}}:null}function Co(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var _o=null;function Xo(e,a){e.stylesheets=null,e.unsuspend!==null&&(e.count++,_o=new Map,a.forEach(dj,e),_o=null,Co.call(e))}function dj(e,a){if(!(a.state.loading&4)){var i=_o.get(e);if(i)var c=i.get(null);else{i=new Map,_o.set(e,i);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<f.length;m++){var S=f[m];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(i.set(S.dataset.precedence,S),c=S)}c&&i.set(null,c)}f=a.instance,S=f.getAttribute("data-precedence"),m=i.get(S)||c,m===c&&i.set(null,f),i.set(S,f),this.count++,c=Co.bind(this),f.addEventListener("load",c),f.addEventListener("error",c),m?m.parentNode.insertBefore(f,m.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),a.state.loading|=4}}var Yr={$$typeof:N,Provider:null,Consumer:null,_currentValue:E,_currentValue2:E,_threadCount:0};function Oj(e,a,i,c,f,m,S,$,C){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ru(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ru(0),this.hiddenUpdates=ru(null),this.identifierPrefix=c,this.onUncaughtError=f,this.onCaughtError=m,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function yg(e,a,i,c,f,m,S,$,C,V,J,ne){return e=new Oj(e,a,i,S,C,V,J,ne,$),a=1,m===!0&&(a|=24),m=Et(3,null,null,a),e.current=m,m.stateNode=e,a=Gu(),a.refCount++,e.pooledCache=a,a.refCount++,m.memoizedState={element:c,isDehydrated:i,cache:a},Bu(m),e}function Sg(e){return e?(e=Ks,e):Ks}function Qg(e,a,i,c,f,m){f=Sg(f),c.context===null?c.context=f:c.pendingContext=f,c=wa(a),c.payload={element:i},m=m===void 0?null:m,m!==null&&(c.callback=m),i=ka(e,c,a),i!==null&&(zt(i,e,a),br(i,e,a))}function jg(e,a){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<a?i:a}}function OO(e,a){jg(e,a),(e=e.alternate)&&jg(e,a)}function wg(e){if(e.tag===13||e.tag===31){var a=ds(e,67108864);a!==null&&zt(a,e,67108864),OO(e,67108864)}}function kg(e){if(e.tag===13||e.tag===31){var a=Vt();a=iu(a);var i=ds(e,a);i!==null&&zt(i,e,a),OO(e,a)}}var Ao=!0;function fj(e,a,i,c){var f=P.T;P.T=null;var m=B.p;try{B.p=2,fO(e,a,i,c)}finally{B.p=m,P.T=f}}function hj(e,a,i,c){var f=P.T;P.T=null;var m=B.p;try{B.p=8,fO(e,a,i,c)}finally{B.p=m,P.T=f}}function fO(e,a,i,c){if(Ao){var f=hO(c);if(f===null)Jd(e,a,c,Zo,i),Tg(e,c);else if(pj(f,e,a,i,c))c.stopPropagation();else if(Tg(e,c),a&4&&-1<mj.indexOf(e)){for(;f!==null;){var m=Ys(f);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var S=rs(m.pendingLanes);if(S!==0){var $=m;for($.pendingLanes|=2,$.entangledLanes|=2;S;){var C=1<<31-At(S);$.entanglements[1]|=C,S&=~C}kn(m),(Ee&6)===0&&(bo=_t()+500,Xr(0))}}break;case 31:case 13:$=ds(m,2),$!==null&&zt($,m,2),yo(),OO(m,2)}if(m=hO(c),m===null&&Jd(e,a,c,Zo,i),m===f)break;f=m}f!==null&&c.stopPropagation()}else Jd(e,a,c,null,i)}}function hO(e){return e=pu(e),mO(e)}var Zo=null;function mO(e){if(Zo=null,e=Ms(e),e!==null){var a=u(e);if(a===null)e=null;else{var i=a.tag;if(i===13){if(e=d(a),e!==null)return e;e=null}else if(i===31){if(e=O(a),e!==null)return e;e=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;e=null}else a!==e&&(e=null)}}return Zo=e,null}function $g(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(e2()){case Xh:return 2;case Ah:return 8;case wi:case t2:return 32;case Zh:return 268435456;default:return 32}default:return 32}}var pO=!1,Za=null,Ea=null,qa=null,Ur=new Map,Vr=new Map,Ma=[],mj="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 Tg(e,a){switch(e){case"focusin":case"focusout":Za=null;break;case"dragenter":case"dragleave":Ea=null;break;case"mouseover":case"mouseout":qa=null;break;case"pointerover":case"pointerout":Ur.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vr.delete(a.pointerId)}}function Gr(e,a,i,c,f,m){return e===null||e.nativeEvent!==m?(e={blockedOn:a,domEventName:i,eventSystemFlags:c,nativeEvent:m,targetContainers:[f]},a!==null&&(a=Ys(a),a!==null&&wg(a)),e):(e.eventSystemFlags|=c,a=e.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),e)}function pj(e,a,i,c,f){switch(a){case"focusin":return Za=Gr(Za,e,a,i,c,f),!0;case"dragenter":return Ea=Gr(Ea,e,a,i,c,f),!0;case"mouseover":return qa=Gr(qa,e,a,i,c,f),!0;case"pointerover":var m=f.pointerId;return Ur.set(m,Gr(Ur.get(m)||null,e,a,i,c,f)),!0;case"gotpointercapture":return m=f.pointerId,Vr.set(m,Gr(Vr.get(m)||null,e,a,i,c,f)),!0}return!1}function Ng(e){var a=Ms(e.target);if(a!==null){var i=u(a);if(i!==null){if(a=i.tag,a===13){if(a=d(i),a!==null){e.blockedOn=a,Vh(e.priority,function(){kg(i)});return}}else if(a===31){if(a=O(i),a!==null){e.blockedOn=a,Vh(e.priority,function(){kg(i)});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Eo(e){if(e.blockedOn!==null)return!1;for(var a=e.targetContainers;0<a.length;){var i=hO(e.nativeEvent);if(i===null){i=e.nativeEvent;var c=new i.constructor(i.type,i);mu=c,i.target.dispatchEvent(c),mu=null}else return a=Ys(i),a!==null&&wg(a),e.blockedOn=i,!1;a.shift()}return!0}function Pg(e,a,i){Eo(e)&&i.delete(a)}function xj(){pO=!1,Za!==null&&Eo(Za)&&(Za=null),Ea!==null&&Eo(Ea)&&(Ea=null),qa!==null&&Eo(qa)&&(qa=null),Ur.forEach(Pg),Vr.forEach(Pg)}function qo(e,a){e.blockedOn===a&&(e.blockedOn=null,pO||(pO=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,xj)))}var Mo=null;function zg(e){Mo!==e&&(Mo=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Mo===e&&(Mo=null);for(var a=0;a<e.length;a+=3){var i=e[a],c=e[a+1],f=e[a+2];if(typeof c!="function"){if(mO(c||i)===null)continue;break}var m=Ys(i);m!==null&&(e.splice(a,3),a-=3,hd(m,{pending:!0,data:f,method:i.method,action:c},c,f))}}))}function Sl(e){function a(C){return qo(C,e)}Za!==null&&qo(Za,e),Ea!==null&&qo(Ea,e),qa!==null&&qo(qa,e),Ur.forEach(a),Vr.forEach(a);for(var i=0;i<Ma.length;i++){var c=Ma[i];c.blockedOn===e&&(c.blockedOn=null)}for(;0<Ma.length&&(i=Ma[0],i.blockedOn===null);)Ng(i),i.blockedOn===null&&Ma.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(c=0;c<i.length;c+=3){var f=i[c],m=i[c+1],S=f[wt]||null;if(typeof m=="function")S||zg(i);else if(S){var $=null;if(m&&m.hasAttribute("formAction")){if(f=m,S=m[wt]||null)$=S.formAction;else if(mO(f)!==null)continue}else $=S.action;typeof $=="function"?i[c+1]=$:(i.splice(c,3),c-=3),zg(i)}}}function Rg(){function e(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(S){return f=S})},focusReset:"manual",scroll:"manual"})}function a(){f!==null&&(f(),f=null),c||setTimeout(i,20)}function i(){if(!c&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(i,100),function(){c=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),f!==null&&(f(),f=null)}}}function xO(e){this._internalRoot=e}Yo.prototype.render=xO.prototype.render=function(e){var a=this._internalRoot;if(a===null)throw Error(r(409));var i=a.current,c=Vt();Qg(i,c,e,a,null,null)},Yo.prototype.unmount=xO.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var a=e.containerInfo;Qg(e.current,2,null,e,null,null),yo(),a[qs]=null}};function Yo(e){this._internalRoot=e}Yo.prototype.unstable_scheduleHydration=function(e){if(e){var a=Uh();e={blockedOn:null,target:e,priority:a};for(var i=0;i<Ma.length&&a!==0&&a<Ma[i].priority;i++);Ma.splice(i,0,e),i===0&&Ng(e)}};var Cg=n.version;if(Cg!=="19.2.4")throw Error(r(527,Cg,"19.2.4"));B.findDOMNode=function(e){var a=e._reactInternals;if(a===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(a),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var gj={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Uo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Uo.isDisabled&&Uo.supportsFiber)try{Jl=Uo.inject(gj),Xt=Uo}catch{}}return Lr.createRoot=function(e,a){if(!o(e))throw Error(r(299));var i=!1,c="",f=Mp,m=Yp,S=Up;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError)),a=yg(e,1,!1,null,null,i,c,null,f,m,S,Rg),e[qs]=a.current,Kd(e),new xO(a)},Lr.hydrateRoot=function(e,a,i){if(!o(e))throw Error(r(299));var c=!1,f="",m=Mp,S=Yp,$=Up,C=null;return i!=null&&(i.unstable_strictMode===!0&&(c=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(S=i.onCaughtError),i.onRecoverableError!==void 0&&($=i.onRecoverableError),i.formState!==void 0&&(C=i.formState)),a=yg(e,1,!0,a,i??null,c,f,C,m,S,$,Rg),a.context=Sg(null),i=a.current,c=Vt(),c=iu(c),f=wa(c),f.callback=null,ka(i,f,c),i=c,a.current.lanes=i,tr(a,i),kn(a),e[qs]=a.current,Kd(e),new Yo(a)},Lr.version="19.2.4",Lr}var Eg;function lw(){if(Eg)return gO.exports;Eg=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(n){console.error(n)}}return t(),gO.exports=sw(),gO.exports}var rw=lw();const iw="/api";class ow extends Error{constructor(n,s,r){super(n),this.name="ApiError",this.status=s,this.body=r}}async function Dr(t,n,s){const r=`${iw}${n}`,o={method:t,headers:{}};s!==void 0&&(o.headers["Content-Type"]="application/json",o.body=JSON.stringify(s));const u=await fetch(r,o),d=await u.text();let O;try{O=JSON.parse(d)}catch{O=d}if(!u.ok)throw new ow((O==null?void 0:O.error)||(O==null?void 0:O.message)||`Request failed: ${u.status}`,u.status,O);return O}const K={get:t=>Dr("GET",t),post:(t,n)=>Dr("POST",t,n),put:(t,n)=>Dr("PUT",t,n),patch:(t,n)=>Dr("PATCH",t,n),delete:(t,n)=>Dr("DELETE",t,n)},cw=`ws://${window.location.hostname}:${window.location.port||31415}`;let uw=0;function Of(t,n={}){try{return JSON.parse(localStorage.getItem(t)||JSON.stringify(n))}catch{return n}}function Tl(t,n){try{localStorage.setItem(t,JSON.stringify(n))}catch{}}const qg="0.22.27";Of("groove:storeVersion")!==qg&&(localStorage.removeItem("groove:chatHistory"),localStorage.removeItem("groove:activityLog"),Tl("groove:storeVersion",qg));const D=yj((t,n)=>({agents:[],connected:!1,hydrated:!1,ws:null,daemonHost:null,tunneled:!1,teams:[],activeTeamId:localStorage.getItem("groove:activeTeamId")||null,gateways:[],activeView:"agents",detailPanel:null,commandPaletteOpen:!1,detailPanelWidth:Number(localStorage.getItem("groove:detailWidth"))||480,terminalVisible:localStorage.getItem("groove:terminalVisible")==="true",terminalHeight:Number(localStorage.getItem("groove:terminalHeight"))||260,terminalFullHeight:!1,activityLog:Of("groove:activityLog"),chatHistory:Of("groove:chatHistory"),chatInputs:{},tokenTimeline:{},dashTelemetry:{},ccChartTimeline:[],pendingApprovals:[],resolvedApprovals:[],recommendedTeam:null,journalistStatus:null,marketplaceUser:null,marketplaceAuthenticated:!1,toasts:[],editorFiles:{},editorActiveFile:null,editorOpenTabs:[],editorTreeCache:{},editorChangedFiles:{},editorRecentSaves:{},connect(){if(n().ws)return;const s=new WebSocket(cw);t({ws:s}),s.onopen=()=>{t({connected:!0}),K.get("/status").then(r=>{const o={};r.host&&r.host!=="127.0.0.1"&&(o.daemonHost=r.host);const u=window.location.port||"80";String(r.port)!==u&&(o.tunneled=!0),Object.keys(o).length>0&&t(o)}).catch(()=>{}),n().fetchTeams(),n().fetchApprovals(),n().checkMarketplaceAuth()},s.onmessage=r=>{var u,d,O;const o=JSON.parse(r.data);switch(o.type){case"state":{const h={...n().tokenTimeline},p=Date.now();for(const b of o.data){h[b.id]||(h[b.id]=[]);const y=h[b.id],Q=y[y.length-1];(!Q||b.tokensUsed!==Q.v||p-Q.t>5e3)&&(y.push({t:p,v:b.tokensUsed||0}),y.length>200&&(h[b.id]=y.slice(-200)))}const x=n().agents,g=o.data.length!==x.length||o.data.some((b,y)=>{const Q=x[y];return!Q||Q.id!==b.id||Q.status!==b.status||Q.tokensUsed!==b.tokensUsed||Q.contextUsage!==b.contextUsage||Q.name!==b.name||Q.model!==b.model});t({agents:g?o.data:x,tokenTimeline:h,hydrated:!0});break}case"agent:output":{const{agentId:h,data:p}=o;let x="",g="";if(typeof p.data=="string"?x=p.data:Array.isArray(p.data)&&(x=p.data.filter(Q=>Q.type==="text").map(Q=>Q.text).join(`
26
+ `),g=p.data.filter(Q=>Q.type==="tool_use").map(Q=>{var w,k,j;return`${Q.name}: ${typeof Q.input=="string"?Q.input.slice(0,80):((w=Q.input)==null?void 0:w.command)||((k=Q.input)==null?void 0:k.path)||((j=Q.input)==null?void 0:j.pattern)||JSON.stringify(Q.input||"").slice(0,80)}`}).join(`
27
+ `)),p.contextUsage!==void 0||p.tokensUsed!==void 0){const Q=n().agents.map(w=>{if(w.id!==h)return w;const k={};return p.contextUsage!==void 0&&(k.contextUsage=p.contextUsage),p.tokensUsed!==void 0&&(k.tokensUsed=p.tokensUsed),{...w,...k}});t({agents:Q})}const b=p.subtype==="stream";if(x&&x.trim()&&!b&&(p.subtype==="assistant"||p.subtype==="text"||p.type==="result"||p.type==="activity"&&typeof p.data=="string")){n().thinkingAgents.has(h)&&t(X=>{const G=new Set(X.thinkingAgents);return G.delete(h),{thinkingAgents:G}});const Q=x.trim(),w={...n().chatHistory};w[h]||(w[h]=[]);const k=[...w[h]],j=k[k.length-1],z=j&&j.from==="agent"&&Date.now()-j.timestamp<8e3;if(!(z&&(j.text===Q||j.text.endsWith(Q)))){if(z){const X=p.subtype==="assistant"?`
28
+
29
+ `:" ";k[k.length-1]={...j,text:j.text+X+Q,timestamp:Date.now()}}else k.push({from:"agent",text:Q,timestamp:Date.now()});w[h]=k.slice(-100),t({chatHistory:w}),Tl("groove:chatHistory",w)}}if(g&&g.trim()){const Q={...n().activityLog};Q[h]||(Q[h]=[]),Q[h]=[...Q[h].slice(-200),{timestamp:Date.now(),text:g.trim(),type:p.type,subtype:"tool"}],t({activityLog:Q}),Tl("groove:activityLog",Q)}break}case"agent:exit":{const h=n().agents.find(y=>y.id===o.agentId),p=(h==null?void 0:h.name)||o.agentId,x=o.status==="killed"||o.code===143||o.code===137,g=o.status==="completed"?`${p} completed`:x?`${p} stopped`:`${p} crashed (exit ${o.code})`,b=o.status==="completed"?"success":x?"info":"warning";n().addToast(b,g,o.error?o.error.slice(0,200):void 0),o.error&&o.agentId&&n().addChatMessage(o.agentId,"system",`Crashed: ${o.error}`),(h==null?void 0:h.role)==="planner"&&o.status==="completed"&&setTimeout(()=>n().checkRecommendedTeam(),1e3);break}case"phase2:spawned":n().addToast("info",`QC agent ${o.name} auto-spawned`,"Auditing phase 1 work");break;case"phase2:failed":n().addToast("error","QC agent failed to spawn",o.error||"Unknown error");break;case"rotation:start":n().addToast("info",`Rotating ${o.agentName}...`);break;case"rotation:complete":{n().addToast("success",`Rotated ${o.agentName}`,`Saved ${o.tokensSaved} tokens`);const h=n().detailPanel;(h==null?void 0:h.type)==="agent"&&h.agentId===o.oldAgentId&&o.newAgentId&&t(p=>{var y,Q,w;const x={...p.chatHistory},g={...p.tokenTimeline},b={...p.activityLog};return(y=x[o.oldAgentId])!=null&&y.length&&(x[o.newAgentId]=[...x[o.oldAgentId]]),(Q=g[o.oldAgentId])!=null&&Q.length&&(g[o.newAgentId]=[...g[o.oldAgentId]]),(w=b[o.oldAgentId])!=null&&w.length&&(b[o.newAgentId]=[...b[o.oldAgentId]]),{chatHistory:x,tokenTimeline:g,activityLog:b,detailPanel:{type:"agent",agentId:o.newAgentId}}});break}case"rotation:failed":n().addToast("error","Rotation failed",o.error);break;case"file:changed":{const h=n().editorRecentSaves[o.path];if(h&&Date.now()-h<2e3)break;t(p=>({editorChangedFiles:{...p.editorChangedFiles,[o.path]:o.timestamp}}));break}case"team:created":case"team:deleted":case"team:updated":n().fetchTeams();break;case"approval:request":t(h=>({pendingApprovals:[...h.pendingApprovals,o.data]})),n().addToast("warning",`Approval needed: ${((u=o.data)==null?void 0:u.agentName)||"agent"}`,(O=(d=o.data)==null?void 0:d.action)==null?void 0:O.description);break;case"approval:resolved":{const h=o.data;t(p=>({pendingApprovals:p.pendingApprovals.filter(x=>x.id!==h.id),resolvedApprovals:[h,...p.resolvedApprovals].slice(0,200)}));break}case"conflict:detected":n().addToast("error",`Scope conflict: ${o.agentName||"agent"}`,o.filePath?`File: ${o.filePath}`:void 0);break;case"qc:activated":n().addToast("info","QC agent activated",`${o.agentCount||"4+"} agents running`);break;case"journalist:cycle":t({journalistStatus:o.data||null});break;case"schedule:execute":n().addToast("info",`Scheduled agent spawned: ${o.name||o.role||"agent"}`);break;case"gateway:status":t({gateways:o.data||[]});break}},s.onclose=()=>{t({connected:!1,hydrated:!1,ws:null,daemonHost:null,tunneled:!1}),setTimeout(()=>n().connect(),2e3)},s.onerror=()=>s.close()},setActiveView(s){t({activeView:s})},async fetchTeams(){try{const s=await K.get("/teams"),r=s.teams||[],o=s.defaultTeamId,{activeTeamId:u}=n(),O=r.map(h=>h.id).includes(u)?u:o;t({teams:r,activeTeamId:O}),O&&localStorage.setItem("groove:activeTeamId",O)}catch{}},switchTeam(s){t({activeTeamId:s,detailPanel:null}),localStorage.setItem("groove:activeTeamId",s)},async createTeam(s,r){try{const o={name:s};r&&(o.workingDir=r);const u=await K.post("/teams",o);return t({activeTeamId:u.id}),localStorage.setItem("groove:activeTeamId",u.id),n().addToast("success",`Team "${s}" created`),u}catch(o){throw n().addToast("error","Failed to create team",o.message),o}},async deleteTeam(s){const r=n().teams.find(o=>o.id===s);if(r!=null&&r.isDefault){n().addToast("warning","Cannot delete the default team");return}try{await K.delete(`/teams/${s}`),n().addToast("info",`Team "${r==null?void 0:r.name}" deleted`)}catch(o){n().addToast("error","Failed to delete team",o.message)}},async renameTeam(s,r){try{const o=await K.patch(`/teams/${s}`,{name:r});return t(u=>({teams:u.teams.map(d=>d.id===s?o:d)})),o}catch(o){throw n().addToast("error","Failed to rename team",o.message),o}},openDetail(s){t({detailPanel:s})},closeDetail(){t({detailPanel:null})},selectAgent(s){t({detailPanel:{type:"agent",agentId:s}})},clearSelection(){t({detailPanel:null})},toggleCommandPalette(){t(s=>({commandPaletteOpen:!s.commandPaletteOpen}))},setDetailPanelWidth(s){t({detailPanelWidth:s}),localStorage.setItem("groove:detailWidth",String(s))},setTerminalVisible(s){t({terminalVisible:s}),localStorage.setItem("groove:terminalVisible",String(s))},setTerminalHeight(s){t({terminalHeight:s}),localStorage.setItem("groove:terminalHeight",String(s))},setTerminalFullHeight(s){t({terminalFullHeight:s})},addToast(s,r,o){const u=++uw;t(d=>({toasts:[...d.toasts,{id:u,type:s,message:r,detail:o}]}))},removeToast(s){t(r=>({toasts:r.toasts.filter(o=>o.id!==s)}))},async checkMarketplaceAuth(){try{const s=await K.get("/auth/status");t({marketplaceAuthenticated:s.authenticated||!1,marketplaceUser:s.user||null})}catch{t({marketplaceAuthenticated:!1,marketplaceUser:null})}},async marketplaceLogin(){try{const s=await K.get("/auth/login-url");s.url&&window.open(s.url,"_blank");const r=setInterval(async()=>{var o,u;try{const d=await K.get("/auth/status");d.authenticated&&(clearInterval(r),t({marketplaceAuthenticated:!0,marketplaceUser:d.user}),n().addToast("success",`Signed in as ${((o=d.user)==null?void 0:o.displayName)||((u=d.user)==null?void 0:u.id)||"user"}`))}catch{}},2e3);setTimeout(()=>clearInterval(r),3e5)}catch(s){n().addToast("error","Login failed",s.message)}},async marketplaceLogout(){try{await K.post("/auth/logout"),t({marketplaceAuthenticated:!1,marketplaceUser:null}),n().addToast("info","Signed out of marketplace")}catch(s){n().addToast("error","Logout failed",s.message)}},async marketplaceCheckout(s){try{const r=await K.post("/auth/checkout",{skillId:s});return r.url&&window.open(r.url,"_blank"),r}catch(r){throw n().addToast("error","Checkout failed",r.message),r}},async fetchApprovals(){try{const s=await K.get("/approvals");t({pendingApprovals:s.pending||[],resolvedApprovals:s.resolved||[]})}catch{}},async approveRequest(s){try{await K.post(`/approvals/${s}/approve`),t(r=>({pendingApprovals:r.pendingApprovals.filter(o=>o.id!==s)})),n().addToast("success","Approved")}catch(r){n().addToast("error","Approve failed",r.message)}},async rejectRequest(s,r=""){try{await K.post(`/approvals/${s}/reject`,{reason:r}),t(o=>({pendingApprovals:o.pendingApprovals.filter(u=>u.id!==s)})),n().addToast("info","Rejected")}catch(o){n().addToast("error","Reject failed",o.message)}},async checkRecommendedTeam(){var s;try{const r=await K.get("/recommended-team");if(!r||!((s=r.agents)!=null&&s.length)){t({recommendedTeam:null});return}const u=n().agents.filter(O=>O.role==="planner").sort((O,h)=>(h.lastActivity||"").localeCompare(O.lastActivity||""))[0],d=u==null?void 0:u.teamId;if(d){const O=n().agents.filter(x=>x.teamId===d&&x.role!=="planner"),h=r.agents.filter(x=>!x.phase||x.phase===1).map(x=>x.role);if(h.every(x=>O.some(g=>g.role===x))&&h.length>0){t({recommendedTeam:null});const g=(await K.post("/recommended-team/launch")).agents||[],b=g.map(y=>y.name).join(", ")||"";n().addToast("success","Planner delegated work",b?`→ ${b}`:void 0),g.length>0&&t(y=>({thinkingAgents:new Set([...y.thinkingAgents,...g.map(Q=>Q.id)])})),K.post("/cleanup").catch(()=>{});return}}t({recommendedTeam:r})}catch{t({recommendedTeam:null})}},async launchRecommendedTeam(s){try{t({recommendedTeam:null}),n().addToast("info","Launching team...");const r=s?{agents:s}:void 0,o=await K.post("/recommended-team/launch",r),u=[o.phase2Pending?`${o.phase2Pending} QC queued`:"",o.projectDir?`→ ${o.projectDir}/`:""].filter(Boolean).join(" · ");n().addToast("success",`Launched ${(o.launched||0)+(o.reused||0)} agents`,u||void 0);const d=o.agents||[];return d.length>0&&t(O=>({thinkingAgents:new Set([...O.thinkingAgents,...d.map(h=>h.id)])})),K.post("/cleanup").catch(()=>{}),o}catch(r){throw n().addToast("error","Launch failed",r.message),r}},async fetchJournalist(){try{const s=await K.get("/journalist");return t({journalistStatus:s}),s}catch{return null}},async triggerJournalistCycle(){try{const s=await K.post("/journalist/cycle");return n().addToast("success","Synthesis cycle triggered"),t({journalistStatus:s}),s}catch(s){throw n().addToast("error","Synthesis failed",s.message),s}},async spawnAgent(s){try{const r=n().activeTeamId,o=await K.post("/agents",{...s,teamId:r});return n().addToast("success",`Spawned ${o.name}`),o}catch(r){throw n().addToast("error","Spawn failed",r.message),r}},async killAgent(s,r=!1){try{await K.delete(`/agents/${s}?purge=${r}`)}catch(o){n().addToast("error","Kill failed",o.message)}},async rotateAgent(s){try{return await K.post(`/agents/${s}/rotate`)}catch(r){throw n().addToast("error","Rotation failed",r.message),r}},async fetchProviders(){return K.get("/providers")},addChatMessage(s,r,o,u=!1){t(d=>{const O={...d.chatHistory};return O[s]||(O[s]=[]),O[s]=[...O[s].slice(-100),{from:r,text:o,timestamp:Date.now(),isQuery:u}],Tl("groove:chatHistory",O),{chatHistory:O}})},thinkingAgents:new Set,async instructAgent(s,r){var d,O;const o=n().agents.find(h=>h.id===s);if(o&&(o.status==="running"||o.status==="starting")){n().addChatMessage(s,"user",r,!1);try{const h=await K.post(`/agents/${s}/query`,{message:r});return h.status==="pending"||h.response==="Message sent to agent"?(t(p=>({thinkingAgents:new Set([...p.thinkingAgents,s])})),h):(n().addChatMessage(s,"agent",h.response),h)}catch(h){throw n().addChatMessage(s,"system",`failed: ${h.message}`),h}}n().addChatMessage(s,"user",r,!1),t(h=>({thinkingAgents:new Set([...h.thinkingAgents,s])}));try{const h=await K.post(`/agents/${s}/instruct`,{message:r});for(const p of["chatHistory","activityLog","tokenTimeline"]){const x=n()[p][s];x!=null&&x.length&&t(g=>({[p]:{...g[p],[h.id]:[...x]}}))}return t(p=>{const x=new Set(p.thinkingAgents);return x.delete(s),x.add(h.id),{thinkingAgents:x}}),(d=n().chatHistory[s])!=null&&d.length&&Tl("groove:chatHistory",n().chatHistory),(O=n().activityLog[s])!=null&&O.length&&Tl("groove:activityLog",n().activityLog),n().selectAgent(h.id),h}catch(h){throw t(p=>{const x=new Set(p.thinkingAgents);return x.delete(s),{thinkingAgents:x}}),n().addChatMessage(s,"system",`failed: ${h.message}`),h}},async queryAgent(s,r){n().addChatMessage(s,"user",r,!0);try{const o=await K.post(`/agents/${s}/query`,{message:r});return n().addChatMessage(s,"agent",o.response),o}catch(o){throw n().addChatMessage(s,"system",`query failed: ${o.message}`),o}},async openFile(s){var u;if(n().editorFiles[s]||n().editorOpenTabs.includes(s)){t(d=>({editorActiveFile:s,editorOpenTabs:d.editorOpenTabs.includes(s)?d.editorOpenTabs:[...d.editorOpenTabs,s]}));return}const r=(u=s.split(".").pop())==null?void 0:u.toLowerCase();if(["png","jpg","jpeg","gif","svg","webp","ico","bmp","avif","mp4","webm","mov","avi","mkv","ogv"].includes(r)){t(d=>({editorActiveFile:s,editorOpenTabs:[...d.editorOpenTabs,s]}));return}try{const d=await K.get(`/files/read?path=${encodeURIComponent(s)}`);if(d.binary){n().addToast("warning","Binary file — cannot open");return}t(h=>({editorFiles:{...h.editorFiles,[s]:{content:d.content,originalContent:d.content,language:d.language,loadedAt:Date.now()}},editorActiveFile:s,editorOpenTabs:h.editorOpenTabs.includes(s)?h.editorOpenTabs:[...h.editorOpenTabs,s]}));const O=n().ws;(O==null?void 0:O.readyState)===1&&O.send(JSON.stringify({type:"editor:watch",path:s}))}catch(d){n().addToast("error","Failed to open file",d.message)}},closeFile(s){t(o=>{const u=o.editorOpenTabs.filter(p=>p!==s),d={...o.editorFiles};delete d[s];const O={...o.editorChangedFiles};delete O[s];let h=o.editorActiveFile;if(h===s){const p=o.editorOpenTabs.indexOf(s);h=u[Math.min(p,u.length-1)]||null}return{editorOpenTabs:u,editorFiles:d,editorChangedFiles:O,editorActiveFile:h}});const r=n().ws;(r==null?void 0:r.readyState)===1&&r.send(JSON.stringify({type:"editor:unwatch",path:s}))},setActiveFile(s){t({editorActiveFile:s})},updateFileContent(s,r){t(o=>({editorFiles:{...o.editorFiles,[s]:{...o.editorFiles[s],content:r}}}))},async saveFile(s){const r=n().editorFiles[s];if(r)try{await K.post("/files/write",{path:s,content:r.content}),t(o=>({editorFiles:{...o.editorFiles,[s]:{...o.editorFiles[s],originalContent:r.content}},editorChangedFiles:(()=>{const u={...o.editorChangedFiles};return delete u[s],u})(),editorRecentSaves:{...o.editorRecentSaves,[s]:Date.now()}})),n().addToast("success","File saved")}catch(o){n().addToast("error","Save failed",o.message)}},async reloadFile(s){try{const r=await K.get(`/files/read?path=${encodeURIComponent(s)}`);if(r.binary)return;t(o=>({editorFiles:{...o.editorFiles,[s]:{content:r.content,originalContent:r.content,language:r.language,loadedAt:Date.now()}},editorChangedFiles:(()=>{const u={...o.editorChangedFiles};return delete u[s],u})()}))}catch{}},dismissFileChange(s){t(r=>{const o={...r.editorChangedFiles};return delete o[s],{editorChangedFiles:o}})},async fetchTreeDir(s){try{const r=await K.get(`/files/tree?path=${encodeURIComponent(s)}`);t(o=>({editorTreeCache:{...o.editorTreeCache,[s]:r.entries}}))}catch{}},async createFile(s){try{await K.post("/files/create",{path:s});const r=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(r),n().addToast("success","File created"),!0}catch(r){return n().addToast("error","Create failed",r.message),!1}},async createDir(s){try{await K.post("/files/mkdir",{path:s});const r=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(r),n().addToast("success","Folder created"),!0}catch(r){return n().addToast("error","Create failed",r.message),!1}},async deleteFile(s){try{await K.delete(`/files/delete?path=${encodeURIComponent(s)}`),n().editorOpenTabs.includes(s)&&n().closeFile(s);const r=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(r),t(o=>{const u={...o.editorTreeCache};return delete u[s],{editorTreeCache:u}}),n().addToast("success","Deleted"),!0}catch(r){return n().addToast("error","Delete failed",r.message),!1}},async renameFile(s,r){try{await K.post("/files/rename",{oldPath:s,newPath:r}),t(d=>{const O=d.editorOpenTabs.map(x=>x===s?r:x),h={...d.editorFiles};h[s]&&(h[r]=h[s],delete h[s]);const p=d.editorActiveFile===s?r:d.editorActiveFile;return{editorOpenTabs:O,editorFiles:h,editorActiveFile:p}});const o=s.includes("/")?s.split("/").slice(0,-1).join("/"):"",u=r.includes("/")?r.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(o),u!==o&&await n().fetchTreeDir(u),n().addToast("success","Renamed"),!0}catch(o){return n().addToast("error","Rename failed",o.message),!1}}}));function dw(t){v.useEffect(()=>{function n(s){for(const r of t){const o=r.meta?s.metaKey||s.ctrlKey:!0,u=r.shift?s.shiftKey:!s.shiftKey;if(s.key.toLowerCase()===r.key.toLowerCase()&&o&&u){s.preventDefault(),r.handler();return}}}return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[t])}function qe(t,n,{checkForDefaultPrevented:s=!0}={}){return function(o){if(t==null||t(o),s===!1||!o.defaultPrevented)return n==null?void 0:n(o)}}function Mg(t,n){if(typeof t=="function")return t(n);t!=null&&(t.current=n)}function E0(...t){return n=>{let s=!1;const r=t.map(o=>{const u=Mg(o,n);return!s&&typeof u=="function"&&(s=!0),u});if(s)return()=>{for(let o=0;o<r.length;o++){const u=r[o];typeof u=="function"?u():Mg(t[o],null)}}}}function it(...t){return v.useCallback(E0(...t),t)}function Ow(t,n){const s=v.createContext(n),r=u=>{const{children:d,...O}=u,h=v.useMemo(()=>O,Object.values(O));return l.jsx(s.Provider,{value:h,children:d})};r.displayName=t+"Provider";function o(u){const d=v.useContext(s);if(d)return d;if(n!==void 0)return n;throw new Error(`\`${u}\` must be used within \`${t}\``)}return[r,o]}function As(t,n=[]){let s=[];function r(u,d){const O=v.createContext(d),h=s.length;s=[...s,d];const p=g=>{var j;const{scope:b,children:y,...Q}=g,w=((j=b==null?void 0:b[t])==null?void 0:j[h])||O,k=v.useMemo(()=>Q,Object.values(Q));return l.jsx(w.Provider,{value:k,children:y})};p.displayName=u+"Provider";function x(g,b){var w;const y=((w=b==null?void 0:b[t])==null?void 0:w[h])||O,Q=v.useContext(y);if(Q)return Q;if(d!==void 0)return d;throw new Error(`\`${g}\` must be used within \`${u}\``)}return[p,x]}const o=()=>{const u=s.map(d=>v.createContext(d));return function(O){const h=(O==null?void 0:O[t])||u;return v.useMemo(()=>({[`__scope${t}`]:{...O,[t]:h}}),[O,h])}};return o.scopeName=t,[r,fw(o,...n)]}function fw(...t){const n=t[0];if(t.length===1)return n;const s=()=>{const r=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(u){const d=r.reduce((O,{useScope:h,scopeName:p})=>{const g=h(u)[`__scope${p}`];return{...O,...g}},{});return v.useMemo(()=>({[`__scope${n.scopeName}`]:d}),[d])}};return s.scopeName=n.scopeName,s}function fc(t){const n=hw(t),s=v.forwardRef((r,o)=>{const{children:u,...d}=r,O=v.Children.toArray(u),h=O.find(pw);if(h){const p=h.props.children,x=O.map(g=>g===h?v.Children.count(p)>1?v.Children.only(null):v.isValidElement(p)?p.props.children:null:g);return l.jsx(n,{...d,ref:o,children:v.isValidElement(p)?v.cloneElement(p,void 0,x):null})}return l.jsx(n,{...d,ref:o,children:u})});return s.displayName=`${t}.Slot`,s}function hw(t){const n=v.forwardRef((s,r)=>{const{children:o,...u}=s;if(v.isValidElement(o)){const d=gw(o),O=xw(u,o.props);return o.type!==v.Fragment&&(O.ref=r?E0(r,d):d),v.cloneElement(o,O)}return v.Children.count(o)>1?v.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var q0=Symbol("radix.slottable");function mw(t){const n=({children:s})=>l.jsx(l.Fragment,{children:s});return n.displayName=`${t}.Slottable`,n.__radixId=q0,n}function pw(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===q0}function xw(t,n){const s={...n};for(const r in n){const o=t[r],u=n[r];/^on[A-Z]/.test(r)?o&&u?s[r]=(...O)=>{const h=u(...O);return o(...O),h}:o&&(s[r]=o):r==="style"?s[r]={...o,...u}:r==="className"&&(s[r]=[o,u].filter(Boolean).join(" "))}return{...t,...s}}function gw(t){var r,o;let n=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var bw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Be=bw.reduce((t,n)=>{const s=fc(`Primitive.${n}`),r=v.forwardRef((o,u)=>{const{asChild:d,...O}=o,h=d?s:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(h,{...O,ref:u})});return r.displayName=`Primitive.${n}`,{...t,[n]:r}},{});function vw(t,n){t&&P0.flushSync(()=>t.dispatchEvent(n))}function Rt(t){const n=v.useRef(t);return v.useEffect(()=>{n.current=t}),v.useMemo(()=>(...s)=>{var r;return(r=n.current)==null?void 0:r.call(n,...s)},[])}function yw(t,n=globalThis==null?void 0:globalThis.document){const s=Rt(t);v.useEffect(()=>{const r=o=>{o.key==="Escape"&&s(o)};return n.addEventListener("keydown",r,{capture:!0}),()=>n.removeEventListener("keydown",r,{capture:!0})},[s,n])}var Sw="DismissableLayer",ff="dismissableLayer.update",Qw="dismissableLayer.pointerDownOutside",jw="dismissableLayer.focusOutside",Yg,M0=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yf=v.forwardRef((t,n)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:u,onInteractOutside:d,onDismiss:O,...h}=t,p=v.useContext(M0),[x,g]=v.useState(null),b=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=v.useState({}),Q=it(n,_=>g(_)),w=Array.from(p.layers),[k]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),j=w.indexOf(k),z=x?w.indexOf(x):-1,N=p.layersWithOutsidePointerEventsDisabled.size>0,X=z>=j,G=$w(_=>{const T=_.target,Y=[...p.branches].some(M=>M.contains(T));!X||Y||(o==null||o(_),d==null||d(_),_.defaultPrevented||O==null||O())},b),R=Tw(_=>{const T=_.target;[...p.branches].some(M=>M.contains(T))||(u==null||u(_),d==null||d(_),_.defaultPrevented||O==null||O())},b);return yw(_=>{z===p.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&O&&(_.preventDefault(),O()))},b),v.useEffect(()=>{if(x)return s&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Yg=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(x)),p.layers.add(x),Ug(),()=>{s&&p.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Yg)}},[x,b,s,p]),v.useEffect(()=>()=>{x&&(p.layers.delete(x),p.layersWithOutsidePointerEventsDisabled.delete(x),Ug())},[x,p]),v.useEffect(()=>{const _=()=>y({});return document.addEventListener(ff,_),()=>document.removeEventListener(ff,_)},[]),l.jsx(Be.div,{...h,ref:Q,style:{pointerEvents:N?X?"auto":"none":void 0,...t.style},onFocusCapture:qe(t.onFocusCapture,R.onFocusCapture),onBlurCapture:qe(t.onBlurCapture,R.onBlurCapture),onPointerDownCapture:qe(t.onPointerDownCapture,G.onPointerDownCapture)})});Yf.displayName=Sw;var ww="DismissableLayerBranch",kw=v.forwardRef((t,n)=>{const s=v.useContext(M0),r=v.useRef(null),o=it(n,r);return v.useEffect(()=>{const u=r.current;if(u)return s.branches.add(u),()=>{s.branches.delete(u)}},[s.branches]),l.jsx(Be.div,{...t,ref:o})});kw.displayName=ww;function $w(t,n=globalThis==null?void 0:globalThis.document){const s=Rt(t),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const u=O=>{if(O.target&&!r.current){let h=function(){Y0(Qw,s,p,{discrete:!0})};const p={originalEvent:O};O.pointerType==="touch"?(n.removeEventListener("click",o.current),o.current=h,n.addEventListener("click",o.current,{once:!0})):h()}else n.removeEventListener("click",o.current);r.current=!1},d=window.setTimeout(()=>{n.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(d),n.removeEventListener("pointerdown",u),n.removeEventListener("click",o.current)}},[n,s]),{onPointerDownCapture:()=>r.current=!0}}function Tw(t,n=globalThis==null?void 0:globalThis.document){const s=Rt(t),r=v.useRef(!1);return v.useEffect(()=>{const o=u=>{u.target&&!r.current&&Y0(jw,s,{originalEvent:u},{discrete:!1})};return n.addEventListener("focusin",o),()=>n.removeEventListener("focusin",o)},[n,s]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ug(){const t=new CustomEvent(ff);document.dispatchEvent(t)}function Y0(t,n,s,{discrete:r}){const o=s.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:s});n&&o.addEventListener(t,n,{once:!0}),r?vw(o,u):o.dispatchEvent(u)}var ca=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},Nw=N0[" useId ".trim().toString()]||(()=>{}),Pw=0;function zl(t){const[n,s]=v.useState(Nw());return ca(()=>{s(r=>r??String(Pw++))},[t]),t||(n?`radix-${n}`:"")}const zw=["top","right","bottom","left"],Ka=Math.min,Bt=Math.max,hc=Math.round,Vo=Math.floor,Nn=t=>({x:t,y:t}),Rw={left:"right",right:"left",bottom:"top",top:"bottom"};function hf(t,n,s){return Bt(t,Ka(n,s))}function ua(t,n){return typeof t=="function"?t(n):t}function da(t){return t.split("-")[0]}function Bl(t){return t.split("-")[1]}function Uf(t){return t==="x"?"y":"x"}function Vf(t){return t==="y"?"height":"width"}function Tn(t){const n=t[0];return n==="t"||n==="b"?"y":"x"}function Gf(t){return Uf(Tn(t))}function Cw(t,n,s){s===void 0&&(s=!1);const r=Bl(t),o=Gf(t),u=Vf(o);let d=o==="x"?r===(s?"end":"start")?"right":"left":r==="start"?"bottom":"top";return n.reference[u]>n.floating[u]&&(d=mc(d)),[d,mc(d)]}function _w(t){const n=mc(t);return[mf(t),n,mf(n)]}function mf(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Vg=["left","right"],Gg=["right","left"],Xw=["top","bottom"],Aw=["bottom","top"];function Zw(t,n,s){switch(t){case"top":case"bottom":return s?n?Gg:Vg:n?Vg:Gg;case"left":case"right":return n?Xw:Aw;default:return[]}}function Ew(t,n,s,r){const o=Bl(t);let u=Zw(da(t),s==="start",r);return o&&(u=u.map(d=>d+"-"+o),n&&(u=u.concat(u.map(mf)))),u}function mc(t){const n=da(t);return Rw[n]+t.slice(n.length)}function qw(t){return{top:0,right:0,bottom:0,left:0,...t}}function U0(t){return typeof t!="number"?qw(t):{top:t,right:t,bottom:t,left:t}}function pc(t){const{x:n,y:s,width:r,height:o}=t;return{width:r,height:o,top:s,left:n,right:n+r,bottom:s+o,x:n,y:s}}function Lg(t,n,s){let{reference:r,floating:o}=t;const u=Tn(n),d=Gf(n),O=Vf(d),h=da(n),p=u==="y",x=r.x+r.width/2-o.width/2,g=r.y+r.height/2-o.height/2,b=r[O]/2-o[O]/2;let y;switch(h){case"top":y={x,y:r.y-o.height};break;case"bottom":y={x,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:g};break;case"left":y={x:r.x-o.width,y:g};break;default:y={x:r.x,y:r.y}}switch(Bl(n)){case"start":y[d]-=b*(s&&p?-1:1);break;case"end":y[d]+=b*(s&&p?-1:1);break}return y}async function Mw(t,n){var s;n===void 0&&(n={});const{x:r,y:o,platform:u,rects:d,elements:O,strategy:h}=t,{boundary:p="clippingAncestors",rootBoundary:x="viewport",elementContext:g="floating",altBoundary:b=!1,padding:y=0}=ua(n,t),Q=U0(y),k=O[b?g==="floating"?"reference":"floating":g],j=pc(await u.getClippingRect({element:(s=await(u.isElement==null?void 0:u.isElement(k)))==null||s?k:k.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(O.floating)),boundary:p,rootBoundary:x,strategy:h})),z=g==="floating"?{x:r,y:o,width:d.floating.width,height:d.floating.height}:d.reference,N=await(u.getOffsetParent==null?void 0:u.getOffsetParent(O.floating)),X=await(u.isElement==null?void 0:u.isElement(N))?await(u.getScale==null?void 0:u.getScale(N))||{x:1,y:1}:{x:1,y:1},G=pc(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:O,rect:z,offsetParent:N,strategy:h}):z);return{top:(j.top-G.top+Q.top)/X.y,bottom:(G.bottom-j.bottom+Q.bottom)/X.y,left:(j.left-G.left+Q.left)/X.x,right:(G.right-j.right+Q.right)/X.x}}const Yw=50,Uw=async(t,n,s)=>{const{placement:r="bottom",strategy:o="absolute",middleware:u=[],platform:d}=s,O=d.detectOverflow?d:{...d,detectOverflow:Mw},h=await(d.isRTL==null?void 0:d.isRTL(n));let p=await d.getElementRects({reference:t,floating:n,strategy:o}),{x,y:g}=Lg(p,r,h),b=r,y=0;const Q={};for(let w=0;w<u.length;w++){const k=u[w];if(!k)continue;const{name:j,fn:z}=k,{x:N,y:X,data:G,reset:R}=await z({x,y:g,initialPlacement:r,placement:b,strategy:o,middlewareData:Q,rects:p,platform:O,elements:{reference:t,floating:n}});x=N??x,g=X??g,Q[j]={...Q[j],...G},R&&y<Yw&&(y++,typeof R=="object"&&(R.placement&&(b=R.placement),R.rects&&(p=R.rects===!0?await d.getElementRects({reference:t,floating:n,strategy:o}):R.rects),{x,y:g}=Lg(p,b,h)),w=-1)}return{x,y:g,placement:b,strategy:o,middlewareData:Q}},Vw=t=>({name:"arrow",options:t,async fn(n){const{x:s,y:r,placement:o,rects:u,platform:d,elements:O,middlewareData:h}=n,{element:p,padding:x=0}=ua(t,n)||{};if(p==null)return{};const g=U0(x),b={x:s,y:r},y=Gf(o),Q=Vf(y),w=await d.getDimensions(p),k=y==="y",j=k?"top":"left",z=k?"bottom":"right",N=k?"clientHeight":"clientWidth",X=u.reference[Q]+u.reference[y]-b[y]-u.floating[Q],G=b[y]-u.reference[y],R=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p));let _=R?R[N]:0;(!_||!await(d.isElement==null?void 0:d.isElement(R)))&&(_=O.floating[N]||u.floating[Q]);const T=X/2-G/2,Y=_/2-w[Q]/2-1,M=Ka(g[j],Y),ae=Ka(g[z],Y),F=M,se=_-w[Q]-ae,ie=_/2-w[Q]/2+T,W=hf(F,ie,se),P=!h.arrow&&Bl(o)!=null&&ie!==W&&u.reference[Q]/2-(ie<F?M:ae)-w[Q]/2<0,B=P?ie<F?ie-F:ie-se:0;return{[y]:b[y]+B,data:{[y]:W,centerOffset:ie-W-B,...P&&{alignmentOffset:B}},reset:P}}}),Gw=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var s,r;const{placement:o,middlewareData:u,rects:d,initialPlacement:O,platform:h,elements:p}=n,{mainAxis:x=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:Q="none",flipAlignment:w=!0,...k}=ua(t,n);if((s=u.arrow)!=null&&s.alignmentOffset)return{};const j=da(o),z=Tn(O),N=da(O)===O,X=await(h.isRTL==null?void 0:h.isRTL(p.floating)),G=b||(N||!w?[mc(O)]:_w(O)),R=Q!=="none";!b&&R&&G.push(...Ew(O,w,Q,X));const _=[O,...G],T=await h.detectOverflow(n,k),Y=[];let M=((r=u.flip)==null?void 0:r.overflows)||[];if(x&&Y.push(T[j]),g){const ie=Cw(o,d,X);Y.push(T[ie[0]],T[ie[1]])}if(M=[...M,{placement:o,overflows:Y}],!Y.every(ie=>ie<=0)){var ae,F;const ie=(((ae=u.flip)==null?void 0:ae.index)||0)+1,W=_[ie];if(W&&(!(g==="alignment"?z!==Tn(W):!1)||M.every(E=>Tn(E.placement)===z?E.overflows[0]>0:!0)))return{data:{index:ie,overflows:M},reset:{placement:W}};let P=(F=M.filter(B=>B.overflows[0]<=0).sort((B,E)=>B.overflows[1]-E.overflows[1])[0])==null?void 0:F.placement;if(!P)switch(y){case"bestFit":{var se;const B=(se=M.filter(E=>{if(R){const ce=Tn(E.placement);return ce===z||ce==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(ce=>ce>0).reduce((ce,ee)=>ce+ee,0)]).sort((E,ce)=>E[1]-ce[1])[0])==null?void 0:se[0];B&&(P=B);break}case"initialPlacement":P=O;break}if(o!==P)return{reset:{placement:P}}}return{}}}};function Dg(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function Wg(t){return zw.some(n=>t[n]>=0)}const Lw=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(n){const{rects:s,platform:r}=n,{strategy:o="referenceHidden",...u}=ua(t,n);switch(o){case"referenceHidden":{const d=await r.detectOverflow(n,{...u,elementContext:"reference"}),O=Dg(d,s.reference);return{data:{referenceHiddenOffsets:O,referenceHidden:Wg(O)}}}case"escaped":{const d=await r.detectOverflow(n,{...u,altBoundary:!0}),O=Dg(d,s.floating);return{data:{escapedOffsets:O,escaped:Wg(O)}}}default:return{}}}}},V0=new Set(["left","top"]);async function Dw(t,n){const{placement:s,platform:r,elements:o}=t,u=await(r.isRTL==null?void 0:r.isRTL(o.floating)),d=da(s),O=Bl(s),h=Tn(s)==="y",p=V0.has(d)?-1:1,x=u&&h?-1:1,g=ua(n,t);let{mainAxis:b,crossAxis:y,alignmentAxis:Q}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return O&&typeof Q=="number"&&(y=O==="end"?Q*-1:Q),h?{x:y*x,y:b*p}:{x:b*p,y:y*x}}const Ww=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(n){var s,r;const{x:o,y:u,placement:d,middlewareData:O}=n,h=await Dw(n,t);return d===((s=O.offset)==null?void 0:s.placement)&&(r=O.arrow)!=null&&r.alignmentOffset?{}:{x:o+h.x,y:u+h.y,data:{...h,placement:d}}}}},Bw=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:s,y:r,placement:o,platform:u}=n,{mainAxis:d=!0,crossAxis:O=!1,limiter:h={fn:j=>{let{x:z,y:N}=j;return{x:z,y:N}}},...p}=ua(t,n),x={x:s,y:r},g=await u.detectOverflow(n,p),b=Tn(da(o)),y=Uf(b);let Q=x[y],w=x[b];if(d){const j=y==="y"?"top":"left",z=y==="y"?"bottom":"right",N=Q+g[j],X=Q-g[z];Q=hf(N,Q,X)}if(O){const j=b==="y"?"top":"left",z=b==="y"?"bottom":"right",N=w+g[j],X=w-g[z];w=hf(N,w,X)}const k=h.fn({...n,[y]:Q,[b]:w});return{...k,data:{x:k.x-s,y:k.y-r,enabled:{[y]:d,[b]:O}}}}}},Hw=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:s,y:r,placement:o,rects:u,middlewareData:d}=n,{offset:O=0,mainAxis:h=!0,crossAxis:p=!0}=ua(t,n),x={x:s,y:r},g=Tn(o),b=Uf(g);let y=x[b],Q=x[g];const w=ua(O,n),k=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(h){const N=b==="y"?"height":"width",X=u.reference[b]-u.floating[N]+k.mainAxis,G=u.reference[b]+u.reference[N]-k.mainAxis;y<X?y=X:y>G&&(y=G)}if(p){var j,z;const N=b==="y"?"width":"height",X=V0.has(da(o)),G=u.reference[g]-u.floating[N]+(X&&((j=d.offset)==null?void 0:j[g])||0)+(X?0:k.crossAxis),R=u.reference[g]+u.reference[N]+(X?0:((z=d.offset)==null?void 0:z[g])||0)-(X?k.crossAxis:0);Q<G?Q=G:Q>R&&(Q=R)}return{[b]:y,[g]:Q}}}},Iw=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(n){var s,r;const{placement:o,rects:u,platform:d,elements:O}=n,{apply:h=()=>{},...p}=ua(t,n),x=await d.detectOverflow(n,p),g=da(o),b=Bl(o),y=Tn(o)==="y",{width:Q,height:w}=u.floating;let k,j;g==="top"||g==="bottom"?(k=g,j=b===(await(d.isRTL==null?void 0:d.isRTL(O.floating))?"start":"end")?"left":"right"):(j=g,k=b==="end"?"top":"bottom");const z=w-x.top-x.bottom,N=Q-x.left-x.right,X=Ka(w-x[k],z),G=Ka(Q-x[j],N),R=!n.middlewareData.shift;let _=X,T=G;if((s=n.middlewareData.shift)!=null&&s.enabled.x&&(T=N),(r=n.middlewareData.shift)!=null&&r.enabled.y&&(_=z),R&&!b){const M=Bt(x.left,0),ae=Bt(x.right,0),F=Bt(x.top,0),se=Bt(x.bottom,0);y?T=Q-2*(M!==0||ae!==0?M+ae:Bt(x.left,x.right)):_=w-2*(F!==0||se!==0?F+se:Bt(x.top,x.bottom))}await h({...n,availableWidth:T,availableHeight:_});const Y=await d.getDimensions(O.floating);return Q!==Y.width||w!==Y.height?{reset:{rects:!0}}:{}}}};function Ec(){return typeof window<"u"}function Hl(t){return G0(t)?(t.nodeName||"").toLowerCase():"#document"}function Ht(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function Rn(t){var n;return(n=(G0(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function G0(t){return Ec()?t instanceof Node||t instanceof Ht(t).Node:!1}function gn(t){return Ec()?t instanceof Element||t instanceof Ht(t).Element:!1}function ha(t){return Ec()?t instanceof HTMLElement||t instanceof Ht(t).HTMLElement:!1}function Bg(t){return!Ec()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ht(t).ShadowRoot}function mi(t){const{overflow:n,overflowX:s,overflowY:r,display:o}=bn(t);return/auto|scroll|overlay|hidden|clip/.test(n+r+s)&&o!=="inline"&&o!=="contents"}function Fw(t){return/^(table|td|th)$/.test(Hl(t))}function qc(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const Kw=/transform|translate|scale|rotate|perspective|filter/,Jw=/paint|layout|strict|content/,js=t=>!!t&&t!=="none";let yO;function Lf(t){const n=gn(t)?bn(t):t;return js(n.transform)||js(n.translate)||js(n.scale)||js(n.rotate)||js(n.perspective)||!Df()&&(js(n.backdropFilter)||js(n.filter))||Kw.test(n.willChange||"")||Jw.test(n.contain||"")}function ek(t){let n=Ja(t);for(;ha(n)&&!El(n);){if(Lf(n))return n;if(qc(n))return null;n=Ja(n)}return null}function Df(){return yO==null&&(yO=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),yO}function El(t){return/^(html|body|#document)$/.test(Hl(t))}function bn(t){return Ht(t).getComputedStyle(t)}function Mc(t){return gn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ja(t){if(Hl(t)==="html")return t;const n=t.assignedSlot||t.parentNode||Bg(t)&&t.host||Rn(t);return Bg(n)?n.host:n}function L0(t){const n=Ja(t);return El(n)?t.ownerDocument?t.ownerDocument.body:t.body:ha(n)&&mi(n)?n:L0(n)}function ni(t,n,s){var r;n===void 0&&(n=[]),s===void 0&&(s=!0);const o=L0(t),u=o===((r=t.ownerDocument)==null?void 0:r.body),d=Ht(o);if(u){const O=pf(d);return n.concat(d,d.visualViewport||[],mi(o)?o:[],O&&s?ni(O):[])}else return n.concat(o,ni(o,[],s))}function pf(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function D0(t){const n=bn(t);let s=parseFloat(n.width)||0,r=parseFloat(n.height)||0;const o=ha(t),u=o?t.offsetWidth:s,d=o?t.offsetHeight:r,O=hc(s)!==u||hc(r)!==d;return O&&(s=u,r=d),{width:s,height:r,$:O}}function Wf(t){return gn(t)?t:t.contextElement}function Rl(t){const n=Wf(t);if(!ha(n))return Nn(1);const s=n.getBoundingClientRect(),{width:r,height:o,$:u}=D0(n);let d=(u?hc(s.width):s.width)/r,O=(u?hc(s.height):s.height)/o;return(!d||!Number.isFinite(d))&&(d=1),(!O||!Number.isFinite(O))&&(O=1),{x:d,y:O}}const tk=Nn(0);function W0(t){const n=Ht(t);return!Df()||!n.visualViewport?tk:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function nk(t,n,s){return n===void 0&&(n=!1),!s||n&&s!==Ht(t)?!1:n}function Ns(t,n,s,r){n===void 0&&(n=!1),s===void 0&&(s=!1);const o=t.getBoundingClientRect(),u=Wf(t);let d=Nn(1);n&&(r?gn(r)&&(d=Rl(r)):d=Rl(t));const O=nk(u,s,r)?W0(u):Nn(0);let h=(o.left+O.x)/d.x,p=(o.top+O.y)/d.y,x=o.width/d.x,g=o.height/d.y;if(u){const b=Ht(u),y=r&&gn(r)?Ht(r):r;let Q=b,w=pf(Q);for(;w&&r&&y!==Q;){const k=Rl(w),j=w.getBoundingClientRect(),z=bn(w),N=j.left+(w.clientLeft+parseFloat(z.paddingLeft))*k.x,X=j.top+(w.clientTop+parseFloat(z.paddingTop))*k.y;h*=k.x,p*=k.y,x*=k.x,g*=k.y,h+=N,p+=X,Q=Ht(w),w=pf(Q)}}return pc({width:x,height:g,x:h,y:p})}function Yc(t,n){const s=Mc(t).scrollLeft;return n?n.left+s:Ns(Rn(t)).left+s}function B0(t,n){const s=t.getBoundingClientRect(),r=s.left+n.scrollLeft-Yc(t,s),o=s.top+n.scrollTop;return{x:r,y:o}}function ak(t){let{elements:n,rect:s,offsetParent:r,strategy:o}=t;const u=o==="fixed",d=Rn(r),O=n?qc(n.floating):!1;if(r===d||O&&u)return s;let h={scrollLeft:0,scrollTop:0},p=Nn(1);const x=Nn(0),g=ha(r);if((g||!g&&!u)&&((Hl(r)!=="body"||mi(d))&&(h=Mc(r)),g)){const y=Ns(r);p=Rl(r),x.x=y.x+r.clientLeft,x.y=y.y+r.clientTop}const b=d&&!g&&!u?B0(d,h):Nn(0);return{width:s.width*p.x,height:s.height*p.y,x:s.x*p.x-h.scrollLeft*p.x+x.x+b.x,y:s.y*p.y-h.scrollTop*p.y+x.y+b.y}}function sk(t){return Array.from(t.getClientRects())}function lk(t){const n=Rn(t),s=Mc(t),r=t.ownerDocument.body,o=Bt(n.scrollWidth,n.clientWidth,r.scrollWidth,r.clientWidth),u=Bt(n.scrollHeight,n.clientHeight,r.scrollHeight,r.clientHeight);let d=-s.scrollLeft+Yc(t);const O=-s.scrollTop;return bn(r).direction==="rtl"&&(d+=Bt(n.clientWidth,r.clientWidth)-o),{width:o,height:u,x:d,y:O}}const Hg=25;function rk(t,n){const s=Ht(t),r=Rn(t),o=s.visualViewport;let u=r.clientWidth,d=r.clientHeight,O=0,h=0;if(o){u=o.width,d=o.height;const x=Df();(!x||x&&n==="fixed")&&(O=o.offsetLeft,h=o.offsetTop)}const p=Yc(r);if(p<=0){const x=r.ownerDocument,g=x.body,b=getComputedStyle(g),y=x.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,Q=Math.abs(r.clientWidth-g.clientWidth-y);Q<=Hg&&(u-=Q)}else p<=Hg&&(u+=p);return{width:u,height:d,x:O,y:h}}function ik(t,n){const s=Ns(t,!0,n==="fixed"),r=s.top+t.clientTop,o=s.left+t.clientLeft,u=ha(t)?Rl(t):Nn(1),d=t.clientWidth*u.x,O=t.clientHeight*u.y,h=o*u.x,p=r*u.y;return{width:d,height:O,x:h,y:p}}function Ig(t,n,s){let r;if(n==="viewport")r=rk(t,s);else if(n==="document")r=lk(Rn(t));else if(gn(n))r=ik(n,s);else{const o=W0(t);r={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return pc(r)}function H0(t,n){const s=Ja(t);return s===n||!gn(s)||El(s)?!1:bn(s).position==="fixed"||H0(s,n)}function ok(t,n){const s=n.get(t);if(s)return s;let r=ni(t,[],!1).filter(O=>gn(O)&&Hl(O)!=="body"),o=null;const u=bn(t).position==="fixed";let d=u?Ja(t):t;for(;gn(d)&&!El(d);){const O=bn(d),h=Lf(d);!h&&O.position==="fixed"&&(o=null),(u?!h&&!o:!h&&O.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||mi(d)&&!h&&H0(t,d))?r=r.filter(x=>x!==d):o=O,d=Ja(d)}return n.set(t,r),r}function ck(t){let{element:n,boundary:s,rootBoundary:r,strategy:o}=t;const d=[...s==="clippingAncestors"?qc(n)?[]:ok(n,this._c):[].concat(s),r],O=Ig(n,d[0],o);let h=O.top,p=O.right,x=O.bottom,g=O.left;for(let b=1;b<d.length;b++){const y=Ig(n,d[b],o);h=Bt(y.top,h),p=Ka(y.right,p),x=Ka(y.bottom,x),g=Bt(y.left,g)}return{width:p-g,height:x-h,x:g,y:h}}function uk(t){const{width:n,height:s}=D0(t);return{width:n,height:s}}function dk(t,n,s){const r=ha(n),o=Rn(n),u=s==="fixed",d=Ns(t,!0,u,n);let O={scrollLeft:0,scrollTop:0};const h=Nn(0);function p(){h.x=Yc(o)}if(r||!r&&!u)if((Hl(n)!=="body"||mi(o))&&(O=Mc(n)),r){const y=Ns(n,!0,u,n);h.x=y.x+n.clientLeft,h.y=y.y+n.clientTop}else o&&p();u&&!r&&o&&p();const x=o&&!r&&!u?B0(o,O):Nn(0),g=d.left+O.scrollLeft-h.x-x.x,b=d.top+O.scrollTop-h.y-x.y;return{x:g,y:b,width:d.width,height:d.height}}function SO(t){return bn(t).position==="static"}function Fg(t,n){if(!ha(t)||bn(t).position==="fixed")return null;if(n)return n(t);let s=t.offsetParent;return Rn(t)===s&&(s=s.ownerDocument.body),s}function I0(t,n){const s=Ht(t);if(qc(t))return s;if(!ha(t)){let o=Ja(t);for(;o&&!El(o);){if(gn(o)&&!SO(o))return o;o=Ja(o)}return s}let r=Fg(t,n);for(;r&&Fw(r)&&SO(r);)r=Fg(r,n);return r&&El(r)&&SO(r)&&!Lf(r)?s:r||ek(t)||s}const Ok=async function(t){const n=this.getOffsetParent||I0,s=this.getDimensions,r=await s(t.floating);return{reference:dk(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function fk(t){return bn(t).direction==="rtl"}const hk={convertOffsetParentRelativeRectToViewportRelativeRect:ak,getDocumentElement:Rn,getClippingRect:ck,getOffsetParent:I0,getElementRects:Ok,getClientRects:sk,getDimensions:uk,getScale:Rl,isElement:gn,isRTL:fk};function F0(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function mk(t,n){let s=null,r;const o=Rn(t);function u(){var O;clearTimeout(r),(O=s)==null||O.disconnect(),s=null}function d(O,h){O===void 0&&(O=!1),h===void 0&&(h=1),u();const p=t.getBoundingClientRect(),{left:x,top:g,width:b,height:y}=p;if(O||n(),!b||!y)return;const Q=Vo(g),w=Vo(o.clientWidth-(x+b)),k=Vo(o.clientHeight-(g+y)),j=Vo(x),N={rootMargin:-Q+"px "+-w+"px "+-k+"px "+-j+"px",threshold:Bt(0,Ka(1,h))||1};let X=!0;function G(R){const _=R[0].intersectionRatio;if(_!==h){if(!X)return d();_?d(!1,_):r=setTimeout(()=>{d(!1,1e-7)},1e3)}_===1&&!F0(p,t.getBoundingClientRect())&&d(),X=!1}try{s=new IntersectionObserver(G,{...N,root:o.ownerDocument})}catch{s=new IntersectionObserver(G,N)}s.observe(t)}return d(!0),u}function pk(t,n,s,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:O=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,p=Wf(t),x=o||u?[...p?ni(p):[],...n?ni(n):[]]:[];x.forEach(j=>{o&&j.addEventListener("scroll",s,{passive:!0}),u&&j.addEventListener("resize",s)});const g=p&&O?mk(p,s):null;let b=-1,y=null;d&&(y=new ResizeObserver(j=>{let[z]=j;z&&z.target===p&&y&&n&&(y.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var N;(N=y)==null||N.observe(n)})),s()}),p&&!h&&y.observe(p),n&&y.observe(n));let Q,w=h?Ns(t):null;h&&k();function k(){const j=Ns(t);w&&!F0(w,j)&&s(),w=j,Q=requestAnimationFrame(k)}return s(),()=>{var j;x.forEach(z=>{o&&z.removeEventListener("scroll",s),u&&z.removeEventListener("resize",s)}),g==null||g(),(j=y)==null||j.disconnect(),y=null,h&&cancelAnimationFrame(Q)}}const xk=Ww,gk=Bw,bk=Gw,vk=Iw,yk=Lw,Kg=Vw,Sk=Hw,Qk=(t,n,s)=>{const r=new Map,o={platform:hk,...s},u={...o.platform,_c:r};return Uw(t,n,{...o,platform:u})};var jk=typeof document<"u",wk=function(){},lc=jk?v.useLayoutEffect:wk;function xc(t,n){if(t===n)return!0;if(typeof t!=typeof n)return!1;if(typeof t=="function"&&t.toString()===n.toString())return!0;let s,r,o;if(t&&n&&typeof t=="object"){if(Array.isArray(t)){if(s=t.length,s!==n.length)return!1;for(r=s;r--!==0;)if(!xc(t[r],n[r]))return!1;return!0}if(o=Object.keys(t),s=o.length,s!==Object.keys(n).length)return!1;for(r=s;r--!==0;)if(!{}.hasOwnProperty.call(n,o[r]))return!1;for(r=s;r--!==0;){const u=o[r];if(!(u==="_owner"&&t.$$typeof)&&!xc(t[u],n[u]))return!1}return!0}return t!==t&&n!==n}function K0(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Jg(t,n){const s=K0(t);return Math.round(n*s)/s}function QO(t){const n=v.useRef(t);return lc(()=>{n.current=t}),n}function kk(t){t===void 0&&(t={});const{placement:n="bottom",strategy:s="absolute",middleware:r=[],platform:o,elements:{reference:u,floating:d}={},transform:O=!0,whileElementsMounted:h,open:p}=t,[x,g]=v.useState({x:0,y:0,strategy:s,placement:n,middlewareData:{},isPositioned:!1}),[b,y]=v.useState(r);xc(b,r)||y(r);const[Q,w]=v.useState(null),[k,j]=v.useState(null),z=v.useCallback(E=>{E!==R.current&&(R.current=E,w(E))},[]),N=v.useCallback(E=>{E!==_.current&&(_.current=E,j(E))},[]),X=u||Q,G=d||k,R=v.useRef(null),_=v.useRef(null),T=v.useRef(x),Y=h!=null,M=QO(h),ae=QO(o),F=QO(p),se=v.useCallback(()=>{if(!R.current||!_.current)return;const E={placement:n,strategy:s,middleware:b};ae.current&&(E.platform=ae.current),Qk(R.current,_.current,E).then(ce=>{const ee={...ce,isPositioned:F.current!==!1};ie.current&&!xc(T.current,ee)&&(T.current=ee,P0.flushSync(()=>{g(ee)}))})},[b,n,s,ae,F]);lc(()=>{p===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,g(E=>({...E,isPositioned:!1})))},[p]);const ie=v.useRef(!1);lc(()=>(ie.current=!0,()=>{ie.current=!1}),[]),lc(()=>{if(X&&(R.current=X),G&&(_.current=G),X&&G){if(M.current)return M.current(X,G,se);se()}},[X,G,se,M,Y]);const W=v.useMemo(()=>({reference:R,floating:_,setReference:z,setFloating:N}),[z,N]),P=v.useMemo(()=>({reference:X,floating:G}),[X,G]),B=v.useMemo(()=>{const E={position:s,left:0,top:0};if(!P.floating)return E;const ce=Jg(P.floating,x.x),ee=Jg(P.floating,x.y);return O?{...E,transform:"translate("+ce+"px, "+ee+"px)",...K0(P.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:ce,top:ee}},[s,O,P.floating,x.x,x.y]);return v.useMemo(()=>({...x,update:se,refs:W,elements:P,floatingStyles:B}),[x,se,W,P,B])}const $k=t=>{function n(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:t,fn(s){const{element:r,padding:o}=typeof t=="function"?t(s):t;return r&&n(r)?r.current!=null?Kg({element:r.current,padding:o}).fn(s):{}:r?Kg({element:r,padding:o}).fn(s):{}}}},Tk=(t,n)=>{const s=xk(t);return{name:s.name,fn:s.fn,options:[t,n]}},Nk=(t,n)=>{const s=gk(t);return{name:s.name,fn:s.fn,options:[t,n]}},Pk=(t,n)=>({fn:Sk(t).fn,options:[t,n]}),zk=(t,n)=>{const s=bk(t);return{name:s.name,fn:s.fn,options:[t,n]}},Rk=(t,n)=>{const s=vk(t);return{name:s.name,fn:s.fn,options:[t,n]}},Ck=(t,n)=>{const s=yk(t);return{name:s.name,fn:s.fn,options:[t,n]}},_k=(t,n)=>{const s=$k(t);return{name:s.name,fn:s.fn,options:[t,n]}};var Xk="Arrow",J0=v.forwardRef((t,n)=>{const{children:s,width:r=10,height:o=5,...u}=t;return l.jsx(Be.svg,{...u,ref:n,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?s:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});J0.displayName=Xk;var Ak=J0;function Zk(t){const[n,s]=v.useState(void 0);return ca(()=>{if(t){s({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const u=o[0];let d,O;if("borderBoxSize"in u){const h=u.borderBoxSize,p=Array.isArray(h)?h[0]:h;d=p.inlineSize,O=p.blockSize}else d=t.offsetWidth,O=t.offsetHeight;s({width:d,height:O})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else s(void 0)},[t]),n}var Bf="Popper",[eb,tb]=As(Bf),[Ek,nb]=eb(Bf),ab=t=>{const{__scopePopper:n,children:s}=t,[r,o]=v.useState(null);return l.jsx(Ek,{scope:n,anchor:r,onAnchorChange:o,children:s})};ab.displayName=Bf;var sb="PopperAnchor",lb=v.forwardRef((t,n)=>{const{__scopePopper:s,virtualRef:r,...o}=t,u=nb(sb,s),d=v.useRef(null),O=it(n,d),h=v.useRef(null);return v.useEffect(()=>{const p=h.current;h.current=(r==null?void 0:r.current)||d.current,p!==h.current&&u.onAnchorChange(h.current)}),r?null:l.jsx(Be.div,{...o,ref:O})});lb.displayName=sb;var Hf="PopperContent",[qk,Mk]=eb(Hf),rb=v.forwardRef((t,n)=>{var _e,Ot,Ze,He,bt,dn;const{__scopePopper:s,side:r="bottom",sideOffset:o=0,align:u="center",alignOffset:d=0,arrowPadding:O=0,avoidCollisions:h=!0,collisionBoundary:p=[],collisionPadding:x=0,sticky:g="partial",hideWhenDetached:b=!1,updatePositionStrategy:y="optimized",onPlaced:Q,...w}=t,k=nb(Hf,s),[j,z]=v.useState(null),N=it(n,It=>z(It)),[X,G]=v.useState(null),R=Zk(X),_=(R==null?void 0:R.width)??0,T=(R==null?void 0:R.height)??0,Y=r+(u!=="center"?"-"+u:""),M=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},ae=Array.isArray(p)?p:[p],F=ae.length>0,se={padding:M,boundary:ae.filter(Uk),altBoundary:F},{refs:ie,floatingStyles:W,placement:P,isPositioned:B,middlewareData:E}=kk({strategy:"fixed",placement:Y,whileElementsMounted:(...It)=>pk(...It,{animationFrame:y==="always"}),elements:{reference:k.anchor},middleware:[Tk({mainAxis:o+T,alignmentAxis:d}),h&&Nk({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?Pk():void 0,...se}),h&&zk({...se}),Rk({...se,apply:({elements:It,rects:yt,availableWidth:Fl,availableHeight:Kl})=>{const{width:au,height:ji}=yt.reference,pa=It.floating.style;pa.setProperty("--radix-popper-available-width",`${Fl}px`),pa.setProperty("--radix-popper-available-height",`${Kl}px`),pa.setProperty("--radix-popper-anchor-width",`${au}px`),pa.setProperty("--radix-popper-anchor-height",`${ji}px`)}}),X&&_k({element:X,padding:O}),Vk({arrowWidth:_,arrowHeight:T}),b&&Ck({strategy:"referenceHidden",...se})]}),[ce,ee]=cb(P),ve=Rt(Q);ca(()=>{B&&(ve==null||ve())},[B,ve]);const Se=(_e=E.arrow)==null?void 0:_e.x,ye=(Ot=E.arrow)==null?void 0:Ot.y,Ce=((Ze=E.arrow)==null?void 0:Ze.centerOffset)!==0,[H,ue]=v.useState();return ca(()=>{j&&ue(window.getComputedStyle(j).zIndex)},[j]),l.jsx("div",{ref:ie.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:B?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:H,"--radix-popper-transform-origin":[(He=E.transformOrigin)==null?void 0:He.x,(bt=E.transformOrigin)==null?void 0:bt.y].join(" "),...((dn=E.hide)==null?void 0:dn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:l.jsx(qk,{scope:s,placedSide:ce,onArrowChange:G,arrowX:Se,arrowY:ye,shouldHideArrow:Ce,children:l.jsx(Be.div,{"data-side":ce,"data-align":ee,...w,ref:N,style:{...w.style,animation:B?void 0:"none"}})})})});rb.displayName=Hf;var ib="PopperArrow",Yk={top:"bottom",right:"left",bottom:"top",left:"right"},ob=v.forwardRef(function(n,s){const{__scopePopper:r,...o}=n,u=Mk(ib,r),d=Yk[u.placedSide];return l.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[d]: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:l.jsx(Ak,{...o,ref:s,style:{...o.style,display:"block"}})})});ob.displayName=ib;function Uk(t){return t!==null}var Vk=t=>({name:"transformOrigin",options:t,fn(n){var k,j,z;const{placement:s,rects:r,middlewareData:o}=n,d=((k=o.arrow)==null?void 0:k.centerOffset)!==0,O=d?0:t.arrowWidth,h=d?0:t.arrowHeight,[p,x]=cb(s),g={start:"0%",center:"50%",end:"100%"}[x],b=(((j=o.arrow)==null?void 0:j.x)??0)+O/2,y=(((z=o.arrow)==null?void 0:z.y)??0)+h/2;let Q="",w="";return p==="bottom"?(Q=d?g:`${b}px`,w=`${-h}px`):p==="top"?(Q=d?g:`${b}px`,w=`${r.floating.height+h}px`):p==="right"?(Q=`${-h}px`,w=d?g:`${y}px`):p==="left"&&(Q=`${r.floating.width+h}px`,w=d?g:`${y}px`),{data:{x:Q,y:w}}}});function cb(t){const[n,s="center"]=t.split("-");return[n,s]}var Gk=ab,Lk=lb,Dk=rb,Wk=ob,Bk="Portal",If=v.forwardRef((t,n)=>{var O;const{container:s,...r}=t,[o,u]=v.useState(!1);ca(()=>u(!0),[]);const d=s||o&&((O=globalThis==null?void 0:globalThis.document)==null?void 0:O.body);return d?Qj.createPortal(l.jsx(Be.div,{...r,ref:n}),d):null});If.displayName=Bk;function Hk(t,n){return v.useReducer((s,r)=>n[s][r]??s,t)}var yn=t=>{const{present:n,children:s}=t,r=Ik(n),o=typeof s=="function"?s({present:r.isPresent}):v.Children.only(s),u=it(r.ref,Fk(o));return typeof s=="function"||r.isPresent?v.cloneElement(o,{ref:u}):null};yn.displayName="Presence";function Ik(t){const[n,s]=v.useState(),r=v.useRef(null),o=v.useRef(t),u=v.useRef("none"),d=t?"mounted":"unmounted",[O,h]=Hk(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const p=Go(r.current);u.current=O==="mounted"?p:"none"},[O]),ca(()=>{const p=r.current,x=o.current;if(x!==t){const b=u.current,y=Go(p);t?h("MOUNT"):y==="none"||(p==null?void 0:p.display)==="none"?h("UNMOUNT"):h(x&&b!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,h]),ca(()=>{if(n){let p;const x=n.ownerDocument.defaultView??window,g=y=>{const w=Go(r.current).includes(CSS.escape(y.animationName));if(y.target===n&&w&&(h("ANIMATION_END"),!o.current)){const k=n.style.animationFillMode;n.style.animationFillMode="forwards",p=x.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=k)})}},b=y=>{y.target===n&&(u.current=Go(r.current))};return n.addEventListener("animationstart",b),n.addEventListener("animationcancel",g),n.addEventListener("animationend",g),()=>{x.clearTimeout(p),n.removeEventListener("animationstart",b),n.removeEventListener("animationcancel",g),n.removeEventListener("animationend",g)}}else h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(O),ref:v.useCallback(p=>{r.current=p?getComputedStyle(p):null,s(p)},[])}}function Go(t){return(t==null?void 0:t.animationName)||"none"}function Fk(t){var r,o;let n=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var Kk=N0[" useInsertionEffect ".trim().toString()]||ca;function Uc({prop:t,defaultProp:n,onChange:s=()=>{},caller:r}){const[o,u,d]=Jk({defaultProp:n,onChange:s}),O=t!==void 0,h=O?t:o;{const x=v.useRef(t!==void 0);v.useEffect(()=>{const g=x.current;g!==O&&console.warn(`${r} is changing from ${g?"controlled":"uncontrolled"} to ${O?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=O},[O,r])}const p=v.useCallback(x=>{var g;if(O){const b=e5(x)?x(t):x;b!==t&&((g=d.current)==null||g.call(d,b))}else u(x)},[O,t,u,d]);return[h,p]}function Jk({defaultProp:t,onChange:n}){const[s,r]=v.useState(t),o=v.useRef(s),u=v.useRef(n);return Kk(()=>{u.current=n},[n]),v.useEffect(()=>{var d;o.current!==s&&((d=u.current)==null||d.call(u,s),o.current=s)},[s,o]),[s,r,u]}function e5(t){return typeof t=="function"}var t5=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"}),n5="VisuallyHidden",ub=v.forwardRef((t,n)=>l.jsx(Be.span,{...t,ref:n,style:{...t5,...t.style}}));ub.displayName=n5;var a5=ub,[Vc]=As("Tooltip",[tb]),Gc=tb(),db="TooltipProvider",s5=700,xf="tooltip.open",[l5,Ff]=Vc(db),Ob=t=>{const{__scopeTooltip:n,delayDuration:s=s5,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:u}=t,d=v.useRef(!0),O=v.useRef(!1),h=v.useRef(0);return v.useEffect(()=>{const p=h.current;return()=>window.clearTimeout(p)},[]),l.jsx(l5,{scope:n,isOpenDelayedRef:d,delayDuration:s,onOpen:v.useCallback(()=>{window.clearTimeout(h.current),d.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>d.current=!0,r)},[r]),isPointerInTransitRef:O,onPointerInTransitChange:v.useCallback(p=>{O.current=p},[]),disableHoverableContent:o,children:u})};Ob.displayName=db;var ai="Tooltip",[r5,pi]=Vc(ai),fb=t=>{const{__scopeTooltip:n,children:s,open:r,defaultOpen:o,onOpenChange:u,disableHoverableContent:d,delayDuration:O}=t,h=Ff(ai,t.__scopeTooltip),p=Gc(n),[x,g]=v.useState(null),b=zl(),y=v.useRef(0),Q=d??h.disableHoverableContent,w=O??h.delayDuration,k=v.useRef(!1),[j,z]=Uc({prop:r,defaultProp:o??!1,onChange:_=>{_?(h.onOpen(),document.dispatchEvent(new CustomEvent(xf))):h.onClose(),u==null||u(_)},caller:ai}),N=v.useMemo(()=>j?k.current?"delayed-open":"instant-open":"closed",[j]),X=v.useCallback(()=>{window.clearTimeout(y.current),y.current=0,k.current=!1,z(!0)},[z]),G=v.useCallback(()=>{window.clearTimeout(y.current),y.current=0,z(!1)},[z]),R=v.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{k.current=!0,z(!0),y.current=0},w)},[w,z]);return v.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),l.jsx(Gk,{...p,children:l.jsx(r5,{scope:n,contentId:b,open:j,stateAttribute:N,trigger:x,onTriggerChange:g,onTriggerEnter:v.useCallback(()=>{h.isOpenDelayedRef.current?R():X()},[h.isOpenDelayedRef,R,X]),onTriggerLeave:v.useCallback(()=>{Q?G():(window.clearTimeout(y.current),y.current=0)},[G,Q]),onOpen:X,onClose:G,disableHoverableContent:Q,children:s})})};fb.displayName=ai;var gf="TooltipTrigger",hb=v.forwardRef((t,n)=>{const{__scopeTooltip:s,...r}=t,o=pi(gf,s),u=Ff(gf,s),d=Gc(s),O=v.useRef(null),h=it(n,O,o.onTriggerChange),p=v.useRef(!1),x=v.useRef(!1),g=v.useCallback(()=>p.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),l.jsx(Lk,{asChild:!0,...d,children:l.jsx(Be.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:h,onPointerMove:qe(t.onPointerMove,b=>{b.pointerType!=="touch"&&!x.current&&!u.isPointerInTransitRef.current&&(o.onTriggerEnter(),x.current=!0)}),onPointerLeave:qe(t.onPointerLeave,()=>{o.onTriggerLeave(),x.current=!1}),onPointerDown:qe(t.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:qe(t.onFocus,()=>{p.current||o.onOpen()}),onBlur:qe(t.onBlur,o.onClose),onClick:qe(t.onClick,o.onClose)})})});hb.displayName=gf;var Kf="TooltipPortal",[i5,o5]=Vc(Kf,{forceMount:void 0}),mb=t=>{const{__scopeTooltip:n,forceMount:s,children:r,container:o}=t,u=pi(Kf,n);return l.jsx(i5,{scope:n,forceMount:s,children:l.jsx(yn,{present:s||u.open,children:l.jsx(If,{asChild:!0,container:o,children:r})})})};mb.displayName=Kf;var ql="TooltipContent",pb=v.forwardRef((t,n)=>{const s=o5(ql,t.__scopeTooltip),{forceMount:r=s.forceMount,side:o="top",...u}=t,d=pi(ql,t.__scopeTooltip);return l.jsx(yn,{present:r||d.open,children:d.disableHoverableContent?l.jsx(xb,{side:o,...u,ref:n}):l.jsx(c5,{side:o,...u,ref:n})})}),c5=v.forwardRef((t,n)=>{const s=pi(ql,t.__scopeTooltip),r=Ff(ql,t.__scopeTooltip),o=v.useRef(null),u=it(n,o),[d,O]=v.useState(null),{trigger:h,onClose:p}=s,x=o.current,{onPointerInTransitChange:g}=r,b=v.useCallback(()=>{O(null),g(!1)},[g]),y=v.useCallback((Q,w)=>{const k=Q.currentTarget,j={x:Q.clientX,y:Q.clientY},z=f5(j,k.getBoundingClientRect()),N=h5(j,z),X=m5(w.getBoundingClientRect()),G=x5([...N,...X]);O(G),g(!0)},[g]);return v.useEffect(()=>()=>b(),[b]),v.useEffect(()=>{if(h&&x){const Q=k=>y(k,x),w=k=>y(k,h);return h.addEventListener("pointerleave",Q),x.addEventListener("pointerleave",w),()=>{h.removeEventListener("pointerleave",Q),x.removeEventListener("pointerleave",w)}}},[h,x,y,b]),v.useEffect(()=>{if(d){const Q=w=>{const k=w.target,j={x:w.clientX,y:w.clientY},z=(h==null?void 0:h.contains(k))||(x==null?void 0:x.contains(k)),N=!p5(j,d);z?b():N&&(b(),p())};return document.addEventListener("pointermove",Q),()=>document.removeEventListener("pointermove",Q)}},[h,x,d,p,b]),l.jsx(xb,{...t,ref:u})}),[u5,d5]=Vc(ai,{isInside:!1}),O5=mw("TooltipContent"),xb=v.forwardRef((t,n)=>{const{__scopeTooltip:s,children:r,"aria-label":o,onEscapeKeyDown:u,onPointerDownOutside:d,...O}=t,h=pi(ql,s),p=Gc(s),{onClose:x}=h;return v.useEffect(()=>(document.addEventListener(xf,x),()=>document.removeEventListener(xf,x)),[x]),v.useEffect(()=>{if(h.trigger){const g=b=>{const y=b.target;y!=null&&y.contains(h.trigger)&&x()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[h.trigger,x]),l.jsx(Yf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:g=>g.preventDefault(),onDismiss:x,children:l.jsxs(Dk,{"data-state":h.stateAttribute,...p,...O,ref:n,style:{...O.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsx(O5,{children:r}),l.jsx(u5,{scope:s,isInside:!0,children:l.jsx(a5,{id:h.contentId,role:"tooltip",children:o||r})})]})})});pb.displayName=ql;var gb="TooltipArrow",bb=v.forwardRef((t,n)=>{const{__scopeTooltip:s,...r}=t,o=Gc(s);return d5(gb,s).isInside?null:l.jsx(Wk,{...o,...r,ref:n})});bb.displayName=gb;function f5(t,n){const s=Math.abs(n.top-t.y),r=Math.abs(n.bottom-t.y),o=Math.abs(n.right-t.x),u=Math.abs(n.left-t.x);switch(Math.min(s,r,o,u)){case u:return"left";case o:return"right";case s:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function h5(t,n,s=5){const r=[];switch(n){case"top":r.push({x:t.x-s,y:t.y+s},{x:t.x+s,y:t.y+s});break;case"bottom":r.push({x:t.x-s,y:t.y-s},{x:t.x+s,y:t.y-s});break;case"left":r.push({x:t.x+s,y:t.y-s},{x:t.x+s,y:t.y+s});break;case"right":r.push({x:t.x-s,y:t.y-s},{x:t.x-s,y:t.y+s});break}return r}function m5(t){const{top:n,right:s,bottom:r,left:o}=t;return[{x:o,y:n},{x:s,y:n},{x:s,y:r},{x:o,y:r}]}function p5(t,n){const{x:s,y:r}=t;let o=!1;for(let u=0,d=n.length-1;u<n.length;d=u++){const O=n[u],h=n[d],p=O.x,x=O.y,g=h.x,b=h.y;x>r!=b>r&&s<(g-p)*(r-x)/(b-x)+p&&(o=!o)}return o}function x5(t){const n=t.slice();return n.sort((s,r)=>s.x<r.x?-1:s.x>r.x?1:s.y<r.y?-1:s.y>r.y?1:0),g5(n)}function g5(t){if(t.length<=1)return t.slice();const n=[];for(let r=0;r<t.length;r++){const o=t[r];for(;n.length>=2;){const u=n[n.length-1],d=n[n.length-2];if((u.x-d.x)*(o.y-d.y)>=(u.y-d.y)*(o.x-d.x))n.pop();else break}n.push(o)}n.pop();const s=[];for(let r=t.length-1;r>=0;r--){const o=t[r];for(;s.length>=2;){const u=s[s.length-1],d=s[s.length-2];if((u.x-d.x)*(o.y-d.y)>=(u.y-d.y)*(o.x-d.x))s.pop();else break}s.push(o)}return s.pop(),n.length===1&&s.length===1&&n[0].x===s[0].x&&n[0].y===s[0].y?n:n.concat(s)}var b5=Ob,v5=fb,y5=hb,S5=mb,Q5=pb,j5=bb;function vb(t){var n,s,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(s=vb(t[n]))&&(r&&(r+=" "),r+=s)}else for(s in t)t[s]&&(r&&(r+=" "),r+=s);return r}function w5(){for(var t,n,s=0,r="",o=arguments.length;s<o;s++)(t=arguments[s])&&(n=vb(t))&&(r&&(r+=" "),r+=n);return r}const k5=(t,n)=>{const s=new Array(t.length+n.length);for(let r=0;r<t.length;r++)s[r]=t[r];for(let r=0;r<n.length;r++)s[t.length+r]=n[r];return s},$5=(t,n)=>({classGroupId:t,validator:n}),yb=(t=new Map,n=null,s)=>({nextPart:t,validators:n,classGroupId:s}),gc="-",e1=[],T5="arbitrary..",N5=t=>{const n=z5(t),{conflictingClassGroups:s,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return P5(d);const O=d.split(gc),h=O[0]===""&&O.length>1?1:0;return Sb(O,h,n)},getConflictingClassGroupIds:(d,O)=>{if(O){const h=r[d],p=s[d];return h?p?k5(p,h):h:p||e1}return s[d]||e1}}},Sb=(t,n,s)=>{if(t.length-n===0)return s.classGroupId;const o=t[n],u=s.nextPart.get(o);if(u){const p=Sb(t,n+1,u);if(p)return p}const d=s.validators;if(d===null)return;const O=n===0?t.join(gc):t.slice(n).join(gc),h=d.length;for(let p=0;p<h;p++){const x=d[p];if(x.validator(O))return x.classGroupId}},P5=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=t.slice(1,-1),s=n.indexOf(":"),r=n.slice(0,s);return r?T5+r:void 0})(),z5=t=>{const{theme:n,classGroups:s}=t;return R5(s,n)},R5=(t,n)=>{const s=yb();for(const r in t){const o=t[r];Jf(o,s,r,n)}return s},Jf=(t,n,s,r)=>{const o=t.length;for(let u=0;u<o;u++){const d=t[u];C5(d,n,s,r)}},C5=(t,n,s,r)=>{if(typeof t=="string"){_5(t,n,s);return}if(typeof t=="function"){X5(t,n,s,r);return}A5(t,n,s,r)},_5=(t,n,s)=>{const r=t===""?n:Qb(n,t);r.classGroupId=s},X5=(t,n,s,r)=>{if(Z5(t)){Jf(t(r),n,s,r);return}n.validators===null&&(n.validators=[]),n.validators.push($5(s,t))},A5=(t,n,s,r)=>{const o=Object.entries(t),u=o.length;for(let d=0;d<u;d++){const[O,h]=o[d];Jf(h,Qb(n,O),s,r)}},Qb=(t,n)=>{let s=t;const r=n.split(gc),o=r.length;for(let u=0;u<o;u++){const d=r[u];let O=s.nextPart.get(d);O||(O=yb(),s.nextPart.set(d,O)),s=O}return s},Z5=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,E5=t=>{if(t<1)return{get:()=>{},set:()=>{}};let n=0,s=Object.create(null),r=Object.create(null);const o=(u,d)=>{s[u]=d,n++,n>t&&(n=0,r=s,s=Object.create(null))};return{get(u){let d=s[u];if(d!==void 0)return d;if((d=r[u])!==void 0)return o(u,d),d},set(u,d){u in s?s[u]=d:o(u,d)}}},bf="!",t1=":",q5=[],n1=(t,n,s,r,o)=>({modifiers:t,hasImportantModifier:n,baseClassName:s,maybePostfixModifierPosition:r,isExternal:o}),M5=t=>{const{prefix:n,experimentalParseClassName:s}=t;let r=o=>{const u=[];let d=0,O=0,h=0,p;const x=o.length;for(let w=0;w<x;w++){const k=o[w];if(d===0&&O===0){if(k===t1){u.push(o.slice(h,w)),h=w+1;continue}if(k==="/"){p=w;continue}}k==="["?d++:k==="]"?d--:k==="("?O++:k===")"&&O--}const g=u.length===0?o:o.slice(h);let b=g,y=!1;g.endsWith(bf)?(b=g.slice(0,-1),y=!0):g.startsWith(bf)&&(b=g.slice(1),y=!0);const Q=p&&p>h?p-h:void 0;return n1(u,y,b,Q)};if(n){const o=n+t1,u=r;r=d=>d.startsWith(o)?u(d.slice(o.length)):n1(q5,!1,d,void 0,!0)}if(s){const o=r;r=u=>s({className:u,parseClassName:o})}return r},Y5=t=>{const n=new Map;return t.orderSensitiveModifiers.forEach((s,r)=>{n.set(s,1e6+r)}),s=>{const r=[];let o=[];for(let u=0;u<s.length;u++){const d=s[u],O=d[0]==="[",h=n.has(d);O||h?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(d)):o.push(d)}return o.length>0&&(o.sort(),r.push(...o)),r}},U5=t=>({cache:E5(t.cacheSize),parseClassName:M5(t),sortModifiers:Y5(t),...N5(t)}),V5=/\s+/,G5=(t,n)=>{const{parseClassName:s,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:u}=n,d=[],O=t.trim().split(V5);let h="";for(let p=O.length-1;p>=0;p-=1){const x=O[p],{isExternal:g,modifiers:b,hasImportantModifier:y,baseClassName:Q,maybePostfixModifierPosition:w}=s(x);if(g){h=x+(h.length>0?" "+h:h);continue}let k=!!w,j=r(k?Q.substring(0,w):Q);if(!j){if(!k){h=x+(h.length>0?" "+h:h);continue}if(j=r(Q),!j){h=x+(h.length>0?" "+h:h);continue}k=!1}const z=b.length===0?"":b.length===1?b[0]:u(b).join(":"),N=y?z+bf:z,X=N+j;if(d.indexOf(X)>-1)continue;d.push(X);const G=o(j,k);for(let R=0;R<G.length;++R){const _=G[R];d.push(N+_)}h=x+(h.length>0?" "+h:h)}return h},L5=(...t)=>{let n=0,s,r,o="";for(;n<t.length;)(s=t[n++])&&(r=jb(s))&&(o&&(o+=" "),o+=r);return o},jb=t=>{if(typeof t=="string")return t;let n,s="";for(let r=0;r<t.length;r++)t[r]&&(n=jb(t[r]))&&(s&&(s+=" "),s+=n);return s},D5=(t,...n)=>{let s,r,o,u;const d=h=>{const p=n.reduce((x,g)=>g(x),t());return s=U5(p),r=s.cache.get,o=s.cache.set,u=O,O(h)},O=h=>{const p=r(h);if(p)return p;const x=G5(h,s);return o(h,x),x};return u=d,(...h)=>u(L5(...h))},W5=[],ct=t=>{const n=s=>s[t]||W5;return n.isThemeGetter=!0,n},wb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,kb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,B5=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,H5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,I5=/\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$/,F5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,K5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,J5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ua=t=>B5.test(t),we=t=>!!t&&!Number.isNaN(Number(t)),Va=t=>!!t&&Number.isInteger(Number(t)),jO=t=>t.endsWith("%")&&we(t.slice(0,-1)),ta=t=>H5.test(t),$b=()=>!0,e$=t=>I5.test(t)&&!F5.test(t),eh=()=>!1,t$=t=>K5.test(t),n$=t=>J5.test(t),a$=t=>!Oe(t)&&!fe(t),s$=t=>ns(t,Pb,eh),Oe=t=>wb.test(t),ws=t=>ns(t,zb,e$),a1=t=>ns(t,O$,we),l$=t=>ns(t,Cb,$b),r$=t=>ns(t,Rb,eh),s1=t=>ns(t,Tb,eh),i$=t=>ns(t,Nb,n$),Lo=t=>ns(t,_b,t$),fe=t=>kb.test(t),Wr=t=>Zs(t,zb),o$=t=>Zs(t,Rb),l1=t=>Zs(t,Tb),c$=t=>Zs(t,Pb),u$=t=>Zs(t,Nb),Do=t=>Zs(t,_b,!0),d$=t=>Zs(t,Cb,!0),ns=(t,n,s)=>{const r=wb.exec(t);return r?r[1]?n(r[1]):s(r[2]):!1},Zs=(t,n,s=!1)=>{const r=kb.exec(t);return r?r[1]?n(r[1]):s:!1},Tb=t=>t==="position"||t==="percentage",Nb=t=>t==="image"||t==="url",Pb=t=>t==="length"||t==="size"||t==="bg-size",zb=t=>t==="length",O$=t=>t==="number",Rb=t=>t==="family-name",Cb=t=>t==="number"||t==="weight",_b=t=>t==="shadow",f$=()=>{const t=ct("color"),n=ct("font"),s=ct("text"),r=ct("font-weight"),o=ct("tracking"),u=ct("leading"),d=ct("breakpoint"),O=ct("container"),h=ct("spacing"),p=ct("radius"),x=ct("shadow"),g=ct("inset-shadow"),b=ct("text-shadow"),y=ct("drop-shadow"),Q=ct("blur"),w=ct("perspective"),k=ct("aspect"),j=ct("ease"),z=ct("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...X(),fe,Oe],R=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],T=()=>[fe,Oe,h],Y=()=>[Ua,"full","auto",...T()],M=()=>[Va,"none","subgrid",fe,Oe],ae=()=>["auto",{span:["full",Va,fe,Oe]},Va,fe,Oe],F=()=>[Va,"auto",fe,Oe],se=()=>["auto","min","max","fr",fe,Oe],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...T()],B=()=>[Ua,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],E=()=>[Ua,"screen","full","dvw","lvw","svw","min","max","fit",...T()],ce=()=>[Ua,"screen","full","lh","dvh","lvh","svh","min","max","fit",...T()],ee=()=>[t,fe,Oe],ve=()=>[...X(),l1,s1,{position:[fe,Oe]}],Se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ye=()=>["auto","cover","contain",c$,s$,{size:[fe,Oe]}],Ce=()=>[jO,Wr,ws],H=()=>["","none","full",p,fe,Oe],ue=()=>["",we,Wr,ws],_e=()=>["solid","dashed","dotted","double"],Ot=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ze=()=>[we,jO,l1,s1],He=()=>["","none",Q,fe,Oe],bt=()=>["none",we,fe,Oe],dn=()=>["none",we,fe,Oe],It=()=>[we,fe,Oe],yt=()=>[Ua,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ta],breakpoint:[ta],color:[$b],container:[ta],"drop-shadow":[ta],ease:["in","out","in-out"],font:[a$],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ta],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ta],shadow:[ta],spacing:["px",we],text:[ta],"text-shadow":[ta],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ua,Oe,fe,k]}],container:["container"],columns:[{columns:[we,Oe,fe,O]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"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:G()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{"inset-s":Y(),start:Y()}],end:[{"inset-e":Y(),end:Y()}],"inset-bs":[{"inset-bs":Y()}],"inset-be":[{"inset-be":Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[Va,"auto",fe,Oe]}],basis:[{basis:[Ua,"full","auto",O,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[we,Ua,"auto","initial","none",Oe]}],grow:[{grow:["",we,fe,Oe]}],shrink:[{shrink:["",we,fe,Oe]}],order:[{order:[Va,"first","last","none",fe,Oe]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:ae()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:ae()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pbs:[{pbs:T()}],pbe:[{pbe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],"inline-size":[{inline:["auto",...E()]}],"min-inline-size":[{"min-inline":["auto",...E()]}],"max-inline-size":[{"max-inline":["none",...E()]}],"block-size":[{block:["auto",...ce()]}],"min-block-size":[{"min-block":["auto",...ce()]}],"max-block-size":[{"max-block":["none",...ce()]}],w:[{w:[O,"screen",...B()]}],"min-w":[{"min-w":[O,"screen","none",...B()]}],"max-w":[{"max-w":[O,"screen","none","prose",{screen:[d]},...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",s,Wr,ws]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,d$,l$]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",jO,Oe]}],"font-family":[{font:[o$,r$,n]}],"font-features":[{"font-features":[Oe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,fe,Oe]}],"line-clamp":[{"line-clamp":[we,"none",fe,a1]}],leading:[{leading:[u,...T()]}],"list-image":[{"list-image":["none",fe,Oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",fe,Oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ee()}],"text-color":[{text:ee()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._e(),"wavy"]}],"text-decoration-thickness":[{decoration:[we,"from-font","auto",fe,ws]}],"text-decoration-color":[{decoration:ee()}],"underline-offset":[{"underline-offset":[we,"auto",fe,Oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe,Oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fe,Oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ve()}],"bg-repeat":[{bg:Se()}],"bg-size":[{bg:ye()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Va,fe,Oe],radial:["",fe,Oe],conic:[Va,fe,Oe]},u$,i$]}],"bg-color":[{bg:ee()}],"gradient-from-pos":[{from:Ce()}],"gradient-via-pos":[{via:Ce()}],"gradient-to-pos":[{to:Ce()}],"gradient-from":[{from:ee()}],"gradient-via":[{via:ee()}],"gradient-to":[{to:ee()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-bs":[{"border-bs":ue()}],"border-w-be":[{"border-be":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[..._e(),"hidden","none"]}],"divide-style":[{divide:[..._e(),"hidden","none"]}],"border-color":[{border:ee()}],"border-color-x":[{"border-x":ee()}],"border-color-y":[{"border-y":ee()}],"border-color-s":[{"border-s":ee()}],"border-color-e":[{"border-e":ee()}],"border-color-bs":[{"border-bs":ee()}],"border-color-be":[{"border-be":ee()}],"border-color-t":[{"border-t":ee()}],"border-color-r":[{"border-r":ee()}],"border-color-b":[{"border-b":ee()}],"border-color-l":[{"border-l":ee()}],"divide-color":[{divide:ee()}],"outline-style":[{outline:[..._e(),"none","hidden"]}],"outline-offset":[{"outline-offset":[we,fe,Oe]}],"outline-w":[{outline:["",we,Wr,ws]}],"outline-color":[{outline:ee()}],shadow:[{shadow:["","none",x,Do,Lo]}],"shadow-color":[{shadow:ee()}],"inset-shadow":[{"inset-shadow":["none",g,Do,Lo]}],"inset-shadow-color":[{"inset-shadow":ee()}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ee()}],"ring-offset-w":[{"ring-offset":[we,ws]}],"ring-offset-color":[{"ring-offset":ee()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":ee()}],"text-shadow":[{"text-shadow":["none",b,Do,Lo]}],"text-shadow-color":[{"text-shadow":ee()}],opacity:[{opacity:[we,fe,Oe]}],"mix-blend":[{"mix-blend":[...Ot(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ot()}],"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":[we]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ze()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ze()}],"mask-image-linear-from-color":[{"mask-linear-from":ee()}],"mask-image-linear-to-color":[{"mask-linear-to":ee()}],"mask-image-t-from-pos":[{"mask-t-from":Ze()}],"mask-image-t-to-pos":[{"mask-t-to":Ze()}],"mask-image-t-from-color":[{"mask-t-from":ee()}],"mask-image-t-to-color":[{"mask-t-to":ee()}],"mask-image-r-from-pos":[{"mask-r-from":Ze()}],"mask-image-r-to-pos":[{"mask-r-to":Ze()}],"mask-image-r-from-color":[{"mask-r-from":ee()}],"mask-image-r-to-color":[{"mask-r-to":ee()}],"mask-image-b-from-pos":[{"mask-b-from":Ze()}],"mask-image-b-to-pos":[{"mask-b-to":Ze()}],"mask-image-b-from-color":[{"mask-b-from":ee()}],"mask-image-b-to-color":[{"mask-b-to":ee()}],"mask-image-l-from-pos":[{"mask-l-from":Ze()}],"mask-image-l-to-pos":[{"mask-l-to":Ze()}],"mask-image-l-from-color":[{"mask-l-from":ee()}],"mask-image-l-to-color":[{"mask-l-to":ee()}],"mask-image-x-from-pos":[{"mask-x-from":Ze()}],"mask-image-x-to-pos":[{"mask-x-to":Ze()}],"mask-image-x-from-color":[{"mask-x-from":ee()}],"mask-image-x-to-color":[{"mask-x-to":ee()}],"mask-image-y-from-pos":[{"mask-y-from":Ze()}],"mask-image-y-to-pos":[{"mask-y-to":Ze()}],"mask-image-y-from-color":[{"mask-y-from":ee()}],"mask-image-y-to-color":[{"mask-y-to":ee()}],"mask-image-radial":[{"mask-radial":[fe,Oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ze()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ze()}],"mask-image-radial-from-color":[{"mask-radial-from":ee()}],"mask-image-radial-to-color":[{"mask-radial-to":ee()}],"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":X()}],"mask-image-conic-pos":[{"mask-conic":[we]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ze()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ze()}],"mask-image-conic-from-color":[{"mask-conic-from":ee()}],"mask-image-conic-to-color":[{"mask-conic-to":ee()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ve()}],"mask-repeat":[{mask:Se()}],"mask-size":[{mask:ye()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",fe,Oe]}],filter:[{filter:["","none",fe,Oe]}],blur:[{blur:He()}],brightness:[{brightness:[we,fe,Oe]}],contrast:[{contrast:[we,fe,Oe]}],"drop-shadow":[{"drop-shadow":["","none",y,Do,Lo]}],"drop-shadow-color":[{"drop-shadow":ee()}],grayscale:[{grayscale:["",we,fe,Oe]}],"hue-rotate":[{"hue-rotate":[we,fe,Oe]}],invert:[{invert:["",we,fe,Oe]}],saturate:[{saturate:[we,fe,Oe]}],sepia:[{sepia:["",we,fe,Oe]}],"backdrop-filter":[{"backdrop-filter":["","none",fe,Oe]}],"backdrop-blur":[{"backdrop-blur":He()}],"backdrop-brightness":[{"backdrop-brightness":[we,fe,Oe]}],"backdrop-contrast":[{"backdrop-contrast":[we,fe,Oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",we,fe,Oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[we,fe,Oe]}],"backdrop-invert":[{"backdrop-invert":["",we,fe,Oe]}],"backdrop-opacity":[{"backdrop-opacity":[we,fe,Oe]}],"backdrop-saturate":[{"backdrop-saturate":[we,fe,Oe]}],"backdrop-sepia":[{"backdrop-sepia":["",we,fe,Oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",fe,Oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[we,"initial",fe,Oe]}],ease:[{ease:["linear","initial",j,fe,Oe]}],delay:[{delay:[we,fe,Oe]}],animate:[{animate:["none",z,fe,Oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,fe,Oe]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:bt()}],"rotate-x":[{"rotate-x":bt()}],"rotate-y":[{"rotate-y":bt()}],"rotate-z":[{"rotate-z":bt()}],scale:[{scale:dn()}],"scale-x":[{"scale-x":dn()}],"scale-y":[{"scale-y":dn()}],"scale-z":[{"scale-z":dn()}],"scale-3d":["scale-3d"],skew:[{skew:It()}],"skew-x":[{"skew-x":It()}],"skew-y":[{"skew-y":It()}],transform:[{transform:[fe,Oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:yt()}],"translate-x":[{"translate-x":yt()}],"translate-y":[{"translate-y":yt()}],"translate-z":[{"translate-z":yt()}],"translate-none":["translate-none"],accent:[{accent:ee()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ee()}],"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",fe,Oe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mbs":[{"scroll-mbs":T()}],"scroll-mbe":[{"scroll-mbe":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pbs":[{"scroll-pbs":T()}],"scroll-pbe":[{"scroll-pbe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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",fe,Oe]}],fill:[{fill:["none",...ee()]}],"stroke-w":[{stroke:[we,Wr,ws,a1]}],stroke:[{stroke:["none",...ee()]}],"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"]}},h$=D5(f$);function re(...t){return h$(w5(t))}function m$({children:t}){return l.jsx(b5,{delayDuration:300,children:t})}function r1({children:t,content:n,side:s="top",className:r}){return n?l.jsxs(v5,{children:[l.jsx(y5,{asChild:!0,children:t}),l.jsx(S5,{children:l.jsxs(Q5,{side:s,sideOffset:6,className:re("z-50 px-2.5 py-1.5 text-xs font-sans","bg-surface-4 text-text-0 border border-border rounded-md shadow-lg","animate-in fade-in-0 zoom-in-95",r),children:[n,l.jsx(j5,{className:"fill-surface-4"})]})})]}):t}/**
30
+ * @license lucide-react v1.7.0 - ISC
31
+ *
32
+ * This source code is licensed under the ISC license.
33
+ * See the LICENSE file in the root directory of this source tree.
34
+ */const Xb=(...t)=>t.filter((n,s,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===s).join(" ").trim();/**
35
+ * @license lucide-react v1.7.0 - ISC
36
+ *
37
+ * This source code is licensed under the ISC license.
38
+ * See the LICENSE file in the root directory of this source tree.
39
+ */const p$=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
40
+ * @license lucide-react v1.7.0 - ISC
41
+ *
42
+ * This source code is licensed under the ISC license.
43
+ * See the LICENSE file in the root directory of this source tree.
44
+ */const x$=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,s,r)=>r?r.toUpperCase():s.toLowerCase());/**
45
+ * @license lucide-react v1.7.0 - ISC
46
+ *
47
+ * This source code is licensed under the ISC license.
48
+ * See the LICENSE file in the root directory of this source tree.
49
+ */const i1=t=>{const n=x$(t);return n.charAt(0).toUpperCase()+n.slice(1)};/**
50
+ * @license lucide-react v1.7.0 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */var wO={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"};/**
55
+ * @license lucide-react v1.7.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */const g$=t=>{for(const n in t)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1},b$=v.createContext({}),v$=()=>v.useContext(b$),y$=v.forwardRef(({color:t,size:n,strokeWidth:s,absoluteStrokeWidth:r,className:o="",children:u,iconNode:d,...O},h)=>{const{size:p=24,strokeWidth:x=2,absoluteStrokeWidth:g=!1,color:b="currentColor",className:y=""}=v$()??{},Q=r??g?Number(s??x)*24/Number(n??p):s??x;return v.createElement("svg",{ref:h,...wO,width:n??p??wO.width,height:n??p??wO.height,stroke:t??b,strokeWidth:Q,className:Xb("lucide",y,o),...!u&&!g$(O)&&{"aria-hidden":"true"},...O},[...d.map(([w,k])=>v.createElement(w,k)),...Array.isArray(u)?u:[u]])});/**
60
+ * @license lucide-react v1.7.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const le=(t,n)=>{const s=v.forwardRef(({className:r,...o},u)=>v.createElement(y$,{ref:u,iconNode:n,className:Xb(`lucide-${p$(i1(t))}`,`lucide-${t}`,r),...o}));return s.displayName=i1(t),s};/**
65
+ * @license lucide-react v1.7.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const S$=[["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"}]],bc=le("activity",S$);/**
70
+ * @license lucide-react v1.7.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */const Q$=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],j$=le("arrow-up",Q$);/**
75
+ * @license lucide-react v1.7.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const w$=[["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"}]],k$=le("book-open",w$);/**
80
+ * @license lucide-react v1.7.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const $$=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],th=le("box",$$);/**
85
+ * @license lucide-react v1.7.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const T$=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],N$=le("brain",T$);/**
90
+ * @license lucide-react v1.7.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const P$=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],z$=le("calculator",P$);/**
95
+ * @license lucide-react v1.7.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const R$=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],vc=le("calendar",R$);/**
100
+ * @license lucide-react v1.7.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const C$=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Lc=le("chart-column",C$);/**
105
+ * @license lucide-react v1.7.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const _$=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Qt=le("check",_$);/**
110
+ * @license lucide-react v1.7.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const X$=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],zn=le("chevron-down",X$);/**
115
+ * @license lucide-react v1.7.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const A$=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Ab=le("chevron-left",A$);/**
120
+ * @license lucide-react v1.7.0 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const Z$=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],as=le("chevron-right",Z$);/**
125
+ * @license lucide-react v1.7.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const E$=[["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"}]],Oa=le("circle-alert",E$);/**
130
+ * @license lucide-react v1.7.0 - ISC
131
+ *
132
+ * This source code is licensed under the ISC license.
133
+ * See the LICENSE file in the root directory of this source tree.
134
+ */const q$=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Ps=le("circle-check-big",q$);/**
135
+ * @license lucide-react v1.7.0 - ISC
136
+ *
137
+ * This source code is licensed under the ISC license.
138
+ * See the LICENSE file in the root directory of this source tree.
139
+ */const M$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],vf=le("circle-check",M$);/**
140
+ * @license lucide-react v1.7.0 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */const Y$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],yc=le("circle-question-mark",Y$);/**
145
+ * @license lucide-react v1.7.0 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ */const U$=[["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"}]],Zb=le("circle-x",U$);/**
150
+ * @license lucide-react v1.7.0 - ISC
151
+ *
152
+ * This source code is licensed under the ISC license.
153
+ * See the LICENSE file in the root directory of this source tree.
154
+ */const V$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],yf=le("clock",V$);/**
155
+ * @license lucide-react v1.7.0 - ISC
156
+ *
157
+ * This source code is licensed under the ISC license.
158
+ * See the LICENSE file in the root directory of this source tree.
159
+ */const G$=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],L$=le("cloud",G$);/**
160
+ * @license lucide-react v1.7.0 - ISC
161
+ *
162
+ * This source code is licensed under the ISC license.
163
+ * See the LICENSE file in the root directory of this source tree.
164
+ */const D$=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],ss=le("code-xml",D$);/**
165
+ * @license lucide-react v1.7.0 - ISC
166
+ *
167
+ * This source code is licensed under the ISC license.
168
+ * See the LICENSE file in the root directory of this source tree.
169
+ */const W$=[["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"}]],Sf=le("copy",W$);/**
170
+ * @license lucide-react v1.7.0 - ISC
171
+ *
172
+ * This source code is licensed under the ISC license.
173
+ * See the LICENSE file in the root directory of this source tree.
174
+ */const B$=[["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"}]],Ml=le("cpu",B$);/**
175
+ * @license lucide-react v1.7.0 - ISC
176
+ *
177
+ * This source code is licensed under the ISC license.
178
+ * See the LICENSE file in the root directory of this source tree.
179
+ */const H$=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],I$=le("database",H$);/**
180
+ * @license lucide-react v1.7.0 - ISC
181
+ *
182
+ * This source code is licensed under the ISC license.
183
+ * See the LICENSE file in the root directory of this source tree.
184
+ */const F$=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],K$=le("dollar-sign",F$);/**
185
+ * @license lucide-react v1.7.0 - ISC
186
+ *
187
+ * This source code is licensed under the ISC license.
188
+ * See the LICENSE file in the root directory of this source tree.
189
+ */const J$=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],xi=le("download",J$);/**
190
+ * @license lucide-react v1.7.0 - ISC
191
+ *
192
+ * This source code is licensed under the ISC license.
193
+ * See the LICENSE file in the root directory of this source tree.
194
+ */const eT=[["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"}]],si=le("external-link",eT);/**
195
+ * @license lucide-react v1.7.0 - ISC
196
+ *
197
+ * This source code is licensed under the ISC license.
198
+ * See the LICENSE file in the root directory of this source tree.
199
+ */const tT=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Dc=le("eye-off",tT);/**
200
+ * @license lucide-react v1.7.0 - ISC
201
+ *
202
+ * This source code is licensed under the ISC license.
203
+ * See the LICENSE file in the root directory of this source tree.
204
+ */const nT=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Es=le("eye",nT);/**
205
+ * @license lucide-react v1.7.0 - ISC
206
+ *
207
+ * This source code is licensed under the ISC license.
208
+ * See the LICENSE file in the root directory of this source tree.
209
+ */const aT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],sT=le("file-code",aT);/**
210
+ * @license lucide-react v1.7.0 - ISC
211
+ *
212
+ * This source code is licensed under the ISC license.
213
+ * See the LICENSE file in the root directory of this source tree.
214
+ */const lT=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],Eb=le("file-pen",lT);/**
215
+ * @license lucide-react v1.7.0 - ISC
216
+ *
217
+ * This source code is licensed under the ISC license.
218
+ * See the LICENSE file in the root directory of this source tree.
219
+ */const rT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],kO=le("file-plus",rT);/**
220
+ * @license lucide-react v1.7.0 - ISC
221
+ *
222
+ * This source code is licensed under the ISC license.
223
+ * See the LICENSE file in the root directory of this source tree.
224
+ */const iT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Ia=le("file-text",iT);/**
225
+ * @license lucide-react v1.7.0 - ISC
226
+ *
227
+ * This source code is licensed under the ISC license.
228
+ * See the LICENSE file in the root directory of this source tree.
229
+ */const oT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],cT=le("file",oT);/**
230
+ * @license lucide-react v1.7.0 - ISC
231
+ *
232
+ * This source code is licensed under the ISC license.
233
+ * See the LICENSE file in the root directory of this source tree.
234
+ */const uT=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],dT=le("flame",uT);/**
235
+ * @license lucide-react v1.7.0 - ISC
236
+ *
237
+ * This source code is licensed under the ISC license.
238
+ * See the LICENSE file in the root directory of this source tree.
239
+ */const OT=[["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"}],["path",{d:"M2 10h20",key:"1ir3d8"}]],fT=le("folder-closed",OT);/**
240
+ * @license lucide-react v1.7.0 - ISC
241
+ *
242
+ * This source code is licensed under the ISC license.
243
+ * See the LICENSE file in the root directory of this source tree.
244
+ */const hT=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],li=le("folder-open",hT);/**
245
+ * @license lucide-react v1.7.0 - ISC
246
+ *
247
+ * This source code is licensed under the ISC license.
248
+ * See the LICENSE file in the root directory of this source tree.
249
+ */const mT=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["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"}]],$O=le("folder-plus",mT);/**
250
+ * @license lucide-react v1.7.0 - ISC
251
+ *
252
+ * This source code is licensed under the ISC license.
253
+ * See the LICENSE file in the root directory of this source tree.
254
+ */const pT=[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]],qb=le("folder-search",pT);/**
255
+ * @license lucide-react v1.7.0 - ISC
256
+ *
257
+ * This source code is licensed under the ISC license.
258
+ * See the LICENSE file in the root directory of this source tree.
259
+ */const xT=[["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"}]],Mb=le("folder",xT);/**
260
+ * @license lucide-react v1.7.0 - ISC
261
+ *
262
+ * This source code is licensed under the ISC license.
263
+ * See the LICENSE file in the root directory of this source tree.
264
+ */const gT=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Yb=le("gauge",gT);/**
265
+ * @license lucide-react v1.7.0 - ISC
266
+ *
267
+ * This source code is licensed under the ISC license.
268
+ * See the LICENSE file in the root directory of this source tree.
269
+ */const bT=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],nh=le("hard-drive",bT);/**
270
+ * @license lucide-react v1.7.0 - ISC
271
+ *
272
+ * This source code is licensed under the ISC license.
273
+ * See the LICENSE file in the root directory of this source tree.
274
+ */const vT=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],yT=le("headphones",vT);/**
275
+ * @license lucide-react v1.7.0 - ISC
276
+ *
277
+ * This source code is licensed under the ISC license.
278
+ * See the LICENSE file in the root directory of this source tree.
279
+ */const ST=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],QT=le("heart",ST);/**
280
+ * @license lucide-react v1.7.0 - ISC
281
+ *
282
+ * This source code is licensed under the ISC license.
283
+ * See the LICENSE file in the root directory of this source tree.
284
+ */const jT=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],wT=le("house",jT);/**
285
+ * @license lucide-react v1.7.0 - ISC
286
+ *
287
+ * This source code is licensed under the ISC license.
288
+ * See the LICENSE file in the root directory of this source tree.
289
+ */const kT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Ub=le("info",kT);/**
290
+ * @license lucide-react v1.7.0 - ISC
291
+ *
292
+ * This source code is licensed under the ISC license.
293
+ * See the LICENSE file in the root directory of this source tree.
294
+ */const $T=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],ri=le("key",$T);/**
295
+ * @license lucide-react v1.7.0 - ISC
296
+ *
297
+ * This source code is licensed under the ISC license.
298
+ * See the LICENSE file in the root directory of this source tree.
299
+ */const TT=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],o1=le("layers",TT);/**
300
+ * @license lucide-react v1.7.0 - ISC
301
+ *
302
+ * This source code is licensed under the ISC license.
303
+ * See the LICENSE file in the root directory of this source tree.
304
+ */const NT=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],PT=le("layout-dashboard",NT);/**
305
+ * @license lucide-react v1.7.0 - ISC
306
+ *
307
+ * This source code is licensed under the ISC license.
308
+ * See the LICENSE file in the root directory of this source tree.
309
+ */const zT=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],RT=le("list-checks",zT);/**
310
+ * @license lucide-react v1.7.0 - ISC
311
+ *
312
+ * This source code is licensed under the ISC license.
313
+ * See the LICENSE file in the root directory of this source tree.
314
+ */const CT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ct=le("loader-circle",CT);/**
315
+ * @license lucide-react v1.7.0 - ISC
316
+ *
317
+ * This source code is licensed under the ISC license.
318
+ * See the LICENSE file in the root directory of this source tree.
319
+ */const _T=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],ah=le("log-in",_T);/**
320
+ * @license lucide-react v1.7.0 - ISC
321
+ *
322
+ * This source code is licensed under the ISC license.
323
+ * See the LICENSE file in the root directory of this source tree.
324
+ */const XT=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Vb=le("log-out",XT);/**
325
+ * @license lucide-react v1.7.0 - ISC
326
+ *
327
+ * This source code is licensed under the ISC license.
328
+ * See the LICENSE file in the root directory of this source tree.
329
+ */const AT=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],ZT=le("map",AT);/**
330
+ * @license lucide-react v1.7.0 - ISC
331
+ *
332
+ * This source code is licensed under the ISC license.
333
+ * See the LICENSE file in the root directory of this source tree.
334
+ */const ET=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],qT=le("maximize-2",ET);/**
335
+ * @license lucide-react v1.7.0 - ISC
336
+ *
337
+ * This source code is licensed under the ISC license.
338
+ * See the LICENSE file in the root directory of this source tree.
339
+ */const MT=[["path",{d:"M12 12v-2",key:"fwoke6"}],["path",{d:"M12 18v-2",key:"qj6yno"}],["path",{d:"M16 12v-2",key:"heuere"}],["path",{d:"M16 18v-2",key:"s1ct0w"}],["path",{d:"M2 11h1.5",key:"15p63e"}],["path",{d:"M20 18v-2",key:"12ehxp"}],["path",{d:"M20.5 11H22",key:"khsy7a"}],["path",{d:"M4 18v-2",key:"1c3oqr"}],["path",{d:"M8 12v-2",key:"1mwtfd"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["rect",{x:"2",y:"6",width:"20",height:"10",rx:"2",key:"1qcswk"}]],YT=le("memory-stick",MT);/**
340
+ * @license lucide-react v1.7.0 - ISC
341
+ *
342
+ * This source code is licensed under the ISC license.
343
+ * See the LICENSE file in the root directory of this source tree.
344
+ */const UT=[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]],VT=le("megaphone",UT);/**
345
+ * @license lucide-react v1.7.0 - ISC
346
+ *
347
+ * This source code is licensed under the ISC license.
348
+ * See the LICENSE file in the root directory of this source tree.
349
+ */const GT=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Gb=le("message-circle",GT);/**
350
+ * @license lucide-react v1.7.0 - ISC
351
+ *
352
+ * This source code is licensed under the ISC license.
353
+ * See the LICENSE file in the root directory of this source tree.
354
+ */const LT=[["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"}]],gi=le("message-square",LT);/**
355
+ * @license lucide-react v1.7.0 - ISC
356
+ *
357
+ * This source code is licensed under the ISC license.
358
+ * See the LICENSE file in the root directory of this source tree.
359
+ */const DT=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],WT=le("minimize-2",DT);/**
360
+ * @license lucide-react v1.7.0 - ISC
361
+ *
362
+ * This source code is licensed under the ISC license.
363
+ * See the LICENSE file in the root directory of this source tree.
364
+ */const BT=[["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"}]],sh=le("monitor",BT);/**
365
+ * @license lucide-react v1.7.0 - ISC
366
+ *
367
+ * This source code is licensed under the ISC license.
368
+ * See the LICENSE file in the root directory of this source tree.
369
+ */const HT=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],Lb=le("network",HT);/**
370
+ * @license lucide-react v1.7.0 - ISC
371
+ *
372
+ * This source code is licensed under the ISC license.
373
+ * See the LICENSE file in the root directory of this source tree.
374
+ */const IT=[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]],ii=le("newspaper",IT);/**
375
+ * @license lucide-react v1.7.0 - ISC
376
+ *
377
+ * This source code is licensed under the ISC license.
378
+ * See the LICENSE file in the root directory of this source tree.
379
+ */const FT=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Db=le("package",FT);/**
380
+ * @license lucide-react v1.7.0 - ISC
381
+ *
382
+ * This source code is licensed under the ISC license.
383
+ * See the LICENSE file in the root directory of this source tree.
384
+ */const KT=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],JT=le("paperclip",KT);/**
385
+ * @license lucide-react v1.7.0 - ISC
386
+ *
387
+ * This source code is licensed under the ISC license.
388
+ * See the LICENSE file in the root directory of this source tree.
389
+ */const eN=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],tN=le("pause",eN);/**
390
+ * @license lucide-react v1.7.0 - ISC
391
+ *
392
+ * This source code is licensed under the ISC license.
393
+ * See the LICENSE file in the root directory of this source tree.
394
+ */const nN=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],aN=le("pen",nN);/**
395
+ * @license lucide-react v1.7.0 - ISC
396
+ *
397
+ * This source code is licensed under the ISC license.
398
+ * See the LICENSE file in the root directory of this source tree.
399
+ */const sN=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Wc=le("pencil",sN);/**
400
+ * @license lucide-react v1.7.0 - ISC
401
+ *
402
+ * This source code is licensed under the ISC license.
403
+ * See the LICENSE file in the root directory of this source tree.
404
+ */const lN=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],rN=le("play",lN);/**
405
+ * @license lucide-react v1.7.0 - ISC
406
+ *
407
+ * This source code is licensed under the ISC license.
408
+ * See the LICENSE file in the root directory of this source tree.
409
+ */const iN=[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],c1=le("plug-zap",iN);/**
410
+ * @license lucide-react v1.7.0 - ISC
411
+ *
412
+ * This source code is licensed under the ISC license.
413
+ * See the LICENSE file in the root directory of this source tree.
414
+ */const oN=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],Wb=le("plug",oN);/**
415
+ * @license lucide-react v1.7.0 - ISC
416
+ *
417
+ * This source code is licensed under the ISC license.
418
+ * See the LICENSE file in the root directory of this source tree.
419
+ */const cN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],es=le("plus",cN);/**
420
+ * @license lucide-react v1.7.0 - ISC
421
+ *
422
+ * This source code is licensed under the ISC license.
423
+ * See the LICENSE file in the root directory of this source tree.
424
+ */const uN=[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]],dN=le("presentation",uN);/**
425
+ * @license lucide-react v1.7.0 - ISC
426
+ *
427
+ * This source code is licensed under the ISC license.
428
+ * See the LICENSE file in the root directory of this source tree.
429
+ */const ON=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],Bb=le("puzzle",ON);/**
430
+ * @license lucide-react v1.7.0 - ISC
431
+ *
432
+ * This source code is licensed under the ISC license.
433
+ * See the LICENSE file in the root directory of this source tree.
434
+ */const fN=[["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"}]],lh=le("radio",fN);/**
435
+ * @license lucide-react v1.7.0 - ISC
436
+ *
437
+ * This source code is licensed under the ISC license.
438
+ * See the LICENSE file in the root directory of this source tree.
439
+ */const hN=[["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"}]],Cn=le("refresh-cw",hN);/**
440
+ * @license lucide-react v1.7.0 - ISC
441
+ *
442
+ * This source code is licensed under the ISC license.
443
+ * See the LICENSE file in the root directory of this source tree.
444
+ */const mN=[["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"}]],Hb=le("rocket",mN);/**
445
+ * @license lucide-react v1.7.0 - ISC
446
+ *
447
+ * This source code is licensed under the ISC license.
448
+ * See the LICENSE file in the root directory of this source tree.
449
+ */const pN=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],Il=le("rotate-cw",pN);/**
450
+ * @license lucide-react v1.7.0 - ISC
451
+ *
452
+ * This source code is licensed under the ISC license.
453
+ * See the LICENSE file in the root directory of this source tree.
454
+ */const xN=[["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"}]],gN=le("save",xN);/**
455
+ * @license lucide-react v1.7.0 - ISC
456
+ *
457
+ * This source code is licensed under the ISC license.
458
+ * See the LICENSE file in the root directory of this source tree.
459
+ */const bN=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],fa=le("search",bN);/**
460
+ * @license lucide-react v1.7.0 - ISC
461
+ *
462
+ * This source code is licensed under the ISC license.
463
+ * See the LICENSE file in the root directory of this source tree.
464
+ */const vN=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],rh=le("send",vN);/**
465
+ * @license lucide-react v1.7.0 - ISC
466
+ *
467
+ * This source code is licensed under the ISC license.
468
+ * See the LICENSE file in the root directory of this source tree.
469
+ */const yN=[["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"}]],Ib=le("server",yN);/**
470
+ * @license lucide-react v1.7.0 - ISC
471
+ *
472
+ * This source code is licensed under the ISC license.
473
+ * See the LICENSE file in the root directory of this source tree.
474
+ */const SN=[["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"}]],Fb=le("settings",SN);/**
475
+ * @license lucide-react v1.7.0 - ISC
476
+ *
477
+ * This source code is licensed under the ISC license.
478
+ * See the LICENSE file in the root directory of this source tree.
479
+ */const QN=[["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"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Kb=le("shield-check",QN);/**
480
+ * @license lucide-react v1.7.0 - ISC
481
+ *
482
+ * This source code is licensed under the ISC license.
483
+ * See the LICENSE file in the root directory of this source tree.
484
+ */const jN=[["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"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]],wN=le("shield-x",jN);/**
485
+ * @license lucide-react v1.7.0 - ISC
486
+ *
487
+ * This source code is licensed under the ISC license.
488
+ * See the LICENSE file in the root directory of this source tree.
489
+ */const kN=[["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"}]],Yl=le("shield",kN);/**
490
+ * @license lucide-react v1.7.0 - ISC
491
+ *
492
+ * This source code is licensed under the ISC license.
493
+ * See the LICENSE file in the root directory of this source tree.
494
+ */const $N=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],TO=le("shopping-bag",$N);/**
495
+ * @license lucide-react v1.7.0 - ISC
496
+ *
497
+ * This source code is licensed under the ISC license.
498
+ * See the LICENSE file in the root directory of this source tree.
499
+ */const TN=[["path",{d:"m12.5 17-.5-1-.5 1h1z",key:"3me087"}],["path",{d:"M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20v1a1 1 0 0 0 1 1z",key:"1o5pge"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}]],ih=le("skull",TN);/**
500
+ * @license lucide-react v1.7.0 - ISC
501
+ *
502
+ * This source code is licensed under the ISC license.
503
+ * See the LICENSE file in the root directory of this source tree.
504
+ */const NN=[["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"}]],Kr=le("sparkles",NN);/**
505
+ * @license lucide-react v1.7.0 - ISC
506
+ *
507
+ * This source code is licensed under the ISC license.
508
+ * See the LICENSE file in the root directory of this source tree.
509
+ */const PN=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Jb=le("star",PN);/**
510
+ * @license lucide-react v1.7.0 - ISC
511
+ *
512
+ * This source code is licensed under the ISC license.
513
+ * See the LICENSE file in the root directory of this source tree.
514
+ */const zN=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],bi=le("terminal",zN);/**
515
+ * @license lucide-react v1.7.0 - ISC
516
+ *
517
+ * This source code is licensed under the ISC license.
518
+ * See the LICENSE file in the root directory of this source tree.
519
+ */const RN=[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]],oh=le("test-tube",RN);/**
520
+ * @license lucide-react v1.7.0 - ISC
521
+ *
522
+ * This source code is licensed under the ISC license.
523
+ * See the LICENSE file in the root directory of this source tree.
524
+ */const CN=[["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"}]],_n=le("trash-2",CN);/**
525
+ * @license lucide-react v1.7.0 - ISC
526
+ *
527
+ * This source code is licensed under the ISC license.
528
+ * See the LICENSE file in the root directory of this source tree.
529
+ */const _N=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],vi=le("triangle-alert",_N);/**
530
+ * @license lucide-react v1.7.0 - ISC
531
+ *
532
+ * This source code is licensed under the ISC license.
533
+ * See the LICENSE file in the root directory of this source tree.
534
+ */const XN=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],AN=le("upload",XN);/**
535
+ * @license lucide-react v1.7.0 - ISC
536
+ *
537
+ * This source code is licensed under the ISC license.
538
+ * See the LICENSE file in the root directory of this source tree.
539
+ */const ZN=[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],EN=le("user-check",ZN);/**
540
+ * @license lucide-react v1.7.0 - ISC
541
+ *
542
+ * This source code is licensed under the ISC license.
543
+ * See the LICENSE file in the root directory of this source tree.
544
+ */const qN=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],MN=le("user-plus",qN);/**
545
+ * @license lucide-react v1.7.0 - ISC
546
+ *
547
+ * This source code is licensed under the ISC license.
548
+ * See the LICENSE file in the root directory of this source tree.
549
+ */const YN=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],ev=le("user",YN);/**
550
+ * @license lucide-react v1.7.0 - ISC
551
+ *
552
+ * This source code is licensed under the ISC license.
553
+ * See the LICENSE file in the root directory of this source tree.
554
+ */const UN=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],yi=le("users",UN);/**
555
+ * @license lucide-react v1.7.0 - ISC
556
+ *
557
+ * This source code is licensed under the ISC license.
558
+ * See the LICENSE file in the root directory of this source tree.
559
+ */const VN=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],GN=le("wrench",VN);/**
560
+ * @license lucide-react v1.7.0 - ISC
561
+ *
562
+ * This source code is licensed under the ISC license.
563
+ * See the LICENSE file in the root directory of this source tree.
564
+ */const LN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],jt=le("x",LN);/**
565
+ * @license lucide-react v1.7.0 - ISC
566
+ *
567
+ * This source code is licensed under the ISC license.
568
+ * See the LICENSE file in the root directory of this source tree.
569
+ */const DN=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Xn=le("zap",DN),WN={success:Ps,error:Oa,info:Ub,warning:vi},BN={success:"border-l-success",error:"border-l-danger",info:"border-l-accent",warning:"border-l-warning"},HN={success:"text-success",error:"text-danger",info:"text-accent",warning:"text-warning"},IN={success:3e3,error:0,info:5e3,warning:5e3};function FN({toast:t}){const n=D(o=>o.removeToast),s=WN[t.type]||Ub,r=IN[t.type];return v.useEffect(()=>{if(!r)return;const o=setTimeout(()=>n(t.id),r);return()=>clearTimeout(o)},[t.id,r,n]),l.jsxs(Ef.div,{layout:!0,initial:{opacity:0,x:80,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:80,scale:.95},transition:{duration:.2},className:re("w-80 rounded-md border border-border bg-surface-1 shadow-xl","border-l-4 flex items-center gap-3 px-4 py-3",BN[t.type]),children:[l.jsx(s,{size:16,className:re("flex-shrink-0",HN[t.type])}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("p",{className:"text-sm text-text-0 font-sans",children:t.message}),t.detail&&l.jsx("p",{className:"text-xs text-text-3 font-sans mt-0.5",children:t.detail})]}),l.jsx("button",{onClick:o=>{o.stopPropagation(),n(t.id)},className:"p-1.5 text-text-4 hover:text-text-1 hover:bg-surface-5 rounded transition-colors cursor-pointer flex-shrink-0 z-10",children:l.jsx(jt,{size:14})})]})}function KN(){const t=D(n=>n.toasts);return l.jsx("div",{className:"fixed bottom-4 right-4 z-[100] flex flex-col-reverse gap-2",children:l.jsx(Zf,{mode:"popLayout",children:t.slice(-3).map(n=>l.jsx(FN,{toast:n},n.id))})})}const JN=[{id:"agents",icon:Lb,label:"Agents"},{id:"editor",icon:ss,label:"Editor"},{id:"dashboard",icon:Lc,label:"Dashboard"},{id:"marketplace",icon:Bb,label:"Marketplace"},{id:"models",icon:th,label:"Models"},{id:"teams",icon:yi,label:"Teams"}],eP=[{id:"journalist",icon:ii,label:"Journalist",panel:!0},{id:"settings",icon:Fb,label:"Settings",nav:!0}];function tP({activeView:t,detailPanel:n,onNavigate:s,onTogglePanel:r}){return l.jsxs("nav",{className:"w-12 flex-shrink-0 flex flex-col bg-surface-3 border-r border-border",children:[l.jsx("div",{className:"flex flex-col items-center gap-0.5 pt-2",children:JN.map(o=>l.jsx(r1,{content:o.label,side:"right",children:l.jsx("button",{onClick:()=>s(o.id),className:re("w-10 h-10 flex items-center justify-center rounded-md transition-colors cursor-pointer",t===o.id?"text-text-0 bg-surface-5":"text-text-3 hover:text-text-1 hover:bg-surface-4"),children:l.jsx(o.icon,{size:20,strokeWidth:t===o.id?2:1.5})})},o.id))}),l.jsx("div",{className:"flex-1"}),l.jsx("div",{className:"flex flex-col items-center gap-0.5 pb-2",children:eP.map(o=>{const u=o.panel?(n==null?void 0:n.type)===o.id:t===o.id;return l.jsx(r1,{content:o.label,side:"right",children:l.jsx("button",{onClick:()=>o.panel?r(o.id):s((o.nav,o.id)),className:re("w-10 h-10 flex items-center justify-center rounded-md transition-colors cursor-pointer",u?"text-text-0 bg-surface-5":"text-text-3 hover:text-text-1 hover:bg-surface-4"),children:l.jsx(o.icon,{size:20,strokeWidth:u?2:1.5})})},o.id)})})]})}const nP={agents:"Agents",editor:"Editor",dashboard:"Dashboard",marketplace:"Marketplace",teams:"Teams"};function aP({activeView:t,connected:n,daemonHost:s,editorActiveFile:r,onOpenCommandPalette:o,onSpawn:u}){const d=["Groove",nP[t]||t];return t==="editor"&&r&&d.push(r.split("/").pop()),l.jsxs("header",{className:"h-11 flex-shrink-0 flex items-center gap-3 px-4 bg-surface-3 border-b border-border",children:[l.jsx("img",{src:"/favicon.png",alt:"Groove",className:"h-7 w-7 rounded-full flex-shrink-0"}),s&&l.jsx("span",{className:"text-2xs font-mono font-semibold text-text-3 bg-surface-5 px-1.5 py-0.5 rounded flex-shrink-0",children:s}),l.jsx("div",{className:"flex-1 min-w-4"}),l.jsxs("button",{onClick:o,className:re("flex items-center gap-2.5 h-8 px-4 rounded-full w-full max-w-md","bg-surface-1 border border-border-subtle","text-sm text-text-4 font-sans","hover:border-border hover:text-text-3 transition-colors cursor-pointer"),children:[l.jsx(fa,{size:14,className:"flex-shrink-0"}),l.jsx("span",{className:"flex-1 text-left",children:"Search commands..."}),l.jsx("kbd",{className:"text-2xs font-mono bg-surface-4 px-1.5 py-0.5 rounded-full text-text-4",children:"Cmd+K"})]}),l.jsx("div",{className:"flex-1 min-w-4"}),l.jsx("div",{className:"flex items-center gap-1 text-xs font-sans text-text-3 flex-shrink-0",children:d.map((O,h)=>l.jsxs("span",{className:"flex items-center gap-1",children:[h>0&&l.jsx(as,{size:11,className:"text-text-4"}),l.jsx("span",{className:re(h===d.length-1?"text-text-2":"text-text-4"),children:O})]},h))}),n&&l.jsxs("button",{onClick:u,className:"ml-1 flex items-center gap-1 h-7 px-3.5 rounded-full bg-accent/15 text-accent text-xs font-semibold font-sans hover:bg-accent/25 transition-colors cursor-pointer select-none flex-shrink-0",children:[l.jsx(es,{size:14}),"Spawn"]})]})}const sP={running:"var(--color-success)",starting:"var(--color-warning)",stopped:"var(--color-text-3)",crashed:"var(--color-danger)",completed:"var(--color-accent)",killed:"var(--color-text-3)",rotating:"var(--color-purple)"};function ch(t){return sP[t]||"var(--color-text-3)"}const lP={planner:{bg:"rgba(74, 225, 104, 0.12)",text:"#4ae168",border:"#4ae168"},backend:{bg:"rgba(51, 175, 188, 0.12)",text:"#33afbc",border:"#33afbc"},frontend:{bg:"rgba(229, 192, 123, 0.12)",text:"#e5c07b",border:"#e5c07b"},fullstack:{bg:"rgba(74, 225, 104, 0.12)",text:"#4ae168",border:"#4ae168"},testing:{bg:"rgba(97, 175, 239, 0.12)",text:"#61afef",border:"#61afef"},devops:{bg:"rgba(209, 154, 102, 0.12)",text:"#d19a66",border:"#d19a66"},docs:{bg:"rgba(139, 146, 158, 0.12)",text:"#8b929e",border:"#8b929e"},security:{bg:"rgba(224, 108, 117, 0.12)",text:"#e06c75",border:"#e06c75"},database:{bg:"rgba(198, 120, 221, 0.12)",text:"#c678dd",border:"#c678dd"},cmo:{bg:"rgba(229, 192, 123, 0.12)",text:"#e5c07b",border:"#e5c07b"},cfo:{bg:"rgba(74, 225, 104, 0.12)",text:"#4ae168",border:"#4ae168"},ea:{bg:"rgba(97, 175, 239, 0.12)",text:"#61afef",border:"#61afef"},support:{bg:"rgba(51, 175, 188, 0.12)",text:"#33afbc",border:"#33afbc"},analyst:{bg:"rgba(198, 120, 221, 0.12)",text:"#c678dd",border:"#c678dd"},creative:{bg:"rgba(229, 192, 123, 0.12)",text:"#e5c07b",border:"#e5c07b"},slides:{bg:"rgba(209, 154, 102, 0.12)",text:"#d19a66",border:"#d19a66"}};function Bc(t){const n=(t||"").toLowerCase();return lP[n]||{bg:"rgba(139, 146, 158, 0.12)",text:"#8b929e",border:"#8b929e"}}function zs({status:t,size:n="md",className:s}){const r=t==="running"||t==="starting",o=n==="sm"?"w-1.5 h-1.5":n==="lg"?"w-3 h-3":"w-2 h-2";return l.jsx("span",{className:re("rounded-full inline-block flex-shrink-0",r&&"animate-pulse",o,s),style:{background:ch(t)}})}function Ke(t){return t==null||isNaN(t)?"0":t>=1e6?(t/1e6).toFixed(1).replace(/\.0$/,"")+"M":t>=1e3?(t/1e3).toFixed(1).replace(/\.0$/,"")+"k":Math.round(t).toLocaleString()}function Si(t){return t==null||isNaN(t)?"$0":t>=1e3?"$"+(t/1e3).toFixed(1).replace(/\.0$/,"")+"k":t>=1||t>=.01?"$"+t.toFixed(2):"$"+t.toFixed(3)}function Ul(t){return t==null||isNaN(t)?"0%":Math.round(t)+"%"}function Hc(t){if(!t||t<0)return"0s";const n=Math.floor(t/86400),s=Math.floor(t%86400/3600),r=Math.floor(t%3600/60),o=Math.floor(t%60);return n>0?`${n}d ${s}h`:s>0?`${s}h ${r}m`:r>0?`${r}m ${o}s`:`${o}s`}function vt(t){if(!t)return"";const n=(Date.now()-new Date(t).getTime())/1e3;return n<5?"just now":n<60?`${Math.floor(n)}s ago`:n<3600?`${Math.floor(n/60)}m ago`:n<86400?`${Math.floor(n/3600)}h ago`:`${Math.floor(n/86400)}d ago`}function rP({connected:t,agentCount:n,runningCount:s,uptime:r,terminalVisible:o,onToggleTerminal:u}){return l.jsxs("footer",{className:"h-6 flex-shrink-0 flex items-center px-3 bg-surface-3 border-t border-border text-2xs font-sans select-none",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx(zs,{status:t?"running":"crashed",size:"sm"}),l.jsx("span",{className:t?"text-text-2":"text-danger",children:t?"Connected":"Offline"})]}),t&&r>0&&l.jsxs("span",{className:"text-text-4",children:["Up ",Hc(r)]}),t&&n>0&&l.jsxs("span",{className:"text-text-4",children:[s,"/",n," agents"]})]}),l.jsx("div",{className:"flex-1"}),l.jsxs("a",{href:"https://docs.groovedev.ai",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 px-2 h-full text-text-3 hover:text-text-1 hover:bg-surface-5 transition-colors no-underline",children:[l.jsx(k$,{size:12}),l.jsx("span",{children:"Docs"})]}),l.jsxs("button",{onClick:u,className:re("flex items-center gap-1.5 px-2 h-full transition-colors cursor-pointer",o?"text-accent bg-accent/8 hover:bg-accent/12":"text-text-3 hover:text-text-1 hover:bg-surface-5"),children:[l.jsx(bi,{size:12}),l.jsx("span",{children:"Terminal"}),l.jsx("kbd",{className:"font-mono text-text-4 ml-0.5",children:"Cmd+J"})]})]})}function iP({children:t,width:n,onWidthChange:s,onClose:r,className:o}){const u=v.useRef(!1),d=v.useRef(0),O=v.useRef(0),h=v.useCallback(p=>{p.preventDefault(),u.current=!0,d.current=p.clientX,O.current=n;function x(b){if(!u.current)return;const y=d.current-b.clientX,Q=Math.min(Math.max(O.current+y,380),window.innerWidth*.65);s(Q)}function g(){u.current=!1,document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",g)}document.addEventListener("mousemove",x),document.addEventListener("mouseup",g)},[n,s]);return l.jsxs("aside",{className:re("flex-shrink-0 flex bg-surface-1 border-l border-border relative",o),style:{width:n},children:[l.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-1 cursor-col-resize hover:bg-accent/30 transition-colors z-10",onMouseDown:h}),l.jsx("button",{onClick:r,className:"absolute top-3 right-3 z-10 p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer",children:l.jsx(jt,{size:14})}),l.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:t})]})}const oP=[{id:"nav:agents",label:"Go to Agents",icon:Lb,category:"Navigation",action:t=>{t.setActiveView("agents")}},{id:"nav:editor",label:"Go to Editor",icon:ss,category:"Navigation",action:t=>{t.setActiveView("editor")}},{id:"nav:dashboard",label:"Go to Dashboard",icon:Lc,category:"Navigation",action:t=>{t.setActiveView("dashboard")}},{id:"nav:marketplace",label:"Go to Marketplace",icon:Bb,category:"Navigation",action:t=>{t.setActiveView("marketplace")}},{id:"nav:teams",label:"Go to Teams",icon:yi,category:"Navigation",action:t=>{t.setActiveView("teams")}},{id:"action:spawn",label:"Spawn Agent",icon:es,category:"Actions",action:t=>{t.openDetail({type:"spawn"})}},{id:"action:terminal",label:"Toggle Terminal",icon:bi,category:"Actions",action:t=>{t.setTerminalVisible(!t.terminalVisible)},shortcut:"Cmd+J"},{id:"action:journalist",label:"Toggle Journalist",icon:ii,category:"Actions",action:t=>{var n;((n=t.detailPanel)==null?void 0:n.type)==="journalist"?t.closeDetail():t.openDetail({type:"journalist"})}}];function cP(){const t=D(y=>y.commandPaletteOpen),n=D(y=>y.toggleCommandPalette),s=D(y=>y.agents),r=D,[o,u]=v.useState(""),[d,O]=v.useState(0),h=v.useRef(null),p=v.useMemo(()=>{const y=s.flatMap(Q=>[{id:`chat:${Q.id}`,label:`Chat with ${Q.name}`,icon:gi,category:"Agents",action:w=>{w.selectAgent(Q.id)}},...Q.status==="running"?[{id:`rotate:${Q.id}`,label:`Rotate ${Q.name}`,icon:Il,category:"Agents",action:w=>{w.rotateAgent(Q.id)}},{id:`kill:${Q.id}`,label:`Kill ${Q.name}`,icon:ih,category:"Agents",action:w=>{w.killAgent(Q.id)}}]:[]]);return[...oP,...y]},[s]),x=v.useMemo(()=>{if(!o.trim())return p.slice(0,12);const y=o.toLowerCase();return p.filter(Q=>Q.label.toLowerCase().includes(y)||Q.category.toLowerCase().includes(y)).slice(0,12)},[p,o]);v.useEffect(()=>{t&&(u(""),O(0),setTimeout(()=>{var y;return(y=h.current)==null?void 0:y.focus()},50))},[t]),v.useEffect(()=>{d>=x.length&&O(Math.max(0,x.length-1))},[x.length,d]);function g(y){y.action(r.getState()),n()}function b(y){y.key==="ArrowDown"?(y.preventDefault(),O(Q=>Math.min(Q+1,x.length-1))):y.key==="ArrowUp"?(y.preventDefault(),O(Q=>Math.max(Q-1,0))):y.key==="Enter"&&x[d]?(y.preventDefault(),g(x[d])):y.key==="Escape"&&n()}return t?l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"fixed inset-0 z-50 bg-black/40 backdrop-blur-sm",onClick:n}),l.jsx(Zf,{children:l.jsxs(Ef.div,{initial:{opacity:0,y:-20,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.98},transition:{duration:.15},className:"fixed top-[15%] left-1/2 -translate-x-1/2 z-50 w-[480px] max-h-[400px] bg-surface-1 border border-border rounded-lg shadow-2xl overflow-hidden",onKeyDown:b,children:[l.jsxs("div",{className:"flex items-center gap-2 px-4 py-3 border-b border-border-subtle",children:[l.jsx(fa,{size:16,className:"text-text-3 flex-shrink-0"}),l.jsx("input",{ref:h,value:o,onChange:y=>{u(y.target.value),O(0)},placeholder:"Type a command...",className:"flex-1 bg-transparent text-sm text-text-0 font-sans placeholder:text-text-4 focus:outline-none"})]}),l.jsxs("div",{className:"overflow-y-auto max-h-[320px] py-1",children:[x.length===0&&l.jsx("div",{className:"px-4 py-6 text-sm text-text-3 text-center font-sans",children:"No results"}),x.map((y,Q)=>l.jsxs("button",{onClick:()=>g(y),onMouseEnter:()=>O(Q),className:re("w-full flex items-center gap-3 px-4 py-2 text-sm font-sans cursor-pointer",Q===d?"bg-surface-5 text-text-0":"text-text-1 hover:bg-surface-4"),children:[l.jsx(y.icon,{size:16,className:"text-text-3 flex-shrink-0"}),l.jsx("span",{className:"flex-1 text-left",children:y.label}),l.jsx("span",{className:"text-2xs text-text-4",children:y.category}),y.shortcut&&l.jsx("kbd",{className:"text-2xs font-mono bg-surface-4 px-1 py-0.5 rounded text-text-3 ml-1",children:y.shortcut})]},y.id))]})]})})]}):null}function uP({children:t,detailContent:n,terminalContent:s}){const r=D(R=>R.activeView),o=D(R=>R.detailPanel),u=D(R=>R.connected),d=D(R=>R.tunneled),O=D(R=>R.daemonHost),h=D(R=>R.agents),p=D(R=>R.editorActiveFile),x=D(R=>R.detailPanelWidth),g=D(R=>R.terminalVisible),b=D(R=>R.terminalFullHeight),y=D(R=>R.setActiveView),Q=D(R=>R.openDetail),w=D(R=>R.closeDetail),k=D(R=>R.setDetailPanelWidth),j=D(R=>R.setTerminalVisible),z=D(R=>R.toggleCommandPalette),N=v.useMemo(()=>h.filter(R=>R.status==="running").length,[h]),X=v.useMemo(()=>[{key:"k",meta:!0,handler:()=>D.getState().toggleCommandPalette()},{key:"p",meta:!0,shift:!0,handler:()=>D.getState().toggleCommandPalette()},{key:"j",meta:!0,handler:()=>{const R=D.getState();R.setTerminalVisible(!R.terminalVisible)}},{key:"n",meta:!0,handler:()=>D.getState().openDetail({type:"spawn"})},{key:"1",meta:!0,handler:()=>D.getState().setActiveView("agents")},{key:"2",meta:!0,handler:()=>D.getState().setActiveView("editor")},{key:"3",meta:!0,handler:()=>D.getState().setActiveView("dashboard")},{key:"4",meta:!0,handler:()=>D.getState().setActiveView("marketplace")},{key:"5",meta:!0,handler:()=>D.getState().setActiveView("teams")},{key:"Escape",handler:()=>{const R=D.getState();R.commandPaletteOpen?R.toggleCommandPalette():R.detailPanel&&R.closeDetail()}}],[]);dw(X);const G=o&&o.type!=="spawn";return l.jsx(m$,{children:l.jsxs("div",{className:"w-full h-full flex flex-col bg-surface-2 text-text-1 font-sans",children:[l.jsx(aP,{activeView:r,connected:u,tunneled:d,daemonHost:O,editorActiveFile:p,onOpenCommandPalette:z,onSpawn:()=>Q({type:"spawn"})}),l.jsxs("div",{className:"flex-1 flex min-h-0",children:[l.jsx(tP,{activeView:r,detailPanel:o,onNavigate:y,onTogglePanel:R=>{(o==null?void 0:o.type)===R?w():Q({type:R})}}),l.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0",children:[!(g&&b)&&l.jsx("main",{className:"flex-1 min-h-0 overflow-hidden relative",children:t}),s]}),G&&l.jsx(iP,{width:x,onWidthChange:k,onClose:w,children:n})]}),l.jsx(rP,{connected:u,agentCount:h.length,runningCount:N,terminalVisible:g,onToggleTerminal:()=>j(!g)}),l.jsx(cP,{}),l.jsx(KN,{})]})})}const dP=[];function OP(t){if(!t||t==="auto")return"auto";const n=t.match(/^claude-(opus|sonnet|haiku)-(\d+)-(\d+)(?:-\d+)?$/);return n?`${n[1][0].toUpperCase()+n[1].slice(1)} ${n[2]}.${n[3]}`:t.startsWith("gemini-")?t.replace("gemini-","Gemini ").replace("-preview","").replace("-flash-lite"," Flash Lite").replace("-flash"," Flash").replace("-pro"," Pro"):t.startsWith("gpt-")?t.toUpperCase().replace("GPT-","GPT-"):t}function fP(t){if(!t)return null;const n=t.toLowerCase();return n.includes("read")?"READ":n.includes("edit")||n.includes("writ")?"WRITE":n.includes("search")||n.includes("grep")||n.includes("glob")?"SEARCH":n.includes("bash")||n.includes("exec")||n.includes("running")?"EXEC":n.includes("test")?"TEST":n.includes("error")||n.includes("fail")?"ERR":n.includes("complet")||n.includes("done")?"DONE":"WORK"}function hP(t){if(!t)return"";const n=Math.floor((Date.now()-t)/1e3);return n<60?`${n}s`:n<3600?`${Math.floor(n/60)}m`:`${Math.floor(n/3600)}h`}function mP({agent:t}){const s=(D(r=>r.activityLog[t.id])||dP).slice(-8);return l.jsx("div",{className:"absolute left-full top-0 ml-2 z-50 pointer-events-none",style:{width:220,animation:"tooltip-slide-in 0.15s ease-out"},children:l.jsxs("div",{className:"overflow-hidden",style:{background:"#181b21",border:"1px solid #262a32",borderRadius:4},children:[t.prompt&&l.jsx("div",{className:"px-2.5 py-2 border-b border-[#262a32]",children:l.jsx("p",{className:"text-[9px] font-sans text-[#8b929e] line-clamp-3 leading-snug",children:t.prompt})}),s.length>0?l.jsxs("div",{children:[l.jsx("div",{className:"px-2.5 pt-1.5 pb-1",children:l.jsx("span",{className:"text-[8px] font-mono text-[#3a3f4b] uppercase tracking-widest",children:"Activity"})}),s.map((r,o)=>{var O;const u=fP(r.text),d=((O=r.text)==null?void 0:O.length)>45?r.text.slice(0,45)+"...":r.text;return l.jsxs("div",{className:"px-2.5 py-[3px] flex items-start gap-1.5",children:[l.jsx("span",{className:"text-[8px] font-mono text-[#333842] w-5 flex-shrink-0 text-right",children:hP(r.timestamp)}),u&&l.jsx("span",{className:re("text-[7px] font-mono w-7 flex-shrink-0 text-center rounded-sm px-0.5 py-px",u==="ERR"?"text-[#e06c75] bg-[#e06c75]/10":"text-[#505862] bg-[#505862]/10"),children:u}),l.jsx("span",{className:"text-[9px] font-sans text-[#6e7681] truncate flex-1",children:d})]},o)}),l.jsx("div",{className:"h-1.5"})]}):l.jsx("div",{className:"px-2.5 py-3",children:l.jsx("span",{className:"text-[9px] font-mono text-[#333842]",children:"Awaiting activity..."})})]})})}const pP={running:"LIVE",starting:"INIT",stopped:"IDLE",crashed:"ERR",completed:"DONE",killed:"KILL",rotating:"ROT"},tv=v.memo(({data:t,selected:n})=>{const{agent:s}=t,r=s.status==="running"||s.status==="starting",o=Math.round((s.contextUsage||0)*100),u=ch(s.status),d=s.tokensUsed||0,[O,h]=v.useState(!1);return l.jsxs("div",{className:"relative",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:[l.jsxs("div",{className:"w-[220px] overflow-hidden transition-all duration-150",style:{background:"#1c1f26",border:`1px solid ${n?"#2e323a":"#262a32"}`,borderRadius:4},children:[l.jsx(Ba,{id:"top",type:"target",position:Ha.Top,className:"!w-1 !h-1 !bg-transparent !border-0"}),l.jsx(Ba,{id:"bottom",type:"target",position:Ha.Bottom,className:"!w-1 !h-1 !bg-transparent !border-0"}),l.jsx(Ba,{id:"left",type:"target",position:Ha.Left,className:"!w-1 !h-1 !bg-transparent !border-0"}),l.jsx(Ba,{id:"right",type:"target",position:Ha.Right,className:"!w-1 !h-1 !bg-transparent !border-0"}),r&&l.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",style:{borderRadius:3},children:l.jsx("div",{className:"absolute left-0 right-0 h-px",style:{background:"linear-gradient(90deg, transparent 0%, rgba(97,175,239,0.25) 50%, transparent 100%)",animation:"node-scan 3s ease-in-out infinite"}})}),l.jsxs("div",{className:"px-3 pt-2.5 pb-1.5",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[l.jsx("span",{className:"absolute inset-0 rounded-sm",style:{background:u}}),r&&l.jsx("span",{className:"absolute inset-[-2px] rounded-sm",style:{background:u,opacity:.15,animation:"node-pulse-bar 2s ease-in-out infinite"}})]}),l.jsx("span",{className:"text-[12px] font-semibold text-[#e6e6e6] font-sans truncate flex-1 leading-none",children:s.name}),l.jsx("span",{className:"text-[7px] font-mono font-bold uppercase tracking-wider px-1 py-px rounded-sm",style:{color:u,background:u+"12"},children:pP[s.status]||s.status})]}),l.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5",children:[l.jsx("span",{className:"text-[9px] font-mono text-[#505862] uppercase tracking-[0.05em]",children:s.role}),l.jsx("span",{className:"text-[9px] text-[#2a2e36]",children:"/"}),l.jsx("span",{className:"text-[9px] font-mono text-[#505862]",children:OP(s.model)})]})]}),l.jsxs("div",{className:"px-3 pt-1 pb-2",children:[l.jsxs("div",{className:"flex items-baseline gap-1.5",children:[l.jsx("span",{className:"text-[14px] font-mono font-medium text-[#bcc2cd] leading-none",children:Ke(d)}),l.jsx("span",{className:"text-[8px] font-mono text-[#505862]",children:"tok"}),l.jsx("span",{className:"flex-1"}),l.jsxs("span",{className:"text-[9px] font-mono text-[#505862]",children:[o,"%"]})]}),l.jsx("div",{className:"mt-1.5 h-[2px] rounded-sm overflow-hidden",style:{background:"rgba(51, 175, 188, 0.15)"},children:l.jsx("div",{className:"h-full rounded-sm transition-all duration-700",style:{width:`${Math.max(o,1)}%`,background:o>80?"var(--color-danger)":o>60?"var(--color-warning)":"var(--color-accent)"}})})]})]}),O&&l.jsx(mP,{agent:s})]})});tv.displayName="AgentNode";const nv=v.memo(({data:t})=>{const{agentCount:n,runningCount:s}=t,r=s>0,o={background:"transparent",border:0,width:2,height:2};return l.jsxs("div",{className:"relative flex items-center justify-center",style:{width:84,height:84},children:[l.jsx("div",{className:re("absolute inset-0 rounded-full transition-all duration-500",r&&"animate-[spin-slow_30s_linear_infinite]"),style:{border:`1px dashed ${r?"rgba(97,175,239,0.5)":"rgba(97,175,239,0.25)"}`}}),l.jsx("div",{className:"absolute inset-[10px] rounded-full",style:{background:r?"radial-gradient(circle, rgba(97,175,239,0.15) 0%, transparent 70%)":"radial-gradient(circle, rgba(97,175,239,0.05) 0%, transparent 70%)",animation:r?"node-pulse-bar 2.5s ease-in-out infinite":"none"}}),l.jsx("div",{className:re("w-14 h-14 rounded-full flex items-center justify-center relative z-10 transition-all duration-300",r?"bg-[#1c1f26] border-2 border-[#61afef]/35 shadow-[0_0_28px_rgba(97,175,239,0.15)]":"bg-[#1c1f26] border border-[#61afef]/20"),children:l.jsx("img",{src:"/favicon.png",alt:"G",className:re("h-7 w-7 rounded-full transition-opacity",r?"opacity-90":"opacity-60")})}),n>0&&l.jsx("div",{className:re("absolute z-20 min-w-[20px] h-[20px] rounded-sm flex items-center justify-center","text-[10px] font-mono font-bold px-1 transition-all duration-300",r?"bg-[#1c1f26] text-[#61afef] border border-[#61afef]/40":"bg-[#1c1f26] text-[#61afef]/60 border border-[#61afef]/20"),style:{bottom:2,right:2},children:n}),l.jsx(Ba,{id:"bottom",type:"source",position:Ha.Bottom,style:o}),l.jsx(Ba,{id:"right",type:"source",position:Ha.Right,style:o}),l.jsx(Ba,{id:"left",type:"source",position:Ha.Left,style:o}),l.jsx(Ba,{id:"top",type:"source",position:Ha.Top,style:o})]})});nv.displayName="RootNode";const xP={primary:"bg-accent/20 text-accent border border-accent/25 hover:bg-accent/30 font-medium",secondary:"bg-surface-5/40 text-text-1 border border-border-subtle hover:bg-surface-5/70 hover:text-text-0",ghost:"bg-transparent text-text-2 border border-transparent hover:bg-surface-5/50 hover:text-text-0",danger:"bg-danger/12 text-danger border border-danger/15 hover:bg-danger/20",info:"bg-info/12 text-info border border-info/15 hover:bg-info/20",outline:"bg-transparent text-accent border border-accent/30 hover:bg-accent/10"},gP={sm:"h-7 px-2.5 text-xs gap-1.5 rounded",md:"h-8 px-3 text-sm gap-2 rounded",lg:"h-9 px-4 text-sm gap-2 rounded",icon:"h-8 w-8 rounded"},ge=v.forwardRef(({className:t,variant:n="secondary",size:s="md",children:r,...o},u)=>l.jsx("button",{ref:u,className:re("inline-flex items-center justify-center font-sans transition-colors duration-100","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent","disabled:opacity-40 disabled:pointer-events-none","cursor-pointer select-none",xP[n],gP[s],t),...o,children:r}));ge.displayName="Button";const bP={default:"bg-surface-4 text-text-2",accent:"bg-accent/12 text-accent",success:"bg-success/12 text-success",warning:"bg-warning/12 text-warning",danger:"bg-danger/12 text-danger",info:"bg-info/12 text-info",purple:"bg-purple/12 text-purple",orange:"bg-orange/12 text-orange"};function ze({children:t,variant:n="default",className:s,dot:r,...o}){return l.jsxs("span",{className:re("inline-flex items-center gap-1 px-1.5 py-0.5","text-2xs font-semibold uppercase tracking-wider rounded","font-sans select-none whitespace-nowrap",bP[n],s),...o,children:[r&&l.jsx("span",{className:re("w-1.5 h-1.5 rounded-full",r==="pulse"&&"animate-pulse"),style:{background:"currentColor"}}),t]})}const vP={agentNode:tv,rootNode:nv},NO=220,PO=82,Wo=260,Bo=130,Ga=4,mn="__groove_root__";function zO(){try{return JSON.parse(localStorage.getItem("groove:nodePositions")||"{}")}catch{return{}}}function yP(t){try{localStorage.setItem("groove:nodePositions",JSON.stringify(t))}catch{}}function SP(){const t=D(N=>N.teams),n=D(N=>N.activeTeamId),s=D(N=>N.agents),r=D(N=>N.switchTeam),o=D(N=>N.createTeam),u=D(N=>N.deleteTeam),d=D(N=>N.renameTeam),[O,h]=v.useState(!1),[p,x]=v.useState(""),[g,b]=v.useState(null),[y,Q]=v.useState(""),w=v.useRef(!1);function k(){const N=p.trim();!N||w.current||(w.current=!0,x(""),h(!1),o(N).finally(()=>{w.current=!1}))}function j(N){b(N.id),Q(N.name)}function z(){const N=y.trim();if(!N||!g){b(null);return}d(g,N),b(null)}return l.jsxs("div",{className:"flex items-end px-0 pt-0 pb-0 bg-surface-1 border-b border-border gap-0 flex-shrink-0",children:[t.map(N=>{const X=s.filter(T=>T.teamId===N.id).length,G=N.id===n,R=g===N.id,_=s.filter(T=>T.teamId===N.id&&(T.status==="running"||T.status==="starting")).length;return l.jsxs("div",{onClick:()=>!R&&r(N.id),onDoubleClick:()=>j(N),className:re("group relative flex items-center gap-2 px-4 h-9 text-xs font-sans cursor-pointer select-none transition-colors",G?"bg-surface-0 text-text-0 font-semibold border-x border-x-border":"text-text-3 hover:text-text-1 hover:bg-surface-3/50"),children:[G&&l.jsx("div",{className:"absolute top-0 left-0 right-0 h-px bg-accent",style:{height:"0.5px"}}),l.jsx(yi,{size:13,className:G?"text-accent":"text-text-4"}),R?l.jsx("input",{value:y,onChange:T=>Q(T.target.value),onKeyDown:T=>{T.key==="Enter"&&z(),T.key==="Escape"&&b(null)},onBlur:z,className:"h-5 w-24 px-1.5 text-xs bg-surface-0 border border-accent rounded text-text-0 font-sans focus:outline-none",autoFocus:!0,onClick:T=>T.stopPropagation()}):l.jsx("span",{className:"truncate max-w-[120px]",children:N.name}),X>0&&!R&&l.jsx("span",{className:re("flex items-center justify-center min-w-[18px] h-[18px] px-1 rounded-full text-2xs font-mono font-semibold",_>0?"bg-accent/15 text-accent":"bg-surface-4 text-text-3"),children:X}),!R&&l.jsxs("div",{className:"flex items-center gap-0.5 ml-0.5 opacity-0 group-hover:opacity-100 transition-opacity",children:[l.jsx("button",{onClick:T=>{T.stopPropagation(),j(N)},className:"p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-text-1 cursor-pointer",title:"Rename team",children:l.jsx(Wc,{size:10})}),!N.isDefault&&l.jsx("button",{onClick:T=>{T.stopPropagation(),u(N.id)},className:"p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-danger cursor-pointer",title:"Delete team",children:l.jsx(jt,{size:10})})]}),G&&l.jsx("div",{className:"absolute bottom-[-1px] left-0 right-0 h-px bg-surface-0"})]},N.id)}),O?l.jsxs("div",{className:"flex items-center gap-1.5 px-3 h-9 bg-surface-3/50",children:[l.jsx("input",{value:p,onChange:N=>x(N.target.value),onKeyDown:N=>{N.key==="Enter"&&k(),N.key==="Escape"&&(h(!1),x(""))},placeholder:"Team name...",className:"h-5 w-28 px-1.5 text-xs bg-surface-0 border border-border-subtle rounded text-text-0 font-sans placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),l.jsx("button",{onClick:k,disabled:!p.trim(),className:"p-1 rounded text-accent hover:bg-accent/10 cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed",children:l.jsx(Qt,{size:12})}),l.jsx("button",{onClick:()=>{h(!1),x("")},className:"p-1 rounded text-text-4 hover:text-text-1 cursor-pointer",children:l.jsx(jt,{size:12})})]}):l.jsx("button",{onClick:()=>h(!0),className:"flex items-center justify-center w-9 h-9 text-text-4 hover:text-text-1 hover:bg-surface-3/50 cursor-pointer transition-colors",title:"New team",children:l.jsx(es,{size:14})})]})}function QP(){const t=D(T=>T.agents),n=D(T=>T.activeTeamId),s=D(T=>T.tokenTimeline),r=D(T=>T.selectAgent),o=D(T=>T.closeDetail),u=v.useMemo(()=>t.filter(T=>T.teamId===n),[t,n]),{fitView:d}=wj(),[O,h]=v.useState(0),p=v.useMemo(()=>{const T=zO(),Y=u.filter(W=>W.status==="running").length,M=[{id:mn,type:"rootNode",position:T[mn]||{x:0,y:0},data:{agentCount:u.length,runningCount:Y},draggable:!0,selectable:!1}],ae=new Set,F=(W,P)=>`${Math.round(W/100)},${Math.round(P/100)}`,se=T[mn]||{x:0,y:0};ae.add(F(se.x,se.y));const ie=[];u.forEach((W,P)=>{const B=W.name||W.id;if(T[B]){const E=T[B];ae.add(F(E.x,E.y)),M.push({id:W.id,type:"agentNode",position:E,data:{agent:W,timeline:s[W.id]||[]},draggable:!0,selectable:!0})}else ie.push({agent:W,index:P})});for(const{agent:W,index:P}of ie){const B=Math.floor(P/Ga),E=P%Ga;let ve={x:-((Math.min(u.length-B*Ga,Ga)-1)*Wo)/2+E*Wo,y:Bo+B*Bo};for(;ae.has(F(ve.x,ve.y));)ve={x:ve.x,y:ve.y+Bo};ae.add(F(ve.x,ve.y)),M.push({id:W.id,type:"agentNode",position:ve,data:{agent:W,timeline:s[W.id]||[]},draggable:!0,selectable:!0})}return M},[u,s]),x=v.useMemo(()=>{const T=zO(),Y=T[mn]||{x:0,y:0};return u.map((M,ae)=>{const F=M.name||M.id,se=Math.floor(ae/Ga),ie=ae%Ga,P=-((Math.min(u.length-se*Ga,Ga)-1)*Wo)/2,B=T[F]||{x:P+ie*Wo,y:140+se*Bo},E=B.x+NO/2-Y.x,ce=B.y+PO/2-Y.y;let ee,ve;return Math.abs(ce)>Math.abs(E)?(ee=ce>0?"bottom":"top",ve=ce>0?"top":"bottom"):(ee=E>0?"right":"left",ve=E>0?"left":"right"),{id:`e-${mn}-${M.id}`,source:mn,target:M.id,sourceHandle:ee,targetHandle:ve,type:"default",animated:M.status==="running"}})},[u]),[g,b,y]=kj(p),[Q,w,k]=$j(x),j=v.useRef(new Set);v.useEffect(()=>{b(T=>{const Y=new Map(T.map(M=>[M.id,M]));return new Set(p.map(M=>M.id)),p.map(M=>{const ae=Y.get(M.id);return ae?{...ae,data:M.data}:M})})},[p,b]),v.useEffect(()=>{w(()=>{const T=g.find(M=>M.id===mn);if(!T)return x;const Y=T.position;return x.map(M=>{const ae=g.find(P=>P.id===M.target);if(!ae)return M;const F=ae.position.x+NO/2-Y.x,se=ae.position.y+PO/2-Y.y;let ie,W;return Math.abs(se)>Math.abs(F)?(ie=se>0?"bottom":"top",W=se>0?"top":"bottom"):(ie=F>0?"right":"left",W=F>0?"left":"right"),{...M,sourceHandle:ie,targetHandle:W}})})},[x,g,w]);const z=u.map(T=>T.id).join(","),N=v.useRef(null);v.useEffect(()=>{const T=new Set(u.map(M=>M.id)),Y=u.length>0&&[...T].some(M=>!j.current.has(M));j.current=T,O===0&&u.length>0?d({padding:.3,maxZoom:1.2,duration:0}):Y&&(clearTimeout(N.current),N.current=setTimeout(()=>d({padding:.3,maxZoom:1.2,duration:300}),500)),h(u.length)},[z,O,d]);const X=v.useCallback((T,Y)=>{Y.id!==mn&&r(Y.id)},[r]),G=v.useCallback(()=>{o()},[o]),R=v.useCallback((T,Y)=>{const M=g.find(F=>F.id===mn);if(!M)return;const ae=M.position;w(F=>F.map(se=>{const ie=se.source===Y.id,W=se.target===Y.id;if(!ie&&!W)return se;const P=Y.position,B=P.x+NO/2-ae.x,E=P.y+PO/2-ae.y;let ce,ee;return Math.abs(E)>Math.abs(B)?(ce=E>0?"bottom":"top",ee=E>0?"top":"bottom"):(ce=B>0?"right":"left",ee=B>0?"left":"right"),{...se,sourceHandle:ce,targetHandle:ee}}))},[g,w]),_=v.useCallback((T,Y)=>{const M=u.find(se=>se.id===Y.id),ae=Y.id===mn?mn:(M==null?void 0:M.name)||Y.id,F=zO();F[ae]=Y.position,yP(F)},[u]);return l.jsx(Tj,{nodes:g,edges:Q,nodeTypes:vP,onNodesChange:y,onEdgesChange:k,onNodeClick:X,onPaneClick:G,onNodeDrag:R,onNodeDragStop:_,defaultViewport:{x:0,y:0,zoom:1.2},proOptions:{hideAttribution:!0},minZoom:.2,maxZoom:1.5,className:"bg-surface-2",children:l.jsx(Nj,{color:"rgba(97,175,239,0.03)",gap:24,size:1})})}function jP({onPlanner:t,onSpawn:n}){return l.jsx("div",{className:"w-full h-full flex items-center justify-center",children:l.jsxs("div",{className:"max-w-2xl w-full text-center space-y-10 px-8",children:[l.jsxs("div",{className:"relative mx-auto w-20 h-20",children:[l.jsx("div",{className:"absolute inset-0 rounded-full bg-accent/8 animate-pulse"}),l.jsx("div",{className:"absolute inset-1 rounded-full bg-surface-3 border border-border-subtle flex items-center justify-center shadow-lg shadow-accent/5",children:l.jsx("img",{src:"/favicon.png",alt:"Groove",className:"h-10 w-10 rounded-full"})})]}),l.jsxs("div",{className:"space-y-3",children:[l.jsx("h1",{className:"text-3xl font-bold text-text-0 font-sans tracking-tight",children:"Welcome to Groove"}),l.jsx("p",{className:"text-base text-text-2 font-sans max-w-md mx-auto leading-relaxed",children:"Your mission control for AI agents. Spawn, orchestrate, and ship faster than ever."})]}),l.jsxs("div",{className:"space-y-3 max-w-xl mx-auto",children:[l.jsxs("button",{onClick:t,className:"w-full flex items-center gap-4 p-5 rounded-lg border border-accent/25 bg-gradient-to-r from-accent/8 to-accent/3 hover:from-accent/14 hover:to-accent/6 hover:border-accent/40 transition-all cursor-pointer group text-left",children:[l.jsx("div",{className:"w-12 h-12 rounded-lg bg-accent/20 flex items-center justify-center group-hover:scale-110 transition-transform flex-shrink-0",children:l.jsx(Xn,{size:24,className:"text-accent"})}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("div",{className:"text-base font-semibold text-text-0 font-sans",children:"Start with a Planner"}),l.jsx("div",{className:"text-sm text-text-2 font-sans mt-0.5",children:"Describe what you want to build and let AI plan the perfect team"})]}),l.jsx("div",{className:"text-accent text-xs font-semibold font-sans flex-shrink-0 opacity-60 group-hover:opacity-100 transition-opacity",children:"Recommended"})]}),l.jsxs("button",{onClick:n,className:"w-full flex items-center gap-3 p-4 rounded-lg border border-border bg-surface-1 hover:bg-surface-2 hover:border-border transition-all cursor-pointer group text-left",children:[l.jsx("div",{className:"w-10 h-10 rounded-lg bg-surface-4 flex items-center justify-center group-hover:scale-110 transition-transform flex-shrink-0",children:l.jsx(es,{size:20,className:"text-text-1"})}),l.jsxs("div",{className:"min-w-0",children:[l.jsx("div",{className:"text-sm font-semibold text-text-0 font-sans",children:"Spawn Agent"}),l.jsx("div",{className:"text-xs text-text-3 font-sans mt-0.5",children:"Choose a role and configure"})]})]})]}),l.jsxs("p",{className:"text-xs text-text-4 font-sans",children:[l.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+K"}),l.jsx("span",{className:"mx-1.5",children:"command palette"}),l.jsx("span",{className:"text-text-4 mx-1",children:"·"}),l.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+N"}),l.jsx("span",{className:"mx-1.5",children:"spawn"}),l.jsx("span",{className:"text-text-4 mx-1",children:"·"}),l.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+J"}),l.jsx("span",{className:"mx-1.5",children:"terminal"})]})]})})}const wP={backend:Ib,frontend:sh,fullstack:ss,testing:oh,security:Yl},kP=/^[a-zA-Z0-9_-]{1,64}$/;function $P(t){return t.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9_-]/g,"").slice(0,64)}function TP(){var y;const t=D(Q=>Q.recommendedTeam),n=D(Q=>Q.launchRecommendedTeam),[s,r]=v.useState(!1),[o,u]=v.useState(null);if(!((y=t==null?void 0:t.agents)!=null&&y.length))return null;const d=t.agents,O=d.filter(Q=>!Q.phase||Q.phase===1),h=d.filter(Q=>Q.phase===2),p=o??O.map(Q=>({...Q,name:Q.name||""}));function x(Q,w){const k=p.map((j,z)=>z===Q?{...j,name:$P(w)}:j);u(k)}async function g(){r(!0);try{const Q=[...p,...h];await n(Q)}catch{}r(!1)}function b(){D.setState({recommendedTeam:null})}return l.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-50 w-full max-w-lg",children:l.jsxs("div",{className:"mx-4 rounded-lg border border-accent/30 bg-surface-2/95 backdrop-blur-md shadow-xl shadow-accent/5 overflow-hidden",children:[l.jsxs("div",{className:"px-4 py-3 border-b border-border-subtle flex items-center gap-2",children:[l.jsx(Hb,{size:16,className:"text-accent"}),l.jsx("span",{className:"text-sm font-semibold text-text-0 font-sans flex-1",children:"Planner Recommends a Team"}),l.jsx("button",{onClick:b,className:"text-text-4 hover:text-text-1 cursor-pointer",children:l.jsx(jt,{size:14})})]}),l.jsxs("div",{className:"px-4 py-3 space-y-1.5",children:[p.map((Q,w)=>{var z;const k=wP[Q.role]||ss,j=!Q.name||kP.test(Q.name);return l.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1.5 rounded-md bg-surface-4 border border-border-subtle",children:[l.jsx(k,{size:12,className:"text-text-2 shrink-0"}),l.jsx("input",{type:"text",value:Q.name,onChange:N=>x(w,N.target.value),placeholder:Q.role,className:re("flex-1 min-w-0 bg-transparent text-xs font-mono text-text-0 outline-none placeholder:text-text-4",!j&&"text-red-400"),maxLength:64,spellCheck:!1}),((z=Q.scope)==null?void 0:z.length)>0&&l.jsxs("span",{className:"text-2xs text-text-4 font-mono shrink-0 truncate max-w-[120px]",children:[Q.scope[0],Q.scope.length>1?` +${Q.scope.length-1}`:""]})]},w)}),t.projectDir&&l.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-2 font-mono pt-0.5",children:[l.jsx("span",{className:"text-text-4",children:"Project:"}),l.jsxs("span",{className:"text-accent",children:[t.projectDir,"/"]})]}),h.length>0&&l.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-3 font-sans",children:[l.jsx(Yl,{size:10}),l.jsxs("span",{children:[h.length," QC agent",h.length>1?"s":""," will auto-spawn after builders complete"]})]})]}),l.jsx("div",{className:"px-4 py-3 border-t border-border-subtle",children:l.jsxs(ge,{variant:"primary",size:"md",onClick:g,disabled:s,className:"w-full gap-2",children:[l.jsx(Xn,{size:14}),s?"Launching...":`Launch ${O.length} Agent${O.length>1?"s":""}`]})})]})})}function u1(){const t=D(b=>b.agents),n=D(b=>b.activeTeamId),s=D(b=>b.openDetail),r=D(b=>b.spawnAgent),o=D(b=>b.selectAgent);D(b=>b.recommendedTeam);const u=D(b=>b.checkRecommendedTeam);v.useEffect(()=>{if(!t.some(Q=>Q.role==="planner"&&(Q.status==="running"||Q.status==="starting")))return;const y=setInterval(()=>u(),5e3);return()=>clearInterval(y)},[t,u]);async function d(){try{const b=await r({role:"planner"});b!=null&&b.id&&o(b.id)}catch{}}const O=t.filter(b=>b.teamId===n),h=D(b=>b.hydrated),[p,x]=v.useState(!0);v.useEffect(()=>{const b=setTimeout(()=>x(!1),1200);return()=>clearTimeout(b)},[]);const g=p||!h;return l.jsxs("div",{className:"flex flex-col h-full relative",children:[l.jsx(SP,{}),l.jsx("div",{className:"flex-1 min-h-0",children:g?l.jsxs("div",{className:re("flex flex-col items-center justify-center h-full transition-opacity duration-500",!p&&h?"opacity-0":"opacity-100"),children:[l.jsxs("div",{className:"relative w-12 h-12 mb-5",children:[l.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-accent/20 animate-ping",style:{animationDuration:"2s"}}),l.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-transparent border-t-accent animate-spin",style:{animationDuration:"1s"}}),l.jsx("span",{className:"absolute inset-[6px] rounded-full bg-accent/8 flex items-center justify-center",children:l.jsx(Xn,{size:16,className:"text-accent animate-pulse"})})]}),l.jsx("p",{className:"text-sm font-medium text-text-1 font-sans animate-pulse",children:"Connecting to agents"}),l.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Syncing with daemon..."})]}):O.length===0?l.jsx(jP,{onPlanner:d,onSpawn:()=>s({type:"spawn"})}):l.jsx(jj,{children:l.jsx(QP,{})})}),l.jsx(TP,{})]})}var NP=v.createContext(void 0);function uh(t){const n=v.useContext(NP);return t||n||"ltr"}function PP(t,[n,s]){return Math.min(s,Math.max(n,t))}function zP(t,n){return v.useReducer((s,r)=>n[s][r]??s,t)}var dh="ScrollArea",[av]=As(dh),[RP,cn]=av(dh),sv=v.forwardRef((t,n)=>{const{__scopeScrollArea:s,type:r="hover",dir:o,scrollHideDelay:u=600,...d}=t,[O,h]=v.useState(null),[p,x]=v.useState(null),[g,b]=v.useState(null),[y,Q]=v.useState(null),[w,k]=v.useState(null),[j,z]=v.useState(0),[N,X]=v.useState(0),[G,R]=v.useState(!1),[_,T]=v.useState(!1),Y=it(n,ae=>h(ae)),M=uh(o);return l.jsx(RP,{scope:s,type:r,dir:M,scrollHideDelay:u,scrollArea:O,viewport:p,onViewportChange:x,content:g,onContentChange:b,scrollbarX:y,onScrollbarXChange:Q,scrollbarXEnabled:G,onScrollbarXEnabledChange:R,scrollbarY:w,onScrollbarYChange:k,scrollbarYEnabled:_,onScrollbarYEnabledChange:T,onCornerWidthChange:z,onCornerHeightChange:X,children:l.jsx(Be.div,{dir:M,...d,ref:Y,style:{position:"relative","--radix-scroll-area-corner-width":j+"px","--radix-scroll-area-corner-height":N+"px",...t.style}})})});sv.displayName=dh;var lv="ScrollAreaViewport",rv=v.forwardRef((t,n)=>{const{__scopeScrollArea:s,children:r,nonce:o,...u}=t,d=cn(lv,s),O=v.useRef(null),h=it(n,O,d.onViewportChange);return l.jsxs(l.Fragment,{children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),l.jsx(Be.div,{"data-radix-scroll-area-viewport":"",...u,ref:h,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...t.style},children:l.jsx("div",{ref:d.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});rv.displayName=lv;var An="ScrollAreaScrollbar",iv=v.forwardRef((t,n)=>{const{forceMount:s,...r}=t,o=cn(An,t.__scopeScrollArea),{onScrollbarXEnabledChange:u,onScrollbarYEnabledChange:d}=o,O=t.orientation==="horizontal";return v.useEffect(()=>(O?u(!0):d(!0),()=>{O?u(!1):d(!1)}),[O,u,d]),o.type==="hover"?l.jsx(CP,{...r,ref:n,forceMount:s}):o.type==="scroll"?l.jsx(_P,{...r,ref:n,forceMount:s}):o.type==="auto"?l.jsx(ov,{...r,ref:n,forceMount:s}):o.type==="always"?l.jsx(Oh,{...r,ref:n}):null});iv.displayName=An;var CP=v.forwardRef((t,n)=>{const{forceMount:s,...r}=t,o=cn(An,t.__scopeScrollArea),[u,d]=v.useState(!1);return v.useEffect(()=>{const O=o.scrollArea;let h=0;if(O){const p=()=>{window.clearTimeout(h),d(!0)},x=()=>{h=window.setTimeout(()=>d(!1),o.scrollHideDelay)};return O.addEventListener("pointerenter",p),O.addEventListener("pointerleave",x),()=>{window.clearTimeout(h),O.removeEventListener("pointerenter",p),O.removeEventListener("pointerleave",x)}}},[o.scrollArea,o.scrollHideDelay]),l.jsx(yn,{present:s||u,children:l.jsx(ov,{"data-state":u?"visible":"hidden",...r,ref:n})})}),_P=v.forwardRef((t,n)=>{const{forceMount:s,...r}=t,o=cn(An,t.__scopeScrollArea),u=t.orientation==="horizontal",d=Fc(()=>h("SCROLL_END"),100),[O,h]=zP("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(O==="idle"){const p=window.setTimeout(()=>h("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(p)}},[O,o.scrollHideDelay,h]),v.useEffect(()=>{const p=o.viewport,x=u?"scrollLeft":"scrollTop";if(p){let g=p[x];const b=()=>{const y=p[x];g!==y&&(h("SCROLL"),d()),g=y};return p.addEventListener("scroll",b),()=>p.removeEventListener("scroll",b)}},[o.viewport,u,h,d]),l.jsx(yn,{present:s||O!=="hidden",children:l.jsx(Oh,{"data-state":O==="hidden"?"hidden":"visible",...r,ref:n,onPointerEnter:qe(t.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:qe(t.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),ov=v.forwardRef((t,n)=>{const s=cn(An,t.__scopeScrollArea),{forceMount:r,...o}=t,[u,d]=v.useState(!1),O=t.orientation==="horizontal",h=Fc(()=>{if(s.viewport){const p=s.viewport.offsetWidth<s.viewport.scrollWidth,x=s.viewport.offsetHeight<s.viewport.scrollHeight;d(O?p:x)}},10);return Vl(s.viewport,h),Vl(s.content,h),l.jsx(yn,{present:r||u,children:l.jsx(Oh,{"data-state":u?"visible":"hidden",...o,ref:n})})}),Oh=v.forwardRef((t,n)=>{const{orientation:s="vertical",...r}=t,o=cn(An,t.__scopeScrollArea),u=v.useRef(null),d=v.useRef(0),[O,h]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=fv(O.viewport,O.content),x={...r,sizes:O,onSizesChange:h,hasThumb:p>0&&p<1,onThumbChange:b=>u.current=b,onThumbPointerUp:()=>d.current=0,onThumbPointerDown:b=>d.current=b};function g(b,y){return MP(b,d.current,O,y)}return s==="horizontal"?l.jsx(XP,{...x,ref:n,onThumbPositionChange:()=>{if(o.viewport&&u.current){const b=o.viewport.scrollLeft,y=d1(b,O,o.dir);u.current.style.transform=`translate3d(${y}px, 0, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollLeft=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollLeft=g(b,o.dir))}}):s==="vertical"?l.jsx(AP,{...x,ref:n,onThumbPositionChange:()=>{if(o.viewport&&u.current){const b=o.viewport.scrollTop,y=d1(b,O);u.current.style.transform=`translate3d(0, ${y}px, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollTop=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollTop=g(b))}}):null}),XP=v.forwardRef((t,n)=>{const{sizes:s,onSizesChange:r,...o}=t,u=cn(An,t.__scopeScrollArea),[d,O]=v.useState(),h=v.useRef(null),p=it(n,h,u.onScrollbarXChange);return v.useEffect(()=>{h.current&&O(getComputedStyle(h.current))},[h]),l.jsx(uv,{"data-orientation":"horizontal",...o,ref:p,sizes:s,style:{bottom:0,left:u.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:u.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Ic(s)+"px",...t.style},onThumbPointerDown:x=>t.onThumbPointerDown(x.x),onDragScroll:x=>t.onDragScroll(x.x),onWheelScroll:(x,g)=>{if(u.viewport){const b=u.viewport.scrollLeft+x.deltaX;t.onWheelScroll(b),mv(b,g)&&x.preventDefault()}},onResize:()=>{h.current&&u.viewport&&d&&r({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:Qc(d.paddingLeft),paddingEnd:Qc(d.paddingRight)}})}})}),AP=v.forwardRef((t,n)=>{const{sizes:s,onSizesChange:r,...o}=t,u=cn(An,t.__scopeScrollArea),[d,O]=v.useState(),h=v.useRef(null),p=it(n,h,u.onScrollbarYChange);return v.useEffect(()=>{h.current&&O(getComputedStyle(h.current))},[h]),l.jsx(uv,{"data-orientation":"vertical",...o,ref:p,sizes:s,style:{top:0,right:u.dir==="ltr"?0:void 0,left:u.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Ic(s)+"px",...t.style},onThumbPointerDown:x=>t.onThumbPointerDown(x.y),onDragScroll:x=>t.onDragScroll(x.y),onWheelScroll:(x,g)=>{if(u.viewport){const b=u.viewport.scrollTop+x.deltaY;t.onWheelScroll(b),mv(b,g)&&x.preventDefault()}},onResize:()=>{h.current&&u.viewport&&d&&r({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:Qc(d.paddingTop),paddingEnd:Qc(d.paddingBottom)}})}})}),[ZP,cv]=av(An),uv=v.forwardRef((t,n)=>{const{__scopeScrollArea:s,sizes:r,hasThumb:o,onThumbChange:u,onThumbPointerUp:d,onThumbPointerDown:O,onThumbPositionChange:h,onDragScroll:p,onWheelScroll:x,onResize:g,...b}=t,y=cn(An,s),[Q,w]=v.useState(null),k=it(n,Y=>w(Y)),j=v.useRef(null),z=v.useRef(""),N=y.viewport,X=r.content-r.viewport,G=Rt(x),R=Rt(h),_=Fc(g,10);function T(Y){if(j.current){const M=Y.clientX-j.current.left,ae=Y.clientY-j.current.top;p({x:M,y:ae})}}return v.useEffect(()=>{const Y=M=>{const ae=M.target;(Q==null?void 0:Q.contains(ae))&&G(M,X)};return document.addEventListener("wheel",Y,{passive:!1}),()=>document.removeEventListener("wheel",Y,{passive:!1})},[N,Q,X,G]),v.useEffect(R,[r,R]),Vl(Q,_),Vl(y.content,_),l.jsx(ZP,{scope:s,scrollbar:Q,hasThumb:o,onThumbChange:Rt(u),onThumbPointerUp:Rt(d),onThumbPositionChange:R,onThumbPointerDown:Rt(O),children:l.jsx(Be.div,{...b,ref:k,style:{position:"absolute",...b.style},onPointerDown:qe(t.onPointerDown,Y=>{Y.button===0&&(Y.target.setPointerCapture(Y.pointerId),j.current=Q.getBoundingClientRect(),z.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",y.viewport&&(y.viewport.style.scrollBehavior="auto"),T(Y))}),onPointerMove:qe(t.onPointerMove,T),onPointerUp:qe(t.onPointerUp,Y=>{const M=Y.target;M.hasPointerCapture(Y.pointerId)&&M.releasePointerCapture(Y.pointerId),document.body.style.webkitUserSelect=z.current,y.viewport&&(y.viewport.style.scrollBehavior=""),j.current=null})})})}),Sc="ScrollAreaThumb",dv=v.forwardRef((t,n)=>{const{forceMount:s,...r}=t,o=cv(Sc,t.__scopeScrollArea);return l.jsx(yn,{present:s||o.hasThumb,children:l.jsx(EP,{ref:n,...r})})}),EP=v.forwardRef((t,n)=>{const{__scopeScrollArea:s,style:r,...o}=t,u=cn(Sc,s),d=cv(Sc,s),{onThumbPositionChange:O}=d,h=it(n,g=>d.onThumbChange(g)),p=v.useRef(void 0),x=Fc(()=>{p.current&&(p.current(),p.current=void 0)},100);return v.useEffect(()=>{const g=u.viewport;if(g){const b=()=>{if(x(),!p.current){const y=YP(g,O);p.current=y,O()}};return O(),g.addEventListener("scroll",b),()=>g.removeEventListener("scroll",b)}},[u.viewport,x,O]),l.jsx(Be.div,{"data-state":d.hasThumb?"visible":"hidden",...o,ref:h,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:qe(t.onPointerDownCapture,g=>{const y=g.target.getBoundingClientRect(),Q=g.clientX-y.left,w=g.clientY-y.top;d.onThumbPointerDown({x:Q,y:w})}),onPointerUp:qe(t.onPointerUp,d.onThumbPointerUp)})});dv.displayName=Sc;var fh="ScrollAreaCorner",Ov=v.forwardRef((t,n)=>{const s=cn(fh,t.__scopeScrollArea),r=!!(s.scrollbarX&&s.scrollbarY);return s.type!=="scroll"&&r?l.jsx(qP,{...t,ref:n}):null});Ov.displayName=fh;var qP=v.forwardRef((t,n)=>{const{__scopeScrollArea:s,...r}=t,o=cn(fh,s),[u,d]=v.useState(0),[O,h]=v.useState(0),p=!!(u&&O);return Vl(o.scrollbarX,()=>{var g;const x=((g=o.scrollbarX)==null?void 0:g.offsetHeight)||0;o.onCornerHeightChange(x),h(x)}),Vl(o.scrollbarY,()=>{var g;const x=((g=o.scrollbarY)==null?void 0:g.offsetWidth)||0;o.onCornerWidthChange(x),d(x)}),p?l.jsx(Be.div,{...r,ref:n,style:{width:u,height:O,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...t.style}}):null});function Qc(t){return t?parseInt(t,10):0}function fv(t,n){const s=t/n;return isNaN(s)?0:s}function Ic(t){const n=fv(t.viewport,t.content),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,r=(t.scrollbar.size-s)*n;return Math.max(r,18)}function MP(t,n,s,r="ltr"){const o=Ic(s),u=o/2,d=n||u,O=o-d,h=s.scrollbar.paddingStart+d,p=s.scrollbar.size-s.scrollbar.paddingEnd-O,x=s.content-s.viewport,g=r==="ltr"?[0,x]:[x*-1,0];return hv([h,p],g)(t)}function d1(t,n,s="ltr"){const r=Ic(n),o=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,u=n.scrollbar.size-o,d=n.content-n.viewport,O=u-r,h=s==="ltr"?[0,d]:[d*-1,0],p=PP(t,h);return hv([0,d],[0,O])(p)}function hv(t,n){return s=>{if(t[0]===t[1]||n[0]===n[1])return n[0];const r=(n[1]-n[0])/(t[1]-t[0]);return n[0]+r*(s-t[0])}}function mv(t,n){return t>0&&t<n}var YP=(t,n=()=>{})=>{let s={left:t.scrollLeft,top:t.scrollTop},r=0;return(function o(){const u={left:t.scrollLeft,top:t.scrollTop},d=s.left!==u.left,O=s.top!==u.top;(d||O)&&n(),s=u,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)};function Fc(t,n){const s=Rt(t),r=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),v.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(s,n)},[s,n])}function Vl(t,n){const s=Rt(n);ca(()=>{let r=0;if(t){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(s)});return o.observe(t),()=>{window.cancelAnimationFrame(r),o.unobserve(t)}}},[t,s])}var UP=sv,VP=rv,O1=iv,f1=dv,GP=Ov;function ma({children:t,className:n,...s}){return l.jsxs(UP,{className:re("overflow-hidden",n),...s,children:[l.jsx(VP,{className:"h-full w-full rounded-[inherit]",children:t}),l.jsx(O1,{orientation:"vertical",className:"flex touch-none select-none p-0.5 transition-colors w-2",children:l.jsx(f1,{className:"relative flex-1 rounded-full bg-surface-5 hover:bg-surface-6"})}),l.jsx(O1,{orientation:"horizontal",className:"flex touch-none select-none flex-col p-0.5 transition-colors h-2",children:l.jsx(f1,{className:"relative flex-1 rounded-full bg-surface-5 hover:bg-surface-6"})}),l.jsx(GP,{})]})}const LP={js:"text-warning",jsx:"text-warning",ts:"text-info",tsx:"text-info",css:"text-info",html:"text-orange",json:"text-warning",md:"text-text-2",py:"text-success",rs:"text-orange",go:"text-accent",sh:"text-success",yaml:"text-danger",yml:"text-danger",sql:"text-purple",xml:"text-orange",svg:"text-warning"};function DP(t){var s;const n=(s=t.split(".").pop())==null?void 0:s.toLowerCase();return LP[n]||"text-text-3"}function WP({x:t,y:n,items:s,onClose:r}){const o=v.useRef(null);return v.useEffect(()=>{function u(d){o.current&&!o.current.contains(d.target)&&r()}return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[r]),l.jsx("div",{ref:o,className:"fixed z-50 min-w-[160px] py-1 bg-surface-2 border border-border rounded-lg shadow-xl",style:{left:t,top:n},children:s.map((u,d)=>u.separator?l.jsx("div",{className:"h-px bg-border-subtle my-1"},d):l.jsxs("button",{onClick:()=>{u.action(),r()},className:re("w-full flex items-center gap-2.5 px-3 py-1.5 text-xs font-sans text-left cursor-pointer transition-colors",u.danger?"text-danger hover:bg-danger/10":"text-text-1 hover:bg-surface-5"),children:[u.icon&&l.jsx(u.icon,{size:12,className:u.danger?"text-danger":"text-text-3"}),u.label]},d))})}function jc({defaultValue:t="",placeholder:n,onSubmit:s,onCancel:r,depth:o=0}){const[u,d]=v.useState(t),O=v.useRef(null);v.useEffect(()=>{var p,x;(p=O.current)==null||p.focus(),t&&((x=O.current)==null||x.select())},[t]);function h(p){if(p.key==="Enter"){const x=u.trim();x&&s(x)}p.key==="Escape"&&r()}return l.jsx("div",{className:"flex items-center py-0.5",style:{paddingLeft:o*16+8},children:l.jsx("input",{ref:O,value:u,onChange:p=>d(p.target.value),onKeyDown:h,onBlur:r,placeholder:n,className:"w-full h-5 px-1.5 text-xs bg-surface-0 border border-accent rounded text-text-0 font-sans focus:outline-none"})})}function pv({entry:t,depth:n=0,activePath:s,onFileClick:r,onDirToggle:o,expanded:u,onContextMenu:d}){const O=t.type==="dir",h=s===t.path,p=u.has(t.path),x=n*16+8;function g(b){b.preventDefault(),b.stopPropagation(),d(b,t)}return l.jsxs("button",{onClick:()=>O?o(t.path):r(t.path),onContextMenu:g,className:re("w-full flex items-center gap-1.5 py-1 text-xs font-sans cursor-pointer","hover:bg-surface-5 transition-colors text-left select-none",h&&"bg-accent/10 text-text-0",!h&&"text-text-1"),style:{paddingLeft:x},children:[O?l.jsxs(l.Fragment,{children:[p?l.jsx(zn,{size:12,className:"text-text-4 flex-shrink-0"}):l.jsx(as,{size:12,className:"text-text-4 flex-shrink-0"}),p?l.jsx(li,{size:14,className:"text-accent flex-shrink-0"}):l.jsx(Mb,{size:14,className:"text-text-3 flex-shrink-0"})]}):l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"w-3"}),l.jsx(cT,{size:14,className:re("flex-shrink-0",DP(t.name))})]}),l.jsx("span",{className:"truncate",children:t.name})]})}function xv({dirPath:t,depth:n,activePath:s,onFileClick:r,expanded:o,onDirToggle:u,treeCache:d,fetchTreeDir:O,onContextMenu:h,inlineInput:p}){const x=d[t]||[];return v.useEffect(()=>{o.has(t)&&!d[t]&&O(t)},[o,t,d,O]),o.has(t)?l.jsxs(l.Fragment,{children:[(p==null?void 0:p.parentPath)===t&&l.jsx(jc,{placeholder:p.type==="file"?"filename.ext":"folder-name",onSubmit:p.onSubmit,onCancel:p.onCancel,depth:n}),x.map(g=>l.jsxs("div",{children:[(p==null?void 0:p.renamePath)===g.path?l.jsx(jc,{defaultValue:g.name,onSubmit:p.onSubmit,onCancel:p.onCancel,depth:n}):l.jsx(pv,{entry:g,depth:n,activePath:s,onFileClick:r,onDirToggle:u,expanded:o,onContextMenu:h}),g.type==="dir"&&l.jsx(xv,{dirPath:g.path,depth:n+1,activePath:s,onFileClick:r,expanded:o,onDirToggle:u,treeCache:d,fetchTreeDir:O,onContextMenu:h,inlineInput:p})]},g.path))]}):null}function BP({rootDir:t}){const n=D(T=>T.editorTreeCache),s=D(T=>T.editorActiveFile),r=D(T=>T.openFile),o=D(T=>T.fetchTreeDir),u=D(T=>T.addToast),[d,O]=v.useState(new Set([""])),[h,p]=v.useState(""),[x,g]=v.useState(null),[b,y]=v.useState(null);v.useEffect(()=>{o("")},[o,t]);function Q(T){O(Y=>{const M=new Set(Y);return M.has(T)?M.delete(T):M.add(T),M})}function w(T,Y){g({x:T.clientX,y:T.clientY,entry:Y})}function k(T){T.preventDefault(),g({x:T.clientX,y:T.clientY,entry:{type:"dir",path:"",name:"root"}})}function j(T){const Y=T.split("/");return Y.pop(),Y.join("/")}async function z(T){O(Y=>new Set([...Y,T])),y({type:"file",parentPath:T,onSubmit:async Y=>{const M=T?`${T}/${Y}`:Y;try{await K.post("/files/create",{path:M,content:""}),o(T),r(M),u("success",`Created ${Y}`)}catch(ae){u("error","Create failed",ae.message)}y(null)},onCancel:()=>y(null)})}async function N(T){O(Y=>new Set([...Y,T])),y({type:"folder",parentPath:T,onSubmit:async Y=>{const M=T?`${T}/${Y}`:Y;try{await K.post("/files/mkdir",{path:M}),o(T),O(ae=>new Set([...ae,M])),u("success",`Created ${Y}/`)}catch(ae){u("error","Create folder failed",ae.message)}y(null)},onCancel:()=>y(null)})}async function X(T){y({type:"rename",renamePath:T.path,onSubmit:async Y=>{const M=j(T.path),ae=M?`${M}/${Y}`:Y;try{await K.post("/files/rename",{oldPath:T.path,newPath:ae}),o(M),u("success",`Renamed to ${Y}`)}catch(F){u("error","Rename failed",F.message)}y(null)},onCancel:()=>y(null)})}async function G(T){const Y=T.type==="dir"?`folder "${T.name}" and all contents`:`"${T.name}"`;if(window.confirm(`Delete ${Y}?`))try{await K.delete(`/files/delete?path=${encodeURIComponent(T.path)}`),o(j(T.path)),u("success",`Deleted ${T.name}`)}catch(M){u("error","Delete failed",M.message)}}function R(T){const Y=T.type==="dir",M=[];return Y&&(M.push({icon:kO,label:"New File",action:()=>z(T.path)}),M.push({icon:$O,label:"New Folder",action:()=>N(T.path)})),T.name!=="root"?(M.length>0&&M.push({separator:!0}),M.push({icon:Wc,label:"Rename",action:()=>X(T)}),M.push({icon:_n,label:"Delete",danger:!0,action:()=>G(T)})):(M.length=0,M.push({icon:kO,label:"New File",action:()=>z("")}),M.push({icon:$O,label:"New Folder",action:()=>N("")})),M}const _=n[""]||[];return l.jsxs("div",{className:"flex flex-col h-full bg-surface-1",onContextMenu:k,children:[l.jsxs("div",{className:"flex items-center gap-1 px-2 py-1.5 border-b border-border-subtle",children:[l.jsxs("div",{className:"flex-1 relative",children:[l.jsx(fa,{size:12,className:"absolute left-2 top-1/2 -translate-y-1/2 text-text-4"}),l.jsx("input",{value:h,onChange:T=>p(T.target.value),placeholder:"Filter...",className:"w-full h-6 pl-6 pr-2 text-xs bg-surface-0 border border-border-subtle rounded text-text-1 placeholder:text-text-4 focus:outline-none focus:border-accent font-sans"})]}),l.jsx("button",{onClick:()=>z(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"New file",children:l.jsx(kO,{size:12})}),l.jsx("button",{onClick:()=>N(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"New folder",children:l.jsx($O,{size:12})}),l.jsx("button",{onClick:()=>o(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"Refresh",children:l.jsx(Cn,{size:12})})]}),l.jsx(ma,{className:"flex-1",children:l.jsxs("div",{className:"py-1",children:[(b==null?void 0:b.parentPath)===""&&l.jsx(jc,{placeholder:b.type==="file"?"filename.ext":"folder-name",onSubmit:b.onSubmit,onCancel:b.onCancel,depth:0}),_.filter(T=>!h||T.name.toLowerCase().includes(h.toLowerCase())).map(T=>l.jsxs("div",{children:[(b==null?void 0:b.renamePath)===T.path?l.jsx(jc,{defaultValue:T.name,onSubmit:b.onSubmit,onCancel:b.onCancel,depth:0}):l.jsx(pv,{entry:T,depth:0,activePath:s,onFileClick:r,onDirToggle:Q,expanded:d,onContextMenu:w}),T.type==="dir"&&l.jsx(xv,{dirPath:T.path,depth:1,activePath:s,onFileClick:r,expanded:d,onDirToggle:Q,treeCache:n,fetchTreeDir:o,onContextMenu:w,inlineInput:b})]},T.path))]})}),x&&l.jsx(WP,{x:x.x,y:x.y,items:R(x.entry),onClose:()=>g(null)})]})}function HP(){const t=D(u=>u.editorOpenTabs),n=D(u=>u.editorActiveFile),s=D(u=>u.editorFiles),r=D(u=>u.setActiveFile),o=D(u=>u.closeFile);return t.length===0?null:l.jsx("div",{className:"flex items-center h-8 bg-surface-3 border-b border-border overflow-x-auto flex-shrink-0",children:t.map(u=>{const d=u===n,O=s[u],h=O&&O.content!==O.originalContent,p=u.split("/").pop();return l.jsxs("div",{className:re("flex items-center gap-1.5 h-full px-3 text-xs font-sans cursor-pointer select-none","border-r border-border-subtle","transition-colors duration-75",d?"bg-surface-2 text-text-0 border-b-2 border-b-accent":"bg-surface-3 text-text-3 hover:text-text-1 hover:bg-surface-4"),onClick:()=>r(u),children:[l.jsx("span",{className:"truncate max-w-[120px]",children:p}),h&&l.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-warning flex-shrink-0"}),l.jsx("button",{onClick:x=>{x.stopPropagation(),o(u)},className:"p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-text-1 transition-colors cursor-pointer ml-0.5",children:l.jsx(jt,{size:12})})]},u)})})}var h1={};class wc{constructor(n,s,r,o,u,d,O,h,p,x=0,g){this.p=n,this.stack=s,this.state=r,this.reducePos=o,this.pos=u,this.score=d,this.buffer=O,this.bufferBase=h,this.curContext=p,this.lookAhead=x,this.parent=g}toString(){return`[${this.stack.filter((n,s)=>s%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(n,s,r=0){let o=n.parser.context;return new wc(n,[],s,r,r,0,[],0,o?new m1(o,o.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(n,s){this.stack.push(this.state,s,this.bufferBase+this.buffer.length),this.state=n}reduce(n){var s;let r=n>>19,o=n&65535,{parser:u}=this.p,d=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),O=u.dynamicPrecedence(o);if(O&&(this.score+=O),r==0){this.pushState(u.getGoto(this.state,o,!0),this.reducePos),o<u.minRepeatTerm&&this.storeNode(o,this.reducePos,this.reducePos,d?8:4,!0),this.reduceContext(o,this.reducePos);return}let h=this.stack.length-(r-1)*3-(n&262144?6:0),p=h?this.stack[h-2]:this.p.ranges[0].from,x=this.reducePos-p;x>=2e3&&!(!((s=this.p.parser.nodeSet.types[o])===null||s===void 0)&&s.isAnonymous)&&(p==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=x):this.p.lastBigReductionSize<x&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=p,this.p.lastBigReductionSize=x));let g=h?this.stack[h-1]:0,b=this.bufferBase+this.buffer.length-g;if(o<u.minRepeatTerm||n&131072){let y=u.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(o,p,y,b+4,!0)}if(n&262144)this.state=this.stack[h];else{let y=this.stack[h-3];this.state=u.getGoto(y,o,!0)}for(;this.stack.length>h;)this.stack.pop();this.reduceContext(o,p)}storeNode(n,s,r,o=4,u=!1){if(n==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let d=this,O=this.buffer.length;if(O==0&&d.parent&&(O=d.bufferBase-d.parent.bufferBase,d=d.parent),O>0&&d.buffer[O-4]==0&&d.buffer[O-1]>-1){if(s==r)return;if(d.buffer[O-2]>=s){d.buffer[O-2]=r;return}}}if(!u||this.pos==r)this.buffer.push(n,s,r,o);else{let d=this.buffer.length;if(d>0&&(this.buffer[d-4]!=0||this.buffer[d-1]<0)){let O=!1;for(let h=d;h>0&&this.buffer[h-2]>r;h-=4)if(this.buffer[h-1]>=0){O=!0;break}if(O)for(;d>0&&this.buffer[d-2]>r;)this.buffer[d]=this.buffer[d-4],this.buffer[d+1]=this.buffer[d-3],this.buffer[d+2]=this.buffer[d-2],this.buffer[d+3]=this.buffer[d-1],d-=4,o>4&&(o-=4)}this.buffer[d]=n,this.buffer[d+1]=s,this.buffer[d+2]=r,this.buffer[d+3]=o}}shift(n,s,r,o){if(n&131072)this.pushState(n&65535,this.pos);else if((n&262144)==0){let u=n,{parser:d}=this.p;this.pos=o;let O=d.stateFlag(u,1);!O&&(o>r||s<=d.maxNode)&&(this.reducePos=o),this.pushState(u,O?r:Math.min(r,this.reducePos)),this.shiftContext(s,r),s<=d.maxNode&&this.buffer.push(s,r,o,4)}else this.pos=o,this.shiftContext(s,r),s<=this.p.parser.maxNode&&this.buffer.push(s,r,o,4)}apply(n,s,r,o){n&65536?this.reduce(n):this.shift(n,s,r,o)}useNode(n,s){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=n)&&(this.p.reused.push(n),r++);let o=this.pos;this.reducePos=this.pos=o+n.length,this.pushState(s,o),this.buffer.push(r,o,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,n,this,this.p.stream.reset(this.pos-n.length)))}split(){let n=this,s=n.buffer.length;for(;s>0&&n.buffer[s-2]>n.reducePos;)s-=4;let r=n.buffer.slice(s),o=n.bufferBase+s;for(;n&&o==n.bufferBase;)n=n.parent;return new wc(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,o,this.curContext,this.lookAhead,n)}recoverByDelete(n,s){let r=n<=this.p.parser.maxNode;r&&this.storeNode(n,this.pos,s,4),this.storeNode(0,this.pos,s,r?8:4),this.pos=this.reducePos=s,this.score-=190}canShift(n){for(let s=new IP(this);;){let r=this.p.parser.stateSlot(s.state,4)||this.p.parser.hasAction(s.state,n);if(r==0)return!1;if((r&65536)==0)return!0;s.reduce(r)}}recoverByInsert(n){if(this.stack.length>=300)return[];let s=this.p.parser.nextStates(this.state);if(s.length>8||this.stack.length>=120){let o=[];for(let u=0,d;u<s.length;u+=2)(d=s[u+1])!=this.state&&this.p.parser.hasAction(d,n)&&o.push(s[u],d);if(this.stack.length<120)for(let u=0;o.length<8&&u<s.length;u+=2){let d=s[u+1];o.some((O,h)=>h&1&&O==d)||o.push(s[u],d)}s=o}let r=[];for(let o=0;o<s.length&&r.length<4;o+=2){let u=s[o+1];if(u==this.state)continue;let d=this.split();d.pushState(u,this.pos),d.storeNode(0,d.pos,d.pos,4,!0),d.shiftContext(s[o],this.pos),d.reducePos=this.pos,d.score-=200,r.push(d)}return r}forceReduce(){let{parser:n}=this.p,s=n.stateSlot(this.state,5);if((s&65536)==0)return!1;if(!n.validAction(this.state,s)){let r=s>>19,o=s&65535,u=this.stack.length-r*3;if(u<0||n.getGoto(this.stack[u],o,!1)<0){let d=this.findForcedReduction();if(d==null)return!1;s=d}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(s),!0}findForcedReduction(){let{parser:n}=this.p,s=[],r=(o,u)=>{if(!s.includes(o))return s.push(o),n.allActions(o,d=>{if(!(d&393216))if(d&65536){let O=(d>>19)-u;if(O>1){let h=d&65535,p=this.stack.length-O*3;if(p>=0&&n.getGoto(this.stack[p],h,!1)>=0)return O<<19|65536|h}}else{let O=r(d,u+1);if(O!=null)return O}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:n}=this.p;return n.data[n.stateSlot(this.state,1)]==65535&&!n.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(n){if(this.state!=n.state||this.stack.length!=n.stack.length)return!1;for(let s=0;s<this.stack.length;s+=3)if(this.stack[s]!=n.stack[s])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(n){return this.p.parser.dialect.flags[n]}shiftContext(n,s){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,n,this,this.p.stream.reset(s)))}reduceContext(n,s){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,n,this,this.p.stream.reset(s)))}emitContext(){let n=this.buffer.length-1;(n<0||this.buffer[n]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let n=this.buffer.length-1;(n<0||this.buffer[n]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(n){if(n!=this.curContext.context){let s=new m1(this.curContext.tracker,n);s.hash!=this.curContext.hash&&this.emitContext(),this.curContext=s}}setLookAhead(n){return n<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=n,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class m1{constructor(n,s){this.tracker=n,this.context=s,this.hash=n.strict?n.hash(s):0}}class IP{constructor(n){this.start=n,this.state=n.state,this.stack=n.stack,this.base=this.stack.length}reduce(n){let s=n&65535,r=n>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let o=this.start.p.parser.getGoto(this.stack[this.base-3],s,!0);this.state=o}}class kc{constructor(n,s,r){this.stack=n,this.pos=s,this.index=r,this.buffer=n.buffer,this.index==0&&this.maybeNext()}static create(n,s=n.bufferBase+n.buffer.length){return new kc(n,s,s-n.bufferBase)}maybeNext(){let n=this.stack.parent;n!=null&&(this.index=this.stack.bufferBase-n.bufferBase,this.stack=n,this.buffer=n.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new kc(this.stack,this.pos,this.index)}}function Fr(t,n=Uint16Array){if(typeof t!="string")return t;let s=null;for(let r=0,o=0;r<t.length;){let u=0;for(;;){let d=t.charCodeAt(r++),O=!1;if(d==126){u=65535;break}d>=92&&d--,d>=34&&d--;let h=d-32;if(h>=46&&(h-=46,O=!0),u+=h,O)break;u*=46}s?s[o++]=u:s=new n(u)}return s}class rc{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const p1=new rc;class FP{constructor(n,s){this.input=n,this.ranges=s,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=p1,this.rangeIndex=0,this.pos=this.chunkPos=s[0].from,this.range=s[0],this.end=s[s.length-1].to,this.readNext()}resolveOffset(n,s){let r=this.range,o=this.rangeIndex,u=this.pos+n;for(;u<r.from;){if(!o)return null;let d=this.ranges[--o];u-=r.from-d.to,r=d}for(;s<0?u>r.to:u>=r.to;){if(o==this.ranges.length-1)return null;let d=this.ranges[++o];u+=d.from-r.to,r=d}return u}clipPos(n){if(n>=this.range.from&&n<this.range.to)return n;for(let s of this.ranges)if(s.to>n)return Math.max(n,s.from);return this.end}peek(n){let s=this.chunkOff+n,r,o;if(s>=0&&s<this.chunk.length)r=this.pos+n,o=this.chunk.charCodeAt(s);else{let u=this.resolveOffset(n,1);if(u==null)return-1;if(r=u,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)o=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let d=this.rangeIndex,O=this.range;for(;O.to<=r;)O=this.ranges[++d];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>O.to&&(this.chunk2=this.chunk2.slice(0,O.to-r)),o=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),o}acceptToken(n,s=0){let r=s?this.resolveOffset(s,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=n,this.token.end=r}acceptTokenTo(n,s){this.token.value=n,this.token.end=s}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:n,chunkPos:s}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=n,this.chunk2Pos=s,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let n=this.input.chunk(this.pos),s=this.pos+n.length;this.chunk=s>this.range.to?n.slice(0,this.range.to-this.pos):n,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(n=1){for(this.chunkOff+=n;this.pos+n>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();n-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=n,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(n,s){if(s?(this.token=s,s.start=n,s.lookAhead=n+1,s.value=s.extended=-1):this.token=p1,this.pos!=n){if(this.pos=n,n==this.end)return this.setDone(),this;for(;n<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;n>=this.range.to;)this.range=this.ranges[++this.rangeIndex];n>=this.chunkPos&&n<this.chunkPos+this.chunk.length?this.chunkOff=n-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(n,s){if(n>=this.chunkPos&&s<=this.chunkPos+this.chunk.length)return this.chunk.slice(n-this.chunkPos,s-this.chunkPos);if(n>=this.chunk2Pos&&s<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(n-this.chunk2Pos,s-this.chunk2Pos);if(n>=this.range.from&&s<=this.range.to)return this.input.read(n,s);let r="";for(let o of this.ranges){if(o.from>=s)break;o.to>n&&(r+=this.input.read(Math.max(o.from,n),Math.min(o.to,s)))}return r}}class Cl{constructor(n,s){this.data=n,this.id=s}token(n,s){let{parser:r}=s.p;gv(this.data,n,s,this.id,r.data,r.tokenPrecTable)}}Cl.prototype.contextual=Cl.prototype.fallback=Cl.prototype.extend=!1;class $c{constructor(n,s,r){this.precTable=s,this.elseToken=r,this.data=typeof n=="string"?Fr(n):n}token(n,s){let r=n.pos,o=0;for(;;){let u=n.next<0,d=n.resolveOffset(1,1);if(gv(this.data,n,s,0,this.data,this.precTable),n.token.value>-1)break;if(this.elseToken==null)return;if(u||o++,d==null)break;n.reset(d,n.token)}o&&(n.reset(r,n.token),n.acceptToken(this.elseToken,o))}}$c.prototype.contextual=Cl.prototype.fallback=Cl.prototype.extend=!1;class gt{constructor(n,s={}){this.token=n,this.contextual=!!s.contextual,this.fallback=!!s.fallback,this.extend=!!s.extend}}function gv(t,n,s,r,o,u){let d=0,O=1<<r,{dialect:h}=s.p.parser;e:for(;(O&t[d])!=0;){let p=t[d+1];for(let y=d+3;y<p;y+=2)if((t[y+1]&O)>0){let Q=t[y];if(h.allows(Q)&&(n.token.value==-1||n.token.value==Q||KP(Q,n.token.value,o,u))){n.acceptToken(Q);break}}let x=n.next,g=0,b=t[d+2];if(n.next<0&&b>g&&t[p+b*3-3]==65535){d=t[p+b*3-1];continue e}for(;g<b;){let y=g+b>>1,Q=p+y+(y<<1),w=t[Q],k=t[Q+1]||65536;if(x<w)b=y;else if(x>=k)g=y+1;else{d=t[Q+2],n.advance();continue e}}break}}function x1(t,n,s){for(let r=n,o;(o=t[r])!=65535;r++)if(o==s)return r-n;return-1}function KP(t,n,s,r){let o=x1(s,r,n);return o<0||x1(s,r,t)<o}const Gt=typeof process<"u"&&h1&&/\bparse\b/.test(h1.LOG);let RO=null;function g1(t,n,s){let r=t.cursor(Ac.IncludeAnonymous);for(r.moveTo(n);;)if(!(s<0?r.childBefore(n):r.childAfter(n)))for(;;){if((s<0?r.to<n:r.from>n)&&!r.type.isError)return s<0?Math.max(0,Math.min(r.to-1,n-25)):Math.min(t.length,Math.max(r.from+1,n+25));if(s<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return s<0?0:t.length}}let JP=class{constructor(n,s){this.fragments=n,this.nodeSet=s,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let n=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(n){for(this.safeFrom=n.openStart?g1(n.tree,n.from+n.offset,1)-n.offset:n.from,this.safeTo=n.openEnd?g1(n.tree,n.to+n.offset,-1)-n.offset:n.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(n.tree),this.start.push(-n.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(n){if(n<this.nextStart)return null;for(;this.fragment&&this.safeTo<=n;)this.nextFragment();if(!this.fragment)return null;for(;;){let s=this.trees.length-1;if(s<0)return this.nextFragment(),null;let r=this.trees[s],o=this.index[s];if(o==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let u=r.children[o],d=this.start[s]+r.positions[o];if(d>n)return this.nextStart=d,null;if(u instanceof xn){if(d==n){if(d<this.safeFrom)return null;let O=d+u.length;if(O<=this.safeTo){let h=u.prop(oa.lookAhead);if(!h||O+h<this.fragment.to)return u}}this.index[s]++,d+u.length>=Math.max(this.safeFrom,n)&&(this.trees.push(u),this.start.push(d),this.index.push(0))}else this.index[s]++,this.nextStart=d+u.length}}};class e3{constructor(n,s){this.stream=s,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=n.tokenizers.map(r=>new rc)}getActions(n){let s=0,r=null,{parser:o}=n.p,{tokenizers:u}=o,d=o.stateSlot(n.state,3),O=n.curContext?n.curContext.hash:0,h=0;for(let p=0;p<u.length;p++){if((1<<p&d)==0)continue;let x=u[p],g=this.tokens[p];if(!(r&&!x.fallback)&&((x.contextual||g.start!=n.pos||g.mask!=d||g.context!=O)&&(this.updateCachedToken(g,x,n),g.mask=d,g.context=O),g.lookAhead>g.end+25&&(h=Math.max(g.lookAhead,h)),g.value!=0)){let b=s;if(g.extended>-1&&(s=this.addActions(n,g.extended,g.end,s)),s=this.addActions(n,g.value,g.end,s),!x.extend&&(r=g,s>b))break}}for(;this.actions.length>s;)this.actions.pop();return h&&n.setLookAhead(h),!r&&n.pos==this.stream.end&&(r=new rc,r.value=n.p.parser.eofTerm,r.start=r.end=n.pos,s=this.addActions(n,r.value,r.end,s)),this.mainToken=r,this.actions}getMainToken(n){if(this.mainToken)return this.mainToken;let s=new rc,{pos:r,p:o}=n;return s.start=r,s.end=Math.min(r+1,o.stream.end),s.value=r==o.stream.end?o.parser.eofTerm:0,s}updateCachedToken(n,s,r){let o=this.stream.clipPos(r.pos);if(s.token(this.stream.reset(o,n),r),n.value>-1){let{parser:u}=r.p;for(let d=0;d<u.specialized.length;d++)if(u.specialized[d]==n.value){let O=u.specializers[d](this.stream.read(n.start,n.end),r);if(O>=0&&r.p.parser.dialect.allows(O>>1)){(O&1)==0?n.value=O>>1:n.extended=O>>1;break}}}else n.value=0,n.end=this.stream.clipPos(o+1)}putAction(n,s,r,o){for(let u=0;u<o;u+=3)if(this.actions[u]==n)return o;return this.actions[o++]=n,this.actions[o++]=s,this.actions[o++]=r,o}addActions(n,s,r,o){let{state:u}=n,{parser:d}=n.p,{data:O}=d;for(let h=0;h<2;h++)for(let p=d.stateSlot(u,h?2:1);;p+=3){if(O[p]==65535)if(O[p+1]==1)p=ia(O,p+2);else{o==0&&O[p+1]==2&&(o=this.putAction(ia(O,p+2),s,r,o));break}O[p]==s&&(o=this.putAction(ia(O,p+1),s,r,o))}return o}}class t3{constructor(n,s,r,o){this.parser=n,this.input=s,this.ranges=o,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new FP(s,o),this.tokens=new e3(n,this.stream),this.topTerm=n.top[1];let{from:u}=o[0];this.stacks=[wc.start(this,n.top[0],u)],this.fragments=r.length&&this.stream.end-u>n.bufferLength*4?new JP(r,n.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let n=this.stacks,s=this.minStackPos,r=this.stacks=[],o,u;if(this.bigReductionCount>300&&n.length==1){let[d]=n;for(;d.forceReduce()&&d.stack.length&&d.stack[d.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let d=0;d<n.length;d++){let O=n[d];for(;;){if(this.tokens.mainToken=null,O.pos>s)r.push(O);else{if(this.advanceStack(O,r,n))continue;{o||(o=[],u=[]),o.push(O);let h=this.tokens.getMainToken(O);u.push(h.value,h.end)}}break}}if(!r.length){let d=o&&a3(o);if(d)return Gt&&console.log("Finish with "+this.stackID(d)),this.stackToTree(d);if(this.parser.strict)throw Gt&&o&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+s);this.recovering||(this.recovering=5)}if(this.recovering&&o){let d=this.stoppedAt!=null&&o[0].pos>this.stoppedAt?o[0]:this.runRecovery(o,u,r);if(d)return Gt&&console.log("Force-finish "+this.stackID(d)),this.stackToTree(d.forceAll())}if(this.recovering){let d=this.recovering==1?1:this.recovering*3;if(r.length>d)for(r.sort((O,h)=>h.score-O.score);r.length>d;)r.pop();r.some(O=>O.reducePos>s)&&this.recovering--}else if(r.length>1){e:for(let d=0;d<r.length-1;d++){let O=r[d];for(let h=d+1;h<r.length;h++){let p=r[h];if(O.sameState(p)||O.buffer.length>500&&p.buffer.length>500)if((O.score-p.score||O.buffer.length-p.buffer.length)>0)r.splice(h--,1);else{r.splice(d--,1);continue e}}}r.length>12&&(r.sort((d,O)=>O.score-d.score),r.splice(12,r.length-12))}this.minStackPos=r[0].pos;for(let d=1;d<r.length;d++)r[d].pos<this.minStackPos&&(this.minStackPos=r[d].pos);return null}stopAt(n){if(this.stoppedAt!=null&&this.stoppedAt<n)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=n}advanceStack(n,s,r){let o=n.pos,{parser:u}=this,d=Gt?this.stackID(n)+" -> ":"";if(this.stoppedAt!=null&&o>this.stoppedAt)return n.forceReduce()?n:null;if(this.fragments){let p=n.curContext&&n.curContext.tracker.strict,x=p?n.curContext.hash:0;for(let g=this.fragments.nodeAt(o);g;){let b=this.parser.nodeSet.types[g.type.id]==g.type?u.getGoto(n.state,g.type.id):-1;if(b>-1&&g.length&&(!p||(g.prop(oa.contextHash)||0)==x))return n.useNode(g,b),Gt&&console.log(d+this.stackID(n)+` (via reuse of ${u.getName(g.type.id)})`),!0;if(!(g instanceof xn)||g.children.length==0||g.positions[0]>0)break;let y=g.children[0];if(y instanceof xn&&g.positions[0]==0)g=y;else break}}let O=u.stateSlot(n.state,4);if(O>0)return n.reduce(O),Gt&&console.log(d+this.stackID(n)+` (via always-reduce ${u.getName(O&65535)})`),!0;if(n.stack.length>=8400)for(;n.stack.length>6e3&&n.forceReduce(););let h=this.tokens.getActions(n);for(let p=0;p<h.length;){let x=h[p++],g=h[p++],b=h[p++],y=p==h.length||!r,Q=y?n:n.split(),w=this.tokens.mainToken;if(Q.apply(x,g,w?w.start:Q.pos,b),Gt&&console.log(d+this.stackID(Q)+` (via ${(x&65536)==0?"shift":`reduce of ${u.getName(x&65535)}`} for ${u.getName(g)} @ ${o}${Q==n?"":", split"})`),y)return!0;Q.pos>o?s.push(Q):r.push(Q)}return!1}advanceFully(n,s){let r=n.pos;for(;;){if(!this.advanceStack(n,null,null))return!1;if(n.pos>r)return b1(n,s),!0}}runRecovery(n,s,r){let o=null,u=!1;for(let d=0;d<n.length;d++){let O=n[d],h=s[d<<1],p=s[(d<<1)+1],x=Gt?this.stackID(O)+" -> ":"";if(O.deadEnd&&(u||(u=!0,O.restart(),Gt&&console.log(x+this.stackID(O)+" (restarted)"),this.advanceFully(O,r))))continue;let g=O.split(),b=x;for(let y=0;y<10&&g.forceReduce()&&(Gt&&console.log(b+this.stackID(g)+" (via force-reduce)"),!this.advanceFully(g,r));y++)Gt&&(b=this.stackID(g)+" -> ");for(let y of O.recoverByInsert(h))Gt&&console.log(x+this.stackID(y)+" (via recover-insert)"),this.advanceFully(y,r);this.stream.end>O.pos?(p==O.pos&&(p++,h=0),O.recoverByDelete(h,p),Gt&&console.log(x+this.stackID(O)+` (via recover-delete ${this.parser.getName(h)})`),b1(O,r)):(!o||o.score<g.score)&&(o=g)}return o}stackToTree(n){return n.close(),xn.build({buffer:kc.create(n),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:n.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(n){let s=(RO||(RO=new WeakMap)).get(n);return s||RO.set(n,s=String.fromCodePoint(this.nextStackID++)),s+n}}function b1(t,n){for(let s=0;s<n.length;s++){let r=n[s];if(r.pos==t.pos&&r.sameState(t)){n[s].score<t.score&&(n[s]=t);return}}n.push(t)}class n3{constructor(n,s,r){this.source=n,this.flags=s,this.disabled=r}allows(n){return!this.disabled||this.disabled[n]==0}}const CO=t=>t;class hh{constructor(n){this.start=n.start,this.shift=n.shift||CO,this.reduce=n.reduce||CO,this.reuse=n.reuse||CO,this.hash=n.hash||(()=>0),this.strict=n.strict!==!1}}class ts extends z0{constructor(n){if(super(),this.wrappers=[],n.version!=14)throw new RangeError(`Parser version (${n.version}) doesn't match runtime version (14)`);let s=n.nodeNames.split(" ");this.minRepeatTerm=s.length;for(let O=0;O<n.repeatNodeCount;O++)s.push("");let r=Object.keys(n.topRules).map(O=>n.topRules[O][1]),o=[];for(let O=0;O<s.length;O++)o.push([]);function u(O,h,p){o[O].push([h,h.deserialize(String(p))])}if(n.nodeProps)for(let O of n.nodeProps){let h=O[0];typeof h=="string"&&(h=oa[h]);for(let p=1;p<O.length;){let x=O[p++];if(x>=0)u(x,h,O[p++]);else{let g=O[p+-x];for(let b=-x;b>0;b--)u(O[p++],h,g);p++}}}this.nodeSet=new qf(s.map((O,h)=>fi.define({name:h>=this.minRepeatTerm?void 0:O,id:h,props:o[h],top:r.indexOf(h)>-1,error:h==0,skipped:n.skippedNodes&&n.skippedNodes.indexOf(h)>-1}))),n.propSources&&(this.nodeSet=this.nodeSet.extend(...n.propSources)),this.strict=!1,this.bufferLength=Pj;let d=Fr(n.tokenData);this.context=n.context,this.specializerSpecs=n.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let O=0;O<this.specializerSpecs.length;O++)this.specialized[O]=this.specializerSpecs[O].term;this.specializers=this.specializerSpecs.map(v1),this.states=Fr(n.states,Uint32Array),this.data=Fr(n.stateData),this.goto=Fr(n.goto),this.maxTerm=n.maxTerm,this.tokenizers=n.tokenizers.map(O=>typeof O=="number"?new Cl(d,O):O),this.topRules=n.topRules,this.dialects=n.dialects||{},this.dynamicPrecedences=n.dynamicPrecedences||null,this.tokenPrecTable=n.tokenPrec,this.termNames=n.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(n,s,r){let o=new t3(this,n,s,r);for(let u of this.wrappers)o=u(o,n,s,r);return o}getGoto(n,s,r=!1){let o=this.goto;if(s>=o[0])return-1;for(let u=o[s+1];;){let d=o[u++],O=d&1,h=o[u++];if(O&&r)return h;for(let p=u+(d>>1);u<p;u++)if(o[u]==n)return h;if(O)return-1}}hasAction(n,s){let r=this.data;for(let o=0;o<2;o++)for(let u=this.stateSlot(n,o?2:1),d;;u+=3){if((d=r[u])==65535)if(r[u+1]==1)d=r[u=ia(r,u+2)];else{if(r[u+1]==2)return ia(r,u+2);break}if(d==s||d==0)return ia(r,u+1)}return 0}stateSlot(n,s){return this.states[n*6+s]}stateFlag(n,s){return(this.stateSlot(n,0)&s)>0}validAction(n,s){return!!this.allActions(n,r=>r==s?!0:null)}allActions(n,s){let r=this.stateSlot(n,4),o=r?s(r):void 0;for(let u=this.stateSlot(n,1);o==null;u+=3){if(this.data[u]==65535)if(this.data[u+1]==1)u=ia(this.data,u+2);else break;o=s(ia(this.data,u+1))}return o}nextStates(n){let s=[];for(let r=this.stateSlot(n,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=ia(this.data,r+2);else break;if((this.data[r+2]&1)==0){let o=this.data[r+1];s.some((u,d)=>d&1&&u==o)||s.push(this.data[r],o)}}return s}configure(n){let s=Object.assign(Object.create(ts.prototype),this);if(n.props&&(s.nodeSet=this.nodeSet.extend(...n.props)),n.top){let r=this.topRules[n.top];if(!r)throw new RangeError(`Invalid top rule name ${n.top}`);s.top=r}return n.tokenizers&&(s.tokenizers=this.tokenizers.map(r=>{let o=n.tokenizers.find(u=>u.from==r);return o?o.to:r})),n.specializers&&(s.specializers=this.specializers.slice(),s.specializerSpecs=this.specializerSpecs.map((r,o)=>{let u=n.specializers.find(O=>O.from==r.external);if(!u)return r;let d=Object.assign(Object.assign({},r),{external:u.to});return s.specializers[o]=v1(d),d})),n.contextTracker&&(s.context=n.contextTracker),n.dialect&&(s.dialect=this.parseDialect(n.dialect)),n.strict!=null&&(s.strict=n.strict),n.wrap&&(s.wrappers=s.wrappers.concat(n.wrap)),n.bufferLength!=null&&(s.bufferLength=n.bufferLength),s}hasWrappers(){return this.wrappers.length>0}getName(n){return this.termNames?this.termNames[n]:String(n<=this.maxNode&&this.nodeSet.types[n].name||n)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(n){let s=this.dynamicPrecedences;return s==null?0:s[n]||0}parseDialect(n){let s=Object.keys(this.dialects),r=s.map(()=>!1);if(n)for(let u of n.split(" ")){let d=s.indexOf(u);d>=0&&(r[d]=!0)}let o=null;for(let u=0;u<s.length;u++)if(!r[u])for(let d=this.dialects[s[u]],O;(O=this.data[d++])!=65535;)(o||(o=new Uint8Array(this.maxTerm+1)))[O]=1;return new n3(n,r,o)}static deserialize(n){return new ts(n)}}function ia(t,n){return t[n]|t[n+1]<<16}function a3(t){let n=null;for(let s of t){let r=s.p.stoppedAt;(s.pos==s.p.stream.end||r!=null&&s.pos>r)&&s.p.parser.stateFlag(s.state,2)&&(!n||n.score<s.score)&&(n=s)}return n}function v1(t){if(t.external){let n=t.extend?1:0;return(s,r)=>t.external(s,r)<<1|n}return t.get}const s3=316,l3=317,y1=1,r3=2,i3=3,o3=4,c3=318,u3=320,d3=321,O3=5,f3=6,h3=0,Qf=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],bv=125,m3=59,jf=47,p3=42,x3=43,g3=45,b3=60,v3=44,y3=63,S3=46,Q3=91,j3=new hh({start:!1,shift(t,n){return n==O3||n==f3||n==u3?t:n==d3},strict:!1}),w3=new gt((t,n)=>{let{next:s}=t;(s==bv||s==-1||n.context)&&t.acceptToken(c3)},{contextual:!0,fallback:!0}),k3=new gt((t,n)=>{let{next:s}=t,r;Qf.indexOf(s)>-1||s==jf&&((r=t.peek(1))==jf||r==p3)||s!=bv&&s!=m3&&s!=-1&&!n.context&&t.acceptToken(s3)},{contextual:!0}),$3=new gt((t,n)=>{t.next==Q3&&!n.context&&t.acceptToken(l3)},{contextual:!0}),T3=new gt((t,n)=>{let{next:s}=t;if(s==x3||s==g3){if(t.advance(),s==t.next){t.advance();let r=!n.context&&n.canShift(y1);t.acceptToken(r?y1:r3)}}else s==y3&&t.peek(1)==S3&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(i3))},{contextual:!0});function _O(t,n){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!n&&t>=48&&t<=57}const N3=new gt((t,n)=>{if(t.next!=b3||!n.dialectEnabled(h3)||(t.advance(),t.next==jf))return;let s=0;for(;Qf.indexOf(t.next)>-1;)t.advance(),s++;if(_O(t.next,!0)){for(t.advance(),s++;_O(t.next,!1);)t.advance(),s++;for(;Qf.indexOf(t.next)>-1;)t.advance(),s++;if(t.next==v3)return;for(let r=0;;r++){if(r==7){if(!_O(t.next,!0))return;break}if(t.next!="extends".charCodeAt(r))break;t.advance(),s++}}t.acceptToken(o3,-s)}),P3=_s({"get set async static":Z.modifier,"for while do if else switch try catch finally return throw break continue default case defer":Z.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":Z.operatorKeyword,"let var const using function class extends":Z.definitionKeyword,"import export from":Z.moduleKeyword,"with debugger new":Z.keyword,TemplateString:Z.special(Z.string),super:Z.atom,BooleanLiteral:Z.bool,this:Z.self,null:Z.null,Star:Z.modifier,VariableName:Z.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Z.function(Z.variableName),VariableDefinition:Z.definition(Z.variableName),Label:Z.labelName,PropertyName:Z.propertyName,PrivatePropertyName:Z.special(Z.propertyName),"CallExpression/MemberExpression/PropertyName":Z.function(Z.propertyName),"FunctionDeclaration/VariableDefinition":Z.function(Z.definition(Z.variableName)),"ClassDeclaration/VariableDefinition":Z.definition(Z.className),"NewExpression/VariableName":Z.className,PropertyDefinition:Z.definition(Z.propertyName),PrivatePropertyDefinition:Z.definition(Z.special(Z.propertyName)),UpdateOp:Z.updateOperator,"LineComment Hashbang":Z.lineComment,BlockComment:Z.blockComment,Number:Z.number,String:Z.string,Escape:Z.escape,ArithOp:Z.arithmeticOperator,LogicOp:Z.logicOperator,BitOp:Z.bitwiseOperator,CompareOp:Z.compareOperator,RegExp:Z.regexp,Equals:Z.definitionOperator,Arrow:Z.function(Z.punctuation),": Spread":Z.punctuation,"( )":Z.paren,"[ ]":Z.squareBracket,"{ }":Z.brace,"InterpolationStart InterpolationEnd":Z.special(Z.brace),".":Z.derefOperator,", ;":Z.separator,"@":Z.meta,TypeName:Z.typeName,TypeDefinition:Z.definition(Z.typeName),"type enum interface implements namespace module declare":Z.definitionKeyword,"abstract global Privacy readonly override":Z.modifier,"is keyof unique infer asserts":Z.operatorKeyword,JSXAttributeValue:Z.attributeValue,JSXText:Z.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Z.angleBracket,"JSXIdentifier JSXNameSpacedName":Z.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Z.attributeName,"JSXBuiltin/JSXIdentifier":Z.standard(Z.tagName)}),z3={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},R3={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},C3={__proto__:null,"<":193},_3=ts.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Il'#IlO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JrO6[Q!0MxO'#J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n;[R;q;dnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&l!VR,h&itmOXst!U!V!Z#d%m&i&r&t&u&w,s,x2[2_R,o&oT%lm,oR1k,XR,g&gQ&U|S+}&V&WR1^,OR+s&PT&p!W&sT&q!W&sT2^,x2_",nodeNames:"⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:380,context:j3,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[P3],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O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cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$i&j(Wp(Z!b'}0/l$]#t(T,2j(e$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[k3,$3,T3,N3,2,3,4,5,6,7,8,9,10,11,12,13,14,w3,new $c("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~",141,340),new $c("j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~",25,323)],topRules:{Script:[0,7],SingleExpression:[1,276],SingleClassItem:[2,277]},dialects:{jsx:0,ts:15175},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:327,get:t=>z3[t]||-1},{term:343,get:t=>R3[t]||-1},{term:95,get:t=>C3[t]||-1}],tokenPrec:15201}),vv=[Fe("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Fe("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Fe("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Fe("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Fe("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Fe(`try {
570
+ \${}
571
+ } catch (\${error}) {
572
+ \${}
573
+ }`,{label:"try",detail:"/ catch block",type:"keyword"}),Fe("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Fe(`if (\${}) {
574
+ \${}
575
+ } else {
576
+ \${}
577
+ }`,{label:"if",detail:"/ else block",type:"keyword"}),Fe(`class \${name} {
578
+ constructor(\${params}) {
579
+ \${}
580
+ }
581
+ }`,{label:"class",detail:"definition",type:"keyword"}),Fe('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Fe('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],X3=vv.concat([Fe("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Fe("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Fe("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),S1=new Mf,yv=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Br(t){return(n,s)=>{let r=n.node.getChild("VariableDefinition");return r&&s(r,t),!0}}const A3=["FunctionDeclaration"],Z3={FunctionDeclaration:Br("function"),ClassDeclaration:Br("class"),ClassExpression:()=>!0,EnumDeclaration:Br("constant"),TypeAliasDeclaration:Br("type"),NamespaceDeclaration:Br("namespace"),VariableDefinition(t,n){t.matchContext(A3)||n(t,"variable")},TypeDefinition(t,n){n(t,"type")},__proto__:null};function Sv(t,n){let s=S1.get(n);if(s)return s;let r=[],o=!0;function u(d,O){let h=t.sliceString(d.from,d.to);r.push({label:h,type:O})}return n.cursor(Ac.IncludeAnonymous).iterate(d=>{if(o)o=!1;else if(d.name){let O=Z3[d.name];if(O&&O(d,u)||yv.has(d.name))return!1}else if(d.to-d.from>8192){for(let O of Sv(t,d.node))r.push(O);return!1}}),S1.set(n,r),r}const Q1=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Qv=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function E3(t){let n=vn(t.state).resolveInner(t.pos,-1);if(Qv.indexOf(n.name)>-1)return null;let s=n.name=="VariableName"||n.to-n.from<20&&Q1.test(t.state.sliceDoc(n.from,n.to));if(!s&&!t.explicit)return null;let r=[];for(let o=n;o;o=o.parent)yv.has(o.name)&&(r=r.concat(Sv(t.state.doc,o)));return{options:r,from:s?n.from:t.pos,validFor:Q1}}const Pn=hi.define({name:"javascript",parser:_3.configure({props:[Wl.add({IfStatement:Pl({except:/^\s*({|else\b)/}),TryStatement:Pl({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:zj,SwitchBody:t=>{let n=t.textAfter,s=/^\s*\}/.test(n),r=/^\s*(case|default)\b/.test(n);return t.baseIndent+(s?0:r?1:2)*t.unit},Block:sc({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":Pl({except:/^\s*{/}),JSXElement(t){let n=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(n?0:t.unit)},JSXEscape(t){let n=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(n?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),Xs.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Zc,BlockComment(t){return{from:t.from+2,to:t.to-2}},JSXElement(t){let n=t.firstChild;if(!n||n.name=="JSXSelfClosingTag")return null;let s=t.lastChild;return{from:n.to,to:s.type.isError?t.to:s.from}},"JSXSelfClosingTag JSXOpenTag"(t){var n;let s=(n=t.firstChild)===null||n===void 0?void 0:n.nextSibling,r=t.lastChild;return!s||s.type.isError?null:{from:s.to,to:r.type.isError?t.to:r.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),jv={test:t=>/^JSX/.test(t.name),facet:X0({commentTokens:{block:{open:"{/*",close:"*/}"}}})},wv=Pn.configure({dialect:"ts"},"typescript"),kv=Pn.configure({dialect:"jsx",props:[_0.add(t=>t.isTop?[jv]:void 0)]}),$v=Pn.configure({dialect:"jsx ts",props:[_0.add(t=>t.isTop?[jv]:void 0)]},"typescript");let Tv=t=>({label:t,type:"keyword"});const Nv="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Tv),q3=Nv.concat(["declare","implements","private","protected","public"].map(Tv));function wf(t={}){let n=t.jsx?t.typescript?$v:kv:t.typescript?wv:Pn,s=t.typescript?X3.concat(q3):vv.concat(Nv);return new Ts(n,[Pn.data.of({autocomplete:R0(Qv,C0(s))}),Pn.data.of({autocomplete:E3}),t.jsx?U3:[]])}function M3(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function j1(t,n,s=t.length){for(let r=n==null?void 0:n.firstChild;r;r=r.nextSibling)if(r.name=="JSXIdentifier"||r.name=="JSXBuiltin"||r.name=="JSXNamespacedName"||r.name=="JSXMemberExpression")return t.sliceString(r.from,Math.min(r.to,s));return""}const Y3=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),U3=Zl.inputHandler.of((t,n,s,r,o)=>{if((Y3?t.composing:t.compositionStarted)||t.state.readOnly||n!=s||r!=">"&&r!="/"||!Pn.isActiveAt(t.state,n,-1))return!1;let u=o(),{state:d}=u,O=d.changeByRange(h=>{var p;let{head:x}=h,g=vn(d).resolveInner(x-1,-1),b;if(g.name=="JSXStartTag"&&(g=g.parent),!(d.doc.sliceString(x-1,x)!=r||g.name=="JSXAttributeValue"&&g.to>x)){if(r==">"&&g.name=="JSXFragmentTag")return{range:h,changes:{from:x,insert:"</>"}};if(r=="/"&&g.name=="JSXStartCloseTag"){let y=g.parent,Q=y.parent;if(Q&&y.from==x-2&&((b=j1(d.doc,Q.firstChild,x))||((p=Q.firstChild)===null||p===void 0?void 0:p.name)=="JSXFragmentTag")){let w=`${b}>`;return{range:Fa.cursor(x+w.length,-1),changes:{from:x,insert:w}}}}else if(r==">"){let y=M3(g);if(y&&y.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(d.doc.sliceString(x,x+2))&&(b=j1(d.doc,y,x)))return{range:h,changes:{from:x,insert:`</${b}>`}}}}return{range:h}});return O.changes.empty?!1:(t.dispatch([u,d.update(O,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),V3=135,w1=1,G3=136,L3=137,Pv=2,D3=138,W3=3,B3=4,zv=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],H3=58,I3=40,Rv=95,F3=91,ic=45,K3=46,J3=35,e4=37,t4=38,n4=92,a4=10,s4=42;function oi(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function mh(t){return t>=48&&t<=57}function k1(t){return mh(t)||t>=97&&t<=102||t>=65&&t<=70}const Cv=(t,n,s)=>(r,o)=>{for(let u=!1,d=0,O=0;;O++){let{next:h}=r;if(oi(h)||h==ic||h==Rv||u&&mh(h))!u&&(h!=ic||O>0)&&(u=!0),d===O&&h==ic&&d++,r.advance();else if(h==n4&&r.peek(1)!=a4){if(r.advance(),k1(r.next)){do r.advance();while(k1(r.next));r.next==32&&r.advance()}else r.next>-1&&r.advance();u=!0}else{u&&r.acceptToken(d==2&&o.canShift(Pv)?n:h==I3?s:t);break}}},l4=new gt(Cv(G3,Pv,L3),{contextual:!0}),r4=new gt(Cv(D3,W3,B3),{contextual:!0}),i4=new gt(t=>{if(zv.includes(t.peek(-1))){let{next:n}=t;(oi(n)||n==Rv||n==J3||n==K3||n==s4||n==F3||n==H3&&oi(t.peek(1))||n==ic||n==t4)&&t.acceptToken(V3)}}),o4=new gt(t=>{if(!zv.includes(t.peek(-1))){let{next:n}=t;if(n==e4&&(t.advance(),t.acceptToken(w1)),oi(n)){do t.advance();while(oi(t.next)||mh(t.next));t.acceptToken(w1)}}}),c4=_s({"AtKeyword import charset namespace keyframes media supports font-feature-values":Z.definitionKeyword,"from to selector scope MatchFlag":Z.keyword,NamespaceName:Z.namespace,KeyframeName:Z.labelName,KeyframeRangeName:Z.operatorKeyword,TagName:Z.tagName,ClassName:Z.className,PseudoClassName:Z.constant(Z.className),IdName:Z.labelName,"FeatureName PropertyName":Z.propertyName,AttributeName:Z.attributeName,NumberLiteral:Z.number,KeywordQuery:Z.keyword,UnaryQueryOp:Z.operatorKeyword,"CallTag ValueName FontName":Z.atom,VariableName:Z.variableName,Callee:Z.operatorKeyword,Unit:Z.unit,"UniversalSelector NestingSelector":Z.definitionOperator,"MatchOp CompareOp":Z.compareOperator,"ChildOp SiblingOp, LogicOp":Z.logicOperator,BinOp:Z.arithmeticOperator,Important:Z.modifier,Comment:Z.blockComment,ColorLiteral:Z.color,"ParenthesizedContent StringLiteral":Z.string,":":Z.punctuation,"PseudoOp #":Z.derefOperator,"; , |":Z.separator,"( )":Z.paren,"[ ]":Z.squareBracket,"{ }":Z.brace}),u4={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:132,"url-prefix":132,domain:132,regexp:132},d4={__proto__:null,or:104,and:104,not:112,only:112,layer:186},O4={__proto__:null,selector:118,layer:182},f4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RS%r$g%tQ%w$jR'Z&iQ#z!cQ&h%`R'j'YR%i$RR%X#oQpPR#n!RQ!yeQ$d!qR%q$e",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles",maxTerm:159,nodeProps:[["isolate",-2,5,39,""],["openedBy",23,"(",31,"[",34,"{"],["closedBy",24,")",32,"]",35,"}"]],propSources:[c4],skippedNodes:[0,5,117],repeatNodeCount:17,tokenData:"K`~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu2Xuv%Zvw3Rwx3dxy5Ryz5dz{5i{|6S|}:u}!O;W!O!P;u!P!Q<^!Q![=V![!]>Q!]!^>|!^!_?_!_!`@Z!`!a@n!a!b%Z!b!cAo!c!k%Z!k!lC|!l!u%Z!u!vC|!v!}%Z!}#OD_#O#P%Z#P#QDp#Q#R2X#R#]%Z#]#^ER#^#g%Z#g#hC|#h#o%Z#o#pIf#p#qIw#q#rJ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S%j;'S;=`%{<%lO%jbFoU!e`Oy%jz#f%j#f#gGR#g;'S%j;'S;=`%{<%lO%jbGWU!e`Oy%jz#h%j#h#iGj#i;'S%j;'S;=`%{<%lO%jbGoU!e`Oy%jz#T%j#T#UHR#U;'S%j;'S;=`%{<%lO%jbHWU!e`Oy%jz#b%j#b#cHj#c;'S%j;'S;=`%{<%lO%jbHoU!e`Oy%jz#h%j#h#iIR#i;'S%j;'S;=`%{<%lO%jbIYS$cQ!e`Oy%jz;'S%j;'S;=`%{<%lO%jjIkSsYOy%jz;'S%j;'S;=`%{<%lO%jfI|U$XUOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jjJeSrYOy%jz;'S%j;'S;=`%{<%lO%jfJvU!uQOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%j`K]P;=`<%l%Z",tokenizers:[i4,o4,l4,r4,1,2,3,4,new $c("m~RRYZ[z{a~~g~aO$T~~dP!P!Qg~lO$U~~",28,142)],topRules:{StyleSheet:[0,6],Styles:[1,116]},dynamicPrecedences:{84:1},specialized:[{term:137,get:t=>u4[t]||-1},{term:138,get:t=>d4[t]||-1},{term:4,get:t=>O4[t]||-1},{term:28,get:t=>f4[t]||-1},{term:136,get:t=>h4[t]||-1}],tokenPrec:2256});let XO=null;function AO(){if(!XO&&typeof document=="object"&&document.body){let{style:t}=document.body,n=[],s=new Set;for(let r in t)r!="cssText"&&r!="cssFloat"&&typeof t[r]=="string"&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,o=>"-"+o.toLowerCase())),s.has(r)||(n.push(r),s.add(r)));XO=n.sort().map(r=>({type:"property",label:r,apply:r+": "}))}return XO||[]}const $1=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),T1=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),p4=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),x4=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(t=>({type:"keyword",label:t})),na=/^(\w[\w-]*|-\w[\w-]*|)$/,g4=/^-(-[\w-]*)?$/;function b4(t,n){var s;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let r=(s=t.parent)===null||s===void 0?void 0:s.firstChild;return(r==null?void 0:r.name)!="Callee"?!1:n.sliceString(r.from,r.to)=="var"}const N1=new Mf,v4=["Declaration"];function y4(t){for(let n=t;;){if(n.type.isTop)return n;if(!(n=n.parent))return t}}function _v(t,n,s){if(n.to-n.from>4096){let r=N1.get(n);if(r)return r;let o=[],u=new Set,d=n.cursor(Ac.IncludeAnonymous);if(d.firstChild())do for(let O of _v(t,d.node,s))u.has(O.label)||(u.add(O.label),o.push(O));while(d.nextSibling());return N1.set(n,o),o}else{let r=[],o=new Set;return n.cursor().iterate(u=>{var d;if(s(u)&&u.matchContext(v4)&&((d=u.node.nextSibling)===null||d===void 0?void 0:d.name)==":"){let O=t.sliceString(u.from,u.to);o.has(O)||(o.add(O),r.push({label:O,type:"variable"}))}}),r}}const S4=t=>n=>{let{state:s,pos:r}=n,o=vn(s).resolveInner(r,-1),u=o.type.isError&&o.from==o.to-1&&s.doc.sliceString(o.from,o.to)=="-";if(o.name=="PropertyName"||(u||o.name=="TagName")&&/^(Block|Styles)$/.test(o.resolve(o.to).name))return{from:o.from,options:AO(),validFor:na};if(o.name=="ValueName")return{from:o.from,options:T1,validFor:na};if(o.name=="PseudoClassName")return{from:o.from,options:$1,validFor:na};if(t(o)||(n.explicit||u)&&b4(o,s.doc))return{from:t(o)||u?o.from:r,options:_v(s.doc,y4(o),t),validFor:g4};if(o.name=="TagName"){for(let{parent:h}=o;h;h=h.parent)if(h.name=="Block")return{from:o.from,options:AO(),validFor:na};return{from:o.from,options:p4,validFor:na}}if(o.name=="AtKeyword")return{from:o.from,options:x4,validFor:na};if(!n.explicit)return null;let d=o.resolve(r),O=d.childBefore(r);return O&&O.name==":"&&d.name=="PseudoClassSelector"?{from:r,options:$1,validFor:na}:O&&O.name==":"&&d.name=="Declaration"||d.name=="ArgList"?{from:r,options:T1,validFor:na}:d.name=="Block"||d.name=="Styles"?{from:r,options:AO(),validFor:na}:null},Q4=S4(t=>t.name=="VariableName"),Tc=hi.define({name:"css",parser:m4.configure({props:[Wl.add({Declaration:Pl()}),Xs.add({"Block KeyframeList":Zc})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function Xv(){return new Ts(Tc,Tc.data.of({autocomplete:Q4}))}const j4=55,w4=1,k4=56,$4=2,T4=57,N4=3,P1=4,P4=5,ph=6,Av=7,Zv=8,Ev=9,qv=10,z4=11,R4=12,C4=13,ZO=58,_4=14,X4=15,z1=59,Mv=21,A4=23,Yv=24,Z4=25,kf=27,Uv=28,E4=29,q4=32,M4=35,Y4=37,U4=38,V4=0,G4=1,L4={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},D4={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},R1={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function W4(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}let C1=null,_1=null,X1=0;function $f(t,n){let s=t.pos+n;if(X1==s&&_1==t)return C1;let r=t.peek(n),o="";for(;W4(r);)o+=String.fromCharCode(r),r=t.peek(++n);return _1=t,X1=s,C1=o?o.toLowerCase():r==B4||r==H4?void 0:null}const Vv=60,Nc=62,xh=47,B4=63,H4=33,I4=45;function A1(t,n){this.name=t,this.parent=n}const F4=[ph,qv,Av,Zv,Ev],K4=new hh({start:null,shift(t,n,s,r){return F4.indexOf(n)>-1?new A1($f(r,1)||"",t):t},reduce(t,n){return n==Mv&&t?t.parent:t},reuse(t,n,s,r){let o=n.type.id;return o==ph||o==Y4?new A1($f(r,1)||"",t):t},strict:!1}),J4=new gt((t,n)=>{if(t.next!=Vv){t.next<0&&n.context&&t.acceptToken(ZO);return}t.advance();let s=t.next==xh;s&&t.advance();let r=$f(t,0);if(r===void 0)return;if(!r)return t.acceptToken(s?X4:_4);let o=n.context?n.context.name:null;if(s){if(r==o)return t.acceptToken(z4);if(o&&D4[o])return t.acceptToken(ZO,-2);if(n.dialectEnabled(V4))return t.acceptToken(R4);for(let u=n.context;u;u=u.parent)if(u.name==r)return;t.acceptToken(C4)}else{if(r=="script")return t.acceptToken(Av);if(r=="style")return t.acceptToken(Zv);if(r=="textarea")return t.acceptToken(Ev);if(L4.hasOwnProperty(r))return t.acceptToken(qv);o&&R1[o]&&R1[o][r]?t.acceptToken(ZO,-1):t.acceptToken(ph)}},{contextual:!0}),ez=new gt(t=>{for(let n=0,s=0;;s++){if(t.next<0){s&&t.acceptToken(z1);break}if(t.next==I4)n++;else if(t.next==Nc&&n>=2){s>=3&&t.acceptToken(z1,-2);break}else n=0;t.advance()}});function tz(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const nz=new gt((t,n)=>{if(t.next==xh&&t.peek(1)==Nc){let s=n.dialectEnabled(G4)||tz(n.context);t.acceptToken(s?P4:P1,2)}else t.next==Nc&&t.acceptToken(P1,1)});function gh(t,n,s){let r=2+t.length;return new gt(o=>{for(let u=0,d=0,O=0;;O++){if(o.next<0){O&&o.acceptToken(n);break}if(u==0&&o.next==Vv||u==1&&o.next==xh||u>=2&&u<r&&o.next==t.charCodeAt(u-2))u++,d++;else if(u==r&&o.next==Nc){O>d?o.acceptToken(n,-d):o.acceptToken(s,-(d-2));break}else if((o.next==10||o.next==13)&&O){o.acceptToken(n,1);break}else u=d=0;o.advance()}})}const az=gh("script",j4,w4),sz=gh("style",k4,$4),lz=gh("textarea",T4,N4),rz=_s({"Text RawText IncompleteTag IncompleteCloseTag":Z.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Z.angleBracket,TagName:Z.tagName,"MismatchedCloseTag/TagName":[Z.tagName,Z.invalid],AttributeName:Z.attributeName,"AttributeValue UnquotedAttributeValue":Z.attributeValue,Is:Z.definitionOperator,"EntityReference CharacterReference":Z.character,Comment:Z.blockComment,ProcessingInst:Z.processingInstruction,DoctypeDecl:Z.documentMeta}),iz=ts.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59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!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:K4,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[rz],skippedNodes:[0],repeat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]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[az,sz,lz,nz,J4,ez,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function Gv(t,n){let s=Object.create(null);for(let r of t.getChildren(Yv)){let o=r.getChild(Z4),u=r.getChild(kf)||r.getChild(Uv);o&&(s[n.read(o.from,o.to)]=u?u.type.id==kf?n.read(u.from+1,u.to-1):n.read(u.from,u.to):"")}return s}function Z1(t,n){let s=t.getChild(A4);return s?n.read(s.from,s.to):" "}function EO(t,n,s){let r;for(let o of s)if(!o.attrs||o.attrs(r||(r=Gv(t.node.parent.firstChild,n))))return{parser:o.parser,bracketed:!0};return null}function Lv(t=[],n=[]){let s=[],r=[],o=[],u=[];for(let O of t)(O.tag=="script"?s:O.tag=="style"?r:O.tag=="textarea"?o:u).push(O);let d=n.length?Object.create(null):null;for(let O of n)(d[O.name]||(d[O.name]=[])).push(O);return A0((O,h)=>{let p=O.type.id;if(p==E4)return EO(O,h,s);if(p==q4)return EO(O,h,r);if(p==M4)return EO(O,h,o);if(p==Mv&&u.length){let x=O.node,g=x.firstChild,b=g&&Z1(g,h),y;if(b){for(let Q of u)if(Q.tag==b&&(!Q.attrs||Q.attrs(y||(y=Gv(g,h))))){let w=x.lastChild,k=w.type.id==U4?w.from:x.to;if(k>g.to)return{parser:Q.parser,overlay:[{from:g.to,to:k}]}}}}if(d&&p==Yv){let x=O.node,g;if(g=x.firstChild){let b=d[h.read(g.from,g.to)];if(b)for(let y of b){if(y.tagName&&y.tagName!=Z1(x.parent,h))continue;let Q=x.lastChild;if(Q.type.id==kf){let w=Q.from+1,k=Q.lastChild,j=Q.to-(k&&k.isError?0:1);if(j>w)return{parser:y.parser,overlay:[{from:w,to:j}],bracketed:!0}}else if(Q.type.id==Uv)return{parser:y.parser,overlay:[{from:Q.from,to:Q.to}]}}}}return null})}const Hr=["_blank","_self","_top","_parent"],qO=["ascii","utf-8","utf-16","latin1","latin1"],MO=["get","post","put","delete"],YO=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Lt=["true","false"],pe={},oz={a:{attrs:{href:null,ping:null,type:null,media:null,target:Hr,hreflang:null}},abbr:pe,address:pe,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:pe,aside:pe,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:pe,base:{attrs:{href:null,target:Hr}},bdi:pe,bdo:pe,blockquote:{attrs:{cite:null}},body:pe,br:pe,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:YO,formmethod:MO,formnovalidate:["novalidate"],formtarget:Hr,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:pe,center:pe,cite:pe,code:pe,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:pe,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:pe,div:pe,dl:pe,dt:pe,em:pe,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:pe,figure:pe,footer:pe,form:{attrs:{action:null,name:null,"accept-charset":qO,autocomplete:["on","off"],enctype:YO,method:MO,novalidate:["novalidate"],target:Hr}},h1:pe,h2:pe,h3:pe,h4:pe,h5:pe,h6:pe,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:pe,hgroup:pe,hr:pe,html:{attrs:{manifest:null}},i:pe,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:YO,formmethod:MO,formnovalidate:["novalidate"],formtarget:Hr,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:pe,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:pe,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:pe,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:qO,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:pe,noscript:pe,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:pe,param:{attrs:{name:null,value:null}},pre:pe,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:pe,rt:pe,ruby:pe,samp:pe,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:qO}},section:pe,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:pe,source:{attrs:{src:null,type:null,media:null}},span:pe,strong:pe,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:pe,summary:pe,sup:pe,table:pe,tbody:pe,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:pe,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:pe,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:pe,time:{attrs:{datetime:null}},title:pe,tr:pe,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:pe,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:pe},Dv={accesskey:null,class:null,contenteditable:Lt,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Lt,autocorrect:Lt,autocapitalize:Lt,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Lt,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Lt,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Lt,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Lt,"aria-hidden":Lt,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Lt,"aria-multiselectable":Lt,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Lt,"aria-relevant":null,"aria-required":Lt,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Wv="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of Wv)Dv[t]=null;class ci{constructor(n,s){this.tags={...oz,...n},this.globalAttrs={...Dv,...s},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}ci.default=new ci;function Gl(t,n,s=t.length){if(!n)return"";let r=n.firstChild,o=r&&r.getChild("TagName");return o?t.sliceString(o.from,Math.min(o.to,s)):""}function Ll(t,n=!1){for(;t;t=t.parent)if(t.name=="Element")if(n)n=!1;else return t;return null}function Bv(t,n,s){let r=s.tags[Gl(t,Ll(n))];return(r==null?void 0:r.children)||s.allTags}function bh(t,n){let s=[];for(let r=Ll(n);r&&!r.type.isTop;r=Ll(r.parent)){let o=Gl(t,r);if(o&&r.lastChild.name=="CloseTag")break;o&&s.indexOf(o)<0&&(n.name=="EndTag"||n.from>=r.firstChild.to)&&s.push(o)}return s}const Hv=/^[:\-\.\w\u00b7-\uffff]*$/;function E1(t,n,s,r,o){let u=/\s*>/.test(t.sliceDoc(o,o+5))?"":">",d=Ll(s,s.name=="StartTag"||s.name=="TagName");return{from:r,to:o,options:Bv(t.doc,d,n).map(O=>({label:O,type:"type"})).concat(bh(t.doc,s).map((O,h)=>({label:"/"+O,apply:"/"+O+u,type:"type",boost:99-h}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function q1(t,n,s,r){let o=/\s*>/.test(t.sliceDoc(r,r+5))?"":">";return{from:s,to:r,options:bh(t.doc,n).map((u,d)=>({label:u,apply:u+o,type:"type",boost:99-d})),validFor:Hv}}function cz(t,n,s,r){let o=[],u=0;for(let d of Bv(t.doc,s,n))o.push({label:"<"+d,type:"type"});for(let d of bh(t.doc,s))o.push({label:"</"+d+">",type:"type",boost:99-u++});return{from:r,to:r,options:o,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function uz(t,n,s,r,o){let u=Ll(s),d=u?n.tags[Gl(t.doc,u)]:null,O=d&&d.attrs?Object.keys(d.attrs):[],h=d&&d.globalAttrs===!1?O:O.length?O.concat(n.globalAttrNames):n.globalAttrNames;return{from:r,to:o,options:h.map(p=>({label:p,type:"property"})),validFor:Hv}}function dz(t,n,s,r,o){var u;let d=(u=s.parent)===null||u===void 0?void 0:u.getChild("AttributeName"),O=[],h;if(d){let p=t.sliceDoc(d.from,d.to),x=n.globalAttrs[p];if(!x){let g=Ll(s),b=g?n.tags[Gl(t.doc,g)]:null;x=(b==null?void 0:b.attrs)&&b.attrs[p]}if(x){let g=t.sliceDoc(r,o).toLowerCase(),b='"',y='"';/^['"]/.test(g)?(h=g[0]=='"'?/^[^"]*$/:/^[^']*$/,b="",y=t.sliceDoc(o,o+1)==g[0]?"":g[0],g=g.slice(1),r++):h=/^[^\s<>='"]*$/;for(let Q of x)O.push({label:Q,apply:b+Q+y,type:"constant"})}}return{from:r,to:o,options:O,validFor:h}}function Iv(t,n){let{state:s,pos:r}=n,o=vn(s).resolveInner(r,-1),u=o.resolve(r);for(let d=r,O;u==o&&(O=o.childBefore(d));){let h=O.lastChild;if(!h||!h.type.isError||h.from<h.to)break;u=o=O,d=h.from}return o.name=="TagName"?o.parent&&/CloseTag$/.test(o.parent.name)?q1(s,o,o.from,r):E1(s,t,o,o.from,r):o.name=="StartTag"||o.name=="IncompleteTag"?E1(s,t,o,r,r):o.name=="StartCloseTag"||o.name=="IncompleteCloseTag"?q1(s,o,r,r):o.name=="OpenTag"||o.name=="SelfClosingTag"||o.name=="AttributeName"?uz(s,t,o,o.name=="AttributeName"?o.from:r,r):o.name=="Is"||o.name=="AttributeValue"||o.name=="UnquotedAttributeValue"?dz(s,t,o,o.name=="Is"?r:o.from,r):n.explicit&&(u.name=="Element"||u.name=="Text"||u.name=="Document")?cz(s,t,o,r):null}function Oz(t){return Iv(ci.default,t)}function fz(t){let{extraTags:n,extraGlobalAttributes:s}=t,r=s||n?new ci(n,s):ci.default;return o=>Iv(r,o)}const hz=Pn.parser.configure({top:"SingleExpression"}),Fv=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:wv.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:kv.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:$v.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:hz},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:Pn.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:Tc.parser}],Kv=[{name:"style",parser:Tc.parser.configure({top:"Styles"})}].concat(Wv.map(t=>({name:t,parser:Pn.parser}))),Jv=hi.define({name:"html",parser:iz.configure({props:[Wl.add({Element(t){let n=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+n[0].length?t.continue():t.lineIndent(t.node.from)+(n[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].length<t.node.to)return t.continue();let n=null,s;for(let r=t.node;;){let o=r.lastChild;if(!o||o.name!="Element"||o.to!=r.to)break;n=r=o}return n&&!((s=n.lastChild)&&(s.name=="CloseTag"||s.name=="SelfClosingTag"))?t.lineIndent(n.from)+t.unit:null}}),Xs.add({Element(t){let n=t.firstChild,s=t.lastChild;return!n||n.name!="OpenTag"?null:{from:n.to,to:s.name=="CloseTag"?s.from:t.to}}}),Rj.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),oc=Jv.configure({wrap:Lv(Fv,Kv)});function ey(t={}){let n="",s;t.matchClosingTags===!1&&(n="noMatch"),t.selfClosingTags===!0&&(n=(n?n+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(s=Lv((t.nestedLanguages||[]).concat(Fv),(t.nestedAttributes||[]).concat(Kv)));let r=s?Jv.configure({wrap:s,dialect:n}):n?oc.configure({dialect:n}):oc;return new Ts(r,[oc.data.of({autocomplete:fz(t)}),t.autoCloseTags!==!1?mz:[],wf().support,Xv().support])}const M1=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),mz=Zl.inputHandler.of((t,n,s,r,o)=>{if(t.composing||t.state.readOnly||n!=s||r!=">"&&r!="/"||!oc.isActiveAt(t.state,n,-1))return!1;let u=o(),{state:d}=u,O=d.changeByRange(h=>{var p,x,g;let b=d.doc.sliceString(h.from-1,h.to)==r,{head:y}=h,Q=vn(d).resolveInner(y,-1),w;if(b&&r==">"&&Q.name=="EndTag"){let k=Q.parent;if(((x=(p=k.parent)===null||p===void 0?void 0:p.lastChild)===null||x===void 0?void 0:x.name)!="CloseTag"&&(w=Gl(d.doc,k.parent,y))&&!M1.has(w)){let j=y+(d.doc.sliceString(y,y+1)===">"?1:0),z=`</${w}>`;return{range:h,changes:{from:y,to:j,insert:z}}}}else if(b&&r=="/"&&Q.name=="IncompleteCloseTag"){let k=Q.parent;if(Q.from==y-2&&((g=k.lastChild)===null||g===void 0?void 0:g.name)!="CloseTag"&&(w=Gl(d.doc,k,y))&&!M1.has(w)){let j=y+(d.doc.sliceString(y,y+1)===">"?1:0),z=`${w}>`;return{range:Fa.cursor(y+z.length,-1),changes:{from:y,to:j,insert:z}}}}return{range:h}});return O.changes.empty?!1:(t.dispatch([u,d.update(O,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),pz=_s({String:Z.string,Number:Z.number,"True False":Z.bool,PropertyName:Z.propertyName,Null:Z.null,", :":Z.separator,"[ ]":Z.squareBracket,"{ }":Z.brace}),xz=ts.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[pz],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),gz=hi.define({name:"json",parser:xz.configure({props:[Wl.add({Object:Pl({except:/^\s*\}/}),Array:Pl({except:/^\s*\]/})}),Xs.add({"Object Array":Zc})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function bz(){return new Ts(gz)}class Pc{static create(n,s,r,o,u){let d=o+(o<<8)+n+(s<<4)|0;return new Pc(n,s,r,d,u,[],[])}constructor(n,s,r,o,u,d,O){this.type=n,this.value=s,this.from=r,this.hash=o,this.end=u,this.children=d,this.positions=O,this.hashProp=[[oa.contextHash,o]]}addChild(n,s){n.prop(oa.contextHash)!=this.hash&&(n=new xn(n.type,n.children,n.positions,n.length,this.hashProp)),this.children.push(n),this.positions.push(s)}toTree(n,s=this.end){let r=this.children.length-1;return r>=0&&(s=Math.max(s,this.positions[r]+this.children[r].length+this.from)),new xn(n.types[this.type],this.children,this.positions,s-this.from).balance({makeTree:(o,u,d)=>new xn(fi.none,o,u,d,this.hashProp)})}}var oe;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.Autolink=33]="Autolink",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel",t[t.URL=44]="URL"})(oe||(oe={}));class vz{constructor(n,s){this.start=n,this.content=s,this.marks=[],this.parsers=[]}}class yz{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let n=this.skipSpace(this.basePos);this.indent=this.countIndent(n,this.pos,this.indent),this.pos=n,this.next=n==this.text.length?-1:this.text.charCodeAt(n)}skipSpace(n){return Jr(this.text,n)}reset(n){for(this.text=n,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(n){this.basePos=n,this.baseIndent=this.countIndent(n,this.pos,this.indent)}moveBaseColumn(n){this.baseIndent=n,this.basePos=this.findColumn(n)}addMarker(n){this.markers.push(n)}countIndent(n,s=0,r=0){for(let o=s;o<n;o++)r+=this.text.charCodeAt(o)==9?4-r%4:1;return r}findColumn(n){let s=0;for(let r=0;s<this.text.length&&r<n;s++)r+=this.text.charCodeAt(s)==9?4-r%4:1;return s}scrub(){if(!this.baseIndent)return this.text;let n="";for(let s=0;s<this.basePos;s++)n+=" ";return n+this.text.slice(this.basePos)}}function Y1(t,n,s){if(s.pos==s.text.length||t!=n.block&&s.indent>=n.stack[s.depth+1].value+s.baseIndent)return!0;if(s.indent>=s.baseIndent+4)return!1;let r=(t.type==oe.OrderedList?Sh:yh)(s,n,!1);return r>0&&(t.type!=oe.BulletList||vh(s,n,!1)<0)&&s.text.charCodeAt(s.pos+r-1)==t.value}const ty={[oe.Blockquote](t,n,s){return s.next!=62?!1:(s.markers.push(Re(oe.QuoteMark,n.lineStart+s.pos,n.lineStart+s.pos+1)),s.moveBase(s.pos+(un(s.text.charCodeAt(s.pos+1))?2:1)),t.end=n.lineStart+s.text.length,!0)},[oe.ListItem](t,n,s){return s.indent<s.baseIndent+t.value&&s.next>-1?!1:(s.moveBaseColumn(s.baseIndent+t.value),!0)},[oe.OrderedList]:Y1,[oe.BulletList]:Y1,[oe.Document](){return!0}};function un(t){return t==32||t==9||t==10||t==13}function Jr(t,n=0){for(;n<t.length&&un(t.charCodeAt(n));)n++;return n}function U1(t,n,s){for(;n>s&&un(t.charCodeAt(n-1));)n--;return n}function ny(t){if(t.next!=96&&t.next!=126)return-1;let n=t.pos+1;for(;n<t.text.length&&t.text.charCodeAt(n)==t.next;)n++;if(n<t.pos+3)return-1;if(t.next==96){for(let s=n;s<t.text.length;s++)if(t.text.charCodeAt(s)==96)return-1}return n}function ay(t){return t.next!=62?-1:t.text.charCodeAt(t.pos+1)==32?2:1}function vh(t,n,s){if(t.next!=42&&t.next!=45&&t.next!=95)return-1;let r=1;for(let o=t.pos+1;o<t.text.length;o++){let u=t.text.charCodeAt(o);if(u==t.next)r++;else if(!un(u))return-1}return s&&t.next==45&&ry(t)>-1&&t.depth==n.stack.length&&n.parser.leafBlockParsers.indexOf(uy.SetextHeading)>-1||r<3?-1:1}function sy(t,n){for(let s=t.stack.length-1;s>=0;s--)if(t.stack[s].type==n)return!0;return!1}function yh(t,n,s){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||un(t.text.charCodeAt(t.pos+1)))&&(!s||sy(n,oe.BulletList)||t.skipSpace(t.pos+2)<t.text.length)?1:-1}function Sh(t,n,s){let r=t.pos,o=t.next;for(;o>=48&&o<=57;){r++;if(r==t.text.length)return-1;o=t.text.charCodeAt(r)}return r==t.pos||r>t.pos+9||o!=46&&o!=41||r<t.text.length-1&&!un(t.text.charCodeAt(r+1))||s&&!sy(n,oe.OrderedList)&&(t.skipSpace(r+1)==t.text.length||r>t.pos+1||t.next!=49)?-1:r+1-t.pos}function ly(t){if(t.next!=35)return-1;let n=t.pos+1;for(;n<t.text.length&&t.text.charCodeAt(n)==35;)n++;if(n<t.text.length&&t.text.charCodeAt(n)!=32)return-1;let s=n-t.pos;return s>6?-1:s}function ry(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let n=t.pos+1;for(;n<t.text.length&&t.text.charCodeAt(n)==t.next;)n++;let s=n;for(;n<t.text.length&&un(t.text.charCodeAt(n));)n++;return n==t.text.length?s:-1}const Tf=/^[ \t]*$/,iy=/-->/,oy=/\?>/,Nf=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,iy],[/^\s*<\?/,oy],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,Tf],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,Tf]];function cy(t,n,s){if(t.next!=60)return-1;let r=t.text.slice(t.pos);for(let o=0,u=Nf.length-(s?1:0);o<u;o++)if(Nf[o][0].test(r))return o;return-1}function V1(t,n){let s=t.countIndent(n,t.pos,t.indent),r=t.countIndent(t.skipSpace(n),n,s);return r>=s+5?s+1:r}function La(t,n,s){let r=t.length-1;r>=0&&t[r].to==n&&t[r].type==oe.CodeText?t[r].to=s:t.push(Re(oe.CodeText,n,s))}const Ho={LinkReference:void 0,IndentedCode(t,n){let s=n.baseIndent+4;if(n.indent<s)return!1;let r=n.findColumn(s),o=t.lineStart+r,u=t.lineStart+n.text.length,d=[],O=[];for(La(d,o,u);t.nextLine()&&n.depth>=t.stack.length;)if(n.pos==n.text.length){La(O,t.lineStart-1,t.lineStart);for(let h of n.markers)O.push(h)}else{if(n.indent<s)break;{if(O.length){for(let p of O)p.type==oe.CodeText?La(d,p.from,p.to):d.push(p);O=[]}La(d,t.lineStart-1,t.lineStart);for(let p of n.markers)d.push(p);u=t.lineStart+n.text.length;let h=t.lineStart+n.findColumn(n.baseIndent+4);h<u&&La(d,h,u)}}return O.length&&(O=O.filter(h=>h.type!=oe.CodeText),O.length&&(n.markers=O.concat(n.markers))),t.addNode(t.buffer.writeElements(d,-o).finish(oe.CodeBlock,u-o),o),!0},FencedCode(t,n){let s=ny(n);if(s<0)return!1;let r=t.lineStart+n.pos,o=n.next,u=s-n.pos,d=n.skipSpace(s),O=U1(n.text,n.text.length,d),h=[Re(oe.CodeMark,r,r+u)];d<O&&h.push(Re(oe.CodeInfo,t.lineStart+d,t.lineStart+O));for(let p=!0,x=!0,g=!1;t.nextLine()&&n.depth>=t.stack.length;p=!1){let b=n.pos;if(n.indent-n.baseIndent<4)for(;b<n.text.length&&n.text.charCodeAt(b)==o;)b++;if(b-n.pos>=u&&n.skipSpace(b)==n.text.length){for(let y of n.markers)h.push(y);x&&g&&La(h,t.lineStart-1,t.lineStart),h.push(Re(oe.CodeMark,t.lineStart+n.pos,t.lineStart+b)),t.nextLine();break}else{g=!0,p||(La(h,t.lineStart-1,t.lineStart),x=!1);for(let w of n.markers)h.push(w);let y=t.lineStart+n.basePos,Q=t.lineStart+n.text.length;y<Q&&(La(h,y,Q),x=!1)}}return t.addNode(t.buffer.writeElements(h,-r).finish(oe.FencedCode,t.prevLineEnd()-r),r),!0},Blockquote(t,n){let s=ay(n);return s<0?!1:(t.startContext(oe.Blockquote,n.pos),t.addNode(oe.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1),n.moveBase(n.pos+s),null)},HorizontalRule(t,n){if(vh(n,t,!1)<0)return!1;let s=t.lineStart+n.pos;return t.nextLine(),t.addNode(oe.HorizontalRule,s),!0},BulletList(t,n){let s=yh(n,t,!1);if(s<0)return!1;t.block.type!=oe.BulletList&&t.startContext(oe.BulletList,n.basePos,n.next);let r=V1(n,n.pos+1);return t.startContext(oe.ListItem,n.basePos,r-n.baseIndent),t.addNode(oe.ListMark,t.lineStart+n.pos,t.lineStart+n.pos+s),n.moveBaseColumn(r),null},OrderedList(t,n){let s=Sh(n,t,!1);if(s<0)return!1;t.block.type!=oe.OrderedList&&t.startContext(oe.OrderedList,n.basePos,n.text.charCodeAt(n.pos+s-1));let r=V1(n,n.pos+s);return t.startContext(oe.ListItem,n.basePos,r-n.baseIndent),t.addNode(oe.ListMark,t.lineStart+n.pos,t.lineStart+n.pos+s),n.moveBaseColumn(r),null},ATXHeading(t,n){let s=ly(n);if(s<0)return!1;let r=n.pos,o=t.lineStart+r,u=U1(n.text,n.text.length,r),d=u;for(;d>r&&n.text.charCodeAt(d-1)==n.next;)d--;(d==u||d==r||!un(n.text.charCodeAt(d-1)))&&(d=n.text.length);let O=t.buffer.write(oe.HeaderMark,0,s).writeElements(t.parser.parseInline(n.text.slice(r+s+1,d),o+s+1),-o);d<n.text.length&&O.write(oe.HeaderMark,d-r,u-r);let h=O.finish(oe.ATXHeading1-1+s,n.text.length-r);return t.nextLine(),t.addNode(h,o),!0},HTMLBlock(t,n){let s=cy(n,t,!1);if(s<0)return!1;let r=t.lineStart+n.pos,o=Nf[s][1],u=[],d=o!=Tf;for(;!o.test(n.text)&&t.nextLine();){if(n.depth<t.stack.length){d=!1;break}for(let p of n.markers)u.push(p)}d&&t.nextLine();let O=o==iy?oe.CommentBlock:o==oy?oe.ProcessingInstructionBlock:oe.HTMLBlock,h=t.prevLineEnd();return t.addNode(t.buffer.writeElements(u,-r).finish(O,h-r),r),!0},SetextHeading:void 0};class Sz{constructor(n){this.stage=0,this.elts=[],this.pos=0,this.start=n.start,this.advance(n.content)}nextLine(n,s,r){if(this.stage==-1)return!1;let o=r.content+`
582
+ `+s.scrub(),u=this.advance(o);return u>-1&&u<o.length?this.complete(n,r,u):!1}finish(n,s){return(this.stage==2||this.stage==3)&&Jr(s.content,this.pos)==s.content.length?this.complete(n,s,s.content.length):!1}complete(n,s,r){return n.addLeafElement(s,Re(oe.LinkReference,this.start,this.start+r,this.elts)),!0}nextStage(n){return n?(this.pos=n.to-this.start,this.elts.push(n),this.stage++,!0):(n===!1&&(this.stage=-1),!1)}advance(n){for(;;){if(this.stage==-1)return-1;if(this.stage==0){if(!this.nextStage(by(n,this.pos,this.start,!0)))return-1;if(n.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(Re(oe.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(xy(n,Jr(n,this.pos),this.start)))return-1}else if(this.stage==2){let s=Jr(n,this.pos),r=0;if(s>this.pos){let o=gy(n,s,this.start);if(o){let u=UO(n,o.to-this.start);u>0&&(this.nextStage(o),r=u)}}return r||(r=UO(n,this.pos)),r>0&&r<n.length?r:-1}else return UO(n,this.pos)}}}function UO(t,n){for(;n<t.length;n++){let s=t.charCodeAt(n);if(s==10)break;if(!un(s))return-1}return n}class Qz{nextLine(n,s,r){let o=s.depth<n.stack.length?-1:ry(s),u=s.next;if(o<0)return!1;let d=Re(oe.HeaderMark,n.lineStart+s.pos,n.lineStart+o);return n.nextLine(),n.addLeafElement(r,Re(u==61?oe.SetextHeading1:oe.SetextHeading2,r.start,n.prevLineEnd(),[...n.parser.parseInline(r.content,r.start),d])),!0}finish(){return!1}}const uy={LinkReference(t,n){return n.content.charCodeAt(0)==91?new Sz(n):null},SetextHeading(){return new Qz}},jz=[(t,n)=>ly(n)>=0,(t,n)=>ny(n)>=0,(t,n)=>ay(n)>=0,(t,n)=>yh(n,t,!0)>=0,(t,n)=>Sh(n,t,!0)>=0,(t,n)=>vh(n,t,!0)>=0,(t,n)=>cy(n,t,!0)>=0],wz={text:"",end:0};class kz{constructor(n,s,r,o){this.parser=n,this.input=s,this.ranges=o,this.line=new yz,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=o[o.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=o[0].from,this.block=Pc.create(oe.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=r.length?new Nz(r,s):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:n}=this;for(;;){for(let r=0;;){let o=n.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;r<n.markers.length&&(!o||n.markers[r].from<o.end);){let u=n.markers[r++];this.addNode(u.type,u.from,u.to)}if(!o)break;this.finishContext()}if(n.pos<n.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(n.basePos))return null;e:for(;;){for(let r of this.parser.blockParsers)if(r){let o=r(this,n);if(o!=!1){if(o==!0)return null;n.forward();continue e}}break}let s=new vz(this.lineStart+n.pos,n.text.slice(n.pos));for(let r of this.parser.leafBlockParsers)if(r){let o=r(this,s);o&&s.parsers.push(o)}e:for(;this.nextLine()&&n.pos!=n.text.length;){if(n.indent<n.baseIndent+4){for(let r of this.parser.endLeafBlock)if(r(this,n,s))break e}for(let r of s.parsers)if(r.nextLine(this,n,s))return null;s.content+=`
583
+ `+n.scrub();for(let r of n.markers)s.marks.push(r)}return this.finishLeaf(s),null}stopAt(n){if(this.stoppedAt!=null&&this.stoppedAt<n)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=n}reuseFragment(n){if(!this.fragments.moveTo(this.absoluteLineStart+n,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let s=this.fragments.takeNodes(this);return s?(this.absoluteLineStart+=s,this.lineStart=vy(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(n=this.depth-1){return this.parser.nodeSet.types[this.stack[n].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(n){let s=wz;if(s.end=n,n>=this.to)s.text="";else if(s.text=this.lineChunkAt(n),s.end+=s.text.length,this.ranges.length>1){let r=this.absoluteLineStart,o=this.rangeI;for(;this.ranges[o].to<s.end;){o++;let u=this.ranges[o].from,d=this.lineChunkAt(u);s.end=u+d.length,s.text=s.text.slice(0,this.ranges[o-1].to-r)+d,r=s.end-s.text.length}}return s}readLine(){let{line:n}=this,{text:s,end:r}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=r,n.reset(s);n.depth<this.stack.length;n.depth++){let o=this.stack[n.depth],u=this.parser.skipContextMarkup[o.type];if(!u)throw new Error("Unhandled block context "+oe[o.type]);let d=this.line.markers.length;if(!u(o,this,n)){this.line.markers.length>d&&(o.end=this.line.markers[this.line.markers.length-1].to),n.forward();break}n.forward()}}lineChunkAt(n){let s=this.input.chunk(n),r;if(this.input.lineChunks)r=s==`
584
+ `?"":s;else{let o=s.indexOf(`
585
+ `);r=o<0?s:s.slice(0,o)}return n+r.length>this.to?r.slice(0,this.to-n):r}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(n,s,r=0){this.block=Pc.create(n,r,this.lineStart+s,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(n,s,r=0){this.startContext(this.parser.getNodeType(n),s,r)}addNode(n,s,r){typeof n=="number"&&(n=new xn(this.parser.nodeSet.types[n],Dl,Dl,(r??this.prevLineEnd())-s)),this.block.addChild(n,s-this.block.from)}addElement(n){this.block.addChild(n.toTree(this.parser.nodeSet),n.from-this.block.from)}addLeafElement(n,s){this.addNode(this.buffer.writeElements(zf(s.children,n.marks),-s.from).finish(s.type,s.to-s.from),s.from)}finishContext(){let n=this.stack.pop(),s=this.stack[this.stack.length-1];s.addChild(n.toTree(this.parser.nodeSet),n.from-s.from),this.block=s}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(n){return this.ranges.length>1?dy(this.ranges,0,n.topNode,this.ranges[0].from,this.reusePlaceholders):n}finishLeaf(n){for(let r of n.parsers)if(r.finish(this,n))return;let s=zf(this.parser.parseInline(n.content,n.start),n.marks);this.addNode(this.buffer.writeElements(s,-n.start).finish(oe.Paragraph,n.content.length),n.start)}elt(n,s,r,o){return typeof n=="string"?Re(this.parser.getNodeType(n),s,r,o):new hy(n,s)}get buffer(){return new fy(this.parser.nodeSet)}}function dy(t,n,s,r,o){let u=t[n].to,d=[],O=[],h=s.from+r;function p(x,g){for(;g?x>=u:x>u;){let b=t[n+1].from-u;r+=b,x+=b,n++,u=t[n].to}}for(let x=s.firstChild;x;x=x.nextSibling){p(x.from+r,!0);let g=x.from+r,b,y=o.get(x.tree);y?b=y:x.to+r>u?(b=dy(t,n,x,r,o),p(x.to+r,!1)):b=x.toTree(),d.push(b),O.push(g-h)}return p(s.to+r,!1),new xn(s.type,d,O,s.to+r-h,s.tree?s.tree.propValues:void 0)}class Kc extends z0{constructor(n,s,r,o,u,d,O,h,p){super(),this.nodeSet=n,this.blockParsers=s,this.leafBlockParsers=r,this.blockNames=o,this.endLeafBlock=u,this.skipContextMarkup=d,this.inlineParsers=O,this.inlineNames=h,this.wrappers=p,this.nodeTypes=Object.create(null);for(let x of n.types)this.nodeTypes[x.name]=x.id}createParse(n,s,r){let o=new kz(this,n,s,r);for(let u of this.wrappers)o=u(o,n,s,r);return o}configure(n){let s=Pf(n);if(!s)return this;let{nodeSet:r,skipContextMarkup:o}=this,u=this.blockParsers.slice(),d=this.leafBlockParsers.slice(),O=this.blockNames.slice(),h=this.inlineParsers.slice(),p=this.inlineNames.slice(),x=this.endLeafBlock.slice(),g=this.wrappers;if(Ir(s.defineNodes)){o=Object.assign({},o);let b=r.types.slice(),y;for(let Q of s.defineNodes){let{name:w,block:k,composite:j,style:z}=typeof Q=="string"?{name:Q}:Q;if(b.some(G=>G.name==w))continue;j&&(o[b.length]=(G,R,_)=>j(R,_,G.value));let N=b.length,X=j?["Block","BlockContext"]:k?N>=oe.ATXHeading1&&N<=oe.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;b.push(fi.define({id:N,name:w,props:X&&[[oa.group,X]]})),z&&(y||(y={}),Array.isArray(z)||z instanceof Cj?y[w]=z:Object.assign(y,z))}r=new qf(b),y&&(r=r.extend(_s(y)))}if(Ir(s.props)&&(r=r.extend(...s.props)),Ir(s.remove))for(let b of s.remove){let y=this.blockNames.indexOf(b),Q=this.inlineNames.indexOf(b);y>-1&&(u[y]=d[y]=void 0),Q>-1&&(h[Q]=void 0)}if(Ir(s.parseBlock))for(let b of s.parseBlock){let y=O.indexOf(b.name);if(y>-1)u[y]=b.parse,d[y]=b.leaf;else{let Q=b.before?Io(O,b.before):b.after?Io(O,b.after)+1:O.length-1;u.splice(Q,0,b.parse),d.splice(Q,0,b.leaf),O.splice(Q,0,b.name)}b.endLeaf&&x.push(b.endLeaf)}if(Ir(s.parseInline))for(let b of s.parseInline){let y=p.indexOf(b.name);if(y>-1)h[y]=b.parse;else{let Q=b.before?Io(p,b.before):b.after?Io(p,b.after)+1:p.length-1;h.splice(Q,0,b.parse),p.splice(Q,0,b.name)}}return s.wrap&&(g=g.concat(s.wrap)),new Kc(r,u,d,O,x,o,h,p,g)}getNodeType(n){let s=this.nodeTypes[n];if(s==null)throw new RangeError(`Unknown node type '${n}'`);return s}parseInline(n,s){let r=new Qh(this,n,s);e:for(let o=s;o<r.end;){let u=r.char(o);for(let d of this.inlineParsers)if(d){let O=d(r,u,o);if(O>=0){o=O;continue e}}o++}return r.resolveMarkers(0)}}function Ir(t){return t!=null&&t.length>0}function Pf(t){if(!Array.isArray(t))return t;if(t.length==0)return null;let n=Pf(t[0]);if(t.length==1)return n;let s=Pf(t.slice(1));if(!s||!n)return n||s;let r=(d,O)=>(d||Dl).concat(O||Dl),o=n.wrap,u=s.wrap;return{props:r(n.props,s.props),defineNodes:r(n.defineNodes,s.defineNodes),parseBlock:r(n.parseBlock,s.parseBlock),parseInline:r(n.parseInline,s.parseInline),remove:r(n.remove,s.remove),wrap:o?u?(d,O,h,p)=>o(u(d,O,h,p),O,h,p):o:u}}function Io(t,n){let s=t.indexOf(n);if(s<0)throw new RangeError(`Position specified relative to unknown parser ${n}`);return s}let Oy=[fi.none];for(let t=1,n;n=oe[t];t++)Oy[t]=fi.define({id:t,name:n,props:t>=oe.Escape?[]:[[oa.group,t in ty?["Block","BlockContext"]:["Block","LeafBlock"]]],top:n=="Document"});const Dl=[];class fy{constructor(n){this.nodeSet=n,this.content=[],this.nodes=[]}write(n,s,r,o=0){return this.content.push(n,s,r,4+o*4),this}writeElements(n,s=0){for(let r of n)r.writeTo(this,s);return this}finish(n,s){return xn.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:n,length:s})}}let ui=class{constructor(n,s,r,o=Dl){this.type=n,this.from=s,this.to=r,this.children=o}writeTo(n,s){let r=n.content.length;n.writeElements(this.children,s),n.content.push(this.type,this.from+s,this.to+s,n.content.length+4-r)}toTree(n){return new fy(n).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class hy{constructor(n,s){this.tree=n,this.from=s}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return Dl}writeTo(n,s){n.nodes.push(this.tree),n.content.push(n.nodes.length-1,this.from+s,this.to+s,-1)}toTree(){return this.tree}}function Re(t,n,s,r){return new ui(t,n,s,r)}const my={resolve:"Emphasis",mark:"EmphasisMark"},py={resolve:"Emphasis",mark:"EmphasisMark"},ks={},zc={};class Wt{constructor(n,s,r,o){this.type=n,this.from=s,this.to=r,this.side=o}}const G1="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let di=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{di=new RegExp("[\\p{S}|\\p{P}]","u")}catch{}const VO={Escape(t,n,s){if(n!=92||s==t.end-1)return-1;let r=t.char(s+1);for(let o=0;o<G1.length;o++)if(G1.charCodeAt(o)==r)return t.append(Re(oe.Escape,s,s+2));return-1},Entity(t,n,s){if(n!=38)return-1;let r=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(t.slice(s+1,s+31));return r?t.append(Re(oe.Entity,s,s+1+r[0].length)):-1},InlineCode(t,n,s){if(n!=96||s&&t.char(s-1)==96)return-1;let r=s+1;for(;r<t.end&&t.char(r)==96;)r++;let o=r-s,u=0;for(;r<t.end;r++)if(t.char(r)==96){if(u++,u==o&&t.char(r+1)!=96)return t.append(Re(oe.InlineCode,s,r+1,[Re(oe.CodeMark,s,s+o),Re(oe.CodeMark,r+1-o,r+1)]))}else u=0;return-1},HTMLTag(t,n,s){if(n!=60||s==t.end-1)return-1;let r=t.slice(s+1,t.end),o=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);if(o)return t.append(Re(oe.Autolink,s,s+1+o[0].length,[Re(oe.LinkMark,s,s+1),Re(oe.URL,s+1,s+o[0].length),Re(oe.LinkMark,s+o[0].length,s+1+o[0].length)]));let u=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(u)return t.append(Re(oe.Comment,s,s+1+u[0].length));let d=/^\?[^]*?\?>/.exec(r);if(d)return t.append(Re(oe.ProcessingInstruction,s,s+1+d[0].length));let O=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return O?t.append(Re(oe.HTMLTag,s,s+1+O[0].length)):-1},Emphasis(t,n,s){if(n!=95&&n!=42)return-1;let r=s+1;for(;t.char(r)==n;)r++;let o=t.slice(s-1,s),u=t.slice(r,r+1),d=di.test(o),O=di.test(u),h=/\s|^$/.test(o),p=/\s|^$/.test(u),x=!p&&(!O||h||d),g=!h&&(!d||p||O),b=x&&(n==42||!g||d),y=g&&(n==42||!x||O);return t.append(new Wt(n==95?my:py,s,r,(b?1:0)|(y?2:0)))},HardBreak(t,n,s){if(n==92&&t.char(s+1)==10)return t.append(Re(oe.HardBreak,s,s+2));if(n==32){let r=s+1;for(;t.char(r)==32;)r++;if(t.char(r)==10&&r>=s+2)return t.append(Re(oe.HardBreak,s,r+1))}return-1},Link(t,n,s){return n==91?t.append(new Wt(ks,s,s+1,1)):-1},Image(t,n,s){return n==33&&t.char(s+1)==91?t.append(new Wt(zc,s,s+2,1)):-1},LinkEnd(t,n,s){if(n!=93)return-1;for(let r=t.parts.length-1;r>=0;r--){let o=t.parts[r];if(o instanceof Wt&&(o.type==ks||o.type==zc)){if(!o.side||t.skipSpace(o.to)==s&&!/[(\[]/.test(t.slice(s+1,s+2)))return t.parts[r]=null,-1;let u=t.takeContent(r),d=t.parts[r]=$z(t,u,o.type==ks?oe.Link:oe.Image,o.from,s+1);if(o.type==ks)for(let O=0;O<r;O++){let h=t.parts[O];h instanceof Wt&&h.type==ks&&(h.side=0)}return d.to}}return-1}};function $z(t,n,s,r,o){let{text:u}=t,d=t.char(o),O=o;if(n.unshift(Re(oe.LinkMark,r,r+(s==oe.Image?2:1))),n.push(Re(oe.LinkMark,o-1,o)),d==40){let h=t.skipSpace(o+1),p=xy(u,h-t.offset,t.offset),x;p&&(h=t.skipSpace(p.to),h!=p.to&&(x=gy(u,h-t.offset,t.offset),x&&(h=t.skipSpace(x.to)))),t.char(h)==41&&(n.push(Re(oe.LinkMark,o,o+1)),O=h+1,p&&n.push(p),x&&n.push(x),n.push(Re(oe.LinkMark,h,O)))}else if(d==91){let h=by(u,o-t.offset,t.offset,!1);h&&(n.push(h),O=h.to)}return Re(s,r,O,n)}function xy(t,n,s){if(t.charCodeAt(n)==60){for(let o=n+1;o<t.length;o++){let u=t.charCodeAt(o);if(u==62)return Re(oe.URL,n+s,o+1+s);if(u==60||u==10)return!1}return null}else{let o=0,u=n;for(let d=!1;u<t.length;u++){let O=t.charCodeAt(u);if(un(O))break;if(d)d=!1;else if(O==40)o++;else if(O==41){if(!o)break;o--}else O==92&&(d=!0)}return u>n?Re(oe.URL,n+s,u+s):u==t.length?null:!1}}function gy(t,n,s){let r=t.charCodeAt(n);if(r!=39&&r!=34&&r!=40)return!1;let o=r==40?41:r;for(let u=n+1,d=!1;u<t.length;u++){let O=t.charCodeAt(u);if(d)d=!1;else{if(O==o)return Re(oe.LinkTitle,n+s,u+1+s);O==92&&(d=!0)}}return null}function by(t,n,s,r){for(let o=!1,u=n+1,d=Math.min(t.length,u+999);u<d;u++){let O=t.charCodeAt(u);if(o)o=!1;else{if(O==93)return r?!1:Re(oe.LinkLabel,n+s,u+1+s);if(r&&!un(O)&&(r=!1),O==91)return!1;O==92&&(o=!0)}}return null}class Qh{constructor(n,s,r){this.parser=n,this.text=s,this.offset=r,this.parts=[]}char(n){return n>=this.end?-1:this.text.charCodeAt(n-this.offset)}get end(){return this.offset+this.text.length}slice(n,s){return this.text.slice(n-this.offset,s-this.offset)}append(n){return this.parts.push(n),n.to}addDelimiter(n,s,r,o,u){return this.append(new Wt(n,s,r,(o?1:0)|(u?2:0)))}get hasOpenLink(){for(let n=this.parts.length-1;n>=0;n--){let s=this.parts[n];if(s instanceof Wt&&(s.type==ks||s.type==zc))return!0}return!1}addElement(n){return this.append(n)}resolveMarkers(n){for(let r=n;r<this.parts.length;r++){let o=this.parts[r];if(!(o instanceof Wt&&o.type.resolve&&o.side&2))continue;let u=o.type==my||o.type==py,d=o.to-o.from,O,h=r-1;for(;h>=n;h--){let w=this.parts[h];if(w instanceof Wt&&w.side&1&&w.type==o.type&&!(u&&(o.side&1||w.side&2)&&(w.to-w.from+d)%3==0&&((w.to-w.from)%3||d%3))){O=w;break}}if(!O)continue;let p=o.type.resolve,x=[],g=O.from,b=o.to;if(u){let w=Math.min(2,O.to-O.from,d);g=O.to-w,b=o.from+w,p=w==1?"Emphasis":"StrongEmphasis"}O.type.mark&&x.push(this.elt(O.type.mark,g,O.to));for(let w=h+1;w<r;w++)this.parts[w]instanceof ui&&x.push(this.parts[w]),this.parts[w]=null;o.type.mark&&x.push(this.elt(o.type.mark,o.from,b));let y=this.elt(p,g,b,x);this.parts[h]=u&&O.from!=g?new Wt(O.type,O.from,g,O.side):null,(this.parts[r]=u&&o.to!=b?new Wt(o.type,b,o.to,o.side):null)?this.parts.splice(r,0,y):this.parts[r]=y}let s=[];for(let r=n;r<this.parts.length;r++){let o=this.parts[r];o instanceof ui&&s.push(o)}return s}findOpeningDelimiter(n){for(let s=this.parts.length-1;s>=0;s--){let r=this.parts[s];if(r instanceof Wt&&r.type==n&&r.side&1)return s}return null}takeContent(n){let s=this.resolveMarkers(n);return this.parts.length=n,s}getDelimiterAt(n){let s=this.parts[n];return s instanceof Wt?s:null}skipSpace(n){return Jr(this.text,n-this.offset)+this.offset}elt(n,s,r,o){return typeof n=="string"?Re(this.parser.getNodeType(n),s,r,o):new hy(n,s)}}Qh.linkStart=ks;Qh.imageStart=zc;function zf(t,n){if(!n.length)return t;if(!t.length)return n;let s=t.slice(),r=0;for(let o of n){for(;r<s.length&&s[r].to<o.to;)r++;if(r<s.length&&s[r].from<o.from){let u=s[r];u instanceof ui&&(s[r]=new ui(u.type,u.from,u.to,zf(u.children,[o])))}else s.splice(r++,0,o)}return s}const Tz=[oe.CodeBlock,oe.ListItem,oe.OrderedList,oe.BulletList];class Nz{constructor(n,s){this.fragments=n,this.input=s,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,n.length&&(this.fragment=n[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(n,s){for(;this.fragment&&this.fragment.to<=n;)this.nextFragment();if(!this.fragment||this.fragment.from>(n?n-1:0))return!1;if(this.fragmentEnd<0){let u=this.fragment.to;for(;u>0&&this.input.read(u-1,u)!=`
586
+ `;)u--;this.fragmentEnd=u?u-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let o=n+this.fragment.offset;for(;r.to<=o;)if(!r.parent())return!1;for(;;){if(r.from>=o)return this.fragment.from<=s;if(!r.childAfter(o))return!1}}matches(n){let s=this.cursor.tree;return s&&s.prop(oa.contextHash)==n}takeNodes(n){let s=this.cursor,r=this.fragment.offset,o=this.fragmentEnd-(this.fragment.openEnd?1:0),u=n.absoluteLineStart,d=u,O=n.block.children.length,h=d,p=O;for(;;){if(s.to-r>o){if(s.type.isAnonymous&&s.firstChild())continue;break}let x=vy(s.from-r,n.ranges);if(s.to-r<=n.ranges[n.rangeI].to)n.addNode(s.tree,x);else{let g=new xn(n.parser.nodeSet.types[oe.Paragraph],[],[],0,n.block.hashProp);n.reusePlaceholders.set(g,s.tree),n.addNode(g,x)}if(s.type.is("Block")&&(Tz.indexOf(s.type.id)<0?(d=s.to-r,O=n.block.children.length):(d=h,O=p),h=s.to-r,p=n.block.children.length),!s.nextSibling())break}for(;n.block.children.length>O;)n.block.children.pop(),n.block.positions.pop();return d-u}}function vy(t,n){let s=t;for(let r=1;r<n.length;r++){let o=n[r-1].to,u=n[r].from;o<t&&(s-=u-o)}return s}const Pz=_s({"Blockquote/...":Z.quote,HorizontalRule:Z.contentSeparator,"ATXHeading1/... SetextHeading1/...":Z.heading1,"ATXHeading2/... SetextHeading2/...":Z.heading2,"ATXHeading3/...":Z.heading3,"ATXHeading4/...":Z.heading4,"ATXHeading5/...":Z.heading5,"ATXHeading6/...":Z.heading6,"Comment CommentBlock":Z.comment,Escape:Z.escape,Entity:Z.character,"Emphasis/...":Z.emphasis,"StrongEmphasis/...":Z.strong,"Link/... Image/...":Z.link,"OrderedList/... BulletList/...":Z.list,"BlockQuote/...":Z.quote,"InlineCode CodeText":Z.monospace,"URL Autolink":Z.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":Z.processingInstruction,"CodeInfo LinkLabel":Z.labelName,LinkTitle:Z.string,Paragraph:Z.content}),zz=new Kc(new qf(Oy).extend(Pz),Object.keys(Ho).map(t=>Ho[t]),Object.keys(Ho).map(t=>uy[t]),Object.keys(Ho),jz,ty,Object.keys(VO).map(t=>VO[t]),Object.keys(VO),[]);function Rz(t,n,s){let r=[];for(let o=t.firstChild,u=n;;o=o.nextSibling){let d=o?o.from:s;if(d>u&&r.push({from:u,to:d}),!o)break;u=o.to}return r}function Cz(t){let{codeParser:n,htmlParser:s}=t;return{wrap:A0((o,u)=>{let d=o.type.id;if(n&&(d==oe.CodeBlock||d==oe.FencedCode)){let O="";if(d==oe.FencedCode){let p=o.node.getChild(oe.CodeInfo);p&&(O=u.read(p.from,p.to))}let h=n(O);if(h)return{parser:h,overlay:p=>p.type.id==oe.CodeText,bracketed:d==oe.FencedCode}}else if(s&&(d==oe.HTMLBlock||d==oe.HTMLTag||d==oe.CommentBlock))return{parser:s,overlay:Rz(o.node,o.from,o.to)};return null})}}const _z={resolve:"Strikethrough",mark:"StrikethroughMark"},Xz={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Z.strikethrough}},{name:"StrikethroughMark",style:Z.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,n,s){if(n!=126||t.char(s+1)!=126||t.char(s+2)==126)return-1;let r=t.slice(s-1,s),o=t.slice(s+2,s+3),u=/\s|^$/.test(r),d=/\s|^$/.test(o),O=di.test(r),h=di.test(o);return t.addDelimiter(_z,s,s+2,!d&&(!h||u||O),!u&&(!O||d||h))},after:"Emphasis"}]};function ei(t,n,s=0,r,o=0){let u=0,d=!0,O=-1,h=-1,p=!1,x=()=>{r.push(t.elt("TableCell",o+O,o+h,t.parser.parseInline(n.slice(O,h),o+O)))};for(let g=s;g<n.length;g++){let b=n.charCodeAt(g);b==124&&!p?((!d||O>-1)&&u++,d=!1,r&&(O>-1&&x(),r.push(t.elt("TableDelimiter",g+o,g+o+1))),O=h=-1):(p||b!=32&&b!=9)&&(O<0&&(O=g),h=g+1),p=!p&&b==92}return O>-1&&(u++,r&&x()),u}function L1(t,n){for(let s=n;s<t.length;s++){let r=t.charCodeAt(s);if(r==124)return!0;r==92&&s++}return!1}const yy=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class D1{constructor(){this.rows=null}nextLine(n,s,r){if(this.rows==null){this.rows=!1;let o;if((s.next==45||s.next==58||s.next==124)&&yy.test(o=s.text.slice(s.pos))){let u=[];ei(n,r.content,0,u,r.start)==ei(n,o,s.pos)&&(this.rows=[n.elt("TableHeader",r.start,r.start+r.content.length,u),n.elt("TableDelimiter",n.lineStart+s.pos,n.lineStart+s.text.length)])}}else if(this.rows){let o=[];ei(n,s.text,s.pos,o,n.lineStart),this.rows.push(n.elt("TableRow",n.lineStart+s.pos,n.lineStart+s.text.length,o))}return!1}finish(n,s){return this.rows?(n.addLeafElement(s,n.elt("Table",s.start,s.start+s.content.length,this.rows)),!0):!1}}const Az={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":Z.heading}},"TableRow",{name:"TableCell",style:Z.content},{name:"TableDelimiter",style:Z.processingInstruction}],parseBlock:[{name:"Table",leaf(t,n){return L1(n.content,0)?new D1:null},endLeaf(t,n,s){if(s.parsers.some(o=>o instanceof D1)||!L1(n.text,n.basePos))return!1;let r=t.peekLine();return yy.test(r)&&ei(t,n.text,n.basePos)==ei(t,r,n.basePos)},before:"SetextHeading"}]};class Zz{nextLine(){return!1}finish(n,s){return n.addLeafElement(s,n.elt("Task",s.start,s.start+s.content.length,[n.elt("TaskMarker",s.start,s.start+3),...n.parser.parseInline(s.content.slice(3),s.start+3)])),!0}}const Ez={defineNodes:[{name:"Task",block:!0,style:Z.list},{name:"TaskMarker",style:Z.atom}],parseBlock:[{name:"TaskList",leaf(t,n){return/^\[[ xX]\][ \t]/.test(n.content)&&t.parentType().name=="ListItem"?new Zz:null},after:"SetextHeading"}]},W1=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,B1=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,qz=/[\w-]+\.[\w-]+($|\/)/,H1=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,I1=/\/[a-zA-Z\d@.]+/gy;function F1(t,n,s,r){let o=0;for(let u=n;u<s;u++)t[u]==r&&o++;return o}function Mz(t,n){B1.lastIndex=n;let s=B1.exec(t);if(!s||qz.exec(s[0])[0].indexOf("_")>-1)return-1;let r=n+s[0].length;for(;;){let o=t[r-1],u;if(/[?!.,:*_~]/.test(o)||o==")"&&F1(t,n,r,")")>F1(t,n,r,"("))r--;else if(o==";"&&(u=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(n,r))))r=n+u.index;else break}return r}function K1(t,n){H1.lastIndex=n;let s=H1.exec(t);if(!s)return-1;let r=s[0][s[0].length-1];return r=="_"||r=="-"?-1:n+s[0].length-(r=="."?1:0)}const Yz={parseInline:[{name:"Autolink",parse(t,n,s){let r=s-t.offset;if(r&&/\w/.test(t.text[r-1]))return-1;W1.lastIndex=r;let o=W1.exec(t.text),u=-1;if(!o)return-1;if(o[1]||o[2]){if(u=Mz(t.text,r+o[0].length),u>-1&&t.hasOpenLink){let d=/([^\[\]]|\[[^\]]*\])*/.exec(t.text.slice(r,u));u=r+d[0].length}}else o[3]?u=K1(t.text,r):(u=K1(t.text,r+o[0].length),u>-1&&o[0]=="xmpp:"&&(I1.lastIndex=u,o=I1.exec(t.text),o&&(u=o.index+o[0].length)));return u<0?-1:(t.addElement(t.elt("URL",s,u+t.offset)),u+t.offset)}}]},Uz=[Az,Ez,Xz,Yz];function Sy(t,n,s){return(r,o,u)=>{if(o!=t||r.char(u+1)==t)return-1;let d=[r.elt(s,u,u+1)];for(let O=u+1;O<r.end;O++){let h=r.char(O);if(h==t)return r.addElement(r.elt(n,u,O+1,d.concat(r.elt(s,O,O+1))));if(h==92&&d.push(r.elt("Escape",O,O+++2)),un(h))break}return-1}}const Vz={defineNodes:[{name:"Superscript",style:Z.special(Z.content)},{name:"SuperscriptMark",style:Z.processingInstruction}],parseInline:[{name:"Superscript",parse:Sy(94,"Superscript","SuperscriptMark")}]},Gz={defineNodes:[{name:"Subscript",style:Z.special(Z.content)},{name:"SubscriptMark",style:Z.processingInstruction}],parseInline:[{name:"Subscript",parse:Sy(126,"Subscript","SubscriptMark")}]},Lz={defineNodes:[{name:"Emoji",style:Z.character}],parseInline:[{name:"Emoji",parse(t,n,s){let r;return n!=58||!(r=/^[a-zA-Z_0-9]+:/.exec(t.slice(s+1,t.end)))?-1:t.addElement(t.elt("Emoji",s,s+1+r[0].length))}}]},Qy=X0({commentTokens:{block:{open:"<!--",close:"-->"}}}),jy=new oa,wy=zz.configure({props:[Xs.add(t=>!t.is("Block")||t.is("Document")||Rf(t)!=null||Dz(t)?void 0:(n,s)=>({from:s.doc.lineAt(n.from).to,to:n.to})),jy.add(Rf),Wl.add({Document:()=>null}),qj.add({Document:Qy})]});function Rf(t){let n=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return n?+n[1]:void 0}function Dz(t){return t.name=="OrderedList"||t.name=="BulletList"}function Wz(t,n){let s=t;for(;;){let r=s.nextSibling,o;if(!r||(o=Rf(r.type))!=null&&o<=n)break;s=r}return s.to}const Bz=Xj.of((t,n,s)=>{for(let r=vn(t).resolveInner(s,-1);r&&!(r.from<n);r=r.parent){let o=r.type.prop(jy);if(o==null)continue;let u=Wz(r,o);if(u>s)return{from:s,to:u}}return null});function jh(t){return new Aj(Qy,t,[],"markdown")}const Hz=jh(wy),Iz=wy.configure([Uz,Gz,Vz,Lz,{props:[Xs.add({Table:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})})]}]),Rc=jh(Iz);function Fz(t,n){return s=>{if(s&&t){let r=null;if(s=/\S*/.exec(s)[0],typeof t=="function"?r=t(s):r=_g.matchLanguageName(t,s,!0),r instanceof _g)return r.support?r.support.language.parser:Mj.getSkippingParser(r.load());if(r)return r.parser}return n?n.parser:null}}let GO=class{constructor(n,s,r,o,u,d,O){this.node=n,this.from=s,this.to=r,this.spaceBefore=o,this.spaceAfter=u,this.type=d,this.item=O}blank(n,s=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(n!=null){for(;r.length<n;)r+=" ";return r}else{for(let o=this.to-this.from-r.length-this.spaceAfter.length;o>0;o--)r+=" ";return r+(s?this.spaceAfter:"")}}marker(n,s){let r=this.node.name=="OrderedList"?String(+$y(this.item,n)[2]+s):"";return this.spaceBefore+r+this.type+this.spaceAfter}};function ky(t,n){let s=[],r=[];for(let o=t;o;o=o.parent){if(o.name=="FencedCode")return r;(o.name=="ListItem"||o.name=="Blockquote")&&s.push(o)}for(let o=s.length-1;o>=0;o--){let u=s[o],d,O=n.lineAt(u.from),h=u.from-O.from;if(u.name=="Blockquote"&&(d=/^ *>( ?)/.exec(O.text.slice(h))))r.push(new GO(u,h,h+d[0].length,"",d[1],">",null));else if(u.name=="ListItem"&&u.parent.name=="OrderedList"&&(d=/^( *)\d+([.)])( *)/.exec(O.text.slice(h)))){let p=d[3],x=d[0].length;p.length>=4&&(p=p.slice(0,p.length-4),x-=4),r.push(new GO(u.parent,h,h+x,d[1],p,d[2],u))}else if(u.name=="ListItem"&&u.parent.name=="BulletList"&&(d=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(O.text.slice(h)))){let p=d[4],x=d[0].length;p.length>4&&(p=p.slice(0,p.length-4),x-=4);let g=d[2];d[3]&&(g+=d[3].replace(/[xX]/," ")),r.push(new GO(u.parent,h,h+x,d[1],p,g,u))}}return r}function $y(t,n){return/^(\s*)(\d+)(?=[.)])/.exec(n.sliceString(t.from,t.from+10))}function LO(t,n,s,r=0){for(let o=-1,u=t;;){if(u.name=="ListItem"){let O=$y(u,n),h=+O[2];if(o>=0){if(h!=o+1)return;s.push({from:u.from+O[1].length,to:u.from+O[0].length,insert:String(o+2+r)})}o=h}let d=u.nextSibling;if(!d)break;u=d}}function wh(t,n){let s=/^[ \t]*/.exec(t)[0].length;if(!s||n.facet(Zj)!=" ")return t;let r=ti(t,4,s),o="";for(let u=r;u>0;)u>=4?(o+=" ",u-=4):(o+=" ",u--);return o+t.slice(s)}const Kz=(t={})=>({state:n,dispatch:s})=>{let r=vn(n),{doc:o}=n,u=null,d=n.changeByRange(O=>{if(!O.empty||!Rc.isActiveAt(n,O.from,-1)&&!Rc.isActiveAt(n,O.from,1))return u={range:O};let h=O.from,p=o.lineAt(h),x=ky(r.resolveInner(h,-1),o);for(;x.length&&x[x.length-1].from>h-p.from;)x.pop();if(!x.length)return u={range:O};let g=x[x.length-1];if(g.to-g.spaceAfter.length>h-p.from)return u={range:O};let b=h>=g.to-g.spaceAfter.length&&!/\S/.test(p.text.slice(g.to));if(g.item&&b){let j=g.node.firstChild,z=g.node.getChild("ListItem","ListItem");if(j.to>=h||z&&z.to<h||p.from>0&&!/[^\s>]/.test(o.lineAt(p.from-1).text)||t.nonTightLists===!1){let N=x.length>1?x[x.length-2]:null,X,G="";N&&N.item?(X=p.from+N.from,G=N.marker(o,1)):X=p.from+(N?N.to:0);let R=[{from:X,to:h,insert:G}];return g.node.name=="OrderedList"&&LO(g.item,o,R,-2),N&&N.node.name=="OrderedList"&&LO(N.item,o,R),{range:Fa.cursor(X+G.length),changes:R}}else{let N=e0(x,n,p);return{range:Fa.cursor(h+N.length+1),changes:{from:p.from,insert:N+n.lineBreak}}}}if(g.node.name=="Blockquote"&&b&&p.from){let j=o.lineAt(p.from-1),z=/>\s*$/.exec(j.text);if(z&&z.index==g.from){let N=n.changes([{from:j.from+z.index,to:j.to},{from:p.from+g.from,to:p.to}]);return{range:O.map(N),changes:N}}}let y=[];g.node.name=="OrderedList"&&LO(g.item,o,y);let Q=g.item&&g.item.from<p.from,w="";if(!Q||/^[\s\d.)\-+*>]*/.exec(p.text)[0].length>=g.to)for(let j=0,z=x.length-1;j<=z;j++)w+=j==z&&!Q?x[j].marker(o,1):x[j].blank(j<z?ti(p.text,4,x[j+1].from)-w.length:null);let k=h;for(;k>p.from&&/\s/.test(p.text.charAt(k-p.from-1));)k--;return w=wh(w,n),eR(g.node,n.doc)&&(w=e0(x,n,p)+n.lineBreak+w),y.push({from:k,to:h,insert:n.lineBreak+w}),{range:Fa.cursor(k+w.length+1),changes:y}});return u?!1:(s(n.update(d,{scrollIntoView:!0,userEvent:"input"})),!0)},Jz=Kz();function J1(t){return t.name=="QuoteMark"||t.name=="ListMark"}function eR(t,n){if(t.name!="OrderedList"&&t.name!="BulletList")return!1;let s=t.firstChild,r=t.getChild("ListItem","ListItem");if(!r)return!1;let o=n.lineAt(s.to),u=n.lineAt(r.from),d=/^[\s>]*$/.test(o.text);return o.number+(d?0:1)<u.number}function e0(t,n,s){let r="";for(let o=0,u=t.length-2;o<=u;o++)r+=t[o].blank(o<u?ti(s.text,4,t[o+1].from)-r.length:null,o<u);return wh(r,n)}function tR(t,n){let s=t.resolveInner(n,-1),r=n;J1(s)&&(r=s.from,s=s.parent);for(let o;o=s.childBefore(r);)if(J1(o))r=o.from;else if(o.name=="OrderedList"||o.name=="BulletList")s=o.lastChild,r=s.to;else break;return s}const nR=({state:t,dispatch:n})=>{let s=vn(t),r=null,o=t.changeByRange(u=>{let d=u.from,{doc:O}=t;if(u.empty&&Rc.isActiveAt(t,u.from)){let h=O.lineAt(d),p=ky(tR(s,d),O);if(p.length){let x=p[p.length-1],g=x.to-x.spaceAfter.length+(x.spaceAfter?1:0);if(d-h.from>g&&!/\S/.test(h.text.slice(g,d-h.from)))return{range:Fa.cursor(h.from+g),changes:{from:h.from+g,to:d}};if(d-h.from==g&&(!x.item||h.from<=x.item.from||!/\S/.test(h.text.slice(0,x.to)))){let b=h.from+x.from;if(x.item&&x.node.from<x.item.from&&/\S/.test(h.text.slice(x.from,x.to))){let y=x.blank(ti(h.text,4,x.to)-ti(h.text,4,x.from));return b==h.from&&(y=wh(y,t)),{range:Fa.cursor(b+y.length),changes:{from:b,to:h.from+x.to,insert:y}}}if(b<d)return{range:Fa.cursor(b),changes:{from:b,to:d}}}}}return r={range:u}});return r?!1:(n(t.update(o,{scrollIntoView:!0,userEvent:"delete"})),!0)},aR=[{key:"Enter",run:Jz},{key:"Backspace",run:nR}],Ty=ey({matchClosingTags:!1});function sR(t={}){let{codeLanguages:n,defaultCodeLanguage:s,addKeymap:r=!0,base:{parser:o}=Hz,completeHTMLTags:u=!0,pasteURLAsLink:d=!0,htmlTagLanguage:O=Ty}=t;if(!(o instanceof Kc))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let h=t.extensions?[t.extensions]:[],p=[O.support,Bz],x;d&&p.push(oR),s instanceof Ts?(p.push(s.support),x=s.language):s&&(x=s);let g=n||x?Fz(n,x):void 0;h.push(Cz({codeParser:g,htmlParser:O.language.parser})),r&&p.push(_j.high(df.of(aR)));let b=jh(o.configure(h));return u&&p.push(b.data.of({autocomplete:lR})),new Ts(b,p)}function lR(t){let{state:n,pos:s}=t,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(n.sliceDoc(s-25,s));if(!r)return null;let o=vn(n).resolveInner(s,-1);for(;o&&!o.type.isTop;){if(o.name=="CodeBlock"||o.name=="FencedCode"||o.name=="ProcessingInstructionBlock"||o.name=="CommentBlock"||o.name=="Link"||o.name=="Image")return null;o=o.parent}return{from:s-r[0].length,to:s,options:rR(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let DO=null;function rR(){if(DO)return DO;let t=Oz(new Ej(Z0.create({extensions:Ty}),0,!0));return DO=t?t.options:[]}const iR=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,oR=Zl.domEventHandlers({paste:(t,n)=>{var s;let{main:r}=n.state.selection;if(r.empty)return!1;let o=(s=t.clipboardData)===null||s===void 0?void 0:s.getData("text/plain");if(!o||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(o)||(/^www\./.test(o)&&(o="https://"+o),!Rc.isActiveAt(n.state,r.from,1)))return!1;let u=vn(n.state),d=!1;return u.iterate({from:r.from,to:r.to,enter:O=>{(O.from>r.from||iR.test(O.name))&&(d=!0)},leave:O=>{O.to<r.to&&(d=!0)}}),d?!1:(n.dispatch({changes:[{from:r.from,insert:"["},{from:r.to,insert:`](${o})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}}),cR=1,Ny=194,Py=195,uR=196,t0=197,dR=198,OR=199,fR=200,hR=2,zy=3,n0=201,mR=24,pR=25,xR=49,gR=50,bR=55,vR=56,yR=57,SR=59,QR=60,jR=61,wR=62,kR=63,$R=65,TR=238,NR=71,PR=241,zR=242,RR=243,CR=244,_R=245,XR=246,AR=247,ZR=248,Ry=72,ER=249,qR=250,MR=251,YR=252,UR=253,VR=254,GR=255,LR=256,DR=73,WR=77,BR=263,HR=112,IR=130,FR=151,KR=152,JR=155,Rs=10,Oi=13,kh=32,Jc=9,$h=35,eC=40,tC=46,Cf=123,a0=125,Cy=39,_y=34,s0=92,nC=111,aC=120,sC=78,lC=117,rC=85,iC=new Set([pR,xR,gR,BR,$R,IR,vR,yR,TR,wR,kR,Ry,DR,WR,QR,jR,FR,KR,JR,HR]);function WO(t){return t==Rs||t==Oi}function BO(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}const oC=new gt((t,n)=>{let s;if(t.next<0)t.acceptToken(OR);else if(n.context.flags&cc)WO(t.next)&&t.acceptToken(dR,1);else if(((s=t.peek(-1))<0||WO(s))&&n.canShift(t0)){let r=0;for(;t.next==kh||t.next==Jc;)t.advance(),r++;(t.next==Rs||t.next==Oi||t.next==$h)&&t.acceptToken(t0,-r)}else WO(t.next)&&t.acceptToken(uR,1)},{contextual:!0}),cC=new gt((t,n)=>{let s=n.context;if(s.flags)return;let r=t.peek(-1);if(r==Rs||r==Oi){let o=0,u=0;for(;;){if(t.next==kh)o++;else if(t.next==Jc)o+=8-o%8;else break;t.advance(),u++}o!=s.indent&&t.next!=Rs&&t.next!=Oi&&t.next!=$h&&(o<s.indent?t.acceptToken(Py,-u):t.acceptToken(Ny))}}),cc=1,Xy=2,aa=4,sa=8,la=16,ra=32;function uc(t,n,s){this.parent=t,this.indent=n,this.flags=s,this.hash=(t?t.hash+t.hash<<8:0)+n+(n<<4)+s+(s<<6)}const uC=new uc(null,0,0);function dC(t){let n=0;for(let s=0;s<t.length;s++)n+=t.charCodeAt(s)==Jc?8-n%8:1;return n}const l0=new Map([[PR,0],[zR,aa],[RR,sa],[CR,sa|aa],[_R,la],[XR,la|aa],[AR,la|sa],[ZR,la|sa|aa],[ER,ra],[qR,ra|aa],[MR,ra|sa],[YR,ra|sa|aa],[UR,ra|la],[VR,ra|la|aa],[GR,ra|la|sa],[LR,ra|la|sa|aa]].map(([t,n])=>[t,n|Xy])),OC=new hh({start:uC,reduce(t,n,s,r){return t.flags&cc&&iC.has(n)||(n==NR||n==Ry)&&t.flags&Xy?t.parent:t},shift(t,n,s,r){return n==Ny?new uc(t,dC(r.read(r.pos,s.pos)),0):n==Py?t.parent:n==mR||n==bR||n==SR||n==zy?new uc(t,0,cc):l0.has(n)?new uc(t,0,l0.get(n)|t.flags&cc):t},hash(t){return t.hash}}),fC=new gt(t=>{for(let n=0;n<5;n++){if(t.next!="print".charCodeAt(n))return;t.advance()}if(!/\w/.test(String.fromCharCode(t.next)))for(let n=0;;n++){let s=t.peek(n);if(!(s==kh||s==Jc)){s!=eC&&s!=tC&&s!=Rs&&s!=Oi&&s!=$h&&t.acceptToken(cR);return}}}),hC=new gt((t,n)=>{let{flags:s}=n.context,r=s&aa?_y:Cy,o=(s&sa)>0,u=!(s&la),d=(s&ra)>0,O=t.pos;for(;!(t.next<0);)if(d&&t.next==Cf)if(t.peek(1)==Cf)t.advance(2);else{if(t.pos==O){t.acceptToken(zy,1);return}break}else if(u&&t.next==s0){if(t.pos==O){t.advance();let h=t.next;h>=0&&(t.advance(),mC(t,h)),t.acceptToken(hR);return}break}else if(t.next==s0&&!u&&t.peek(1)>-1)t.advance(2);else if(t.next==r&&(!o||t.peek(1)==r&&t.peek(2)==r)){if(t.pos==O){t.acceptToken(n0,o?3:1);return}break}else if(t.next==Rs){if(o)t.advance();else if(t.pos==O){t.acceptToken(n0);return}break}else t.advance();t.pos>O&&t.acceptToken(fR)});function mC(t,n){if(n==nC)for(let s=0;s<2&&t.next>=48&&t.next<=55;s++)t.advance();else if(n==aC)for(let s=0;s<2&&BO(t.next);s++)t.advance();else if(n==lC)for(let s=0;s<4&&BO(t.next);s++)t.advance();else if(n==rC)for(let s=0;s<8&&BO(t.next);s++)t.advance();else if(n==sC&&t.next==Cf){for(t.advance();t.next>=0&&t.next!=a0&&t.next!=Cy&&t.next!=_y&&t.next!=Rs;)t.advance();t.next==a0&&t.advance()}}const pC=_s({'async "*" "**" FormatConversion FormatSpec':Z.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":Z.controlKeyword,"in not and or is del":Z.operatorKeyword,"from def class global nonlocal lambda":Z.definitionKeyword,import:Z.moduleKeyword,"with as print":Z.keyword,Boolean:Z.bool,None:Z.null,VariableName:Z.variableName,"CallExpression/VariableName":Z.function(Z.variableName),"FunctionDefinition/VariableName":Z.function(Z.definition(Z.variableName)),"ClassDefinition/VariableName":Z.definition(Z.className),PropertyName:Z.propertyName,"CallExpression/MemberExpression/PropertyName":Z.function(Z.propertyName),Comment:Z.lineComment,Number:Z.number,String:Z.string,FormatString:Z.special(Z.string),Escape:Z.escape,UpdateOp:Z.updateOperator,"ArithOp!":Z.arithmeticOperator,BitOp:Z.bitwiseOperator,CompareOp:Z.compareOperator,AssignOp:Z.definitionOperator,Ellipsis:Z.punctuation,At:Z.meta,"( )":Z.paren,"[ ]":Z.squareBracket,"{ }":Z.brace,".":Z.derefOperator,", ;":Z.separator}),xC={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},gC=ts.deserialize({version:14,states:"##jO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#GtOOQS'#Eb'#EbO0rQdO'#EcOOQS'#Gs'#GsO0|QdO'#GrOOQV'#Gr'#GrO1XQdO'#FYOOQS'#G^'#G^O1^QdO'#FXOOQV'#IS'#ISOOQV'#Gq'#GqOOQV'#Fq'#FqQ`QeOOO'vQdO'#CqO1lQdO'#C}O1sQdO'#DRO2RQdO'#HYO2cQtO'#EVO'vQdO'#EWOOQS'#EY'#EYOOQS'#E['#E[OOQS'#E^'#E^O2wQdO'#E`O3_QdO'#EdO3rQdO'#EfO3zQtO'#EfO1XQdO'#EiO0rQdO'#ElO1XQdO'#EnO0rQdO'#EtO0rQdO'#EwO4VQdO'#EyO4^QdO'#FOO4iQdO'#EzO0rQdO'#FOO1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,f*bQ-t,pQ.m-uR/].lQ$StQ(R%cR*s(SQ.l-sR/}/sR#QZR#V[R%Q!iQ%O!iV*c'm*d,g!Z!lQ!n#c#p$R$d$p$u$v$w$x$y$z%e%j%p%q&`'O'g(q(|)j*o*x+w,v0gR%T!kT#]^#_Q%x#[R,{+YQ(m%xS+_(n(oQ,}+`Q-x,{S.n-y-zR/^.oT+Z(k+]Q$`}Q&g$QQ)o'PR+{)pQ$XzQ)W&qR+i)XQ$XzQ&o$WQ)W&qR+i)XQ#khW$Vz$W&q)XQ$[{Q&r$ZZ)R&l)S+f+g-RR$^|R)c&wXlOn)t,PQ$f!RR'Q$gQ$m!UR'R$hR*X'_Q*V'_V-g,`-h.TQ.d-lQ/P.^R/Q._U.]-l.^._Q/U.aQ/b.tQ/g.zU/i.|/j/yQ/n/RQ/|/oQ0O/tU0Q/u0S0[Q0]0UQ0a0ZR0b0^R/T.`R/d.t",nodeNames:"⚠ print Escape { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatSelfDoc FormatConversion FormatSpec FormatReplacement FormatSelfDoc ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:277,context:OC,nodeProps:[["isolate",-5,4,71,72,73,77,""],["group",-15,6,85,87,88,90,92,94,96,98,99,100,102,105,108,110,"Statement Statement",-22,8,18,21,25,40,49,50,56,57,60,61,62,63,64,67,70,71,72,79,80,81,82,"Expression",-10,114,116,119,121,122,126,128,133,135,138,"Statement",-9,143,144,147,148,150,151,152,153,154,"Pattern"],["openedBy",23,"(",54,"[",58,"{"],["closedBy",24,")",55,"]",59,"}"]],propSources:[pC],skippedNodes:[0,4],repeatNodeCount:34,tokenData:"!2|~R!`OX%TXY%oY[%T[]%o]p%Tpq%oqr'ars)Yst*xtu%Tuv,dvw-hwx.Uxy/tyz0[z{0r{|2S|}2p}!O3W!O!P4_!P!Q:Z!Q!R;k!R![>_![!]Do!]!^Es!^!_FZ!_!`Gk!`!aHX!a!b%T!b!cIf!c!dJU!d!eK^!e!hJU!h!i!#f!i!tJU!t!u!,|!u!wJU!w!x!.t!x!}JU!}#O!0S#O#P&o#P#Q!0j#Q#R!1Q#R#SJU#S#T%T#T#UJU#U#VK^#V#YJU#Y#Z!#f#Z#fJU#f#g!,|#g#iJU#i#j!.t#j#oJU#o#p!1n#p#q!1s#q#r!2a#r#s!2f#s$g%T$g;'SJU;'S;=`KW<%lOJU`%YT&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T`%lP;=`<%l%To%v]&n`%c_OX%TXY%oY[%T[]%o]p%Tpq%oq#O%T#O#P&o#P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To&tX&n`OY%TYZ%oZ]%T]^%o^#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc'f[&n`O!_%T!_!`([!`#T%T#T#U(r#U#f%T#f#g(r#g#h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C,oC,hC,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:t=>xC[t]||-1}],tokenPrec:7668}),r0=new Mf,Ay=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function Fo(t){return(n,s,r)=>{if(r)return!1;let o=n.node.getChild("VariableName");return o&&s(o,t),!0}}const bC={FunctionDefinition:Fo("function"),ClassDefinition:Fo("class"),ForStatement(t,n,s){if(s){for(let r=t.node.firstChild;r;r=r.nextSibling)if(r.name=="VariableName")n(r,"variable");else if(r.name=="in")break}},ImportStatement(t,n){var s,r;let{node:o}=t,u=((s=o.firstChild)===null||s===void 0?void 0:s.name)=="from";for(let d=o.getChild("import");d;d=d.nextSibling)d.name=="VariableName"&&((r=d.nextSibling)===null||r===void 0?void 0:r.name)!="as"&&n(d,u?"variable":"namespace")},AssignStatement(t,n){for(let s=t.node.firstChild;s;s=s.nextSibling)if(s.name=="VariableName")n(s,"variable");else if(s.name==":"||s.name=="AssignOp")break},ParamList(t,n){for(let s=null,r=t.node.firstChild;r;r=r.nextSibling)r.name=="VariableName"&&(!s||!/\*|AssignOp/.test(s.name))&&n(r,"variable"),s=r},CapturePattern:Fo("variable"),AsPattern:Fo("variable"),__proto__:null};function Zy(t,n){let s=r0.get(n);if(s)return s;let r=[],o=!0;function u(d,O){let h=t.sliceString(d.from,d.to);r.push({label:h,type:O})}return n.cursor(Ac.IncludeAnonymous).iterate(d=>{if(d.name){let O=bC[d.name];if(O&&O(d,u,o)||!o&&Ay.has(d.name))return!1;o=!1}else if(d.to-d.from>8192){for(let O of Zy(t,d.node))r.push(O);return!1}}),r0.set(n,r),r}const i0=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,Ey=["String","FormatString","Comment","PropertyName"];function vC(t){let n=vn(t.state).resolveInner(t.pos,-1);if(Ey.indexOf(n.name)>-1)return null;let s=n.name=="VariableName"||n.to-n.from<20&&i0.test(t.state.sliceDoc(n.from,n.to));if(!s&&!t.explicit)return null;let r=[];for(let o=n;o;o=o.parent)Ay.has(o.name)&&(r=r.concat(Zy(t.state.doc,o)));return{options:r,from:s?n.from:t.pos,validFor:i0}}const yC=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(t=>({label:t,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(t=>({label:t,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(t=>({label:t,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(t=>({label:t,type:"function"}))),SC=[Fe("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),Fe("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),Fe("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),Fe("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),Fe(`if \${}:
587
+
588
+ `,{label:"if",detail:"block",type:"keyword"}),Fe("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),Fe("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),Fe("import ${module}",{label:"import",detail:"statement",type:"keyword"}),Fe("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],QC=R0(Ey,C0(yC.concat(SC)));function HO(t){let{node:n,pos:s}=t,r=t.lineIndent(s,-1),o=null;for(;;){let u=n.childBefore(s);if(u)if(u.name=="Comment")s=u.from;else if(u.name=="Body"||u.name=="MatchBody")t.baseIndentFor(u)+t.unit<=r&&(o=u),n=u;else if(u.name=="MatchClause")n=u;else if(u.type.is("Statement"))n=u;else break;else break}return o}function IO(t,n){let s=t.baseIndentFor(n),r=t.lineAt(t.pos,-1),o=r.from+r.text.length;return/^\s*($|#)/.test(r.text)&&t.node.to<o+100&&!/\S/.test(t.state.sliceDoc(o,t.node.to))&&t.lineIndent(t.pos,-1)<=s||/^\s*(else:|elif |except |finally:|case\s+[^=:]+:)/.test(t.textAfter)&&t.lineIndent(t.pos,-1)>s?null:s+t.unit}const FO=hi.define({name:"python",parser:gC.configure({props:[Wl.add({Body:t=>{var n;let s=/^\s*(#|$)/.test(t.textAfter)&&HO(t)||t.node;return(n=IO(t,s))!==null&&n!==void 0?n:t.continue()},MatchBody:t=>{var n;let s=HO(t);return(n=IO(t,s||t.node))!==null&&n!==void 0?n:t.continue()},IfStatement:t=>/^\s*(else:|elif )/.test(t.textAfter)?t.baseIndent:t.continue(),"ForStatement WhileStatement":t=>/^\s*else:/.test(t.textAfter)?t.baseIndent:t.continue(),TryStatement:t=>/^\s*(except[ :]|finally:|else:)/.test(t.textAfter)?t.baseIndent:t.continue(),MatchStatement:t=>/^\s*case /.test(t.textAfter)?t.baseIndent+t.unit:t.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":sc({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":sc({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":sc({closing:"]"}),MemberExpression:t=>t.baseIndent+t.unit,"String FormatString":()=>null,Script:t=>{var n;let s=HO(t);return(n=s&&IO(t,s))!==null&&n!==void 0?n:t.continue()}}),Xs.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":Zc,Body:(t,n)=>({from:t.from+1,to:t.to-(t.to==n.doc.length?0:1)}),"String FormatString":(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});function jC(){return new Ts(FO,[FO.data.of({autocomplete:vC}),FO.data.of({autocomplete:QC})])}const Ko={javascript:()=>wf({jsx:!0,typescript:!1}),typescript:()=>wf({jsx:!0,typescript:!0}),css:()=>Xv(),html:()=>ey(),json:()=>bz(),markdown:()=>sR(),python:()=>jC()},wC=Zl.theme({"&":{backgroundColor:"#24282f",color:"#bcc2cd",fontFamily:"var(--font-mono)",fontSize:"13px",height:"100%"},".cm-scroller":{overflow:"auto"},".cm-content":{caretColor:"#33afbc"},".cm-cursor":{borderLeftColor:"#33afbc"},".cm-gutters":{backgroundColor:"#24282f",borderRight:"1px solid #2c313a",color:"#505862"},".cm-activeLineGutter":{backgroundColor:"#2c313a"},".cm-activeLine":{backgroundColor:"rgba(44, 49, 58, 0.5)"},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground":{backgroundColor:"rgba(51, 175, 188, 0.15)"}},{dark:!0});function o0({content:t,language:n,onChange:s,onSave:r}){const o=v.useRef(null),u=v.useRef(null),d=v.useRef(new Yj),O=v.useRef(s),h=v.useRef(r);return O.current=s,h.current=r,v.useEffect(()=>{if(!o.current)return;const p=Ko[n]||Ko.javascript,x=df.of([{key:"Mod-s",run:()=>{var y;return(y=h.current)==null||y.call(h),!0}}]),g=Z0.create({doc:t||"",extensions:[Vj(),Gj(),Lj(),Dj(),Wj(),Bj(),Hj(),df.of([...Ij,...Fj,...Kj]),x,Uj,wC,d.current.of(p()),Zl.updateListener.of(y=>{var Q;y.docChanged&&((Q=O.current)==null||Q.call(O,y.state.doc.toString()))})]}),b=new Zl({state:g,parent:o.current});return u.current=b,()=>{b.destroy(),u.current=null}},[]),v.useEffect(()=>{const p=u.current;if(!p)return;const x=p.state.doc.toString();t!==x&&p.dispatch({changes:{from:0,to:x.length,insert:t||""}})},[t]),v.useEffect(()=>{const p=u.current;if(!p)return;const x=Ko[n]||Ko.javascript;p.dispatch({effects:d.current.reconfigure(x())})},[n]),l.jsx("div",{ref:o,className:"w-full h-full overflow-hidden"})}const kC=["png","jpg","jpeg","gif","svg","webp","ico","bmp","avif"],qy=["mp4","webm","mov","avi","mkv","ogv"];function $C(t){var s;const n=(s=t.split(".").pop())==null?void 0:s.toLowerCase();return kC.includes(n)||qy.includes(n)}function TC({path:t}){var u;const n=(u=t.split(".").pop())==null?void 0:u.toLowerCase(),s=`/api/files/raw?path=${encodeURIComponent(t)}`,r=t.split("/").pop(),o=qy.includes(n);return l.jsxs("div",{className:"w-full h-full flex flex-col items-center justify-center bg-surface-0 p-8 gap-4",children:[l.jsxs("div",{className:"flex items-center gap-2 text-xs text-text-3 font-sans",children:[l.jsx(ze,{children:n==null?void 0:n.toUpperCase()}),l.jsx("span",{className:"font-mono",children:r}),l.jsx("a",{href:s,target:"_blank",rel:"noopener",className:"text-accent hover:text-accent/80 transition-colors",children:l.jsx(si,{size:12})})]}),o?l.jsx("video",{src:s,controls:!0,className:"max-w-full max-h-[70vh] rounded-md border border-border"}):l.jsx("img",{src:s,alt:r,className:"max-w-full max-h-[70vh] rounded-md border border-border object-contain"})]})}function NC(t){var s;const n=(s=t==null?void 0:t.split(".").pop())==null?void 0:s.toLowerCase();return n==="html"||n==="htm"}function PC(){const t=D(j=>j.editorActiveFile),n=D(j=>j.editorFiles),s=D(j=>j.editorChangedFiles),r=D(j=>j.updateFileContent),o=D(j=>j.saveFile),u=D(j=>j.reloadFile),d=D(j=>j.dismissFileChange),[O,h]=v.useState(""),[p,x]=v.useState(!1),[g,b]=v.useState(0);v.useEffect(()=>{K.get("/files/root").then(j=>h(j.root||"")).catch(()=>{})},[]),v.useEffect(()=>{x(!1)},[t]);const y=t?n[t]:null,Q=t&&$C(t),w=t&&NC(t),k=t&&s[t];return l.jsxs("div",{className:"flex h-full",children:[l.jsx("div",{className:"w-60 flex-shrink-0 border-r border-border",children:l.jsx(BP,{rootDir:O})}),l.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[l.jsx(HP,{}),l.jsxs("div",{className:"flex-1 relative min-h-0",children:[k&&l.jsxs("div",{className:"absolute top-0 left-0 right-0 z-10 flex items-center gap-2 px-4 py-2 bg-warning/10 border-b border-warning/20",children:[l.jsx(vi,{size:14,className:"text-warning"}),l.jsx("span",{className:"text-xs text-warning font-sans flex-1",children:"File modified externally"}),l.jsxs(ge,{variant:"ghost",size:"sm",onClick:()=>u(t),children:[l.jsx(Cn,{size:12})," Reload"]}),l.jsxs(ge,{variant:"ghost",size:"sm",onClick:()=>d(t),children:[l.jsx(jt,{size:12})," Dismiss"]})]}),!t&&l.jsx("div",{className:"w-full h-full flex items-center justify-center text-text-4 font-sans",children:l.jsxs("div",{className:"text-center space-y-2",children:[l.jsx(ss,{size:32,className:"mx-auto"}),l.jsx("p",{className:"text-sm",children:"Open a file from the tree"})]})}),t&&Q&&l.jsx(TC,{path:t}),t&&!Q&&w&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"absolute top-0 right-4 z-10 flex items-center gap-0.5 mt-2 bg-surface-2 border border-border-subtle rounded-md p-0.5",children:[l.jsxs("button",{onClick:()=>x(!1),className:re("flex items-center gap-1.5 px-2.5 py-1 text-xs font-sans rounded cursor-pointer transition-colors",p?"text-text-3 hover:text-text-1":"bg-surface-4 text-text-0 font-medium"),children:[l.jsx(sT,{size:12})," Code"]}),l.jsxs("button",{onClick:()=>{x(!0),b(j=>j+1)},className:re("flex items-center gap-1.5 px-2.5 py-1 text-xs font-sans rounded cursor-pointer transition-colors",p?"bg-surface-4 text-text-0 font-medium":"text-text-3 hover:text-text-1"),children:[l.jsx(Es,{size:12})," Preview"]})]}),p?l.jsx("iframe",{src:`/api/files/raw?path=${encodeURIComponent(t)}`,className:"w-full h-full border-0",sandbox:"allow-scripts allow-same-origin",title:"HTML Preview"},g):y&&l.jsx(o0,{content:y.content,language:y.language,onChange:j=>r(t,j),onSave:()=>o(t)})]}),t&&!Q&&!w&&y&&l.jsx(o0,{content:y.content,language:y.language,onChange:j=>r(t,j),onSave:()=>o(t)})]})]})]})}function zC(){var w;const t=D(k=>k.connected),n=D(k=>k.agents),[s,r]=v.useState(null),[o,u]=v.useState(!0),[d,O]=v.useState({tokens:[],cost:[],saved:[],efficiency:[],cache:[],inputOutput:[],agents:[],turns:[]}),h=v.useRef(0);v.useEffect(()=>{if(!t)return;let k=!0;async function j(){try{const N=await K.get("/dashboard");if(!k)return;r(N),u(!1),h.current=Date.now(),O(X=>{var F,se,ie,W,P,B,E,ce,ee;const G=Date.now(),R=(ve,Se)=>[...ve.slice(-59),{t:G,v:Se||0}],_=((F=N.tokens)==null?void 0:F.totalTokens)||0,T=((ie=(se=N.tokens)==null?void 0:se.savings)==null?void 0:ie.total)||0,Y=_+T,M=((W=N.tokens)==null?void 0:W.totalInputTokens)||0,ae=((P=N.tokens)==null?void 0:P.totalOutputTokens)||0;return{tokens:R(X.tokens,_),cost:R(X.cost,(B=N.tokens)==null?void 0:B.totalCostUsd),saved:R(X.saved,T),efficiency:R(X.efficiency,Y>0?T/Y*100:0),cache:R(X.cache,(E=N.tokens)==null?void 0:E.cacheHitRate),inputOutput:R(X.inputOutput,ae>0?M/ae:0),agents:R(X.agents,((ce=N.agents)==null?void 0:ce.running)||0),turns:R(X.turns,(ee=N.tokens)==null?void 0:ee.totalTurns)}})}catch{k&&u(!1)}}j();const z=setInterval(j,4e3);return()=>{k=!1,clearInterval(z)}},[t]);const p=((w=s==null?void 0:s.agents)==null?void 0:w.breakdown)||[],x=(s==null?void 0:s.routing)||null,g=(s==null?void 0:s.rotation)||null,b=(s==null?void 0:s.adaptive)||[],y=(s==null?void 0:s.journalist)||null,Q=(g==null?void 0:g.rotating)||[];return{data:s,loading:o,agents:n,connected:t,kpiHistory:d,lastFetch:h.current,agentBreakdown:p,routing:x,rotation:g,adaptive:b,journalist:y,rotating:Q}}const c0=v.memo(function({connected:n,runningCount:s,totalCount:r,uptime:o,lastFetch:u,activeTeam:d}){return l.jsxs("div",{className:"flex items-center gap-4 px-4 py-2 bg-surface-1 border-b border-border",children:[l.jsx("h2",{className:"text-xs font-semibold text-text-0 font-sans tracking-wide uppercase",children:"Command Center"}),d&&l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"text-text-4",children:"/"}),l.jsx("span",{className:"text-xs font-mono text-text-2",children:d.name})]}),l.jsx("div",{className:"flex-1"}),n&&l.jsxs("div",{className:"flex items-center gap-3.5 text-xs font-mono text-text-2",children:[l.jsxs("span",{children:[l.jsx("span",{className:"text-text-1",children:s}),l.jsxs("span",{className:"text-text-3",children:["/",r]}),l.jsx("span",{className:"ml-1 text-text-3",children:"agents"})]}),o>0&&l.jsxs("span",{className:"text-text-3",children:["Up ",Hc(o)]}),u>0&&l.jsxs("span",{className:"flex items-center gap-1 text-text-4",children:[l.jsx(Cn,{size:9}),l.jsx("span",{children:vt(u)})]})]}),l.jsx(zs,{status:n?"running":"crashed",size:"sm"})]})});function Dt(t,n){const s=parseInt(t.slice(1,3),16),r=parseInt(t.slice(3,5),16),o=parseInt(t.slice(5,7),16);return`rgba(${s},${r},${o},${n})`}const me={surface0:"#1a1e25",surface4:"#2c313a",surface5:"#333842",text0:"#e6e6e6",text1:"#bcc2cd",text2:"#8b929e",text3:"#6e7681",text4:"#505862",accent:"#33afbc",success:"#4ae168",warning:"#e5c07b",danger:"#e06c75",info:"#61afef",purple:"#c678dd",orange:"#d19a66"};function RC({data:t,color:n=me.accent,width:s=72,height:r=22}){if(!t||t.length<2)return l.jsx("div",{style:{width:s,height:r}});const o=t.map(x=>x.v),u=Math.min(...o),O=Math.max(...o)-u||1,h=t.map((x,g)=>{const b=g/(t.length-1)*s,y=r-(x.v-u)/O*(r-2)-1;return`${b},${y}`}).join(" "),p=`kpi-${n.replace("#","")}`;return l.jsxs("svg",{width:s,height:r,className:"flex-shrink-0",children:[l.jsx("defs",{children:l.jsxs("linearGradient",{id:p,x1:"0",y1:"0",x2:"0",y2:"1",children:[l.jsx("stop",{offset:"0%",stopColor:n,stopOpacity:"0.2"}),l.jsx("stop",{offset:"100%",stopColor:n,stopOpacity:"0"})]})}),l.jsx("polygon",{points:`0,${r} ${h} ${s},${r}`,fill:`url(#${p})`}),l.jsx("polyline",{points:h,fill:"none",stroke:n,strokeWidth:"1.5",strokeLinejoin:"round",strokeOpacity:"0.8"})]})}const CC=v.memo(function({label:n,value:s,sparkData:r,color:o=me.accent,className:u}){return l.jsxs("div",{className:re("flex items-center gap-2.5 px-3 py-2.5 min-w-0","bg-surface-1",u),children:[l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5 truncate",children:n}),l.jsx("div",{className:"text-base font-semibold font-mono text-text-0 tabular-nums leading-none",children:s})]}),l.jsx(RC,{data:r,color:o})]})});function _C({kpis:t}){return l.jsx("div",{className:"flex flex-wrap border-b border-border",style:{background:"var(--color-surface-0)"},children:t.map(n=>l.jsx(CC,{label:n.label,value:n.value,sparkData:n.sparkData,color:n.color,className:re("flex-1 basis-[12.5%] min-w-[140px]","border-b border-r border-border")},n.label))})}const XC={actual:"ACT",estimated:"EST",local:"LOC"};function AC(t){if(!t||t==="auto"||t==="default")return"default";const n=t.match(/^claude-(opus|sonnet|haiku)-(\d+)-(\d+)/);return n?`${n[1][0].toUpperCase()}${n[1].slice(1)} ${n[2]}.${n[3]}`:t.startsWith("gemini-")?t.replace("gemini-","Gem ").replace("-preview",""):t.length>12?t.slice(0,12)+"...":t}const ZC=v.memo(function({agent:n,isRotating:s}){const r=n.status==="running"||n.status==="starting",o=Math.round((n.contextUsage||0)*100),u=s?"#c678dd":ch(n.status),d=n.quality,O=(d==null?void 0:d.toolSuccessRate)!=null?Math.round(d.toolSuccessRate*100):null,h=n.rotationThreshold?Math.round(n.rotationThreshold*100):null,p=Bc(n.role),x=o>80?me.danger:o>60?me.warning:me.accent;return l.jsxs("div",{className:"px-3 pl-6 py-2 hover:bg-[rgba(51,175,188,0.06)] transition-colors space-y-1.5",children:[l.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[l.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[l.jsx("span",{className:"absolute inset-0 rounded-sm",style:{background:u}}),r&&l.jsx("span",{className:"absolute inset-[-2px] rounded-sm",style:{background:u,opacity:.15,animation:"node-pulse-bar 2s ease-in-out infinite"}})]}),l.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate leading-none flex-shrink-0 max-w-[80px]",children:n.name}),l.jsx("span",{className:"text-2xs font-mono font-semibold px-1.5 py-px rounded-sm flex-shrink-0 capitalize",style:{background:p.bg,color:p.text},children:(n.role||"").toLowerCase()}),l.jsx("span",{className:"text-2xs font-mono text-text-4 bg-surface-4 px-1 py-px rounded-sm flex-shrink-0 truncate max-w-[72px]",children:AC(n.model)}),l.jsx("div",{className:"flex-1"}),O!=null&&l.jsxs("span",{className:"text-2xs font-mono font-bold px-1 py-px rounded-sm flex-shrink-0",style:{color:O>=90?"#4ae168":O>=70?"#e5c07b":"#e06c75",background:O>=90?"rgba(74,225,104,0.1)":O>=70?"rgba(229,192,123,0.1)":"rgba(224,108,117,0.1)"},children:[O,"%"]}),n.costSource&&n.costSource!=="actual"&&l.jsx("span",{className:"text-2xs font-mono text-text-4 uppercase tracking-wider flex-shrink-0",children:XC[n.costSource]||""}),l.jsxs("div",{className:"text-right flex-shrink-0",children:[l.jsx("div",{className:"text-xs font-mono text-text-1 tabular-nums leading-none",children:Ke(n.tokens||0)}),(n.costUsd||0)>0&&l.jsx("div",{className:"text-2xs font-mono text-text-3 mt-0.5",children:Si(n.costUsd)})]})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsxs("div",{className:"relative flex-1 h-[4px] rounded-full overflow-visible",style:{background:Dt(me.accent,.12)},children:[l.jsx("div",{className:"absolute inset-y-0 left-0 rounded-full transition-all duration-700",style:{width:`${Math.max(o,1)}%`,background:x}}),h&&l.jsx("div",{className:"absolute top-[-2px] w-px h-[8px]",style:{left:`${h}%`,background:me.purple},title:`Rotation at ${h}%`})]}),l.jsxs("span",{className:"text-2xs font-mono text-text-2 tabular-nums flex-shrink-0 w-7 text-right",children:[o,"%"]})]})]})});function EC({team:t,members:n,rotatingSet:s}){const[r,o]=v.useState(!0),u=n.filter(p=>p.status==="running"||p.status==="starting").length,d=u>0,O=n.reduce((p,x)=>p+(x.tokens||0),0),h=n.reduce((p,x)=>p+(x.costUsd||0),0);return l.jsxs("div",{children:[l.jsxs("button",{onClick:()=>o(p=>!p),className:"w-full flex items-center gap-2 px-3 py-1.5 text-left transition-colors hover:bg-[rgba(51,175,188,0.08)] bg-[rgba(51,175,188,0.05)]",style:{borderLeft:d?`2px solid ${me.accent}`:"2px solid transparent"},children:[r?l.jsx(zn,{size:10,className:"text-text-4 flex-shrink-0"}):l.jsx(as,{size:10,className:"text-text-4 flex-shrink-0"}),l.jsx("span",{className:"text-2xs font-mono font-semibold text-text-2 uppercase tracking-widest flex-1 truncate",children:t}),l.jsx("span",{className:"text-2xs font-mono text-text-3 tabular-nums",children:Ke(O)}),h>0&&l.jsx("span",{className:"text-2xs font-mono text-text-4 tabular-nums ml-1",children:Si(h)}),l.jsxs("span",{className:"text-2xs font-mono tabular-nums flex-shrink-0 ml-1.5",style:{color:d?me.accent:void 0},children:[u,"/",n.length]})]}),r&&n.map(p=>l.jsx(ZC,{agent:p,isRotating:s.has(p.id)},p.id))]})}const qC=v.memo(function({agentBreakdown:n,rotating:s=[],teams:r=[]}){if(!(n!=null&&n.length))return l.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono p-4",children:"No agents"});const o={};for(const O of r)o[O.id]=O.name;const u={};for(const O of n){const h=O.teamId||"ungrouped";u[h]||(u[h]=[]),u[h].push(O)}const d=new Set(s);return l.jsx(ma,{className:"flex-1",children:l.jsx("div",{className:"py-1",children:Object.entries(u).map(([O,h])=>l.jsx(EC,{team:o[O]||(O==="ungrouped"?"Ungrouped":O),members:h,rotatingSet:d},O))})})}),MC=v.memo(function({data:n}){const s=v.useRef(null),r=v.useRef(null),[o,u]=v.useState({width:0,height:0}),[d,O]=v.useState(null),{width:h,height:p}=o,x={top:28,right:12,bottom:8,left:12},g=Math.max(h-x.left-x.right,0),b=Math.max(p-x.top-x.bottom,0),y=v.useMemo(()=>!n||n.length<2?[]:n.slice(1).map((k,j)=>{const z=n[j],N=(k.t-z.t)/6e4,X=Math.max((k.tokens||0)-(z.tokens||0),0);return{burnRate:N>0?Math.round(X/N):0,cacheHitRate:k.cacheHitRate||0,running:k.running||0,agents:k.agents||0,t:k.t}}),[n]);v.useEffect(()=>{const k=s.current;if(!k)return;const j=new ResizeObserver(z=>{const{width:N,height:X}=z[0].contentRect;N>0&&X>0&&u({width:Math.floor(N),height:Math.floor(X)})});return j.observe(k),()=>j.disconnect()},[]);const Q=v.useCallback(k=>{const j=r.current;if(!j||!y.length||g<=0)return;const z=j.getBoundingClientRect(),N=k.clientX-z.left-x.left;if(N<0||N>g){O(null);return}const X=Math.round(N/g*(y.length-1));O({x:x.left+X/Math.max(y.length-1,1)*g,index:X})},[y,g,x.left]),w=v.useCallback(()=>O(null),[]);return v.useEffect(()=>{const k=r.current;if(!k||!y.length||h<=0||p<=0||g<=0||b<=0)return;const j=k.getContext("2d"),z=window.devicePixelRatio||1;k.width=h*z,k.height=p*z,j.scale(z,z),j.clearRect(0,0,h,p);const N=y.map(P=>P.burnRate),X=y.map(P=>P.cacheHitRate),G=y.map(P=>P.running),R=Math.max(...N,100),_=Math.max(...G,1),T=P=>x.left+P/Math.max(y.length-1,1)*g,Y=P=>x.top+b-P/R*b,M=P=>x.top+b-P*b,ae=Math.max(g/y.length-1,2);for(let P=0;P<y.length;P++){const B=G[P];if(B<=0)continue;const E=B/_*b*.3,ce=T(P)-ae/2,ee=x.top+b-E;j.fillStyle=Dt(me.surface5,.5),j.fillRect(ce,ee,ae,E)}j.setLineDash([2,4]),j.strokeStyle=Dt(me.text4,.2),j.lineWidth=1;for(let P=1;P<=3;P++){const B=x.top+b/4*P;j.beginPath(),j.moveTo(x.left,B),j.lineTo(x.left+g,B),j.stroke()}j.setLineDash([]),j.font="9px 'JetBrains Mono Variable', monospace",j.textAlign="left",j.fillStyle=Dt(me.text3,.5),j.fillText(`${Ke(R)}/m`,x.left+4,x.top+10),j.fillText(`${Ke(Math.round(R/2))}/m`,x.left+4,x.top+b/2+4),j.beginPath(),j.moveTo(x.left,x.top+b);for(let P=0;P<y.length;P++)j.lineTo(T(P),Y(N[P]));j.lineTo(T(y.length-1),x.top+b),j.closePath();const F=j.createLinearGradient(0,x.top,0,x.top+b);F.addColorStop(0,Dt(me.accent,.2)),F.addColorStop(.7,Dt(me.accent,.04)),F.addColorStop(1,Dt(me.accent,0)),j.fillStyle=F,j.fill(),j.beginPath(),j.strokeStyle=me.accent,j.lineWidth=1.5,j.lineJoin="round";for(let P=0;P<y.length;P++){const B=T(P),E=Y(N[P]);P===0?j.moveTo(B,E):j.lineTo(B,E)}j.stroke();const se=X.some(P=>P>0);if(se){j.beginPath(),j.strokeStyle=Dt(me.info,.45),j.lineWidth=1,j.lineJoin="round",j.setLineDash([2,3]);for(let P=0;P<y.length;P++){const B=T(P),E=M(X[P]);P===0?j.moveTo(B,E):j.lineTo(B,E)}j.stroke(),j.setLineDash([])}j.font="9px 'Inter Variable', sans-serif",j.textAlign="right";let ie=h-x.right-4;const W=14;if(se&&(j.fillStyle=Dt(me.info,.5),j.fillText("Cache %",ie,W),ie-=j.measureText("Cache %").width+4,j.beginPath(),j.arc(ie,W-3,2.5,0,Math.PI*2),j.fill(),ie-=14),j.fillStyle=Dt(me.surface5,.7),j.fillText("Agents",ie,W),ie-=j.measureText("Agents").width+4,j.beginPath(),j.arc(ie,W-3,2.5,0,Math.PI*2),j.fill(),ie-=14,j.fillStyle=me.accent,j.fillText("Burn Rate",ie,W),ie-=j.measureText("Burn Rate").width+4,j.beginPath(),j.arc(ie,W-3,2.5,0,Math.PI*2),j.fill(),d&&d.index>=0&&d.index<y.length){const P=d.x,B=y[d.index];j.beginPath(),j.moveTo(P,x.top),j.lineTo(P,x.top+b),j.strokeStyle=Dt(me.text1,.15),j.lineWidth=1,j.stroke();const E=Y(B.burnRate);j.beginPath(),j.arc(P,E,3,0,Math.PI*2),j.fillStyle=me.accent,j.fill();const ce=[{label:"Burn",value:`${Ke(B.burnRate)}/m`,color:me.accent},{label:"Cache",value:Ul(B.cacheHitRate*100),color:me.info},{label:"Agents",value:`${B.running}/${B.agents}`,color:me.text2}],ee=104,ve=ce.length*16+12;let Se=P+12;Se+ee>h-8&&(Se=P-ee-12);const ye=Math.max(x.top,E-ve/2);j.fillStyle=Dt(me.surface0,.92),j.beginPath(),j.roundRect(Se,ye,ee,ve,4),j.fill(),j.strokeStyle=Dt(me.text4,.2),j.lineWidth=1,j.stroke(),j.textAlign="left",ce.forEach((Ce,H)=>{const ue=ye+14+H*16;j.beginPath(),j.arc(Se+8,ue-3,2,0,Math.PI*2),j.fillStyle=Ce.color,j.fill(),j.font="8px 'Inter Variable', sans-serif",j.fillStyle=me.text3,j.fillText(Ce.label,Se+14,ue),j.font="9px 'JetBrains Mono Variable', monospace",j.fillStyle=me.text0,j.textAlign="right",j.fillText(Ce.value,Se+ee-8,ue),j.textAlign="left"})}},[y,h,p,d,g,b,x]),l.jsx("div",{ref:s,className:"absolute inset-0",children:h>0&&p>0&&l.jsx("canvas",{ref:r,style:{width:h,height:p},className:"block cursor-crosshair",onMouseMove:Q,onMouseLeave:w})})}),YC=v.memo(function({cacheRead:n=0,cacheCreation:s=0,totalInput:r=0,size:o=140}){const u=v.useRef(null),d=n+s+r,O=d>0?n/d*100:0;return v.useEffect(()=>{const h=u.current;if(!h)return;const p=window.devicePixelRatio||1;h.width=o*p,h.height=o*p;const x=h.getContext("2d");x.scale(p,p),x.clearRect(0,0,o,o);const g=o/2,b=o/2,y=(o-12)/2,Q=5,w=135*Math.PI/180,k=405*Math.PI/180,j=k-w;if(x.beginPath(),x.arc(g,b,y,w,k),x.strokeStyle=me.surface4,x.lineWidth=Q,x.lineCap="round",x.stroke(),d>0){const z=n/d,N=s/d;if(z>0){const X=w+j*z;x.beginPath(),x.arc(g,b,y,w,X),x.strokeStyle=me.accent,x.lineWidth=Q,x.lineCap="round",x.stroke()}if(N>0){const X=w+j*z,G=X+j*N;x.beginPath(),x.arc(g,b,y,X,G),x.strokeStyle=me.purple,x.lineWidth=Q,x.lineCap="butt",x.stroke()}}x.textAlign="center",x.textBaseline="middle",x.font=`600 ${o*.2}px 'JetBrains Mono Variable', monospace`,x.fillStyle=me.text0,x.fillText(`${Math.round(O)}%`,g,b-3),x.font=`500 ${o*.08}px 'JetBrains Mono Variable', monospace`,x.fillStyle=me.text3,x.fillText("CACHE",g,b+o*.13)},[n,s,r,o,d,O]),l.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-3 py-3",children:[l.jsx("canvas",{ref:u,className:"flex-shrink-0",style:{width:o,height:o}}),l.jsxs("div",{className:"w-full mt-3 space-y-1.5 max-w-[160px]",children:[l.jsx(KO,{color:me.accent,label:"Read",value:Ke(n)}),l.jsx(KO,{color:me.purple,label:"Create",value:Ke(s)}),l.jsx(KO,{color:me.surface5,label:"Miss",value:Ke(Math.max(r-n-s,0))})]})]})});function KO({color:t,label:n,value:s}){return l.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono",children:[l.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:t}}),l.jsx("span",{className:"text-text-3 uppercase tracking-wider flex-1",children:n}),l.jsx("span",{className:"text-text-1 tabular-nums",children:s})]})}const u0={heavy:me.danger,medium:me.warning,light:me.success},d0={heavy:"Heavy",medium:"Medium",light:"Light"},UC=v.memo(function({routing:n,agentBreakdown:s}){if(!n)return null;const{byTier:r={},totalDecisions:o=0,autoRoutedCount:u=0}=n,d=["heavy","medium","light"],O=d.reduce((g,b)=>g+(r[b]||0),0),h={};for(const g of s||[]){const b=g.model||"default";h[b]||(h[b]={tokens:0,agents:0}),h[b].tokens+=g.tokens||0,h[b].agents+=1}const p=Object.entries(h).sort((g,b)=>b[1].tokens-g[1].tokens),x=p.length>0?p[0][1].tokens:0;return l.jsxs("div",{className:"flex flex-col h-full px-3 py-3 overflow-y-auto",children:[O>0&&l.jsxs("div",{className:"space-y-1.5 mb-3",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider",children:"Tier Distribution"}),l.jsxs("span",{className:"text-2xs font-mono text-text-4 ml-auto tabular-nums",children:[Ke(O)," decisions"]})]}),l.jsx("div",{className:"h-[6px] bg-surface-4 rounded-full overflow-hidden flex",children:d.map(g=>{const b=r[g]||0;if(b===0)return null;const y=b/O*100;return l.jsx("div",{className:"h-full transition-all duration-500",style:{width:`${y}%`,background:u0[g]},title:`${d0[g]}: ${b} (${Math.round(y)}%)`},g)})}),l.jsx("div",{className:"flex items-center gap-3",children:d.map(g=>{const b=r[g]||0;if(b===0)return null;const y=O>0?b/O*100:0;return l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:u0[g]}}),l.jsx("span",{className:"text-2xs font-mono text-text-2",children:d0[g]}),l.jsx("span",{className:"text-2xs font-mono text-text-4 tabular-nums",children:Ul(y)})]},g)})})]}),p.length>0&&l.jsxs("div",{className:"space-y-1.5 flex-1",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider",children:"Models in Use"}),u>0&&l.jsxs("span",{className:"text-2xs font-mono text-text-4 ml-auto",children:[u," auto"]})]}),l.jsx("div",{className:"space-y-1.5",children:p.map(([g,b])=>{const y=x>0?b.tokens/x*100:0;return l.jsxs("div",{className:"space-y-0.5",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-xs font-mono text-text-1 flex-1 truncate",children:VC(g)}),l.jsxs("span",{className:"text-2xs font-mono text-text-3 tabular-nums",children:[b.agents," agent",b.agents!==1?"s":""]}),l.jsx("span",{className:"text-xs font-mono text-text-1 tabular-nums",children:Ke(b.tokens)})]}),l.jsx("div",{className:"h-[3px] bg-surface-4 rounded-full overflow-hidden",children:l.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${Math.max(y,2)}%`,background:me.accent}})})]},g)})})]}),O===0&&p.length===0&&l.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono",children:"No routing data"})]})});function VC(t){if(!t||t==="auto"||t==="default")return"Default";const n=t.match(/^claude-(opus|sonnet|haiku)-(\d+)-(\d+)/);return n?`${n[1][0].toUpperCase()}${n[1].slice(1)} ${n[2]}.${n[3]}`:t.startsWith("gemini-")?t.replace("gemini-","Gemini ").replace("-preview",""):t}function GC(t){const n=t+"CollectionProvider",[s,r]=As(n),[o,u]=s(n,{collectionRef:{current:null},itemMap:new Map}),d=w=>{const{scope:k,children:j}=w,z=Da.useRef(null),N=Da.useRef(new Map).current;return l.jsx(o,{scope:k,itemMap:N,collectionRef:z,children:j})};d.displayName=n;const O=t+"CollectionSlot",h=fc(O),p=Da.forwardRef((w,k)=>{const{scope:j,children:z}=w,N=u(O,j),X=it(k,N.collectionRef);return l.jsx(h,{ref:X,children:z})});p.displayName=O;const x=t+"CollectionItemSlot",g="data-radix-collection-item",b=fc(x),y=Da.forwardRef((w,k)=>{const{scope:j,children:z,...N}=w,X=Da.useRef(null),G=it(k,X),R=u(x,j);return Da.useEffect(()=>(R.itemMap.set(X,{ref:X,...N}),()=>void R.itemMap.delete(X))),l.jsx(b,{[g]:"",ref:G,children:z})});y.displayName=x;function Q(w){const k=u(t+"CollectionConsumer",w);return Da.useCallback(()=>{const z=k.collectionRef.current;if(!z)return[];const N=Array.from(z.querySelectorAll(`[${g}]`));return Array.from(k.itemMap.values()).sort((R,_)=>N.indexOf(R.ref.current)-N.indexOf(_.ref.current))},[k.collectionRef,k.itemMap])}return[{Provider:d,Slot:p,ItemSlot:y},Q,r]}var JO="rovingFocusGroup.onEntryFocus",LC={bubbles:!1,cancelable:!0},Qi="RovingFocusGroup",[_f,My,DC]=GC(Qi),[WC,Yy]=As(Qi,[DC]),[BC,HC]=WC(Qi),Uy=v.forwardRef((t,n)=>l.jsx(_f.Provider,{scope:t.__scopeRovingFocusGroup,children:l.jsx(_f.Slot,{scope:t.__scopeRovingFocusGroup,children:l.jsx(IC,{...t,ref:n})})}));Uy.displayName=Qi;var IC=v.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:s,orientation:r,loop:o=!1,dir:u,currentTabStopId:d,defaultCurrentTabStopId:O,onCurrentTabStopIdChange:h,onEntryFocus:p,preventScrollOnEntryFocus:x=!1,...g}=t,b=v.useRef(null),y=it(n,b),Q=uh(u),[w,k]=Uc({prop:d,defaultProp:O??null,onChange:h,caller:Qi}),[j,z]=v.useState(!1),N=Rt(p),X=My(s),G=v.useRef(!1),[R,_]=v.useState(0);return v.useEffect(()=>{const T=b.current;if(T)return T.addEventListener(JO,N),()=>T.removeEventListener(JO,N)},[N]),l.jsx(BC,{scope:s,orientation:r,dir:Q,loop:o,currentTabStopId:w,onItemFocus:v.useCallback(T=>k(T),[k]),onItemShiftTab:v.useCallback(()=>z(!0),[]),onFocusableItemAdd:v.useCallback(()=>_(T=>T+1),[]),onFocusableItemRemove:v.useCallback(()=>_(T=>T-1),[]),children:l.jsx(Be.div,{tabIndex:j||R===0?-1:0,"data-orientation":r,...g,ref:y,style:{outline:"none",...t.style},onMouseDown:qe(t.onMouseDown,()=>{G.current=!0}),onFocus:qe(t.onFocus,T=>{const Y=!G.current;if(T.target===T.currentTarget&&Y&&!j){const M=new CustomEvent(JO,LC);if(T.currentTarget.dispatchEvent(M),!M.defaultPrevented){const ae=X().filter(P=>P.focusable),F=ae.find(P=>P.active),se=ae.find(P=>P.id===w),W=[F,se,...ae].filter(Boolean).map(P=>P.ref.current);Ly(W,x)}}G.current=!1}),onBlur:qe(t.onBlur,()=>z(!1))})})}),Vy="RovingFocusGroupItem",Gy=v.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:s,focusable:r=!0,active:o=!1,tabStopId:u,children:d,...O}=t,h=zl(),p=u||h,x=HC(Vy,s),g=x.currentTabStopId===p,b=My(s),{onFocusableItemAdd:y,onFocusableItemRemove:Q,currentTabStopId:w}=x;return v.useEffect(()=>{if(r)return y(),()=>Q()},[r,y,Q]),l.jsx(_f.ItemSlot,{scope:s,id:p,focusable:r,active:o,children:l.jsx(Be.span,{tabIndex:g?0:-1,"data-orientation":x.orientation,...O,ref:n,onMouseDown:qe(t.onMouseDown,k=>{r?x.onItemFocus(p):k.preventDefault()}),onFocus:qe(t.onFocus,()=>x.onItemFocus(p)),onKeyDown:qe(t.onKeyDown,k=>{if(k.key==="Tab"&&k.shiftKey){x.onItemShiftTab();return}if(k.target!==k.currentTarget)return;const j=JC(k,x.orientation,x.dir);if(j!==void 0){if(k.metaKey||k.ctrlKey||k.altKey||k.shiftKey)return;k.preventDefault();let N=b().filter(X=>X.focusable).map(X=>X.ref.current);if(j==="last")N.reverse();else if(j==="prev"||j==="next"){j==="prev"&&N.reverse();const X=N.indexOf(k.currentTarget);N=x.loop?e_(N,X+1):N.slice(X+1)}setTimeout(()=>Ly(N))}}),children:typeof d=="function"?d({isCurrentTabStop:g,hasTabStop:w!=null}):d})})});Gy.displayName=Vy;var FC={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function KC(t,n){return n!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function JC(t,n,s){const r=KC(t.key,s);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return FC[r]}function Ly(t,n=!1){const s=document.activeElement;for(const r of t)if(r===s||(r.focus({preventScroll:n}),document.activeElement!==s))return}function e_(t,n){return t.map((s,r)=>t[(n+r)%t.length])}var t_=Uy,n_=Gy,eu="Tabs",[a_]=As(eu,[Yy]),Dy=Yy(),[s_,Th]=a_(eu),Wy=v.forwardRef((t,n)=>{const{__scopeTabs:s,value:r,onValueChange:o,defaultValue:u,orientation:d="horizontal",dir:O,activationMode:h="automatic",...p}=t,x=uh(O),[g,b]=Uc({prop:r,onChange:o,defaultProp:u??"",caller:eu});return l.jsx(s_,{scope:s,baseId:zl(),value:g,onValueChange:b,orientation:d,dir:x,activationMode:h,children:l.jsx(Be.div,{dir:x,"data-orientation":d,...p,ref:n})})});Wy.displayName=eu;var By="TabsList",Hy=v.forwardRef((t,n)=>{const{__scopeTabs:s,loop:r=!0,...o}=t,u=Th(By,s),d=Dy(s);return l.jsx(t_,{asChild:!0,...d,orientation:u.orientation,dir:u.dir,loop:r,children:l.jsx(Be.div,{role:"tablist","aria-orientation":u.orientation,...o,ref:n})})});Hy.displayName=By;var Iy="TabsTrigger",Fy=v.forwardRef((t,n)=>{const{__scopeTabs:s,value:r,disabled:o=!1,...u}=t,d=Th(Iy,s),O=Dy(s),h=eS(d.baseId,r),p=tS(d.baseId,r),x=r===d.value;return l.jsx(n_,{asChild:!0,...O,focusable:!o,active:x,children:l.jsx(Be.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":p,"data-state":x?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:h,...u,ref:n,onMouseDown:qe(t.onMouseDown,g=>{!o&&g.button===0&&g.ctrlKey===!1?d.onValueChange(r):g.preventDefault()}),onKeyDown:qe(t.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&d.onValueChange(r)}),onFocus:qe(t.onFocus,()=>{const g=d.activationMode!=="manual";!x&&!o&&g&&d.onValueChange(r)})})})});Fy.displayName=Iy;var Ky="TabsContent",Jy=v.forwardRef((t,n)=>{const{__scopeTabs:s,value:r,forceMount:o,children:u,...d}=t,O=Th(Ky,s),h=eS(O.baseId,r),p=tS(O.baseId,r),x=r===O.value,g=v.useRef(x);return v.useEffect(()=>{const b=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(b)},[]),l.jsx(yn,{present:o||x,children:({present:b})=>l.jsx(Be.div,{"data-state":x?"active":"inactive","data-orientation":O.orientation,role:"tabpanel","aria-labelledby":h,hidden:!b,id:p,tabIndex:0,...d,ref:n,style:{...t.style,animationDuration:g.current?"0s":void 0},children:b&&u})})});Jy.displayName=Ky;function eS(t,n){return`${t}-trigger-${n}`}function tS(t,n){return`${t}-content-${n}`}var l_=Wy,r_=Hy,i_=Fy,o_=Jy;function nS({children:t,...n}){return l.jsx(l_,{...n,children:t})}function aS({children:t,className:n,...s}){return l.jsx(r_,{className:re("flex items-center gap-0 border-b border-border-subtle",n),...s,children:t})}function _l({children:t,className:n,...s}){return l.jsx(i_,{className:re("px-3 py-2 text-sm font-medium font-sans text-text-2","border-b-2 border-transparent","hover:text-text-0 hover:bg-surface-5/50","data-[state=active]:text-text-0 data-[state=active]:border-accent","transition-colors duration-100 cursor-pointer select-none","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent",n),...s,children:t})}function Xl({children:t,className:n,...s}){return l.jsx(o_,{className:re("flex-1 min-h-0",n),...s,children:t})}function O0({data:t,color:n=me.accent,width:s=60,height:r=16}){if(!t||t.length<2)return l.jsx("div",{style:{width:s,height:r}});const o=Array.isArray(t[0])?t:t.map(p=>typeof p=="number"?p:p.v),u=Math.min(...o),O=Math.max(...o)-u||1,h=o.map((p,x)=>{const g=x/(o.length-1)*s,b=r-(p-u)/O*(r-2)-1;return`${g},${b}`}).join(" ");return l.jsx("svg",{width:s,height:r,className:"flex-shrink-0",children:l.jsx("polyline",{points:h,fill:"none",stroke:n,strokeWidth:"1",strokeLinejoin:"round",strokeOpacity:"0.7"})})}function ef({label:t,value:n,total:s,color:r}){const o=s>0?n/s*100:0;return l.jsxs("div",{className:"space-y-1",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("span",{className:"text-xs font-mono text-text-2",children:t}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsxs("span",{className:"text-xs font-mono font-semibold tabular-nums",style:{color:r},children:[Math.round(o),"%"]}),l.jsx("span",{className:"text-2xs font-mono text-text-3 tabular-nums w-10 text-right",children:Ke(n)})]})]}),l.jsx("div",{className:"h-[7px] rounded-full overflow-hidden",style:{background:"rgba(51,175,188,0.08)"},children:l.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${Math.min(o,100)}%`,background:r}})})]})}function c_({tokens:t,rotation:n}){const s=(t==null?void 0:t.savings)||{},r=s.total||0,u=((t==null?void 0:t.totalTokens)||0)+r,d=u>0?Math.round(r/u*100):0,O=((n==null?void 0:n.history)||[]).slice(-10).reverse();return l.jsxs("div",{className:"p-3 space-y-4",children:[l.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[l.jsxs("div",{className:"bg-surface-0 rounded p-2.5",children:[l.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Rotations"}),l.jsx("div",{className:"text-2xl font-mono font-bold text-text-0 tabular-nums leading-none",children:(n==null?void 0:n.totalRotations)||0})]}),l.jsxs("div",{className:"bg-surface-0 rounded p-2.5",children:[l.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Saved"}),l.jsx("div",{className:"text-2xl font-mono font-bold tabular-nums leading-none",style:{color:"#4ae168"},children:Ke(r)})]}),l.jsxs("div",{className:"bg-surface-0 rounded p-2.5",children:[l.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Efficiency"}),l.jsxs("div",{className:"text-2xl font-mono font-bold tabular-nums leading-none",style:{color:"#33afbc"},children:[d,"%"]})]})]}),l.jsxs("div",{className:"space-y-2.5",children:[l.jsx(ef,{label:"Rotation",value:s.fromRotation||0,total:u,color:me.accent}),l.jsx(ef,{label:"Conflict prevention",value:s.fromConflictPrevention||0,total:u,color:"#4ec9d4"}),l.jsx(ef,{label:"Cold-start skip",value:s.fromColdStartSkip||0,total:u,color:me.info})]}),O.length>0?l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-2.5",children:"Recent Rotations"}),l.jsx("div",{className:"space-y-0",children:O.map((h,p)=>l.jsxs("div",{className:"flex items-start gap-2.5",children:[l.jsxs("div",{className:"flex flex-col items-center flex-shrink-0",children:[l.jsx("div",{className:"h-1.5"}),l.jsx("div",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{background:p===0?"#33afbc":"rgba(51,175,188,0.15)",border:"1px solid rgba(51,175,188,0.5)",boxShadow:p===0?"0 0 6px rgba(51,175,188,0.35)":"none"}}),p<O.length-1&&l.jsx("div",{className:"w-px flex-1 mt-1",style:{background:"rgba(51,175,188,0.15)",minHeight:"12px"}})]}),l.jsx("div",{className:re("flex-1 bg-surface-0 rounded px-2 py-1.5",p<O.length-1&&"mb-2"),children:l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-xs font-mono text-text-1 font-medium capitalize truncate flex-1",children:h.agentName||h.role}),l.jsx("span",{className:"text-2xs font-mono font-semibold tabular-nums flex-shrink-0",style:{color:(h.contextUsage||0)>.8?"#e06c75":(h.contextUsage||0)>.6?"#e5c07b":"#33afbc"},children:Ul((h.contextUsage||0)*100)}),l.jsx("span",{className:"text-2xs font-mono text-text-4 flex-shrink-0",children:vt(h.timestamp)})]})})]},p))})]}):l.jsxs("div",{className:"bg-surface-0 rounded p-3 text-center space-y-1.5",children:[l.jsx("div",{className:"text-xs font-mono text-text-2 font-semibold",children:"No rotations yet"}),l.jsx("div",{className:"text-2xs font-mono text-text-3 leading-relaxed",children:"Rotations trigger when an agent's context exceeds its threshold, clearing memory while preserving progress via a handoff brief."})]})]})}function u_({adaptive:t}){if(!(t!=null&&t.length))return l.jsx("div",{className:"p-3",children:l.jsxs("div",{className:"bg-surface-0 rounded p-4 text-center space-y-2",children:[l.jsx("div",{className:"text-xs font-mono text-text-2 font-semibold",children:"No adaptive profiles yet"}),l.jsx("div",{className:"text-2xs font-mono text-text-3 leading-relaxed",children:"Adaptive thresholds learn when each agent role benefits from rotation. GROOVE tracks quality scores and adjusts rotation triggers automatically — converging to the optimal threshold per role and provider."})]})});function n(s){const r=s.split(":");return{provider:r[0]||s,role:r[1]||""}}return l.jsx("div",{className:"p-3 space-y-3",children:t.map(s=>{var x,g;const{provider:r,role:o}=n(s.key),u=o||r,d=((x=s.thresholdHistory)==null?void 0:x.length)>1,O=((g=s.recentScores)==null?void 0:g.length)>1,h=Bc(u),p=s.lastSignals;return l.jsxs("div",{className:"rounded overflow-hidden",style:{background:"rgba(51,175,188,0.04)",borderLeft:s.converged?"2px solid #33afbc":"2px solid rgba(229,192,123,0.35)"},children:[l.jsxs("div",{className:"flex items-center gap-2 px-3 pt-2.5 pb-1.5",children:[l.jsx("span",{className:"text-xs font-mono font-semibold capitalize px-1.5 py-px rounded-sm",style:{background:h.bg,color:h.text},children:u}),o&&l.jsx("span",{className:"text-2xs font-mono text-text-4 bg-surface-4 px-1.5 py-px rounded-sm",children:r}),l.jsx("div",{className:"flex-1"}),l.jsxs("span",{className:"flex items-center gap-1 text-2xs font-mono font-bold px-2 py-px rounded-full",style:{background:s.converged?"rgba(74,225,104,0.12)":"rgba(229,192,123,0.12)",color:s.converged?"#4ae168":"#e5c07b"},children:[!s.converged&&l.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:"#e5c07b",animation:"node-pulse-bar 1.5s ease-in-out infinite"}}),s.converged?"Converged":"Learning"]})]}),l.jsxs("div",{className:"flex items-end gap-5 px-3 pb-2",children:[l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-4 uppercase tracking-wider mb-0.5",children:"Threshold"}),l.jsx("div",{className:"text-3xl font-mono font-bold tabular-nums leading-none",style:{color:s.converged?"#33afbc":"#e5c07b"},children:Ul(s.threshold*100)})]}),l.jsxs("div",{className:"pb-0.5",children:[l.jsx("div",{className:"text-2xs font-mono text-text-4 uppercase tracking-wider mb-0.5",children:"Adj."}),l.jsx("div",{className:"text-lg font-mono font-semibold text-text-1 tabular-nums",children:s.adjustments})]})]}),(d||O)&&l.jsxs("div",{className:"px-3 pb-2 space-y-2 overflow-hidden",children:[d&&l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-4 mb-0.5",children:"Threshold history"}),l.jsx(O0,{data:s.thresholdHistory.map(b=>b.v),color:s.converged?me.accent:me.warning,width:240,height:32})]}),O&&l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-4 mb-0.5",children:"Quality score"}),l.jsx(O0,{data:s.recentScores,color:me.warning,width:240,height:24})]})]}),p&&l.jsxs("div",{className:"flex flex-wrap gap-1.5 px-3 pb-2.5",children:[p.errorCount!=null&&l.jsxs("span",{className:"text-2xs font-mono px-1.5 py-px rounded-sm bg-surface-4 text-text-3",children:["Errors: ",l.jsx("span",{className:"text-danger",children:p.errorCount})]}),p.toolSuccessRate!=null&&l.jsxs("span",{className:"text-2xs font-mono px-1.5 py-px rounded-sm bg-surface-4 text-text-3",children:["Tools: ",l.jsxs("span",{className:"text-text-1",children:[Math.round(p.toolSuccessRate*100),"%"]})]}),p.fileChurn!=null&&l.jsxs("span",{className:"text-2xs font-mono px-1.5 py-px rounded-sm bg-surface-4 text-text-3",children:["Churn: ",l.jsx("span",{className:"text-text-1",children:p.fileChurn})]}),p.repetitions!=null&&l.jsxs("span",{className:"text-2xs font-mono px-1.5 py-px rounded-sm bg-surface-4 text-text-3",children:["Reps: ",l.jsx("span",{className:"text-warning",children:p.repetitions})]})]})]},s.key)})})}function d_({journalist:t}){var n;return t?l.jsx("div",{children:l.jsxs("div",{className:"p-3 space-y-3",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5",children:"Cycles"}),l.jsx("div",{className:"text-lg font-mono font-semibold text-text-0 tabular-nums leading-none",children:t.cycleCount||0})]}),t.lastCycleAt&&l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5",children:"Last"}),l.jsx("div",{className:"text-xs font-mono text-text-2",children:vt(t.lastCycleAt)})]}),t.synthesizing&&l.jsx("span",{className:"text-2xs font-mono font-bold text-accent uppercase tracking-wider animate-pulse",children:"Synthesizing"})]}),t.lastSummary&&l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Summary"}),l.jsx("div",{className:"text-xs font-sans text-text-2 leading-relaxed",children:t.lastSummary})]}),t.projectMap&&l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Project Map"}),l.jsx("div",{className:"text-xs font-mono text-text-2 leading-relaxed whitespace-pre-wrap",children:t.projectMap})]}),t.decisions&&l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Decisions"}),l.jsx("div",{className:"text-xs font-mono text-text-2 leading-relaxed whitespace-pre-wrap",children:t.decisions})]}),((n=t.recentHistory)==null?void 0:n.length)>0&&l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1.5",children:"History"}),l.jsx("div",{className:"space-y-1",children:t.recentHistory.slice().reverse().map((s,r)=>l.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono px-2 py-1 bg-surface-0 rounded",children:[l.jsxs("span",{className:"text-text-3",children:["#",s.cycle]}),l.jsxs("span",{className:"text-text-2 flex-1 truncate",children:[s.agentCount," agents"]}),l.jsx("span",{className:"text-text-4",children:vt(s.timestamp)})]},r))})]})]})}):l.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono p-4",children:"Journalist inactive"})}const O_=v.memo(function({tokens:n,rotation:s,adaptive:r,journalist:o}){return l.jsxs(nS,{defaultValue:"rotation",className:"flex flex-col h-full",children:[l.jsxs(aS,{className:"flex-shrink-0 px-1",children:[l.jsxs(_l,{value:"rotation",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[l.jsx(Il,{size:11}),"Rotation"]}),l.jsxs(_l,{value:"adaptive",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[l.jsx(N$,{size:11}),"Adaptive"]}),l.jsxs(_l,{value:"journalist",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[l.jsx(lh,{size:11}),"Journalist"]})]}),l.jsx(Xl,{value:"rotation",className:"flex-1 min-h-0 relative",children:l.jsx("div",{className:"absolute inset-0 overflow-y-auto",children:l.jsx(c_,{tokens:n,rotation:s})})}),l.jsx(Xl,{value:"adaptive",className:"flex-1 min-h-0 relative",children:l.jsx("div",{className:"absolute inset-0 overflow-y-auto",children:l.jsx(u_,{adaptive:r})})}),l.jsx(Xl,{value:"journalist",className:"flex-1 min-h-0 relative",children:l.jsx("div",{className:"absolute inset-0 overflow-y-auto",children:l.jsx(d_,{journalist:o})})})]})}),f_={spawn:MN,complete:Ps,crash:vi,kill:Zb,rotate:Il,error:ih},h_={spawn:"text-accent",complete:"text-success",crash:"text-danger",kill:"text-text-3",rotate:"text-purple",error:"text-danger"};function m_(t){const n=t.agentName||t.role||"";switch(t.type){case"spawn":return`${n} spawned`;case"complete":return`${n} completed`;case"crash":return`${n} crashed`;case"kill":return`${n} killed`;case"rotate":return`${n} rotated`;default:return t.text||t.type||"event"}}const p_=v.memo(function({events:n=[]}){return n.length?l.jsx("div",{className:"flex items-center gap-3 overflow-x-auto py-2 px-3",children:n.slice(-15).reverse().map((s,r)=>{const o=f_[s.type]||Xn,u=h_[s.type]||"text-text-3",d=m_(s);return l.jsxs("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[l.jsx(o,{size:11,className:u}),l.jsx("span",{className:"text-xs font-sans text-text-2 whitespace-nowrap",children:d}),l.jsx("span",{className:"text-2xs font-mono text-text-4",children:vt(s.t||s.timestamp)})]},r)})}):l.jsx("div",{className:"text-xs text-text-3 font-mono py-2.5 text-center",children:"No recent activity"})});function on({className:t,...n}){return l.jsx("div",{className:re("rounded-md bg-surface-4","bg-gradient-to-r from-surface-4 via-surface-5 to-surface-4","bg-[length:200%_100%] animate-[shimmer_1.5s_ease-in-out_infinite]",t),...n})}function x_(){return l.jsxs("div",{className:"flex-1 grid gap-px p-0",style:{gridTemplateRows:"auto minmax(0, 1fr) minmax(0, 1fr)",gridTemplateColumns:"3fr 1.5fr 1.5fr",background:"#282c34"},children:[l.jsx("div",{className:"col-span-3",children:l.jsx(on,{className:"h-[72px] rounded-none"})}),l.jsx(on,{className:"rounded-none"}),l.jsx(on,{className:"rounded-none"}),l.jsx(on,{className:"rounded-none"}),l.jsx(on,{className:"rounded-none"}),l.jsx("div",{className:"col-span-2",children:l.jsx(on,{className:"h-full rounded-none"})})]})}function g_(){const{data:t,loading:n,agents:s,connected:r,kpiHistory:o,lastFetch:u,agentBreakdown:d,routing:O,rotation:h,adaptive:p,journalist:x,rotating:g}=zC(),b=D(_=>_.teams),y=s.filter(_=>_.status==="running").length;if(!r)return l.jsx("div",{className:"w-full h-full flex items-center justify-center",children:l.jsxs("div",{className:"text-center space-y-2 text-text-3 font-mono",children:[l.jsx(Lc,{size:28,className:"mx-auto"}),l.jsx("p",{className:"text-xs",children:"Connecting to daemon..."})]})});if(n||!t)return l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsx(c0,{connected:r,runningCount:0,totalCount:0,uptime:0,lastFetch:0}),l.jsx(x_,{})]});const Q=t.tokens||{},w={totalTokens:Q.totalTokens||0,totalCostUsd:Q.totalCostUsd||0,totalInputTokens:Q.totalInputTokens||0,totalOutputTokens:Q.totalOutputTokens||0,cacheReadTokens:Q.cacheReadTokens||0,cacheCreationTokens:Q.cacheCreationTokens||0,cacheHitRate:Q.cacheHitRate||0,totalTurns:Q.totalTurns||0,agentCount:Q.agentCount||0,savings:Q.savings||{}},k=w.totalTokens+(w.savings.total||0),j=k>0?(w.savings.total||0)/k*100:0,z=w.totalOutputTokens>0?(w.totalInputTokens/w.totalOutputTokens).toFixed(1):"—",N=t.timeline||{},X=N.snapshots||[],G=N.events||t.events||[],R=[{label:"Tokens Used",value:Ke(w.totalTokens),sparkData:o.tokens,color:me.accent},{label:"Total Cost",value:Si(w.totalCostUsd),sparkData:o.cost,color:me.warning},{label:"Tokens Saved",value:Ke(w.savings.total||0),sparkData:o.saved,color:me.success},{label:"Efficiency",value:Ul(j),sparkData:o.efficiency,color:me.purple},{label:"Cache Rate",value:Ul(w.cacheHitRate*100),sparkData:o.cache,color:me.info},{label:"I/O Ratio",value:`${z}:1`,sparkData:o.inputOutput,color:me.orange},{label:"Agents",value:`${y}/${s.length}`,sparkData:o.agents,color:me.accent},{label:"Turns",value:Ke(w.totalTurns),sparkData:o.turns,color:me.text2}];return l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsx(c0,{connected:r,runningCount:y,totalCount:s.length,uptime:t.uptime||0,lastFetch:u,activeTeam:t.activeTeam}),l.jsx(_C,{kpis:R}),l.jsxs("div",{className:"flex-1 min-h-0 grid",style:{gridTemplateRows:"minmax(0, 1fr) minmax(0, 1fr)",gridTemplateColumns:"3fr 1.5fr 1.5fr",background:"#282c34",gap:"1px"},children:[l.jsx("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 relative",children:l.jsx(MC,{data:X})}),l.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-l border-border",children:[l.jsx("div",{className:"px-3 pt-2.5 pb-1",children:l.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Cache Performance"})}),l.jsx(YC,{cacheRead:w.cacheReadTokens,cacheCreation:w.cacheCreationTokens,totalInput:w.totalInputTokens})]}),l.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-l border-border",children:[l.jsx("div",{className:"px-3 pt-2.5 pb-1",children:l.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Model Routing"})}),l.jsx(UC,{routing:O,agentBreakdown:d})]}),l.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-t border-border",children:[l.jsx("div",{className:"px-3 pt-2.5 pb-1 flex-shrink-0",children:l.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Agent Fleet"})}),l.jsx(qC,{agentBreakdown:d,rotating:g,teams:b})]}),l.jsx("div",{className:"col-span-2 min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-t border-l border-border",children:l.jsx(O_,{tokens:w,rotation:h,adaptive:p,journalist:x})})]}),l.jsx("div",{className:"flex-shrink-0 bg-surface-1 border-t border-border",children:l.jsx(p_,{events:G})})]})}const f0={sm:12,md:16,lg:20};function b_({fill:t="full",size:n,color:s="#fbbf24",emptyColor:r="rgba(255,255,255,0.4)"}){const o=`star-${Math.random().toString(36).slice(2,8)}`;return l.jsxs("svg",{width:n,height:n,viewBox:"0 0 20 20",fill:"none",children:[t==="half"&&l.jsx("defs",{children:l.jsxs("linearGradient",{id:o,children:[l.jsx("stop",{offset:"50%",stopColor:s}),l.jsx("stop",{offset:"50%",stopColor:r})]})}),l.jsx("path",{d:"M10 1.5l2.47 5.01 5.53.8-4 3.9.94 5.49L10 14.27 5.06 16.7 6 11.21l-4-3.9 5.53-.8L10 1.5z",fill:t==="full"?s:t==="half"?`url(#${o})`:r})]})}function sS({rating:t=0,count:n,size:s="sm"}){const r=f0[s]||f0.sm,o=[];for(let u=1;u<=5;u++)t>=u?o.push("full"):t>=u-.5?o.push("half"):o.push("empty");return l.jsxs("span",{className:"inline-flex items-center",style:{gap:1},children:[o.map((u,d)=>l.jsx(b_,{fill:u,size:r},d)),n!=null&&l.jsxs("span",{className:"ml-1 text-[11px] text-[var(--text-dim,#6b7f95)] font-sans",children:["(",n,")"]})]})}const h0={design:{color:"#c678dd",bg:"rgba(198,120,221,0.12)"},quality:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"},devtools:{color:"#33afbc",bg:"rgba(51,175,188,0.14)"},workflow:{color:"#fbbf24",bg:"rgba(251,191,36,0.12)"},security:{color:"#f87171",bg:"rgba(248,113,113,0.12)"},specialized:{color:"#f59e0b",bg:"rgba(245,158,11,0.12)"},verified:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"},anthropic:{color:"#f59e0b",bg:"rgba(245,158,11,0.12)"},published:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"},draft:{color:"#6b7f95",bg:"rgba(255,255,255,0.06)"},review:{color:"#c678dd",bg:"rgba(198,120,221,0.12)"},rejected:{color:"#f87171",bg:"rgba(248,113,113,0.12)"},free:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"}};function lS({label:t,variant:n,className:s}){const r=h0[n]||h0.draft;return l.jsx("span",{className:re("inline-flex items-center whitespace-nowrap font-sans select-none",s),style:{padding:"3px 8px",borderRadius:4,fontSize:10,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.5px",lineHeight:1.4,color:r.color,background:r.bg},children:t})}function rS({price:t=0,size:n="sm"}){const s=!t||t===0,r={sm:"text-2xs px-2 py-0.5",md:"text-xs px-2.5 py-0.5",lg:"text-xs px-3 py-1"};return l.jsx("span",{className:`inline-flex items-center font-mono font-semibold rounded whitespace-nowrap ${r[n]||r.sm} ${s?"bg-success/12 text-success":"bg-white/8 text-text-1"}`,children:s?"Free":`$${t.toFixed(2)}`})}function iS({type:t="verified",size:n=12}){const s=t==="claude-official"||t==="anthropic"?"#f59e0b":"#4ade80";return l.jsxs("svg",{width:n,height:n,viewBox:"0 0 20 20",fill:"none",className:"inline-block flex-shrink-0",children:[l.jsx("path",{d:"M10 0l2.36 3.15L16.18 2l.68 3.93L20.8 7.1l-1.87 3.52L20.8 14.14l-3.94 1.17-.68 3.93-3.82-1.15L10 21.24l-2.36-3.15-3.82 1.15-.68-3.93-3.94-1.17 1.87-3.52L-.8 7.1l3.94-1.17.68-3.93 3.82 1.15L10 0z",fill:s}),l.jsx("path",{d:"M7 10.5l2 2 4-4.5",fill:"none",stroke:"#24282f",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const oS="groove_favorites";function Nh(){try{return JSON.parse(localStorage.getItem(oS)||"[]")}catch{return[]}}function v_(t){return Nh().includes(t)}function y_(t){const n=Nh(),s=n.indexOf(t);return s>=0?n.splice(s,1):n.push(t),localStorage.setItem(oS,JSON.stringify(n)),s<0}function S_(t){const n=new Set(Nh());return t.map(s=>({...s,favorited:n.has(s.id)}))}function Q_({filled:t,size:n=16}){return l.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:t?"#f87171":"none",stroke:t?"#f87171":"rgba(255,255,255,0.3)",strokeWidth:"2",children:l.jsx("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})})}function j_(){return l.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[l.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),l.jsx("polyline",{points:"7 10 12 15 17 10"}),l.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}function w_({skill:t,onClick:n}){var u,d;const[s,r]=v.useState(()=>v_(t.id));function o(O){O.stopPropagation(),r(y_(t.id))}return l.jsxs("div",{onClick:()=>n==null?void 0:n(t),className:re("flex flex-col cursor-pointer group","bg-surface-1 border border-border-subtle rounded-md","hover:border-accent/30 hover:bg-surface-2","transition-all duration-150"),style:{padding:20,minHeight:280},children:[l.jsxs("div",{className:"flex justify-between items-start",children:[l.jsx("div",{className:"w-10 h-10 rounded-full flex items-center justify-center flex-shrink-0 bg-accent/12 text-[20px]",children:t.icon||((d=(u=t.name)==null?void 0:u[0])==null?void 0:d.toUpperCase())||"?"}),l.jsx("button",{onClick:o,className:"opacity-40 group-hover:opacity-80 hover:!opacity-100 transition-opacity cursor-pointer bg-transparent border-0 p-0",children:l.jsx(Q_,{filled:s})})]}),l.jsx("div",{className:"mt-3 text-[15px] font-semibold text-text-0 font-sans line-clamp-2 leading-snug",children:t.name}),l.jsxs("div",{className:"mt-1 flex items-center gap-1.5 text-xs text-text-3 font-sans",children:[l.jsxs("span",{children:["by ",t.author||"Community"]}),(t.source==="claude-official"||t.verified)&&l.jsx(iS,{type:t.source,size:12})]}),l.jsx("div",{className:"mt-2.5 text-xs text-text-2 font-sans line-clamp-3 flex-1 leading-relaxed",children:t.description}),l.jsx("div",{className:"mt-3",children:l.jsx(lS,{label:t.category||"general",variant:t.category||"draft"})}),l.jsx("div",{className:"h-px bg-border-subtle my-3"}),l.jsxs("div",{className:"flex items-center justify-between gap-2",children:[l.jsx(sS,{rating:t.rating||0,count:t.rating_count||t.ratingCount||0,size:"sm"}),l.jsxs("span",{className:"flex items-center gap-1 text-xs text-text-3 font-mono",children:[l.jsx(j_,{}),Ke(t.downloads||0)]}),l.jsx(rS,{price:t.price||0,size:"sm"})]})]})}function cS(){return l.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md animate-pulse",style:{padding:20,minHeight:280},children:[l.jsx("div",{className:"w-10 h-10 rounded-full bg-surface-4"}),l.jsx("div",{className:"mt-3 h-4 w-[70%] rounded bg-surface-4"}),l.jsx("div",{className:"mt-2 h-3 w-[40%] rounded bg-surface-4"}),l.jsx("div",{className:"mt-3.5 h-3 w-full rounded bg-surface-4"}),l.jsx("div",{className:"mt-1.5 h-3 w-[90%] rounded bg-surface-4"}),l.jsx("div",{className:"mt-1.5 h-3 w-[60%] rounded bg-surface-4"}),l.jsx("div",{className:"mt-3.5 h-5 w-[50px] rounded bg-surface-4"}),l.jsx("div",{className:"h-px bg-surface-4 my-3"}),l.jsxs("div",{className:"flex justify-between",children:[l.jsx("div",{className:"h-3 w-16 rounded bg-surface-4"}),l.jsx("div",{className:"h-3 w-12 rounded bg-surface-4"}),l.jsx("div",{className:"h-3 w-10 rounded bg-surface-4"})]})]})}const k_={slack:"https://cdn.simpleicons.org/slack/E01E5A",github:"https://cdn.simpleicons.org/github/white",stripe:"https://cdn.simpleicons.org/stripe/635BFF",gmail:"https://cdn.simpleicons.org/gmail/EA4335","google-calendar":"https://cdn.simpleicons.org/googlecalendar/4285F4","google-drive":"https://cdn.simpleicons.org/googledrive/4285F4","google-maps":"https://cdn.simpleicons.org/googlemaps/4285F4",postgres:"https://cdn.simpleicons.org/postgresql/4169E1",notion:"https://cdn.simpleicons.org/notion/white",discord:"https://cdn.simpleicons.org/discord/5865F2",linear:"https://cdn.simpleicons.org/linear/5E6AD2","brave-search":"https://cdn.simpleicons.org/brave/FB542B","home-assistant":"https://cdn.simpleicons.org/homeassistant/18BCF2"};function $_({item:t,size:n=40}){const s=k_[t.id];if(s)return l.jsxs("div",{className:"rounded-md bg-surface-4 flex items-center justify-center flex-shrink-0 overflow-hidden",style:{width:n,height:n},children:[l.jsx("img",{src:s,alt:t.name,className:"w-5 h-5",onError:u=>{u.target.style.display="none",u.target.nextSibling.style.display="flex"}}),l.jsx("div",{className:"hidden items-center justify-center w-full h-full text-lg font-bold font-sans text-text-1",children:(t.name||"?")[0]})]});const r=(t.name||"?")[0].toUpperCase(),o=t.name?t.name.charCodeAt(0)*37%360:200;return l.jsx("div",{className:"rounded-md flex items-center justify-center flex-shrink-0 text-lg font-bold font-sans",style:{width:n,height:n,background:`hsl(${o}, 40%, 18%)`,color:`hsl(${o}, 60%, 65%)`},children:r})}function T_({item:t,onClick:n,className:s}){var o;const r=t.installed;return l.jsxs("button",{onClick:()=>n(t),className:re("flex flex-col p-5 rounded-md border border-border-subtle bg-surface-1 text-left","hover:border-accent/30 hover:bg-surface-2","transition-all duration-150 cursor-pointer group",s),style:{minHeight:200},children:[l.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[l.jsx($_,{item:t,size:36}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx("span",{className:"text-[14px] font-semibold text-text-0 font-sans truncate",children:t.name}),(t.verified||t.verified==="mcp-official")&&l.jsx(Ps,{size:11,className:"text-accent flex-shrink-0"})]}),l.jsx("span",{className:"text-2xs text-text-3 font-sans",children:t.author||"Community"})]})]}),l.jsx("p",{className:"text-xs text-text-2 font-sans line-clamp-3 mb-3 flex-1 leading-relaxed",children:t.description}),l.jsx("div",{className:"h-px bg-border-subtle my-2"}),l.jsxs("div",{className:"flex items-center gap-3 text-2xs text-text-3 font-sans",children:[l.jsxs("span",{className:"flex items-center gap-1",children:[l.jsx(xi,{size:10}),Ke(t.downloads||0)]}),(t.rating||0)>0&&l.jsxs("span",{className:"flex items-center gap-1",children:[l.jsx(Jb,{size:10,className:"text-warning",fill:"currentColor"}),(o=t.rating)==null?void 0:o.toFixed(1)]}),l.jsx("span",{className:"flex-1"}),r&&l.jsx(ze,{variant:"accent",className:"text-2xs",children:"Installed"})]})]})}function uS({value:t,onChange:n,placeholder:s="Search skills, tags, authors...",large:r}){const[o,u]=v.useState(t||""),d=v.useRef(null);v.useEffect(()=>{u(t||"")},[t]);function O(h){const p=h.target.value;u(p),clearTimeout(d.current),d.current=setTimeout(()=>n(p),300)}return l.jsxs("div",{className:"relative w-full",children:[l.jsx(fa,{size:16,className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-text-4 pointer-events-none"}),l.jsx("input",{value:o,onChange:O,placeholder:s,className:re("w-full font-sans outline-none","bg-surface-0 border border-border text-text-0 placeholder:text-text-4","focus:border-accent/40 transition-colors",r?"py-3 pl-11 pr-12 text-[15px] rounded-lg":"py-2.5 pl-10 pr-3 text-sm rounded-md")}),r&&l.jsx("kbd",{className:"absolute right-3.5 top-1/2 -translate-y-1/2 bg-surface-4 text-text-4 px-2 py-0.5 rounded text-xs font-mono",children:"/"})]})}const N_=[{id:"",label:"All"},{id:"design",label:"Design"},{id:"quality",label:"Quality"},{id:"devtools",label:"Dev Tools"},{id:"workflow",label:"Workflow"},{id:"security",label:"Security"},{id:"specialized",label:"Specialized"}];function P_({selected:t="",categories:n=N_,onSelect:s}){return l.jsx("div",{className:"flex gap-2 overflow-x-auto",style:{scrollbarWidth:"none"},children:n.map(r=>{const o=t===r.id;return l.jsx("button",{onClick:()=>s(r.id),className:re("whitespace-nowrap font-sans cursor-pointer select-none transition-all text-[13px] rounded-full border",o?"bg-accent text-surface-0 border-accent font-semibold":"bg-surface-1 text-text-3 border-border-subtle hover:text-text-1 hover:border-border font-medium"),style:{padding:"7px 16px"},children:r.label},r.id)})})}function ls(){const t=D(n=>n.addToast);return{success:(n,s)=>t("success",n,s),error:(n,s)=>t("error",n,s),info:(n,s)=>t("info",n,s),warning:(n,s)=>t("warning",n,s)}}var tf="focusScope.autoFocusOnMount",nf="focusScope.autoFocusOnUnmount",m0={bubbles:!1,cancelable:!0},z_="FocusScope",dS=v.forwardRef((t,n)=>{const{loop:s=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...d}=t,[O,h]=v.useState(null),p=Rt(o),x=Rt(u),g=v.useRef(null),b=it(n,w=>h(w)),y=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let w=function(N){if(y.paused||!O)return;const X=N.target;O.contains(X)?g.current=X:Wa(g.current,{select:!0})},k=function(N){if(y.paused||!O)return;const X=N.relatedTarget;X!==null&&(O.contains(X)||Wa(g.current,{select:!0}))},j=function(N){if(document.activeElement===document.body)for(const G of N)G.removedNodes.length>0&&Wa(O)};document.addEventListener("focusin",w),document.addEventListener("focusout",k);const z=new MutationObserver(j);return O&&z.observe(O,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",k),z.disconnect()}}},[r,O,y.paused]),v.useEffect(()=>{if(O){x0.add(y);const w=document.activeElement;if(!O.contains(w)){const j=new CustomEvent(tf,m0);O.addEventListener(tf,p),O.dispatchEvent(j),j.defaultPrevented||(R_(Z_(OS(O)),{select:!0}),document.activeElement===w&&Wa(O))}return()=>{O.removeEventListener(tf,p),setTimeout(()=>{const j=new CustomEvent(nf,m0);O.addEventListener(nf,x),O.dispatchEvent(j),j.defaultPrevented||Wa(w??document.body,{select:!0}),O.removeEventListener(nf,x),x0.remove(y)},0)}}},[O,p,x,y]);const Q=v.useCallback(w=>{if(!s&&!r||y.paused)return;const k=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,j=document.activeElement;if(k&&j){const z=w.currentTarget,[N,X]=C_(z);N&&X?!w.shiftKey&&j===X?(w.preventDefault(),s&&Wa(N,{select:!0})):w.shiftKey&&j===N&&(w.preventDefault(),s&&Wa(X,{select:!0})):j===z&&w.preventDefault()}},[s,r,y.paused]);return l.jsx(Be.div,{tabIndex:-1,...d,ref:b,onKeyDown:Q})});dS.displayName=z_;function R_(t,{select:n=!1}={}){const s=document.activeElement;for(const r of t)if(Wa(r,{select:n}),document.activeElement!==s)return}function C_(t){const n=OS(t),s=p0(n,t),r=p0(n.reverse(),t);return[s,r]}function OS(t){const n=[],s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)n.push(s.currentNode);return n}function p0(t,n){for(const s of t)if(!__(s,{upTo:n}))return s}function __(t,{upTo:n}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(n!==void 0&&t===n)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function X_(t){return t instanceof HTMLInputElement&&"select"in t}function Wa(t,{select:n=!1}={}){if(t&&t.focus){const s=document.activeElement;t.focus({preventScroll:!0}),t!==s&&X_(t)&&n&&t.select()}}var x0=A_();function A_(){let t=[];return{add(n){const s=t[0];n!==s&&(s==null||s.pause()),t=g0(t,n),t.unshift(n)},remove(n){var s;t=g0(t,n),(s=t[0])==null||s.resume()}}}function g0(t,n){const s=[...t],r=s.indexOf(n);return r!==-1&&s.splice(r,1),s}function Z_(t){return t.filter(n=>n.tagName!=="A")}var af=0;function E_(){v.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??b0()),document.body.insertAdjacentElement("beforeend",t[1]??b0()),af++,()=>{af===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),af--}},[])}function b0(){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 $n=function(){return $n=Object.assign||function(n){for(var s,r=1,o=arguments.length;r<o;r++){s=arguments[r];for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(n[u]=s[u])}return n},$n.apply(this,arguments)};function fS(t,n){var s={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(s[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(s[r[o]]=t[r[o]]);return s}function q_(t,n,s){if(s||arguments.length===2)for(var r=0,o=n.length,u;r<o;r++)(u||!(r in n))&&(u||(u=Array.prototype.slice.call(n,0,r)),u[r]=n[r]);return t.concat(u||Array.prototype.slice.call(n))}var dc="right-scroll-bar-position",Oc="width-before-scroll-bar",M_="with-scroll-bars-hidden",Y_="--removed-body-scroll-bar-size";function sf(t,n){return typeof t=="function"?t(n):t&&(t.current=n),t}function U_(t,n){var s=v.useState(function(){return{value:t,callback:n,facade:{get current(){return s.value},set current(r){var o=s.value;o!==r&&(s.value=r,s.callback(r,o))}}}})[0];return s.callback=n,s.facade}var V_=typeof window<"u"?v.useLayoutEffect:v.useEffect,v0=new WeakMap;function G_(t,n){var s=U_(null,function(r){return t.forEach(function(o){return sf(o,r)})});return V_(function(){var r=v0.get(s);if(r){var o=new Set(r),u=new Set(t),d=s.current;o.forEach(function(O){u.has(O)||sf(O,null)}),u.forEach(function(O){o.has(O)||sf(O,d)})}v0.set(s,t)},[t]),s}function L_(t){return t}function D_(t,n){n===void 0&&(n=L_);var s=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:t},useMedium:function(u){var d=n(u,r);return s.push(d),function(){s=s.filter(function(O){return O!==d})}},assignSyncMedium:function(u){for(r=!0;s.length;){var d=s;s=[],d.forEach(u)}s={push:function(O){return u(O)},filter:function(){return s}}},assignMedium:function(u){r=!0;var d=[];if(s.length){var O=s;s=[],O.forEach(u),d=s}var h=function(){var x=d;d=[],x.forEach(u)},p=function(){return Promise.resolve().then(h)};p(),s={push:function(x){d.push(x),p()},filter:function(x){return d=d.filter(x),s}}}};return o}function W_(t){t===void 0&&(t={});var n=D_(null);return n.options=$n({async:!0,ssr:!1},t),n}var hS=function(t){var n=t.sideCar,s=fS(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=n.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,$n({},s))};hS.isSideCarExport=!0;function B_(t,n){return t.useMedium(n),hS}var mS=W_(),lf=function(){},tu=v.forwardRef(function(t,n){var s=v.useRef(null),r=v.useState({onScrollCapture:lf,onWheelCapture:lf,onTouchMoveCapture:lf}),o=r[0],u=r[1],d=t.forwardProps,O=t.children,h=t.className,p=t.removeScrollBar,x=t.enabled,g=t.shards,b=t.sideCar,y=t.noRelative,Q=t.noIsolation,w=t.inert,k=t.allowPinchZoom,j=t.as,z=j===void 0?"div":j,N=t.gapMode,X=fS(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),G=b,R=G_([s,n]),_=$n($n({},X),o);return v.createElement(v.Fragment,null,x&&v.createElement(G,{sideCar:mS,removeScrollBar:p,shards:g,noRelative:y,noIsolation:Q,inert:w,setCallbacks:u,allowPinchZoom:!!k,lockRef:s,gapMode:N}),d?v.cloneElement(v.Children.only(O),$n($n({},_),{ref:R})):v.createElement(z,$n({},_,{className:h,ref:R}),O))});tu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};tu.classNames={fullWidth:Oc,zeroRight:dc};var H_=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function I_(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var n=H_();return n&&t.setAttribute("nonce",n),t}function F_(t,n){t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n))}function K_(t){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(t)}var J_=function(){var t=0,n=null;return{add:function(s){t==0&&(n=I_())&&(F_(n,s),K_(n)),t++},remove:function(){t--,!t&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},eX=function(){var t=J_();return function(n,s){v.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&s])}},pS=function(){var t=eX(),n=function(s){var r=s.styles,o=s.dynamic;return t(r,o),null};return n},tX={left:0,top:0,right:0,gap:0},rf=function(t){return parseInt(t||"",10)||0},nX=function(t){var n=window.getComputedStyle(document.body),s=n[t==="padding"?"paddingLeft":"marginLeft"],r=n[t==="padding"?"paddingTop":"marginTop"],o=n[t==="padding"?"paddingRight":"marginRight"];return[rf(s),rf(r),rf(o)]},aX=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return tX;var n=nX(t),s=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-s+n[2]-n[0])}},sX=pS(),Al="data-scroll-locked",lX=function(t,n,s,r){var o=t.left,u=t.top,d=t.right,O=t.gap;return s===void 0&&(s="margin"),`
589
+ .`.concat(M_,` {
590
+ overflow: hidden `).concat(r,`;
591
+ padding-right: `).concat(O,"px ").concat(r,`;
592
+ }
593
+ body[`).concat(Al,`] {
594
+ overflow: hidden `).concat(r,`;
595
+ overscroll-behavior: contain;
596
+ `).concat([n&&"position: relative ".concat(r,";"),s==="margin"&&`
597
+ padding-left: `.concat(o,`px;
598
+ padding-top: `).concat(u,`px;
599
+ padding-right: `).concat(d,`px;
600
+ margin-left:0;
601
+ margin-top:0;
602
+ margin-right: `).concat(O,"px ").concat(r,`;
603
+ `),s==="padding"&&"padding-right: ".concat(O,"px ").concat(r,";")].filter(Boolean).join(""),`
604
+ }
605
+
606
+ .`).concat(dc,` {
607
+ right: `).concat(O,"px ").concat(r,`;
608
+ }
609
+
610
+ .`).concat(Oc,` {
611
+ margin-right: `).concat(O,"px ").concat(r,`;
612
+ }
613
+
614
+ .`).concat(dc," .").concat(dc,` {
615
+ right: 0 `).concat(r,`;
616
+ }
617
+
618
+ .`).concat(Oc," .").concat(Oc,` {
619
+ margin-right: 0 `).concat(r,`;
620
+ }
621
+
622
+ body[`).concat(Al,`] {
623
+ `).concat(Y_,": ").concat(O,`px;
624
+ }
625
+ `)},y0=function(){var t=parseInt(document.body.getAttribute(Al)||"0",10);return isFinite(t)?t:0},rX=function(){v.useEffect(function(){return document.body.setAttribute(Al,(y0()+1).toString()),function(){var t=y0()-1;t<=0?document.body.removeAttribute(Al):document.body.setAttribute(Al,t.toString())}},[])},iX=function(t){var n=t.noRelative,s=t.noImportant,r=t.gapMode,o=r===void 0?"margin":r;rX();var u=v.useMemo(function(){return aX(o)},[o]);return v.createElement(sX,{styles:lX(u,!n,o,s?"":"!important")})},Xf=!1;if(typeof window<"u")try{var Jo=Object.defineProperty({},"passive",{get:function(){return Xf=!0,!0}});window.addEventListener("test",Jo,Jo),window.removeEventListener("test",Jo,Jo)}catch{Xf=!1}var Ql=Xf?{passive:!1}:!1,oX=function(t){return t.tagName==="TEXTAREA"},xS=function(t,n){if(!(t instanceof Element))return!1;var s=window.getComputedStyle(t);return s[n]!=="hidden"&&!(s.overflowY===s.overflowX&&!oX(t)&&s[n]==="visible")},cX=function(t){return xS(t,"overflowY")},uX=function(t){return xS(t,"overflowX")},S0=function(t,n){var s=n.ownerDocument,r=n;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=gS(t,r);if(o){var u=bS(t,r),d=u[1],O=u[2];if(d>O)return!0}r=r.parentNode}while(r&&r!==s.body);return!1},dX=function(t){var n=t.scrollTop,s=t.scrollHeight,r=t.clientHeight;return[n,s,r]},OX=function(t){var n=t.scrollLeft,s=t.scrollWidth,r=t.clientWidth;return[n,s,r]},gS=function(t,n){return t==="v"?cX(n):uX(n)},bS=function(t,n){return t==="v"?dX(n):OX(n)},fX=function(t,n){return t==="h"&&n==="rtl"?-1:1},hX=function(t,n,s,r,o){var u=fX(t,window.getComputedStyle(n).direction),d=u*r,O=s.target,h=n.contains(O),p=!1,x=d>0,g=0,b=0;do{if(!O)break;var y=bS(t,O),Q=y[0],w=y[1],k=y[2],j=w-k-u*Q;(Q||j)&&gS(t,O)&&(g+=j,b+=Q);var z=O.parentNode;O=z&&z.nodeType===Node.DOCUMENT_FRAGMENT_NODE?z.host:z}while(!h&&O!==document.body||h&&(n.contains(O)||n===O));return(x&&Math.abs(g)<1||!x&&Math.abs(b)<1)&&(p=!0),p},ec=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Q0=function(t){return[t.deltaX,t.deltaY]},j0=function(t){return t&&"current"in t?t.current:t},mX=function(t,n){return t[0]===n[0]&&t[1]===n[1]},pX=function(t){return`
626
+ .block-interactivity-`.concat(t,` {pointer-events: none;}
627
+ .allow-interactivity-`).concat(t,` {pointer-events: all;}
628
+ `)},xX=0,jl=[];function gX(t){var n=v.useRef([]),s=v.useRef([0,0]),r=v.useRef(),o=v.useState(xX++)[0],u=v.useState(pS)[0],d=v.useRef(t);v.useEffect(function(){d.current=t},[t]),v.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var w=q_([t.lockRef.current],(t.shards||[]).map(j0),!0).filter(Boolean);return w.forEach(function(k){return k.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),w.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var O=v.useCallback(function(w,k){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!d.current.allowPinchZoom;var j=ec(w),z=s.current,N="deltaX"in w?w.deltaX:z[0]-j[0],X="deltaY"in w?w.deltaY:z[1]-j[1],G,R=w.target,_=Math.abs(N)>Math.abs(X)?"h":"v";if("touches"in w&&_==="h"&&R.type==="range")return!1;var T=window.getSelection(),Y=T&&T.anchorNode,M=Y?Y===R||Y.contains(R):!1;if(M)return!1;var ae=S0(_,R);if(!ae)return!0;if(ae?G=_:(G=_==="v"?"h":"v",ae=S0(_,R)),!ae)return!1;if(!r.current&&"changedTouches"in w&&(N||X)&&(r.current=G),!G)return!0;var F=r.current||G;return hX(F,k,w,F==="h"?N:X)},[]),h=v.useCallback(function(w){var k=w;if(!(!jl.length||jl[jl.length-1]!==u)){var j="deltaY"in k?Q0(k):ec(k),z=n.current.filter(function(G){return G.name===k.type&&(G.target===k.target||k.target===G.shadowParent)&&mX(G.delta,j)})[0];if(z&&z.should){k.cancelable&&k.preventDefault();return}if(!z){var N=(d.current.shards||[]).map(j0).filter(Boolean).filter(function(G){return G.contains(k.target)}),X=N.length>0?O(k,N[0]):!d.current.noIsolation;X&&k.cancelable&&k.preventDefault()}}},[]),p=v.useCallback(function(w,k,j,z){var N={name:w,delta:k,target:j,should:z,shadowParent:bX(j)};n.current.push(N),setTimeout(function(){n.current=n.current.filter(function(X){return X!==N})},1)},[]),x=v.useCallback(function(w){s.current=ec(w),r.current=void 0},[]),g=v.useCallback(function(w){p(w.type,Q0(w),w.target,O(w,t.lockRef.current))},[]),b=v.useCallback(function(w){p(w.type,ec(w),w.target,O(w,t.lockRef.current))},[]);v.useEffect(function(){return jl.push(u),t.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:b}),document.addEventListener("wheel",h,Ql),document.addEventListener("touchmove",h,Ql),document.addEventListener("touchstart",x,Ql),function(){jl=jl.filter(function(w){return w!==u}),document.removeEventListener("wheel",h,Ql),document.removeEventListener("touchmove",h,Ql),document.removeEventListener("touchstart",x,Ql)}},[]);var y=t.removeScrollBar,Q=t.inert;return v.createElement(v.Fragment,null,Q?v.createElement(u,{styles:pX(o)}):null,y?v.createElement(iX,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function bX(t){for(var n=null;t!==null;)t instanceof ShadowRoot&&(n=t.host,t=t.host),t=t.parentNode;return n}const vX=B_(mS,gX);var vS=v.forwardRef(function(t,n){return v.createElement(tu,$n({},t,{ref:n,sideCar:vX}))});vS.classNames=tu.classNames;var yX=function(t){if(typeof document>"u")return null;var n=Array.isArray(t)?t[0]:t;return n.ownerDocument.body},wl=new WeakMap,tc=new WeakMap,nc={},of=0,yS=function(t){return t&&(t.host||yS(t.parentNode))},SX=function(t,n){return n.map(function(s){if(t.contains(s))return s;var r=yS(s);return r&&t.contains(r)?r:(console.error("aria-hidden",s,"in not contained inside",t,". Doing nothing"),null)}).filter(function(s){return!!s})},QX=function(t,n,s,r){var o=SX(n,Array.isArray(t)?t:[t]);nc[s]||(nc[s]=new WeakMap);var u=nc[s],d=[],O=new Set,h=new Set(o),p=function(g){!g||O.has(g)||(O.add(g),p(g.parentNode))};o.forEach(p);var x=function(g){!g||h.has(g)||Array.prototype.forEach.call(g.children,function(b){if(O.has(b))x(b);else try{var y=b.getAttribute(r),Q=y!==null&&y!=="false",w=(wl.get(b)||0)+1,k=(u.get(b)||0)+1;wl.set(b,w),u.set(b,k),d.push(b),w===1&&Q&&tc.set(b,!0),k===1&&b.setAttribute(s,"true"),Q||b.setAttribute(r,"true")}catch(j){console.error("aria-hidden: cannot operate on ",b,j)}})};return x(n),O.clear(),of++,function(){d.forEach(function(g){var b=wl.get(g)-1,y=u.get(g)-1;wl.set(g,b),u.set(g,y),b||(tc.has(g)||g.removeAttribute(r),tc.delete(g)),y||g.removeAttribute(s)}),of--,of||(wl=new WeakMap,wl=new WeakMap,tc=new WeakMap,nc={})}},jX=function(t,n,s){s===void 0&&(s="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),o=yX(t);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),QX(r,o,s,"aria-hidden")):function(){return null}},nu="Dialog",[SS]=As(nu),[wX,Sn]=SS(nu),QS=t=>{const{__scopeDialog:n,children:s,open:r,defaultOpen:o,onOpenChange:u,modal:d=!0}=t,O=v.useRef(null),h=v.useRef(null),[p,x]=Uc({prop:r,defaultProp:o??!1,onChange:u,caller:nu});return l.jsx(wX,{scope:n,triggerRef:O,contentRef:h,contentId:zl(),titleId:zl(),descriptionId:zl(),open:p,onOpenChange:x,onOpenToggle:v.useCallback(()=>x(g=>!g),[x]),modal:d,children:s})};QS.displayName=nu;var jS="DialogTrigger",kX=v.forwardRef((t,n)=>{const{__scopeDialog:s,...r}=t,o=Sn(jS,s),u=it(n,o.triggerRef);return l.jsx(Be.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Rh(o.open),...r,ref:u,onClick:qe(t.onClick,o.onOpenToggle)})});kX.displayName=jS;var Ph="DialogPortal",[$X,wS]=SS(Ph,{forceMount:void 0}),kS=t=>{const{__scopeDialog:n,forceMount:s,children:r,container:o}=t,u=Sn(Ph,n);return l.jsx($X,{scope:n,forceMount:s,children:v.Children.map(r,d=>l.jsx(yn,{present:s||u.open,children:l.jsx(If,{asChild:!0,container:o,children:d})}))})};kS.displayName=Ph;var Cc="DialogOverlay",$S=v.forwardRef((t,n)=>{const s=wS(Cc,t.__scopeDialog),{forceMount:r=s.forceMount,...o}=t,u=Sn(Cc,t.__scopeDialog);return u.modal?l.jsx(yn,{present:r||u.open,children:l.jsx(NX,{...o,ref:n})}):null});$S.displayName=Cc;var TX=fc("DialogOverlay.RemoveScroll"),NX=v.forwardRef((t,n)=>{const{__scopeDialog:s,...r}=t,o=Sn(Cc,s);return l.jsx(vS,{as:TX,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(Be.div,{"data-state":Rh(o.open),...r,ref:n,style:{pointerEvents:"auto",...r.style}})})}),Cs="DialogContent",TS=v.forwardRef((t,n)=>{const s=wS(Cs,t.__scopeDialog),{forceMount:r=s.forceMount,...o}=t,u=Sn(Cs,t.__scopeDialog);return l.jsx(yn,{present:r||u.open,children:u.modal?l.jsx(PX,{...o,ref:n}):l.jsx(zX,{...o,ref:n})})});TS.displayName=Cs;var PX=v.forwardRef((t,n)=>{const s=Sn(Cs,t.__scopeDialog),r=v.useRef(null),o=it(n,s.contentRef,r);return v.useEffect(()=>{const u=r.current;if(u)return jX(u)},[]),l.jsx(NS,{...t,ref:o,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:qe(t.onCloseAutoFocus,u=>{var d;u.preventDefault(),(d=s.triggerRef.current)==null||d.focus()}),onPointerDownOutside:qe(t.onPointerDownOutside,u=>{const d=u.detail.originalEvent,O=d.button===0&&d.ctrlKey===!0;(d.button===2||O)&&u.preventDefault()}),onFocusOutside:qe(t.onFocusOutside,u=>u.preventDefault())})}),zX=v.forwardRef((t,n)=>{const s=Sn(Cs,t.__scopeDialog),r=v.useRef(!1),o=v.useRef(!1);return l.jsx(NS,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var d,O;(d=t.onCloseAutoFocus)==null||d.call(t,u),u.defaultPrevented||(r.current||(O=s.triggerRef.current)==null||O.focus(),u.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:u=>{var h,p;(h=t.onInteractOutside)==null||h.call(t,u),u.defaultPrevented||(r.current=!0,u.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const d=u.target;((p=s.triggerRef.current)==null?void 0:p.contains(d))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&o.current&&u.preventDefault()}})}),NS=v.forwardRef((t,n)=>{const{__scopeDialog:s,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:u,...d}=t,O=Sn(Cs,s),h=v.useRef(null),p=it(n,h);return E_(),l.jsxs(l.Fragment,{children:[l.jsx(dS,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:u,children:l.jsx(Yf,{role:"dialog",id:O.contentId,"aria-describedby":O.descriptionId,"aria-labelledby":O.titleId,"data-state":Rh(O.open),...d,ref:p,onDismiss:()=>O.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(RX,{titleId:O.titleId}),l.jsx(_X,{contentRef:h,descriptionId:O.descriptionId})]})]})}),zh="DialogTitle",PS=v.forwardRef((t,n)=>{const{__scopeDialog:s,...r}=t,o=Sn(zh,s);return l.jsx(Be.h2,{id:o.titleId,...r,ref:n})});PS.displayName=zh;var zS="DialogDescription",RS=v.forwardRef((t,n)=>{const{__scopeDialog:s,...r}=t,o=Sn(zS,s);return l.jsx(Be.p,{id:o.descriptionId,...r,ref:n})});RS.displayName=zS;var CS="DialogClose",_S=v.forwardRef((t,n)=>{const{__scopeDialog:s,...r}=t,o=Sn(CS,s);return l.jsx(Be.button,{type:"button",...r,ref:n,onClick:qe(t.onClick,()=>o.onOpenChange(!1))})});_S.displayName=CS;function Rh(t){return t?"open":"closed"}var XS="DialogTitleWarning",[fZ,AS]=Ow(XS,{contentName:Cs,titleName:zh,docsSlug:"dialog"}),RX=({titleId:t})=>{const n=AS(XS),s=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
629
+
630
+ If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
631
+
632
+ For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return v.useEffect(()=>{t&&(document.getElementById(t)||console.error(s))},[s,t]),null},CX="DialogDescriptionWarning",_X=({contentRef:t,descriptionId:n})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${AS(CX).contentName}}.`;return v.useEffect(()=>{var u;const o=(u=t.current)==null?void 0:u.getAttribute("aria-describedby");n&&o&&(document.getElementById(n)||console.warn(r))},[r,t,n]),null},ZS=QS,ES=kS,qS=$S,MS=TS,YS=PS,US=RS,VS=_S;function Ch({children:t,...n}){return l.jsx(ZS,{...n,children:t})}function _h({children:t,className:n,title:s,description:r,...o}){return l.jsxs(ES,{children:[l.jsx(qS,{className:"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),l.jsxs(MS,{className:re("fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2","w-full max-w-lg max-h-[85vh] overflow-y-auto","bg-surface-1 border border-border rounded-lg shadow-2xl","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",n),...o,children:[s&&l.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border-subtle",children:[l.jsx(YS,{className:"text-base font-semibold text-text-0 font-sans",children:s}),l.jsx(VS,{className:"p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors",children:l.jsx(jt,{size:16})})]}),r&&l.jsx(US,{className:"sr-only",children:r}),t]})]})}const _c=v.forwardRef(({className:t,label:n,error:s,mono:r,...o},u)=>l.jsxs("div",{className:"flex flex-col gap-1",children:[n&&l.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:n}),l.jsx("input",{ref:u,className:re("h-8 w-full rounded-md px-3 text-sm","bg-surface-1 border border-border text-text-0","placeholder:text-text-4","focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent","disabled:opacity-40 disabled:cursor-not-allowed","transition-colors duration-100",r?"font-mono":"font-sans",s&&"border-danger focus:ring-danger",t),...o}),s&&l.jsx("span",{className:"text-2xs text-danger font-sans",children:s})]}));_c.displayName="Input";const XX=v.forwardRef(({className:t,label:n,error:s,mono:r,...o},u)=>l.jsxs("div",{className:"flex flex-col gap-1",children:[n&&l.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:n}),l.jsx("textarea",{ref:u,className:re("w-full rounded-md px-3 py-2 text-sm resize-none","bg-surface-1 border border-border text-text-0","placeholder:text-text-4","focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent","disabled:opacity-40 disabled:cursor-not-allowed","transition-colors duration-100",r?"font-mono":"font-sans",s&&"border-danger focus:ring-danger",t),...o}),s&&l.jsx("span",{className:"text-2xs text-danger font-sans",children:s})]}));XX.displayName="Textarea";const AX={slack:"https://cdn.simpleicons.org/slack/E01E5A",github:"https://cdn.simpleicons.org/github/white",stripe:"https://cdn.simpleicons.org/stripe/635BFF",gmail:"https://cdn.simpleicons.org/gmail/EA4335","google-calendar":"https://cdn.simpleicons.org/googlecalendar/4285F4","google-drive":"https://cdn.simpleicons.org/googledrive/4285F4","google-maps":"https://cdn.simpleicons.org/googlemaps/4285F4",postgres:"https://cdn.simpleicons.org/postgresql/4169E1",notion:"https://cdn.simpleicons.org/notion/white",discord:"https://cdn.simpleicons.org/discord/5865F2",linear:"https://cdn.simpleicons.org/linear/5E6AD2","brave-search":"https://cdn.simpleicons.org/brave/FB542B","home-assistant":"https://cdn.simpleicons.org/homeassistant/18BCF2"};function GS({item:t,size:n=48}){const s=AX[t.id];if(s)return l.jsx("div",{className:"rounded-lg bg-surface-4 flex items-center justify-center flex-shrink-0 overflow-hidden",style:{width:n,height:n},children:l.jsx("img",{src:s,alt:t.name,className:"w-6 h-6",onError:u=>{u.target.style.display="none"}})});const r=(t.name||"?")[0].toUpperCase(),o=t.name?t.name.charCodeAt(0)*37%360:200;return l.jsx("div",{className:"rounded-lg flex items-center justify-center flex-shrink-0 text-xl font-bold font-sans",style:{width:n,height:n,background:`hsl(${o}, 40%, 18%)`,color:`hsl(${o}, 60%, 65%)`},children:r})}function ZX({value:t,onChange:n,placeholder:s,disabled:r}){const[o,u]=v.useState(!1);return l.jsxs("div",{className:"relative",children:[l.jsx(_c,{type:o?"text":"password",value:t,onChange:d=>n(d.target.value),placeholder:s,disabled:r,mono:!0,className:"pr-9"}),l.jsx("button",{type:"button",onClick:()=>u(d=>!d),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 rounded text-text-4 hover:text-text-1 transition-colors cursor-pointer",tabIndex:-1,children:o?l.jsx(Dc,{size:14}):l.jsx(Es,{size:14})})]})}function EX({integrationId:t,envKey:n,onSaved:s}){const r=ls(),[o,u]=v.useState(""),[d,O]=v.useState(!1),[h,p]=v.useState(n.set),[x,g]=v.useState(!1);async function b(){if(o.trim()){O(!0);try{await K.post(`/integrations/${t}/credentials`,{key:n.key,value:o.trim()}),p(!0),u(""),r.success(`${n.label} saved`),s==null||s()}catch(Q){r.error("Failed to save",Q.message)}O(!1)}}async function y(){g(!0);try{await K.delete(`/integrations/${t}/credentials/${n.key}`),p(!1),r.success(`${n.label} removed`),s==null||s()}catch(Q){r.error("Failed to remove",Q.message)}g(!1)}return l.jsxs("div",{className:"space-y-1.5",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsxs("label",{className:"text-xs font-medium text-text-2 font-sans flex items-center gap-1.5",children:[l.jsx(ri,{size:11,className:"text-text-4"}),n.label,n.required&&l.jsx("span",{className:"text-danger",children:"*"})]}),h&&l.jsxs("span",{className:"flex items-center gap-1 text-2xs text-success font-sans",children:[l.jsx(Qt,{size:10})," Set"]})]}),h?l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("div",{className:"flex-1 h-8 rounded-md px-3 bg-surface-2 border border-border-subtle flex items-center",children:l.jsx("span",{className:"text-xs text-text-4 font-mono tracking-widest",children:"*".repeat(16)})}),l.jsx(ge,{variant:"ghost",size:"sm",onClick:y,disabled:x,className:"text-text-3 hover:text-danger",children:x?l.jsx(Ct,{size:12,className:"animate-spin"}):l.jsx(_n,{size:12})})]}):l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("div",{className:"flex-1",children:l.jsx(ZX,{value:o,onChange:u,placeholder:n.placeholder||`Enter ${n.label.toLowerCase()}...`,disabled:d})}),l.jsx(ge,{variant:"primary",size:"sm",onClick:b,disabled:d||!o.trim(),children:d?l.jsx(Ct,{size:12,className:"animate-spin"}):"Save"})]})]})}function qX({item:t,status:n,installing:s,onInstall:r,onUninstall:o,onNext:u}){var O;const d=n==null?void 0:n.installed;return l.jsxs("div",{className:"px-5 py-5 space-y-5",children:[l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx(GS,{item:t,size:52}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("h2",{className:"text-base font-bold text-text-0 font-sans",children:t.name}),(t.verified==="mcp-official"||t.verified==="verified")&&l.jsxs(ze,{variant:"accent",className:"text-2xs gap-1",children:[l.jsx(Yl,{size:9})," Verified"]})]}),l.jsx("p",{className:"text-xs text-text-3 font-sans mt-0.5",children:t.author||"Community"}),t.category&&l.jsx(ze,{variant:"default",className:"text-2xs mt-2",children:t.category})]})]}),l.jsx("p",{className:"text-sm text-text-2 font-sans leading-relaxed",children:t.description}),((O=t.tags)==null?void 0:O.length)>0&&l.jsx("div",{className:"flex flex-wrap gap-1.5",children:t.tags.map(h=>l.jsx("span",{className:"text-2xs text-text-3 font-sans px-2 py-0.5 rounded bg-surface-4",children:h},h))}),l.jsx("div",{className:"h-px bg-border-subtle"}),d?l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsxs("div",{className:"flex-1 flex items-center gap-2",children:[l.jsx(Ps,{size:16,className:"text-success"}),l.jsx("span",{className:"text-sm font-medium text-success font-sans",children:"Installed"})]}),l.jsxs(ge,{variant:"ghost",size:"sm",onClick:o,className:"text-text-3 hover:text-danger gap-1.5",children:[l.jsx(_n,{size:12})," Uninstall"]}),l.jsxs(ge,{variant:"primary",size:"sm",onClick:u,className:"gap-1",children:["Configure ",l.jsx(as,{size:12})]})]}):l.jsx(ge,{variant:"primary",size:"lg",onClick:r,disabled:s,className:"w-full gap-2",children:s?l.jsxs(l.Fragment,{children:[l.jsx(Ct,{size:14,className:"animate-spin"}),"Installing..."]}):"Install"}),s&&l.jsx("p",{className:"text-2xs text-text-4 font-sans text-center",children:"This may take up to 30 seconds..."})]})}function MX({item:t,status:n,onDone:s,onRefreshStatus:r}){var y;const o=ls(),[u,d]=v.useState(!1),O=t.authType;async function h(){d(!0);try{await K.post(`/integrations/${t.id}/authenticate`),o.success("Browser opened — complete sign-in there")}catch(Q){o.error("Auth failed",Q.message)}d(!1)}async function p(){d(!0);try{const Q=await K.post(`/integrations/${t.id}/oauth/start`);Q.url&&(window.open(Q.url,"_blank","noopener"),o.success("Browser opened — complete sign-in there"))}catch(Q){o.error("OAuth failed",Q.message)}d(!1)}const x=(n==null?void 0:n.envKeys)||[],g=x.filter(Q=>Q.required&&!Q.hidden),b=g.length===0||g.every(Q=>Q.set);return l.jsxs("div",{className:"px-5 py-5 space-y-5",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(GS,{item:t,size:36}),l.jsxs("div",{children:[l.jsxs("h2",{className:"text-sm font-bold text-text-0 font-sans",children:["Configure ",t.name]}),l.jsx("p",{className:"text-2xs text-text-3 font-sans",children:"Set up credentials to connect"})]})]}),((y=t.setupSteps)==null?void 0:y.length)>0&&l.jsxs("div",{className:"bg-surface-2 rounded-md px-4 py-3 space-y-2",children:[l.jsx("span",{className:"text-xs font-semibold text-text-1 font-sans",children:"Setup guide"}),l.jsx("ol",{className:"space-y-1.5",children:t.setupSteps.map((Q,w)=>l.jsxs("li",{className:"flex gap-2 text-xs text-text-2 font-sans leading-relaxed",children:[l.jsxs("span",{className:"text-text-4 font-mono flex-shrink-0 w-4 text-right",children:[w+1,"."]}),l.jsx("span",{children:Q})]},w))}),t.setupUrl&&l.jsxs("a",{href:t.setupUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-accent font-sans hover:underline mt-1",children:[l.jsx(si,{size:11}),new URL(t.setupUrl).hostname]})]}),l.jsx("div",{className:"h-px bg-border-subtle"}),O==="api-key"&&l.jsx("div",{className:"space-y-4",children:x.filter(Q=>!Q.hidden).map(Q=>l.jsx(EX,{integrationId:t.id,envKey:Q,onSaved:r},Q.key))}),O==="google-autoauth"&&l.jsxs("div",{className:"space-y-3",children:[l.jsx(ge,{variant:"primary",size:"lg",onClick:h,disabled:u,className:"w-full gap-2",children:u?l.jsxs(l.Fragment,{children:[l.jsx(Ct,{size:14,className:"animate-spin"}),"Opening browser..."]}):l.jsxs(l.Fragment,{children:[l.jsx("img",{src:"https://cdn.simpleicons.org/google/white",alt:"",className:"w-4 h-4"}),"Sign in with Google"]})}),l.jsx("p",{className:"text-2xs text-text-4 font-sans text-center",children:"A browser window will open for Google authorization"})]}),O==="oauth-google"&&l.jsxs("div",{className:"space-y-3",children:[l.jsx(ge,{variant:"primary",size:"lg",onClick:p,disabled:u,className:"w-full gap-2",children:u?l.jsxs(l.Fragment,{children:[l.jsx(Ct,{size:14,className:"animate-spin"}),"Connecting..."]}):l.jsxs(l.Fragment,{children:[l.jsx("img",{src:"https://cdn.simpleicons.org/google/white",alt:"",className:"w-4 h-4"}),"Connect with Google"]})}),l.jsxs("p",{className:"text-2xs text-text-4 font-sans text-center",children:["Authorize Groove to access your ",t.name]})]}),l.jsx(ge,{variant:b?"primary":"secondary",size:"lg",onClick:s,className:"w-full gap-1.5",children:b?l.jsxs(l.Fragment,{children:[l.jsx(Qt,{size:14}),"Done"]}):"Skip for now"})]})}function YX({item:t,onClose:n}){return l.jsxs("div",{className:"px-5 py-10 flex flex-col items-center text-center space-y-4",children:[l.jsx("div",{className:"w-14 h-14 rounded-full bg-success/15 flex items-center justify-center",children:l.jsx(Ps,{size:28,className:"text-success"})}),l.jsxs("div",{children:[l.jsx("h2",{className:"text-base font-bold text-text-0 font-sans",children:"Integration ready"}),l.jsxs("p",{className:"text-sm text-text-3 font-sans mt-1",children:[t.name," is installed and configured. Agents can now use it."]})]}),l.jsx(ge,{variant:"primary",size:"lg",onClick:n,className:"mt-2",children:"Close"})]})}function UX({integration:t,open:n,onClose:s}){const r=ls(),[o,u]=v.useState("overview"),[d,O]=v.useState(null),[h,p]=v.useState(!1),[x,g]=v.useState(!0),b=t==null?void 0:t.id,y=v.useCallback(async()=>{if(b){try{const z=await K.get(`/integrations/${b}/status`);O(z)}catch{O(null)}g(!1)}},[b]);v.useEffect(()=>{n&&t&&(u("overview"),g(!0),y())},[n,t,y]);async function Q(){p(!0);try{await K.post(`/integrations/${t.id}/install`),r.success(`${t.name} installed`),await y(),u("configure")}catch(z){r.error("Install failed",z.message)}p(!1)}async function w(){try{await K.delete(`/integrations/${t.id}`),r.success(`${t.name} uninstalled`),await y()}catch(z){r.error("Uninstall failed",z.message)}}function k(){u("configure")}function j(){u("done")}return t?l.jsx(Ch,{open:n,onOpenChange:z=>{z||s()},children:l.jsx(_h,{title:o==="overview"?t.name:o==="configure"?"Configure":"Complete",description:`Setup wizard for ${t.name}`,className:"max-w-md",children:x?l.jsx("div",{className:"px-5 py-10 flex items-center justify-center",children:l.jsx(Ct,{size:20,className:"animate-spin text-text-4"})}):o==="overview"?l.jsx(qX,{item:t,status:d,installing:h,onInstall:Q,onUninstall:w,onNext:k}):o==="configure"?l.jsx(MX,{item:t,status:d,onDone:j,onRefreshStatus:y}):l.jsx(YX,{item:t,onClose:s})})}):null}function VX({skill:t,onBack:n}){var G,R,_;const s=ls(),[r,o]=v.useState(""),[u,d]=v.useState(!1),[O,h]=v.useState(!1),[p,x]=v.useState(!1),[g,b]=v.useState(!1),[y,Q]=v.useState(t.installed),[w,k]=v.useState(!0);v.useEffect(()=>{k(!0),K.get(`/skills/${t.id}/content`).then(T=>{o(T.content||""),d(T.requiresPurchase||!1)}).catch(()=>{}).finally(()=>k(!1))},[t.id]);async function j(){h(!0);try{await K.post(`/skills/${t.id}/install`),Q(!0),s.success(`${t.name} installed`)}catch(T){s.error("Install failed",T.message)}h(!1)}async function z(){x(!0);try{await K.post(`/skills/${t.id}/update`),s.success(`${t.name} updated to latest`);const T=await K.get(`/skills/${t.id}/content`);T.content&&o(T.content)}catch(T){s.error("Update failed",T.message)}x(!1)}async function N(){b(!0);try{await K.delete(`/skills/${t.id}`),Q(!1),s.success(`${t.name} uninstalled`)}catch(T){s.error("Uninstall failed",T.message)}b(!1)}async function X(){const{marketplaceAuthenticated:T,marketplaceLogin:Y,marketplaceCheckout:M}=D.getState();if(!T){Y();return}try{await M(t.id)}catch{}}return l.jsx(ma,{className:"h-full",children:l.jsxs("div",{className:"px-6 py-5",children:[l.jsxs("button",{onClick:n,className:"flex items-center gap-1 text-xs text-text-3 font-sans hover:text-text-0 cursor-pointer bg-transparent border-0 mb-4",children:[l.jsx(Ab,{size:14})," Back"]}),l.jsxs("div",{className:"flex gap-8",children:[l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx("div",{className:"w-11 h-11 rounded-lg flex items-center justify-center flex-shrink-0 bg-accent/10 border border-accent/20 text-[22px]",children:t.icon||((R=(G=t.name)==null?void 0:G[0])==null?void 0:R.toUpperCase())}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("h1",{className:"text-lg font-bold text-text-0 font-sans",children:t.name}),l.jsxs("div",{className:"flex items-center gap-2 mt-0.5 text-xs text-text-3 font-sans",children:[l.jsx("span",{children:t.author||"Community"}),(t.source==="claude-official"||t.verified)&&l.jsx(iS,{type:t.source,size:13})]})]})]}),l.jsx("p",{className:"mt-3 text-sm text-text-2 font-sans leading-relaxed",children:t.description}),((_=t.tags)==null?void 0:_.length)>0&&l.jsx("div",{className:"flex flex-wrap gap-1.5 mt-3",children:t.tags.map(T=>l.jsx("span",{className:"text-2xs text-text-3 font-sans px-2 py-0.5 rounded bg-surface-4",children:T},T))}),l.jsx("div",{className:"h-px bg-border-subtle my-5"}),w?l.jsxs("div",{className:"space-y-2",children:[l.jsx("div",{className:"h-3 w-48 bg-surface-4 rounded animate-pulse"}),l.jsx("div",{className:"h-3 w-full bg-surface-4 rounded animate-pulse"}),l.jsx("div",{className:"h-3 w-3/4 bg-surface-4 rounded animate-pulse"})]}):r?l.jsxs("div",{className:"text-sm text-text-2 font-sans leading-relaxed",children:[l.jsx("h2",{className:"text-sm font-semibold text-text-0 mb-2",children:"About"}),l.jsx("pre",{className:"whitespace-pre-wrap font-sans",children:r})]}):u?l.jsxs("div",{className:"bg-warning/5 border border-warning/15 rounded-lg px-4 py-3",children:[l.jsx("p",{className:"text-sm text-text-1 font-sans font-medium",children:"Paid skill — purchase to view content"}),l.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Sign in and purchase this skill to access its full instructions."})]}):l.jsx("p",{className:"text-xs text-text-4 font-sans",children:"Content loading failed — check your connection."})]}),l.jsx("div",{className:"w-[240px] flex-shrink-0",children:l.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-lg p-4 sticky top-4",children:[l.jsx(rS,{price:t.price||0,size:"md"}),u&&!y?l.jsxs("button",{onClick:X,className:"w-full mt-3 py-2 px-3 text-xs font-sans font-semibold rounded cursor-pointer transition-all hover:opacity-85 flex items-center justify-center gap-2 border bg-warning/15 text-warning border-warning/20 hover:bg-warning/25",children:["Buy $",(t.price||0).toFixed(2)]}):y?l.jsxs("div",{className:"mt-3 flex flex-col gap-1.5",children:[l.jsxs("button",{onClick:z,disabled:p,className:"w-full py-2 px-3 text-xs font-sans font-semibold rounded cursor-pointer transition-all hover:opacity-85 disabled:opacity-60 disabled:cursor-not-allowed flex items-center justify-center gap-2 border bg-accent/15 text-accent border-accent/20 hover:bg-accent/25",children:[l.jsx(Cn,{size:12,className:p?"animate-spin":""}),p?"Updating...":"Pull Latest"]}),l.jsxs("button",{onClick:N,disabled:g,className:"w-full py-2 px-3 text-xs font-sans font-semibold rounded cursor-pointer transition-all hover:opacity-85 disabled:opacity-60 disabled:cursor-not-allowed flex items-center justify-center gap-2 border bg-error/10 text-error border-error/20 hover:bg-error/15",children:[l.jsx(_n,{size:12}),g?"Removing...":"Uninstall"]})]}):l.jsx("button",{onClick:j,disabled:O,className:"w-full mt-3 py-2 px-3 text-xs font-sans font-semibold rounded cursor-pointer transition-all hover:opacity-85 disabled:opacity-60 disabled:cursor-not-allowed flex items-center justify-center gap-2 border bg-accent/15 text-accent border-accent/20 hover:bg-accent/25",children:O?"Installing...":"Install"}),l.jsx("div",{className:"mt-4 flex flex-col gap-2.5",children:[["Downloads",l.jsx("span",{className:"font-mono text-text-0",children:Ke(t.downloads||0)},"d")],["Rating",l.jsx(sS,{rating:t.rating||0,count:t.rating_count||t.ratingCount,size:"sm"},"r")],["Version",l.jsx("span",{className:"font-mono text-text-0",children:t.version||"1.0.0"},"v")],["Category",l.jsx(lS,{label:t.category||"general",variant:t.category||"draft"},"c")],["Source",l.jsx("span",{className:"text-text-0",children:t.source==="claude-official"?"Anthropic":"Community"},"s")]].map(([T,Y])=>l.jsxs("div",{className:"flex justify-between items-center text-xs font-sans",children:[l.jsx("span",{className:"text-text-3",children:T}),Y]},T))})]})})]})]})})}function GX(){const[t,n]=v.useState([]),[s,r]=v.useState(!0),[o,u]=v.useState(""),[d,O]=v.useState(""),[h,p]=v.useState("popular"),[x,g]=v.useState(null);return v.useEffect(()=>{r(!0);const b=new URLSearchParams;o&&b.set("search",o),d&&b.set("category",d),h&&b.set("sort",h),K.get(`/skills/registry?${b}`).then(y=>n(S_(y.skills||y.items||(Array.isArray(y)?y:[])))).catch(()=>n([])).finally(()=>r(!1))},[o,d,h]),x?l.jsx(VX,{skill:x,onBack:()=>g(null)}):l.jsx(ma,{className:"h-full",children:l.jsxs("div",{className:"px-5 py-4",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("div",{className:"w-72",children:l.jsx(uS,{value:o,onChange:u})}),l.jsx(P_,{selected:d,onSelect:O}),l.jsx("div",{className:"flex-1"}),l.jsxs("div",{className:"relative flex-shrink-0",children:[l.jsxs("select",{value:h,onChange:b=>p(b.target.value),className:"appearance-none font-sans cursor-pointer pr-7 py-2 pl-3 text-xs bg-surface-0 border border-border-subtle rounded text-text-1 focus:outline-none",children:[l.jsx("option",{value:"popular",children:"Popular"}),l.jsx("option",{value:"rating",children:"Top Rated"}),l.jsx("option",{value:"newest",children:"Newest"}),l.jsx("option",{value:"name",children:"A-Z"})]}),l.jsx(zn,{size:12,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-4 pointer-events-none"})]}),l.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0",children:t.length})]}),l.jsx("div",{className:"mt-4 grid gap-3",style:{gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))"},children:s?Array.from({length:8}).map((b,y)=>l.jsx(cS,{},y)):t.map(b=>l.jsx(w_,{skill:b,onClick:g},b.id))}),!s&&t.length===0&&l.jsx("div",{className:"text-center py-16 text-text-4 font-sans text-sm",children:"No skills found."})]})})}function LX(){const[t,n]=v.useState([]),[s,r]=v.useState(!0),[o,u]=v.useState(""),[d,O]=v.useState(null),[h,p]=v.useState(!1),x=()=>{r(!0),K.get(`/integrations/registry?search=${encodeURIComponent(o)}`).then(y=>n(y.integrations||y.items||(Array.isArray(y)?y:[]))).catch(()=>n([])).finally(()=>r(!1))};v.useEffect(()=>{x()},[o]);function g(y){O(y),p(!0)}function b(){p(!1),O(null),x()}return l.jsxs(ma,{className:"h-full",children:[l.jsxs("div",{className:"px-5 py-4",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("div",{className:"w-72",children:l.jsx(uS,{value:o,onChange:u,placeholder:"Search integrations..."})}),l.jsx("div",{className:"flex-1"}),l.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0",children:t.length})]}),l.jsx("div",{className:"mt-4 grid gap-3",style:{gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))"},children:s?Array.from({length:6}).map((y,Q)=>l.jsx(cS,{},Q)):t.map(y=>l.jsx(T_,{item:y,onClick:()=>g(y)},y.id))}),!s&&t.length===0&&l.jsx("div",{className:"text-center py-16 text-text-4 font-sans text-sm",children:"No integrations found."})]}),l.jsx(UX,{integration:d,open:h,onClose:b})]})}function DX(){const t=D(k=>k.marketplaceAuthenticated),n=D(k=>k.marketplaceLogin),[s,r]=v.useState([]),[o,u]=v.useState([]),[d,O]=v.useState(!0),[h,p]=v.useState(null),x=ls(),g=v.useRef(null),b=async()=>{const k=await K.get("/skills/installed");u(Array.isArray(k)?k:k.skills||[])};v.useEffect(()=>{O(!0),Promise.all([t?K.get("/auth/purchases").then(k=>k.purchases||[]).catch(()=>[]):Promise.resolve([]),K.get("/skills/installed").then(k=>Array.isArray(k)?k:k.skills||[]).catch(()=>[])]).then(([k,j])=>{r(k),u(j)}).finally(()=>O(!1))},[t]);async function y(k){p(k.id);try{await K.post(`/skills/${k.id}/update`),x.success(`${k.name||k.id} updated`),await b()}catch(j){x.error("Update failed",j.message)}p(null)}async function Q(k){p(k.id);try{await K.delete(`/skills/${k.id}`),x.success(`${k.name||k.id} uninstalled`),await b()}catch(j){x.error("Uninstall failed",j.message)}p(null)}async function w(k){var z;const j=(z=k.target.files)==null?void 0:z[0];if(j){try{const N=await j.text(),X=j.name.replace(/\.md$/i,"");await K.post("/skills/import",{name:X,content:N}),x.success(`Imported "${X}"`),await b()}catch(N){x.error("Import failed",N.message)}k.target.value=""}}return d?l.jsx("div",{className:"p-5 space-y-3",children:[...Array(4)].map((k,j)=>l.jsx(on,{className:"h-14 rounded-md"},j))}):l.jsx(ma,{className:"h-full",children:l.jsxs("div",{className:"px-5 py-4 space-y-6",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("input",{ref:g,type:"file",accept:".md",onChange:w,className:"hidden"}),l.jsxs(ge,{variant:"secondary",size:"md",onClick:()=>{var k;return(k=g.current)==null?void 0:k.click()},className:"gap-1.5",children:[l.jsx(AN,{size:13}),"Import .md Skill"]}),l.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"Drop a markdown skill file to install locally"})]}),t&&s.length>0&&l.jsxs("div",{children:[l.jsxs("h3",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider mb-3 flex items-center gap-1.5",children:[l.jsx(TO,{size:12}),"Purchases (",s.length,")"]}),l.jsx("div",{className:"space-y-1.5",children:s.map(k=>{var j,z;return l.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-1 border border-border-subtle",children:[l.jsx("div",{className:"w-8 h-8 rounded-md bg-accent/10 flex items-center justify-center text-sm flex-shrink-0",children:k.skill_icon||((z=(j=k.skill_name)==null?void 0:j[0])==null?void 0:z.toUpperCase())||"?"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:k.skill_name||k.skill_id}),l.jsxs("div",{className:"text-2xs text-text-4 font-sans",children:["$",(k.amount||0).toFixed(2)," · ",vt(k.created_at)]})]}),l.jsx(ze,{variant:"success",className:"text-2xs flex-shrink-0",children:"Owned"})]},k.id||k.skill_id)})})]}),t&&s.length===0&&l.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[l.jsx(TO,{size:20,className:"mx-auto text-text-4 mb-2"}),l.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No purchases yet"})]}),!t&&l.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[l.jsx(TO,{size:20,className:"mx-auto text-text-4 mb-2"}),l.jsx("p",{className:"text-xs text-text-2 font-sans mb-3",children:"Sign in to see your purchases"}),l.jsxs(ge,{variant:"primary",size:"sm",onClick:n,className:"gap-1.5 mx-auto",children:[l.jsx(ah,{size:12})," Sign in"]})]}),l.jsxs("div",{children:[l.jsxs("h3",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider mb-3 flex items-center gap-1.5",children:[l.jsx(Db,{size:12}),"Installed (",o.length,")"]}),o.length===0?l.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[l.jsx(xi,{size:20,className:"mx-auto text-text-4 mb-2"}),l.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No skills installed — browse the Skills tab or import a .md file"})]}):l.jsx("div",{className:"space-y-1.5",children:o.map(k=>{var j,z;return l.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-1 border border-border-subtle group",children:[l.jsx("div",{className:"w-8 h-8 rounded-md bg-accent/10 flex items-center justify-center text-sm flex-shrink-0",children:k.icon||((z=(j=k.name)==null?void 0:j[0])==null?void 0:z.toUpperCase())||"?"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:k.name||k.id}),l.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:k.description||k.category||"local skill"})]}),l.jsxs("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[l.jsx("button",{onClick:()=>y(k),disabled:h===k.id,title:"Pull latest version",className:"p-1.5 rounded text-text-3 hover:text-accent hover:bg-accent/10 cursor-pointer transition-colors disabled:opacity-50",children:l.jsx(Cn,{size:12,className:h===k.id?"animate-spin":""})}),l.jsx("button",{onClick:()=>Q(k),disabled:h===k.id,title:"Uninstall",className:"p-1.5 rounded text-text-3 hover:text-error hover:bg-error/10 cursor-pointer transition-colors disabled:opacity-50",children:l.jsx(_n,{size:12})})]}),l.jsx(ze,{variant:"accent",className:"text-2xs flex-shrink-0",children:"Installed"})]},k.id)})})]})]})})}function WX(){const t=D(o=>o.marketplaceAuthenticated),n=D(o=>o.marketplaceUser),s=D(o=>o.marketplaceLogin),r=D(o=>o.marketplaceLogout);return t?l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 rounded bg-surface-3 border border-border-subtle",children:[l.jsx("div",{className:"w-4 h-4 rounded-full bg-accent/20 flex items-center justify-center",children:l.jsx(ev,{size:9,className:"text-accent"})}),l.jsx("span",{className:"text-xs text-text-0 font-sans font-medium max-w-[120px] truncate",children:(n==null?void 0:n.displayName)||(n==null?void 0:n.id)||"Account"})]}),l.jsx("button",{onClick:r,className:"flex items-center gap-1 px-2 py-1.5 rounded text-xs text-text-3 hover:text-text-0 hover:bg-surface-3 font-sans cursor-pointer transition-colors",children:l.jsx(Vb,{size:11})})]}):l.jsxs("button",{onClick:s,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold font-sans text-text-0 bg-accent/15 border border-accent/25 rounded hover:bg-accent/25 cursor-pointer transition-colors",children:[l.jsx(ah,{size:12}),"Sign in"]})}function BX(){const[t,n]=v.useState("skills"),s=[{id:"skills",label:"Skills",icon:Kr},{id:"integrations",label:"Integrations",icon:Wb},{id:"library",label:"My Library",icon:Db}];return l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsx("div",{className:"flex-shrink-0 bg-surface-1 border-b border-border-subtle",children:l.jsxs("div",{className:"flex items-center px-5 h-11",children:[l.jsx("div",{className:"flex items-center",children:s.map(r=>{const o=r.icon;return l.jsxs("button",{onClick:()=>n(r.id),className:`flex items-center gap-1.5 px-3 py-2.5 text-xs font-semibold font-sans cursor-pointer select-none border-b-2 -mb-px transition-colors ${t===r.id?"border-accent text-text-0":"border-transparent text-text-3 hover:text-text-1"}`,children:[l.jsx(o,{size:12}),r.label]},r.id)})}),l.jsx("div",{className:"flex-1"}),l.jsx(WX,{})]})}),l.jsxs("div",{className:"flex-1 min-h-0",children:[t==="skills"&&l.jsx(GX,{}),t==="integrations"&&l.jsx(LX,{}),t==="library"&&l.jsx(DX,{})]})]})}function HX(){const t=D(u=>u.teams),n=D(u=>u.agents),s=D(u=>u.activeTeamId),r=D(u=>u.deleteTeam),o=D(u=>u.addToast);return t.length===0?l.jsx("div",{className:"flex-1 flex items-center justify-center",children:l.jsxs("div",{className:"text-center space-y-2",children:[l.jsx(yi,{size:28,className:"mx-auto text-text-4"}),l.jsx("p",{className:"text-xs font-sans text-text-3",children:"No teams yet"}),l.jsx("p",{className:"text-2xs font-sans text-text-4",children:"Teams are created when you spawn agents or launch a planner"})]})}):l.jsx("div",{className:"flex-1 overflow-y-auto",children:l.jsx("div",{className:"p-4 space-y-3",children:t.map(u=>{const d=n.filter(y=>y.teamId===u.id),O=d.filter(y=>y.status==="running"||y.status==="starting"),h=d.filter(y=>y.status==="completed"),p=d.filter(y=>y.status==="crashed"),x=d.reduce((y,Q)=>y+(Q.tokensUsed||0),0),g=d.reduce((y,Q)=>y+(Q.costUsd||0),0),b=u.id===s;return l.jsxs("div",{className:re("rounded-md border bg-surface-1 overflow-hidden transition-colors",b?"border-accent/30":"border-border-subtle"),children:[l.jsxs("div",{className:"px-4 py-3 flex items-center gap-3",children:[l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-sm font-semibold text-text-0 font-sans",children:u.name}),b&&l.jsx(ze,{variant:"accent",className:"text-2xs",children:"Active"})]}),u.workingDir&&l.jsxs("div",{className:"flex items-center gap-1 mt-0.5",children:[l.jsx(Mb,{size:10,className:"text-text-4"}),l.jsx("span",{className:"text-2xs font-mono text-text-3 truncate",children:u.workingDir})]})]}),l.jsx("button",{onClick:()=>{if(d.some(y=>y.status==="running")){o("error","Stop running agents first");return}r(u.id)},className:"p-1.5 text-text-4 hover:text-danger rounded transition-colors cursor-pointer",title:"Delete team",children:l.jsx(_n,{size:13})})]}),l.jsxs("div",{className:"px-4 py-2.5 border-t border-border-subtle bg-surface-0 flex items-center gap-4",children:[l.jsx(kl,{label:"Agents",value:d.length}),l.jsx(kl,{label:"Running",value:O.length,color:O.length>0?"text-success":void 0}),l.jsx(kl,{label:"Done",value:h.length}),l.jsx(kl,{label:"Crashed",value:p.length,color:p.length>0?"text-danger":void 0}),l.jsx("div",{className:"flex-1"}),l.jsx(kl,{label:"Tokens",value:Ke(x)}),g>0&&l.jsx(kl,{label:"Cost",value:Si(g)})]}),d.length>0&&l.jsx("div",{className:"border-t border-border-subtle",children:d.map(y=>l.jsxs("div",{className:"flex items-center gap-2 px-4 py-1.5 border-b border-border-subtle last:border-b-0",children:[l.jsx(zs,{status:y.status,size:"sm"}),l.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:y.name}),l.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase",children:y.role}),l.jsx("div",{className:"flex-1"}),l.jsx("span",{className:"text-2xs font-mono text-text-2 tabular-nums",children:Ke(y.tokensUsed||0)})]},y.id))})]},u.id)})})})}function kl({label:t,value:n,color:s}){return l.jsxs("div",{className:"text-center",children:[l.jsx("div",{className:re("text-xs font-mono tabular-nums",s||"text-text-1"),children:n}),l.jsx("div",{className:"text-2xs font-mono text-text-4 uppercase tracking-wider",children:t})]})}function IX(){const t=D(r=>r.pendingApprovals),n=D(r=>r.approveRequest),s=D(r=>r.rejectRequest);return t.length===0?null:l.jsxs("div",{className:"px-4 pt-4 space-y-2",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[l.jsx(vi,{size:12,className:"text-warning"}),l.jsxs("span",{className:"text-2xs font-mono text-warning uppercase tracking-wider",children:["Pending (",t.length,")"]})]}),t.map(r=>{var o,u,d;return l.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-md bg-warning/5 border border-warning/20",children:[l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"text-xs text-text-0 font-sans font-medium truncate",children:[r.agentName,": ",((o=r.action)==null?void 0:o.description)||((u=r.action)==null?void 0:u.type)||"action"]}),((d=r.action)==null?void 0:d.filePath)&&l.jsx("div",{className:"text-2xs font-mono text-text-3 truncate mt-0.5",children:r.action.filePath}),l.jsx("div",{className:"text-2xs text-text-4 font-mono mt-0.5",children:vt(r.requestedAt)})]}),l.jsxs("div",{className:"flex gap-1.5 flex-shrink-0",children:[l.jsxs(ge,{variant:"primary",size:"sm",onClick:()=>n(r.id),className:"h-7 px-2.5 gap-1 text-2xs",children:[l.jsx(Kb,{size:10})," Approve"]}),l.jsxs(ge,{variant:"danger",size:"sm",onClick:()=>s(r.id),className:"h-7 px-2.5 gap-1 text-2xs",children:[l.jsx(wN,{size:10})," Reject"]})]})]},r.id)})]})}function FX(){const t=D(h=>h.resolvedApprovals),[n,s]=v.useState([]),[r,o]=v.useState(!0);v.useEffect(()=>{const h=setInterval(u,4e3);return u(),()=>clearInterval(h)},[]);async function u(){try{const h=await K.get("/pm/history");s(h.history||h||[])}catch{}o(!1)}const d=new Set,O=[...t,...n].filter(h=>{const p=h.id||`${h.agentName}-${h.timestamp}`;return d.has(p)?!1:(d.add(p),!0)});return l.jsxs("div",{className:"flex-1 overflow-y-auto",children:[l.jsx(IX,{}),l.jsxs("div",{className:"p-4 space-y-1.5",children:[r&&O.length===0&&l.jsx("div",{className:"text-center py-12 text-text-4 font-mono text-xs",children:"Loading..."}),!r&&O.length===0&&l.jsxs("div",{className:"text-center py-12",children:[l.jsx(Ps,{size:24,className:"mx-auto mb-2 text-text-4"}),l.jsx("p",{className:"text-xs font-sans text-text-3",children:"No approval history"}),l.jsx("p",{className:"text-2xs text-text-4 font-sans mt-1",children:"Approvals appear when agents use Auto permission mode"})]}),O.map((h,p)=>{var g;const x=h.status==="approved"||h.verdict==="approved";return l.jsxs("div",{className:"flex items-center gap-2.5 px-3 py-2 rounded-md bg-surface-0 border border-border-subtle",children:[x?l.jsx(Ps,{size:12,className:"text-success flex-shrink-0"}):l.jsx(Zb,{size:12,className:"text-danger flex-shrink-0"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"text-xs text-text-1 font-sans truncate",children:[l.jsx("span",{className:"font-medium text-text-0",children:h.agentName}),l.jsx("span",{className:"text-text-3 mx-1",children:"·"}),l.jsx("span",{children:((g=h.action)==null?void 0:g.description)||h.action||"action"})]}),h.reason&&l.jsx("div",{className:"text-2xs text-text-3 font-sans truncate mt-0.5",children:h.reason})]}),l.jsx("span",{className:"text-2xs font-mono text-text-4 flex-shrink-0",children:vt(h.resolvedAt||h.timestamp)})]},h.id||p)})]})]})}function KX(){const[t,n]=v.useState([]),[s,r]=v.useState(!0),o=ls();v.useEffect(()=>{const O=setInterval(u,1e4);return u(),()=>clearInterval(O)},[]);async function u(){try{const O=await K.get("/schedules");n(O.schedules||O||[])}catch{}r(!1)}async function d(O,h){try{await K.post(`/schedules/${O}/${h?"disable":"enable"}`),u()}catch(p){o.error("Failed to toggle schedule",p.message)}}return l.jsx("div",{className:"flex-1 overflow-y-auto",children:l.jsxs("div",{className:"p-4 space-y-2",children:[s&&t.length===0&&l.jsx("div",{className:"text-center py-12 text-text-4 font-mono text-xs",children:"Loading..."}),!s&&t.length===0&&l.jsxs("div",{className:"text-center py-12",children:[l.jsx(vc,{size:24,className:"mx-auto mb-2 text-text-4"}),l.jsx("p",{className:"text-xs font-sans text-text-3",children:"No schedules configured"}),l.jsx("p",{className:"text-2xs text-text-4 font-sans mt-1",children:"Use the CLI to create agent schedules"})]}),t.map(O=>l.jsxs("div",{className:"rounded-md border border-border-subtle bg-surface-0 overflow-hidden",children:[l.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans",children:O.name}),l.jsx(ze,{variant:O.enabled?"success":"default",className:"text-2xs",children:O.enabled?"Active":"Paused"})]}),l.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[l.jsx("span",{className:"text-2xs font-mono text-text-2",children:O.cron}),l.jsx("span",{className:"text-2xs text-text-4",children:"·"}),l.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase",children:O.role}),O.teamId&&l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"text-2xs text-text-4",children:"·"}),l.jsx("span",{className:"text-2xs font-sans text-text-3",children:O.teamName||O.teamId})]})]}),O.prompt&&l.jsx("div",{className:"text-2xs font-sans text-text-4 mt-1 truncate",children:O.prompt})]}),l.jsx(ge,{variant:"secondary",size:"sm",onClick:()=>d(O.id,O.enabled),className:"h-7 px-2.5 gap-1 text-2xs",children:O.enabled?l.jsxs(l.Fragment,{children:[l.jsx(tN,{size:10})," Pause"]}):l.jsxs(l.Fragment,{children:[l.jsx(rN,{size:10})," Enable"]})})]}),O.lastRunAt&&l.jsxs("div",{className:"px-4 py-1.5 border-t border-border-subtle bg-surface-1 text-2xs font-mono text-text-4",children:["Last run: ",vt(O.lastRunAt),O.nextRunAt&&l.jsxs("span",{className:"ml-3",children:["Next: ",vt(O.nextRunAt)]})]})]},O.id))]})})}function JX(){return l.jsxs(nS,{defaultValue:"dashboard",className:"flex flex-col h-full",children:[l.jsxs("div",{className:"px-4 pt-3 bg-surface-1 border-b border-border",children:[l.jsx("div",{className:"flex items-center gap-4 mb-0",children:l.jsx("h2",{className:"text-xs font-semibold text-text-0 font-sans tracking-wide uppercase",children:"Management"})}),l.jsxs(aS,{className:"border-b-0",children:[l.jsxs(_l,{value:"dashboard",className:"inline-flex items-center gap-1.5",children:[l.jsx(PT,{size:12}),"Teams"]}),l.jsxs(_l,{value:"approvals",className:"inline-flex items-center gap-1.5",children:[l.jsx(RT,{size:12}),"Approvals"]}),l.jsxs(_l,{value:"schedules",className:"inline-flex items-center gap-1.5",children:[l.jsx(vc,{size:12}),"Schedules"]})]})]}),l.jsx(Xl,{value:"dashboard",className:"flex-1 min-h-0",children:l.jsx(HX,{})}),l.jsx(Xl,{value:"approvals",className:"flex-1 min-h-0",children:l.jsx(FX,{})}),l.jsx(Xl,{value:"schedules",className:"flex-1 min-h-0",children:l.jsx(KX,{})})]})}const eA={code:"Code",general:"General"},tA={light:"text-success",medium:"text-accent",heavy:"text-warning"};function nA(t){return t<1?`${Math.round(t*1024)} MB`:`${t} GB`}function LS({hardware:t}){if(!t)return null;const{totalRamGb:n,gpu:s,isAppleSilicon:r}=t;return l.jsxs("div",{className:"flex items-center gap-3 bg-surface-0 rounded-lg border border-border-subtle px-3 py-2.5",children:[l.jsx(sh,{size:14,className:"text-text-3 flex-shrink-0"}),l.jsx("div",{className:"flex-1 min-w-0",children:l.jsxs("div",{className:"flex items-center gap-2 text-xs font-sans",children:[l.jsxs("span",{className:"text-text-0 font-semibold",children:[n," GB RAM"]}),s&&l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"text-text-4",children:"·"}),l.jsx("span",{className:"text-text-2",children:s.name})]}),r&&l.jsx(ze,{variant:"accent",className:"text-2xs",children:"Unified Memory"})]})})]})}function aA({onRecheck:t}){const[n,s]=v.useState(null),[r,o]=v.useState(!1),[u,d]=v.useState(!1),[O,h]=v.useState(!1),p=D(X=>X.addToast);v.useEffect(()=>{K.post("/providers/ollama/check").then(s).catch(()=>{})},[]);async function x(){o(!0);try{const X=await K.post("/providers/ollama/check");s(X),X.installed&&X.serverRunning?(p("success","Ollama is ready!"),t()):X.installed?p("info","Ollama installed — server needs to start"):p("info","Ollama not found — install and try again")}catch{}o(!1)}async function g(){d(!0);try{if((await K.post("/providers/ollama/serve")).ok){p("success","Ollama server started!");let G=!1;for(let R=0;R<5;R++){await new Promise(T=>setTimeout(T,2e3));const _=await K.post("/providers/ollama/check");if(s(_),_.serverRunning){G=!0;break}}G&&t()}}catch(X){p("error","Could not start server",X.message)}d(!1)}function b(X){navigator.clipboard.writeText(X),h(!0),setTimeout(()=>h(!1),2e3)}if(!n)return l.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Loading..."});const{hardware:y,install:Q,requirements:w,installed:k,serverRunning:j}=n,z=y.totalRamGb>=w.minRAM,N=y.recommended;return l.jsxs("div",{className:"space-y-3 p-3",children:[l.jsx(LS,{hardware:y}),z?l.jsxs("div",{className:"flex items-start gap-2 bg-success/8 border border-success/20 rounded-lg px-3 py-2.5",children:[l.jsx(Qt,{size:14,className:"text-success flex-shrink-0 mt-0.5"}),l.jsxs("div",{className:"text-xs font-sans",children:[l.jsx("span",{className:"text-success font-semibold",children:"Your system is ready."}),l.jsx("span",{className:"text-text-2 ml-1",children:N.code?`Recommended: ${N.code}`:`${y.totalRamGb} GB RAM available`})]})]}):l.jsxs("div",{className:"flex items-start gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[l.jsx(Oa,{size:14,className:"text-warning flex-shrink-0 mt-0.5"}),l.jsxs("div",{className:"text-xs font-sans text-text-2",children:[l.jsxs("span",{className:"text-warning font-semibold",children:[y.totalRamGb," GB RAM detected."]})," ","Minimum ",w.minRAM," GB needed. Smallest models may still work."]})]}),k&&!j&&l.jsxs("div",{className:"space-y-2",children:[l.jsxs("div",{className:"flex items-start gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[l.jsx(Oa,{size:14,className:"text-warning flex-shrink-0 mt-0.5"}),l.jsxs("div",{className:"text-xs font-sans text-text-2",children:[l.jsx("span",{className:"text-warning font-semibold",children:"Ollama installed but server not running."})," ","The server needs to be running to pull and use models."]})]}),l.jsxs(ge,{variant:"primary",size:"md",onClick:g,disabled:u,className:"w-full gap-1.5",children:[l.jsx(Xn,{size:12}),u?"Starting...":"Start Ollama Server"]})]}),!k&&l.jsxs("div",{className:"space-y-1.5",children:[l.jsx("p",{className:"text-xs font-semibold text-text-1 font-sans",children:"Install Ollama"}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("code",{className:"flex-1 bg-surface-0 border border-border-subtle rounded-md px-3 py-2 text-xs font-mono text-text-1 truncate",children:Q.command}),l.jsxs(ge,{variant:"secondary",size:"sm",onClick:()=>b(Q.command),className:"h-8 px-2.5 gap-1 flex-shrink-0",children:[O?l.jsx(Qt,{size:12}):l.jsx(Sf,{size:12}),O?"Copied":"Copy"]})]}),Q.alt&&l.jsx("p",{className:"text-2xs text-text-4 font-sans",children:Q.alt})]}),l.jsxs(ge,{variant:"secondary",size:"md",onClick:x,disabled:r,className:"w-full gap-1.5",children:[l.jsx(Cn,{size:12,className:r?"animate-spin":""}),r?"Checking...":k?"Check again":"I installed it — check again"]})]})}function sA({model:t,isInstalled:n,isRecommended:s,canRun:r,onPull:o,onDelete:u,pulling:d}){const O=d===t.id;return l.jsxs("div",{className:re("flex items-center gap-2 px-3 py-2 border-t border-border-subtle transition-colors",!r&&"opacity-40"),children:[n?l.jsx(Qt,{size:12,className:"text-success flex-shrink-0"}):l.jsx("div",{className:"w-3"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx("span",{className:"text-xs font-mono text-text-1 truncate",children:t.name}),s&&l.jsx(Jb,{size:10,className:"text-warning flex-shrink-0"})]}),l.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[l.jsx("span",{className:re("text-2xs font-semibold font-sans",tA[t.tier]),children:t.tier}),l.jsx("span",{className:"text-2xs text-text-4 font-sans",children:nA(t.sizeGb)}),l.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:["· ",t.ramGb," GB RAM"]})]})]}),n?l.jsx("button",{onClick:()=>u(t.id),className:"p-1.5 text-text-4 hover:text-danger rounded transition-colors cursor-pointer",title:"Remove model",children:l.jsx(_n,{size:12})}):r?l.jsx(ge,{variant:"secondary",size:"sm",onClick:()=>o(t.id),disabled:!!d,className:"h-7 px-2 text-2xs gap-1",children:O?l.jsxs(l.Fragment,{children:[l.jsx(Cn,{size:10,className:"animate-spin"})," Pulling..."]}):l.jsxs(l.Fragment,{children:[l.jsx(xi,{size:10})," Pull"]})}):l.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:["Needs ",t.ramGb," GB"]})]})}function lA({onStopped:t}){const[n,s]=v.useState(null),r=D(d=>d.addToast);async function o(){s("stopping");try{(await K.post("/providers/ollama/stop")).ok?(r("info","Ollama server stopped"),t&&t()):r("error","Could not stop server")}catch(d){r("error","Stop failed",d.message)}s(null)}async function u(){s("restarting");try{(await K.post("/providers/ollama/restart")).ok?r("success","Ollama server restarted"):r("error","Restart failed")}catch(d){r("error","Restart failed",d.message)}s(null)}return l.jsxs("div",{className:"flex items-center gap-2 bg-success/8 border border-success/20 rounded-lg px-3 py-2",children:[l.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[l.jsx("span",{className:"absolute inset-0 rounded-full bg-success"}),l.jsx("span",{className:"absolute inset-[-2px] rounded-full bg-success opacity-20 animate-pulse"})]}),l.jsx("span",{className:"text-xs font-sans text-success font-semibold",children:"Server Running"}),l.jsx("span",{className:"text-2xs font-mono text-text-4",children:":11434"}),l.jsx("div",{className:"flex-1"}),l.jsxs("button",{onClick:u,disabled:!!n,className:"flex items-center gap-1 text-2xs font-sans text-text-3 hover:text-accent cursor-pointer transition-colors disabled:opacity-40",children:[l.jsx(Cn,{size:10,className:n==="restarting"?"animate-spin":""}),n==="restarting"?"Restarting...":"Restart"]}),l.jsxs("button",{onClick:o,disabled:!!n,className:"flex items-center gap-1 text-2xs font-sans text-text-3 hover:text-danger cursor-pointer transition-colors disabled:opacity-40",children:[l.jsx(Oa,{size:10}),n==="stopping"?"Stopping...":"Stop"]})]})}function rA({onModelChange:t}){var T,Y;const[n,s]=v.useState(null),[r,o]=v.useState(null),[u,d]=v.useState("code"),[O,h]=v.useState(!1),[p,x]=v.useState(!1),g=D(M=>M.addToast),b=v.useRef(!1);function y(){K.get("/providers/ollama/models").then(M=>{var ae;s(M),!b.current&&((ae=M.installed)==null?void 0:ae.length)===0&&(b.current=!0,setTimeout(y,2e3))}).catch(()=>{})}v.useEffect(()=>{y()},[]);async function Q(M){o(M);try{await K.post("/providers/ollama/pull",{model:M}),g("success",`Pulled ${M}`),y(),t&&t()}catch(ae){g("error",`Pull failed: ${ae.message}`)}o(null)}async function w(M){try{await K.delete(`/providers/ollama/models/${encodeURIComponent(M)}`),g("info",`Removed ${M}`),y(),t&&t()}catch(ae){g("error",`Delete failed: ${ae.message}`)}}if(!n)return l.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Loading..."});const{installed:k,catalog:j,hardware:z}=n,N=new Set(k.map(M=>M.id)),X=z.totalRamGb,G=[(T=z.recommended)==null?void 0:T.code,(Y=z.recommended)==null?void 0:Y.general].filter(Boolean),R=j.filter(M=>M.category===u),_=O?R:R.filter(M=>M.ramGb<=X);return p?l.jsxs("div",{className:"space-y-3 p-3",children:[l.jsxs("div",{className:"flex items-center gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[l.jsx(Oa,{size:14,className:"text-warning flex-shrink-0"}),l.jsxs("span",{className:"text-xs font-sans text-text-2",children:[l.jsx("span",{className:"text-warning font-semibold",children:"Ollama server stopped."})," ","Start it again to pull and use models."]})]}),l.jsxs(ge,{variant:"primary",size:"md",onClick:async()=>{try{(await K.post("/providers/ollama/serve")).ok&&(g("success","Ollama server started!"),x(!1),b.current=!1,setTimeout(y,2e3))}catch(M){g("error","Could not start server",M.message)}},className:"w-full gap-1.5",children:[l.jsx(Xn,{size:12}),"Start Ollama Server"]})]}):l.jsxs("div",{className:"space-y-2 p-3",children:[l.jsx(lA,{onStopped:()=>x(!0)}),l.jsx(LS,{hardware:z}),k.length>0&&l.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-sans text-text-2",children:[l.jsx(nh,{size:12,className:"text-text-3"}),l.jsx("span",{className:"font-semibold",children:k.length})," model",k.length!==1?"s":""," installed"]}),l.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:Object.entries(eA).map(([M,ae])=>l.jsx("button",{onClick:()=>d(M),className:re("flex-1 px-3 py-1.5 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",u===M?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:ae},M))}),l.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-0 overflow-hidden",children:[_.map(M=>l.jsx(sA,{model:M,isInstalled:N.has(M.id),isRecommended:G.includes(M.id),canRun:M.ramGb<=X,onPull:Q,onDelete:w,pulling:r},M.id)),_.length===0&&l.jsxs("div",{className:"px-3 py-4 text-center text-xs text-text-4 font-sans",children:["No ",u," models available for your hardware"]})]}),!O&&R.length>_.length&&l.jsxs("button",{onClick:()=>h(!0),className:"flex items-center gap-1 text-2xs text-text-3 hover:text-accent font-sans cursor-pointer transition-colors",children:[l.jsx(zn,{size:10}),"Show ",R.length-_.length," more (exceed your RAM)"]})]})}function DS({isInstalled:t,onModelChange:n}){const[s,r]=v.useState(!1),[o,u]=v.useState(!1);return v.useEffect(()=>{t?K.post("/providers/ollama/check").then(d=>{r(d.installed&&d.serverRunning),u(!0)}).catch(()=>u(!0)):u(!0)},[t]),o?s?l.jsx(rA,{onModelChange:n}):l.jsx(aA,{onRecheck:()=>{r(!0),n&&n()}}):l.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Checking Ollama..."})}var w0={};function iA({path:t,onNavigate:n}){const s=t.split("/").filter(Boolean);return l.jsxs("div",{className:"flex items-center gap-0.5 min-w-0 overflow-x-auto py-1.5 scrollbar-none",children:[l.jsx("button",{onClick:()=>n("/"),className:"flex-shrink-0 p-1 rounded hover:bg-surface-5 cursor-pointer text-text-3 hover:text-text-0 transition-colors",children:l.jsx(nh,{size:13})}),s.map((r,o)=>{const u="/"+s.slice(0,o+1).join("/"),d=o===s.length-1;return l.jsxs("div",{className:"flex items-center gap-0.5 flex-shrink-0",children:[l.jsx(as,{size:11,className:"text-text-4"}),l.jsx("button",{onClick:()=>n(u),className:re("px-1.5 py-0.5 rounded text-xs font-mono cursor-pointer transition-colors",d?"text-text-0 bg-surface-4 font-medium":"text-text-3 hover:text-text-0 hover:bg-surface-5"),children:r})]},o)})]})}function WS({open:t,onOpenChange:n,currentPath:s,onSelect:r}){const[o,u]=v.useState(s||w0.HOME||"/"),[d,O]=v.useState([]),[h,p]=v.useState(!1),[x,g]=v.useState(null);v.useEffect(()=>{t&&b(s||"/")},[t]);async function b(k){p(!0),g(null);try{const j=await K.get(`/browse-system?path=${encodeURIComponent(k)}`);u(j.current||k),O(j.dirs||[])}catch(j){g(j.message),O([])}p(!1)}function y(){const k=o==="/"?"/":o.split("/").slice(0,-1).join("/")||"/";b(k)}function Q(){b(w0.HOME||"/Users")}function w(){r(o),n(!1)}return l.jsx(Ch,{open:t,onOpenChange:n,children:l.jsx(_h,{title:"Select Working Directory",description:"Choose a directory for this agent to work in",className:"max-w-[520px]",children:l.jsxs("div",{className:"px-5 py-4 space-y-3",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("button",{onClick:y,disabled:o==="/",className:"p-1.5 rounded-md bg-surface-4 border border-border text-text-2 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed",children:l.jsx(j$,{size:14})}),l.jsx("button",{onClick:Q,className:"p-1.5 rounded-md bg-surface-4 border border-border text-text-2 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer",children:l.jsx(wT,{size:14})}),l.jsx("div",{className:"flex-1 min-w-0 bg-surface-0 rounded-md border border-border-subtle px-2",children:l.jsx(iA,{path:o,onNavigate:b})})]}),l.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle overflow-hidden",children:l.jsxs("div",{className:"max-h-[340px] overflow-y-auto",children:[h&&l.jsx("div",{className:"flex items-center justify-center py-8",children:l.jsx(Ct,{size:18,className:"text-text-3 animate-spin"})}),x&&l.jsx("div",{className:"px-4 py-6 text-center",children:l.jsx("p",{className:"text-xs text-danger font-sans",children:x})}),!h&&!x&&d.length===0&&l.jsx("div",{className:"px-4 py-6 text-center",children:l.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No subdirectories"})}),!h&&!x&&d.map(k=>l.jsxs("button",{onClick:()=>b(k.path),className:re("w-full flex items-center gap-2.5 px-3.5 py-2 text-left cursor-pointer","hover:bg-surface-4 transition-colors border-b border-border-subtle last:border-0"),children:[k.hasChildren?l.jsx(fT,{size:15,className:"text-warning flex-shrink-0"}):l.jsx(li,{size:15,className:"text-text-3 flex-shrink-0"}),l.jsx("span",{className:"text-sm text-text-0 font-sans truncate flex-1",children:k.name}),k.hasChildren&&l.jsx(as,{size:12,className:"text-text-4 flex-shrink-0"})]},k.path))]})}),l.jsxs("div",{className:"flex items-center gap-3 bg-surface-4/50 rounded-lg px-3.5 py-2.5 border border-border-subtle",children:[l.jsx(li,{size:16,className:"text-accent flex-shrink-0"}),l.jsx("span",{className:"text-xs font-mono text-text-1 truncate flex-1",children:o})]}),l.jsxs("div",{className:"flex justify-end gap-2",children:[l.jsx(ge,{variant:"ghost",size:"md",onClick:()=>n(!1),children:"Cancel"}),l.jsxs(ge,{variant:"primary",size:"md",onClick:w,className:"gap-1.5",children:[l.jsx(Qt,{size:14})," Select Folder"]})]})]})})})}function BS({children:t,...n}){return l.jsx(ZS,{...n,children:t})}function HS({children:t,className:n,title:s,side:r="right",width:o=400,...u}){return l.jsxs(ES,{children:[l.jsx(qS,{className:"fixed inset-0 z-40 bg-black/30"}),l.jsxs(MS,{className:re("fixed top-0 z-50 h-full overflow-y-auto","bg-surface-1 border-l border-border shadow-2xl","data-[state=open]:animate-in data-[state=closed]:animate-out",r==="right"&&"right-0 data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",r==="left"&&"left-0 data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",n),style:{width:o},...u,children:[s&&l.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border-subtle sticky top-0 bg-surface-1 z-10",children:[l.jsx(YS,{className:"text-base font-semibold text-text-0 font-sans",children:s}),l.jsx(VS,{className:"p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer",children:l.jsx(jt,{size:16})})]}),l.jsx(US,{className:"sr-only",children:"Panel"}),t]})]})}function oA({value:t,onChange:n}){return l.jsx("button",{onClick:()=>n(!t),className:re("w-9 h-5 rounded-full p-0.5 transition-colors cursor-pointer",t?"bg-accent":"bg-surface-5"),children:l.jsx("div",{className:re("w-4 h-4 rounded-full bg-white shadow-sm transition-transform",t?"translate-x-4":"translate-x-0")})})}function cA({user:t}){const[n,s]=v.useState(!1),r=(t==null?void 0:t.avatar)||(t==null?void 0:t.picture)||(t==null?void 0:t.photoURL)||(t==null?void 0:t.photo);return r&&!n?l.jsx("img",{src:r,alt:"",className:"w-6 h-6 rounded-full",referrerPolicy:"no-referrer",crossOrigin:"anonymous",onError:()=>s(!0)}):l.jsx("div",{className:"w-6 h-6 rounded-full bg-accent/10 flex items-center justify-center",children:l.jsx(ev,{size:12,className:"text-accent"})})}function uA({provider:t,onKeyChange:n}){var k,j,z;const[s,r]=v.useState(!1),[o,u]=v.useState(""),[d,O]=v.useState(!1),[h,p]=v.useState(!1),x=D(N=>N.addToast),g=t.authType==="local",b=t.authType==="subscription",y=g||b?t.installed:t.hasKey;async function Q(){if(o.trim())try{await K.post(`/credentials/${t.id}`,{key:o.trim()}),x("success",`API key set for ${t.name}`),u(""),r(!1),n&&n()}catch(N){x("error","Failed to set key",N.message)}}async function w(){try{await K.delete(`/credentials/${t.id}`),x("info",`Removed ${t.name} key`),n&&n()}catch(N){x("error","Remove failed",N.message)}}if(g){const N=((j=(k=t.models)==null?void 0:k.filter(G=>!G.disabled))==null?void 0:j.length)||0,X=()=>D.getState().setActiveView("models");return l.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[l.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[l.jsx(zs,{status:y&&N>0?"running":"crashed",size:"sm"}),l.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:t.name}),l.jsx("div",{className:"flex-1"}),y&&N>0?l.jsxs(ze,{variant:"success",className:"text-2xs gap-1",children:[l.jsx(Qt,{size:8})," ",N," models"]}):y?l.jsx(ze,{variant:"warning",className:"text-2xs",children:"No models pulled"}):l.jsx(ze,{variant:"default",className:"text-2xs",children:"Not set up"})]}),l.jsx("div",{className:"flex-1",children:h?l.jsxs(l.Fragment,{children:[l.jsx(DS,{isInstalled:y,onModelChange:n}),l.jsxs("div",{className:"px-4 py-2 border-t border-border-subtle flex gap-2",children:[l.jsx(ge,{variant:"ghost",size:"sm",onClick:()=>p(!1),className:"flex-1 h-7 text-2xs",children:"Back"}),l.jsx(ge,{variant:"secondary",size:"sm",onClick:()=>{p(!1),X()},className:"flex-1 h-7 text-2xs gap-1",children:"Models Tab"})]})]}):l.jsxs("div",{className:"px-4 py-3 flex flex-col h-full",children:[l.jsx("div",{className:"text-xs text-text-3 font-sans flex-1",children:y&&N>0?"Full agentic runtime — tool calling, context rotation, zero cloud cost":y?"Ollama is running. Pull a model to start using local agents.":"Run any open-source model locally — free, private, fully offline. Requires Ollama."}),l.jsxs("div",{className:"flex gap-2 mt-3",children:[y?l.jsxs(ge,{variant:"primary",size:"sm",onClick:()=>p(!0),className:"flex-1 h-7 text-2xs gap-1.5",children:[l.jsx(Ml,{size:11})," ",N>0?"Manage":"Pull Models"]}):l.jsxs(ge,{variant:"primary",size:"sm",onClick:()=>p(!0),className:"flex-1 h-7 text-2xs gap-1.5",children:[l.jsx(Ml,{size:11})," Set Up Ollama"]}),l.jsx(ge,{variant:"secondary",size:"sm",onClick:X,className:"flex-1 h-7 text-2xs gap-1.5",children:"Models Tab"})]})]})})]})}return l.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[l.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[l.jsx(zs,{status:y?"running":"crashed",size:"sm"}),l.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:t.name}),l.jsx("div",{className:"flex-1"}),y?l.jsxs(ze,{variant:"success",className:"text-2xs gap-1",children:[l.jsx(Qt,{size:8})," Ready"]}):l.jsx(ze,{variant:"default",className:"text-2xs",children:b?"Not installed":"No key"})]}),l.jsxs("div",{className:"flex-1 flex flex-col px-4 py-3 min-h-[120px]",children:[((z=t.models)==null?void 0:z.length)>0&&l.jsx("div",{className:"flex flex-wrap gap-1 mb-3",children:t.models.map(N=>l.jsx("span",{className:"px-1.5 py-0.5 rounded bg-surface-4 text-2xs font-mono text-text-3",children:N.name||N.id},N.id))}),b&&y&&!t.hasKey&&!s&&l.jsxs("div",{className:"flex items-center gap-1.5 h-8 px-2.5 bg-accent/8 border border-accent/20 rounded-md text-2xs font-sans text-accent mb-3",children:[l.jsx(Qt,{size:10})," Subscription active"]}),t.hasKey&&!s&&l.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[l.jsxs("div",{className:"flex-1 flex items-center gap-1.5 h-8 px-2.5 bg-success/8 border border-success/20 rounded-md text-2xs font-sans text-success",children:[l.jsx(Qt,{size:10})," API Connected"]}),l.jsx("button",{onClick:()=>{r(!0),O(!1),u("")},className:"text-2xs text-text-4 hover:text-accent cursor-pointer font-sans",children:"Edit"}),l.jsx("button",{onClick:w,className:"text-2xs text-text-4 hover:text-danger cursor-pointer font-sans",children:"Remove"})]}),l.jsx("div",{className:"flex-1"}),s&&l.jsxs("div",{className:"space-y-2.5 pt-1",children:[l.jsxs("div",{children:[l.jsx("label",{className:"text-2xs font-semibold text-text-2 font-sans mb-1.5 block",children:t.hasKey?"Update API Key":`${t.name} API Key`}),l.jsxs("div",{className:"relative",children:[l.jsx("input",{value:o,onChange:N=>u(N.target.value),onKeyDown:N=>N.key==="Enter"&&Q(),type:d?"text":"password",placeholder:"sk-...",className:"w-full h-9 px-3 pr-9 text-xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),l.jsx("button",{onClick:()=>O(!d),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:d?l.jsx(Dc,{size:12}):l.jsx(Es,{size:12})})]})]}),l.jsxs("div",{className:"flex gap-2",children:[l.jsx(ge,{variant:"primary",size:"sm",onClick:Q,disabled:!o.trim(),className:"flex-1 h-8 text-xs",children:"Save Key"}),l.jsx(ge,{variant:"ghost",size:"sm",onClick:()=>{r(!1),u("")},className:"h-8 text-xs px-3",children:"Cancel"})]})]}),!s&&!t.hasKey&&l.jsxs(ge,{variant:b?"secondary":"primary",size:"sm",onClick:()=>{r(!0),O(!1),u("")},className:"w-full h-8 text-2xs gap-1.5 mt-2",children:[l.jsx(ri,{size:11}),b?"Add API key for headless mode":"Add API Key"]})]})]})}function $l({icon:t,label:n,description:s,children:r}){return l.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-1 px-4 py-3.5 flex flex-col gap-2",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("div",{className:"w-6 h-6 rounded bg-accent/8 flex items-center justify-center flex-shrink-0",children:l.jsx(t,{size:12,className:"text-accent"})}),l.jsx("div",{className:"text-[13px] font-medium text-text-0 font-sans leading-tight",children:n})]}),l.jsx("div",{className:"text-2xs text-text-4 font-sans leading-relaxed",children:s}),l.jsx("div",{className:"mt-auto pt-1",children:r})]})}const IS={telegram:rh,discord:gi,slack:Gb},$s={telegram:"Telegram",discord:"Discord",slack:"Slack"},dA={telegram:"Bot token from @BotFather",discord:"Bot token from Developer Portal",slack:"Bot token (xoxb-...)"},OA=["critical","lifecycle","all"];function fA({type:t,open:n,onOpenChange:s}){if(!t)return null;const o={telegram:{title:"Set Up Telegram",icon:rh,intro:"Create a Telegram bot and connect it to Groove in under 2 minutes. No dependencies required.",sections:[{title:"Create Your Bot",steps:[{text:"Open Telegram on any device and search for",link:"https://t.me/BotFather",linkText:"@BotFather"},{text:"Send /newbot to start the setup"},{text:"Choose a display name — we suggest GroovePilot"},{text:'Choose a username (must end in "bot") — e.g. GroovePilot_bot'},{text:"BotFather will reply with your bot token — copy it"}]},{title:"Connect to Groove",steps:[{text:"In Groove Settings > Gateways, click Set Token on the Telegram card"},{text:"Paste your bot token and click Save"},{text:"The gateway will connect automatically"}]},{title:"Link a Chat",steps:[{text:"Open a chat with your new bot in Telegram"},{text:'Send any message (e.g. "hello") — Groove captures the chat ID automatically'},{text:"Click Test in the gateway card to verify"}]},{title:"Commands",note:"All commands use / prefix in Telegram:",commands:["/instruct <team> <msg>","/query <team> <question>","/plan <description>","/log <team>","/brief","/tokens","/status","/agents","/help"]}]},discord:{title:"Set Up Discord",icon:gi,intro:"Create a Discord bot and add it to your server. Requires discord.js (installed automatically with Groove).",sections:[{title:"Create the Application",steps:[{text:"Go to the",link:"https://discord.com/developers/applications",linkText:"Discord Developer Portal"},{text:"Click New Application and name it GroovePilot"},{text:"Go to the Bot tab in the left sidebar"},{text:"Click Reset Token and copy the bot token"}]},{title:"Set Permissions & Invite",steps:[{text:"Go to OAuth2 > URL Generator"},{text:"Under Scopes, check bot"},{text:"Under Bot Permissions, check:"}],scopes:["Send Messages","Read Message History","Embed Links","Use External Emojis"],after:[{text:"Copy the generated URL at the bottom and open it in your browser"},{text:"Select your server and click Authorize"}]},{title:"Enable Message Content Intent",steps:[{text:"Go back to the Bot tab in the Developer Portal"},{text:"Scroll to Privileged Gateway Intents"},{text:"Enable Message Content Intent — required for the bot to read commands"},{text:"Click Save Changes"}]},{title:"Connect to Groove",steps:[{text:"In Groove Settings > Gateways, click Set Token on the Discord card"},{text:"Paste your bot token and click Save"},{text:"Send a message in any channel where the bot is — Groove captures the channel automatically"}]},{title:"Commands",note:"All commands use / prefix in Discord:",commands:["/instruct <team> <msg>","/query <team> <question>","/plan <description>","/log <team>","/brief","/tokens","/status","/agents","/help"]}]},slack:{title:"Set Up Slack",icon:Gb,intro:"Create a Slack app with Socket Mode — no public URL needed. Requires @slack/bolt (installed automatically with Groove).",sections:[{title:"Create the App",steps:[{text:"Go to",link:"https://api.slack.com/apps",linkText:"api.slack.com/apps"},{text:"Click Create New App > From scratch"},{text:"Name it GroovePilot and select your workspace"}]},{title:"Enable Socket Mode",steps:[{text:"In the left sidebar, go to Settings > Socket Mode"},{text:"Toggle Enable Socket Mode to on"},{text:"It will ask you to create an App-Level Token"},{text:'Name it "groove", add the connections:write scope'},{text:"Click Generate — copy the xapp-... token (this is your App Token)"}],important:"Save this token now — you can't view it again after closing the dialog."},{title:"Set Bot Token Scopes",steps:[{text:"Go to Features > OAuth & Permissions"},{text:"Scroll to Bot Token Scopes and add all of these:"}],scopes:["chat:write","channels:read","channels:history","groups:read","groups:history","im:history","app_mentions:read"],after:[{text:"Scroll up and click Install to Workspace"},{text:"Click Allow to grant permissions"},{text:"Copy the Bot User OAuth Token (xoxb-...) — this is your Bot Token"}]},{title:"Enable Events",steps:[{text:"Go to Features > Event Subscriptions"},{text:"Toggle Enable Events to on"},{text:"Under Subscribe to bot events, add:"}],scopes:["message.channels","message.im","app_mention"],after:[{text:"Click Save Changes at the bottom"}]},{title:"Connect to Groove",steps:[{text:"In Groove Settings > Gateways, click Set Token on the Slack card"},{text:"Paste your Bot Token (xoxb-...) in the first field"},{text:"Paste your App Token (xapp-...) in the second field"},{text:"Click Save — Groove will auto-connect"}]},{title:"Link a Channel",steps:[{text:"Invite the bot to a channel: /invite @GroovePilot"},{text:"Select the channel from the dropdown in the gateway card"},{text:"Or @mention the bot — it will auto-capture the channel"},{text:"Click Test to verify"}],important:"For private channels, make sure you added the groups:read scope."},{title:"Commands",note:"In Slack, use plain text commands (no / prefix) or @mention the bot:",commands:["instruct <team> <msg>","query <team> <question>","plan <description>","log <team>","brief","tokens","status","agents","help","@GroovePilot status"]}]}}[t];if(!o)return null;const u=o.icon;return l.jsx(BS,{open:n,onOpenChange:s,children:l.jsx(HS,{title:o.title,width:480,children:l.jsxs("div",{className:"px-5 py-4 space-y-5",children:[l.jsxs("div",{className:"flex items-start gap-3 p-3 bg-accent/5 border border-accent/15 rounded-lg",children:[l.jsx("div",{className:"w-8 h-8 rounded-lg bg-accent/10 flex items-center justify-center flex-shrink-0 mt-0.5",children:l.jsx(u,{size:16,className:"text-accent"})}),l.jsx("p",{className:"text-xs text-text-2 font-sans leading-relaxed",children:o.intro})]}),o.sections.map((d,O)=>{var h;return l.jsxs("div",{children:[l.jsxs("h3",{className:"text-xs font-semibold text-text-0 font-sans mb-2.5 flex items-center gap-2",children:[l.jsx("span",{className:"w-5 h-5 rounded-full bg-accent/10 flex items-center justify-center text-2xs font-bold text-accent",children:O+1}),d.title]}),d.note&&l.jsx("p",{className:"text-2xs text-text-3 font-sans mb-2",children:d.note}),d.steps&&l.jsx("ol",{className:"space-y-2 mb-2",children:d.steps.map((p,x)=>l.jsxs("li",{className:"flex gap-2 text-2xs text-text-2 font-sans leading-relaxed",children:[l.jsxs("span",{className:"text-text-4 font-mono w-4 flex-shrink-0 pt-px",children:[x+1,"."]}),l.jsxs("span",{children:[p.text,p.link&&l.jsxs(l.Fragment,{children:[" ",l.jsxs("a",{href:p.link,target:"_blank",rel:"noopener noreferrer",className:"text-accent hover:underline inline-flex items-center gap-0.5 font-medium",children:[p.linkText,l.jsx(si,{size:9})]})]})]})]},x))}),d.scopes&&l.jsx("div",{className:"flex flex-wrap gap-1.5 mb-2 ml-6",children:d.scopes.map(p=>l.jsx("code",{className:"px-2 py-0.5 rounded bg-surface-4 text-2xs font-mono text-accent",children:p},p))}),d.after&&l.jsx("ol",{className:"space-y-2 mb-2",start:(((h=d.steps)==null?void 0:h.length)||0)+1,children:d.after.map((p,x)=>{var g;return l.jsxs("li",{className:"flex gap-2 text-2xs text-text-2 font-sans leading-relaxed",children:[l.jsxs("span",{className:"text-text-4 font-mono w-4 flex-shrink-0 pt-px",children:[(((g=d.steps)==null?void 0:g.length)||0)+x+1,"."]}),l.jsx("span",{children:p.text})]},x)})}),d.important&&l.jsx("div",{className:"ml-6 p-2 bg-warning/8 border border-warning/20 rounded-md text-2xs text-warning font-sans",children:d.important}),d.commands&&l.jsx("div",{className:"ml-6 p-2.5 bg-surface-0 border border-border-subtle rounded-md space-y-1",children:d.commands.map(p=>l.jsx("code",{className:"block text-2xs font-mono text-text-1",children:p},p))})]},O)}),l.jsxs("a",{href:"https://docs.groovedev.ai/guide/gateways",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-2xs text-accent hover:text-accent/80 font-sans font-medium mt-2",children:[l.jsx(si,{size:10}),"Full documentation at docs.groovedev.ai"]})]})})})}function hA({gateway:t,onRefresh:n}){var se,ie;const[s,r]=v.useState(!1),[o,u]=v.useState(""),[d,O]=v.useState(""),[h,p]=v.useState(!1),[x,g]=v.useState(!1),[b,y]=v.useState(!1),[Q,w]=v.useState([]),[k,j]=v.useState(!1),z=D(W=>W.addToast);v.useEffect(()=>{t.connected&&!t.chatId&&t.type==="slack"&&K.get(`/gateways/${t.id}/channels`).then(W=>w(Array.isArray(W)?W:[])).catch(()=>{})},[t.connected,t.chatId,t.id,t.type]);const N=IS[t.type]||lh,X=t.type==="slack";async function G(){if(o.trim())try{await K.post(`/gateways/${t.id}/credentials`,{key:"bot_token",value:o.trim()}),X&&d.trim()&&await K.post(`/gateways/${t.id}/credentials`,{key:"app_token",value:d.trim()}),z("success","Token saved — connecting..."),u(""),O(""),r(!1);try{await K.post(`/gateways/${t.id}/connect`),z("success",`${$s[t.type]} connected!`)}catch(W){z("error","Token saved but connect failed",W.message)}n()}catch(W){z("error","Failed to save token",W.message)}}async function R(){g(!0);try{await K.post(`/gateways/${t.id}/test`),z("success","Test message sent!")}catch(W){z("error","Test failed",W.message)}g(!1)}async function _(){y(!0);try{t.connected?(await K.post(`/gateways/${t.id}/disconnect`),z("info",`${$s[t.type]} disconnected`)):(await K.post(`/gateways/${t.id}/connect`),z("success",`${$s[t.type]} connected!`)),n()}catch(W){z("error",t.connected?"Disconnect failed":"Connect failed",W.message)}y(!1)}async function T(W){try{await K.patch(`/gateways/${t.id}`,{enabled:W}),n()}catch(P){z("error","Update failed",P.message)}}async function Y(W){try{await K.patch(`/gateways/${t.id}`,{notifications:{preset:W}}),n()}catch(P){z("error","Update failed",P.message)}}async function M(W){try{await K.patch(`/gateways/${t.id}`,{commandPermission:W}),n()}catch(P){z("error","Update failed",P.message)}}async function ae(){try{await K.delete(`/gateways/${t.id}`),z("info",`${$s[t.type]} gateway removed`),n()}catch(W){z("error","Delete failed",W.message)}}const F=((se=t.notifications)==null?void 0:se.preset)||"critical";return l.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[l.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[l.jsx(zs,{status:t.connected?"running":"crashed",size:"sm"}),l.jsx(N,{size:13,className:"text-text-2"}),l.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:$s[t.type]}),l.jsx("div",{className:"flex-1"}),t.connected?l.jsxs(ze,{variant:"success",className:"text-2xs gap-1",children:[l.jsx(c1,{size:8})," Connected"]}):t.enabled?l.jsx(ze,{variant:"warning",className:"text-2xs",children:"Disconnected"}):l.jsx(ze,{variant:"default",className:"text-2xs",children:"Disabled"})]}),l.jsxs("div",{className:"flex-1 flex flex-col px-4 py-3 min-h-[140px]",children:[t.connected&&!s&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"flex items-center gap-1.5 h-8 px-2.5 bg-success/8 border border-success/20 rounded-md text-2xs font-sans text-success mb-3",children:[l.jsx(Qt,{size:10})," Gateway active",t.botUsername&&l.jsxs("span",{className:"text-text-4 ml-1",children:["@",t.botUsername]}),t.botTag&&l.jsx("span",{className:"text-text-4 ml-1",children:t.botTag})]}),l.jsxs("div",{className:"mb-3",children:[l.jsx("label",{className:"text-2xs font-semibold text-text-3 font-sans mb-1.5 block",children:t.type==="slack"?"Channel":"Chat ID"}),t.chatId?l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("code",{className:"flex-1 flex items-center h-7 px-2 bg-surface-0 border border-border-subtle rounded-md text-2xs font-mono text-text-2",children:t.type==="slack"&&Q.length>0?`#${((ie=Q.find(W=>W.id===t.chatId))==null?void 0:ie.name)||t.chatId}`:t.chatId}),l.jsx("button",{onClick:async()=>{try{await K.patch(`/gateways/${t.id}`,{chatId:null}),n()}catch(W){z("error","Failed",W.message)}},className:"text-2xs text-text-4 hover:text-text-1 cursor-pointer font-sans",children:"Change"})]}):t.type==="slack"&&Q.length>0?l.jsxs("select",{onChange:async W=>{if(W.target.value)try{await K.patch(`/gateways/${t.id}`,{chatId:W.target.value}),n()}catch(P){z("error","Failed to set channel",P.message)}},className:"w-full h-7 px-2 text-2xs bg-surface-0 border border-border-subtle rounded-md text-text-0 font-sans focus:outline-none focus:ring-1 focus:ring-accent cursor-pointer",defaultValue:"",children:[l.jsx("option",{value:"",disabled:!0,children:"Select a channel..."}),Q.map(W=>l.jsxs("option",{value:W.id,children:["#",W.name]},W.id))]}):l.jsxs("div",{className:"text-2xs text-warning font-sans",children:[t.type==="slack"?"No channels found — invite the bot to a channel first.":"Send a message to the bot to auto-capture, or enter manually:",l.jsx("input",{placeholder:t.type==="slack"?"C0123456789":"Chat ID",className:"mt-1 w-full h-7 px-2 text-2xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",onKeyDown:async W=>{if(W.key==="Enter"&&W.target.value.trim())try{await K.patch(`/gateways/${t.id}`,{chatId:W.target.value.trim()}),n()}catch(P){z("error","Failed to set channel",P.message)}}})]})]}),l.jsxs("div",{className:"mb-3",children:[l.jsx("label",{className:"text-2xs font-semibold text-text-3 font-sans mb-1.5 block",children:"Notifications"}),l.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:OA.map(W=>l.jsx("button",{onClick:()=>Y(W),className:re("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer capitalize",F===W?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:W},W))})]}),l.jsxs("div",{className:"mb-3",children:[l.jsx("label",{className:"text-2xs font-semibold text-text-3 font-sans mb-1.5 block",children:"Commands"}),l.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:["full","read-only"].map(W=>l.jsx("button",{onClick:()=>M(W),className:re("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer capitalize",(t.commandPermission||"full")===W?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:W==="full"?"Full Access":"Read Only"},W))})]})]}),!t.connected&&!s&&l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"text-xs text-text-3 font-sans mb-2",children:t.enabled?t.hasCredentials?"Tokens saved — click Connect.":"Configure bot token to connect.":"Gateway is disabled."}),!t.hasCredentials&&l.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 text-2xs text-accent hover:text-accent/80 font-sans font-medium cursor-pointer mb-2",children:[l.jsx(yc,{size:11}),"How to set up",l.jsx(si,{size:9})]})]}),l.jsx(fA,{type:t.type,open:k,onOpenChange:j}),l.jsx("div",{className:"flex-1"}),s&&l.jsxs("div",{className:"space-y-2.5 pt-1",children:[l.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 text-2xs text-accent hover:text-accent/80 font-sans font-medium cursor-pointer",children:[l.jsx(yc,{size:11}),"Where do I get these?"]}),l.jsxs("div",{children:[l.jsx("label",{className:"text-2xs font-semibold text-text-2 font-sans mb-1.5 block",children:"Bot Token"}),l.jsxs("div",{className:"relative",children:[l.jsx("input",{value:o,onChange:W=>u(W.target.value),onKeyDown:W=>W.key==="Enter"&&!X&&G(),type:h?"text":"password",placeholder:dA[t.type],className:"w-full h-9 px-3 pr-9 text-xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),l.jsx("button",{onClick:()=>p(!h),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:h?l.jsx(Dc,{size:12}):l.jsx(Es,{size:12})})]})]}),X&&l.jsxs("div",{children:[l.jsx("label",{className:"text-2xs font-semibold text-text-2 font-sans mb-1.5 block",children:"App Token (Socket Mode)"}),l.jsx("input",{value:d,onChange:W=>O(W.target.value),onKeyDown:W=>W.key==="Enter"&&G(),type:h?"text":"password",placeholder:"xapp-...",className:"w-full h-9 px-3 text-xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent"})]}),l.jsxs("div",{className:"flex gap-2",children:[l.jsx(ge,{variant:"primary",size:"sm",onClick:G,disabled:!o.trim(),className:"flex-1 h-8 text-xs",children:"Save Token"}),l.jsx(ge,{variant:"ghost",size:"sm",onClick:()=>{r(!1),u(""),O("")},className:"h-8 text-xs px-3",children:"Cancel"})]})]}),!s&&l.jsxs("div",{className:"flex gap-2 mt-2",children:[!t.connected&&l.jsxs(ge,{variant:"primary",size:"sm",onClick:()=>r(!0),className:"flex-1 h-7 text-2xs gap-1.5",children:[l.jsx(ri,{size:11}),t.enabled?"Set Token":"Configure"]}),t.connected&&l.jsxs(l.Fragment,{children:[l.jsxs(ge,{variant:"secondary",size:"sm",onClick:R,disabled:x,className:"flex-1 h-7 text-2xs gap-1.5",children:[l.jsx(oh,{size:11}),x?"Sending...":"Test"]}),l.jsx(ge,{variant:"secondary",size:"sm",onClick:()=>r(!0),className:"h-7 text-2xs px-2.5",children:l.jsx(ri,{size:11})})]}),l.jsx(ge,{variant:"ghost",size:"sm",onClick:_,disabled:b,className:"h-7 text-2xs px-2.5",title:t.connected?"Disconnect":"Connect",children:t.connected?l.jsx(Wb,{size:11}):l.jsx(c1,{size:11})}),l.jsx(oA,{value:t.enabled,onChange:T}),l.jsx("button",{onClick:ae,className:"text-text-4 hover:text-danger cursor-pointer p-1",title:"Remove gateway",children:l.jsx(_n,{size:11})})]})]})]})}function mA({existingTypes:t,onAdd:n}){const[s,r]=v.useState(!1),o=["telegram","discord","slack"].filter(u=>!t.includes(u));return o.length===0?null:s?l.jsxs("div",{className:"flex flex-col rounded-lg border border-accent/30 bg-surface-1 overflow-hidden min-w-[220px]",children:[l.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[l.jsx(lh,{size:13,className:"text-accent"}),l.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:"Add Gateway"}),l.jsx("div",{className:"flex-1"}),l.jsx("button",{onClick:()=>r(!1),className:"text-text-4 hover:text-text-1 cursor-pointer",children:l.jsx(jt,{size:12})})]}),l.jsx("div",{className:"p-3 space-y-2",children:o.map(u=>{const d=IS[u];return l.jsxs("button",{onClick:()=>{n(u),r(!1)},className:"w-full flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-0 hover:bg-accent/8 border border-border-subtle hover:border-accent/20 cursor-pointer transition-all group",children:[l.jsx(d,{size:14,className:"text-text-3 group-hover:text-accent"}),l.jsx("span",{className:"text-xs font-medium text-text-1 group-hover:text-accent font-sans",children:$s[u]})]},u)})})]}):l.jsxs("button",{onClick:()=>r(!0),className:"flex flex-col items-center justify-center rounded-lg border border-dashed border-border-subtle bg-surface-1/50 hover:bg-surface-1 hover:border-accent/30 min-h-[140px] min-w-[220px] cursor-pointer transition-all group",children:[l.jsx("div",{className:"w-8 h-8 rounded-full bg-accent/8 group-hover:bg-accent/15 flex items-center justify-center mb-2 transition-colors",children:l.jsx(es,{size:14,className:"text-accent"})}),l.jsx("span",{className:"text-2xs font-semibold text-text-3 group-hover:text-text-1 font-sans transition-colors",children:"Add Gateway"})]})}function pA(){const[t,n]=v.useState([]),[s,r]=v.useState(null),[o,u]=v.useState(null),[d,O]=v.useState([]),[h,p]=v.useState(!0),[x,g]=v.useState(!1),b=D(_=>_.addToast),y=D(_=>_.marketplaceUser),Q=D(_=>_.marketplaceAuthenticated),w=D(_=>_.marketplaceLogin),k=D(_=>_.marketplaceLogout);function j(){K.get("/providers").then(_=>n(Array.isArray(_)?_:[])).catch(()=>{})}function z(){K.get("/gateways").then(_=>O(Array.isArray(_)?_:[])).catch(()=>{})}v.useEffect(()=>{Promise.all([K.get("/providers"),K.get("/config"),K.get("/status"),K.get("/gateways")]).then(([_,T,Y,M])=>{n(Array.isArray(_)?_:[]),r(T),u(Y),O(Array.isArray(M)?M:[]),p(!1)}).catch(()=>p(!1))},[]);async function N(_){try{await K.post("/gateways",{type:_}),b("success",`${$s[_]} gateway added`),z()}catch(T){b("error","Failed to add gateway",T.message)}}async function X(_,T){try{const Y=await K.patch("/config",{[_]:T});r(Y)}catch(Y){b("error","Update failed",Y.message)}}if(h)return l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsx("div",{className:"h-12 bg-surface-1 border-b border-border"}),l.jsxs("div",{className:"flex-1 p-4 space-y-4",children:[l.jsx("div",{className:"grid grid-cols-4 gap-3",children:[...Array(4)].map((_,T)=>l.jsx(on,{className:"h-40 rounded-lg"},T))}),l.jsx("div",{className:"grid grid-cols-3 gap-3",children:[...Array(6)].map((_,T)=>l.jsx(on,{className:"h-28 rounded-lg"},T))})]})]});const G=t.filter(_=>_.authType==="local"||_.authType==="subscription"?_.installed:_.hasKey).length,R=(s==null?void 0:s.rotationThreshold)||0;return l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsxs("div",{className:"flex items-center gap-4 px-4 py-2.5 bg-surface-1 border-b border-border flex-shrink-0",children:[l.jsx("h2",{className:"text-sm font-semibold text-text-0 font-sans",children:"Settings"}),l.jsx("div",{className:"flex-1"}),l.jsxs("div",{className:"flex items-center gap-4 text-2xs text-text-3 font-sans",children:[(o==null?void 0:o.version)&&l.jsxs("span",{children:["v",o.version]}),(o==null?void 0:o.port)&&l.jsxs("span",{children:[":",o.port]}),(o==null?void 0:o.uptime)>0&&l.jsxs("span",{children:["Up ",Hc(o.uptime)]})]}),l.jsx("div",{className:"w-px h-4 bg-border-subtle"}),Q?l.jsxs("div",{className:"flex items-center gap-2.5",children:[l.jsx(cA,{user:y}),l.jsx("span",{className:"text-xs font-medium text-text-0 font-sans",children:(y==null?void 0:y.displayName)||"User"}),l.jsxs("button",{onClick:k,className:"text-2xs text-text-4 hover:text-text-1 cursor-pointer font-sans flex items-center gap-1",children:[l.jsx(Vb,{size:10})," Sign out"]})]}):l.jsxs(ge,{variant:"ghost",size:"sm",onClick:w,className:"h-7 text-2xs gap-1.5 text-text-3",children:[l.jsx(ah,{size:11})," Sign in"]}),l.jsx(zs,{status:"running",size:"sm"})]}),l.jsx(ma,{className:"flex-1",children:l.jsxs("div",{className:"p-4 space-y-4",children:[l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[l.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Providers"}),l.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),l.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:[G,"/",t.length," connected"]})]}),l.jsx("div",{className:"grid grid-cols-4 gap-3",children:t.map(_=>l.jsx(uA,{provider:_,onKeyChange:j},_.id))})]}),l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[l.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Gateways"}),l.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),l.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:[d.filter(_=>_.connected).length,"/",d.length," connected"]})]}),l.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[d.map(_=>l.jsx(hA,{gateway:_,onRefresh:z},_.id)),l.jsx(mA,{existingTypes:d.map(_=>_.type),onAdd:N})]})]}),s&&l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[l.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Configuration"}),l.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),l.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"Auto-saves"})]}),l.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[l.jsx($l,{icon:Ml,label:"Default Provider",description:"Provider used when spawning new agents.",children:l.jsx("select",{value:s.defaultProvider||"claude-code",onChange:_=>X("defaultProvider",_.target.value),className:"w-full h-8 px-2.5 text-xs bg-surface-0 border border-border-subtle rounded-md text-text-0 font-mono focus:outline-none focus:ring-1 focus:ring-accent cursor-pointer",children:t.filter(_=>_.installed||_.hasKey).map(_=>l.jsx("option",{value:_.id,children:_.name},_.id))})}),l.jsx($l,{icon:li,label:"Working Directory",description:"Default root directory for new agents.",children:l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx("code",{className:"flex-1 h-8 px-2 flex items-center bg-surface-0 border border-border-subtle rounded-md text-2xs font-mono text-text-2 truncate min-w-0",children:s.defaultWorkingDir||"Project root"}),l.jsx(ge,{variant:"secondary",size:"sm",onClick:()=>g(!0),className:"h-8 px-2 flex-shrink-0",children:l.jsx(qb,{size:12})})]})}),l.jsx($l,{icon:Yb,label:"Rotation Threshold",description:"Context usage that triggers auto-rotation.",children:l.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:["auto","50%","65%","75%","85%"].map(_=>{const T=_==="auto"?0:parseInt(_,10)/100,Y=R===T;return l.jsx("button",{onClick:()=>X("rotationThreshold",T),className:re("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",Y?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:_==="auto"?"Auto":_},_)})})}),l.jsx($l,{icon:Kb,label:"QC Threshold",description:"Running agents count that triggers auto-QC.",children:l.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[2,3,4,6,8].map(_=>{const T=(s.qcThreshold||2)===_;return l.jsx("button",{onClick:()=>X("qcThreshold",_),className:re("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",T?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:_},_)})})}),l.jsx($l,{icon:yi,label:"Max Agents",description:"Concurrent agent limit. 0 = unlimited.",children:l.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[0,4,8,12,20].map(_=>{const T=(s.maxAgents||0)===_;return l.jsx("button",{onClick:()=>X("maxAgents",_),className:re("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",T?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:_===0?"∞":_},_)})})}),l.jsx($l,{icon:ii,label:"Journalist Interval",description:"Seconds between synthesis cycles.",children:l.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[60,120,300,600].map(_=>{const T=(s.journalistInterval||120)===_,Y=_<60?`${_}s`:`${_/60}m`;return l.jsx("button",{onClick:()=>X("journalistInterval",_),className:re("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",T?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:Y},_)})})})]})]})]})}),l.jsx(WS,{open:x,onOpenChange:g,currentPath:(s==null?void 0:s.defaultWorkingDir)||"/",onSelect:_=>X("defaultWorkingDir",_)})]})}function Xc(t){return t?t<1024*1024?`${(t/1024).toFixed(0)} KB`:t<1024*1024*1024?`${(t/(1024*1024)).toFixed(1)} MB`:`${(t/(1024*1024*1024)).toFixed(2)} GB`:"—"}function xA(t){return t?t<1024*1024?`${(t/1024).toFixed(0)} KB/s`:`${(t/(1024*1024)).toFixed(1)} MB/s`:""}function gA({hardware:t}){var n;return t?l.jsxs("div",{className:"flex items-center gap-4 px-4 py-2.5 bg-surface-1 border border-border-subtle rounded-lg text-xs font-sans text-text-2",children:[l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx(YT,{size:14,className:"text-text-3"}),l.jsxs("span",{children:[t.totalRamGb," GB RAM"]})]}),l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx(Ml,{size:14,className:"text-text-3"}),l.jsxs("span",{children:[t.cores," cores"]})]}),t.gpu&&l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx(nh,{size:14,className:"text-text-3"}),l.jsxs("span",{children:[t.gpu.name,t.gpu.vram?` (${t.gpu.vram} GB)`:""]})]}),((n=t.recommended)==null?void 0:n.code)&&l.jsxs("div",{className:"ml-auto text-accent",children:["Recommended: ",t.recommended.code]})]}):null}function bA({download:t}){const n=Math.round((t.percent||0)*100);return l.jsxs("div",{className:"space-y-1",children:[l.jsxs("div",{className:"flex items-center justify-between text-2xs font-sans text-text-3",children:[l.jsx("span",{children:t.filename}),l.jsxs("span",{children:[n,"% ",xA(t.speed)]})]}),l.jsx("div",{className:"h-1.5 bg-surface-3 rounded-full overflow-hidden",children:l.jsx("div",{className:"h-full bg-accent rounded-full transition-all",style:{width:`${n}%`}})}),l.jsxs("div",{className:"text-2xs text-text-4",children:[Xc(t.downloaded)," / ",Xc(t.totalBytes)]})]})}function vA({model:t,onDelete:n}){const[s,r]=v.useState(!1),o={light:"text-green-400",medium:"text-blue-400",heavy:"text-orange-400"};return l.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 bg-surface-1 border border-border-subtle rounded-lg",children:[l.jsx(th,{size:18,className:"text-accent flex-shrink-0"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-sm font-mono font-bold text-text-0 truncate",children:t.id}),t.quantization&&l.jsx(ze,{variant:"subtle",className:"text-2xs",children:t.quantization}),t.parameters&&l.jsx(ze,{variant:"subtle",className:"text-2xs",children:t.parameters}),l.jsx("span",{className:re("text-2xs font-medium capitalize",o[t.tier]||"text-text-3"),children:t.tier})]}),l.jsxs("div",{className:"text-2xs text-text-3 font-sans mt-0.5",children:[Xc(t.sizeBytes)," · ctx ",(t.contextWindow||0).toLocaleString()," · ",t.category,t.repoId&&l.jsxs("span",{className:"text-text-4",children:[" · ",t.repoId]})]})]}),l.jsx("button",{onClick:async()=>{r(!0),await n(t.id),r(!1)},disabled:s,className:"p-1.5 rounded-md text-text-4 hover:text-red-400 hover:bg-red-400/10 transition-colors",children:s?l.jsx(Ct,{size:14,className:"animate-spin"}):l.jsx(_n,{size:14})})]})}function yA({result:t,onExpand:n,expanded:s}){var r;return l.jsxs("button",{onClick:()=>n(s?null:t.id),className:"w-full text-left px-4 py-3 bg-surface-1 border border-border-subtle rounded-lg hover:border-accent/30 transition-colors cursor-pointer",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-sm font-mono font-bold text-text-0 truncate flex-1",children:t.name}),l.jsx("span",{className:"text-2xs text-text-4 font-sans",children:t.author}),s?l.jsx(zn,{size:14,className:"text-text-3"}):l.jsx(as,{size:14,className:"text-text-3"})]}),l.jsxs("div",{className:"text-2xs text-text-3 font-sans mt-0.5 flex gap-3",children:[l.jsxs("span",{children:[(r=t.downloads)==null?void 0:r.toLocaleString()," downloads"]}),l.jsxs("span",{children:[t.likes," likes"]})]})]})}function SA({repoId:t,onDownload:n,systemRamGb:s}){const[r,o]=v.useState(null),[u,d]=v.useState(!0),[O,h]=v.useState(null),p=ls();v.useEffect(()=>{d(!0),K.get(`/models/${t}/files`).then(g=>o(g.files||[])).catch(()=>p.error("Failed to load model files")).finally(()=>d(!1))},[t]);async function x(g){h(g.filename);try{await K.post("/models/download",{repoId:t,filename:g.filename}),p.success(`Downloading ${g.filename}`),n==null||n(g.filename)}catch(b){p.error(b.message)}h(null)}return u?l.jsx("div",{className:"py-3 px-4 text-2xs text-text-4 font-sans",children:"Loading quantization variants..."}):r!=null&&r.length?l.jsx("div",{className:"pl-6 pr-4 pb-2 space-y-1.5",children:r.map(g=>{const b=!g.estimatedRamGb||!s||g.estimatedRamGb<=s,y=g.estimatedRamGb&&s&&g.estimatedRamGb>s*.8&&b;return l.jsxs("div",{className:re("flex items-center gap-2 py-1.5 px-3 rounded-md text-xs font-sans",b?"bg-surface-2":"bg-red-500/5 border border-red-500/15"),children:[l.jsx("span",{className:"font-mono text-text-1 truncate flex-1",children:g.filename}),g.quantization&&l.jsx(ze,{variant:"subtle",className:"text-2xs",children:g.quantization}),l.jsx("span",{className:"text-text-2 text-2xs w-16 text-right",children:Xc(g.size)}),g.estimatedRamGb&&l.jsxs("span",{className:re("text-2xs w-20 text-right font-medium",b?y?"text-yellow-400":"text-green-400":"text-red-400"),children:["~",g.estimatedRamGb," GB RAM"]}),!b&&l.jsx("span",{className:"text-2xs text-red-400 font-medium",children:"too large"}),l.jsx("button",{onClick:()=>x(g),disabled:O===g.filename||!b,className:re("p-1 rounded transition-colors",b?"text-accent hover:bg-accent/10":"text-text-4 cursor-not-allowed","disabled:opacity-40"),children:O===g.filename?l.jsx(Ct,{size:13,className:"animate-spin"}):l.jsx(xi,{size:13})})]},g.filename)})}):l.jsx("div",{className:"py-3 px-4 text-2xs text-text-4 font-sans",children:"No GGUF files found in this repo."})}function QA({model:t,systemRamGb:n,onPull:s,pulling:r,isInstalled:o}){const u={light:"text-green-400",medium:"text-blue-400",heavy:"text-orange-400"},d={code:"{}",general:"AI"},O=n?Math.round((1-t.ramGb/n)*100):null;return l.jsxs("div",{className:re("flex items-center gap-3 px-4 py-3 border rounded-lg transition-colors",o?"bg-success/5 border-success/20":"bg-surface-1 border-border-subtle hover:border-accent/20"),children:[l.jsx("div",{className:"w-9 h-9 rounded-lg bg-surface-3 flex items-center justify-center text-xs font-mono text-text-2 flex-shrink-0",children:d[t.category]||"AI"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-sm font-mono font-bold text-text-0 truncate",children:t.name}),l.jsx("span",{className:re("text-2xs font-semibold capitalize",u[t.tier]),children:t.tier}),o&&l.jsxs(ze,{variant:"success",className:"text-2xs gap-1",children:[l.jsx(Qt,{size:8})," Installed"]})]}),l.jsx("div",{className:"text-2xs text-text-3 font-sans mt-0.5",children:t.description}),l.jsxs("div",{className:"flex items-center gap-3 mt-1 text-2xs font-sans",children:[l.jsxs("span",{className:"text-text-2",children:[t.sizeGb," GB download"]}),l.jsxs("span",{className:"text-green-400 font-medium",children:[t.ramGb," GB RAM"]}),O!==null&&l.jsxs("span",{className:"text-text-4",children:[O,"% headroom"]})]})]}),o?l.jsx("span",{className:"text-xs text-success font-sans font-medium px-3 py-1.5",children:"Ready"}):l.jsxs("button",{onClick:()=>s(t.id),disabled:r===t.id,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-sans font-medium bg-accent/10 text-accent hover:bg-accent/20 transition-colors cursor-pointer disabled:opacity-40",children:[r===t.id?l.jsx(Ct,{size:12,className:"animate-spin"}):l.jsx(xi,{size:12}),"Pull"]})]})}function jA(){const[t,n]=v.useState("recommended"),[s,r]=v.useState(""),[o,u]=v.useState([]),[d,O]=v.useState(!1),[h,p]=v.useState([]),[x,g]=v.useState([]),[b,y]=v.useState([]),[Q,w]=v.useState(null),[k,j]=v.useState(null),[z,N]=v.useState(null),[X,G]=v.useState([]),R=ls(),_=v.useCallback(()=>{K.get("/models/installed").then(F=>{p(F.models||[])}).catch(()=>{})},[]),T=v.useCallback(()=>{K.get("/providers/ollama/models").then(F=>{G((F.installed||[]).map(se=>se.id))}).catch(()=>{})},[]);v.useEffect(()=>{K.get("/providers/ollama/hardware").then(w).catch(()=>{}),K.get("/models/recommended").then(F=>{g(F.models||[]),!Q&&F.hardware&&w(F.hardware)}).catch(()=>{}),_(),T()},[_,T]);async function Y(F){N(F);try{await K.post("/providers/ollama/pull",{model:F}),R.success(`${F} ready to use`),_(),T(),G(se=>[...se,F])}catch(se){R.error(`Pull failed: ${se.message}`)}N(null)}v.useEffect(()=>{const F=D.subscribe((ie,W)=>{}),se=setInterval(()=>{K.get("/models/downloads").then(y).catch(()=>{})},2e3);return()=>{F(),clearInterval(se)}},[]),v.useEffect(()=>{function F(ie){try{const W=JSON.parse(ie.data);W.type==="model:download:progress"&&y(P=>{const B=P.findIndex(E=>E.filename===W.data.filename);if(B>=0){const E=[...P];return E[B]=W.data,E}return[...P,W.data]}),W.type==="model:download:complete"&&(y(P=>P.filter(B=>B.filename!==W.data.filename)),_(),R.success(`${W.data.filename} downloaded`)),W.type==="model:download:error"&&(y(P=>P.filter(B=>B.filename!==W.data.filename)),R.error(`Download failed: ${W.data.error}`))}catch{}}const se=D.getState()._ws;return se&&se.addEventListener("message",F),()=>{se&&se.removeEventListener("message",F)}},[_,R]);async function M(){if(s.trim()){O(!0),n("search");try{const F=await K.get(`/models/search?q=${encodeURIComponent(s.trim())}`);u(F)}catch(F){R.error(F.message)}O(!1)}}async function ae(F){try{await K.delete(`/models/${F}`),p(se=>se.filter(ie=>ie.id!==F)),R.success("Model deleted")}catch(se){R.error(se.message)}}return l.jsxs("div",{className:"h-full flex flex-col bg-surface-0",children:[l.jsxs("div",{className:"flex-shrink-0 px-5 pt-4 pb-3 border-b border-border space-y-3",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("h1",{className:"text-base font-bold font-sans text-text-0",children:"Local Models"}),l.jsxs(ze,{variant:"subtle",className:"text-2xs",children:[h.length," installed"]})]}),l.jsx(gA,{hardware:Q}),l.jsxs("div",{className:"flex gap-2",children:[l.jsxs("div",{className:"relative flex-1",children:[l.jsx(fa,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-4"}),l.jsx("input",{value:s,onChange:F=>r(F.target.value),onKeyDown:F=>F.key==="Enter"&&M(),placeholder:"Search HuggingFace for GGUF models...",className:"w-full h-8 pl-9 pr-3 text-sm rounded-md bg-surface-1 border border-border text-text-0 font-sans placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent"})]}),l.jsx(ge,{onClick:M,disabled:d,size:"sm",variant:"accent",children:d?l.jsx(Ct,{size:14,className:"animate-spin"}):"Search"})]}),l.jsx("div",{className:"flex gap-1",children:[{id:"recommended",label:`Recommended (${x.length})`},{id:"installed",label:`Installed (${h.length})`},{id:"search",label:`Search (${o.length})`}].map(F=>l.jsx("button",{onClick:()=>n(F.id),className:re("px-3 py-1 rounded-md text-xs font-sans font-medium transition-colors cursor-pointer",t===F.id?"bg-accent/12 text-accent":"text-text-3 hover:text-text-1 hover:bg-surface-3"),children:F.label},F.id))})]}),b.length>0&&l.jsxs("div",{className:"px-5 py-3 border-b border-border space-y-2",children:[l.jsx("div",{className:"text-xs font-sans font-semibold text-text-2",children:"Downloading"}),b.map(F=>l.jsx(bA,{download:F},F.filename))]}),l.jsx(ma,{className:"flex-1",children:l.jsxs("div",{className:"px-5 py-4 space-y-2",children:[t==="recommended"&&l.jsx(l.Fragment,{children:x.length===0?l.jsxs("div",{className:"text-center py-12",children:[l.jsx(Ml,{size:40,className:"mx-auto text-text-4 mb-3"}),l.jsx("p",{className:"text-sm text-text-2 font-sans font-medium",children:"Detecting hardware..."}),l.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Make sure Ollama is installed so we can check your system."})]}):l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"text-xs text-text-3 font-sans mb-2",children:["Top models for your system (",(Q==null?void 0:Q.totalRamGb)||"?"," GB RAM). Click Pull to download via Ollama."]}),x.map(F=>{const se=F.id.split(":")[0],ie=X.some(W=>W===F.id||W.startsWith(se+":")||W===se);return l.jsx(QA,{model:F,systemRamGb:Q==null?void 0:Q.totalRamGb,onPull:Y,pulling:z,isInstalled:ie},F.id)})]})}),t==="installed"&&l.jsx(l.Fragment,{children:h.length===0?l.jsxs("div",{className:"text-center py-12",children:[l.jsx(th,{size:40,className:"mx-auto text-text-4 mb-3"}),l.jsx("p",{className:"text-sm text-text-2 font-sans font-medium",children:"No local models yet"}),l.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Search HuggingFace to download GGUF models, or pull models via Ollama."})]}):h.map(F=>l.jsx(vA,{model:F,onDelete:ae},F.id))}),t==="search"&&l.jsx(l.Fragment,{children:d?l.jsxs("div",{className:"text-center py-12",children:[l.jsx(Ct,{size:24,className:"mx-auto text-accent animate-spin mb-3"}),l.jsx("p",{className:"text-sm text-text-3 font-sans",children:"Searching HuggingFace..."})]}):o.length===0?l.jsxs("div",{className:"text-center py-12",children:[l.jsx(fa,{size:40,className:"mx-auto text-text-4 mb-3"}),l.jsx("p",{className:"text-sm text-text-2 font-sans font-medium",children:"Search for GGUF models"}),l.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:'Try "qwen coder", "deepseek", "codestral", "llama"'})]}):o.map(F=>l.jsxs("div",{className:"space-y-1",children:[l.jsx(yA,{result:F,expanded:k===F.id,onExpand:j}),k===F.id&&l.jsx(SA,{repoId:F.id,onDownload:()=>_(),systemRamGb:Q==null?void 0:Q.totalRamGb})]},F.id))})]})})]})}const k0=["Reading through the codebase...","Thinking through your request...","Planning the approach...","Running tool calls...","Working through the problem...","Reasoning step by step...","Reviewing context...","Considering options...","Analyzing the code...","Making progress..."];function wA({agent:t,className:n}){const[s,r]=v.useState(0),[o,u]=v.useState(!0);return v.useEffect(()=>{const d=setInterval(()=>{u(!1),setTimeout(()=>{r(O=>(O+1)%k0.length),u(!0)},250)},2800);return()=>clearInterval(d)},[]),l.jsxs("div",{className:`${n||""}`,children:[l.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[l.jsx("span",{className:"text-2xs font-semibold text-text-1 font-sans",children:(t==null?void 0:t.name)||"Agent"}),l.jsx("span",{className:"text-2xs text-accent font-mono",children:"thinking"})]}),l.jsxs("div",{className:"border-l border-accent/40 pl-3.5 py-1 flex items-center gap-2.5",children:[l.jsx("div",{className:"relative w-3.5 h-3.5 flex-shrink-0",children:l.jsx("span",{className:"absolute inset-0 rounded-full border border-transparent border-t-accent animate-spin",style:{animationDuration:"0.9s"}})}),l.jsx("span",{className:"text-[12px] font-sans text-text-3 transition-opacity duration-[250ms]",style:{opacity:o?1:0},children:k0[s]})]})]})}const Af=[];function FS(t){const n=(t||"").toLowerCase();return n.includes("reading")||n.includes("read ")?{icon:Es,color:"text-info",label:"Reading"}:n.includes("editing")||n.includes("wrote")||n.includes("writing")||n.includes("edit ")?{icon:Eb,color:"text-warning",label:"Editing"}:n.includes("searching")||n.includes("search")||n.includes("grep")||n.includes("glob")?{icon:fa,color:"text-purple",label:"Searching"}:n.includes("running")||n.includes("bash")||n.includes("command")||n.includes("exec")?{icon:bi,color:"text-orange",label:"Running"}:n.includes("test")||n.includes("pass")?{icon:vf,color:"text-success",label:"Testing"}:n.includes("error")||n.includes("fail")||n.includes("crash")?{icon:Oa,color:"text-danger",label:"Error"}:n.includes("rotat")?{icon:Il,color:"text-accent",label:"Rotating"}:n.includes("spawn")||n.includes("start")?{icon:Xn,color:"text-success",label:"Spawned"}:n.includes("tool")||n.includes("function")?{icon:GN,color:"text-text-2",label:"Tool"}:n.includes("complet")||n.includes("done")||n.includes("finish")?{icon:vf,color:"text-success",label:"Done"}:{icon:ss,color:"text-text-3",label:"Activity"}}function Nl({text:t}){return t?t.split(/(\*\*[^*]+\*\*|`[^`]+`)/g).map((n,s)=>n.startsWith("**")&&n.endsWith("**")?l.jsx("strong",{className:"font-semibold text-text-0",children:n.slice(2,-2)},s):n.startsWith("`")&&n.endsWith("`")?l.jsx("code",{className:"px-1 py-px rounded bg-accent/8 text-[11px] font-mono text-accent",children:n.slice(1,-1)},s):l.jsx("span",{children:n},s)):null}function kA({text:t}){if(!t)return null;const n=[],s=t.split(`
633
+ `);let r=0;for(;r<s.length;){const o=s[r];if(o.trimStart().startsWith("```")){const d=[],O=o.trim().slice(3);for(r++;r<s.length&&!s[r].trimStart().startsWith("```");)d.push(s[r]),r++;r++,n.push({type:"code",content:d.join(`
634
+ `),lang:O});continue}if(/^#{1,3}\s/.test(o)||/^\*\*[^*]+:\*\*\s*$/.test(o.trim())){const d=o.replace(/^#+\s*/,"").replace(/^\*\*/,"").replace(/:\*\*\s*$/,":").trim();n.push({type:"heading",content:d}),r++;continue}if(/^\s*[-*]\s/.test(o)){const d=[];for(;r<s.length&&/^\s*[-*]\s/.test(s[r]);)d.push(s[r].replace(/^\s*[-*]\s+/,"").trim()),r++;n.push({type:"list",items:d});continue}if(/^\s*\d+[\.)]\s/.test(o)){const d=[];for(;r<s.length&&/^\s*\d+[\.)]\s/.test(s[r]);)d.push(s[r].replace(/^\s*\d+[\.)]\s+/,"").trim()),r++;n.push({type:"numbered",items:d});continue}if(!o.trim()){r++;continue}if(/^(Note|Warning|Important|IMPORTANT|TODO):/i.test(o.trim())){n.push({type:"note",content:o.trim()}),r++;continue}const u=[];for(;r<s.length&&s[r].trim()&&!/^#{1,3}\s/.test(s[r])&&!/^\s*[-*]\s/.test(s[r])&&!/^\s*\d+[\.)]\s/.test(s[r])&&!s[r].trimStart().startsWith("```");)u.push(s[r].trim()),r++;u.length>0&&n.push({type:"para",content:u.join(" ")})}return l.jsx("div",{className:"space-y-2",children:n.map((o,u)=>{switch(o.type){case"heading":return l.jsxs("div",{className:"flex items-center gap-1.5 pt-1.5 first:pt-0",children:[l.jsx("div",{className:"w-1 h-3.5 rounded-full bg-accent/40 flex-shrink-0"}),l.jsx("span",{className:"text-[12px] font-semibold text-text-0 font-sans",children:l.jsx(Nl,{text:o.content})})]},u);case"list":return l.jsx("div",{className:"space-y-1 pl-2",children:o.items.map((d,O)=>l.jsxs("div",{className:"flex gap-2 text-[12px] text-text-0 font-sans leading-relaxed",children:[l.jsx("span",{className:"text-accent/50 mt-0.5 flex-shrink-0",children:"-"}),l.jsx("span",{className:"min-w-0",children:l.jsx(Nl,{text:d})})]},O))},u);case"numbered":return l.jsx("div",{className:"space-y-1 pl-2",children:o.items.map((d,O)=>l.jsxs("div",{className:"flex gap-2 text-[12px] text-text-0 font-sans leading-relaxed",children:[l.jsxs("span",{className:"text-text-4 font-mono w-4 text-right flex-shrink-0",children:[O+1,"."]}),l.jsx("span",{className:"min-w-0",children:l.jsx(Nl,{text:d})})]},O))},u);case"code":return l.jsx("pre",{className:"p-2.5 rounded-md bg-[#0d1117] text-[11px] font-mono text-[#c9d1d9] overflow-x-auto whitespace-pre-wrap border border-white/[0.06] leading-relaxed",children:o.content},u);case"note":return l.jsxs("div",{className:"flex items-start gap-1.5 px-2.5 py-1.5 rounded-md bg-warning/6 border border-warning/12",children:[l.jsx(Oa,{size:10,className:"text-warning mt-0.5 flex-shrink-0"}),l.jsx("span",{className:"text-[11px] text-warning/80 font-sans",children:l.jsx(Nl,{text:o.content})})]},u);case"para":default:return l.jsx("p",{className:"text-[12px] text-text-0 font-sans leading-relaxed",children:l.jsx(Nl,{text:o.content})},u)}})})}function $A({text:t}){if(!t)return null;const n=t.split(/(```[\s\S]*?```)/g);return l.jsx("span",{children:n.map((s,r)=>{if(s.startsWith("```")&&s.endsWith("```")){const o=s.slice(3,-3).replace(/^\w+\n/,"");return l.jsx("pre",{className:"my-1.5 p-2 rounded-md bg-[#0d1117] text-[11px] font-mono text-[#c9d1d9] overflow-x-auto whitespace-pre-wrap border border-white/[0.06]",children:o},r)}return l.jsx("span",{children:l.jsx(Nl,{text:s})},r)})})}function TA({msg:t}){const n=t.isQuery;return l.jsx("div",{className:"flex justify-end pl-8",children:l.jsxs("div",{className:"max-w-[90%]",children:[n&&l.jsxs("div",{className:"flex items-center justify-end gap-1 mb-1",children:[l.jsx(yc,{size:9,className:"text-info"}),l.jsx("span",{className:"text-2xs text-info font-sans font-medium",children:"Query"})]}),l.jsx("div",{className:re("px-3.5 py-2.5 rounded-lg border","bg-info/10 border-info/25"),children:l.jsx("div",{className:"text-[12px] font-sans whitespace-pre-wrap break-words leading-relaxed text-text-0",children:l.jsx($A,{text:t.text})})}),l.jsx("div",{className:"text-[10px] text-text-4 font-sans mt-1 text-right",children:vt(t.timestamp)})]})})}function NA({msg:t,agent:n}){var u,d;const[s,r]=v.useState(((u=t.text)==null?void 0:u.length)>600),o=((d=t.text)==null?void 0:d.length)>600;return l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[l.jsx("span",{className:"text-2xs font-semibold text-text-1 font-sans",children:(n==null?void 0:n.name)||"Agent"}),l.jsx("span",{className:"text-2xs text-text-4 font-sans",children:n==null?void 0:n.role}),l.jsx("span",{className:"text-[10px] text-text-4 font-sans ml-auto",children:vt(t.timestamp)})]}),l.jsx("div",{className:"border-l border-accent pl-3.5 py-1",children:l.jsx(kA,{text:s?t.text.slice(0,600)+"...":t.text})}),s&&l.jsxs("button",{onClick:()=>r(!1),className:"ml-3.5 mt-1.5 flex items-center gap-1.5 text-[11px] text-accent/70 hover:text-accent font-sans font-medium cursor-pointer transition-colors",children:[l.jsx(zn,{size:11}),"Show full response"]}),o&&!s&&l.jsxs("button",{onClick:()=>r(!0),className:"ml-3.5 mt-1.5 flex items-center gap-1.5 text-[11px] text-accent/70 hover:text-accent font-sans font-medium cursor-pointer transition-colors",children:[l.jsx(zn,{size:11,className:"rotate-180"}),"Collapse"]})]})}function PA({msg:t}){return l.jsxs("div",{className:"flex items-center gap-3 py-2",children:[l.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),l.jsx("span",{className:"text-[10px] text-text-4 font-sans flex-shrink-0 uppercase tracking-wide",children:t.text}),l.jsx("div",{className:"flex-1 h-px bg-border-subtle"})]})}function zA({entries:t,isLive:n}){var d;const[s,r]=v.useState(0);if(v.useEffect(()=>{if(!n||t.length<=1)return;const O=setInterval(()=>r(h=>(h+1)%t.length),1500);return()=>clearInterval(O)},[t.length,n]),!n){const O=t[t.length-1],p=FS(O.text).icon;return l.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 text-[10px] text-text-4 font-mono",children:[l.jsx(p,{size:10,className:"opacity-50"}),l.jsxs("span",{children:[t.length," tool call",t.length!==1?"s":""]})]})}const o=t[Math.min(s,t.length-1)],u=((d=o.text)==null?void 0:d.length)>60?o.text.slice(0,60)+"...":o.text;return l.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-2 max-w-[280px] rounded-md bg-surface-3/50 border border-border-subtle/30",children:[l.jsx(Ct,{size:11,className:"text-accent animate-spin flex-shrink-0"}),l.jsx("span",{className:"text-[11px] text-text-2 font-mono truncate transition-opacity duration-300",children:u}),t.length>1&&l.jsx("span",{className:"text-[10px] text-text-4 font-mono flex-shrink-0",children:t.length})]})}function RA({agent:t}){const n=D(h=>h.activityLog[t.id])||Af,s=n[n.length-1],r=s?FS(s.text):null,o=(r==null?void 0:r.icon)||ss,u=s&&Date.now()-s.timestamp<1e4,d=u&&s.text?s.text.length>60?s.text.slice(0,60)+"...":s.text:null,O=Math.round((t.contextUsage||0)*100);return l.jsxs("div",{className:"flex items-center gap-3 px-4 h-8 border-b border-border-subtle bg-surface-1/80 flex-shrink-0",children:[l.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[l.jsxs("div",{className:"relative flex items-center justify-center w-4 h-4",children:[l.jsx("span",{className:"absolute inset-0 rounded-full bg-accent/15 animate-ping",style:{animationDuration:"2s"}}),l.jsx("span",{className:"relative w-1.5 h-1.5 rounded-full bg-accent"})]}),u?l.jsxs(l.Fragment,{children:[l.jsx(o,{size:10,className:re(r.color,"flex-shrink-0")}),l.jsx("span",{className:"text-[11px] text-text-2 font-sans truncate",children:d})]}):l.jsx("span",{className:"text-[11px] text-text-3 font-sans",children:"Working..."})]}),l.jsxs("div",{className:"flex items-center gap-3 flex-shrink-0",children:[l.jsx("span",{className:"text-[10px] text-text-4 font-mono",children:CA(t.tokensUsed)}),l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx("div",{className:"w-14 h-1 rounded-full bg-surface-4 overflow-hidden",children:l.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${O}%`,background:O>=75?"var(--color-danger)":O>=50?"var(--color-warning)":"var(--color-accent)"}})}),l.jsxs("span",{className:"text-[10px] text-text-4 font-mono w-7 text-right",children:[O,"%"]})]})]})]})}function CA(t){return t?t>=1e6?(t/1e6).toFixed(1)+"M":t>=1e3?(t/1e3).toFixed(1)+"K":String(t):"0"}function _A({agent:t}){const[n,s]=v.useState([]),r=[{text:`Initializing ${t.name}`,delay:0},{text:`Role: ${t.role}`,delay:400},{text:`Provider: ${t.provider||"claude-code"}`,delay:700},{text:"Loading workspace context",delay:1e3},{text:"Scanning project structure",delay:1400},{text:"Session active",delay:1900}];return v.useEffect(()=>{const o=r.map((u,d)=>setTimeout(()=>s(O=>[...O,d]),u.delay));return()=>o.forEach(clearTimeout)},[]),l.jsxs("div",{className:"flex flex-col px-4 pt-6",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[l.jsxs("div",{className:"relative w-9 h-9",children:[l.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-accent/20 animate-ping",style:{animationDuration:"2s"}}),l.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-transparent border-t-accent animate-spin",style:{animationDuration:"1s"}}),l.jsx("span",{className:"absolute inset-[5px] rounded-full bg-accent/8"})]}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-bold text-text-0 font-sans",children:t.name}),l.jsx("p",{className:"text-2xs text-accent font-mono",children:"starting up"})]})]}),l.jsx("div",{className:"space-y-2 pl-3 border-l border-accent/15",children:r.map((o,u)=>{const d=n.includes(u),O=u===r.length-1;return l.jsxs("div",{className:re("flex items-center gap-2.5 transition-all duration-300",d?"opacity-100 translate-x-0":"opacity-0 -translate-x-2"),children:[l.jsx("span",{className:re("w-1 h-1 rounded-full flex-shrink-0",O&&d?"bg-accent":d?"bg-text-3":"bg-transparent")}),l.jsx("span",{className:re("text-[11px] font-mono",O&&d?"text-accent":"text-text-3"),children:o.text}),O&&d&&l.jsxs("span",{className:"flex gap-0.5 ml-1",children:[l.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"0ms"}}),l.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"200ms"}}),l.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"400ms"}})]})]},u)})})]})}function XA({agent:t}){const n=D(R=>R.chatHistory[t.id])||Af,s=D(R=>R.activityLog[t.id])||Af,r=D(R=>R.instructAgent),o=D(R=>R.queryAgent),u=D(R=>{var _;return(_=R.thinkingAgents)==null?void 0:_.has(t.id)}),d=D(R=>R.chatInputs[t.id]||""),O=R=>D.setState(_=>({chatInputs:{..._.chatInputs,[t.id]:R}})),h=d,p=O,[x,g]=v.useState("instruct"),[b,y]=v.useState(!1),Q=v.useRef(null),w=v.useRef(null),k=v.useRef(null),j=v.useMemo(()=>{var F;const R=[],_=new Set;for(const se of n){const ie=`${se.from}:${(F=se.text)==null?void 0:F.slice(0,100)}`;R.find(P=>{var B;return P.kind==="chat"&&`${P.from}:${(B=P.text)==null?void 0:B.slice(0,100)}`===ie&&Math.abs(P.ts-se.timestamp)<5e3})||(R.push({...se,kind:"chat",ts:se.timestamp}),_.add(se.text))}const T=_,Y=s.slice(-30);for(const se of Y)(se.text||"").trim()&&!T.has(se.text)&&R.push({...se,kind:"activity",ts:se.timestamp});R.sort((se,ie)=>se.ts-ie.ts);const M=[];let ae=[];for(const se of R)se.kind==="activity"?ae.push(se):(ae.length>0&&(M.push({kind:"activity-group",entries:ae}),ae=[]),M.push(se));return ae.length>0&&M.push({kind:"activity-group",entries:ae}),M},[n,s]);v.useEffect(()=>{Q.current&&requestAnimationFrame(()=>{Q.current&&(Q.current.scrollTop=Q.current.scrollHeight)})},[j.length]);async function z(R){var M;const _=Array.from(R.target.files||[]);if(_.length===0)return;const T=D.getState().addToast,Y=[];for(const ae of _)try{const F=await new Promise((se,ie)=>{const W=new FileReader;W.onload=()=>se(W.result.split(",")[1]),W.onerror=ie,W.readAsDataURL(ae)});await K.post(`/agents/${t.id}/upload`,{filename:ae.name,content:F}),Y.push(ae.name)}catch(F){T("error",`Upload failed: ${ae.name}`,F.message)}if(Y.length>0){const ae=Y.join(", ");p(F=>(F?F+`
635
+ `:"")+`[Uploaded: ${ae}] — I've uploaded these files to your working directory. Read them and use their content.`),T("success",`Uploaded ${Y.length} file${Y.length>1?"s":""}`)}R.target.value="",(M=w.current)==null||M.focus()}async function N(){var _;const R=h.trim();if(!(!R||b)){if(R==="/rotate"){const T=D.getState().rotateAgent;p("");try{await T(t.id)}catch{}return}p(""),y(!0);try{x==="query"?await o(t.id,R):await r(t.id,R)}catch{}y(!1),(_=w.current)==null||_.focus()}}function X(R){R.key==="Enter"&&!R.shiftKey&&(R.preventDefault(),N())}const G=t.status==="running"||t.status==="starting";return l.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[G&&l.jsx(RA,{agent:t}),l.jsxs("div",{ref:Q,className:"flex-1 overflow-y-auto px-4 py-4 space-y-4",children:[!j.some(R=>R.from==="agent"||R.kind==="activity-group")&&(G?l.jsx(_A,{agent:t}):l.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center py-8",children:[l.jsx("div",{className:"w-10 h-10 rounded-xl bg-surface-3 flex items-center justify-center mb-3",children:l.jsx(gi,{size:18,className:"text-text-4"})}),l.jsx("p",{className:"text-sm font-semibold text-text-0 font-sans",children:t.name}),l.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Session complete — send a message to continue"})]})),j.map((R,_)=>{if(R.kind==="activity-group"){const T=!j.slice(_+1).some(Y=>Y.kind==="activity-group"||Y.from==="agent");return l.jsx("div",{children:l.jsx(zA,{entries:R.entries,isLive:G&&T})},`grp-${_}`)}return R.from==="user"?l.jsx(TA,{msg:R},`msg-${_}`):R.from==="system"?l.jsx(PA,{msg:R},`msg-${_}`):l.jsx(NA,{msg:R,agent:t},`msg-${_}`)}),l.jsx(Zf,{children:(b||u)&&l.jsx(Ef.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.25,ease:"easeOut"},children:l.jsx(wA,{agent:t})},"thinking")})]}),l.jsxs("div",{className:"border-t border-border px-4 py-3 bg-surface-1/50 flex-shrink-0",children:[l.jsxs("div",{className:"flex items-center gap-1 mb-2",children:[l.jsxs("button",{onClick:()=>g("instruct"),className:re("flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[11px] font-sans font-medium transition-colors cursor-pointer",x==="instruct"?"bg-accent/12 text-accent border border-accent/20":"text-text-3 hover:text-text-1 hover:bg-surface-3"),children:[l.jsx(Wc,{size:10}),"Instruct"]}),l.jsxs("button",{onClick:()=>g("query"),className:re("flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[11px] font-sans font-medium transition-colors cursor-pointer",x==="query"?"bg-info/12 text-info border border-info/20":"text-text-3 hover:text-text-1 hover:bg-surface-3"),children:[l.jsx(yc,{size:10}),"Query"]}),l.jsx("span",{className:"text-[10px] text-text-4 font-sans ml-auto",children:x==="query"?"Read-only — agent keeps working":G?"Directs the agent":"Continues the session"})]}),l.jsxs("div",{className:re("flex items-end gap-1 rounded-xl border bg-surface-0 p-1 transition-colors",x==="query"?"border-info/20 focus-within:border-info/40":"border-border-subtle focus-within:border-accent/30"),children:[l.jsx("input",{ref:k,type:"file",multiple:!0,accept:".pdf,.png,.jpg,.jpeg,.gif,.svg,.csv,.txt,.md,.json,.yaml,.yml,.docx,.pptx,.xlsx",onChange:z,className:"hidden"}),l.jsx("button",{onClick:()=>{var R;return(R=k.current)==null?void 0:R.click()},className:"w-9 h-9 flex items-center justify-center rounded-lg text-text-4 hover:text-text-1 hover:bg-surface-3 transition-colors cursor-pointer flex-shrink-0 mb-px",title:"Attach file",children:l.jsx(JT,{size:14})}),l.jsx("textarea",{ref:w,value:h,onChange:R=>p(R.target.value),onKeyDown:X,placeholder:x==="query"?"Ask about this agent's work...":G?"Send an instruction...":"Continue this session...",rows:1,className:re("flex-1 resize-none px-3 py-2 text-[13px]","bg-transparent text-text-0 font-sans","placeholder:text-text-4","focus:outline-none","max-h-[120px] min-h-[36px]"),style:{height:Math.min(Math.max(36,h.split(`
636
+ `).length*20),120)}}),l.jsx("button",{onClick:N,disabled:!h.trim()||b,className:re("w-9 h-9 flex items-center justify-center rounded-lg transition-all cursor-pointer flex-shrink-0 mb-px","disabled:opacity-15 disabled:cursor-not-allowed",h.trim()?x==="query"?"bg-info text-white hover:bg-info/85":"bg-accent text-white hover:bg-accent/85":"bg-transparent text-text-4"),children:b?l.jsx(Ct,{size:15,className:"animate-spin"}):l.jsx(rh,{size:15})})]})]})]})}function cf({options:t,value:n,onChange:s}){return l.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:t.map(r=>l.jsx("button",{onClick:()=>s(r.value),className:re("flex-1 px-3 py-1.5 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",n===r.value?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:r.label},r.value))})}function pn({label:t,icon:n,children:s,description:r}){return l.jsxs("div",{className:"space-y-2",children:[l.jsxs("div",{children:[l.jsxs("label",{className:"flex items-center gap-1.5 text-xs font-semibold text-text-1 font-sans",children:[n&&l.jsx(n,{size:13,className:"text-text-3"}),t]}),r&&l.jsx("p",{className:"text-2xs text-text-4 font-sans mt-0.5",children:r})]}),s]})}function AA({agent:t}){const n=D(Q=>Q.killAgent),s=D(Q=>Q.rotateAgent),r=D(Q=>Q.spawnAgent),o=D(Q=>Q.closeDetail),u=D(Q=>Q.addToast),[d,O]=v.useState(null),[h,p]=v.useState(!1),x=t.status==="running"||t.status==="starting";async function g(){O("rotate");try{await s(t.id)}catch{}O(null)}async function b(){if(!h){p(!0),setTimeout(()=>p(!1),3e3);return}O("kill");try{await n(t.id),o()}catch{}O(null),p(!1)}async function y(){O("clone");try{await r({role:t.role,provider:t.provider,model:t.model,name:`${t.name}-clone`,scope:t.scope,workingDir:t.workingDir}),u("success",`Cloned ${t.name}`)}catch{}O(null)}return x?l.jsx("div",{className:"space-y-2",children:l.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[l.jsxs(ge,{variant:"primary",size:"md",onClick:g,disabled:d==="rotate",className:"gap-1.5",children:[l.jsx(Il,{size:12,className:d==="rotate"?"animate-spin":""}),"Rotate"]}),l.jsxs(ge,{variant:"info",size:"md",onClick:y,disabled:!!d,className:"gap-1.5",children:[l.jsx(Sf,{size:12})," Clone"]}),l.jsxs(ge,{variant:"danger",size:"md",onClick:b,disabled:d==="kill",className:"gap-1.5",children:[l.jsx(ih,{size:12}),h?"Confirm":"Kill"]})]})}):l.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[l.jsxs(ge,{variant:"info",size:"md",onClick:y,disabled:!!d,className:"gap-1.5",children:[l.jsx(Sf,{size:12})," Clone"]}),l.jsxs(ge,{variant:"danger",size:"md",onClick:b,disabled:d==="kill",className:"gap-1.5",children:[l.jsx(_n,{size:12}),h?"Confirm":"Remove"]})]})}function ZA({agent:t}){var Ce;const n=D(H=>H.addToast),[s,r]=v.useState([]),[o,u]=v.useState(t.model||""),[d,O]=v.useState(""),[h,p]=v.useState(t.effort||"default"),[x,g]=v.useState(!1),[b,y]=v.useState(""),[Q,w]=v.useState(null),[k,j]=v.useState(!1),[z,N]=v.useState(null),[X,G]=v.useState(t.routingMode||"auto"),[R,_]=v.useState([]),[T,Y]=v.useState("hr"),[M,ae]=v.useState("1"),[F,se]=v.useState(!1),ie=t.status==="running"||t.status==="starting";v.useEffect(()=>{W(),K.get("/skills/installed").then(ue=>_(Array.isArray(ue)?ue:ue.skills||[])).catch(()=>{});function H(){W()}return window.addEventListener("groove:providers-changed",H),()=>window.removeEventListener("groove:providers-changed",H)},[]);function W(){K.get("/providers").then(H=>r(Array.isArray(H)?H:[])).catch(()=>{})}v.useEffect(()=>{u(t.model||""),K.get(`/agents/${t.id}/routing/recommend`).then(H=>{G((H==null?void 0:H.mode)||"fixed")}).catch(()=>{})},[t.id,t.model]);const P=s.find(H=>H.id===t.provider);async function B(H,ue){u(ue);try{const _e={model:ue};H&&H!==t.provider&&(_e.provider=H),await K.patch(`/agents/${t.id}`,_e),n("success",`Model → ${ue}${_e.provider?` (${H})`:""}`)}catch(_e){n("error","Model swap failed",_e.message)}}async function E(H){try{await K.patch(`/agents/${t.id}`,{workingDir:H}),n("success",`Working dir → ${H.split("/").pop()||H}`)}catch(ue){n("error","Update failed",ue.message)}}async function ce(H){p(H);try{await K.patch(`/agents/${t.id}`,{effort:H}),n("success",`Effort → ${H}`)}catch(ue){n("error","Update failed",ue.message)}}async function ee(H){if(!H.trim())return;const ue=[...t.scope||[],H.trim()];try{await K.patch(`/agents/${t.id}`,{scope:ue}),O("")}catch(_e){n("error","Scope update failed",_e.message)}}async function ve(H){const ue=(t.scope||[]).filter((_e,Ot)=>Ot!==H);try{await K.patch(`/agents/${t.id}`,{scope:ue})}catch(_e){n("error","Scope update failed",_e.message)}}async function Se(H){if(b.trim())try{await K.post(`/credentials/${H}`,{key:b.trim()}),n("success",`API key set for ${H}`),y(""),w(null),W(),window.dispatchEvent(new CustomEvent("groove:providers-changed"))}catch(ue){n("error","Failed to set key",ue.message)}}const ye=t.spawnedAt||t.createdAt;return l.jsxs("div",{className:"px-5 py-5 space-y-6 overflow-y-auto h-full",children:[l.jsx(pn,{label:"Active Model",icon:Ml,children:l.jsxs("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{children:[l.jsx("div",{className:"text-sm font-bold font-mono text-text-0",children:t.model||"auto"}),l.jsx("div",{className:"text-2xs text-text-3 font-sans mt-0.5",children:(P==null?void 0:P.name)||t.provider})]}),(P==null?void 0:P.canHotSwap)&&ie&&l.jsxs(ze,{variant:"accent",className:"text-2xs gap-1",children:[l.jsx(Xn,{size:8})," Hot-swap"]})]}),((Ce=P==null?void 0:P.models)==null?void 0:Ce.length)>1&&l.jsx("div",{className:"flex flex-wrap gap-1.5 mt-3 pt-3 border-t border-border-subtle",children:P.models.filter(H=>!H.disabled).map(H=>{const ue=H.id===t.model;return l.jsx("button",{onClick:()=>B(t.provider,H.id),disabled:!1,className:re("px-2.5 py-1 rounded-md text-xs font-mono transition-all","cursor-pointer",ue?"bg-accent/15 text-accent font-semibold":"bg-surface-4 text-text-2 hover:bg-surface-5 hover:text-text-0"),children:H.name||H.id},H.id)})})]})}),l.jsx(AA,{agent:t}),l.jsxs(pn,{label:"Providers",icon:o1,description:"Click a provider to see its models and connection status.",children:[l.jsx("div",{className:"space-y-1.5",children:s.map(H=>{const ue=H.id===t.provider,_e=H.installed||H.hasKey,Ot=z===H.id,Ze=H.models||[];return l.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-0 overflow-hidden",children:[l.jsxs("button",{onClick:()=>N(Ot?null:H.id),className:"w-full flex items-center gap-2.5 px-3 py-2 cursor-pointer hover:bg-surface-4/50 transition-colors",children:[l.jsx("div",{className:re("w-2 h-2 rounded-full flex-shrink-0",_e?"bg-success":"bg-text-4")}),l.jsx("span",{className:re("text-xs font-semibold font-sans flex-1 text-left",_e?"text-text-0":"text-text-3"),children:H.name||H.id}),ue&&l.jsx(ze,{variant:"accent",className:"text-2xs",children:"Active"}),!_e&&l.jsx("span",{className:"text-2xs text-text-4 font-sans",children:H.authType==="local"?"Not installed":"No key"}),l.jsx(zn,{size:12,className:re("text-text-4 transition-transform",Ot&&"rotate-180")})]}),Ot&&H.authType==="local"&&l.jsx("div",{className:"border-t border-border-subtle",children:l.jsx(DS,{isInstalled:_e,onModelChange:W})}),Ot&&H.authType!=="local"&&l.jsxs("div",{className:"border-t border-border-subtle",children:[(!_e||H.hasKey)&&l.jsx("div",{className:"px-3 py-2 bg-surface-1/50",children:Q===H.id?l.jsxs("div",{className:"flex gap-1.5",children:[l.jsxs("div",{className:"flex-1 relative",children:[l.jsx("input",{value:b,onChange:He=>y(He.target.value),onKeyDown:He=>He.key==="Enter"&&Se(H.id),type:k?"text":"password",placeholder:`${H.name||H.id} API key...`,className:"w-full h-7 px-2.5 pr-7 text-2xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),l.jsx("button",{onClick:()=>j(!k),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:k?l.jsx(Dc,{size:10}):l.jsx(Es,{size:10})})]}),l.jsx(ge,{variant:"primary",size:"sm",onClick:()=>Se(H.id),disabled:!b.trim(),className:"h-7 px-2 text-2xs",children:"Save"}),l.jsx(ge,{variant:"ghost",size:"sm",onClick:()=>{w(null),y("")},className:"h-7 px-2 text-2xs",children:"Cancel"})]}):l.jsxs("button",{onClick:()=>{w(H.id),y(""),j(!1)},className:"flex items-center gap-1.5 text-2xs text-text-3 hover:text-accent font-sans cursor-pointer transition-colors",children:[l.jsx(ri,{size:10}),_e?"Update API key":"Add API key to enable"]})}),_e&&Ze.filter(He=>!He.disabled).length>0&&Ze.filter(He=>!He.disabled).map(He=>{const bt=H.id===t.provider&&He.id===t.model;return l.jsxs("button",{onClick:()=>B(H.id,He.id),disabled:!1,className:re("w-full flex items-center gap-2 px-3 py-2 text-left text-xs font-sans transition-colors","border-t border-border-subtle","cursor-pointer hover:bg-surface-4/50",bt?"text-accent":"text-text-2"),children:[bt?l.jsx(Qt,{size:11,className:"text-accent flex-shrink-0"}):l.jsx("div",{className:"w-[11px]"}),l.jsx("span",{className:"font-mono flex-1 truncate",children:He.name||He.id}),l.jsx(ze,{variant:bt?"accent":"default",className:"text-2xs",children:He.tier})]},He.id)})]})]},H.id)})}),ie&&l.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-3 font-sans mt-1.5",children:[l.jsx(Oa,{size:10}),l.jsx("span",{children:"Model changes apply on next rotation or respawn."})]})]}),l.jsx(pn,{label:"Working Directory",icon:li,description:"The root directory this agent operates in.",children:l.jsxs("div",{className:"flex gap-2",children:[l.jsx("div",{className:"flex-1 bg-surface-0 rounded-lg px-3 py-2.5 text-sm font-mono text-text-1 border border-border-subtle truncate min-w-0",children:t.workingDir||"Project root"}),l.jsxs(ge,{variant:"secondary",size:"md",onClick:()=>g(!0),className:"gap-1.5 flex-shrink-0",children:[l.jsx(qb,{size:14})," Browse"]})]})}),l.jsx(pn,{label:"Permission Mode",icon:Yl,description:"Full Send = no approvals. Agent Approve = Fullstack Manager reviews risky operations.",children:l.jsx(cf,{options:[{value:"full",label:"Full Send"},{value:"auto",label:"Agent Approve"}],value:t.permission||"full",onChange:async H=>{try{await K.patch(`/agents/${t.id}`,{permission:H}),n("success",`Permission → ${H==="full"?"Full Send":"Agent Approve"}`)}catch(ue){n("error","Update failed",ue.message)}}})}),l.jsxs(pn,{label:"Model Routing",icon:bc,description:"How Groove selects models for this agent's tasks.",children:[l.jsx(cf,{options:[{value:"fixed",label:"Fixed"},{value:"auto",label:"Auto"},{value:"auto-floor",label:"Auto + Floor"}],value:X,onChange:async H=>{G(H);try{await K.post(`/agents/${t.id}/routing`,{mode:H}),n("success",`Routing → ${H}`)}catch(ue){n("error","Update failed",ue.message)}}}),l.jsxs("div",{className:"text-2xs text-text-4 font-sans mt-1",children:[X==="fixed"&&"Uses the selected model for all tasks.",X==="auto"&&"Groove picks Opus/Sonnet/Haiku based on task complexity.",X==="auto-floor"&&"Auto-routes but never drops below Sonnet."]})]}),l.jsx(pn,{label:"File Scope",icon:Yl,description:"Restrict which files this agent can access. Empty = unrestricted.",children:l.jsxs("div",{className:"flex flex-wrap gap-2",children:[(t.scope||[]).map((H,ue)=>l.jsxs(ze,{variant:"default",className:"font-mono text-xs gap-1.5 px-2.5 py-1",children:[H,l.jsx("button",{onClick:()=>ve(ue),className:"hover:text-danger cursor-pointer",children:l.jsx(jt,{size:10})})]},ue)),l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx("input",{value:d,onChange:H=>O(H.target.value),onKeyDown:H=>H.key==="Enter"&&ee(d),placeholder:"e.g. src/**",className:"w-28 h-7 px-2.5 text-xs bg-surface-0 border border-border-subtle rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent"}),l.jsx("button",{onClick:()=>ee(d),disabled:!d.trim(),className:"w-7 h-7 flex items-center justify-center rounded-md bg-surface-4 border border-border-subtle text-text-3 hover:text-accent cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:l.jsx(es,{size:12})})]})]})}),l.jsx(pn,{label:"Effort Level",icon:Yb,description:"Controls how deep the agent reasons. Higher = more tokens but better results.",children:l.jsx(cf,{options:[{value:"min",label:"Min"},{value:"low",label:"Low"},{value:"default",label:"Default"},{value:"high",label:"High"},{value:"max",label:"Max"}],value:h,onChange:ce})}),l.jsx(pn,{label:"Agent Details",icon:o1,children:l.jsxs("div",{className:"bg-surface-0 rounded-lg border border-border-subtle divide-y divide-border-subtle",children:[l.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[l.jsx("span",{className:"text-xs text-text-3 font-sans",children:"ID"}),l.jsx("span",{className:"text-xs text-text-1 font-mono",children:t.id})]}),l.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[l.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Role"}),l.jsx("span",{className:"text-xs text-text-1 font-sans capitalize",children:t.role})]}),l.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[l.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Provider"}),l.jsx("span",{className:"text-xs text-text-1 font-mono",children:t.provider})]}),l.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[l.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Model"}),l.jsx("span",{className:"text-xs text-text-1 font-mono",children:t.model||"auto"})]}),l.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[l.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Status"}),l.jsx("span",{className:"text-xs text-text-1 font-sans capitalize",children:t.status})]}),l.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[l.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Spawned"}),l.jsx("span",{className:"text-xs text-text-1 font-sans",children:ye?vt(ye):"—"})]}),t.sessionId&&l.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[l.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Session"}),l.jsxs("span",{className:"text-xs text-text-1 font-mono",children:[t.sessionId.slice(0,16),"..."]})]})]})}),l.jsx(pn,{label:"Skills",icon:Kr,description:"Attach installed skills to this agent's context.",children:l.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[(t.skills||[]).map(H=>l.jsxs(ze,{variant:"accent",className:"font-mono text-xs gap-1.5 px-2.5 py-1",children:[H,l.jsx("button",{onClick:async()=>{try{await K.delete(`/agents/${t.id}/skills/${H}`),n("success",`Detached ${H}`)}catch(ue){n("error","Detach failed",ue.message)}},className:"hover:text-danger cursor-pointer",children:l.jsx(jt,{size:10})})]},H)),R.filter(H=>!(t.skills||[]).includes(H.id)).length>0&&l.jsxs("div",{className:"relative group",children:[l.jsx("button",{className:"w-7 h-7 flex items-center justify-center rounded-md bg-surface-4 border border-border-subtle text-text-3 hover:text-accent cursor-pointer transition-colors",children:l.jsx(es,{size:12})}),l.jsx("div",{className:"absolute top-full left-0 mt-1 z-20 hidden group-hover:block bg-surface-2 border border-border-subtle rounded-lg shadow-xl py-1 min-w-[160px]",children:R.filter(H=>!(t.skills||[]).includes(H.id)).map(H=>l.jsx("button",{onClick:async()=>{try{await K.post(`/agents/${t.id}/skills/${H.id}`),n("success",`Attached ${H.name||H.id}`)}catch(ue){n("error","Attach failed",ue.message)}},className:"w-full text-left px-3 py-1.5 text-xs font-sans text-text-1 hover:bg-surface-4 cursor-pointer transition-colors",children:H.name||H.id},H.id))})]}),(t.skills||[]).length===0&&R.length===0&&l.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"No skills installed — browse the Marketplace"})]})}),l.jsx(pn,{label:"Schedule",icon:vc,description:"Run this agent on a recurring schedule.",children:l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-xs text-text-2 font-sans",children:"Every"}),l.jsx("input",{value:M,onChange:H=>ae(H.target.value.replace(/\D/g,"").slice(0,3)),className:"w-12 h-7 px-2 text-xs text-center bg-surface-0 border border-border-subtle rounded-md text-text-0 font-mono focus:outline-none focus:ring-1 focus:ring-accent",placeholder:"1"}),l.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:[{value:"min",label:"Min"},{value:"hr",label:"Hr"},{value:"day",label:"Day"},{value:"wk",label:"Wk"},{value:"mo",label:"Mo"}].map(H=>l.jsx("button",{onClick:()=>Y(H.value),className:re("px-2 py-1 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",T===H.value?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:H.label},H.value))}),l.jsxs(ge,{variant:"primary",size:"sm",disabled:F||!M||parseInt(M,10)<1,onClick:async()=>{const H=parseInt(M,10);if(!H||H<1)return;const ue={min:H===1?"* * * * *":`*/${H} * * * *`,hr:H===1?"0 * * * *":`0 */${H} * * *`,day:H===1?"0 0 * * *":`0 0 */${H} * *`,wk:`0 0 * * ${H===1?"1":"*"}`,mo:`0 0 ${H===1?"1":H} * *`};se(!0);try{await K.post("/schedules",{name:`${t.name} schedule`,cron:ue[T],agentConfig:{role:t.role,provider:t.provider,model:t.model,scope:t.scope,workingDir:t.workingDir,prompt:t.prompt}}),n("success",`Scheduled every ${H} ${T}`)}catch(_e){n("error","Schedule failed",_e.message)}se(!1)},className:"h-7 px-3 text-2xs gap-1",children:[l.jsx(vc,{size:10}),F?"...":"Set"]})]})}),t.prompt&&l.jsx(pn,{label:"Original Prompt",icon:bc,children:l.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3 py-3 text-xs text-text-2 font-sans leading-relaxed max-h-40 overflow-y-auto",children:t.prompt})}),l.jsx(WS,{open:x,onOpenChange:g,currentPath:t.workingDir||"/",onSelect:E})]})}const $0=[];function EA({data:t,isAlive:n,height:s=48}){const r=v.useRef(null);return v.useEffect(()=>{const o=r.current;if(!o||!t.length)return;const u=o.getContext("2d"),d=window.devicePixelRatio||1,O=o.clientWidth,h=o.clientHeight;o.width=O*d,o.height=h*d,u.scale(d,d),u.clearRect(0,0,O,h);const p=t.map(Q=>Q.v),x=Math.min(...p),b=Math.max(...p,1)-x||1;u.beginPath(),u.moveTo(0,h),t.forEach((Q,w)=>{const k=w/(t.length-1)*O,j=h-(Q.v-x)/b*(h-4)-2;u.lineTo(k,j)}),u.lineTo(O,h),u.closePath();const y=u.createLinearGradient(0,0,0,h);if(y.addColorStop(0,n?"rgba(51,175,188,0.15)":"rgba(110,118,129,0.08)"),y.addColorStop(1,"rgba(0,0,0,0)"),u.fillStyle=y,u.fill(),u.beginPath(),u.strokeStyle=n?me.accent:me.text3,u.lineWidth=1.5,t.forEach((Q,w)=>{const k=w/(t.length-1)*O,j=h-(Q.v-x)/b*(h-4)-2;w===0?u.moveTo(k,j):u.lineTo(k,j)}),u.stroke(),t.length>1&&n){const Q=t[t.length-1],w=O-1,k=h-(Q.v-x)/b*(h-4)-2;u.beginPath(),u.arc(w,k,5,0,Math.PI*2),u.fillStyle="rgba(51,175,188,0.3)",u.fill(),u.beginPath(),u.arc(w,k,2.5,0,Math.PI*2),u.fillStyle=me.accent,u.fill()}},[t,n]),l.jsx("div",{className:"w-full rounded-lg bg-surface-0 overflow-hidden border border-border-subtle",style:{height:s},children:l.jsx("canvas",{ref:r,className:"w-full h-full"})})}function ac({icon:t,label:n,value:s,color:r,sub:o}){return l.jsxs("div",{className:"bg-surface-0 rounded-lg px-3 py-2.5 border border-border-subtle",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[l.jsx(t,{size:12,className:r||"text-text-3"}),l.jsx("span",{className:"text-2xs text-text-4 font-sans uppercase tracking-wider",children:n})]}),l.jsx("div",{className:re("text-lg font-bold font-mono tabular-nums",r||"text-text-0"),children:s}),o&&l.jsx("div",{className:"text-2xs text-text-4 font-sans mt-0.5",children:o})]})}function qA({score:t}){const n=Math.min(Math.max(t,0),100);let s=me.success,r="Healthy";return n<40?(s=me.danger,r="Degraded"):n<70&&(s=me.warning,r="Fair"),l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[l.jsxs("span",{className:"text-2xs text-text-3 font-sans flex items-center gap-1.5",children:[l.jsx(QT,{size:11}),"Session Health"]}),l.jsxs("span",{className:"text-xs font-bold font-mono",style:{color:s},children:[n,"/100"]})]}),l.jsx("div",{className:"h-2 bg-surface-0 rounded-full overflow-hidden border border-border-subtle",children:l.jsx("div",{className:"h-full rounded-full transition-all duration-700",style:{width:`${n}%`,background:s}})}),l.jsx("span",{className:"text-2xs font-sans mt-1 block",style:{color:s},children:r})]})}function MA(t){const n=(t||"").toLowerCase();return n.includes("edit")||n.includes("writ")?{icon:Eb,color:"text-warning"}:n.includes("read")||n.includes("view")?{icon:Es,color:"text-info"}:n.includes("search")||n.includes("grep")||n.includes("glob")?{icon:fa,color:"text-purple"}:n.includes("bash")||n.includes("command")||n.includes("terminal")?{icon:bi,color:"text-orange"}:n.includes("error")||n.includes("fail")?{icon:Oa,color:"text-danger"}:n.includes("spawn")||n.includes("start")?{icon:Xn,color:"text-success"}:n.includes("complet")||n.includes("done")?{icon:vf,color:"text-success"}:{icon:yf,color:"text-text-4"}}function YA({agent:t}){const n=D(d=>d.tokenTimeline[t.id])||$0,s=D(d=>d.activityLog[t.id])||$0,r=t.status==="running"||t.status==="starting",o=v.useMemo(()=>{if(n.length<2)return 0;const d=n.slice(-10),O=(d[d.length-1].t-d[0].t)/6e4,h=d[d.length-1].v-d[0].v;return O>0?Math.round(h/O):0},[n]),u=v.useMemo(()=>{const d=t.contextUsage||0;let O=100;return d>90?O-=50:d>70?O-=25:d>50&&(O-=10),o>5e3?O-=15:o>3e3&&(O-=8),t.status==="crashed"&&(O=10),t.status==="completed"&&(O=95),Math.max(0,Math.min(100,O))},[t.contextUsage,t.status,o]);return l.jsxs("div",{className:"px-5 py-5 space-y-5 overflow-y-auto h-full",children:[l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center justify-between mb-2",children:[l.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Token Burn"}),r&&l.jsx("span",{className:"text-2xs text-accent font-mono animate-pulse",children:"LIVE"})]}),l.jsx(EA,{data:n,isAlive:r,height:56})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[l.jsx(ac,{icon:dT,label:"Burn Rate",value:o>0?`${Ke(o)}/m`:"—",color:o>5e3?"text-danger":o>2e3?"text-warning":"text-text-0"}),l.jsx(ac,{icon:K$,label:"Cost",value:Si(t.costUsd||0),color:"text-text-0"}),l.jsx(ac,{icon:Il,label:"Rotations",value:t.rotations||"0",color:"text-text-0"}),l.jsx(ac,{icon:Xn,label:"Turns",value:t.turns||"0",color:"text-text-0"})]}),l.jsx(qA,{score:u}),t.prompt&&l.jsxs("div",{children:[l.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider block mb-1.5",children:"Task"}),l.jsx("div",{className:"bg-surface-0 rounded-lg px-3 py-2.5 text-xs text-text-2 font-sans leading-relaxed max-h-28 overflow-y-auto border border-border-subtle",children:t.prompt})]}),s.length>0&&l.jsxs("div",{children:[l.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider block mb-2",children:"Activity"}),l.jsxs("div",{className:"space-y-0 relative",children:[l.jsx("div",{className:"absolute left-[9px] top-2 bottom-2 w-px bg-border-subtle"}),s.slice(-12).reverse().map((d,O)=>{const h=MA(d.text),p=h.icon;return l.jsxs("div",{className:"flex items-start gap-3 py-1.5 relative",children:[l.jsx("div",{className:re("w-[18px] h-[18px] rounded-full flex items-center justify-center flex-shrink-0 z-10","bg-surface-1 border border-border-subtle"),children:l.jsx(p,{size:9,className:h.color})}),l.jsx("span",{className:"text-2xs text-text-2 font-sans flex-1 line-clamp-1 pt-0.5",children:d.text}),l.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0 pt-0.5",children:vt(d.timestamp)})]},O)})]})]})]})}function UA({agent:t}){const n=D(z=>z.addToast),[s,r]=v.useState([]),[o,u]=v.useState(""),[d,O]=v.useState(null),[h,p]=v.useState(""),[x,g]=v.useState(""),[b,y]=v.useState(!1);async function Q(){try{const z=await K.get(`/agents/${t.id}/mdfiles`);r(z.files||[]),u(z.workingDir||"")}catch{}}v.useEffect(()=>{Q()},[t.id]);async function w(z){try{const N=await K.get(`/agents/${t.id}/mdfiles/read?path=${encodeURIComponent(z)}`);p(N.content||""),g(N.content||""),O(z)}catch(N){n("error","Failed to read file",N.message)}}async function k(){if(d){y(!0);try{await K.put(`/agents/${t.id}/mdfiles/write`,{path:d,content:h}),g(h),n("success",`Saved ${d}`)}catch(z){n("error","Save failed",z.message)}y(!1)}}const j=h!==x;return d?l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-border-subtle",children:[l.jsx("button",{onClick:()=>{O(null),p(""),g("")},className:"p-1 text-text-3 hover:text-text-0 cursor-pointer",children:l.jsx(Ab,{size:14})}),l.jsx(Ia,{size:12,className:"text-accent"}),l.jsx("span",{className:"text-xs text-text-0 font-sans font-medium flex-1 truncate",children:d}),j&&l.jsx("span",{className:"text-[10px] text-warning font-sans",children:"unsaved"}),l.jsxs("button",{onClick:k,disabled:!j||b,className:re("flex items-center gap-1 px-2.5 py-1 rounded text-2xs font-sans font-medium cursor-pointer transition-colors",j?"bg-accent/15 text-accent hover:bg-accent/25":"text-text-4 opacity-50 cursor-not-allowed"),children:[l.jsx(gN,{size:10}),b?"Saving...":"Save"]})]}),l.jsx("textarea",{value:h,onChange:z=>p(z.target.value),className:"flex-1 w-full px-4 py-3 bg-surface-0 text-[12px] font-mono text-text-1 leading-relaxed resize-none focus:outline-none",spellCheck:!1})]}):l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsxs("div",{className:"flex items-center gap-2 px-4 py-2.5 border-b border-border-subtle",children:[l.jsx(Ia,{size:12,className:"text-text-3"}),l.jsx("span",{className:"text-2xs font-semibold text-text-2 font-sans uppercase tracking-wider flex-1",children:"Markdown Files"}),l.jsx("button",{onClick:Q,className:"p-1 text-text-4 hover:text-text-1 cursor-pointer",children:l.jsx(Cn,{size:11})})]}),o&&l.jsx("div",{className:"px-4 py-1.5 text-[10px] text-text-4 font-mono truncate border-b border-border-subtle/50",children:o}),l.jsx("div",{className:"flex-1 overflow-y-auto",children:s.length===0?l.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-4",children:[l.jsx(Ia,{size:20,className:"text-text-4 mb-2"}),l.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No markdown files found"}),l.jsx("p",{className:"text-[10px] text-text-4 font-sans mt-1",children:"MD files in the agent's working directory will appear here"})]}):l.jsx("div",{className:"py-1",children:s.map(z=>l.jsxs("button",{onClick:()=>w(z.path),className:"w-full flex items-center gap-2.5 px-4 py-2 text-left hover:bg-surface-5 transition-colors cursor-pointer",children:[l.jsx(Ia,{size:13,className:"text-accent flex-shrink-0"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("span",{className:"text-xs text-text-0 font-sans block truncate",children:z.name}),l.jsx("span",{className:"text-[10px] text-text-4 font-mono",children:z.path})]}),l.jsx("span",{className:"text-[10px] text-text-4 font-mono flex-shrink-0",children:z.size>1024?`${(z.size/1024).toFixed(1)}K`:`${z.size}B`})]},z.path))})})]})}const VA={running:"success",starting:"warning",stopped:"default",crashed:"danger",completed:"accent",killed:"default",rotating:"purple"},GA={running:"Running",starting:"Starting",stopped:"Stopped",crashed:"Crashed",completed:"Done",killed:"Killed",rotating:"Rotating"},LA=[{id:"command",label:"Chat",icon:gi},{id:"config",label:"Config",icon:Fb},{id:"telemetry",label:"Monitor",icon:bc},{id:"mdfiles",label:"Files",icon:Ia}];function DA({agent:t}){const n=D(h=>h.addToast),[s,r]=v.useState(!1),[o,u]=v.useState(t.name),d=v.useRef(null);async function O(){const h=o.trim();if(!h||h===t.name){r(!1);return}try{await K.patch(`/agents/${t.id}`,{name:h.replace(/\s+/g,"-")}),n("success",`Renamed → ${h}`)}catch(p){n("error","Rename failed",p.message),u(t.name)}r(!1)}return s?l.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0",children:[l.jsx("input",{ref:d,value:o,onChange:h=>u(h.target.value),onKeyDown:h=>{h.key==="Enter"&&O(),h.key==="Escape"&&(u(t.name),r(!1))},className:"flex-1 min-w-0 h-6 px-1.5 text-sm font-bold bg-surface-0 border border-accent/30 rounded text-text-0 font-sans focus:outline-none focus:ring-1 focus:ring-accent/40",autoFocus:!0}),l.jsx("button",{onClick:O,className:"p-0.5 text-accent hover:text-accent/80 cursor-pointer",children:l.jsx(Qt,{size:12})}),l.jsx("button",{onClick:()=>{u(t.name),r(!1)},className:"p-0.5 text-text-4 hover:text-text-1 cursor-pointer",children:l.jsx(jt,{size:12})})]}):l.jsxs("div",{className:"flex items-center gap-1.5 flex-1 min-w-0 group",children:[l.jsx("h2",{className:"text-sm font-bold text-text-0 font-sans truncate",children:t.name}),l.jsx("button",{onClick:()=>{u(t.name),r(!0)},className:"p-0.5 text-text-4 opacity-0 group-hover:opacity-100 hover:text-text-1 cursor-pointer transition-opacity",children:l.jsx(Wc,{size:10})})]})}function WA(){const t=D(p=>p.detailPanel),n=D(p=>p.agents),[s,r]=v.useState("command");if((t==null?void 0:t.type)!=="agent")return null;const o=n.find(p=>p.id===t.agentId);if(!o)return null;const u=o.status==="running"||o.status==="starting",d=Math.round((o.contextUsage||0)*100),O=o.spawnedAt||o.createdAt,h=O?Math.floor((Date.now()-new Date(O).getTime())/1e3):0;return Bc(o.role),l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsxs("div",{className:"flex-shrink-0",children:[l.jsxs("div",{className:"pl-4 pr-10 pt-3 pb-2",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(DA,{agent:o}),l.jsx(ze,{variant:VA[o.status]||"default",dot:u?"pulse":void 0,className:"text-2xs flex-shrink-0",children:GA[o.status]||o.status})]}),l.jsxs("div",{className:"flex items-center gap-2 mt-1 text-2xs text-text-3 font-mono",children:[l.jsx("span",{className:"capitalize",children:o.role}),l.jsx("span",{className:"text-text-4",children:"·"}),l.jsxs("span",{children:[o.provider,":",o.model||"auto"]}),l.jsx("span",{className:"text-text-4",children:"·"}),l.jsxs("span",{children:[Ke(o.tokensUsed||0)," tok"]}),d>0&&l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"text-text-4",children:"·"}),l.jsxs("span",{className:re(d>80?"text-danger":d>60?"text-warning":"text-text-3"),children:[d,"% ctx"]})]}),l.jsx("span",{className:"text-text-4",children:"·"}),l.jsx("span",{children:Hc(h)})]})]}),l.jsx("div",{className:"flex items-center px-4 border-b border-border-subtle",children:LA.map(p=>{const x=p.icon,g=s===p.id;return l.jsxs("button",{onClick:()=>r(p.id),className:re("flex items-center gap-1.5 px-3 py-2 text-2xs font-semibold font-sans transition-all cursor-pointer select-none border-b-2 -mb-px",g?"border-accent text-text-0":"border-transparent text-text-3 hover:text-text-1"),children:[l.jsx(x,{size:11}),p.label]},p.id)})})]}),l.jsxs("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[s==="command"&&l.jsx(XA,{agent:o}),s==="config"&&l.jsx(ZA,{agent:o}),s==="telemetry"&&l.jsx(YA,{agent:o}),s==="mdfiles"&&l.jsx(UA,{agent:o})]})]})}const BA=[{id:"planner",label:"Planner",desc:"Plans the team and tasks",icon:Hb,tier:"Heavy"},{id:"backend",label:"Backend",desc:"APIs, services, databases",icon:Ib,tier:"Medium"},{id:"frontend",label:"Frontend",desc:"UI, components, styling",icon:sh,tier:"Medium"},{id:"fullstack",label:"Fullstack",desc:"End-to-end implementation",icon:ss,tier:"Heavy"},{id:"testing",label:"Testing",desc:"Tests, coverage, QA",icon:oh,tier:"Medium"},{id:"devops",label:"DevOps",desc:"CI/CD, infra, deployment",icon:L$,tier:"Medium"},{id:"docs",label:"Docs",desc:"Documentation, guides",icon:Ia,tier:"Light"},{id:"security",label:"Security",desc:"Audits, vulnerabilities",icon:Yl,tier:"Medium"},{id:"database",label:"Database",desc:"Schema, migrations, queries",icon:I$,tier:"Medium"},{id:"cmo",label:"CMO",desc:"Marketing, content, growth",icon:VT,tier:"Medium"},{id:"cfo",label:"CFO",desc:"Finance, metrics, forecasting",icon:z$,tier:"Medium"},{id:"ea",label:"EA",desc:"Executive assistant, scheduling",icon:EN,tier:"Light"},{id:"support",label:"Support",desc:"Customer support, FAQs",icon:yT,tier:"Medium"},{id:"analyst",label:"Analyst",desc:"Data analysis, insights",icon:Lc,tier:"Medium"},{id:"creative",label:"Writer",desc:"Copy, articles, proposals",icon:aN,tier:"Heavy",skillHint:!0},{id:"slides",label:"Slides",desc:"Pitch decks, presentations",icon:dN,tier:"Heavy",skillHint:!0}];function HA(){return l.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",className:"text-accent flex-shrink-0",children:[l.jsx("circle",{cx:"7",cy:"7",r:"6",fill:"currentColor",fillOpacity:"0.15",stroke:"currentColor",strokeWidth:"1"}),l.jsx("path",{d:"M4.5 7 L6.5 9 L9.5 5.5",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function IA(){const t=D(E=>E.detailPanel),n=D(E=>E.closeDetail),s=D(E=>E.spawnAgent),r=D(E=>E.fetchProviders),o=(t==null?void 0:t.type)==="spawn",[u,d]=v.useState(""),[O,h]=v.useState(""),[p,x]=v.useState(""),[g,b]=v.useState(""),[y,Q]=v.useState(""),[w,k]=v.useState(""),[j,z]=v.useState([]),[N,X]=v.useState([]),[G,R]=v.useState([]),[_,T]=v.useState(!1),[Y,M]=v.useState(""),[ae,F]=v.useState(!1);v.useEffect(()=>{o&&(r().then(E=>{const ce=Array.isArray(E)?E:E.providers||[];z(ce);const ee=ce.filter(ve=>ve.installed);if(ee.length>0&&!g){const Se=["claude-code","gemini","codex","ollama"].find(ye=>ee.some(Ce=>Ce.id===ye))||ee[0].id;b(Se)}}).catch(()=>{}),K.get("/skills/installed").then(E=>{X(Array.isArray(E)?E:[])}).catch(()=>{}),d(""),h(""),x(""),b(""),Q(""),k(""),R([]))},[o,r]);const se=u||O,ie=j.find(E=>E.id===g),W=(ie==null?void 0:ie.models)||[],P=j.filter(E=>E.installed);async function B(){if(se){F(!0);try{const E={role:se,...p&&{name:p.replace(/\s+/g,"-")},...g&&{provider:g},...y&&{model:y},...w&&{prompt:w},...G.length>0&&{skills:G}};await s(E),n()}catch{}F(!1)}}return l.jsx(BS,{open:o,onOpenChange:E=>{E||n()},children:l.jsx(HS,{title:"Spawn Agent",width:480,children:l.jsxs("div",{className:"flex flex-col h-[calc(100%-57px)]",children:[l.jsxs("div",{className:"flex-1 overflow-y-auto px-5 py-4 space-y-6",children:[l.jsxs("div",{children:[l.jsx("label",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider block mb-3",children:"Choose Role"}),l.jsx("div",{className:"grid grid-cols-2 gap-2",children:BA.map(E=>{const ce=Bc(E.id),ee=u===E.id;return l.jsxs("button",{onClick:()=>{d(E.id),h("")},className:re("flex items-center gap-2.5 p-3 rounded-md border text-left transition-all cursor-pointer",ee?"border-accent bg-accent/5":"border-border-subtle bg-surface-1 hover:border-border hover:bg-surface-2"),children:[l.jsx("div",{className:"w-8 h-8 rounded-md flex items-center justify-center flex-shrink-0",style:{background:ce.bg},children:l.jsx(E.icon,{size:16,style:{color:ce.text}})}),l.jsxs("div",{className:"min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans",children:E.label}),E.skillHint&&l.jsx("span",{className:"text-2xs font-mono text-warning/70 bg-warning/8 px-1 py-px rounded",children:"skill"})]}),l.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:E.desc})]})]},E.id)})}),l.jsx("div",{className:"mt-3",children:l.jsx(_c,{placeholder:"or type a custom role (e.g. chat-agent)...",value:O,onChange:E=>{h(E.target.value.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9_-]/g,"").slice(0,50)),d("")},className:"text-xs"})})]}),se&&l.jsxs("div",{className:"space-y-4",children:[l.jsx("label",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider block",children:"Configuration"}),l.jsx(_c,{label:"Name (optional)",value:p,onChange:E=>x(E.target.value),placeholder:`${se}-1`}),l.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[l.jsxs("div",{className:"space-y-1",children:[l.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Provider"}),l.jsxs("div",{className:"relative",children:[l.jsxs("select",{value:g,onChange:E=>{b(E.target.value),Q("")},className:"w-full h-8 px-3 pr-8 text-sm rounded-md bg-surface-1 border border-border text-text-0 font-sans appearance-none cursor-pointer focus:outline-none focus:ring-1 focus:ring-accent",children:[l.jsx("option",{value:"",children:"Auto"}),j.map(E=>l.jsxs("option",{value:E.id,disabled:!E.installed,children:[E.name,E.installed?"":" (not installed)"]},E.id))]}),l.jsx(zn,{size:14,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-3 pointer-events-none"})]})]}),l.jsxs("div",{className:"space-y-1",children:[l.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Model"}),l.jsxs("div",{className:"relative",children:[l.jsxs("select",{value:y,onChange:E=>Q(E.target.value),disabled:!g,className:"w-full h-8 px-3 pr-8 text-sm rounded-md bg-surface-1 border border-border text-text-0 font-sans appearance-none cursor-pointer focus:outline-none focus:ring-1 focus:ring-accent disabled:opacity-40",children:[l.jsx("option",{value:"",children:"Auto"}),W.map(E=>l.jsx("option",{value:E.id,children:E.name},E.id))]}),l.jsx(zn,{size:14,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-3 pointer-events-none"})]})]})]}),g&&ie&&l.jsx("div",{className:"text-2xs text-text-3 font-sans flex items-center gap-2",children:ie.authType==="local"?l.jsx(ze,{variant:"success",children:"Local"}):ie.authType==="subscription"?l.jsx(ze,{variant:"accent",children:"Subscription"}):ie.hasKey?l.jsx(ze,{variant:"success",children:"API key set"}):l.jsxs(ze,{variant:"warning",children:["No API key — set with: groove set-key ",g," YOUR_KEY"]})}),l.jsxs("div",{className:"space-y-1.5",children:[l.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Skills"}),l.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[G.map(E=>{const ce=N.find(ee=>ee.id===E);return l.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 rounded bg-accent/12 text-accent border border-accent/25 text-2xs font-sans",children:[l.jsx(Kr,{size:9}),(ce==null?void 0:ce.name)||E,l.jsx("button",{onClick:()=>R(ee=>ee.filter(ve=>ve!==E)),className:"ml-0.5 hover:text-text-0 cursor-pointer",children:l.jsx(jt,{size:9})})]},E)}),l.jsxs("button",{onClick:()=>{T(!0),M("")},className:re("inline-flex items-center gap-1.5 px-2.5 py-1 rounded text-2xs font-sans transition-colors cursor-pointer","bg-surface-0 text-text-2 border border-border-subtle hover:border-border hover:text-text-0"),children:[l.jsx(Kr,{size:10}),G.length>0?"Add skill":"Attach skill"]})]})]}),l.jsx(Ch,{open:_,onOpenChange:T,children:l.jsx(_h,{title:"Select Skill",className:"max-w-sm",children:l.jsxs("div",{className:"space-y-3 p-4",children:[l.jsxs("div",{className:"relative",children:[l.jsx(fa,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-text-4"}),l.jsx("input",{value:Y,onChange:E=>M(E.target.value),placeholder:"Search skills...",autoFocus:!0,className:"w-full h-8 pl-8 pr-3 text-xs rounded-md bg-surface-0 border border-border text-text-0 font-sans focus:outline-none focus:ring-1 focus:ring-accent"})]}),l.jsxs("div",{className:"max-h-64 overflow-y-auto space-y-1",children:[N.filter(E=>{if(!Y)return!0;const ce=Y.toLowerCase();return(E.name||E.id).toLowerCase().includes(ce)||(E.description||"").toLowerCase().includes(ce)}).map(E=>{const ce=G.includes(E.id);return l.jsxs("button",{onClick:()=>{R(ee=>ce?ee.filter(ve=>ve!==E.id):[...ee,E.id])},className:re("w-full flex items-center gap-2.5 px-3 py-2 rounded-md text-left transition-colors cursor-pointer",ce?"bg-accent/10 border border-accent/25":"hover:bg-surface-3 border border-transparent"),children:[l.jsx(Kr,{size:12,className:ce?"text-accent":"text-text-3"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:E.name||E.id}),E.description&&l.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:E.description})]}),ce&&l.jsx(HA,{})]},E.id)}),N.length===0&&l.jsx("div",{className:"text-center py-6 text-xs text-text-3 font-sans",children:"No skills installed. Visit the Marketplace to install skills."})]})]})})})]})]}),l.jsxs("div",{className:"border-t border-border-subtle px-5 py-4 bg-surface-1",children:[P.length===0&&j.length>0&&l.jsxs("div",{className:"flex items-center gap-2 mb-3 px-3 py-2 rounded-md bg-warning/8 border border-warning/20",children:[l.jsx(vi,{size:13,className:"text-warning flex-shrink-0"}),l.jsx("span",{className:"text-2xs font-sans text-text-2",children:"No AI providers installed. Install Claude Code, Gemini CLI, Codex, or Ollama to spawn agents."})]}),se&&P.length>0&&l.jsxs("div",{className:"flex items-center gap-2 mb-3 text-xs text-text-3 font-sans",children:[l.jsx("span",{children:"Spawning"}),l.jsx(ze,{variant:"accent",children:se}),g&&l.jsxs("span",{children:["on ",(ie==null?void 0:ie.name)||g]}),p&&l.jsxs("span",{children:["as ",p.replace(/\s+/g,"-")]})]}),l.jsx(ge,{variant:"primary",size:"lg",onClick:B,disabled:!se||ae||P.length===0,className:"w-full",children:ae?"Spawning...":"Spawn Agent"})]})]})})})}function T0({title:t,icon:n,defaultOpen:s=!1,badge:r,children:o,className:u}){const[d,O]=v.useState(s);return l.jsxs("div",{className:re("border-t border-border-subtle",u),children:[l.jsxs("button",{onClick:()=>O(!d),className:"w-full flex items-center gap-2 px-5 py-3 text-left cursor-pointer hover:bg-surface-5/30 transition-colors group",children:[l.jsx(as,{size:12,className:re("text-text-4 transition-transform duration-200 flex-shrink-0",d&&"rotate-90")}),n&&l.jsx(n,{size:13,className:"text-text-3 flex-shrink-0"}),l.jsx("span",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider flex-1",children:t}),r&&l.jsx("span",{className:"text-2xs font-mono text-text-4 bg-surface-4 px-1.5 py-0.5 rounded",children:r})]}),d&&l.jsx("div",{className:"px-5 pb-4",children:o})]})}function FA(){const t=D(g=>g.journalistStatus),n=D(g=>g.fetchJournalist),s=D(g=>g.triggerJournalistCycle),[r,o]=v.useState(!0),[u,d]=v.useState(!1);v.useEffect(()=>{n().then(()=>o(!1));const g=setInterval(n,1e4);return()=>clearInterval(g)},[n]);async function O(){d(!0);try{await s()}catch{}d(!1)}if(r)return l.jsxs("div",{className:"p-5 space-y-4",children:[l.jsx(on,{className:"h-6 w-32 rounded"}),l.jsx(on,{className:"h-20 rounded-md"}),l.jsx(on,{className:"h-20 rounded-md"})]});const h=t||{},p=h.lastSynthesis,x=h.history||[];return l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsxs("div",{className:"px-5 py-4 border-b border-border-subtle flex items-center gap-2",children:[l.jsx(ii,{size:16,className:"text-accent"}),l.jsx("h3",{className:"text-sm font-semibold text-text-0 font-sans flex-1",children:"Journalist"}),l.jsxs(ge,{variant:"secondary",size:"sm",onClick:O,disabled:u,className:"gap-1.5 text-2xs",children:[l.jsx(Cn,{size:11,className:u?"animate-spin":""}),u?"Running...":"Run Synthesis"]})]}),l.jsx(ma,{className:"flex-1",children:l.jsxs("div",{className:"px-5 py-4 space-y-5",children:[l.jsxs("div",{className:"flex items-center gap-3 text-2xs text-text-3 font-sans",children:[l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx(bc,{size:10}),l.jsxs("span",{children:[h.cycleCount||0," cycles"]})]}),h.lastCycleTime&&l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx(yf,{size:10}),l.jsxs("span",{children:["Last: ",vt(h.lastCycleTime)]})]}),l.jsx(ze,{variant:h.cycleCount>0?"success":"default",className:"text-2xs",children:h.cycleCount>0?"Active":"Idle"})]}),(p==null?void 0:p.summary)&&l.jsxs("div",{className:"space-y-2",children:[l.jsxs("label",{className:"text-xs font-semibold text-text-1 font-sans flex items-center gap-1.5",children:[l.jsx(Ia,{size:12,className:"text-text-3"}),"Latest Summary"]}),l.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3 text-xs text-text-2 font-sans leading-relaxed",children:p.summary})]}),(p==null?void 0:p.projectMap)&&l.jsx(T0,{title:"Project Map",icon:ZT,children:l.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3 text-xs text-text-2 font-mono leading-relaxed max-h-64 overflow-y-auto whitespace-pre-wrap",children:p.projectMap})}),(p==null?void 0:p.decisions)&&l.jsx(T0,{title:"Decisions Log",icon:Ia,children:l.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3 text-xs text-text-2 font-mono leading-relaxed max-h-64 overflow-y-auto whitespace-pre-wrap",children:p.decisions})}),x.length>0&&l.jsxs("div",{className:"space-y-2",children:[l.jsxs("label",{className:"text-xs font-semibold text-text-1 font-sans flex items-center gap-1.5",children:[l.jsx(yf,{size:12,className:"text-text-3"}),"History (",x.length,")"]}),l.jsx("div",{className:"space-y-1.5",children:x.slice().reverse().slice(0,20).map((g,b)=>l.jsxs("div",{className:"bg-surface-0 rounded-md border border-border-subtle px-3 py-2",children:[l.jsxs("div",{className:"flex items-center gap-2 text-2xs",children:[l.jsxs(ze,{variant:"default",className:"text-2xs",children:["Cycle ",g.cycle]}),l.jsxs("span",{className:"text-text-4 font-sans",children:[g.agentCount," agent",g.agentCount!==1?"s":""]}),l.jsx("span",{className:"text-text-4 font-sans ml-auto",children:vt(g.timestamp)})]}),g.summary&&l.jsx("p",{className:"text-xs text-text-2 font-sans mt-1 leading-relaxed",children:g.summary})]},b))})]}),!p&&x.length===0&&l.jsxs("div",{className:"text-center py-8 text-text-4 font-sans",children:[l.jsx(ii,{size:28,className:"mx-auto mb-2"}),l.jsx("p",{className:"text-sm",children:"No synthesis data yet"}),l.jsx("p",{className:"text-2xs mt-1",children:"The journalist runs automatically when agents are active, or trigger manually above"})]})]})})]})}function KA({children:t,height:n,onHeightChange:s,visible:r,fullHeight:o,tabs:u,activeTab:d,onSelectTab:O,onAddTab:h,onCloseTab:p,onToggleFullHeight:x,onMinimize:g}){const b=v.useRef(!1),y=v.useRef(0),Q=v.useRef(0),w=v.useCallback(j=>{if(o)return;j.preventDefault(),b.current=!0,y.current=j.clientY,Q.current=n;function z(X){if(!b.current)return;const G=y.current-X.clientY,R=Math.min(Math.max(Q.current+G,120),600);s(R)}function N(){b.current=!1,document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",N)}document.addEventListener("mousemove",z),document.addEventListener("mouseup",N)},[n,s,o]);if(!r)return null;const k=u||[{id:"default",label:"Terminal"}];return l.jsxs("div",{className:"flex flex-col border-t border-border bg-surface-0 relative",style:o?{flex:1,minHeight:0}:{height:n,flexShrink:0},children:[!o&&l.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 cursor-row-resize hover:bg-accent/30 transition-colors z-10",onMouseDown:w}),l.jsxs("div",{className:"flex items-center h-9 bg-surface-1 border-b border-border-subtle flex-shrink-0 pl-3 pr-1.5",children:[l.jsxs("div",{className:"flex items-center gap-0 flex-1 min-w-0 overflow-x-auto scrollbar-none",children:[k.map(j=>l.jsxs("button",{onClick:()=>O==null?void 0:O(j.id),className:re("flex items-center gap-1.5 pl-2.5 pr-1 h-7 text-2xs font-sans cursor-pointer select-none transition-colors flex-shrink-0 rounded-t",j.id===d?"text-text-0 bg-surface-0":"text-text-3 hover:text-text-1 hover:bg-surface-0/50"),children:[l.jsx(bi,{size:10}),l.jsx("span",{className:"truncate max-w-[80px]",children:j.label}),k.length>1&&l.jsx("button",{onClick:z=>{z.stopPropagation(),p==null||p(j.id)},className:"ml-0.5 p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-text-1 cursor-pointer",children:l.jsx(jt,{size:9})})]},j.id)),l.jsx("button",{onClick:h,className:"flex items-center justify-center w-6 h-6 text-text-4 hover:text-text-1 hover:bg-surface-0/50 rounded cursor-pointer transition-colors flex-shrink-0 ml-0.5",title:"New terminal",children:l.jsx(es,{size:11})})]}),l.jsx("div",{className:"flex items-center gap-0.5 flex-shrink-0 ml-2",children:o?l.jsx("button",{onClick:g,className:"p-1.5 rounded text-text-3 hover:text-text-0 hover:bg-surface-5 cursor-pointer transition-colors",title:"Restore",children:l.jsx(WT,{size:12})}):l.jsx("button",{onClick:x,className:"p-1.5 rounded text-text-3 hover:text-text-0 hover:bg-surface-5 cursor-pointer transition-colors",title:"Maximize",children:l.jsx(qT,{size:12})})})]}),l.jsx("div",{className:"flex-1 min-h-0 p-2",children:t})]})}const JA={background:"#1a1e25",foreground:"#bcc2cd",cursor:"#33afbc",cursorAccent:"#1a1e25",selectionBackground:"rgba(51, 175, 188, 0.25)",black:"#1a1e25",red:"#e06c75",green:"#4ae168",yellow:"#e5c07b",blue:"#61afef",magenta:"#c678dd",cyan:"#33afbc",white:"#bcc2cd",brightBlack:"#505862",brightRed:"#e06c75",brightGreen:"#4ae168",brightYellow:"#e5c07b",brightBlue:"#61afef",brightMagenta:"#c678dd",brightCyan:"#33afbc",brightWhite:"#e6e6e6"};let uf=0;function eZ({tabId:t,visible:n}){const s=v.useRef(null),r=v.useRef(null),o=v.useRef(null),u=v.useRef(null),d=v.useRef(!1);return v.useEffect(()=>{if(!s.current||d.current)return;d.current=!0;const O=new Jj({theme:JA,fontFamily:"'JetBrains Mono Variable', 'SF Mono', monospace",fontSize:13,lineHeight:1.4,cursorBlink:!0,cursorStyle:"bar",scrollback:5e3,allowProposedApi:!0}),h=new ew;O.loadAddon(h),O.loadAddon(new tw),O.open(s.current),r.current=O,requestAnimationFrame(()=>h.fit());function p(){const g=D.getState().ws;if(!g||g.readyState!==WebSocket.OPEN){setTimeout(p,500);return}g.send(JSON.stringify({type:"terminal:spawn",cols:O.cols,rows:O.rows}));function b(y){let Q;try{Q=JSON.parse(y.data)}catch{return}Q.type==="terminal:spawned"&&!o.current?o.current=Q.id:Q.type==="terminal:output"&&Q.id===o.current?O.write(Q.data):Q.type==="terminal:exit"&&Q.id===o.current&&(O.write(`\r
637
+ \x1B[90m[session ended]\x1B[0m\r
638
+ `),o.current=null)}g.addEventListener("message",b),u.current={ws:g,handler:b},O.onData(y=>{const Q=D.getState().ws;(Q==null?void 0:Q.readyState)===WebSocket.OPEN&&o.current&&Q.send(JSON.stringify({type:"terminal:input",id:o.current,data:y}))}),O.onResize(({cols:y,rows:Q})=>{const w=D.getState().ws;(w==null?void 0:w.readyState)===WebSocket.OPEN&&o.current&&w.send(JSON.stringify({type:"terminal:resize",id:o.current,rows:Q,cols:y}))})}p();const x=new ResizeObserver(()=>{requestAnimationFrame(()=>{try{h.fit()}catch{}})});return x.observe(s.current),()=>{x.disconnect();const g=D.getState().ws;(g==null?void 0:g.readyState)===WebSocket.OPEN&&o.current&&g.send(JSON.stringify({type:"terminal:kill",id:o.current})),u.current&&u.current.ws.removeEventListener("message",u.current.handler),O.dispose(),d.current=!1}},[]),v.useEffect(()=>{n&&r.current&&requestAnimationFrame(()=>{var O,h,p,x,g;try{(g=(x=(p=(h=(O=r.current._addonManager)==null?void 0:O._addons)==null?void 0:h[0])==null?void 0:p.instance)==null?void 0:x.fit)==null||g.call(x)}catch{}})},[n]),l.jsx("div",{ref:s,className:"w-full h-full",style:{display:n?"block":"none"}})}function tZ(){const t=D(b=>b.terminalVisible),n=D(b=>b.terminalHeight),s=D(b=>b.setTerminalVisible),r=D(b=>b.setTerminalHeight),o=D(b=>b.terminalFullHeight),u=D(b=>b.setTerminalFullHeight),[d,O]=v.useState([{id:"term-0",label:"Terminal"}]),[h,p]=v.useState("term-0"),x=v.useCallback(()=>{uf++;const b=`term-${uf}`;O(y=>[...y,{id:b,label:`Terminal ${uf+1}`}]),p(b)},[]),g=v.useCallback(b=>{O(y=>{const Q=y.filter(w=>w.id!==b);if(Q.length===0)return s(!1),y;if(h===b){const w=y.findIndex(j=>j.id===b),k=Q[Math.min(w,Q.length-1)];p(k.id)}return Q})},[h,s]);return l.jsx(KA,{visible:t,height:n,onHeightChange:r,fullHeight:o,tabs:d,activeTab:h,onSelectTab:p,onAddTab:x,onCloseTab:g,onToggleFullHeight:()=>u(!0),onMinimize:()=>u(!1),children:d.map(b=>l.jsx(eZ,{tabId:b.id,visible:b.id===h},b.id))})}class nZ extends Da.Component{constructor(n){super(n),this.state={error:null}}static getDerivedStateFromError(n){return{error:n}}render(){return this.state.error?l.jsxs("div",{className:"h-screen bg-surface-0 p-10 font-sans",children:[l.jsx("h2",{className:"text-lg font-semibold text-text-0 mb-4",children:"Groove — Render Error"}),l.jsx("pre",{className:"text-sm text-danger whitespace-pre-wrap mb-4",children:this.state.error.message}),l.jsx("pre",{className:"text-xs text-text-3 whitespace-pre-wrap",children:this.state.error.stack}),l.jsx("button",{onClick:()=>this.setState({error:null}),className:"mt-6 px-4 py-2 bg-accent text-surface-0 rounded-md font-medium text-sm cursor-pointer",children:"Try Again"})]}):this.props.children}}function aZ(){const t=D(o=>o.activeView),n=D(o=>o.detailPanel);let s;switch(t){case"agents":s=l.jsx(u1,{});break;case"editor":s=l.jsx(PC,{});break;case"dashboard":s=l.jsx(g_,{});break;case"marketplace":s=l.jsx(BX,{});break;case"teams":s=l.jsx(JX,{});break;case"models":s=l.jsx(jA,{});break;case"settings":s=l.jsx(pA,{});break;default:s=l.jsx(u1,{})}let r=null;if(n)switch(n.type){case"agent":r=l.jsx(WA,{});break;case"journalist":r=l.jsx(FA,{});break;case"spawn":r=null;break}return l.jsxs(uP,{detailContent:r,terminalContent:l.jsx(tZ,{}),children:[s,l.jsx(IA,{})]})}function sZ(){return l.jsxs("div",{className:"h-screen bg-surface-0 flex flex-col items-center justify-center gap-4",children:[l.jsx("img",{src:"/favicon.png",alt:"",className:"w-10 h-10 opacity-60 animate-pulse"}),l.jsx("p",{className:"text-sm text-text-3 font-sans",children:"Connecting..."})]})}function lZ(){const t=D(s=>s.connect),n=D(s=>s.hydrated);return v.useEffect(()=>{t()},[t]),n?l.jsx(nZ,{children:l.jsx(aZ,{})}):l.jsx(sZ,{})}rw.createRoot(document.getElementById("root")).render(l.jsx(v.StrictMode,{children:l.jsx(lZ,{})}));