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.
- package/CHANGELOG.md +55 -0
- package/node_modules/@groove-dev/daemon/src/providers/claude-code.js +4 -2
- package/node_modules/@groove-dev/gui/dist/assets/index-CEFKgLGB.css +1 -0
- package/node_modules/@groove-dev/gui/dist/assets/index-VrNtEof4.js +638 -0
- package/node_modules/@groove-dev/gui/dist/index.html +2 -2
- package/node_modules/@groove-dev/gui/src/components/dashboard/fleet-panel.jsx +10 -7
- package/node_modules/@groove-dev/gui/src/components/marketplace/integration-wizard.jsx +514 -0
- package/node_modules/@groove-dev/gui/src/views/dashboard.jsx +3 -1
- package/node_modules/@groove-dev/gui/src/views/marketplace.jsx +26 -4
- package/package.json +1 -1
- package/packages/daemon/src/providers/claude-code.js +4 -2
- package/packages/gui/dist/assets/index-CEFKgLGB.css +1 -0
- package/packages/gui/dist/assets/index-VrNtEof4.js +638 -0
- package/packages/gui/dist/index.html +2 -2
- package/packages/gui/src/components/dashboard/fleet-panel.jsx +10 -7
- package/packages/gui/src/components/marketplace/integration-wizard.jsx +514 -0
- package/packages/gui/src/views/dashboard.jsx +3 -1
- package/packages/gui/src/views/marketplace.jsx +26 -4
- package/node_modules/@groove-dev/gui/dist/assets/index-BnNZzcsd.css +0 -1
- package/node_modules/@groove-dev/gui/dist/assets/index-CPF9iasK.js +0 -638
- package/packages/gui/dist/assets/index-BnNZzcsd.css +0 -1
- package/packages/gui/dist/assets/index-CPF9iasK.js +0 -638
|
@@ -1,638 +0,0 @@
|
|
|
1
|
-
import{r as bj,c as vj,a as v,j as r,b as $0,A as Af,m as Zf,R as Ga}from"./vendor-C0HXlhrU.js";import{r as yj,a as T0,R as Sj,H as Da,P as Wa,b as Qj,u as jj,c as kj,d as wj,i as $j,B as Tj}from"./reactflow-BQPfi37R.js";import{P as N0,N as Ef,a as di,D as Nj,b as ra,T as pn,I as _c,s as zs,t as Z,L as ws,i as P0,c as z0,d as R0,e as Oi,f as Vl,g as Pj,h as $l,j as nc,k as Rs,l as Ac,m as Fe,E as Xl,n as bn,o as Ha,p as C0,q as qf,r as X0,u as zj,v as Rj,w as Cj,x as cf,y as Xj,z as Jr,A as _j,B as Aj,C as Zj,F as _0,G as Ej,H as Rg,J as qj,K as Mj,M as Yj,O as Uj,Q as Vj,R as Gj,S as Lj,U as Dj,V as Wj,W as Bj,X as Hj,Y as Ij,Z as Fj}from"./codemirror-BBL3i_JW.js";import{D as Kj,o as Jj,L as ek}from"./xterm--7_ns2zW.js";(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(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"&&l(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 l(o){if(o.ep)return;o.ep=!0;const u=s(o);fetch(o.href,u)}})();var pO={exports:{}},Vr={},xO={exports:{}},gO={};/**
|
|
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 Cg;function tk(){return Cg||(Cg=1,(function(t){function a(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 l(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,be=ee>>>1;ce<be;){var Se=2*(ce+1)-1,ye=P[Se],Re=Se+1,H=P[Re];if(0>o(ye,E))Re<ee&&0>o(H,ye)?(P[ce]=H,P[Re]=E,ce=Re):(P[ce]=ye,P[Se]=E,ce=Se);else if(Re<ee&&0>o(H,E))P[ce]=H,P[Re]=E,ce=Re;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,k=!1,$=!1,j=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function _(P){for(var B=s(p);B!==null;){if(B.callback===null)l(p);else if(B.startTime<=P)l(p),B.sortIndex=B.expirationTime,a(h,B);else break;B=s(p)}}function G(P){if(k=!1,_(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,X=-1,T=5,Y=-1;function M(){return $?!0:!(t.unstable_now()-Y<T)}function ae(){if($=!1,R){var P=t.unstable_now();Y=P;var B=!0;try{e:{Q=!1,k&&(k=!1,z(X),X=-1),y=!0;var E=b;try{t:{for(_(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,_(P),B=!0;break t}g===s(h)&&l(h),_(P)}else l(h);g=s(h)}if(g!==null)B=!0;else{var be=s(p);be!==null&&W(G,be.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){X=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(){$=!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,a(p,P),s(h)===null&&P===s(p)&&(k?(z(X),X=-1):k=!0,W(G,E-ce))):(P.sortIndex=ee,a(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}}}})(gO)),gO}var Xg;function nk(){return Xg||(Xg=1,xO.exports=tk()),xO.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 _g;function ak(){if(_g)return Vr;_g=1;var t=nk(),a=bj(),s=yj();function l(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var n=e,i=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(i=n.return),e=n.return;while(e)}return n.tag===3?i:null}function d(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function O(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(u(e)!==e)throw Error(l(188))}function p(e){var n=e.alternate;if(!n){if(n=u(e),n===null)throw Error(l(188));return n!==e?null:e}for(var i=e,c=n;;){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),n;m=m.sibling}throw Error(l(188))}if(i.return!==c.return)i=f,c=m;else{for(var S=!1,w=f.child;w;){if(w===i){S=!0,i=f,c=m;break}if(w===c){S=!0,c=f,i=m;break}w=w.sibling}if(!S){for(w=m.child;w;){if(w===i){S=!0,i=m,c=f;break}if(w===c){S=!0,c=m,i=f;break}w=w.sibling}if(!S)throw Error(l(189))}}if(i.alternate!==c)throw Error(l(190))}if(i.tag!==3)throw Error(l(188));return i.stateNode.current===i?e:n}function x(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=x(e),n!==null)return n;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"),k=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),N=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),X=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 k:return"Fragment";case j:return"Profiler";case $: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 _:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return n=e.displayName||null,n!==null?n:ie(e.type)||"Memo";case T:n=e._payload,e=e._init;try{return ie(e(n))}catch{}}return null}var W=Array.isArray,P=a.__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 be(e){return{current:e}}function Se(e){0>ee||(e.current=ce[ee],ce[ee]=null,ee--)}function ye(e,n){ee++,ce[ee]=e.current,e.current=n}var Re=be(null),H=be(null),ue=be(null),Ce=be(null);function Ot(e,n){switch(ye(ue,n),ye(H,e),ye(Re,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?tg(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=tg(n),e=ng(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Se(Re),ye(Re,e)}function Ze(){Se(Re),Se(H),Se(ue)}function He(e){e.memoizedState!==null&&ye(Ce,e);var n=Re.current,i=ng(n,e.type);n!==i&&(ye(H,e),ye(Re,i))}function bt(e){H.current===e&&(Se(Re),Se(H)),Ce.current===e&&(Se(Ce),qr._currentValue=E)}var un,Ht;function yt(e){if(un===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);un=n&&n[1]||"",Ht=-1<i.stack.indexOf(`
|
|
18
|
-
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
-
`+un+e+Ht}var Hl=!1;function Il(e,n){if(!e||Hl)return"";Hl=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(n){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],w=m[1];if(S&&w){var C=S.split(`
|
|
20
|
-
`),V=w.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 K=`
|
|
22
|
-
`+C[c].replace(" at new "," at ");return e.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",e.displayName)),K}while(1<=c&&0<=f);break}}}finally{Hl=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?yt(i):""}function tu(e,n){switch(e.tag){case 26:case 27:case 5:return yt(e.type);case 16:return yt("Lazy");case 13:return e.child!==n&&n!==null?yt("Suspense Fallback"):yt("Suspense");case 19:return yt("SuspenseList");case 0:case 15:return Il(e.type,!1);case 11:return Il(e.type.render,!1);case 1:return Il(e.type,!0);case 31:return yt("Activity");default:return""}}function Si(e){try{var n="",i=null;do n+=tu(e,i),i=e,e=e.return;while(e);return n}catch(c){return`
|
|
23
|
-
Error generating stack: `+c.message+`
|
|
24
|
-
`+c.stack}}var ha=Object.prototype.hasOwnProperty,nu=t.unstable_scheduleCallback,au=t.unstable_cancelCallback,FS=t.unstable_shouldYield,KS=t.unstable_requestPaint,Rt=t.unstable_now,JS=t.unstable_getCurrentPriorityLevel,Ch=t.unstable_ImmediatePriority,Xh=t.unstable_UserBlockingPriority,Qi=t.unstable_NormalPriority,e2=t.unstable_LowPriority,_h=t.unstable_IdlePriority,t2=t.log,n2=t.unstable_setDisableYieldValue,Fl=null,Ct=null;function ma(e){if(typeof t2=="function"&&n2(e),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(Fl,e)}catch{}}var Xt=Math.clz32?Math.clz32:l2,a2=Math.log,s2=Math.LN2;function l2(e){return e>>>=0,e===0?32:31-(a2(e)/s2|0)|0}var ji=256,ki=262144,wi=4194304;function ss(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072: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 $i(e,n,i){var c=e.pendingLanes;if(c===0)return 0;var f=0,m=e.suspendedLanes,S=e.pingedLanes;e=e.warmLanes;var w=c&134217727;return w!==0?(c=w&~m,c!==0?f=ss(c):(S&=w,S!==0?f=ss(S):i||(i=w&~e,i!==0&&(f=ss(i))))):(w=c&~m,w!==0?f=ss(w):S!==0?f=ss(S):i||(i=c&~e,i!==0&&(f=ss(i)))),f===0?0:n!==0&&n!==f&&(n&m)===0&&(m=f&-f,i=n&-n,m>=i||m===32&&(i&4194048)!==0)?n:f}function Kl(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function r2(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ah(){var e=wi;return wi<<=1,(wi&62914560)===0&&(wi=4194304),e}function su(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function Jl(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function i2(e,n,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 w=e.entanglements,C=e.expirationTimes,V=e.hiddenUpdates;for(i=S&~i;0<i;){var K=31-Xt(i),ne=1<<K;w[K]=0,C[K]=-1;var L=V[K];if(L!==null)for(V[K]=null,K=0;K<L.length;K++){var I=L[K];I!==null&&(I.lane&=-536870913)}i&=~ne}c!==0&&Zh(e,c,0),m!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=m&~(S&~n))}function Zh(e,n,i){e.pendingLanes|=n,e.suspendedLanes&=~n;var c=31-Xt(n);e.entangledLanes|=n,e.entanglements[c]=e.entanglements[c]|1073741824|i&261930}function Eh(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var c=31-Xt(i),f=1<<c;f&n|e[c]&n&&(e[c]|=n),i&=~f}}function qh(e,n){var i=n&-n;return i=(i&42)!==0?1:lu(i),(i&(e.suspendedLanes|n))!==0?0:i}function lu(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 ru(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Mh(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:kg(e.type))}function Yh(e,n){var i=B.p;try{return B.p=e,n()}finally{B.p=i}}var pa=Math.random().toString(36).slice(2),ft="__reactFiber$"+pa,jt="__reactProps$"+pa,As="__reactContainer$"+pa,iu="__reactEvents$"+pa,o2="__reactListeners$"+pa,c2="__reactHandles$"+pa,Uh="__reactResources$"+pa,er="__reactMarker$"+pa;function ou(e){delete e[ft],delete e[jt],delete e[iu],delete e[o2],delete e[c2]}function Zs(e){var n=e[ft];if(n)return n;for(var i=e.parentNode;i;){if(n=i[As]||i[ft]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=cg(e);e!==null;){if(i=e[ft])return i;e=cg(e)}return n}e=i,i=e.parentNode}return null}function Es(e){if(e=e[ft]||e[As]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function tr(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(l(33))}function qs(e){var n=e[Uh];return n||(n=e[Uh]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function ut(e){e[er]=!0}var Vh=new Set,Gh={};function ls(e,n){Ms(e,n),Ms(e+"Capture",n)}function Ms(e,n){for(Gh[e]=n,e=0;e<n.length;e++)Vh.add(n[e])}var u2=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]*$"),Lh={},Dh={};function d2(e){return ha.call(Dh,e)?!0:ha.call(Lh,e)?!1:u2.test(e)?Dh[e]=!0:(Lh[e]=!0,!1)}function Ti(e,n,i){if(d2(n))if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var c=n.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+i)}}function Ni(e,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+i)}}function _n(e,n,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(n,i,""+c)}}function It(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wh(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function O2(e,n,i){var c=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var f=c.get,m=c.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(S){i=""+S,m.call(this,S)}}),Object.defineProperty(e,n,{enumerable:c.enumerable}),{getValue:function(){return i},setValue:function(S){i=""+S},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function cu(e){if(!e._valueTracker){var n=Wh(e)?"checked":"value";e._valueTracker=O2(e,n,""+e[n])}}function Bh(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),c="";return e&&(c=Wh(e)?e.checked?"true":"false":e.value),e=c,e!==i?(n.setValue(e),!0):!1}function Pi(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 f2=/[\n"\\]/g;function Ft(e){return e.replace(f2,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function uu(e,n,i,c,f,m,S,w){e.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.type=S:e.removeAttribute("type"),n!=null?S==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+It(n)):e.value!==""+It(n)&&(e.value=""+It(n)):S!=="submit"&&S!=="reset"||e.removeAttribute("value"),n!=null?du(e,S,It(n)):i!=null?du(e,S,It(i)):c!=null&&e.removeAttribute("value"),f==null&&m!=null&&(e.defaultChecked=!!m),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+It(w):e.removeAttribute("name")}function Hh(e,n,i,c,f,m,S,w){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.type=m),n!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||n!=null)){cu(e);return}i=i!=null?""+It(i):"",n=n!=null?""+It(n):i,w||n===e.value||(e.value=n),e.defaultValue=n}c=c??f,c=typeof c!="function"&&typeof c!="symbol"&&!!c,e.checked=w?e.checked:!!c,e.defaultChecked=!!c,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(e.name=S),cu(e)}function du(e,n,i){n==="number"&&Pi(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Ys(e,n,i,c){if(e=e.options,n){n={};for(var f=0;f<i.length;f++)n["$"+i[f]]=!0;for(i=0;i<e.length;i++)f=n.hasOwnProperty("$"+e[i].value),e[i].selected!==f&&(e[i].selected=f),f&&c&&(e[i].defaultSelected=!0)}else{for(i=""+It(i),n=null,f=0;f<e.length;f++){if(e[f].value===i){e[f].selected=!0,c&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function Ih(e,n,i){if(n!=null&&(n=""+It(n),n!==e.value&&(e.value=n),i==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=i!=null?""+It(i):""}function Fh(e,n,i,c){if(n==null){if(c!=null){if(i!=null)throw Error(l(92));if(W(c)){if(1<c.length)throw Error(l(93));c=c[0]}i=c}i==null&&(i=""),n=i}i=It(n),e.defaultValue=i,c=e.textContent,c===i&&c!==""&&c!==null&&(e.value=c),cu(e)}function Us(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var h2=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 Kh(e,n,i){var c=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?c?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":c?e.setProperty(n,i):typeof i!="number"||i===0||h2.has(n)?n==="float"?e.cssFloat=i:e[n]=(""+i).trim():e[n]=i+"px"}function Jh(e,n,i){if(n!=null&&typeof n!="object")throw Error(l(62));if(e=e.style,i!=null){for(var c in i)!i.hasOwnProperty(c)||n!=null&&n.hasOwnProperty(c)||(c.indexOf("--")===0?e.setProperty(c,""):c==="float"?e.cssFloat="":e[c]="");for(var f in n)c=n[f],n.hasOwnProperty(f)&&i[f]!==c&&Kh(e,f,c)}else for(var m in n)n.hasOwnProperty(m)&&Kh(e,m,n[m])}function Ou(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 m2=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"]]),p2=/^[\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 zi(e){return p2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function An(){}var fu=null;function hu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vs=null,Gs=null;function em(e){var n=Es(e);if(n&&(e=n.stateNode)){var i=e[jt]||null;e:switch(e=n.stateNode,n.type){case"input":if(uu(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Ft(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var c=i[n];if(c!==e&&c.form===e.form){var f=c[jt]||null;if(!f)throw Error(l(90));uu(c,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<i.length;n++)c=i[n],c.form===e.form&&Bh(c)}break e;case"textarea":Ih(e,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&Ys(e,!!i.multiple,n,!1)}}}var mu=!1;function tm(e,n,i){if(mu)return e(n,i);mu=!0;try{var c=e(n);return c}finally{if(mu=!1,(Vs!==null||Gs!==null)&&(bo(),Vs&&(n=Vs,e=Gs,Gs=Vs=null,em(n),e)))for(n=0;n<e.length;n++)em(e[n])}}function nr(e,n){var i=e.stateNode;if(i===null)return null;var c=i[jt]||null;if(c===null)return null;i=c[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(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(l(231,n,typeof i));return i}var Zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pu=!1;if(Zn)try{var ar={};Object.defineProperty(ar,"passive",{get:function(){pu=!0}}),window.addEventListener("test",ar,ar),window.removeEventListener("test",ar,ar)}catch{pu=!1}var xa=null,xu=null,Ri=null;function nm(){if(Ri)return Ri;var e,n=xu,i=n.length,c,f="value"in xa?xa.value:xa.textContent,m=f.length;for(e=0;e<i&&n[e]===f[e];e++);var S=i-e;for(c=1;c<=S&&n[i-c]===f[m-c];c++);return Ri=f.slice(e,1<c?1-c:void 0)}function Ci(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Xi(){return!0}function am(){return!1}function kt(e){function n(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 w in e)e.hasOwnProperty(w)&&(i=e[w],this[w]=i?i(m):m[w]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Xi:am,this.isPropagationStopped=am,this}return g(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Xi)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Xi)},persist:function(){},isPersistent:Xi}),n}var rs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_i=kt(rs),sr=g({},rs,{view:0,detail:0}),x2=kt(sr),gu,bu,lr,Ai=g({},sr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yu,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!==lr&&(lr&&e.type==="mousemove"?(gu=e.screenX-lr.screenX,bu=e.screenY-lr.screenY):bu=gu=0,lr=e),gu)},movementY:function(e){return"movementY"in e?e.movementY:bu}}),sm=kt(Ai),g2=g({},Ai,{dataTransfer:0}),b2=kt(g2),v2=g({},sr,{relatedTarget:0}),vu=kt(v2),y2=g({},rs,{animationName:0,elapsedTime:0,pseudoElement:0}),S2=kt(y2),Q2=g({},rs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),j2=kt(Q2),k2=g({},rs,{data:0}),lm=kt(k2),w2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$2={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"},T2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function N2(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=T2[e])?!!n[e]:!1}function yu(){return N2}var P2=g({},sr,{key:function(e){if(e.key){var n=w2[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Ci(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yu,charCode:function(e){return e.type==="keypress"?Ci(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ci(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),z2=kt(P2),R2=g({},Ai,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rm=kt(R2),C2=g({},sr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yu}),X2=kt(C2),_2=g({},rs,{propertyName:0,elapsedTime:0,pseudoElement:0}),A2=kt(_2),Z2=g({},Ai,{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}),E2=kt(Z2),q2=g({},rs,{newState:0,oldState:0}),M2=kt(q2),Y2=[9,13,27,32],Su=Zn&&"CompositionEvent"in window,rr=null;Zn&&"documentMode"in document&&(rr=document.documentMode);var U2=Zn&&"TextEvent"in window&&!rr,im=Zn&&(!Su||rr&&8<rr&&11>=rr),om=" ",cm=!1;function um(e,n){switch(e){case"keyup":return Y2.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ls=!1;function V2(e,n){switch(e){case"compositionend":return dm(n);case"keypress":return n.which!==32?null:(cm=!0,om);case"textInput":return e=n.data,e===om&&cm?null:e;default:return null}}function G2(e,n){if(Ls)return e==="compositionend"||!Su&&um(e,n)?(e=nm(),Ri=xu=xa=null,Ls=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return im&&n.locale!=="ko"?null:n.data;default:return null}}var L2={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 Om(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!L2[e.type]:n==="textarea"}function fm(e,n,i,c){Vs?Gs?Gs.push(c):Gs=[c]:Vs=c,n=wo(n,"onChange"),0<n.length&&(i=new _i("onChange","change",null,i,c),e.push({event:i,listeners:n}))}var ir=null,or=null;function D2(e){Hx(e,0)}function Zi(e){var n=tr(e);if(Bh(n))return e}function hm(e,n){if(e==="change")return n}var mm=!1;if(Zn){var Qu;if(Zn){var ju="oninput"in document;if(!ju){var pm=document.createElement("div");pm.setAttribute("oninput","return;"),ju=typeof pm.oninput=="function"}Qu=ju}else Qu=!1;mm=Qu&&(!document.documentMode||9<document.documentMode)}function xm(){ir&&(ir.detachEvent("onpropertychange",gm),or=ir=null)}function gm(e){if(e.propertyName==="value"&&Zi(or)){var n=[];fm(n,or,e,hu(e)),tm(D2,n)}}function W2(e,n,i){e==="focusin"?(xm(),ir=n,or=i,ir.attachEvent("onpropertychange",gm)):e==="focusout"&&xm()}function B2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zi(or)}function H2(e,n){if(e==="click")return Zi(n)}function I2(e,n){if(e==="input"||e==="change")return Zi(n)}function F2(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var _t=typeof Object.is=="function"?Object.is:F2;function cr(e,n){if(_t(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),c=Object.keys(n);if(i.length!==c.length)return!1;for(c=0;c<i.length;c++){var f=i[c];if(!ha.call(n,f)||!_t(e[f],n[f]))return!1}return!0}function bm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function vm(e,n){var i=bm(e);e=0;for(var c;i;){if(i.nodeType===3){if(c=e+i.textContent.length,e<=n&&c>=n)return{node:i,offset:n-e};e=c}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=bm(i)}}function ym(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?ym(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Sm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Pi(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=Pi(e.document)}return n}function ku(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var K2=Zn&&"documentMode"in document&&11>=document.documentMode,Ds=null,wu=null,ur=null,$u=!1;function Qm(e,n,i){var c=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;$u||Ds==null||Ds!==Pi(c)||(c=Ds,"selectionStart"in c&&ku(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}),ur&&cr(ur,c)||(ur=c,c=wo(wu,"onSelect"),0<c.length&&(n=new _i("onSelect","select",null,n,i),e.push({event:n,listeners:c}),n.target=Ds)))}function is(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var Ws={animationend:is("Animation","AnimationEnd"),animationiteration:is("Animation","AnimationIteration"),animationstart:is("Animation","AnimationStart"),transitionrun:is("Transition","TransitionRun"),transitionstart:is("Transition","TransitionStart"),transitioncancel:is("Transition","TransitionCancel"),transitionend:is("Transition","TransitionEnd")},Tu={},jm={};Zn&&(jm=document.createElement("div").style,"AnimationEvent"in window||(delete Ws.animationend.animation,delete Ws.animationiteration.animation,delete Ws.animationstart.animation),"TransitionEvent"in window||delete Ws.transitionend.transition);function os(e){if(Tu[e])return Tu[e];if(!Ws[e])return e;var n=Ws[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in jm)return Tu[e]=n[i];return e}var km=os("animationend"),wm=os("animationiteration"),$m=os("animationstart"),J2=os("transitionrun"),eQ=os("transitionstart"),tQ=os("transitioncancel"),Tm=os("transitionend"),Nm=new Map,Nu="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(" ");Nu.push("scrollEnd");function dn(e,n){Nm.set(e,n),ls(n,[e])}var Ei=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Kt=[],Bs=0,Pu=0;function qi(){for(var e=Bs,n=Pu=Bs=0;n<e;){var i=Kt[n];Kt[n++]=null;var c=Kt[n];Kt[n++]=null;var f=Kt[n];Kt[n++]=null;var m=Kt[n];if(Kt[n++]=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&&Pm(i,f,m)}}function Mi(e,n,i,c){Kt[Bs++]=e,Kt[Bs++]=n,Kt[Bs++]=i,Kt[Bs++]=c,Pu|=c,e.lanes|=c,e=e.alternate,e!==null&&(e.lanes|=c)}function zu(e,n,i,c){return Mi(e,n,i,c),Yi(e)}function cs(e,n){return Mi(e,null,null,n),Yi(e)}function Pm(e,n,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&&n!==null&&(f=31-Xt(i),e=m.hiddenUpdates,c=e[f],c===null?e[f]=[n]:c.push(n),n.lane=i|536870912),m):null}function Yi(e){if(50<Rr)throw Rr=0,Md=null,Error(l(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Hs={};function nQ(e,n,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=n,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 At(e,n,i,c){return new nQ(e,n,i,c)}function Ru(e){return e=e.prototype,!(!e||!e.isReactComponent)}function En(e,n){var i=e.alternate;return i===null?(i=At(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,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,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function zm(e,n){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=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,n=i.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Ui(e,n,i,c,f,m){var S=0;if(c=e,typeof e=="function")Ru(e)&&(S=1);else if(typeof e=="string")S=ij(e,i,Re.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Y:return e=At(31,i,n,f),e.elementType=Y,e.lanes=m,e;case k:return us(i.children,f,m,n);case $:S=8,f|=24;break;case j:return e=At(12,i,n,f|2),e.elementType=j,e.lanes=m,e;case G:return e=At(13,i,n,f),e.elementType=G,e.lanes=m,e;case R:return e=At(19,i,n,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 _:S=11;break e;case X:S=14;break e;case T:S=16,c=null;break e}S=29,i=Error(l(130,e===null?"null":typeof e,"")),c=null}return n=At(S,i,n,f),n.elementType=e,n.type=c,n.lanes=m,n}function us(e,n,i,c){return e=At(7,e,c,n),e.lanes=i,e}function Cu(e,n,i){return e=At(6,e,null,n),e.lanes=i,e}function Rm(e){var n=At(18,null,null,0);return n.stateNode=e,n}function Xu(e,n,i){return n=At(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Cm=new WeakMap;function Jt(e,n){if(typeof e=="object"&&e!==null){var i=Cm.get(e);return i!==void 0?i:(n={value:e,source:n,stack:Si(n)},Cm.set(e,n),n)}return{value:e,source:n,stack:Si(n)}}var Is=[],Fs=0,Vi=null,dr=0,en=[],tn=0,ga=null,Sn=1,Qn="";function qn(e,n){Is[Fs++]=dr,Is[Fs++]=Vi,Vi=e,dr=n}function Xm(e,n,i){en[tn++]=Sn,en[tn++]=Qn,en[tn++]=ga,ga=e;var c=Sn;e=Qn;var f=32-Xt(c)-1;c&=~(1<<f),i+=1;var m=32-Xt(n)+f;if(30<m){var S=f-f%5;m=(c&(1<<S)-1).toString(32),c>>=S,f-=S,Sn=1<<32-Xt(n)+f|i<<f|c,Qn=m+e}else Sn=1<<m|i<<f|c,Qn=e}function _u(e){e.return!==null&&(qn(e,1),Xm(e,1,0))}function Au(e){for(;e===Vi;)Vi=Is[--Fs],Is[Fs]=null,dr=Is[--Fs],Is[Fs]=null;for(;e===ga;)ga=en[--tn],en[tn]=null,Qn=en[--tn],en[tn]=null,Sn=en[--tn],en[tn]=null}function _m(e,n){en[tn++]=Sn,en[tn++]=Qn,en[tn++]=ga,Sn=n.id,Qn=n.overflow,ga=e}var ht=null,De=null,Pe=!1,ba=null,nn=!1,Zu=Error(l(519));function va(e){var n=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Or(Jt(n,e)),Zu}function Am(e){var n=e.stateNode,i=e.type,c=e.memoizedProps;switch(n[ft]=e,n[jt]=c,i){case"dialog":$e("cancel",n),$e("close",n);break;case"iframe":case"object":case"embed":$e("load",n);break;case"video":case"audio":for(i=0;i<Xr.length;i++)$e(Xr[i],n);break;case"source":$e("error",n);break;case"img":case"image":case"link":$e("error",n),$e("load",n);break;case"details":$e("toggle",n);break;case"input":$e("invalid",n),Hh(n,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":$e("invalid",n);break;case"textarea":$e("invalid",n),Fh(n,c.value,c.defaultValue,c.children)}i=c.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||c.suppressHydrationWarning===!0||Jx(n.textContent,i)?(c.popover!=null&&($e("beforetoggle",n),$e("toggle",n)),c.onScroll!=null&&$e("scroll",n),c.onScrollEnd!=null&&$e("scrollend",n),c.onClick!=null&&(n.onclick=An),n=!0):n=!1,n||va(e,!0)}function Zm(e){for(ht=e.return;ht;)switch(ht.tag){case 5:case 31:case 13:nn=!1;return;case 27:case 3:nn=!0;return;default:ht=ht.return}}function Ks(e){if(e!==ht)return!1;if(!Pe)return Zm(e),Pe=!0,!1;var n=e.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||tO(e.type,e.memoizedProps)),i=!i),i&&De&&va(e),Zm(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));De=og(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));De=og(e)}else n===27?(n=De,Xa(e.type)?(e=rO,rO=null,De=e):De=n):De=ht?sn(e.stateNode.nextSibling):null;return!0}function ds(){De=ht=null,Pe=!1}function Eu(){var e=ba;return e!==null&&(Nt===null?Nt=e:Nt.push.apply(Nt,e),ba=null),e}function Or(e){ba===null?ba=[e]:ba.push(e)}var qu=be(null),Os=null,Mn=null;function ya(e,n,i){ye(qu,n._currentValue),n._currentValue=i}function Yn(e){e._currentValue=qu.current,Se(qu)}function Mu(e,n,i){for(;e!==null;){var c=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,c!==null&&(c.childLanes|=n)):c!==null&&(c.childLanes&n)!==n&&(c.childLanes|=n),e===i)break;e=e.return}}function Yu(e,n,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 w=m;m=f;for(var C=0;C<n.length;C++)if(w.context===n[C]){m.lanes|=i,w=m.alternate,w!==null&&(w.lanes|=i),Mu(m.return,i,e),c||(S=null);break e}m=w.next}}else if(f.tag===18){if(S=f.return,S===null)throw Error(l(341));S.lanes|=i,m=S.alternate,m!==null&&(m.lanes|=i),Mu(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 Js(e,n,i,c){e=null;for(var f=n,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(l(387));if(S=S.memoizedProps,S!==null){var w=f.type;_t(f.pendingProps.value,S.value)||(e!==null?e.push(w):e=[w])}}else if(f===Ce.current){if(S=f.alternate,S===null)throw Error(l(387));S.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(qr):e=[qr])}f=f.return}e!==null&&Yu(n,e,i,c),n.flags|=262144}function Gi(e){for(e=e.firstContext;e!==null;){if(!_t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function fs(e){Os=e,Mn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return Em(Os,e)}function Li(e,n){return Os===null&&fs(e),Em(e,n)}function Em(e,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},Mn===null){if(e===null)throw Error(l(308));Mn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Mn=Mn.next=n;return i}var aQ=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(i,c){e.push(c)}};this.abort=function(){n.aborted=!0,e.forEach(function(i){return i()})}},sQ=t.unstable_scheduleCallback,lQ=t.unstable_NormalPriority,at={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Uu(){return{controller:new aQ,data:new Map,refCount:0}}function fr(e){e.refCount--,e.refCount===0&&sQ(lQ,function(){e.controller.abort()})}var hr=null,Vu=0,el=0,tl=null;function rQ(e,n){if(hr===null){var i=hr=[];Vu=0,el=Dd(),tl={status:"pending",value:void 0,then:function(c){i.push(c)}}}return Vu++,n.then(qm,qm),n}function qm(){if(--Vu===0&&hr!==null){tl!==null&&(tl.status="fulfilled");var e=hr;hr=null,el=0,tl=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function iQ(e,n){var i=[],c={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return e.then(function(){c.status="fulfilled",c.value=n;for(var f=0;f<i.length;f++)(0,i[f])(n)},function(f){for(c.status="rejected",c.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),c}var Mm=P.S;P.S=function(e,n){Qx=Rt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&rQ(e,n),Mm!==null&&Mm(e,n)};var hs=be(null);function Gu(){var e=hs.current;return e!==null?e:Le.pooledCache}function Di(e,n){n===null?ye(hs,hs.current):ye(hs,n.pool)}function Ym(){var e=Gu();return e===null?null:{parent:at._currentValue,pool:e}}var nl=Error(l(460)),Lu=Error(l(474)),Wi=Error(l(542)),Bi={then:function(){}};function Um(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Vm(e,n,i){switch(i=e[i],i===void 0?e.push(n):i!==n&&(n.then(An,An),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Lm(e),e;default:if(typeof n.status=="string")n.then(An,An);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=n,e.status="pending",e.then(function(c){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=c}},function(c){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=c}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Lm(e),e}throw ps=n,nl}}function ms(e){try{var n=e._init;return n(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(ps=i,nl):i}}var ps=null;function Gm(){if(ps===null)throw Error(l(459));var e=ps;return ps=null,e}function Lm(e){if(e===nl||e===Wi)throw Error(l(483))}var al=null,mr=0;function Hi(e){var n=mr;return mr+=1,al===null&&(al=[]),Vm(al,e,n)}function pr(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Ii(e,n){throw n.$$typeof===b?Error(l(525)):(e=Object.prototype.toString.call(n),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Dm(e){function n(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;)n(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=En(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 w(q,A,U,te){return A===null||A.tag!==6?(A=Cu(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===k?K(q,A,U.props.children,te,U.key):A!==null&&(A.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===T&&ms(xe)===A.type)?(A=f(A,U.props),pr(A,U),A.return=q,A):(A=Ui(U.type,U.key,U.props,null,q.mode,te),pr(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=Xu(U,q.mode,te),A.return=q,A):(A=f(A,U.children||[]),A.return=q,A)}function K(q,A,U,te,xe){return A===null||A.tag!==7?(A=us(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=Cu(""+A,q.mode,U),A.return=q,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case y:return U=Ui(A.type,A.key,A.props,null,q.mode,U),pr(U,A),U.return=q,U;case Q:return A=Xu(A,q.mode,U),A.return=q,A;case T:return A=ms(A),ne(q,A,U)}if(W(A)||F(A))return A=us(A,q.mode,U,null),A.return=q,A;if(typeof A.then=="function")return ne(q,Hi(A),U);if(A.$$typeof===N)return ne(q,Li(q,A),U);Ii(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:w(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=ms(U),L(q,A,U,te)}if(W(U)||F(U))return xe!==null?null:K(q,A,U,te,null);if(typeof U.then=="function")return L(q,A,Hi(U),te);if(U.$$typeof===N)return L(q,A,Li(q,U),te);Ii(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,w(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=ms(te),I(q,A,U,te,xe)}if(W(te)||F(te))return q=q.get(U)||null,K(A,q,te,xe,null);if(typeof te.then=="function")return I(q,A,U,Hi(te),xe);if(te.$$typeof===N)return I(q,A,U,Li(A,te),xe);Ii(A,te)}return null}function de(q,A,U,te){for(var xe=null,_e=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&&n(q,he),A=m(Ae,A,je),_e===null?xe=Ae:_e.sibling=Ae,_e=Ae,he=Ne}if(je===U.length)return i(q,he),Pe&&qn(q,je),xe;if(he===null){for(;je<U.length;je++)he=ne(q,U[je],te),he!==null&&(A=m(he,A,je),_e===null?xe=he:_e.sibling=he,_e=he);return Pe&&qn(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),_e===null?xe=Ne:_e.sibling=Ne,_e=Ne);return e&&he.forEach(function(qa){return n(q,qa)}),Pe&&qn(q,je),xe}function ge(q,A,U,te){if(U==null)throw Error(l(151));for(var xe=null,_e=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 qa=L(q,he,Ae.value,te);if(qa===null){he===null&&(he=Ne);break}e&&he&&qa.alternate===null&&n(q,he),A=m(qa,A,je),_e===null?xe=qa:_e.sibling=qa,_e=qa,he=Ne}if(Ae.done)return i(q,he),Pe&&qn(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),_e===null?xe=Ae:_e.sibling=Ae,_e=Ae);return Pe&&qn(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),_e===null?xe=Ae:_e.sibling=Ae,_e=Ae);return e&&he.forEach(function(gj){return n(q,gj)}),Pe&&qn(q,je),xe}function Ge(q,A,U,te){if(typeof U=="object"&&U!==null&&U.type===k&&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===k){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&&ms(xe)===A.type){i(q,A.sibling),te=f(A,U.props),pr(te,U),te.return=q,q=te;break e}i(q,A);break}else n(q,A);A=A.sibling}U.type===k?(te=us(U.props.children,q.mode,te,U.key),te.return=q,q=te):(te=Ui(U.type,U.key,U.props,null,q.mode,te),pr(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 n(q,A);A=A.sibling}te=Xu(U,q.mode,te),te.return=q,q=te}return S(q);case T:return U=ms(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(l(150));return U=xe.call(U),ge(q,A,U,te)}if(typeof U.then=="function")return Ge(q,A,Hi(U),te);if(U.$$typeof===N)return Ge(q,A,Li(q,U),te);Ii(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=Cu(U,q.mode,te),te.return=q,q=te),S(q)):i(q,A)}return function(q,A,U,te){try{mr=0;var xe=Ge(q,A,U,te);return al=null,xe}catch(he){if(he===nl||he===Wi)throw he;var _e=At(29,he,null,q.mode);return _e.lanes=te,_e.return=q,_e}finally{}}}var xs=Dm(!0),Wm=Dm(!1),Sa=!1;function Du(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wu(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Qa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ja(e,n,i){var c=e.updateQueue;if(c===null)return null;if(c=c.shared,(Ee&2)!==0){var f=c.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),c.pending=n,n=Yi(e),Pm(e,null,i),n}return Mi(e,c,n,i),Yi(e)}function xr(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var c=n.lanes;c&=e.pendingLanes,i|=c,n.lanes=i,Eh(e,i)}}function Bu(e,n){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=n:m=m.next=n}else f=m=n;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=n:e.next=n,i.lastBaseUpdate=n}var Hu=!1;function gr(){if(Hu){var e=tl;if(e!==null)throw e}}function br(e,n,i,c){Hu=!1;var f=e.updateQueue;Sa=!1;var m=f.firstBaseUpdate,S=f.lastBaseUpdate,w=f.shared.pending;if(w!==null){f.shared.pending=null;var C=w,V=C.next;C.next=null,S===null?m=V:S.next=V,S=C;var K=e.alternate;K!==null&&(K=K.updateQueue,w=K.lastBaseUpdate,w!==S&&(w===null?K.firstBaseUpdate=V:w.next=V,K.lastBaseUpdate=C))}if(m!==null){var ne=f.baseState;S=0,K=V=C=null,w=m;do{var L=w.lane&-536870913,I=L!==w.lane;if(I?(Te&L)===L:(c&L)===L){L!==0&&L===el&&(Hu=!0),K!==null&&(K=K.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var de=e,ge=w;L=n;var Ge=i;switch(ge.tag){case 1:if(de=ge.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=ge.payload,L=typeof de=="function"?de.call(Ge,ne,L):de,L==null)break e;ne=g({},ne,L);break e;case 2:Sa=!0}}L=w.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:w.tag,payload:w.payload,callback:w.callback,next:null},K===null?(V=K=I,C=ne):K=K.next=I,S|=L;if(w=w.next,w===null){if(w=f.shared.pending,w===null)break;I=w,w=I.next,I.next=null,f.lastBaseUpdate=I,f.shared.pending=null}}while(!0);K===null&&(C=ne),f.baseState=C,f.firstBaseUpdate=V,f.lastBaseUpdate=K,m===null&&(f.shared.lanes=0),Na|=S,e.lanes=S,e.memoizedState=ne}}function Bm(e,n){if(typeof e!="function")throw Error(l(191,e));e.call(n)}function Hm(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Bm(i[e],n)}var sl=be(null),Fi=be(0);function Im(e,n){e=In,ye(Fi,e),ye(sl,n),In=e|n.baseLanes}function Iu(){ye(Fi,In),ye(sl,sl.current)}function Fu(){In=Fi.current,Se(sl),Se(Fi)}var Zt=be(null),an=null;function ka(e){var n=e.alternate;ye(tt,tt.current&1),ye(Zt,e),an===null&&(n===null||sl.current!==null||n.memoizedState!==null)&&(an=e)}function Ku(e){ye(tt,tt.current),ye(Zt,e),an===null&&(an=e)}function Fm(e){e.tag===22?(ye(tt,tt.current),ye(Zt,e),an===null&&(an=e)):wa()}function wa(){ye(tt,tt.current),ye(Zt,Zt.current)}function Et(e){Se(Zt),an===e&&(an=null),Se(tt)}var tt=be(0);function Ki(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||sO(i)||lO(i)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Un=0,Qe=null,Ue=null,st=null,Ji=!1,ll=!1,gs=!1,eo=0,vr=0,rl=null,oQ=0;function Je(){throw Error(l(321))}function Ju(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!_t(e[i],n[i]))return!1;return!0}function ed(e,n,i,c,f,m){return Un=m,Qe=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,P.H=e===null||e.memoizedState===null?Xp:md,gs=!1,m=i(c,f),gs=!1,ll&&(m=Jm(n,i,c,f)),Km(e),m}function Km(e){P.H=Qr;var n=Ue!==null&&Ue.next!==null;if(Un=0,st=Ue=Qe=null,Ji=!1,vr=0,rl=null,n)throw Error(l(300));e===null||lt||(e=e.dependencies,e!==null&&Gi(e)&&(lt=!0))}function Jm(e,n,i,c){Qe=e;var f=0;do{if(ll&&(rl=null),vr=0,ll=!1,25<=f)throw Error(l(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=_p,m=n(i,c)}while(ll);return m}function cQ(){var e=P.H,n=e.useState()[0];return n=typeof n.then=="function"?yr(n):n,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(Qe.flags|=1024),n}function td(){var e=eo!==0;return eo=0,e}function nd(e,n,i){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i}function ad(e){if(Ji){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Ji=!1}Un=0,st=Ue=Qe=null,ll=!1,vr=eo=0,rl=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 n=st===null?Qe.memoizedState:st.next;if(n!==null)st=n,Ue=e;else{if(e===null)throw Qe.alternate===null?Error(l(467)):Error(l(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 to(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yr(e){var n=vr;return vr+=1,rl===null&&(rl=[]),e=Vm(rl,e,n),n=Qe,(st===null?n.memoizedState:st.next)===null&&(n=n.alternate,P.H=n===null||n.memoizedState===null?Xp:md),e}function no(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return yr(e);if(e.$$typeof===N)return mt(e)}throw Error(l(438,String(e)))}function sd(e){var n=null,i=Qe.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var c=Qe.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(n={data:c.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=to(),Qe.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(e),c=0;c<e;c++)i[c]=M;return n.index++,i}function Vn(e,n){return typeof n=="function"?n(e):n}function ao(e){var n=nt();return ld(n,Ue,e)}function ld(e,n,i){var c=e.queue;if(c===null)throw Error(l(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}n.baseQueue=f=m,c.pending=null}if(m=e.baseState,f===null)e.memoizedState=m;else{n=f.next;var w=S=null,C=null,V=n,K=!1;do{var ne=V.lane&-536870913;if(ne!==V.lane?(Te&ne)===ne:(Un&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===el&&(K=!0);else if((Un&L)===L){V=V.next,L===el&&(K=!0);continue}else ne={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},C===null?(w=C=ne,S=m):C=C.next=ne,Qe.lanes|=L,Na|=L;ne=V.action,gs&&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?(w=C=L,S=m):C=C.next=L,Qe.lanes|=ne,Na|=ne;V=V.next}while(V!==null&&V!==n);if(C===null?S=m:C.next=w,!_t(m,e.memoizedState)&&(lt=!0,K&&(i=tl,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 rd(e){var n=nt(),i=n.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=e;var c=i.dispatch,f=i.pending,m=n.memoizedState;if(f!==null){i.pending=null;var S=f=f.next;do m=e(m,S.action),S=S.next;while(S!==f);_t(m,n.memoizedState)||(lt=!0),n.memoizedState=m,n.baseQueue===null&&(n.baseState=m),i.lastRenderedState=m}return[m,c]}function ep(e,n,i){var c=Qe,f=nt(),m=Pe;if(m){if(i===void 0)throw Error(l(407));i=i()}else i=n();var S=!_t((Ue||f).memoizedState,i);if(S&&(f.memoizedState=i,lt=!0),f=f.queue,cd(ap.bind(null,c,f,e),[e]),f.getSnapshot!==n||S||st!==null&&st.memoizedState.tag&1){if(c.flags|=2048,il(9,{destroy:void 0},np.bind(null,c,f,i,n),null),Le===null)throw Error(l(349));m||(Un&127)!==0||tp(c,n,i)}return i}function tp(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=Qe.updateQueue,n===null?(n=to(),Qe.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function np(e,n,i,c){n.value=i,n.getSnapshot=c,sp(n)&&lp(e)}function ap(e,n,i){return i(function(){sp(n)&&lp(e)})}function sp(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!_t(e,i)}catch{return!0}}function lp(e){var n=cs(e,2);n!==null&&Pt(n,e,2)}function id(e){var n=St();if(typeof e=="function"){var i=e;if(e=i(),gs){ma(!0);try{i()}finally{ma(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:e},n}function rp(e,n,i,c){return e.baseState=i,ld(e,Ue,typeof c=="function"?c:Vn)}function uQ(e,n,i,c,f){if(ro(e))throw Error(l(485));if(e=n.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=n.pending,i===null?(m.next=n.pending=m,ip(n,m)):(m.next=i.next,n.pending=i.next=m)}}function ip(e,n){var i=n.action,c=n.payload,f=e.state;if(n.isTransition){var m=P.T,S={};P.T=S;try{var w=i(f,c),C=P.S;C!==null&&C(S,w),op(e,n,w)}catch(V){od(e,n,V)}finally{m!==null&&S.types!==null&&(m.types=S.types),P.T=m}}else try{m=i(f,c),op(e,n,m)}catch(V){od(e,n,V)}}function op(e,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(c){cp(e,n,c)},function(c){return od(e,n,c)}):cp(e,n,i)}function cp(e,n,i){n.status="fulfilled",n.value=i,up(n),e.state=i,n=e.pending,n!==null&&(i=n.next,i===n?e.pending=null:(i=i.next,n.next=i,ip(e,i)))}function od(e,n,i){var c=e.pending;if(e.pending=null,c!==null){c=c.next;do n.status="rejected",n.reason=i,up(n),n=n.next;while(n!==c)}e.action=null}function up(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function dp(e,n){return n}function Op(e,n){if(Pe){var i=Le.formState;if(i!==null){e:{var c=Qe;if(Pe){if(De){t:{for(var f=De,m=nn;f.nodeType!==8;){if(!m){f=null;break t}if(f=sn(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){De=sn(f.nextSibling),c=f.data==="F!";break e}}va(c)}c=!1}c&&(n=i[0])}}return i=St(),i.memoizedState=i.baseState=n,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dp,lastRenderedState:n},i.queue=c,i=zp.bind(null,Qe,c),c.dispatch=i,c=id(!1),m=hd.bind(null,Qe,!1,c.queue),c=St(),f={state:n,dispatch:null,action:e,pending:null},c.queue=f,i=uQ.bind(null,Qe,f,m,i),f.dispatch=i,c.memoizedState=e,[n,i,!1]}function fp(e){var n=nt();return hp(n,Ue,e)}function hp(e,n,i){if(n=ld(e,n,dp)[0],e=ao(Vn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var c=yr(n)}catch(S){throw S===nl?Wi:S}else c=n;n=nt();var f=n.queue,m=f.dispatch;return i!==n.memoizedState&&(Qe.flags|=2048,il(9,{destroy:void 0},dQ.bind(null,f,i),null)),[c,m,e]}function dQ(e,n){e.action=n}function mp(e){var n=nt(),i=Ue;if(i!==null)return hp(n,i,e);nt(),n=n.memoizedState,i=nt();var c=i.queue.dispatch;return i.memoizedState=e,[n,c,!1]}function il(e,n,i,c){return e={tag:e,create:i,deps:c,inst:n,next:null},n=Qe.updateQueue,n===null&&(n=to(),Qe.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=e.next=e:(c=i.next,i.next=e,e.next=c,n.lastEffect=e),e}function pp(){return nt().memoizedState}function so(e,n,i,c){var f=St();Qe.flags|=e,f.memoizedState=il(1|n,{destroy:void 0},i,c===void 0?null:c)}function lo(e,n,i,c){var f=nt();c=c===void 0?null:c;var m=f.memoizedState.inst;Ue!==null&&c!==null&&Ju(c,Ue.memoizedState.deps)?f.memoizedState=il(n,m,i,c):(Qe.flags|=e,f.memoizedState=il(1|n,m,i,c))}function xp(e,n){so(8390656,8,e,n)}function cd(e,n){lo(2048,8,e,n)}function OQ(e){Qe.flags|=4;var n=Qe.updateQueue;if(n===null)n=to(),Qe.updateQueue=n,n.events=[e];else{var i=n.events;i===null?n.events=[e]:i.push(e)}}function gp(e){var n=nt().memoizedState;return OQ({ref:n,nextImpl:e}),function(){if((Ee&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}function bp(e,n){return lo(4,2,e,n)}function vp(e,n){return lo(4,4,e,n)}function yp(e,n){if(typeof n=="function"){e=e();var i=n(e);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Sp(e,n,i){i=i!=null?i.concat([e]):null,lo(4,4,yp.bind(null,n,e),i)}function ud(){}function Qp(e,n){var i=nt();n=n===void 0?null:n;var c=i.memoizedState;return n!==null&&Ju(n,c[1])?c[0]:(i.memoizedState=[e,n],e)}function jp(e,n){var i=nt();n=n===void 0?null:n;var c=i.memoizedState;if(n!==null&&Ju(n,c[1]))return c[0];if(c=e(),gs){ma(!0);try{e()}finally{ma(!1)}}return i.memoizedState=[c,n],c}function dd(e,n,i){return i===void 0||(Un&1073741824)!==0&&(Te&261930)===0?e.memoizedState=n:(e.memoizedState=i,e=kx(),Qe.lanes|=e,Na|=e,i)}function kp(e,n,i,c){return _t(i,n)?i:sl.current!==null?(e=dd(e,i,c),_t(e,n)||(lt=!0),e):(Un&42)===0||(Un&1073741824)!==0&&(Te&261930)===0?(lt=!0,e.memoizedState=i):(e=kx(),Qe.lanes|=e,Na|=e,n)}function wp(e,n,i,c,f){var m=B.p;B.p=m!==0&&8>m?m:8;var S=P.T,w={};P.T=w,hd(e,!1,n,i);try{var C=f(),V=P.S;if(V!==null&&V(w,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var K=iQ(C,c);Sr(e,n,K,Yt(e))}else Sr(e,n,c,Yt(e))}catch(ne){Sr(e,n,{then:function(){},status:"rejected",reason:ne},Yt())}finally{B.p=m,S!==null&&w.types!==null&&(S.types=w.types),P.T=S}}function fQ(){}function Od(e,n,i,c){if(e.tag!==5)throw Error(l(476));var f=$p(e).queue;wp(e,f,n,E,i===null?fQ:function(){return Tp(e),i(c)})}function $p(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:E,baseState:E,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:E},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Tp(e){var n=$p(e);n.next===null&&(n=e.alternate.memoizedState),Sr(e,n.next.queue,{},Yt())}function fd(){return mt(qr)}function Np(){return nt().memoizedState}function Pp(){return nt().memoizedState}function hQ(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=Yt();e=Qa(i);var c=ja(n,e,i);c!==null&&(Pt(c,n,i),xr(c,n,i)),n={cache:Uu()},e.payload=n;return}n=n.return}}function mQ(e,n,i){var c=Yt();i={lane:c,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},ro(e)?Rp(n,i):(i=zu(e,n,i,c),i!==null&&(Pt(i,e,c),Cp(i,n,c)))}function zp(e,n,i){var c=Yt();Sr(e,n,i,c)}function Sr(e,n,i,c){var f={lane:c,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(ro(e))Rp(n,f);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=n.lastRenderedReducer,m!==null))try{var S=n.lastRenderedState,w=m(S,i);if(f.hasEagerState=!0,f.eagerState=w,_t(w,S))return Mi(e,n,f,0),Le===null&&qi(),!1}catch{}finally{}if(i=zu(e,n,f,c),i!==null)return Pt(i,e,c),Cp(i,n,c),!0}return!1}function hd(e,n,i,c){if(c={lane:2,revertLane:Dd(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},ro(e)){if(n)throw Error(l(479))}else n=zu(e,i,c,2),n!==null&&Pt(n,e,2)}function ro(e){var n=e.alternate;return e===Qe||n!==null&&n===Qe}function Rp(e,n){ll=Ji=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function Cp(e,n,i){if((i&4194048)!==0){var c=n.lanes;c&=e.pendingLanes,i|=c,n.lanes=i,Eh(e,i)}}var Qr={readContext:mt,use:no,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};Qr.useEffectEvent=Je;var Xp={readContext:mt,use:no,useCallback:function(e,n){return St().memoizedState=[e,n===void 0?null:n],e},useContext:mt,useEffect:xp,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,so(4194308,4,yp.bind(null,n,e),i)},useLayoutEffect:function(e,n){return so(4194308,4,e,n)},useInsertionEffect:function(e,n){so(4,2,e,n)},useMemo:function(e,n){var i=St();n=n===void 0?null:n;var c=e();if(gs){ma(!0);try{e()}finally{ma(!1)}}return i.memoizedState=[c,n],c},useReducer:function(e,n,i){var c=St();if(i!==void 0){var f=i(n);if(gs){ma(!0);try{i(n)}finally{ma(!1)}}}else f=n;return c.memoizedState=c.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},c.queue=e,e=e.dispatch=mQ.bind(null,Qe,e),[c.memoizedState,e]},useRef:function(e){var n=St();return e={current:e},n.memoizedState=e},useState:function(e){e=id(e);var n=e.queue,i=zp.bind(null,Qe,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:ud,useDeferredValue:function(e,n){var i=St();return dd(i,e,n)},useTransition:function(){var e=id(!1);return e=wp.bind(null,Qe,e.queue,!0,!1),St().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var c=Qe,f=St();if(Pe){if(i===void 0)throw Error(l(407));i=i()}else{if(i=n(),Le===null)throw Error(l(349));(Te&127)!==0||tp(c,n,i)}f.memoizedState=i;var m={value:i,getSnapshot:n};return f.queue=m,xp(ap.bind(null,c,m,e),[e]),c.flags|=2048,il(9,{destroy:void 0},np.bind(null,c,m,i,n),null),i},useId:function(){var e=St(),n=Le.identifierPrefix;if(Pe){var i=Qn,c=Sn;i=(c&~(1<<32-Xt(c)-1)).toString(32)+i,n="_"+n+"R_"+i,i=eo++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=oQ++,n="_"+n+"r_"+i.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:fd,useFormState:Op,useActionState:Op,useOptimistic:function(e){var n=St();n.memoizedState=n.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=hd.bind(null,Qe,!0,i),i.dispatch=n,[e,n]},useMemoCache:sd,useCacheRefresh:function(){return St().memoizedState=hQ.bind(null,Qe)},useEffectEvent:function(e){var n=St(),i={impl:e};return n.memoizedState=i,function(){if((Ee&2)!==0)throw Error(l(440));return i.impl.apply(void 0,arguments)}}},md={readContext:mt,use:no,useCallback:Qp,useContext:mt,useEffect:cd,useImperativeHandle:Sp,useInsertionEffect:bp,useLayoutEffect:vp,useMemo:jp,useReducer:ao,useRef:pp,useState:function(){return ao(Vn)},useDebugValue:ud,useDeferredValue:function(e,n){var i=nt();return kp(i,Ue.memoizedState,e,n)},useTransition:function(){var e=ao(Vn)[0],n=nt().memoizedState;return[typeof e=="boolean"?e:yr(e),n]},useSyncExternalStore:ep,useId:Np,useHostTransitionStatus:fd,useFormState:fp,useActionState:fp,useOptimistic:function(e,n){var i=nt();return rp(i,Ue,e,n)},useMemoCache:sd,useCacheRefresh:Pp};md.useEffectEvent=gp;var _p={readContext:mt,use:no,useCallback:Qp,useContext:mt,useEffect:cd,useImperativeHandle:Sp,useInsertionEffect:bp,useLayoutEffect:vp,useMemo:jp,useReducer:rd,useRef:pp,useState:function(){return rd(Vn)},useDebugValue:ud,useDeferredValue:function(e,n){var i=nt();return Ue===null?dd(i,e,n):kp(i,Ue.memoizedState,e,n)},useTransition:function(){var e=rd(Vn)[0],n=nt().memoizedState;return[typeof e=="boolean"?e:yr(e),n]},useSyncExternalStore:ep,useId:Np,useHostTransitionStatus:fd,useFormState:mp,useActionState:mp,useOptimistic:function(e,n){var i=nt();return Ue!==null?rp(i,Ue,e,n):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:sd,useCacheRefresh:Pp};_p.useEffectEvent=gp;function pd(e,n,i,c){n=e.memoizedState,i=i(c,n),i=i==null?n:g({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var xd={enqueueSetState:function(e,n,i){e=e._reactInternals;var c=Yt(),f=Qa(c);f.payload=n,i!=null&&(f.callback=i),n=ja(e,f,c),n!==null&&(Pt(n,e,c),xr(n,e,c))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var c=Yt(),f=Qa(c);f.tag=1,f.payload=n,i!=null&&(f.callback=i),n=ja(e,f,c),n!==null&&(Pt(n,e,c),xr(n,e,c))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=Yt(),c=Qa(i);c.tag=2,n!=null&&(c.callback=n),n=ja(e,c,i),n!==null&&(Pt(n,e,i),xr(n,e,i))}};function Ap(e,n,i,c,f,m,S){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(c,m,S):n.prototype&&n.prototype.isPureReactComponent?!cr(i,c)||!cr(f,m):!0}function Zp(e,n,i,c){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,c),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,c),n.state!==e&&xd.enqueueReplaceState(n,n.state,null)}function bs(e,n){var i=n;if("ref"in n){i={};for(var c in n)c!=="ref"&&(i[c]=n[c])}if(e=e.defaultProps){i===n&&(i=g({},i));for(var f in e)i[f]===void 0&&(i[f]=e[f])}return i}function Ep(e){Ei(e)}function qp(e){console.error(e)}function Mp(e){Ei(e)}function io(e,n){try{var i=e.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(c){setTimeout(function(){throw c})}}function Yp(e,n,i){try{var c=e.onCaughtError;c(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function gd(e,n,i){return i=Qa(i),i.tag=3,i.payload={element:null},i.callback=function(){io(e,n)},i}function Up(e){return e=Qa(e),e.tag=3,e}function Vp(e,n,i,c){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var m=c.value;e.payload=function(){return f(m)},e.callback=function(){Yp(n,i,c)}}var S=i.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(e.callback=function(){Yp(n,i,c),typeof f!="function"&&(Pa===null?Pa=new Set([this]):Pa.add(this));var w=c.stack;this.componentDidCatch(c.value,{componentStack:w!==null?w:""})})}function pQ(e,n,i,c,f){if(i.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(n=i.alternate,n!==null&&Js(n,i,f,!0),i=Zt.current,i!==null){switch(i.tag){case 31:case 13:return an===null?vo():i.alternate===null&&et===0&&(et=3),i.flags&=-257,i.flags|=65536,i.lanes=f,c===Bi?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([c]):n.add(c),Vd(e,c,f)),!1;case 22:return i.flags|=65536,c===Bi?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([c])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([c]):i.add(c)),Vd(e,c,f)),!1}throw Error(l(435,i.tag))}return Vd(e,c,f),vo(),!1}if(Pe)return n=Zt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,c!==Zu&&(e=Error(l(422),{cause:c}),Or(Jt(e,i)))):(c!==Zu&&(n=Error(l(423),{cause:c}),Or(Jt(n,i))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,c=Jt(c,i),f=gd(e.stateNode,c,f),Bu(e,f),et!==4&&(et=2)),!1;var m=Error(l(520),{cause:c});if(m=Jt(m,i),zr===null?zr=[m]:zr.push(m),et!==4&&(et=2),n===null)return!0;c=Jt(c,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,e=f&-f,i.lanes|=e,e=gd(i.stateNode,c,e),Bu(i,e),!1;case 1:if(n=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Pa===null||!Pa.has(m))))return i.flags|=65536,f&=-f,i.lanes|=f,f=Up(f),Vp(f,e,i,c),Bu(i,f),!1}i=i.return}while(i!==null);return!1}var bd=Error(l(461)),lt=!1;function pt(e,n,i,c){n.child=e===null?Wm(n,null,i,c):xs(n,e.child,i,c)}function Gp(e,n,i,c,f){i=i.render;var m=n.ref;if("ref"in c){var S={};for(var w in c)w!=="ref"&&(S[w]=c[w])}else S=c;return fs(n),c=ed(e,n,i,S,m,f),w=td(),e!==null&&!lt?(nd(e,n,f),Gn(e,n,f)):(Pe&&w&&_u(n),n.flags|=1,pt(e,n,c,f),n.child)}function Lp(e,n,i,c,f){if(e===null){var m=i.type;return typeof m=="function"&&!Ru(m)&&m.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=m,Dp(e,n,m,c,f)):(e=Ui(i.type,null,c,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(m=e.child,!$d(e,f)){var S=m.memoizedProps;if(i=i.compare,i=i!==null?i:cr,i(S,c)&&e.ref===n.ref)return Gn(e,n,f)}return n.flags|=1,e=En(m,c),e.ref=n.ref,e.return=n,n.child=e}function Dp(e,n,i,c,f){if(e!==null){var m=e.memoizedProps;if(cr(m,c)&&e.ref===n.ref)if(lt=!1,n.pendingProps=c=m,$d(e,f))(e.flags&131072)!==0&&(lt=!0);else return n.lanes=e.lanes,Gn(e,n,f)}return vd(e,n,i,c,f)}function Wp(e,n,i,c){var f=c.children,m=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((n.flags&128)!==0){if(m=m!==null?m.baseLanes|i:i,e!==null){for(c=n.child=e.child,f=0;c!==null;)f=f|c.lanes|c.childLanes,c=c.sibling;c=f&~m}else c=0,n.child=null;return Bp(e,n,m,i,c)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Di(n,m!==null?m.cachePool:null),m!==null?Im(n,m):Iu(),Fm(n);else return c=n.lanes=536870912,Bp(e,n,m!==null?m.baseLanes|i:i,i,c)}else m!==null?(Di(n,m.cachePool),Im(n,m),wa(),n.memoizedState=null):(e!==null&&Di(n,null),Iu(),wa());return pt(e,n,f,i),n.child}function jr(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Bp(e,n,i,c,f){var m=Gu();return m=m===null?null:{parent:at._currentValue,pool:m},n.memoizedState={baseLanes:i,cachePool:m},e!==null&&Di(n,null),Iu(),Fm(n),e!==null&&Js(e,n,c,!0),n.childLanes=f,null}function oo(e,n){return n=uo({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function Hp(e,n,i){return xs(n,e.child,null,i),e=oo(n,n.pendingProps),e.flags|=2,Et(n),n.memoizedState=null,e}function xQ(e,n,i){var c=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Pe){if(c.mode==="hidden")return e=oo(n,c),n.lanes=536870912,jr(null,e);if(Ku(n),(e=De)?(e=ig(e,nn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:ga!==null?{id:Sn,overflow:Qn}:null,retryLane:536870912,hydrationErrors:null},i=Rm(e),i.return=n,n.child=i,ht=n,De=null)):e=null,e===null)throw va(n);return n.lanes=536870912,null}return oo(n,c)}var m=e.memoizedState;if(m!==null){var S=m.dehydrated;if(Ku(n),f)if(n.flags&256)n.flags&=-257,n=Hp(e,n,i);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(l(558));else if(lt||Js(e,n,i,!1),f=(i&e.childLanes)!==0,lt||f){if(c=Le,c!==null&&(S=qh(c,i),S!==0&&S!==m.retryLane))throw m.retryLane=S,cs(e,S),Pt(c,e,S),bd;vo(),n=Hp(e,n,i)}else e=m.treeContext,De=sn(S.nextSibling),ht=n,Pe=!0,ba=null,nn=!1,e!==null&&_m(n,e),n=oo(n,c),n.flags|=4096;return n}return e=En(e.child,{mode:c.mode,children:c.children}),e.ref=n.ref,n.child=e,e.return=n,e}function co(e,n){var i=n.ref;if(i===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(l(284));(e===null||e.ref!==i)&&(n.flags|=4194816)}}function vd(e,n,i,c,f){return fs(n),i=ed(e,n,i,c,void 0,f),c=td(),e!==null&&!lt?(nd(e,n,f),Gn(e,n,f)):(Pe&&c&&_u(n),n.flags|=1,pt(e,n,i,f),n.child)}function Ip(e,n,i,c,f,m){return fs(n),n.updateQueue=null,i=Jm(n,c,i,f),Km(e),c=td(),e!==null&&!lt?(nd(e,n,m),Gn(e,n,m)):(Pe&&c&&_u(n),n.flags|=1,pt(e,n,i,m),n.child)}function Fp(e,n,i,c,f){if(fs(n),n.stateNode===null){var m=Hs,S=i.contextType;typeof S=="object"&&S!==null&&(m=mt(S)),m=new i(c,m),n.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=xd,n.stateNode=m,m._reactInternals=n,m=n.stateNode,m.props=c,m.state=n.memoizedState,m.refs={},Du(n),S=i.contextType,m.context=typeof S=="object"&&S!==null?mt(S):Hs,m.state=n.memoizedState,S=i.getDerivedStateFromProps,typeof S=="function"&&(pd(n,i,S,c),m.state=n.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&&xd.enqueueReplaceState(m,m.state,null),br(n,c,m,f),gr(),m.state=n.memoizedState),typeof m.componentDidMount=="function"&&(n.flags|=4194308),c=!0}else if(e===null){m=n.stateNode;var w=n.memoizedProps,C=bs(i,w);m.props=C;var V=m.context,K=i.contextType;S=Hs,typeof K=="object"&&K!==null&&(S=mt(K));var ne=i.getDerivedStateFromProps;K=typeof ne=="function"||typeof m.getSnapshotBeforeUpdate=="function",w=n.pendingProps!==w,K||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(w||V!==S)&&Zp(n,m,c,S),Sa=!1;var L=n.memoizedState;m.state=L,br(n,c,m,f),gr(),V=n.memoizedState,w||L!==V||Sa?(typeof ne=="function"&&(pd(n,i,ne,c),V=n.memoizedState),(C=Sa||Ap(n,i,C,c,L,V,S))?(K||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"&&(n.flags|=4194308)):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=c,n.memoizedState=V),m.props=c,m.state=V,m.context=S,c=C):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),c=!1)}else{m=n.stateNode,Wu(e,n),S=n.memoizedProps,K=bs(i,S),m.props=K,ne=n.pendingProps,L=m.context,V=i.contextType,C=Hs,typeof V=="object"&&V!==null&&(C=mt(V)),w=i.getDerivedStateFromProps,(V=typeof w=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(S!==ne||L!==C)&&Zp(n,m,c,C),Sa=!1,L=n.memoizedState,m.state=L,br(n,c,m,f),gr();var I=n.memoizedState;S!==ne||L!==I||Sa||e!==null&&e.dependencies!==null&&Gi(e.dependencies)?(typeof w=="function"&&(pd(n,i,w,c),I=n.memoizedState),(K=Sa||Ap(n,i,K,c,L,I,C)||e!==null&&e.dependencies!==null&&Gi(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"&&(n.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof m.componentDidUpdate!="function"||S===e.memoizedProps&&L===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&L===e.memoizedState||(n.flags|=1024),n.memoizedProps=c,n.memoizedState=I),m.props=c,m.state=I,m.context=C,c=K):(typeof m.componentDidUpdate!="function"||S===e.memoizedProps&&L===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&L===e.memoizedState||(n.flags|=1024),c=!1)}return m=c,co(e,n),c=(n.flags&128)!==0,m||c?(m=n.stateNode,i=c&&typeof i.getDerivedStateFromError!="function"?null:m.render(),n.flags|=1,e!==null&&c?(n.child=xs(n,e.child,null,f),n.child=xs(n,null,i,f)):pt(e,n,i,f),n.memoizedState=m.state,e=n.child):e=Gn(e,n,f),e}function Kp(e,n,i,c){return ds(),n.flags|=256,pt(e,n,i,c),n.child}var yd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sd(e){return{baseLanes:e,cachePool:Ym()}}function Qd(e,n,i){return e=e!==null?e.childLanes&~i:0,n&&(e|=Mt),e}function Jp(e,n,i){var c=n.pendingProps,f=!1,m=(n.flags&128)!==0,S;if((S=m)||(S=e!==null&&e.memoizedState===null?!1:(tt.current&2)!==0),S&&(f=!0,n.flags&=-129),S=(n.flags&32)!==0,n.flags&=-33,e===null){if(Pe){if(f?ka(n):wa(),(e=De)?(e=ig(e,nn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:ga!==null?{id:Sn,overflow:Qn}:null,retryLane:536870912,hydrationErrors:null},i=Rm(e),i.return=n,n.child=i,ht=n,De=null)):e=null,e===null)throw va(n);return lO(e)?n.lanes=32:n.lanes=536870912,null}var w=c.children;return c=c.fallback,f?(wa(),f=n.mode,w=uo({mode:"hidden",children:w},f),c=us(c,f,i,null),w.return=n,c.return=n,w.sibling=c,n.child=w,c=n.child,c.memoizedState=Sd(i),c.childLanes=Qd(e,S,i),n.memoizedState=yd,jr(null,c)):(ka(n),jd(n,w))}var C=e.memoizedState;if(C!==null&&(w=C.dehydrated,w!==null)){if(m)n.flags&256?(ka(n),n.flags&=-257,n=kd(e,n,i)):n.memoizedState!==null?(wa(),n.child=e.child,n.flags|=128,n=null):(wa(),w=c.fallback,f=n.mode,c=uo({mode:"visible",children:c.children},f),w=us(w,f,i,null),w.flags|=2,c.return=n,w.return=n,c.sibling=w,n.child=c,xs(n,e.child,null,i),c=n.child,c.memoizedState=Sd(i),c.childLanes=Qd(e,S,i),n.memoizedState=yd,n=jr(null,c));else if(ka(n),lO(w)){if(S=w.nextSibling&&w.nextSibling.dataset,S)var V=S.dgst;S=V,c=Error(l(419)),c.stack="",c.digest=S,Or({value:c,source:null,stack:null}),n=kd(e,n,i)}else if(lt||Js(e,n,i,!1),S=(i&e.childLanes)!==0,lt||S){if(S=Le,S!==null&&(c=qh(S,i),c!==0&&c!==C.retryLane))throw C.retryLane=c,cs(e,c),Pt(S,e,c),bd;sO(w)||vo(),n=kd(e,n,i)}else sO(w)?(n.flags|=192,n.child=e.child,n=null):(e=C.treeContext,De=sn(w.nextSibling),ht=n,Pe=!0,ba=null,nn=!1,e!==null&&_m(n,e),n=jd(n,c.children),n.flags|=4096);return n}return f?(wa(),w=c.fallback,f=n.mode,C=e.child,V=C.sibling,c=En(C,{mode:"hidden",children:c.children}),c.subtreeFlags=C.subtreeFlags&65011712,V!==null?w=En(V,w):(w=us(w,f,i,null),w.flags|=2),w.return=n,c.return=n,c.sibling=w,n.child=c,jr(null,c),c=n.child,w=e.child.memoizedState,w===null?w=Sd(i):(f=w.cachePool,f!==null?(C=at._currentValue,f=f.parent!==C?{parent:C,pool:C}:f):f=Ym(),w={baseLanes:w.baseLanes|i,cachePool:f}),c.memoizedState=w,c.childLanes=Qd(e,S,i),n.memoizedState=yd,jr(e.child,c)):(ka(n),i=e.child,e=i.sibling,i=En(i,{mode:"visible",children:c.children}),i.return=n,i.sibling=null,e!==null&&(S=n.deletions,S===null?(n.deletions=[e],n.flags|=16):S.push(e)),n.child=i,n.memoizedState=null,i)}function jd(e,n){return n=uo({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function uo(e,n){return e=At(22,e,null,n),e.lanes=0,e}function kd(e,n,i){return xs(n,e.child,null,i),e=jd(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function ex(e,n,i){e.lanes|=n;var c=e.alternate;c!==null&&(c.lanes|=n),Mu(e.return,n,i)}function wd(e,n,i,c,f,m){var S=e.memoizedState;S===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:c,tail:i,tailMode:f,treeForkCount:m}:(S.isBackwards=n,S.rendering=null,S.renderingStartTime=0,S.last=c,S.tail=i,S.tailMode=f,S.treeForkCount=m)}function tx(e,n,i){var c=n.pendingProps,f=c.revealOrder,m=c.tail;c=c.children;var S=tt.current,w=(S&2)!==0;if(w?(S=S&1|2,n.flags|=128):S&=1,ye(tt,S),pt(e,n,c,i),c=Pe?dr:0,!w&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ex(e,i,n);else if(e.tag===19)ex(e,i,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(i=n.child,f=null;i!==null;)e=i.alternate,e!==null&&Ki(e)===null&&(f=i),i=i.sibling;i=f,i===null?(f=n.child,n.child=null):(f=i.sibling,i.sibling=null),wd(n,!1,f,i,m,c);break;case"backwards":case"unstable_legacy-backwards":for(i=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&Ki(e)===null){n.child=f;break}e=f.sibling,f.sibling=i,i=f,f=e}wd(n,!0,i,null,m,c);break;case"together":wd(n,!1,null,null,void 0,c);break;default:n.memoizedState=null}return n.child}function Gn(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),Na|=n.lanes,(i&n.childLanes)===0)if(e!==null){if(Js(e,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(l(153));if(n.child!==null){for(e=n.child,i=En(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=En(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function $d(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Gi(e)))}function gQ(e,n,i){switch(n.tag){case 3:Ot(n,n.stateNode.containerInfo),ya(n,at,e.memoizedState.cache),ds();break;case 27:case 5:He(n);break;case 4:Ot(n,n.stateNode.containerInfo);break;case 10:ya(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Ku(n),null;break;case 13:var c=n.memoizedState;if(c!==null)return c.dehydrated!==null?(ka(n),n.flags|=128,null):(i&n.child.childLanes)!==0?Jp(e,n,i):(ka(n),e=Gn(e,n,i),e!==null?e.sibling:null);ka(n);break;case 19:var f=(e.flags&128)!==0;if(c=(i&n.childLanes)!==0,c||(Js(e,n,i,!1),c=(i&n.childLanes)!==0),f){if(c)return tx(e,n,i);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),ye(tt,tt.current),c)break;return null;case 22:return n.lanes=0,Wp(e,n,i,n.pendingProps);case 24:ya(n,at,e.memoizedState.cache)}return Gn(e,n,i)}function nx(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps)lt=!0;else{if(!$d(e,i)&&(n.flags&128)===0)return lt=!1,gQ(e,n,i);lt=(e.flags&131072)!==0}else lt=!1,Pe&&(n.flags&1048576)!==0&&Xm(n,dr,n.index);switch(n.lanes=0,n.tag){case 16:e:{var c=n.pendingProps;if(e=ms(n.elementType),n.type=e,typeof e=="function")Ru(e)?(c=bs(e,c),n.tag=1,n=Fp(null,n,e,c,i)):(n.tag=0,n=vd(null,n,e,c,i));else{if(e!=null){var f=e.$$typeof;if(f===_){n.tag=11,n=Gp(null,n,e,c,i);break e}else if(f===X){n.tag=14,n=Lp(null,n,e,c,i);break e}}throw n=ie(e)||e,Error(l(306,n,""))}}return n;case 0:return vd(e,n,n.type,n.pendingProps,i);case 1:return c=n.type,f=bs(c,n.pendingProps),Fp(e,n,c,f,i);case 3:e:{if(Ot(n,n.stateNode.containerInfo),e===null)throw Error(l(387));c=n.pendingProps;var m=n.memoizedState;f=m.element,Wu(e,n),br(n,c,null,i);var S=n.memoizedState;if(c=S.cache,ya(n,at,c),c!==m.cache&&Yu(n,[at],i,!0),gr(),c=S.element,m.isDehydrated)if(m={element:c,isDehydrated:!1,cache:S.cache},n.updateQueue.baseState=m,n.memoizedState=m,n.flags&256){n=Kp(e,n,c,i);break e}else if(c!==f){f=Jt(Error(l(424)),n),Or(f),n=Kp(e,n,c,i);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(De=sn(e.firstChild),ht=n,Pe=!0,ba=null,nn=!0,i=Wm(n,null,c,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(ds(),c===f){n=Gn(e,n,i);break e}pt(e,n,c,i)}n=n.child}return n;case 26:return co(e,n),e===null?(i=fg(n.type,null,n.pendingProps,null))?n.memoizedState=i:Pe||(i=n.type,e=n.pendingProps,c=$o(ue.current).createElement(i),c[ft]=n,c[jt]=e,xt(c,i,e),ut(c),n.stateNode=c):n.memoizedState=fg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return He(n),e===null&&Pe&&(c=n.stateNode=ug(n.type,n.pendingProps,ue.current),ht=n,nn=!0,f=De,Xa(n.type)?(rO=f,De=sn(c.firstChild)):De=f),pt(e,n,n.pendingProps.children,i),co(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Pe&&((f=c=De)&&(c=BQ(c,n.type,n.pendingProps,nn),c!==null?(n.stateNode=c,ht=n,De=sn(c.firstChild),nn=!1,f=!0):f=!1),f||va(n)),He(n),f=n.type,m=n.pendingProps,S=e!==null?e.memoizedProps:null,c=m.children,tO(f,m)?c=null:S!==null&&tO(f,S)&&(n.flags|=32),n.memoizedState!==null&&(f=ed(e,n,cQ,null,null,i),qr._currentValue=f),co(e,n),pt(e,n,c,i),n.child;case 6:return e===null&&Pe&&((e=i=De)&&(i=HQ(i,n.pendingProps,nn),i!==null?(n.stateNode=i,ht=n,De=null,e=!0):e=!1),e||va(n)),null;case 13:return Jp(e,n,i);case 4:return Ot(n,n.stateNode.containerInfo),c=n.pendingProps,e===null?n.child=xs(n,null,c,i):pt(e,n,c,i),n.child;case 11:return Gp(e,n,n.type,n.pendingProps,i);case 7:return pt(e,n,n.pendingProps,i),n.child;case 8:return pt(e,n,n.pendingProps.children,i),n.child;case 12:return pt(e,n,n.pendingProps.children,i),n.child;case 10:return c=n.pendingProps,ya(n,n.type,c.value),pt(e,n,c.children,i),n.child;case 9:return f=n.type._context,c=n.pendingProps.children,fs(n),f=mt(f),c=c(f),n.flags|=1,pt(e,n,c,i),n.child;case 14:return Lp(e,n,n.type,n.pendingProps,i);case 15:return Dp(e,n,n.type,n.pendingProps,i);case 19:return tx(e,n,i);case 31:return xQ(e,n,i);case 22:return Wp(e,n,i,n.pendingProps);case 24:return fs(n),c=mt(at),e===null?(f=Gu(),f===null&&(f=Le,m=Uu(),f.pooledCache=m,m.refCount++,m!==null&&(f.pooledCacheLanes|=i),f=m),n.memoizedState={parent:c,cache:f},Du(n),ya(n,at,f)):((e.lanes&i)!==0&&(Wu(e,n),br(n,null,null,i),gr()),f=e.memoizedState,m=n.memoizedState,f.parent!==c?(f={parent:c,cache:c},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),ya(n,at,c)):(c=m.cache,ya(n,at,c),c!==f.cache&&Yu(n,[at],i,!0))),pt(e,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(l(156,n.tag))}function Ln(e){e.flags|=4}function Td(e,n,i,c,f){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(Nx())e.flags|=8192;else throw ps=Bi,Lu}else e.flags&=-16777217}function ax(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!gg(n))if(Nx())e.flags|=8192;else throw ps=Bi,Lu}function Oo(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Ah():536870912,e.lanes|=n,dl|=n)}function kr(e,n){if(!Pe)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.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?n||e.tail===null?e.tail=null:e.tail.sibling=null:c.sibling=null}}function We(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,c=0;if(n)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,n}function bQ(e,n,i){var c=n.pendingProps;switch(Au(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(n),null;case 1:return We(n),null;case 3:return i=n.stateNode,c=null,e!==null&&(c=e.memoizedState.cache),n.memoizedState.cache!==c&&(n.flags|=2048),Yn(at),Ze(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Ks(n)?Ln(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Eu())),We(n),null;case 26:var f=n.type,m=n.memoizedState;return e===null?(Ln(n),m!==null?(We(n),ax(n,m)):(We(n),Td(n,f,null,c,i))):m?m!==e.memoizedState?(Ln(n),We(n),ax(n,m)):(We(n),n.flags&=-16777217):(e=e.memoizedProps,e!==c&&Ln(n),We(n),Td(n,f,e,c,i)),null;case 27:if(bt(n),i=ue.current,f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==c&&Ln(n);else{if(!c){if(n.stateNode===null)throw Error(l(166));return We(n),null}e=Re.current,Ks(n)?Am(n):(e=ug(f,c,i),n.stateNode=e,Ln(n))}return We(n),null;case 5:if(bt(n),f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==c&&Ln(n);else{if(!c){if(n.stateNode===null)throw Error(l(166));return We(n),null}if(m=Re.current,Ks(n))Am(n);else{var S=$o(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]=n,m[jt]=c;e:for(S=n.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===n)break e;for(;S.sibling===null;){if(S.return===null||S.return===n)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}n.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&&Ln(n)}}return We(n),Td(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,i),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==c&&Ln(n);else{if(typeof c!="string"&&n.stateNode===null)throw Error(l(166));if(e=ue.current,Ks(n)){if(e=n.stateNode,i=n.memoizedProps,c=null,f=ht,f!==null)switch(f.tag){case 27:case 5:c=f.memoizedProps}e[ft]=n,e=!!(e.nodeValue===i||c!==null&&c.suppressHydrationWarning===!0||Jx(e.nodeValue,i)),e||va(n,!0)}else e=$o(e).createTextNode(c),e[ft]=n,n.stateNode=e}return We(n),null;case 31:if(i=n.memoizedState,e===null||e.memoizedState!==null){if(c=Ks(n),i!==null){if(e===null){if(!c)throw Error(l(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[ft]=n}else ds(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;We(n),e=!1}else i=Eu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return n.flags&256?(Et(n),n):(Et(n),null);if((n.flags&128)!==0)throw Error(l(558))}return We(n),null;case 13:if(c=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=Ks(n),c!==null&&c.dehydrated!==null){if(e===null){if(!f)throw Error(l(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(l(317));f[ft]=n}else ds(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;We(n),f=!1}else f=Eu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(Et(n),n):(Et(n),null)}return Et(n),(n.flags&128)!==0?(n.lanes=i,n):(i=c!==null,e=e!==null&&e.memoizedState!==null,i&&(c=n.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&&(n.child.flags|=8192),Oo(n,n.updateQueue),We(n),null);case 4:return Ze(),e===null&&Id(n.stateNode.containerInfo),We(n),null;case 10:return Yn(n.type),We(n),null;case 19:if(Se(tt),c=n.memoizedState,c===null)return We(n),null;if(f=(n.flags&128)!==0,m=c.rendering,m===null)if(f)kr(c,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(m=Ki(e),m!==null){for(n.flags|=128,kr(c,!1),e=m.updateQueue,n.updateQueue=e,Oo(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)zm(i,e),i=i.sibling;return ye(tt,tt.current&1|2),Pe&&qn(n,c.treeForkCount),n.child}e=e.sibling}c.tail!==null&&Rt()>xo&&(n.flags|=128,f=!0,kr(c,!1),n.lanes=4194304)}else{if(!f)if(e=Ki(m),e!==null){if(n.flags|=128,f=!0,e=e.updateQueue,n.updateQueue=e,Oo(n,e),kr(c,!0),c.tail===null&&c.tailMode==="hidden"&&!m.alternate&&!Pe)return We(n),null}else 2*Rt()-c.renderingStartTime>xo&&i!==536870912&&(n.flags|=128,f=!0,kr(c,!1),n.lanes=4194304);c.isBackwards?(m.sibling=n.child,n.child=m):(e=c.last,e!==null?e.sibling=m:n.child=m,c.last=m)}return c.tail!==null?(e=c.tail,c.rendering=e,c.tail=e.sibling,c.renderingStartTime=Rt(),e.sibling=null,i=tt.current,ye(tt,f?i&1|2:i&1),Pe&&qn(n,c.treeForkCount),e):(We(n),null);case 22:case 23:return Et(n),Fu(),c=n.memoizedState!==null,e!==null?e.memoizedState!==null!==c&&(n.flags|=8192):c&&(n.flags|=8192),c?(i&536870912)!==0&&(n.flags&128)===0&&(We(n),n.subtreeFlags&6&&(n.flags|=8192)):We(n),i=n.updateQueue,i!==null&&Oo(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),c=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(c=n.memoizedState.cachePool.pool),c!==i&&(n.flags|=2048),e!==null&&Se(hs),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),Yn(at),We(n),null;case 25:return null;case 30:return null}throw Error(l(156,n.tag))}function vQ(e,n){switch(Au(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Yn(at),Ze(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return bt(n),null;case 31:if(n.memoizedState!==null){if(Et(n),n.alternate===null)throw Error(l(340));ds()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Et(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(l(340));ds()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Se(tt),null;case 4:return Ze(),null;case 10:return Yn(n.type),null;case 22:case 23:return Et(n),Fu(),e!==null&&Se(hs),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Yn(at),null;case 25:return null;default:return null}}function sx(e,n){switch(Au(n),n.tag){case 3:Yn(at),Ze();break;case 26:case 27:case 5:bt(n);break;case 4:Ze();break;case 31:n.memoizedState!==null&&Et(n);break;case 13:Et(n);break;case 19:Se(tt);break;case 10:Yn(n.type);break;case 22:case 23:Et(n),Fu(),e!==null&&Se(hs);break;case 24:Yn(at)}}function wr(e,n){try{var i=n.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(w){Ye(n,n.return,w)}}function $a(e,n,i){try{var c=n.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,w=S.destroy;if(w!==void 0){S.destroy=void 0,f=n;var C=i,V=w;try{V()}catch(K){Ye(f,C,K)}}}c=c.next}while(c!==m)}}catch(K){Ye(n,n.return,K)}}function lx(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{Hm(n,i)}catch(c){Ye(e,e.return,c)}}}function rx(e,n,i){i.props=bs(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(c){Ye(e,n,c)}}function $r(e,n){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,n,f)}}function jn(e,n){var i=e.ref,c=e.refCleanup;if(i!==null)if(typeof c=="function")try{c()}catch(f){Ye(e,n,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,n,f)}else i.current=null}function ix(e){var n=e.type,i=e.memoizedProps,c=e.stateNode;try{e:switch(n){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 Nd(e,n,i){try{var c=e.stateNode;UQ(c,e.type,i,n),c[jt]=n}catch(f){Ye(e,e.return,f)}}function ox(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xa(e.type)||e.tag===4}function Pd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ox(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&&Xa(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 zd(e,n,i){var c=e.tag;if(c===5||c===6)e=e.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(e),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=An));else if(c!==4&&(c===27&&Xa(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(zd(e,n,i),e=e.sibling;e!==null;)zd(e,n,i),e=e.sibling}function fo(e,n,i){var c=e.tag;if(c===5||c===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(c!==4&&(c===27&&Xa(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(fo(e,n,i),e=e.sibling;e!==null;)fo(e,n,i),e=e.sibling}function cx(e){var n=e.stateNode,i=e.memoizedProps;try{for(var c=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);xt(n,c,i),n[ft]=e,n[jt]=i}catch(m){Ye(e,e.return,m)}}var Dn=!1,rt=!1,Rd=!1,ux=typeof WeakSet=="function"?WeakSet:Set,dt=null;function yQ(e,n){if(e=e.containerInfo,Jd=Xo,e=Sm(e),ku(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,w=-1,C=-1,V=0,K=0,ne=e,L=null;t:for(;;){for(var I;ne!==i||f!==0&&ne.nodeType!==3||(w=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&&(w=S),L===m&&++K===c&&(C=S),(I=ne.nextSibling)!==null)break;ne=L,L=ne.parentNode}ne=I}i=w===-1||C===-1?null:{start:w,end:C}}else i=null}i=i||{start:0,end:0}}else i=null;for(eO={focusedElem:e,selectionRange:i},Xo=!1,dt=n;dt!==null;)if(n=dt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,dt=e;else for(;dt!==null;){switch(n=dt,m=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.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=n,f=m.memoizedProps,m=m.memoizedState,c=i.stateNode;try{var de=bs(i.type,f);e=c.getSnapshotBeforeUpdate(de,m),c.__reactInternalSnapshotBeforeUpdate=e}catch(ge){Ye(i,i.return,ge)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,i=e.nodeType,i===9)aO(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":aO(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(l(163))}if(e=n.sibling,e!==null){e.return=n.return,dt=e;break}dt=n.return}}function dx(e,n,i){var c=i.flags;switch(i.tag){case 0:case 11:case 15:Bn(e,i),c&4&&wr(5,i);break;case 1:if(Bn(e,i),c&4)if(e=i.stateNode,n===null)try{e.componentDidMount()}catch(S){Ye(i,i.return,S)}else{var f=bs(i.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(S){Ye(i,i.return,S)}}c&64&&lx(i),c&512&&$r(i,i.return);break;case 3:if(Bn(e,i),c&64&&(e=i.updateQueue,e!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{Hm(e,n)}catch(S){Ye(i,i.return,S)}}break;case 27:n===null&&c&4&&cx(i);case 26:case 5:Bn(e,i),n===null&&c&4&&ix(i),c&512&&$r(i,i.return);break;case 12:Bn(e,i);break;case 31:Bn(e,i),c&4&&hx(e,i);break;case 13:Bn(e,i),c&4&&mx(e,i),c&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=PQ.bind(null,i),IQ(e,i))));break;case 22:if(c=i.memoizedState!==null||Dn,!c){n=n!==null&&n.memoizedState!==null||rt,f=Dn;var m=rt;Dn=c,(rt=n)&&!m?Hn(e,i,(i.subtreeFlags&8772)!==0):Bn(e,i),Dn=f,rt=m}break;case 30:break;default:Bn(e,i)}}function Ox(e){var n=e.alternate;n!==null&&(e.alternate=null,Ox(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&ou(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ie=null,wt=!1;function Wn(e,n,i){for(i=i.child;i!==null;)fx(e,n,i),i=i.sibling}function fx(e,n,i){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(Fl,i)}catch{}switch(i.tag){case 26:rt||jn(i,n),Wn(e,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:rt||jn(i,n);var c=Ie,f=wt;Xa(i.type)&&(Ie=i.stateNode,wt=!1),Wn(e,n,i),Ar(i.stateNode),Ie=c,wt=f;break;case 5:rt||jn(i,n);case 6:if(c=Ie,f=wt,Ie=null,Wn(e,n,i),Ie=c,wt=f,Ie!==null)if(wt)try{(Ie.nodeType===9?Ie.body:Ie.nodeName==="HTML"?Ie.ownerDocument.body:Ie).removeChild(i.stateNode)}catch(m){Ye(i,n,m)}else try{Ie.removeChild(i.stateNode)}catch(m){Ye(i,n,m)}break;case 18:Ie!==null&&(wt?(e=Ie,lg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),bl(e)):lg(Ie,i.stateNode));break;case 4:c=Ie,f=wt,Ie=i.stateNode.containerInfo,wt=!0,Wn(e,n,i),Ie=c,wt=f;break;case 0:case 11:case 14:case 15:$a(2,i,n),rt||$a(4,i,n),Wn(e,n,i);break;case 1:rt||(jn(i,n),c=i.stateNode,typeof c.componentWillUnmount=="function"&&rx(i,n,c)),Wn(e,n,i);break;case 21:Wn(e,n,i);break;case 22:rt=(c=rt)||i.memoizedState!==null,Wn(e,n,i),rt=c;break;default:Wn(e,n,i)}}function hx(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{bl(e)}catch(i){Ye(n,n.return,i)}}}function mx(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{bl(e)}catch(i){Ye(n,n.return,i)}}function SQ(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new ux),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new ux),n;default:throw Error(l(435,e.tag))}}function ho(e,n){var i=SQ(e);n.forEach(function(c){if(!i.has(c)){i.add(c);var f=zQ.bind(null,e,c);c.then(f,f)}})}function $t(e,n){var i=n.deletions;if(i!==null)for(var c=0;c<i.length;c++){var f=i[c],m=e,S=n,w=S;e:for(;w!==null;){switch(w.tag){case 27:if(Xa(w.type)){Ie=w.stateNode,wt=!1;break e}break;case 5:Ie=w.stateNode,wt=!1;break e;case 3:case 4:Ie=w.stateNode.containerInfo,wt=!0;break e}w=w.return}if(Ie===null)throw Error(l(160));fx(m,S,f),Ie=null,wt=!1,m=f.alternate,m!==null&&(m.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)px(n,e),n=n.sibling}var On=null;function px(e,n){var i=e.alternate,c=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:$t(n,e),Tt(e),c&4&&($a(3,e,e.return),wr(3,e),$a(5,e,e.return));break;case 1:$t(n,e),Tt(e),c&512&&(rt||i===null||jn(i,i.return)),c&64&&Dn&&(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=On;if($t(n,e),Tt(e),c&512&&(rt||i===null||jn(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[er]||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=pg("link","href",f).get(c+(i.href||""));if(S){for(var w=0;w<S.length;w++)if(m=S[w],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(w,1);break t}}m=f.createElement(c),xt(m,c,i),f.head.appendChild(m);break;case"meta":if(S=pg("meta","content",f).get(c+(i.content||""))){for(w=0;w<S.length;w++)if(m=S[w],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(w,1);break t}}m=f.createElement(c),xt(m,c,i),f.head.appendChild(m);break;default:throw Error(l(468,c))}m[ft]=e,ut(m),c=m}e.stateNode=c}else xg(f,e.type,e.stateNode);else e.stateNode=mg(f,c,e.memoizedProps);else m!==c?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,c===null?xg(f,e.type,e.stateNode):mg(f,c,e.memoizedProps)):c===null&&e.stateNode!==null&&Nd(e,e.memoizedProps,i.memoizedProps)}break;case 27:$t(n,e),Tt(e),c&512&&(rt||i===null||jn(i,i.return)),i!==null&&c&4&&Nd(e,e.memoizedProps,i.memoizedProps);break;case 5:if($t(n,e),Tt(e),c&512&&(rt||i===null||jn(i,i.return)),e.flags&32){f=e.stateNode;try{Us(f,"")}catch(de){Ye(e,e.return,de)}}c&4&&e.stateNode!=null&&(f=e.memoizedProps,Nd(e,f,i!==null?i.memoizedProps:f)),c&1024&&(Rd=!0);break;case 6:if($t(n,e),Tt(e),c&4){if(e.stateNode===null)throw Error(l(162));c=e.memoizedProps,i=e.stateNode;try{i.nodeValue=c}catch(de){Ye(e,e.return,de)}}break;case 3:if(Po=null,f=On,On=To(n.containerInfo),$t(n,e),On=f,Tt(e),c&4&&i!==null&&i.memoizedState.isDehydrated)try{bl(n.containerInfo)}catch(de){Ye(e,e.return,de)}Rd&&(Rd=!1,xx(e));break;case 4:c=On,On=To(e.stateNode.containerInfo),$t(n,e),Tt(e),On=c;break;case 12:$t(n,e),Tt(e);break;case 31:$t(n,e),Tt(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,ho(e,c)));break;case 13:$t(n,e),Tt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(po=Rt()),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,ho(e,c)));break;case 22:f=e.memoizedState!==null;var C=i!==null&&i.memoizedState!==null,V=Dn,K=rt;if(Dn=V||f,rt=K||C,$t(n,e),rt=K,Dn=V,Tt(e),c&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(i===null||C||Dn||rt||vs(e)),i=null,n=e;;){if(n.tag===5||n.tag===26){if(i===null){C=i=n;try{if(m=C.stateNode,f)S=m.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{w=C.stateNode;var ne=C.memoizedProps.style,L=ne!=null&&ne.hasOwnProperty("display")?ne.display:null;w.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(de){Ye(C,C.return,de)}}}else if(n.tag===6){if(i===null){C=n;try{C.stateNode.nodeValue=f?"":C.memoizedProps}catch(de){Ye(C,C.return,de)}}}else if(n.tag===18){if(i===null){C=n;try{var I=C.stateNode;f?rg(I,!0):rg(C.stateNode,!1)}catch(de){Ye(C,C.return,de)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}c&4&&(c=e.updateQueue,c!==null&&(i=c.retryQueue,i!==null&&(c.retryQueue=null,ho(e,i))));break;case 19:$t(n,e),Tt(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,ho(e,c)));break;case 30:break;case 21:break;default:$t(n,e),Tt(e)}}function Tt(e){var n=e.flags;if(n&2){try{for(var i,c=e.return;c!==null;){if(ox(c)){i=c;break}c=c.return}if(i==null)throw Error(l(160));switch(i.tag){case 27:var f=i.stateNode,m=Pd(e);fo(e,m,f);break;case 5:var S=i.stateNode;i.flags&32&&(Us(S,""),i.flags&=-33);var w=Pd(e);fo(e,w,S);break;case 3:case 4:var C=i.stateNode.containerInfo,V=Pd(e);zd(e,V,C);break;default:throw Error(l(161))}}catch(K){Ye(e,e.return,K)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function xx(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;xx(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Bn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)dx(e,n.alternate,n),n=n.sibling}function vs(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:$a(4,n,n.return),vs(n);break;case 1:jn(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&rx(n,n.return,i),vs(n);break;case 27:Ar(n.stateNode);case 26:case 5:jn(n,n.return),vs(n);break;case 22:n.memoizedState===null&&vs(n);break;case 30:vs(n);break;default:vs(n)}e=e.sibling}}function Hn(e,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var c=n.alternate,f=e,m=n,S=m.flags;switch(m.tag){case 0:case 11:case 15:Hn(f,m,i),wr(4,m);break;case 1:if(Hn(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 w=c.stateNode;try{var C=f.shared.hiddenCallbacks;if(C!==null)for(f.shared.hiddenCallbacks=null,f=0;f<C.length;f++)Bm(C[f],w)}catch(V){Ye(c,c.return,V)}}i&&S&64&&lx(m),$r(m,m.return);break;case 27:cx(m);case 26:case 5:Hn(f,m,i),i&&c===null&&S&4&&ix(m),$r(m,m.return);break;case 12:Hn(f,m,i);break;case 31:Hn(f,m,i),i&&S&4&&hx(f,m);break;case 13:Hn(f,m,i),i&&S&4&&mx(f,m);break;case 22:m.memoizedState===null&&Hn(f,m,i),$r(m,m.return);break;case 30:break;default:Hn(f,m,i)}n=n.sibling}}function Cd(e,n){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&fr(i))}function Xd(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&fr(e))}function fn(e,n,i,c){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)gx(e,n,i,c),n=n.sibling}function gx(e,n,i,c){var f=n.flags;switch(n.tag){case 0:case 11:case 15:fn(e,n,i,c),f&2048&&wr(9,n);break;case 1:fn(e,n,i,c);break;case 3:fn(e,n,i,c),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&fr(e)));break;case 12:if(f&2048){fn(e,n,i,c),e=n.stateNode;try{var m=n.memoizedProps,S=m.id,w=m.onPostCommit;typeof w=="function"&&w(S,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Ye(n,n.return,C)}}else fn(e,n,i,c);break;case 31:fn(e,n,i,c);break;case 13:fn(e,n,i,c);break;case 23:break;case 22:m=n.stateNode,S=n.alternate,n.memoizedState!==null?m._visibility&2?fn(e,n,i,c):Tr(e,n):m._visibility&2?fn(e,n,i,c):(m._visibility|=2,ol(e,n,i,c,(n.subtreeFlags&10256)!==0||!1)),f&2048&&Cd(S,n);break;case 24:fn(e,n,i,c),f&2048&&Xd(n.alternate,n);break;default:fn(e,n,i,c)}}function ol(e,n,i,c,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var m=e,S=n,w=i,C=c,V=S.flags;switch(S.tag){case 0:case 11:case 15:ol(m,S,w,C,f),wr(8,S);break;case 23:break;case 22:var K=S.stateNode;S.memoizedState!==null?K._visibility&2?ol(m,S,w,C,f):Tr(m,S):(K._visibility|=2,ol(m,S,w,C,f)),f&&V&2048&&Cd(S.alternate,S);break;case 24:ol(m,S,w,C,f),f&&V&2048&&Xd(S.alternate,S);break;default:ol(m,S,w,C,f)}n=n.sibling}}function Tr(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=e,c=n,f=c.flags;switch(c.tag){case 22:Tr(i,c),f&2048&&Cd(c.alternate,c);break;case 24:Tr(i,c),f&2048&&Xd(c.alternate,c);break;default:Tr(i,c)}n=n.sibling}}var Nr=8192;function cl(e,n,i){if(e.subtreeFlags&Nr)for(e=e.child;e!==null;)bx(e,n,i),e=e.sibling}function bx(e,n,i){switch(e.tag){case 26:cl(e,n,i),e.flags&Nr&&e.memoizedState!==null&&oj(i,On,e.memoizedState,e.memoizedProps);break;case 5:cl(e,n,i);break;case 3:case 4:var c=On;On=To(e.stateNode.containerInfo),cl(e,n,i),On=c;break;case 22:e.memoizedState===null&&(c=e.alternate,c!==null&&c.memoizedState!==null?(c=Nr,Nr=16777216,cl(e,n,i),Nr=c):cl(e,n,i));break;default:cl(e,n,i)}}function vx(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Pr(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var c=n[i];dt=c,Sx(c,e)}vx(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)yx(e),e=e.sibling}function yx(e){switch(e.tag){case 0:case 11:case 15:Pr(e),e.flags&2048&&$a(9,e,e.return);break;case 3:Pr(e);break;case 12:Pr(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,mo(e)):Pr(e);break;default:Pr(e)}}function mo(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var c=n[i];dt=c,Sx(c,e)}vx(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:$a(8,n,n.return),mo(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,mo(n));break;default:mo(n)}e=e.sibling}}function Sx(e,n){for(;dt!==null;){var i=dt;switch(i.tag){case 0:case 11:case 15:$a(8,i,n);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:fr(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(Ox(c),c===i){dt=null;break e}if(f!==null){f.return=m,dt=f;break e}dt=m}}}var QQ={getCacheForType:function(e){var n=mt(at),i=n.data.get(e);return i===void 0&&(i=e(),n.data.set(e,i)),i},cacheSignal:function(){return mt(at).controller.signal}},jQ=typeof WeakMap=="function"?WeakMap:Map,Ee=0,Le=null,we=null,Te=0,Me=0,qt=null,Ta=!1,ul=!1,_d=!1,In=0,et=0,Na=0,ys=0,Ad=0,Mt=0,dl=0,zr=null,Nt=null,Zd=!1,po=0,Qx=0,xo=1/0,go=null,Pa=null,ot=0,za=null,Ol=null,Fn=0,Ed=0,qd=null,jx=null,Rr=0,Md=null;function Yt(){return(Ee&2)!==0&&Te!==0?Te&-Te:P.T!==null?Dd():Mh()}function kx(){if(Mt===0)if((Te&536870912)===0||Pe){var e=ki;ki<<=1,(ki&3932160)===0&&(ki=262144),Mt=e}else Mt=536870912;return e=Zt.current,e!==null&&(e.flags|=32),Mt}function Pt(e,n,i){(e===Le&&(Me===2||Me===9)||e.cancelPendingCommit!==null)&&(fl(e,0),Ra(e,Te,Mt,!1)),Jl(e,i),((Ee&2)===0||e!==Le)&&(e===Le&&((Ee&2)===0&&(ys|=i),et===4&&Ra(e,Te,Mt,!1)),kn(e))}function wx(e,n,i){if((Ee&6)!==0)throw Error(l(327));var c=!i&&(n&127)===0&&(n&e.expiredLanes)===0||Kl(e,n),f=c?$Q(e,n):Ud(e,n,!0),m=c;do{if(f===0){ul&&!c&&Ra(e,n,0,!1);break}else{if(i=e.current.alternate,m&&!kQ(i)){f=Ud(e,n,!1),m=!1;continue}if(f===2){if(m=n,e.errorRecoveryDisabledLanes&m)var S=0;else S=e.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){n=S;e:{var w=e;f=zr;var C=w.current.memoizedState.isDehydrated;if(C&&(fl(w,S).flags|=256),S=Ud(w,S,!1),S!==2){if(_d&&!C){w.errorRecoveryDisabledLanes|=m,ys|=m,f=4;break e}m=Nt,Nt=f,m!==null&&(Nt===null?Nt=m:Nt.push.apply(Nt,m))}f=S}if(m=!1,f!==2)continue}}if(f===1){fl(e,0),Ra(e,n,0,!0);break}e:{switch(c=e,m=f,m){case 0:case 1:throw Error(l(345));case 4:if((n&4194048)!==n)break;case 6:Ra(c,n,Mt,!Ta);break e;case 2:Nt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((n&62914560)===n&&(f=po+300-Rt(),10<f)){if(Ra(c,n,Mt,!Ta),$i(c,0,!0)!==0)break e;Fn=n,c.timeoutHandle=ag($x.bind(null,c,i,Nt,go,Zd,n,Mt,ys,dl,Ta,m,"Throttled",-0,0),f);break e}$x(c,i,Nt,go,Zd,n,Mt,ys,dl,Ta,m,null,-0,0)}}break}while(!0);kn(e)}function $x(e,n,i,c,f,m,S,w,C,V,K,ne,L,I){if(e.timeoutHandle=-1,ne=n.subtreeFlags,ne&8192||(ne&16785408)===16785408){ne={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:An},bx(n,m,ne);var de=(m&62914560)===m?po-Rt():(m&4194048)===m?Qx-Rt():0;if(de=cj(ne,de),de!==null){Fn=m,e.cancelPendingCommit=de(_x.bind(null,e,n,m,i,c,f,S,w,C,K,ne,null,L,I)),Ra(e,m,S,!V);return}}_x(e,n,m,i,c,f,S,w,C)}function kQ(e){for(var n=e;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.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(!_t(m(),f))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Ra(e,n,i,c){n&=~Ad,n&=~ys,e.suspendedLanes|=n,e.pingedLanes&=~n,c&&(e.warmLanes|=n),c=e.expirationTimes;for(var f=n;0<f;){var m=31-Xt(f),S=1<<m;c[m]=-1,f&=~S}i!==0&&Zh(e,i,n)}function bo(){return(Ee&6)===0?(Cr(0),!1):!0}function Yd(){if(we!==null){if(Me===0)var e=we.return;else e=we,Mn=Os=null,ad(e),al=null,mr=0,e=we;for(;e!==null;)sx(e.alternate,e),e=e.return;we=null}}function fl(e,n){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,LQ(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),Fn=0,Yd(),Le=e,we=i=En(e.current,null),Te=n,Me=0,qt=null,Ta=!1,ul=Kl(e,n),_d=!1,dl=Mt=Ad=ys=Na=et=0,Nt=zr=null,Zd=!1,(n&8)!==0&&(n|=n&32);var c=e.entangledLanes;if(c!==0)for(e=e.entanglements,c&=n;0<c;){var f=31-Xt(c),m=1<<f;n|=e[f],c&=~m}return In=n,qi(),i}function Tx(e,n){Qe=null,P.H=Qr,n===nl||n===Wi?(n=Gm(),Me=3):n===Lu?(n=Gm(),Me=4):Me=n===bd?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,qt=n,we===null&&(et=1,io(e,Jt(n,e.current)))}function Nx(){var e=Zt.current;return e===null?!0:(Te&4194048)===Te?an===null:(Te&62914560)===Te||(Te&536870912)!==0?e===an:!1}function Px(){var e=P.H;return P.H=Qr,e===null?Qr:e}function zx(){var e=P.A;return P.A=QQ,e}function vo(){et=4,Ta||(Te&4194048)!==Te&&Zt.current!==null||(ul=!0),(Na&134217727)===0&&(ys&134217727)===0||Le===null||Ra(Le,Te,Mt,!1)}function Ud(e,n,i){var c=Ee;Ee|=2;var f=Px(),m=zx();(Le!==e||Te!==n)&&(go=null,fl(e,n)),n=!1;var S=et;e:do try{if(Me!==0&&we!==null){var w=we,C=qt;switch(Me){case 8:Yd(),S=6;break e;case 3:case 2:case 9:case 6:Zt.current===null&&(n=!0);var V=Me;if(Me=0,qt=null,hl(e,w,C,V),i&&ul){S=0;break e}break;default:V=Me,Me=0,qt=null,hl(e,w,C,V)}}wQ(),S=et;break}catch(K){Tx(e,K)}while(!0);return n&&e.shellSuspendCounter++,Mn=Os=null,Ee=c,P.H=f,P.A=m,we===null&&(Le=null,Te=0,qi()),S}function wQ(){for(;we!==null;)Rx(we)}function $Q(e,n){var i=Ee;Ee|=2;var c=Px(),f=zx();Le!==e||Te!==n?(go=null,xo=Rt()+500,fl(e,n)):ul=Kl(e,n);e:do try{if(Me!==0&&we!==null){n=we;var m=qt;t:switch(Me){case 1:Me=0,qt=null,hl(e,n,m,1);break;case 2:case 9:if(Um(m)){Me=0,qt=null,Cx(n);break}n=function(){Me!==2&&Me!==9||Le!==e||(Me=7),kn(e)},m.then(n,n);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:Um(m)?(Me=0,qt=null,Cx(n)):(Me=0,qt=null,hl(e,n,m,7));break;case 5:var S=null;switch(we.tag){case 26:S=we.memoizedState;case 5:case 27:var w=we;if(S?gg(S):w.stateNode.complete){Me=0,qt=null;var C=w.sibling;if(C!==null)we=C;else{var V=w.return;V!==null?(we=V,yo(V)):we=null}break t}}Me=0,qt=null,hl(e,n,m,5);break;case 6:Me=0,qt=null,hl(e,n,m,6);break;case 8:Yd(),et=6;break e;default:throw Error(l(462))}}TQ();break}catch(K){Tx(e,K)}while(!0);return Mn=Os=null,P.H=c,P.A=f,Ee=i,we!==null?0:(Le=null,Te=0,qi(),et)}function TQ(){for(;we!==null&&!FS();)Rx(we)}function Rx(e){var n=nx(e.alternate,e,In);e.memoizedProps=e.pendingProps,n===null?yo(e):we=n}function Cx(e){var n=e,i=n.alternate;switch(n.tag){case 15:case 0:n=Ip(i,n,n.pendingProps,n.type,void 0,Te);break;case 11:n=Ip(i,n,n.pendingProps,n.type.render,n.ref,Te);break;case 5:ad(n);default:sx(i,n),n=we=zm(n,In),n=nx(i,n,In)}e.memoizedProps=e.pendingProps,n===null?yo(e):we=n}function hl(e,n,i,c){Mn=Os=null,ad(n),al=null,mr=0;var f=n.return;try{if(pQ(e,f,n,i,Te)){et=1,io(e,Jt(i,e.current)),we=null;return}}catch(m){if(f!==null)throw we=f,m;et=1,io(e,Jt(i,e.current)),we=null;return}n.flags&32768?(Pe||c===1?e=!0:ul||(Te&536870912)!==0?e=!1:(Ta=e=!0,(c===2||c===9||c===3||c===6)&&(c=Zt.current,c!==null&&c.tag===13&&(c.flags|=16384))),Xx(n,e)):yo(n)}function yo(e){var n=e;do{if((n.flags&32768)!==0){Xx(n,Ta);return}e=n.return;var i=bQ(n.alternate,n,In);if(i!==null){we=i;return}if(n=n.sibling,n!==null){we=n;return}we=n=e}while(n!==null);et===0&&(et=5)}function Xx(e,n){do{var i=vQ(e.alternate,e);if(i!==null){i.flags&=32767,we=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(e=e.sibling,e!==null)){we=e;return}we=e=i}while(e!==null);et=6,we=null}function _x(e,n,i,c,f,m,S,w,C){e.cancelPendingCommit=null;do So();while(ot!==0);if((Ee&6)!==0)throw Error(l(327));if(n!==null){if(n===e.current)throw Error(l(177));if(m=n.lanes|n.childLanes,m|=Pu,i2(e,i,m,S,w,C),e===Le&&(we=Le=null,Te=0),Ol=n,za=e,Fn=i,Ed=m,qd=f,jx=c,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,RQ(Qi,function(){return Mx(),null})):(e.callbackNode=null,e.callbackPriority=0),c=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||c){c=P.T,P.T=null,f=B.p,B.p=2,S=Ee,Ee|=4;try{yQ(e,n,i)}finally{Ee=S,B.p=f,P.T=c}}ot=1,Ax(),Zx(),Ex()}}function Ax(){if(ot===1){ot=0;var e=za,n=Ol,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=P.T,P.T=null;var c=B.p;B.p=2;var f=Ee;Ee|=4;try{px(n,e);var m=eO,S=Sm(e.containerInfo),w=m.focusedElem,C=m.selectionRange;if(S!==w&&w&&w.ownerDocument&&ym(w.ownerDocument.documentElement,w)){if(C!==null&&ku(w)){var V=C.start,K=C.end;if(K===void 0&&(K=V),"selectionStart"in w)w.selectionStart=V,w.selectionEnd=Math.min(K,w.value.length);else{var ne=w.ownerDocument||document,L=ne&&ne.defaultView||window;if(L.getSelection){var I=L.getSelection(),de=w.textContent.length,ge=Math.min(C.start,de),Ge=C.end===void 0?ge:Math.min(C.end,de);!I.extend&&ge>Ge&&(S=Ge,Ge=ge,ge=S);var q=vm(w,ge),A=vm(w,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(),ge>Ge?(I.addRange(U),I.extend(A.node,A.offset)):(U.setEnd(A.node,A.offset),I.addRange(U))}}}}for(ne=[],I=w;I=I.parentNode;)I.nodeType===1&&ne.push({element:I,left:I.scrollLeft,top:I.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<ne.length;w++){var te=ne[w];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}Xo=!!Jd,eO=Jd=null}finally{Ee=f,B.p=c,P.T=i}}e.current=n,ot=2}}function Zx(){if(ot===2){ot=0;var e=za,n=Ol,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=P.T,P.T=null;var c=B.p;B.p=2;var f=Ee;Ee|=4;try{dx(e,n.alternate,n)}finally{Ee=f,B.p=c,P.T=i}}ot=3}}function Ex(){if(ot===4||ot===3){ot=0,KS();var e=za,n=Ol,i=Fn,c=jx;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?ot=5:(ot=0,Ol=za=null,qx(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(Pa=null),ru(i),n=n.stateNode,Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(Fl,n,void 0,(n.current.flags&128)===128)}catch{}if(c!==null){n=P.T,f=B.p,B.p=2,P.T=null;try{for(var m=e.onRecoverableError,S=0;S<c.length;S++){var w=c[S];m(w.value,{componentStack:w.stack})}}finally{P.T=n,B.p=f}}(Fn&3)!==0&&So(),kn(e),f=e.pendingLanes,(i&261930)!==0&&(f&42)!==0?e===Md?Rr++:(Rr=0,Md=e):Rr=0,Cr(0)}}function qx(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,fr(n)))}function So(){return Ax(),Zx(),Ex(),Mx()}function Mx(){if(ot!==5)return!1;var e=za,n=Ed;Ed=0;var i=ru(Fn),c=P.T,f=B.p;try{B.p=32>i?32:i,P.T=null,i=qd,qd=null;var m=za,S=Fn;if(ot=0,Ol=za=null,Fn=0,(Ee&6)!==0)throw Error(l(331));var w=Ee;if(Ee|=4,yx(m.current),gx(m,m.current,S,i),Ee=w,Cr(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(Fl,m)}catch{}return!0}finally{B.p=f,P.T=c,qx(e,n)}}function Yx(e,n,i){n=Jt(i,n),n=gd(e.stateNode,n,2),e=ja(e,n,2),e!==null&&(Jl(e,2),kn(e))}function Ye(e,n,i){if(e.tag===3)Yx(e,e,i);else for(;n!==null;){if(n.tag===3){Yx(n,e,i);break}else if(n.tag===1){var c=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Pa===null||!Pa.has(c))){e=Jt(i,e),i=Up(2),c=ja(n,i,2),c!==null&&(Vp(i,c,n,e),Jl(c,2),kn(c));break}}n=n.return}}function Vd(e,n,i){var c=e.pingCache;if(c===null){c=e.pingCache=new jQ;var f=new Set;c.set(n,f)}else f=c.get(n),f===void 0&&(f=new Set,c.set(n,f));f.has(i)||(_d=!0,f.add(i),e=NQ.bind(null,e,n,i),n.then(e,e))}function NQ(e,n,i){var c=e.pingCache;c!==null&&c.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,Le===e&&(Te&i)===i&&(et===4||et===3&&(Te&62914560)===Te&&300>Rt()-po?(Ee&2)===0&&fl(e,0):Ad|=i,dl===Te&&(dl=0)),kn(e)}function Ux(e,n){n===0&&(n=Ah()),e=cs(e,n),e!==null&&(Jl(e,n),kn(e))}function PQ(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),Ux(e,i)}function zQ(e,n){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(l(314))}c!==null&&c.delete(n),Ux(e,i)}function RQ(e,n){return nu(e,n)}var Qo=null,ml=null,Gd=!1,jo=!1,Ld=!1,Ca=0;function kn(e){e!==ml&&e.next===null&&(ml===null?Qo=ml=e:ml=ml.next=e),jo=!0,Gd||(Gd=!0,XQ())}function Cr(e,n){if(!Ld&&jo){Ld=!0;do for(var i=!1,c=Qo;c!==null;){if(e!==0){var f=c.pendingLanes;if(f===0)var m=0;else{var S=c.suspendedLanes,w=c.pingedLanes;m=(1<<31-Xt(42|e)+1)-1,m&=f&~(S&~w),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,Dx(c,m))}else m=Te,m=$i(c,c===Le?m:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(m&3)===0||Kl(c,m)||(i=!0,Dx(c,m));c=c.next}while(i);Ld=!1}}function CQ(){Vx()}function Vx(){jo=Gd=!1;var e=0;Ca!==0&&GQ()&&(e=Ca);for(var n=Rt(),i=null,c=Qo;c!==null;){var f=c.next,m=Gx(c,n);m===0?(c.next=null,i===null?Qo=f:i.next=f,f===null&&(ml=i)):(i=c,(e!==0||(m&3)!==0)&&(jo=!0)),c=f}ot!==0&&ot!==5||Cr(e),Ca!==0&&(Ca=0)}function Gx(e,n){for(var i=e.suspendedLanes,c=e.pingedLanes,f=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var S=31-Xt(m),w=1<<S,C=f[S];C===-1?((w&i)===0||(w&c)!==0)&&(f[S]=r2(w,n)):C<=n&&(e.expiredLanes|=w),m&=~w}if(n=Le,i=Te,i=$i(e,e===n?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),c=e.callbackNode,i===0||e===n&&(Me===2||Me===9)||e.cancelPendingCommit!==null)return c!==null&&c!==null&&au(c),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||Kl(e,i)){if(n=i&-i,n===e.callbackPriority)return n;switch(c!==null&&au(c),ru(i)){case 2:case 8:i=Xh;break;case 32:i=Qi;break;case 268435456:i=_h;break;default:i=Qi}return c=Lx.bind(null,e),i=nu(i,c),e.callbackPriority=n,e.callbackNode=i,n}return c!==null&&c!==null&&au(c),e.callbackPriority=2,e.callbackNode=null,2}function Lx(e,n){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(So()&&e.callbackNode!==i)return null;var c=Te;return c=$i(e,e===Le?c:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),c===0?null:(wx(e,c,n),Gx(e,Rt()),e.callbackNode!=null&&e.callbackNode===i?Lx.bind(null,e):null)}function Dx(e,n){if(So())return null;wx(e,n,!0)}function XQ(){DQ(function(){(Ee&6)!==0?nu(Ch,CQ):Vx()})}function Dd(){if(Ca===0){var e=el;e===0&&(e=ji,ji<<=1,(ji&261888)===0&&(ji=256)),Ca=e}return Ca}function Wx(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:zi(""+e)}function Bx(e,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,e.id&&i.setAttribute("form",e.id),n.parentNode.insertBefore(i,n),e=new FormData(e),i.parentNode.removeChild(i),e}function _Q(e,n,i,c,f){if(n==="submit"&&i&&i.stateNode===f){var m=Wx((f[jt]||null).action),S=c.submitter;S&&(n=(n=S[jt]||null)?Wx(n.formAction):S.getAttribute("formAction"),n!==null&&(m=n,S=null));var w=new _i("action","action",null,c,f);e.push({event:w,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Ca!==0){var C=S?Bx(f,S):new FormData(f);Od(i,{pending:!0,data:C,method:f.method,action:m},null,C)}}else typeof m=="function"&&(w.preventDefault(),C=S?Bx(f,S):new FormData(f),Od(i,{pending:!0,data:C,method:f.method,action:m},m,C))},currentTarget:f}]})}}for(var Wd=0;Wd<Nu.length;Wd++){var Bd=Nu[Wd],AQ=Bd.toLowerCase(),ZQ=Bd[0].toUpperCase()+Bd.slice(1);dn(AQ,"on"+ZQ)}dn(km,"onAnimationEnd"),dn(wm,"onAnimationIteration"),dn($m,"onAnimationStart"),dn("dblclick","onDoubleClick"),dn("focusin","onFocus"),dn("focusout","onBlur"),dn(J2,"onTransitionRun"),dn(eQ,"onTransitionStart"),dn(tQ,"onTransitionCancel"),dn(Tm,"onTransitionEnd"),Ms("onMouseEnter",["mouseout","mouseover"]),Ms("onMouseLeave",["mouseout","mouseover"]),Ms("onPointerEnter",["pointerout","pointerover"]),Ms("onPointerLeave",["pointerout","pointerover"]),ls("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ls("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ls("onBeforeInput",["compositionend","keypress","textInput","paste"]),ls("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ls("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ls("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xr="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(" "),EQ=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xr));function Hx(e,n){n=(n&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(n)for(var S=c.length-1;0<=S;S--){var w=c[S],C=w.instance,V=w.currentTarget;if(w=w.listener,C!==m&&f.isPropagationStopped())break e;m=w,f.currentTarget=V;try{m(f)}catch(K){Ei(K)}f.currentTarget=null,m=C}else for(S=0;S<c.length;S++){if(w=c[S],C=w.instance,V=w.currentTarget,w=w.listener,C!==m&&f.isPropagationStopped())break e;m=w,f.currentTarget=V;try{m(f)}catch(K){Ei(K)}f.currentTarget=null,m=C}}}}function $e(e,n){var i=n[iu];i===void 0&&(i=n[iu]=new Set);var c=e+"__bubble";i.has(c)||(Ix(n,e,2,!1),i.add(c))}function Hd(e,n,i){var c=0;n&&(c|=4),Ix(i,e,c,n)}var ko="_reactListening"+Math.random().toString(36).slice(2);function Id(e){if(!e[ko]){e[ko]=!0,Vh.forEach(function(i){i!=="selectionchange"&&(EQ.has(i)||Hd(i,!1,e),Hd(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[ko]||(n[ko]=!0,Hd("selectionchange",!1,n))}}function Ix(e,n,i,c){switch(kg(n)){case 2:var f=Oj;break;case 8:f=fj;break;default:f=dO}i=f.bind(null,n,i,e),f=void 0,!pu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),c?f!==void 0?e.addEventListener(n,i,{capture:!0,passive:f}):e.addEventListener(n,i,!0):f!==void 0?e.addEventListener(n,i,{passive:f}):e.addEventListener(n,i,!1)}function Fd(e,n,i,c,f){var m=c;if((n&1)===0&&(n&2)===0&&c!==null)e:for(;;){if(c===null)return;var S=c.tag;if(S===3||S===4){var w=c.stateNode.containerInfo;if(w===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(;w!==null;){if(S=Zs(w),S===null)return;if(C=S.tag,C===5||C===6||C===26||C===27){c=m=S;continue e}w=w.parentNode}}c=c.return}tm(function(){var V=m,K=hu(i),ne=[];e:{var L=Nm.get(e);if(L!==void 0){var I=_i,de=e;switch(e){case"keypress":if(Ci(i)===0)break e;case"keydown":case"keyup":I=z2;break;case"focusin":de="focus",I=vu;break;case"focusout":de="blur",I=vu;break;case"beforeblur":case"afterblur":I=vu;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=sm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=b2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=X2;break;case km:case wm:case $m:I=S2;break;case Tm:I=A2;break;case"scroll":case"scrollend":I=x2;break;case"wheel":I=E2;break;case"copy":case"cut":case"paste":I=j2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=rm;break;case"toggle":case"beforetoggle":I=M2}var ge=(n&4)!==0,Ge=!ge&&(e==="scroll"||e==="scrollend"),q=ge?L!==null?L+"Capture":null:L;ge=[];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=nr(A,q),te!=null&&ge.push(_r(A,te,U))),Ge)break;A=A.return}0<ge.length&&(L=new I(L,de,null,i,K),ne.push({event:L,listeners:ge}))}}if((n&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",I=e==="mouseout"||e==="pointerout",L&&i!==fu&&(de=i.relatedTarget||i.fromElement)&&(Zs(de)||de[As]))break e;if((I||L)&&(L=K.window===K?K:(L=K.ownerDocument)?L.defaultView||L.parentWindow:window,I?(de=i.relatedTarget||i.toElement,I=V,de=de?Zs(de):null,de!==null&&(Ge=u(de),ge=de.tag,de!==Ge||ge!==5&&ge!==27&&ge!==6)&&(de=null)):(I=null,de=V),I!==de)){if(ge=sm,te="onMouseLeave",q="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(ge=rm,te="onPointerLeave",q="onPointerEnter",A="pointer"),Ge=I==null?L:tr(I),U=de==null?L:tr(de),L=new ge(te,A+"leave",I,i,K),L.target=Ge,L.relatedTarget=U,te=null,Zs(K)===V&&(ge=new ge(q,A+"enter",de,i,K),ge.target=U,ge.relatedTarget=Ge,te=ge),Ge=te,I&&de)t:{for(ge=qQ,q=I,A=de,U=0,te=q;te;te=ge(te))U++;te=0;for(var xe=A;xe;xe=ge(xe))te++;for(;0<U-te;)q=ge(q),U--;for(;0<te-U;)A=ge(A),te--;for(;U--;){if(q===A||A!==null&&q===A.alternate){ge=q;break t}q=ge(q),A=ge(A)}ge=null}else ge=null;I!==null&&Fx(ne,L,I,ge,!1),de!==null&&Ge!==null&&Fx(ne,Ge,de,ge,!0)}}e:{if(L=V?tr(V):window,I=L.nodeName&&L.nodeName.toLowerCase(),I==="select"||I==="input"&&L.type==="file")var _e=hm;else if(Om(L))if(mm)_e=I2;else{_e=B2;var he=W2}else I=L.nodeName,!I||I.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?V&&Ou(V.elementType)&&(_e=hm):_e=H2;if(_e&&(_e=_e(e,V))){fm(ne,_e,i,K);break e}he&&he(e,L,V),e==="focusout"&&V&&L.type==="number"&&V.memoizedProps.value!=null&&du(L,"number",L.value)}switch(he=V?tr(V):window,e){case"focusin":(Om(he)||he.contentEditable==="true")&&(Ds=he,wu=V,ur=null);break;case"focusout":ur=wu=Ds=null;break;case"mousedown":$u=!0;break;case"contextmenu":case"mouseup":case"dragend":$u=!1,Qm(ne,i,K);break;case"selectionchange":if(K2)break;case"keydown":case"keyup":Qm(ne,i,K)}var je;if(Su)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 Ls?um(e,i)&&(Ne="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Ne="onCompositionStart");Ne&&(im&&i.locale!=="ko"&&(Ls||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&Ls&&(je=nm()):(xa=K,xu="value"in xa?xa.value:xa.textContent,Ls=!0)),he=wo(V,Ne),0<he.length&&(Ne=new lm(Ne,e,null,i,K),ne.push({event:Ne,listeners:he}),je?Ne.data=je:(je=dm(i),je!==null&&(Ne.data=je)))),(je=U2?V2(e,i):G2(e,i))&&(Ne=wo(V,"onBeforeInput"),0<Ne.length&&(he=new lm("onBeforeInput","beforeinput",null,i,K),ne.push({event:he,listeners:Ne}),he.data=je)),_Q(ne,e,V,i,K)}Hx(ne,n)})}function _r(e,n,i){return{instance:e,listener:n,currentTarget:i}}function wo(e,n){for(var i=n+"Capture",c=[];e!==null;){var f=e,m=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||m===null||(f=nr(e,i),f!=null&&c.unshift(_r(e,f,m)),f=nr(e,n),f!=null&&c.push(_r(e,f,m))),e.tag===3)return c;e=e.return}return[]}function qQ(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Fx(e,n,i,c,f){for(var m=n._reactName,S=[];i!==null&&i!==c;){var w=i,C=w.alternate,V=w.stateNode;if(w=w.tag,C!==null&&C===c)break;w!==5&&w!==26&&w!==27||V===null||(C=V,f?(V=nr(i,m),V!=null&&S.unshift(_r(i,V,C))):f||(V=nr(i,m),V!=null&&S.push(_r(i,V,C)))),i=i.return}S.length!==0&&e.push({event:n,listeners:S})}var MQ=/\r\n?/g,YQ=/\u0000|\uFFFD/g;function Kx(e){return(typeof e=="string"?e:""+e).replace(MQ,`
|
|
25
|
-
`).replace(YQ,"")}function Jx(e,n){return n=Kx(n),Kx(e)===n}function Ve(e,n,i,c,f,m){switch(i){case"children":typeof c=="string"?n==="body"||n==="textarea"&&c===""||Us(e,c):(typeof c=="number"||typeof c=="bigint")&&n!=="body"&&Us(e,""+c);break;case"className":Ni(e,"class",c);break;case"tabIndex":Ni(e,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Ni(e,i,c);break;case"style":Jh(e,c,m);break;case"data":if(n!=="object"){Ni(e,"data",c);break}case"src":case"href":if(c===""&&(n!=="a"||i!=="href")){e.removeAttribute(i);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(i);break}c=zi(""+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"?(n!=="input"&&Ve(e,n,"name",f.name,f,null),Ve(e,n,"formEncType",f.formEncType,f,null),Ve(e,n,"formMethod",f.formMethod,f,null),Ve(e,n,"formTarget",f.formTarget,f,null)):(Ve(e,n,"encType",f.encType,f,null),Ve(e,n,"method",f.method,f,null),Ve(e,n,"target",f.target,f,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(i);break}c=zi(""+c),e.setAttribute(i,c);break;case"onClick":c!=null&&(e.onclick=An);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(l(61));if(i=c.__html,i!=null){if(f.children!=null)throw Error(l(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=zi(""+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),Ti(e,"popover",c);break;case"xlinkActuate":_n(e,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":_n(e,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":_n(e,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":_n(e,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":_n(e,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":_n(e,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":_n(e,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":_n(e,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":_n(e,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Ti(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=m2.get(i)||i,Ti(e,i,c))}}function Kd(e,n,i,c,f,m){switch(i){case"style":Jh(e,c,m);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(l(61));if(i=c.__html,i!=null){if(f.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"children":typeof c=="string"?Us(e,c):(typeof c=="number"||typeof c=="bigint")&&Us(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=An);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Gh.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),n=i.slice(2,f?i.length-7:void 0),m=e[jt]||null,m=m!=null?m[i]:null,typeof m=="function"&&e.removeEventListener(n,m,f),typeof c=="function")){typeof m!="function"&&m!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(n,c,f);break e}i in e?e[i]=c:c===!0?e.setAttribute(i,""):Ti(e,i,c)}}}function xt(e,n,i){switch(n){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(l(137,n));default:Ve(e,n,m,S,i,null)}}f&&Ve(e,n,"srcSet",i.srcSet,i,null),c&&Ve(e,n,"src",i.src,i,null);return;case"input":$e("invalid",e);var w=m=S=f=null,C=null,V=null;for(c in i)if(i.hasOwnProperty(c)){var K=i[c];if(K!=null)switch(c){case"name":f=K;break;case"type":S=K;break;case"checked":C=K;break;case"defaultChecked":V=K;break;case"value":m=K;break;case"defaultValue":w=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(l(137,n));break;default:Ve(e,n,c,K,i,null)}}Hh(e,m,w,C,V,S,f,!1);return;case"select":$e("invalid",e),c=S=m=null;for(f in i)if(i.hasOwnProperty(f)&&(w=i[f],w!=null))switch(f){case"value":m=w;break;case"defaultValue":S=w;break;case"multiple":c=w;default:Ve(e,n,f,w,i,null)}n=m,i=S,e.multiple=!!c,n!=null?Ys(e,!!c,n,!1):i!=null&&Ys(e,!!c,i,!0);return;case"textarea":$e("invalid",e),m=f=c=null;for(S in i)if(i.hasOwnProperty(S)&&(w=i[S],w!=null))switch(S){case"value":c=w;break;case"defaultValue":f=w;break;case"children":m=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(l(91));break;default:Ve(e,n,S,w,i,null)}Fh(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,n,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<Xr.length;c++)$e(Xr[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(l(137,n));default:Ve(e,n,V,c,i,null)}return;default:if(Ou(n)){for(K in i)i.hasOwnProperty(K)&&(c=i[K],c!==void 0&&Kd(e,n,K,c,i,void 0));return}}for(w in i)i.hasOwnProperty(w)&&(c=i[w],c!=null&&Ve(e,n,w,c,i,null))}function UQ(e,n,i,c){switch(n){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,w=null,C=null,V=null,K=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,n,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":K=I;break;case"value":S=I;break;case"defaultValue":w=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(l(137,n));break;default:I!==ne&&Ve(e,n,L,I,c,ne)}}uu(e,S,w,C,V,K,m,f);return;case"select":I=S=w=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,n,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":w=m;break;case"multiple":S=m;default:m!==C&&Ve(e,n,f,m,c,C)}n=w,i=S,c=I,L!=null?Ys(e,!!i,L,!1):!!c!=!!i&&(n!=null?Ys(e,!!i,n,!0):Ys(e,!!i,i?[]:"",!1));return;case"textarea":I=L=null;for(w in i)if(f=i[w],i.hasOwnProperty(w)&&f!=null&&!c.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Ve(e,n,w,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(l(91));break;default:f!==m&&Ve(e,n,S,f,c,m)}Ih(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,n,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,n,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 ge in i)L=i[ge],i.hasOwnProperty(ge)&&L!=null&&!c.hasOwnProperty(ge)&&Ve(e,n,ge,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(l(137,n));break;default:Ve(e,n,V,L,c,I)}return;default:if(Ou(n)){for(var Ge in i)L=i[Ge],i.hasOwnProperty(Ge)&&L!==void 0&&!c.hasOwnProperty(Ge)&&Kd(e,n,Ge,void 0,c,L);for(K in c)L=c[K],I=i[K],!c.hasOwnProperty(K)||L===I||L===void 0&&I===void 0||Kd(e,n,K,L,c,I);return}}for(var q in i)L=i[q],i.hasOwnProperty(q)&&L!=null&&!c.hasOwnProperty(q)&&Ve(e,n,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,n,ne,L,c,I)}function eg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function VQ(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,i=performance.getEntriesByType("resource"),c=0;c<i.length;c++){var f=i[c],m=f.transferSize,S=f.initiatorType,w=f.duration;if(m&&w&&eg(S)){for(S=0,w=f.responseEnd,c+=1;c<i.length;c++){var C=i[c],V=C.startTime;if(V>w)break;var K=C.transferSize,ne=C.initiatorType;K&&eg(ne)&&(C=C.responseEnd,S+=K*(C<w?1:(w-V)/(C-V)))}if(--c,n+=8*(m+S)/(f.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Jd=null,eO=null;function $o(e){return e.nodeType===9?e:e.ownerDocument}function tg(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 ng(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function tO(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var nO=null;function GQ(){var e=window.event;return e&&e.type==="popstate"?e===nO?!1:(nO=e,!0):(nO=null,!1)}var ag=typeof setTimeout=="function"?setTimeout:void 0,LQ=typeof clearTimeout=="function"?clearTimeout:void 0,sg=typeof Promise=="function"?Promise:void 0,DQ=typeof queueMicrotask=="function"?queueMicrotask:typeof sg<"u"?function(e){return sg.resolve(null).then(e).catch(WQ)}:ag;function WQ(e){setTimeout(function(){throw e})}function Xa(e){return e==="head"}function lg(e,n){var i=n,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),bl(n);return}c--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")c++;else if(i==="html")Ar(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,Ar(i);for(var m=i.firstChild;m;){var S=m.nextSibling,w=m.nodeName;m[er]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&m.rel.toLowerCase()==="stylesheet"||i.removeChild(m),m=S}}else i==="body"&&Ar(e.ownerDocument.body);i=f}while(i);bl(n)}function rg(e,n){var i=e;e=0;do{var c=i.nextSibling;if(i.nodeType===1?n?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(n?(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 aO(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":aO(i),ou(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function BQ(e,n,i,c){for(;e.nodeType===1;){var f=i;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!c&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(c){if(!e[er])switch(n){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(n==="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=sn(e.nextSibling),e===null)break}return null}function HQ(e,n,i){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=sn(e.nextSibling),e===null))return null;return e}function ig(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=sn(e.nextSibling),e===null))return null;return e}function sO(e){return e.data==="$?"||e.data==="$~"}function lO(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function IQ(e,n){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||i.readyState!=="loading")n();else{var c=function(){n(),i.removeEventListener("DOMContentLoaded",c)};i.addEventListener("DOMContentLoaded",c),e._reactRetry=c}}function sn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var rO=null;function og(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(n===0)return sn(e.nextSibling);n--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||n++}e=e.nextSibling}return null}function cg(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(n===0)return e;n--}else i!=="/$"&&i!=="/&"||n++}e=e.previousSibling}return null}function ug(e,n,i){switch(n=$o(i),e){case"html":if(e=n.documentElement,!e)throw Error(l(452));return e;case"head":if(e=n.head,!e)throw Error(l(453));return e;case"body":if(e=n.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Ar(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);ou(e)}var ln=new Map,dg=new Set;function To(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Kn=B.d;B.d={f:FQ,r:KQ,D:JQ,C:ej,L:tj,m:nj,X:sj,S:aj,M:lj};function FQ(){var e=Kn.f(),n=bo();return e||n}function KQ(e){var n=Es(e);n!==null&&n.tag===5&&n.type==="form"?Tp(n):Kn.r(e)}var pl=typeof document>"u"?null:document;function Og(e,n,i){var c=pl;if(c&&typeof n=="string"&&n){var f=Ft(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),dg.has(f)||(dg.add(f),e={rel:e,crossOrigin:i,href:n},c.querySelector(f)===null&&(n=c.createElement("link"),xt(n,"link",e),ut(n),c.head.appendChild(n)))}}function JQ(e){Kn.D(e),Og("dns-prefetch",e,null)}function ej(e,n){Kn.C(e,n),Og("preconnect",e,n)}function tj(e,n,i){Kn.L(e,n,i);var c=pl;if(c&&e&&n){var f='link[rel="preload"][as="'+Ft(n)+'"]';n==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+Ft(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+Ft(i.imageSizes)+'"]')):f+='[href="'+Ft(e)+'"]';var m=f;switch(n){case"style":m=xl(e);break;case"script":m=gl(e)}ln.has(m)||(e=g({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),ln.set(m,e),c.querySelector(f)!==null||n==="style"&&c.querySelector(Zr(m))||n==="script"&&c.querySelector(Er(m))||(n=c.createElement("link"),xt(n,"link",e),ut(n),c.head.appendChild(n)))}}function nj(e,n){Kn.m(e,n);var i=pl;if(i&&e){var c=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+Ft(c)+'"][href="'+Ft(e)+'"]',m=f;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=gl(e)}if(!ln.has(m)&&(e=g({rel:"modulepreload",href:e},n),ln.set(m,e),i.querySelector(f)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Er(m)))return}c=i.createElement("link"),xt(c,"link",e),ut(c),i.head.appendChild(c)}}}function aj(e,n,i){Kn.S(e,n,i);var c=pl;if(c&&e){var f=qs(c).hoistableStyles,m=xl(e);n=n||"default";var S=f.get(m);if(!S){var w={loading:0,preload:null};if(S=c.querySelector(Zr(m)))w.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":n},i),(i=ln.get(m))&&iO(e,i);var C=S=c.createElement("link");ut(C),xt(C,"link",e),C._p=new Promise(function(V,K){C.onload=V,C.onerror=K}),C.addEventListener("load",function(){w.loading|=1}),C.addEventListener("error",function(){w.loading|=2}),w.loading|=4,No(S,n,c)}S={type:"stylesheet",instance:S,count:1,state:w},f.set(m,S)}}}function sj(e,n){Kn.X(e,n);var i=pl;if(i&&e){var c=qs(i).hoistableScripts,f=gl(e),m=c.get(f);m||(m=i.querySelector(Er(f)),m||(e=g({src:e,async:!0},n),(n=ln.get(f))&&oO(e,n),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 lj(e,n){Kn.M(e,n);var i=pl;if(i&&e){var c=qs(i).hoistableScripts,f=gl(e),m=c.get(f);m||(m=i.querySelector(Er(f)),m||(e=g({src:e,async:!0,type:"module"},n),(n=ln.get(f))&&oO(e,n),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 fg(e,n,i,c){var f=(f=ue.current)?To(f):null;if(!f)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=xl(i.href),i=qs(f).hoistableStyles,c=i.get(n),c||(c={type:"style",instance:null,count:0,state:null},i.set(n,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=xl(i.href);var m=qs(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(Zr(e)))&&!m._p&&(S.instance=m,S.state.loading=5),ln.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},ln.set(e,i),m||rj(f,e,i,S.state))),n&&c===null)throw Error(l(528,""));return S}if(n&&c!==null)throw Error(l(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=gl(i),i=qs(f).hoistableScripts,c=i.get(n),c||(c={type:"script",instance:null,count:0,state:null},i.set(n,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function xl(e){return'href="'+Ft(e)+'"'}function Zr(e){return'link[rel="stylesheet"]['+e+"]"}function hg(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function rj(e,n,i,c){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?c.loading=1:(n=e.createElement("link"),c.preload=n,n.addEventListener("load",function(){return c.loading|=1}),n.addEventListener("error",function(){return c.loading|=2}),xt(n,"link",i),ut(n),e.head.appendChild(n))}function gl(e){return'[src="'+Ft(e)+'"]'}function Er(e){return"script[async]"+e}function mg(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var c=e.querySelector('style[data-href~="'+Ft(i.href)+'"]');if(c)return n.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),No(c,i.precedence,e),n.instance=c;case"stylesheet":f=xl(i.href);var m=e.querySelector(Zr(f));if(m)return n.state.loading|=4,n.instance=m,ut(m),m;c=hg(i),(f=ln.get(f))&&iO(c,f),m=(e.ownerDocument||e).createElement("link"),ut(m);var S=m;return S._p=new Promise(function(w,C){S.onload=w,S.onerror=C}),xt(m,"link",c),n.state.loading|=4,No(m,i.precedence,e),n.instance=m;case"script":return m=gl(i.src),(f=e.querySelector(Er(m)))?(n.instance=f,ut(f),f):(c=i,(f=ln.get(m))&&(c=g({},i),oO(c,f)),e=e.ownerDocument||e,f=e.createElement("script"),ut(f),xt(f,"link",c),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(l(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(c=n.instance,n.state.loading|=4,No(c,i.precedence,e));return n.instance}function No(e,n,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 w=c[S];if(w.dataset.precedence===n)m=w;else if(m!==f)break}m?m.parentNode.insertBefore(e,m.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(e,n.firstChild))}function iO(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function oO(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Po=null;function pg(e,n,i){if(Po===null){var c=new Map,f=Po=new Map;f.set(i,c)}else f=Po,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[er]||m[ft]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var S=m.getAttribute(n)||"";S=e+S;var w=c.get(S);w?w.push(m):c.set(S,[m])}}return c}function xg(e,n,i){e=e.ownerDocument||e,e.head.insertBefore(i,n==="title"?e.querySelector("head > title"):null)}function ij(e,n,i){if(i===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function gg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function oj(e,n,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=xl(c.href),m=n.querySelector(Zr(f));if(m){n=m._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=zo.bind(e),n.then(e,e)),i.state.loading|=4,i.instance=m,ut(m);return}m=n.ownerDocument||n,c=hg(c),(f=ln.get(f))&&iO(c,f),m=m.createElement("link"),ut(m);var S=m;S._p=new Promise(function(w,C){S.onload=w,S.onerror=C}),xt(m,"link",c),i.instance=m}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=zo.bind(e),n.addEventListener("load",i),n.addEventListener("error",i))}}var cO=0;function cj(e,n){return e.stylesheets&&e.count===0&&Co(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var c=setTimeout(function(){if(e.stylesheets&&Co(e,e.stylesheets),e.unsuspend){var m=e.unsuspend;e.unsuspend=null,m()}},6e4+n);0<e.imgBytes&&cO===0&&(cO=62500*VQ());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Co(e,e.stylesheets),e.unsuspend)){var m=e.unsuspend;e.unsuspend=null,m()}},(e.imgBytes>cO?50:800)+n);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(c),clearTimeout(f)}}:null}function zo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Co(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ro=null;function Co(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ro=new Map,n.forEach(uj,e),Ro=null,zo.call(e))}function uj(e,n){if(!(n.state.loading&4)){var i=Ro.get(e);if(i)var c=i.get(null);else{i=new Map,Ro.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=n.instance,S=f.getAttribute("data-precedence"),m=i.get(S)||c,m===c&&i.set(null,f),i.set(S,f),this.count++,c=zo.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)),n.state.loading|=4}}var qr={$$typeof:N,Provider:null,Consumer:null,_currentValue:E,_currentValue2:E,_threadCount:0};function dj(e,n,i,c,f,m,S,w,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=su(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=su(0),this.hiddenUpdates=su(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 bg(e,n,i,c,f,m,S,w,C,V,K,ne){return e=new dj(e,n,i,S,C,V,K,ne,w),n=1,m===!0&&(n|=24),m=At(3,null,null,n),e.current=m,m.stateNode=e,n=Uu(),n.refCount++,e.pooledCache=n,n.refCount++,m.memoizedState={element:c,isDehydrated:i,cache:n},Du(m),e}function vg(e){return e?(e=Hs,e):Hs}function yg(e,n,i,c,f,m){f=vg(f),c.context===null?c.context=f:c.pendingContext=f,c=Qa(n),c.payload={element:i},m=m===void 0?null:m,m!==null&&(c.callback=m),i=ja(e,c,n),i!==null&&(Pt(i,e,n),xr(i,e,n))}function Sg(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function uO(e,n){Sg(e,n),(e=e.alternate)&&Sg(e,n)}function Qg(e){if(e.tag===13||e.tag===31){var n=cs(e,67108864);n!==null&&Pt(n,e,67108864),uO(e,67108864)}}function jg(e){if(e.tag===13||e.tag===31){var n=Yt();n=lu(n);var i=cs(e,n);i!==null&&Pt(i,e,n),uO(e,n)}}var Xo=!0;function Oj(e,n,i,c){var f=P.T;P.T=null;var m=B.p;try{B.p=2,dO(e,n,i,c)}finally{B.p=m,P.T=f}}function fj(e,n,i,c){var f=P.T;P.T=null;var m=B.p;try{B.p=8,dO(e,n,i,c)}finally{B.p=m,P.T=f}}function dO(e,n,i,c){if(Xo){var f=OO(c);if(f===null)Fd(e,n,c,_o,i),wg(e,c);else if(mj(f,e,n,i,c))c.stopPropagation();else if(wg(e,c),n&4&&-1<hj.indexOf(e)){for(;f!==null;){var m=Es(f);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var S=ss(m.pendingLanes);if(S!==0){var w=m;for(w.pendingLanes|=2,w.entangledLanes|=2;S;){var C=1<<31-Xt(S);w.entanglements[1]|=C,S&=~C}kn(m),(Ee&6)===0&&(xo=Rt()+500,Cr(0))}}break;case 31:case 13:w=cs(m,2),w!==null&&Pt(w,m,2),bo(),uO(m,2)}if(m=OO(c),m===null&&Fd(e,n,c,_o,i),m===f)break;f=m}f!==null&&c.stopPropagation()}else Fd(e,n,c,null,i)}}function OO(e){return e=hu(e),fO(e)}var _o=null;function fO(e){if(_o=null,e=Zs(e),e!==null){var n=u(e);if(n===null)e=null;else{var i=n.tag;if(i===13){if(e=d(n),e!==null)return e;e=null}else if(i===31){if(e=O(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return _o=e,null}function kg(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(JS()){case Ch:return 2;case Xh:return 8;case Qi:case e2:return 32;case _h:return 268435456;default:return 32}default:return 32}}var hO=!1,_a=null,Aa=null,Za=null,Mr=new Map,Yr=new Map,Ea=[],hj="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 wg(e,n){switch(e){case"focusin":case"focusout":_a=null;break;case"dragenter":case"dragleave":Aa=null;break;case"mouseover":case"mouseout":Za=null;break;case"pointerover":case"pointerout":Mr.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yr.delete(n.pointerId)}}function Ur(e,n,i,c,f,m){return e===null||e.nativeEvent!==m?(e={blockedOn:n,domEventName:i,eventSystemFlags:c,nativeEvent:m,targetContainers:[f]},n!==null&&(n=Es(n),n!==null&&Qg(n)),e):(e.eventSystemFlags|=c,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function mj(e,n,i,c,f){switch(n){case"focusin":return _a=Ur(_a,e,n,i,c,f),!0;case"dragenter":return Aa=Ur(Aa,e,n,i,c,f),!0;case"mouseover":return Za=Ur(Za,e,n,i,c,f),!0;case"pointerover":var m=f.pointerId;return Mr.set(m,Ur(Mr.get(m)||null,e,n,i,c,f)),!0;case"gotpointercapture":return m=f.pointerId,Yr.set(m,Ur(Yr.get(m)||null,e,n,i,c,f)),!0}return!1}function $g(e){var n=Zs(e.target);if(n!==null){var i=u(n);if(i!==null){if(n=i.tag,n===13){if(n=d(i),n!==null){e.blockedOn=n,Yh(e.priority,function(){jg(i)});return}}else if(n===31){if(n=O(i),n!==null){e.blockedOn=n,Yh(e.priority,function(){jg(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ao(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=OO(e.nativeEvent);if(i===null){i=e.nativeEvent;var c=new i.constructor(i.type,i);fu=c,i.target.dispatchEvent(c),fu=null}else return n=Es(i),n!==null&&Qg(n),e.blockedOn=i,!1;n.shift()}return!0}function Tg(e,n,i){Ao(e)&&i.delete(n)}function pj(){hO=!1,_a!==null&&Ao(_a)&&(_a=null),Aa!==null&&Ao(Aa)&&(Aa=null),Za!==null&&Ao(Za)&&(Za=null),Mr.forEach(Tg),Yr.forEach(Tg)}function Zo(e,n){e.blockedOn===n&&(e.blockedOn=null,hO||(hO=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,pj)))}var Eo=null;function Ng(e){Eo!==e&&(Eo=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Eo===e&&(Eo=null);for(var n=0;n<e.length;n+=3){var i=e[n],c=e[n+1],f=e[n+2];if(typeof c!="function"){if(fO(c||i)===null)continue;break}var m=Es(i);m!==null&&(e.splice(n,3),n-=3,Od(m,{pending:!0,data:f,method:i.method,action:c},c,f))}}))}function bl(e){function n(C){return Zo(C,e)}_a!==null&&Zo(_a,e),Aa!==null&&Zo(Aa,e),Za!==null&&Zo(Za,e),Mr.forEach(n),Yr.forEach(n);for(var i=0;i<Ea.length;i++){var c=Ea[i];c.blockedOn===e&&(c.blockedOn=null)}for(;0<Ea.length&&(i=Ea[0],i.blockedOn===null);)$g(i),i.blockedOn===null&&Ea.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[jt]||null;if(typeof m=="function")S||Ng(i);else if(S){var w=null;if(m&&m.hasAttribute("formAction")){if(f=m,S=m[jt]||null)w=S.formAction;else if(fO(f)!==null)continue}else w=S.action;typeof w=="function"?i[c+1]=w:(i.splice(c,3),c-=3),Ng(i)}}}function Pg(){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 n(){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",n),navigation.addEventListener("navigateerror",n),setTimeout(i,100),function(){c=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function mO(e){this._internalRoot=e}qo.prototype.render=mO.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(l(409));var i=n.current,c=Yt();yg(i,c,e,n,null,null)},qo.prototype.unmount=mO.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;yg(e.current,2,null,e,null,null),bo(),n[As]=null}};function qo(e){this._internalRoot=e}qo.prototype.unstable_scheduleHydration=function(e){if(e){var n=Mh();e={blockedOn:null,target:e,priority:n};for(var i=0;i<Ea.length&&n!==0&&n<Ea[i].priority;i++);Ea.splice(i,0,e),i===0&&$g(e)}};var zg=a.version;if(zg!=="19.2.4")throw Error(l(527,zg,"19.2.4"));B.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=p(n),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var xj={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Mo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mo.isDisabled&&Mo.supportsFiber)try{Fl=Mo.inject(xj),Ct=Mo}catch{}}return Vr.createRoot=function(e,n){if(!o(e))throw Error(l(299));var i=!1,c="",f=Ep,m=qp,S=Mp;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError)),n=bg(e,1,!1,null,null,i,c,null,f,m,S,Pg),e[As]=n.current,Id(e),new mO(n)},Vr.hydrateRoot=function(e,n,i){if(!o(e))throw Error(l(299));var c=!1,f="",m=Ep,S=qp,w=Mp,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&&(w=i.onRecoverableError),i.formState!==void 0&&(C=i.formState)),n=bg(e,1,!0,n,i??null,c,f,C,m,S,w,Pg),n.context=vg(null),i=n.current,c=Yt(),c=lu(c),f=Qa(c),f.callback=null,ja(i,f,c),i=c,n.current.lanes=i,Jl(n,i),kn(n),e[As]=n.current,Id(e),new qo(n)},Vr.version="19.2.4",Vr}var Ag;function sk(){if(Ag)return pO.exports;Ag=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(a){console.error(a)}}return t(),pO.exports=ak(),pO.exports}var lk=sk();const rk="/api";class ik extends Error{constructor(a,s,l){super(a),this.name="ApiError",this.status=s,this.body=l}}async function Gr(t,a,s){const l=`${rk}${a}`,o={method:t,headers:{}};s!==void 0&&(o.headers["Content-Type"]="application/json",o.body=JSON.stringify(s));const u=await fetch(l,o),d=await u.text();let O;try{O=JSON.parse(d)}catch{O=d}if(!u.ok)throw new ik((O==null?void 0:O.error)||(O==null?void 0:O.message)||`Request failed: ${u.status}`,u.status,O);return O}const J={get:t=>Gr("GET",t),post:(t,a)=>Gr("POST",t,a),put:(t,a)=>Gr("PUT",t,a),patch:(t,a)=>Gr("PATCH",t,a),delete:(t,a)=>Gr("DELETE",t,a)},ok=`ws://${window.location.hostname}:${window.location.port||31415}`;let ck=0;function uf(t,a={}){try{return JSON.parse(localStorage.getItem(t)||JSON.stringify(a))}catch{return a}}function kl(t,a){try{localStorage.setItem(t,JSON.stringify(a))}catch{}}const Zg="0.22.27";uf("groove:storeVersion")!==Zg&&(localStorage.removeItem("groove:chatHistory"),localStorage.removeItem("groove:activityLog"),kl("groove:storeVersion",Zg));const D=vj((t,a)=>({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:uf("groove:activityLog"),chatHistory:uf("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(a().ws)return;const s=new WebSocket(ok);t({ws:s}),s.onopen=()=>{t({connected:!0}),J.get("/status").then(l=>{const o={};l.host&&l.host!=="127.0.0.1"&&(o.daemonHost=l.host);const u=window.location.port||"80";String(l.port)!==u&&(o.tunneled=!0),Object.keys(o).length>0&&t(o)}).catch(()=>{}),a().fetchTeams(),a().fetchApprovals(),a().checkMarketplaceAuth()},s.onmessage=l=>{var u,d,O;const o=JSON.parse(l.data);switch(o.type){case"state":{const h={...a().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=a().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 k,$,j;return`${Q.name}: ${typeof Q.input=="string"?Q.input.slice(0,80):((k=Q.input)==null?void 0:k.command)||(($=Q.input)==null?void 0:$.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=a().agents.map(k=>{if(k.id!==h)return k;const $={};return p.contextUsage!==void 0&&($.contextUsage=p.contextUsage),p.tokensUsed!==void 0&&($.tokensUsed=p.tokensUsed),{...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")){a().thinkingAgents.has(h)&&t(_=>{const G=new Set(_.thinkingAgents);return G.delete(h),{thinkingAgents:G}});const Q=x.trim(),k={...a().chatHistory};k[h]||(k[h]=[]);const $=[...k[h]],j=$[$.length-1],z=j&&j.from==="agent"&&Date.now()-j.timestamp<8e3;if(!(z&&(j.text===Q||j.text.endsWith(Q)))){if(z){const _=p.subtype==="assistant"?`
|
|
28
|
-
|
|
29
|
-
`:" ";$[$.length-1]={...j,text:j.text+_+Q,timestamp:Date.now()}}else $.push({from:"agent",text:Q,timestamp:Date.now()});k[h]=$.slice(-100),t({chatHistory:k}),kl("groove:chatHistory",k)}}if(g&&g.trim()){const Q={...a().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}),kl("groove:activityLog",Q)}break}case"agent:exit":{const h=a().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";a().addToast(b,g,o.error?o.error.slice(0,200):void 0),o.error&&o.agentId&&a().addChatMessage(o.agentId,"system",`Crashed: ${o.error}`),(h==null?void 0:h.role)==="planner"&&o.status==="completed"&&setTimeout(()=>a().checkRecommendedTeam(),1e3);break}case"phase2:spawned":a().addToast("info",`QC agent ${o.name} auto-spawned`,"Auditing phase 1 work");break;case"phase2:failed":a().addToast("error","QC agent failed to spawn",o.error||"Unknown error");break;case"rotation:start":a().addToast("info",`Rotating ${o.agentName}...`);break;case"rotation:complete":{a().addToast("success",`Rotated ${o.agentName}`,`Saved ${o.tokensSaved} tokens`);const h=a().detailPanel;(h==null?void 0:h.type)==="agent"&&h.agentId===o.oldAgentId&&o.newAgentId&&t(p=>{var y,Q,k;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]]),(k=b[o.oldAgentId])!=null&&k.length&&(b[o.newAgentId]=[...b[o.oldAgentId]]),{chatHistory:x,tokenTimeline:g,activityLog:b,detailPanel:{type:"agent",agentId:o.newAgentId}}});break}case"rotation:failed":a().addToast("error","Rotation failed",o.error);break;case"file:changed":{const h=a().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":a().fetchTeams();break;case"approval:request":t(h=>({pendingApprovals:[...h.pendingApprovals,o.data]})),a().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":a().addToast("error",`Scope conflict: ${o.agentName||"agent"}`,o.filePath?`File: ${o.filePath}`:void 0);break;case"qc:activated":a().addToast("info","QC agent activated",`${o.agentCount||"4+"} agents running`);break;case"journalist:cycle":t({journalistStatus:o.data||null});break;case"schedule:execute":a().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(()=>a().connect(),2e3)},s.onerror=()=>s.close()},setActiveView(s){t({activeView:s})},async fetchTeams(){try{const s=await J.get("/teams"),l=s.teams||[],o=s.defaultTeamId,{activeTeamId:u}=a(),O=l.map(h=>h.id).includes(u)?u:o;t({teams:l,activeTeamId:O}),O&&localStorage.setItem("groove:activeTeamId",O)}catch{}},switchTeam(s){t({activeTeamId:s,detailPanel:null}),localStorage.setItem("groove:activeTeamId",s)},async createTeam(s,l){try{const o={name:s};l&&(o.workingDir=l);const u=await J.post("/teams",o);return t({activeTeamId:u.id}),localStorage.setItem("groove:activeTeamId",u.id),a().addToast("success",`Team "${s}" created`),u}catch(o){throw a().addToast("error","Failed to create team",o.message),o}},async deleteTeam(s){const l=a().teams.find(o=>o.id===s);if(l!=null&&l.isDefault){a().addToast("warning","Cannot delete the default team");return}try{await J.delete(`/teams/${s}`),a().addToast("info",`Team "${l==null?void 0:l.name}" deleted`)}catch(o){a().addToast("error","Failed to delete team",o.message)}},async renameTeam(s,l){try{const o=await J.patch(`/teams/${s}`,{name:l});return t(u=>({teams:u.teams.map(d=>d.id===s?o:d)})),o}catch(o){throw a().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,l,o){const u=++ck;t(d=>({toasts:[...d.toasts,{id:u,type:s,message:l,detail:o}]}))},removeToast(s){t(l=>({toasts:l.toasts.filter(o=>o.id!==s)}))},async checkMarketplaceAuth(){try{const s=await J.get("/auth/status");t({marketplaceAuthenticated:s.authenticated||!1,marketplaceUser:s.user||null})}catch{t({marketplaceAuthenticated:!1,marketplaceUser:null})}},async marketplaceLogin(){try{const s=await J.get("/auth/login-url");s.url&&window.open(s.url,"_blank");const l=setInterval(async()=>{var o,u;try{const d=await J.get("/auth/status");d.authenticated&&(clearInterval(l),t({marketplaceAuthenticated:!0,marketplaceUser:d.user}),a().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(l),3e5)}catch(s){a().addToast("error","Login failed",s.message)}},async marketplaceLogout(){try{await J.post("/auth/logout"),t({marketplaceAuthenticated:!1,marketplaceUser:null}),a().addToast("info","Signed out of marketplace")}catch(s){a().addToast("error","Logout failed",s.message)}},async marketplaceCheckout(s){try{const l=await J.post("/auth/checkout",{skillId:s});return l.url&&window.open(l.url,"_blank"),l}catch(l){throw a().addToast("error","Checkout failed",l.message),l}},async fetchApprovals(){try{const s=await J.get("/approvals");t({pendingApprovals:s.pending||[],resolvedApprovals:s.resolved||[]})}catch{}},async approveRequest(s){try{await J.post(`/approvals/${s}/approve`),t(l=>({pendingApprovals:l.pendingApprovals.filter(o=>o.id!==s)})),a().addToast("success","Approved")}catch(l){a().addToast("error","Approve failed",l.message)}},async rejectRequest(s,l=""){try{await J.post(`/approvals/${s}/reject`,{reason:l}),t(o=>({pendingApprovals:o.pendingApprovals.filter(u=>u.id!==s)})),a().addToast("info","Rejected")}catch(o){a().addToast("error","Reject failed",o.message)}},async checkRecommendedTeam(){var s;try{const l=await J.get("/recommended-team");if(!l||!((s=l.agents)!=null&&s.length)){t({recommendedTeam:null});return}const u=a().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=a().agents.filter(x=>x.teamId===d&&x.role!=="planner"),h=l.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 J.post("/recommended-team/launch")).agents||[],b=g.map(y=>y.name).join(", ")||"";a().addToast("success","Planner delegated work",b?`→ ${b}`:void 0),g.length>0&&t(y=>({thinkingAgents:new Set([...y.thinkingAgents,...g.map(Q=>Q.id)])})),J.post("/cleanup").catch(()=>{});return}}t({recommendedTeam:l})}catch{t({recommendedTeam:null})}},async launchRecommendedTeam(s){try{t({recommendedTeam:null}),a().addToast("info","Launching team...");const l=s?{agents:s}:void 0,o=await J.post("/recommended-team/launch",l),u=[o.phase2Pending?`${o.phase2Pending} QC queued`:"",o.projectDir?`→ ${o.projectDir}/`:""].filter(Boolean).join(" · ");a().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)])})),J.post("/cleanup").catch(()=>{}),o}catch(l){throw a().addToast("error","Launch failed",l.message),l}},async fetchJournalist(){try{const s=await J.get("/journalist");return t({journalistStatus:s}),s}catch{return null}},async triggerJournalistCycle(){try{const s=await J.post("/journalist/cycle");return a().addToast("success","Synthesis cycle triggered"),t({journalistStatus:s}),s}catch(s){throw a().addToast("error","Synthesis failed",s.message),s}},async spawnAgent(s){try{const l=a().activeTeamId,o=await J.post("/agents",{...s,teamId:l});return a().addToast("success",`Spawned ${o.name}`),o}catch(l){throw a().addToast("error","Spawn failed",l.message),l}},async killAgent(s,l=!1){try{await J.delete(`/agents/${s}?purge=${l}`)}catch(o){a().addToast("error","Kill failed",o.message)}},async rotateAgent(s){try{return await J.post(`/agents/${s}/rotate`)}catch(l){throw a().addToast("error","Rotation failed",l.message),l}},async fetchProviders(){return J.get("/providers")},addChatMessage(s,l,o,u=!1){t(d=>{const O={...d.chatHistory};return O[s]||(O[s]=[]),O[s]=[...O[s].slice(-100),{from:l,text:o,timestamp:Date.now(),isQuery:u}],kl("groove:chatHistory",O),{chatHistory:O}})},thinkingAgents:new Set,async instructAgent(s,l){var d,O;const o=a().agents.find(h=>h.id===s);if(o&&(o.status==="running"||o.status==="starting")){a().addChatMessage(s,"user",l,!1);try{const h=await J.post(`/agents/${s}/query`,{message:l});return h.status==="pending"||h.response==="Message sent to agent"?(t(p=>({thinkingAgents:new Set([...p.thinkingAgents,s])})),h):(a().addChatMessage(s,"agent",h.response),h)}catch(h){throw a().addChatMessage(s,"system",`failed: ${h.message}`),h}}a().addChatMessage(s,"user",l,!1),t(h=>({thinkingAgents:new Set([...h.thinkingAgents,s])}));try{const h=await J.post(`/agents/${s}/instruct`,{message:l});for(const p of["chatHistory","activityLog","tokenTimeline"]){const x=a()[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=a().chatHistory[s])!=null&&d.length&&kl("groove:chatHistory",a().chatHistory),(O=a().activityLog[s])!=null&&O.length&&kl("groove:activityLog",a().activityLog),a().selectAgent(h.id),h}catch(h){throw t(p=>{const x=new Set(p.thinkingAgents);return x.delete(s),{thinkingAgents:x}}),a().addChatMessage(s,"system",`failed: ${h.message}`),h}},async queryAgent(s,l){a().addChatMessage(s,"user",l,!0);try{const o=await J.post(`/agents/${s}/query`,{message:l});return a().addChatMessage(s,"agent",o.response),o}catch(o){throw a().addChatMessage(s,"system",`query failed: ${o.message}`),o}},async openFile(s){var u;if(a().editorFiles[s]||a().editorOpenTabs.includes(s)){t(d=>({editorActiveFile:s,editorOpenTabs:d.editorOpenTabs.includes(s)?d.editorOpenTabs:[...d.editorOpenTabs,s]}));return}const l=(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(l)){t(d=>({editorActiveFile:s,editorOpenTabs:[...d.editorOpenTabs,s]}));return}try{const d=await J.get(`/files/read?path=${encodeURIComponent(s)}`);if(d.binary){a().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=a().ws;(O==null?void 0:O.readyState)===1&&O.send(JSON.stringify({type:"editor:watch",path:s}))}catch(d){a().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 l=a().ws;(l==null?void 0:l.readyState)===1&&l.send(JSON.stringify({type:"editor:unwatch",path:s}))},setActiveFile(s){t({editorActiveFile:s})},updateFileContent(s,l){t(o=>({editorFiles:{...o.editorFiles,[s]:{...o.editorFiles[s],content:l}}}))},async saveFile(s){const l=a().editorFiles[s];if(l)try{await J.post("/files/write",{path:s,content:l.content}),t(o=>({editorFiles:{...o.editorFiles,[s]:{...o.editorFiles[s],originalContent:l.content}},editorChangedFiles:(()=>{const u={...o.editorChangedFiles};return delete u[s],u})(),editorRecentSaves:{...o.editorRecentSaves,[s]:Date.now()}})),a().addToast("success","File saved")}catch(o){a().addToast("error","Save failed",o.message)}},async reloadFile(s){try{const l=await J.get(`/files/read?path=${encodeURIComponent(s)}`);if(l.binary)return;t(o=>({editorFiles:{...o.editorFiles,[s]:{content:l.content,originalContent:l.content,language:l.language,loadedAt:Date.now()}},editorChangedFiles:(()=>{const u={...o.editorChangedFiles};return delete u[s],u})()}))}catch{}},dismissFileChange(s){t(l=>{const o={...l.editorChangedFiles};return delete o[s],{editorChangedFiles:o}})},async fetchTreeDir(s){try{const l=await J.get(`/files/tree?path=${encodeURIComponent(s)}`);t(o=>({editorTreeCache:{...o.editorTreeCache,[s]:l.entries}}))}catch{}},async createFile(s){try{await J.post("/files/create",{path:s});const l=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await a().fetchTreeDir(l),a().addToast("success","File created"),!0}catch(l){return a().addToast("error","Create failed",l.message),!1}},async createDir(s){try{await J.post("/files/mkdir",{path:s});const l=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await a().fetchTreeDir(l),a().addToast("success","Folder created"),!0}catch(l){return a().addToast("error","Create failed",l.message),!1}},async deleteFile(s){try{await J.delete(`/files/delete?path=${encodeURIComponent(s)}`),a().editorOpenTabs.includes(s)&&a().closeFile(s);const l=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await a().fetchTreeDir(l),t(o=>{const u={...o.editorTreeCache};return delete u[s],{editorTreeCache:u}}),a().addToast("success","Deleted"),!0}catch(l){return a().addToast("error","Delete failed",l.message),!1}},async renameFile(s,l){try{await J.post("/files/rename",{oldPath:s,newPath:l}),t(d=>{const O=d.editorOpenTabs.map(x=>x===s?l:x),h={...d.editorFiles};h[s]&&(h[l]=h[s],delete h[s]);const p=d.editorActiveFile===s?l:d.editorActiveFile;return{editorOpenTabs:O,editorFiles:h,editorActiveFile:p}});const o=s.includes("/")?s.split("/").slice(0,-1).join("/"):"",u=l.includes("/")?l.split("/").slice(0,-1).join("/"):"";return await a().fetchTreeDir(o),u!==o&&await a().fetchTreeDir(u),a().addToast("success","Renamed"),!0}catch(o){return a().addToast("error","Rename failed",o.message),!1}}}));function uk(t){v.useEffect(()=>{function a(s){for(const l of t){const o=l.meta?s.metaKey||s.ctrlKey:!0,u=l.shift?s.shiftKey:!s.shiftKey;if(s.key.toLowerCase()===l.key.toLowerCase()&&o&&u){s.preventDefault(),l.handler();return}}}return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[t])}function qe(t,a,{checkForDefaultPrevented:s=!0}={}){return function(o){if(t==null||t(o),s===!1||!o.defaultPrevented)return a==null?void 0:a(o)}}function Eg(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function A0(...t){return a=>{let s=!1;const l=t.map(o=>{const u=Eg(o,a);return!s&&typeof u=="function"&&(s=!0),u});if(s)return()=>{for(let o=0;o<l.length;o++){const u=l[o];typeof u=="function"?u():Eg(t[o],null)}}}}function it(...t){return v.useCallback(A0(...t),t)}function dk(t,a){const s=v.createContext(a),l=u=>{const{children:d,...O}=u,h=v.useMemo(()=>O,Object.values(O));return r.jsx(s.Provider,{value:h,children:d})};l.displayName=t+"Provider";function o(u){const d=v.useContext(s);if(d)return d;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${t}\``)}return[l,o]}function Cs(t,a=[]){let s=[];function l(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,k=((j=b==null?void 0:b[t])==null?void 0:j[h])||O,$=v.useMemo(()=>Q,Object.values(Q));return r.jsx(k.Provider,{value:$,children:y})};p.displayName=u+"Provider";function x(g,b){var k;const y=((k=b==null?void 0:b[t])==null?void 0:k[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,[l,Ok(o,...a)]}function Ok(...t){const a=t[0];if(t.length===1)return a;const s=()=>{const l=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(u){const d=l.reduce((O,{useScope:h,scopeName:p})=>{const g=h(u)[`__scope${p}`];return{...O,...g}},{});return v.useMemo(()=>({[`__scope${a.scopeName}`]:d}),[d])}};return s.scopeName=a.scopeName,s}function dc(t){const a=fk(t),s=v.forwardRef((l,o)=>{const{children:u,...d}=l,O=v.Children.toArray(u),h=O.find(mk);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 r.jsx(a,{...d,ref:o,children:v.isValidElement(p)?v.cloneElement(p,void 0,x):null})}return r.jsx(a,{...d,ref:o,children:u})});return s.displayName=`${t}.Slot`,s}function fk(t){const a=v.forwardRef((s,l)=>{const{children:o,...u}=s;if(v.isValidElement(o)){const d=xk(o),O=pk(u,o.props);return o.type!==v.Fragment&&(O.ref=l?A0(l,d):d),v.cloneElement(o,O)}return v.Children.count(o)>1?v.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var Z0=Symbol("radix.slottable");function hk(t){const a=({children:s})=>r.jsx(r.Fragment,{children:s});return a.displayName=`${t}.Slottable`,a.__radixId=Z0,a}function mk(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Z0}function pk(t,a){const s={...a};for(const l in a){const o=t[l],u=a[l];/^on[A-Z]/.test(l)?o&&u?s[l]=(...O)=>{const h=u(...O);return o(...O),h}:o&&(s[l]=o):l==="style"?s[l]={...o,...u}:l==="className"&&(s[l]=[o,u].filter(Boolean).join(" "))}return{...t,...s}}function xk(t){var l,o;let a=(l=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:l.get,s=a&&"isReactWarning"in a&&a.isReactWarning;return s?t.ref:(a=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,s=a&&"isReactWarning"in a&&a.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var gk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Be=gk.reduce((t,a)=>{const s=dc(`Primitive.${a}`),l=v.forwardRef((o,u)=>{const{asChild:d,...O}=o,h=d?s:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(h,{...O,ref:u})});return l.displayName=`Primitive.${a}`,{...t,[a]:l}},{});function bk(t,a){t&&T0.flushSync(()=>t.dispatchEvent(a))}function zt(t){const a=v.useRef(t);return v.useEffect(()=>{a.current=t}),v.useMemo(()=>(...s)=>{var l;return(l=a.current)==null?void 0:l.call(a,...s)},[])}function vk(t,a=globalThis==null?void 0:globalThis.document){const s=zt(t);v.useEffect(()=>{const l=o=>{o.key==="Escape"&&s(o)};return a.addEventListener("keydown",l,{capture:!0}),()=>a.removeEventListener("keydown",l,{capture:!0})},[s,a])}var yk="DismissableLayer",df="dismissableLayer.update",Sk="dismissableLayer.pointerDownOutside",Qk="dismissableLayer.focusOutside",qg,E0=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mf=v.forwardRef((t,a)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:l,onPointerDownOutside:o,onFocusOutside:u,onInteractOutside:d,onDismiss:O,...h}=t,p=v.useContext(E0),[x,g]=v.useState(null),b=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=v.useState({}),Q=it(a,X=>g(X)),k=Array.from(p.layers),[$]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),j=k.indexOf($),z=x?k.indexOf(x):-1,N=p.layersWithOutsidePointerEventsDisabled.size>0,_=z>=j,G=wk(X=>{const T=X.target,Y=[...p.branches].some(M=>M.contains(T));!_||Y||(o==null||o(X),d==null||d(X),X.defaultPrevented||O==null||O())},b),R=$k(X=>{const T=X.target;[...p.branches].some(M=>M.contains(T))||(u==null||u(X),d==null||d(X),X.defaultPrevented||O==null||O())},b);return vk(X=>{z===p.layers.size-1&&(l==null||l(X),!X.defaultPrevented&&O&&(X.preventDefault(),O()))},b),v.useEffect(()=>{if(x)return s&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(qg=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(x)),p.layers.add(x),Mg(),()=>{s&&p.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=qg)}},[x,b,s,p]),v.useEffect(()=>()=>{x&&(p.layers.delete(x),p.layersWithOutsidePointerEventsDisabled.delete(x),Mg())},[x,p]),v.useEffect(()=>{const X=()=>y({});return document.addEventListener(df,X),()=>document.removeEventListener(df,X)},[]),r.jsx(Be.div,{...h,ref:Q,style:{pointerEvents:N?_?"auto":"none":void 0,...t.style},onFocusCapture:qe(t.onFocusCapture,R.onFocusCapture),onBlurCapture:qe(t.onBlurCapture,R.onBlurCapture),onPointerDownCapture:qe(t.onPointerDownCapture,G.onPointerDownCapture)})});Mf.displayName=yk;var jk="DismissableLayerBranch",kk=v.forwardRef((t,a)=>{const s=v.useContext(E0),l=v.useRef(null),o=it(a,l);return v.useEffect(()=>{const u=l.current;if(u)return s.branches.add(u),()=>{s.branches.delete(u)}},[s.branches]),r.jsx(Be.div,{...t,ref:o})});kk.displayName=jk;function wk(t,a=globalThis==null?void 0:globalThis.document){const s=zt(t),l=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const u=O=>{if(O.target&&!l.current){let h=function(){q0(Sk,s,p,{discrete:!0})};const p={originalEvent:O};O.pointerType==="touch"?(a.removeEventListener("click",o.current),o.current=h,a.addEventListener("click",o.current,{once:!0})):h()}else a.removeEventListener("click",o.current);l.current=!1},d=window.setTimeout(()=>{a.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(d),a.removeEventListener("pointerdown",u),a.removeEventListener("click",o.current)}},[a,s]),{onPointerDownCapture:()=>l.current=!0}}function $k(t,a=globalThis==null?void 0:globalThis.document){const s=zt(t),l=v.useRef(!1);return v.useEffect(()=>{const o=u=>{u.target&&!l.current&&q0(Qk,s,{originalEvent:u},{discrete:!1})};return a.addEventListener("focusin",o),()=>a.removeEventListener("focusin",o)},[a,s]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Mg(){const t=new CustomEvent(df);document.dispatchEvent(t)}function q0(t,a,s,{discrete:l}){const o=s.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:s});a&&o.addEventListener(t,a,{once:!0}),l?bk(o,u):o.dispatchEvent(u)}var ia=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},Tk=$0[" useId ".trim().toString()]||(()=>{}),Nk=0;function Tl(t){const[a,s]=v.useState(Tk());return ia(()=>{s(l=>l??String(Nk++))},[t]),t||(a?`radix-${a}`:"")}const Pk=["top","right","bottom","left"],Ia=Math.min,Dt=Math.max,Oc=Math.round,Yo=Math.floor,Tn=t=>({x:t,y:t}),zk={left:"right",right:"left",bottom:"top",top:"bottom"};function Of(t,a,s){return Dt(t,Ia(a,s))}function oa(t,a){return typeof t=="function"?t(a):t}function ca(t){return t.split("-")[0]}function Gl(t){return t.split("-")[1]}function Yf(t){return t==="x"?"y":"x"}function Uf(t){return t==="y"?"height":"width"}function $n(t){const a=t[0];return a==="t"||a==="b"?"y":"x"}function Vf(t){return Yf($n(t))}function Rk(t,a,s){s===void 0&&(s=!1);const l=Gl(t),o=Vf(t),u=Uf(o);let d=o==="x"?l===(s?"end":"start")?"right":"left":l==="start"?"bottom":"top";return a.reference[u]>a.floating[u]&&(d=fc(d)),[d,fc(d)]}function Ck(t){const a=fc(t);return[ff(t),a,ff(a)]}function ff(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Yg=["left","right"],Ug=["right","left"],Xk=["top","bottom"],_k=["bottom","top"];function Ak(t,a,s){switch(t){case"top":case"bottom":return s?a?Ug:Yg:a?Yg:Ug;case"left":case"right":return a?Xk:_k;default:return[]}}function Zk(t,a,s,l){const o=Gl(t);let u=Ak(ca(t),s==="start",l);return o&&(u=u.map(d=>d+"-"+o),a&&(u=u.concat(u.map(ff)))),u}function fc(t){const a=ca(t);return zk[a]+t.slice(a.length)}function Ek(t){return{top:0,right:0,bottom:0,left:0,...t}}function M0(t){return typeof t!="number"?Ek(t):{top:t,right:t,bottom:t,left:t}}function hc(t){const{x:a,y:s,width:l,height:o}=t;return{width:l,height:o,top:s,left:a,right:a+l,bottom:s+o,x:a,y:s}}function Vg(t,a,s){let{reference:l,floating:o}=t;const u=$n(a),d=Vf(a),O=Uf(d),h=ca(a),p=u==="y",x=l.x+l.width/2-o.width/2,g=l.y+l.height/2-o.height/2,b=l[O]/2-o[O]/2;let y;switch(h){case"top":y={x,y:l.y-o.height};break;case"bottom":y={x,y:l.y+l.height};break;case"right":y={x:l.x+l.width,y:g};break;case"left":y={x:l.x-o.width,y:g};break;default:y={x:l.x,y:l.y}}switch(Gl(a)){case"start":y[d]-=b*(s&&p?-1:1);break;case"end":y[d]+=b*(s&&p?-1:1);break}return y}async function qk(t,a){var s;a===void 0&&(a={});const{x:l,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}=oa(a,t),Q=M0(y),$=O[b?g==="floating"?"reference":"floating":g],j=hc(await u.getClippingRect({element:(s=await(u.isElement==null?void 0:u.isElement($)))==null||s?$:$.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(O.floating)),boundary:p,rootBoundary:x,strategy:h})),z=g==="floating"?{x:l,y:o,width:d.floating.width,height:d.floating.height}:d.reference,N=await(u.getOffsetParent==null?void 0:u.getOffsetParent(O.floating)),_=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=hc(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:O,rect:z,offsetParent:N,strategy:h}):z);return{top:(j.top-G.top+Q.top)/_.y,bottom:(G.bottom-j.bottom+Q.bottom)/_.y,left:(j.left-G.left+Q.left)/_.x,right:(G.right-j.right+Q.right)/_.x}}const Mk=50,Yk=async(t,a,s)=>{const{placement:l="bottom",strategy:o="absolute",middleware:u=[],platform:d}=s,O=d.detectOverflow?d:{...d,detectOverflow:qk},h=await(d.isRTL==null?void 0:d.isRTL(a));let p=await d.getElementRects({reference:t,floating:a,strategy:o}),{x,y:g}=Vg(p,l,h),b=l,y=0;const Q={};for(let k=0;k<u.length;k++){const $=u[k];if(!$)continue;const{name:j,fn:z}=$,{x:N,y:_,data:G,reset:R}=await z({x,y:g,initialPlacement:l,placement:b,strategy:o,middlewareData:Q,rects:p,platform:O,elements:{reference:t,floating:a}});x=N??x,g=_??g,Q[j]={...Q[j],...G},R&&y<Mk&&(y++,typeof R=="object"&&(R.placement&&(b=R.placement),R.rects&&(p=R.rects===!0?await d.getElementRects({reference:t,floating:a,strategy:o}):R.rects),{x,y:g}=Vg(p,b,h)),k=-1)}return{x,y:g,placement:b,strategy:o,middlewareData:Q}},Uk=t=>({name:"arrow",options:t,async fn(a){const{x:s,y:l,placement:o,rects:u,platform:d,elements:O,middlewareData:h}=a,{element:p,padding:x=0}=oa(t,a)||{};if(p==null)return{};const g=M0(x),b={x:s,y:l},y=Vf(o),Q=Uf(y),k=await d.getDimensions(p),$=y==="y",j=$?"top":"left",z=$?"bottom":"right",N=$?"clientHeight":"clientWidth",_=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 X=R?R[N]:0;(!X||!await(d.isElement==null?void 0:d.isElement(R)))&&(X=O.floating[N]||u.floating[Q]);const T=_/2-G/2,Y=X/2-k[Q]/2-1,M=Ia(g[j],Y),ae=Ia(g[z],Y),F=M,se=X-k[Q]-ae,ie=X/2-k[Q]/2+T,W=Of(F,ie,se),P=!h.arrow&&Gl(o)!=null&&ie!==W&&u.reference[Q]/2-(ie<F?M:ae)-k[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}}}),Vk=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(a){var s,l;const{placement:o,middlewareData:u,rects:d,initialPlacement:O,platform:h,elements:p}=a,{mainAxis:x=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:Q="none",flipAlignment:k=!0,...$}=oa(t,a);if((s=u.arrow)!=null&&s.alignmentOffset)return{};const j=ca(o),z=$n(O),N=ca(O)===O,_=await(h.isRTL==null?void 0:h.isRTL(p.floating)),G=b||(N||!k?[fc(O)]:Ck(O)),R=Q!=="none";!b&&R&&G.push(...Zk(O,k,Q,_));const X=[O,...G],T=await h.detectOverflow(a,$),Y=[];let M=((l=u.flip)==null?void 0:l.overflows)||[];if(x&&Y.push(T[j]),g){const ie=Rk(o,d,_);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=X[ie];if(W&&(!(g==="alignment"?z!==$n(W):!1)||M.every(E=>$n(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=$n(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 Gg(t,a){return{top:t.top-a.height,right:t.right-a.width,bottom:t.bottom-a.height,left:t.left-a.width}}function Lg(t){return Pk.some(a=>t[a]>=0)}const Gk=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(a){const{rects:s,platform:l}=a,{strategy:o="referenceHidden",...u}=oa(t,a);switch(o){case"referenceHidden":{const d=await l.detectOverflow(a,{...u,elementContext:"reference"}),O=Gg(d,s.reference);return{data:{referenceHiddenOffsets:O,referenceHidden:Lg(O)}}}case"escaped":{const d=await l.detectOverflow(a,{...u,altBoundary:!0}),O=Gg(d,s.floating);return{data:{escapedOffsets:O,escaped:Lg(O)}}}default:return{}}}}},Y0=new Set(["left","top"]);async function Lk(t,a){const{placement:s,platform:l,elements:o}=t,u=await(l.isRTL==null?void 0:l.isRTL(o.floating)),d=ca(s),O=Gl(s),h=$n(s)==="y",p=Y0.has(d)?-1:1,x=u&&h?-1:1,g=oa(a,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 Dk=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(a){var s,l;const{x:o,y:u,placement:d,middlewareData:O}=a,h=await Lk(a,t);return d===((s=O.offset)==null?void 0:s.placement)&&(l=O.arrow)!=null&&l.alignmentOffset?{}:{x:o+h.x,y:u+h.y,data:{...h,placement:d}}}}},Wk=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(a){const{x:s,y:l,placement:o,platform:u}=a,{mainAxis:d=!0,crossAxis:O=!1,limiter:h={fn:j=>{let{x:z,y:N}=j;return{x:z,y:N}}},...p}=oa(t,a),x={x:s,y:l},g=await u.detectOverflow(a,p),b=$n(ca(o)),y=Yf(b);let Q=x[y],k=x[b];if(d){const j=y==="y"?"top":"left",z=y==="y"?"bottom":"right",N=Q+g[j],_=Q-g[z];Q=Of(N,Q,_)}if(O){const j=b==="y"?"top":"left",z=b==="y"?"bottom":"right",N=k+g[j],_=k-g[z];k=Of(N,k,_)}const $=h.fn({...a,[y]:Q,[b]:k});return{...$,data:{x:$.x-s,y:$.y-l,enabled:{[y]:d,[b]:O}}}}}},Bk=function(t){return t===void 0&&(t={}),{options:t,fn(a){const{x:s,y:l,placement:o,rects:u,middlewareData:d}=a,{offset:O=0,mainAxis:h=!0,crossAxis:p=!0}=oa(t,a),x={x:s,y:l},g=$n(o),b=Yf(g);let y=x[b],Q=x[g];const k=oa(O,a),$=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(h){const N=b==="y"?"height":"width",_=u.reference[b]-u.floating[N]+$.mainAxis,G=u.reference[b]+u.reference[N]-$.mainAxis;y<_?y=_:y>G&&(y=G)}if(p){var j,z;const N=b==="y"?"width":"height",_=Y0.has(ca(o)),G=u.reference[g]-u.floating[N]+(_&&((j=d.offset)==null?void 0:j[g])||0)+(_?0:$.crossAxis),R=u.reference[g]+u.reference[N]+(_?0:((z=d.offset)==null?void 0:z[g])||0)-(_?$.crossAxis:0);Q<G?Q=G:Q>R&&(Q=R)}return{[b]:y,[g]:Q}}}},Hk=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(a){var s,l;const{placement:o,rects:u,platform:d,elements:O}=a,{apply:h=()=>{},...p}=oa(t,a),x=await d.detectOverflow(a,p),g=ca(o),b=Gl(o),y=$n(o)==="y",{width:Q,height:k}=u.floating;let $,j;g==="top"||g==="bottom"?($=g,j=b===(await(d.isRTL==null?void 0:d.isRTL(O.floating))?"start":"end")?"left":"right"):(j=g,$=b==="end"?"top":"bottom");const z=k-x.top-x.bottom,N=Q-x.left-x.right,_=Ia(k-x[$],z),G=Ia(Q-x[j],N),R=!a.middlewareData.shift;let X=_,T=G;if((s=a.middlewareData.shift)!=null&&s.enabled.x&&(T=N),(l=a.middlewareData.shift)!=null&&l.enabled.y&&(X=z),R&&!b){const M=Dt(x.left,0),ae=Dt(x.right,0),F=Dt(x.top,0),se=Dt(x.bottom,0);y?T=Q-2*(M!==0||ae!==0?M+ae:Dt(x.left,x.right)):X=k-2*(F!==0||se!==0?F+se:Dt(x.top,x.bottom))}await h({...a,availableWidth:T,availableHeight:X});const Y=await d.getDimensions(O.floating);return Q!==Y.width||k!==Y.height?{reset:{rects:!0}}:{}}}};function Zc(){return typeof window<"u"}function Ll(t){return U0(t)?(t.nodeName||"").toLowerCase():"#document"}function Bt(t){var a;return(t==null||(a=t.ownerDocument)==null?void 0:a.defaultView)||window}function zn(t){var a;return(a=(U0(t)?t.ownerDocument:t.document)||window.document)==null?void 0:a.documentElement}function U0(t){return Zc()?t instanceof Node||t instanceof Bt(t).Node:!1}function xn(t){return Zc()?t instanceof Element||t instanceof Bt(t).Element:!1}function Oa(t){return Zc()?t instanceof HTMLElement||t instanceof Bt(t).HTMLElement:!1}function Dg(t){return!Zc()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Bt(t).ShadowRoot}function fi(t){const{overflow:a,overflowX:s,overflowY:l,display:o}=gn(t);return/auto|scroll|overlay|hidden|clip/.test(a+l+s)&&o!=="inline"&&o!=="contents"}function Ik(t){return/^(table|td|th)$/.test(Ll(t))}function Ec(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const Fk=/transform|translate|scale|rotate|perspective|filter/,Kk=/paint|layout|strict|content/,Ss=t=>!!t&&t!=="none";let bO;function Gf(t){const a=xn(t)?gn(t):t;return Ss(a.transform)||Ss(a.translate)||Ss(a.scale)||Ss(a.rotate)||Ss(a.perspective)||!Lf()&&(Ss(a.backdropFilter)||Ss(a.filter))||Fk.test(a.willChange||"")||Kk.test(a.contain||"")}function Jk(t){let a=Fa(t);for(;Oa(a)&&!_l(a);){if(Gf(a))return a;if(Ec(a))return null;a=Fa(a)}return null}function Lf(){return bO==null&&(bO=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),bO}function _l(t){return/^(html|body|#document)$/.test(Ll(t))}function gn(t){return Bt(t).getComputedStyle(t)}function qc(t){return xn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Fa(t){if(Ll(t)==="html")return t;const a=t.assignedSlot||t.parentNode||Dg(t)&&t.host||zn(t);return Dg(a)?a.host:a}function V0(t){const a=Fa(t);return _l(a)?t.ownerDocument?t.ownerDocument.body:t.body:Oa(a)&&fi(a)?a:V0(a)}function ei(t,a,s){var l;a===void 0&&(a=[]),s===void 0&&(s=!0);const o=V0(t),u=o===((l=t.ownerDocument)==null?void 0:l.body),d=Bt(o);if(u){const O=hf(d);return a.concat(d,d.visualViewport||[],fi(o)?o:[],O&&s?ei(O):[])}else return a.concat(o,ei(o,[],s))}function hf(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function G0(t){const a=gn(t);let s=parseFloat(a.width)||0,l=parseFloat(a.height)||0;const o=Oa(t),u=o?t.offsetWidth:s,d=o?t.offsetHeight:l,O=Oc(s)!==u||Oc(l)!==d;return O&&(s=u,l=d),{width:s,height:l,$:O}}function Df(t){return xn(t)?t:t.contextElement}function Nl(t){const a=Df(t);if(!Oa(a))return Tn(1);const s=a.getBoundingClientRect(),{width:l,height:o,$:u}=G0(a);let d=(u?Oc(s.width):s.width)/l,O=(u?Oc(s.height):s.height)/o;return(!d||!Number.isFinite(d))&&(d=1),(!O||!Number.isFinite(O))&&(O=1),{x:d,y:O}}const ew=Tn(0);function L0(t){const a=Bt(t);return!Lf()||!a.visualViewport?ew:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function tw(t,a,s){return a===void 0&&(a=!1),!s||a&&s!==Bt(t)?!1:a}function $s(t,a,s,l){a===void 0&&(a=!1),s===void 0&&(s=!1);const o=t.getBoundingClientRect(),u=Df(t);let d=Tn(1);a&&(l?xn(l)&&(d=Nl(l)):d=Nl(t));const O=tw(u,s,l)?L0(u):Tn(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=Bt(u),y=l&&xn(l)?Bt(l):l;let Q=b,k=hf(Q);for(;k&&l&&y!==Q;){const $=Nl(k),j=k.getBoundingClientRect(),z=gn(k),N=j.left+(k.clientLeft+parseFloat(z.paddingLeft))*$.x,_=j.top+(k.clientTop+parseFloat(z.paddingTop))*$.y;h*=$.x,p*=$.y,x*=$.x,g*=$.y,h+=N,p+=_,Q=Bt(k),k=hf(Q)}}return hc({width:x,height:g,x:h,y:p})}function Mc(t,a){const s=qc(t).scrollLeft;return a?a.left+s:$s(zn(t)).left+s}function D0(t,a){const s=t.getBoundingClientRect(),l=s.left+a.scrollLeft-Mc(t,s),o=s.top+a.scrollTop;return{x:l,y:o}}function nw(t){let{elements:a,rect:s,offsetParent:l,strategy:o}=t;const u=o==="fixed",d=zn(l),O=a?Ec(a.floating):!1;if(l===d||O&&u)return s;let h={scrollLeft:0,scrollTop:0},p=Tn(1);const x=Tn(0),g=Oa(l);if((g||!g&&!u)&&((Ll(l)!=="body"||fi(d))&&(h=qc(l)),g)){const y=$s(l);p=Nl(l),x.x=y.x+l.clientLeft,x.y=y.y+l.clientTop}const b=d&&!g&&!u?D0(d,h):Tn(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 aw(t){return Array.from(t.getClientRects())}function sw(t){const a=zn(t),s=qc(t),l=t.ownerDocument.body,o=Dt(a.scrollWidth,a.clientWidth,l.scrollWidth,l.clientWidth),u=Dt(a.scrollHeight,a.clientHeight,l.scrollHeight,l.clientHeight);let d=-s.scrollLeft+Mc(t);const O=-s.scrollTop;return gn(l).direction==="rtl"&&(d+=Dt(a.clientWidth,l.clientWidth)-o),{width:o,height:u,x:d,y:O}}const Wg=25;function lw(t,a){const s=Bt(t),l=zn(t),o=s.visualViewport;let u=l.clientWidth,d=l.clientHeight,O=0,h=0;if(o){u=o.width,d=o.height;const x=Lf();(!x||x&&a==="fixed")&&(O=o.offsetLeft,h=o.offsetTop)}const p=Mc(l);if(p<=0){const x=l.ownerDocument,g=x.body,b=getComputedStyle(g),y=x.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,Q=Math.abs(l.clientWidth-g.clientWidth-y);Q<=Wg&&(u-=Q)}else p<=Wg&&(u+=p);return{width:u,height:d,x:O,y:h}}function rw(t,a){const s=$s(t,!0,a==="fixed"),l=s.top+t.clientTop,o=s.left+t.clientLeft,u=Oa(t)?Nl(t):Tn(1),d=t.clientWidth*u.x,O=t.clientHeight*u.y,h=o*u.x,p=l*u.y;return{width:d,height:O,x:h,y:p}}function Bg(t,a,s){let l;if(a==="viewport")l=lw(t,s);else if(a==="document")l=sw(zn(t));else if(xn(a))l=rw(a,s);else{const o=L0(t);l={x:a.x-o.x,y:a.y-o.y,width:a.width,height:a.height}}return hc(l)}function W0(t,a){const s=Fa(t);return s===a||!xn(s)||_l(s)?!1:gn(s).position==="fixed"||W0(s,a)}function iw(t,a){const s=a.get(t);if(s)return s;let l=ei(t,[],!1).filter(O=>xn(O)&&Ll(O)!=="body"),o=null;const u=gn(t).position==="fixed";let d=u?Fa(t):t;for(;xn(d)&&!_l(d);){const O=gn(d),h=Gf(d);!h&&O.position==="fixed"&&(o=null),(u?!h&&!o:!h&&O.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||fi(d)&&!h&&W0(t,d))?l=l.filter(x=>x!==d):o=O,d=Fa(d)}return a.set(t,l),l}function ow(t){let{element:a,boundary:s,rootBoundary:l,strategy:o}=t;const d=[...s==="clippingAncestors"?Ec(a)?[]:iw(a,this._c):[].concat(s),l],O=Bg(a,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=Bg(a,d[b],o);h=Dt(y.top,h),p=Ia(y.right,p),x=Ia(y.bottom,x),g=Dt(y.left,g)}return{width:p-g,height:x-h,x:g,y:h}}function cw(t){const{width:a,height:s}=G0(t);return{width:a,height:s}}function uw(t,a,s){const l=Oa(a),o=zn(a),u=s==="fixed",d=$s(t,!0,u,a);let O={scrollLeft:0,scrollTop:0};const h=Tn(0);function p(){h.x=Mc(o)}if(l||!l&&!u)if((Ll(a)!=="body"||fi(o))&&(O=qc(a)),l){const y=$s(a,!0,u,a);h.x=y.x+a.clientLeft,h.y=y.y+a.clientTop}else o&&p();u&&!l&&o&&p();const x=o&&!l&&!u?D0(o,O):Tn(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 vO(t){return gn(t).position==="static"}function Hg(t,a){if(!Oa(t)||gn(t).position==="fixed")return null;if(a)return a(t);let s=t.offsetParent;return zn(t)===s&&(s=s.ownerDocument.body),s}function B0(t,a){const s=Bt(t);if(Ec(t))return s;if(!Oa(t)){let o=Fa(t);for(;o&&!_l(o);){if(xn(o)&&!vO(o))return o;o=Fa(o)}return s}let l=Hg(t,a);for(;l&&Ik(l)&&vO(l);)l=Hg(l,a);return l&&_l(l)&&vO(l)&&!Gf(l)?s:l||Jk(t)||s}const dw=async function(t){const a=this.getOffsetParent||B0,s=this.getDimensions,l=await s(t.floating);return{reference:uw(t.reference,await a(t.floating),t.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function Ow(t){return gn(t).direction==="rtl"}const fw={convertOffsetParentRelativeRectToViewportRelativeRect:nw,getDocumentElement:zn,getClippingRect:ow,getOffsetParent:B0,getElementRects:dw,getClientRects:aw,getDimensions:cw,getScale:Nl,isElement:xn,isRTL:Ow};function H0(t,a){return t.x===a.x&&t.y===a.y&&t.width===a.width&&t.height===a.height}function hw(t,a){let s=null,l;const o=zn(t);function u(){var O;clearTimeout(l),(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||a(),!b||!y)return;const Q=Yo(g),k=Yo(o.clientWidth-(x+b)),$=Yo(o.clientHeight-(g+y)),j=Yo(x),N={rootMargin:-Q+"px "+-k+"px "+-$+"px "+-j+"px",threshold:Dt(0,Ia(1,h))||1};let _=!0;function G(R){const X=R[0].intersectionRatio;if(X!==h){if(!_)return d();X?d(!1,X):l=setTimeout(()=>{d(!1,1e-7)},1e3)}X===1&&!H0(p,t.getBoundingClientRect())&&d(),_=!1}try{s=new IntersectionObserver(G,{...N,root:o.ownerDocument})}catch{s=new IntersectionObserver(G,N)}s.observe(t)}return d(!0),u}function mw(t,a,s,l){l===void 0&&(l={});const{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:O=typeof IntersectionObserver=="function",animationFrame:h=!1}=l,p=Df(t),x=o||u?[...p?ei(p):[],...a?ei(a):[]]:[];x.forEach(j=>{o&&j.addEventListener("scroll",s,{passive:!0}),u&&j.addEventListener("resize",s)});const g=p&&O?hw(p,s):null;let b=-1,y=null;d&&(y=new ResizeObserver(j=>{let[z]=j;z&&z.target===p&&y&&a&&(y.unobserve(a),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var N;(N=y)==null||N.observe(a)})),s()}),p&&!h&&y.observe(p),a&&y.observe(a));let Q,k=h?$s(t):null;h&&$();function $(){const j=$s(t);k&&!H0(k,j)&&s(),k=j,Q=requestAnimationFrame($)}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 pw=Dk,xw=Wk,gw=Vk,bw=Hk,vw=Gk,Ig=Uk,yw=Bk,Sw=(t,a,s)=>{const l=new Map,o={platform:fw,...s},u={...o.platform,_c:l};return Yk(t,a,{...o,platform:u})};var Qw=typeof document<"u",jw=function(){},ac=Qw?v.useLayoutEffect:jw;function mc(t,a){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(typeof t=="function"&&t.toString()===a.toString())return!0;let s,l,o;if(t&&a&&typeof t=="object"){if(Array.isArray(t)){if(s=t.length,s!==a.length)return!1;for(l=s;l--!==0;)if(!mc(t[l],a[l]))return!1;return!0}if(o=Object.keys(t),s=o.length,s!==Object.keys(a).length)return!1;for(l=s;l--!==0;)if(!{}.hasOwnProperty.call(a,o[l]))return!1;for(l=s;l--!==0;){const u=o[l];if(!(u==="_owner"&&t.$$typeof)&&!mc(t[u],a[u]))return!1}return!0}return t!==t&&a!==a}function I0(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Fg(t,a){const s=I0(t);return Math.round(a*s)/s}function yO(t){const a=v.useRef(t);return ac(()=>{a.current=t}),a}function kw(t){t===void 0&&(t={});const{placement:a="bottom",strategy:s="absolute",middleware:l=[],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:a,middlewareData:{},isPositioned:!1}),[b,y]=v.useState(l);mc(b,l)||y(l);const[Q,k]=v.useState(null),[$,j]=v.useState(null),z=v.useCallback(E=>{E!==R.current&&(R.current=E,k(E))},[]),N=v.useCallback(E=>{E!==X.current&&(X.current=E,j(E))},[]),_=u||Q,G=d||$,R=v.useRef(null),X=v.useRef(null),T=v.useRef(x),Y=h!=null,M=yO(h),ae=yO(o),F=yO(p),se=v.useCallback(()=>{if(!R.current||!X.current)return;const E={placement:a,strategy:s,middleware:b};ae.current&&(E.platform=ae.current),Sw(R.current,X.current,E).then(ce=>{const ee={...ce,isPositioned:F.current!==!1};ie.current&&!mc(T.current,ee)&&(T.current=ee,T0.flushSync(()=>{g(ee)}))})},[b,a,s,ae,F]);ac(()=>{p===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,g(E=>({...E,isPositioned:!1})))},[p]);const ie=v.useRef(!1);ac(()=>(ie.current=!0,()=>{ie.current=!1}),[]),ac(()=>{if(_&&(R.current=_),G&&(X.current=G),_&&G){if(M.current)return M.current(_,G,se);se()}},[_,G,se,M,Y]);const W=v.useMemo(()=>({reference:R,floating:X,setReference:z,setFloating:N}),[z,N]),P=v.useMemo(()=>({reference:_,floating:G}),[_,G]),B=v.useMemo(()=>{const E={position:s,left:0,top:0};if(!P.floating)return E;const ce=Fg(P.floating,x.x),ee=Fg(P.floating,x.y);return O?{...E,transform:"translate("+ce+"px, "+ee+"px)",...I0(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 ww=t=>{function a(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:t,fn(s){const{element:l,padding:o}=typeof t=="function"?t(s):t;return l&&a(l)?l.current!=null?Ig({element:l.current,padding:o}).fn(s):{}:l?Ig({element:l,padding:o}).fn(s):{}}}},$w=(t,a)=>{const s=pw(t);return{name:s.name,fn:s.fn,options:[t,a]}},Tw=(t,a)=>{const s=xw(t);return{name:s.name,fn:s.fn,options:[t,a]}},Nw=(t,a)=>({fn:yw(t).fn,options:[t,a]}),Pw=(t,a)=>{const s=gw(t);return{name:s.name,fn:s.fn,options:[t,a]}},zw=(t,a)=>{const s=bw(t);return{name:s.name,fn:s.fn,options:[t,a]}},Rw=(t,a)=>{const s=vw(t);return{name:s.name,fn:s.fn,options:[t,a]}},Cw=(t,a)=>{const s=ww(t);return{name:s.name,fn:s.fn,options:[t,a]}};var Xw="Arrow",F0=v.forwardRef((t,a)=>{const{children:s,width:l=10,height:o=5,...u}=t;return r.jsx(Be.svg,{...u,ref:a,width:l,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?s:r.jsx("polygon",{points:"0,0 30,0 15,10"})})});F0.displayName=Xw;var _w=F0;function Aw(t){const[a,s]=v.useState(void 0);return ia(()=>{if(t){s({width:t.offsetWidth,height:t.offsetHeight});const l=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 l.observe(t,{box:"border-box"}),()=>l.unobserve(t)}else s(void 0)},[t]),a}var Wf="Popper",[K0,J0]=Cs(Wf),[Zw,eb]=K0(Wf),tb=t=>{const{__scopePopper:a,children:s}=t,[l,o]=v.useState(null);return r.jsx(Zw,{scope:a,anchor:l,onAnchorChange:o,children:s})};tb.displayName=Wf;var nb="PopperAnchor",ab=v.forwardRef((t,a)=>{const{__scopePopper:s,virtualRef:l,...o}=t,u=eb(nb,s),d=v.useRef(null),O=it(a,d),h=v.useRef(null);return v.useEffect(()=>{const p=h.current;h.current=(l==null?void 0:l.current)||d.current,p!==h.current&&u.onAnchorChange(h.current)}),l?null:r.jsx(Be.div,{...o,ref:O})});ab.displayName=nb;var Bf="PopperContent",[Ew,qw]=K0(Bf),sb=v.forwardRef((t,a)=>{var Ce,Ot,Ze,He,bt,un;const{__scopePopper:s,side:l="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,...k}=t,$=eb(Bf,s),[j,z]=v.useState(null),N=it(a,Ht=>z(Ht)),[_,G]=v.useState(null),R=Aw(_),X=(R==null?void 0:R.width)??0,T=(R==null?void 0:R.height)??0,Y=l+(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(Yw),altBoundary:F},{refs:ie,floatingStyles:W,placement:P,isPositioned:B,middlewareData:E}=kw({strategy:"fixed",placement:Y,whileElementsMounted:(...Ht)=>mw(...Ht,{animationFrame:y==="always"}),elements:{reference:$.anchor},middleware:[$w({mainAxis:o+T,alignmentAxis:d}),h&&Tw({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?Nw():void 0,...se}),h&&Pw({...se}),zw({...se,apply:({elements:Ht,rects:yt,availableWidth:Hl,availableHeight:Il})=>{const{width:tu,height:Si}=yt.reference,ha=Ht.floating.style;ha.setProperty("--radix-popper-available-width",`${Hl}px`),ha.setProperty("--radix-popper-available-height",`${Il}px`),ha.setProperty("--radix-popper-anchor-width",`${tu}px`),ha.setProperty("--radix-popper-anchor-height",`${Si}px`)}}),_&&Cw({element:_,padding:O}),Uw({arrowWidth:X,arrowHeight:T}),b&&Rw({strategy:"referenceHidden",...se})]}),[ce,ee]=ib(P),be=zt(Q);ia(()=>{B&&(be==null||be())},[B,be]);const Se=(Ce=E.arrow)==null?void 0:Ce.x,ye=(Ot=E.arrow)==null?void 0:Ot.y,Re=((Ze=E.arrow)==null?void 0:Ze.centerOffset)!==0,[H,ue]=v.useState();return ia(()=>{j&&ue(window.getComputedStyle(j).zIndex)},[j]),r.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(" "),...((un=E.hide)==null?void 0:un.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:r.jsx(Ew,{scope:s,placedSide:ce,onArrowChange:G,arrowX:Se,arrowY:ye,shouldHideArrow:Re,children:r.jsx(Be.div,{"data-side":ce,"data-align":ee,...k,ref:N,style:{...k.style,animation:B?void 0:"none"}})})})});sb.displayName=Bf;var lb="PopperArrow",Mw={top:"bottom",right:"left",bottom:"top",left:"right"},rb=v.forwardRef(function(a,s){const{__scopePopper:l,...o}=a,u=qw(lb,l),d=Mw[u.placedSide];return r.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:r.jsx(_w,{...o,ref:s,style:{...o.style,display:"block"}})})});rb.displayName=lb;function Yw(t){return t!==null}var Uw=t=>({name:"transformOrigin",options:t,fn(a){var $,j,z;const{placement:s,rects:l,middlewareData:o}=a,d=(($=o.arrow)==null?void 0:$.centerOffset)!==0,O=d?0:t.arrowWidth,h=d?0:t.arrowHeight,[p,x]=ib(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="",k="";return p==="bottom"?(Q=d?g:`${b}px`,k=`${-h}px`):p==="top"?(Q=d?g:`${b}px`,k=`${l.floating.height+h}px`):p==="right"?(Q=`${-h}px`,k=d?g:`${y}px`):p==="left"&&(Q=`${l.floating.width+h}px`,k=d?g:`${y}px`),{data:{x:Q,y:k}}}});function ib(t){const[a,s="center"]=t.split("-");return[a,s]}var Vw=tb,Gw=ab,Lw=sb,Dw=rb,Ww="Portal",Hf=v.forwardRef((t,a)=>{var O;const{container:s,...l}=t,[o,u]=v.useState(!1);ia(()=>u(!0),[]);const d=s||o&&((O=globalThis==null?void 0:globalThis.document)==null?void 0:O.body);return d?Sj.createPortal(r.jsx(Be.div,{...l,ref:a}),d):null});Hf.displayName=Ww;function Bw(t,a){return v.useReducer((s,l)=>a[s][l]??s,t)}var vn=t=>{const{present:a,children:s}=t,l=Hw(a),o=typeof s=="function"?s({present:l.isPresent}):v.Children.only(s),u=it(l.ref,Iw(o));return typeof s=="function"||l.isPresent?v.cloneElement(o,{ref:u}):null};vn.displayName="Presence";function Hw(t){const[a,s]=v.useState(),l=v.useRef(null),o=v.useRef(t),u=v.useRef("none"),d=t?"mounted":"unmounted",[O,h]=Bw(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const p=Uo(l.current);u.current=O==="mounted"?p:"none"},[O]),ia(()=>{const p=l.current,x=o.current;if(x!==t){const b=u.current,y=Uo(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]),ia(()=>{if(a){let p;const x=a.ownerDocument.defaultView??window,g=y=>{const k=Uo(l.current).includes(CSS.escape(y.animationName));if(y.target===a&&k&&(h("ANIMATION_END"),!o.current)){const $=a.style.animationFillMode;a.style.animationFillMode="forwards",p=x.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=$)})}},b=y=>{y.target===a&&(u.current=Uo(l.current))};return a.addEventListener("animationstart",b),a.addEventListener("animationcancel",g),a.addEventListener("animationend",g),()=>{x.clearTimeout(p),a.removeEventListener("animationstart",b),a.removeEventListener("animationcancel",g),a.removeEventListener("animationend",g)}}else h("ANIMATION_END")},[a,h]),{isPresent:["mounted","unmountSuspended"].includes(O),ref:v.useCallback(p=>{l.current=p?getComputedStyle(p):null,s(p)},[])}}function Uo(t){return(t==null?void 0:t.animationName)||"none"}function Iw(t){var l,o;let a=(l=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:l.get,s=a&&"isReactWarning"in a&&a.isReactWarning;return s?t.ref:(a=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,s=a&&"isReactWarning"in a&&a.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var Fw=$0[" useInsertionEffect ".trim().toString()]||ia;function Yc({prop:t,defaultProp:a,onChange:s=()=>{},caller:l}){const[o,u,d]=Kw({defaultProp:a,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(`${l} 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,l])}const p=v.useCallback(x=>{var g;if(O){const b=Jw(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 Kw({defaultProp:t,onChange:a}){const[s,l]=v.useState(t),o=v.useRef(s),u=v.useRef(a);return Fw(()=>{u.current=a},[a]),v.useEffect(()=>{var d;o.current!==s&&((d=u.current)==null||d.call(u,s),o.current=s)},[s,o]),[s,l,u]}function Jw(t){return typeof t=="function"}var e5=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"}),t5="VisuallyHidden",ob=v.forwardRef((t,a)=>r.jsx(Be.span,{...t,ref:a,style:{...e5,...t.style}}));ob.displayName=t5;var n5=ob,[Uc]=Cs("Tooltip",[J0]),Vc=J0(),cb="TooltipProvider",a5=700,mf="tooltip.open",[s5,If]=Uc(cb),ub=t=>{const{__scopeTooltip:a,delayDuration:s=a5,skipDelayDuration:l=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)},[]),r.jsx(s5,{scope:a,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,l)},[l]),isPointerInTransitRef:O,onPointerInTransitChange:v.useCallback(p=>{O.current=p},[]),disableHoverableContent:o,children:u})};ub.displayName=cb;var ti="Tooltip",[l5,hi]=Uc(ti),db=t=>{const{__scopeTooltip:a,children:s,open:l,defaultOpen:o,onOpenChange:u,disableHoverableContent:d,delayDuration:O}=t,h=If(ti,t.__scopeTooltip),p=Vc(a),[x,g]=v.useState(null),b=Tl(),y=v.useRef(0),Q=d??h.disableHoverableContent,k=O??h.delayDuration,$=v.useRef(!1),[j,z]=Yc({prop:l,defaultProp:o??!1,onChange:X=>{X?(h.onOpen(),document.dispatchEvent(new CustomEvent(mf))):h.onClose(),u==null||u(X)},caller:ti}),N=v.useMemo(()=>j?$.current?"delayed-open":"instant-open":"closed",[j]),_=v.useCallback(()=>{window.clearTimeout(y.current),y.current=0,$.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(()=>{$.current=!0,z(!0),y.current=0},k)},[k,z]);return v.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),r.jsx(Vw,{...p,children:r.jsx(l5,{scope:a,contentId:b,open:j,stateAttribute:N,trigger:x,onTriggerChange:g,onTriggerEnter:v.useCallback(()=>{h.isOpenDelayedRef.current?R():_()},[h.isOpenDelayedRef,R,_]),onTriggerLeave:v.useCallback(()=>{Q?G():(window.clearTimeout(y.current),y.current=0)},[G,Q]),onOpen:_,onClose:G,disableHoverableContent:Q,children:s})})};db.displayName=ti;var pf="TooltipTrigger",Ob=v.forwardRef((t,a)=>{const{__scopeTooltip:s,...l}=t,o=hi(pf,s),u=If(pf,s),d=Vc(s),O=v.useRef(null),h=it(a,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]),r.jsx(Gw,{asChild:!0,...d,children:r.jsx(Be.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...l,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)})})});Ob.displayName=pf;var Ff="TooltipPortal",[r5,i5]=Uc(Ff,{forceMount:void 0}),fb=t=>{const{__scopeTooltip:a,forceMount:s,children:l,container:o}=t,u=hi(Ff,a);return r.jsx(r5,{scope:a,forceMount:s,children:r.jsx(vn,{present:s||u.open,children:r.jsx(Hf,{asChild:!0,container:o,children:l})})})};fb.displayName=Ff;var Al="TooltipContent",hb=v.forwardRef((t,a)=>{const s=i5(Al,t.__scopeTooltip),{forceMount:l=s.forceMount,side:o="top",...u}=t,d=hi(Al,t.__scopeTooltip);return r.jsx(vn,{present:l||d.open,children:d.disableHoverableContent?r.jsx(mb,{side:o,...u,ref:a}):r.jsx(o5,{side:o,...u,ref:a})})}),o5=v.forwardRef((t,a)=>{const s=hi(Al,t.__scopeTooltip),l=If(Al,t.__scopeTooltip),o=v.useRef(null),u=it(a,o),[d,O]=v.useState(null),{trigger:h,onClose:p}=s,x=o.current,{onPointerInTransitChange:g}=l,b=v.useCallback(()=>{O(null),g(!1)},[g]),y=v.useCallback((Q,k)=>{const $=Q.currentTarget,j={x:Q.clientX,y:Q.clientY},z=O5(j,$.getBoundingClientRect()),N=f5(j,z),_=h5(k.getBoundingClientRect()),G=p5([...N,..._]);O(G),g(!0)},[g]);return v.useEffect(()=>()=>b(),[b]),v.useEffect(()=>{if(h&&x){const Q=$=>y($,x),k=$=>y($,h);return h.addEventListener("pointerleave",Q),x.addEventListener("pointerleave",k),()=>{h.removeEventListener("pointerleave",Q),x.removeEventListener("pointerleave",k)}}},[h,x,y,b]),v.useEffect(()=>{if(d){const Q=k=>{const $=k.target,j={x:k.clientX,y:k.clientY},z=(h==null?void 0:h.contains($))||(x==null?void 0:x.contains($)),N=!m5(j,d);z?b():N&&(b(),p())};return document.addEventListener("pointermove",Q),()=>document.removeEventListener("pointermove",Q)}},[h,x,d,p,b]),r.jsx(mb,{...t,ref:u})}),[c5,u5]=Uc(ti,{isInside:!1}),d5=hk("TooltipContent"),mb=v.forwardRef((t,a)=>{const{__scopeTooltip:s,children:l,"aria-label":o,onEscapeKeyDown:u,onPointerDownOutside:d,...O}=t,h=hi(Al,s),p=Vc(s),{onClose:x}=h;return v.useEffect(()=>(document.addEventListener(mf,x),()=>document.removeEventListener(mf,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]),r.jsx(Mf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:g=>g.preventDefault(),onDismiss:x,children:r.jsxs(Lw,{"data-state":h.stateAttribute,...p,...O,ref:a,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:[r.jsx(d5,{children:l}),r.jsx(c5,{scope:s,isInside:!0,children:r.jsx(n5,{id:h.contentId,role:"tooltip",children:o||l})})]})})});hb.displayName=Al;var pb="TooltipArrow",xb=v.forwardRef((t,a)=>{const{__scopeTooltip:s,...l}=t,o=Vc(s);return u5(pb,s).isInside?null:r.jsx(Dw,{...o,...l,ref:a})});xb.displayName=pb;function O5(t,a){const s=Math.abs(a.top-t.y),l=Math.abs(a.bottom-t.y),o=Math.abs(a.right-t.x),u=Math.abs(a.left-t.x);switch(Math.min(s,l,o,u)){case u:return"left";case o:return"right";case s:return"top";case l:return"bottom";default:throw new Error("unreachable")}}function f5(t,a,s=5){const l=[];switch(a){case"top":l.push({x:t.x-s,y:t.y+s},{x:t.x+s,y:t.y+s});break;case"bottom":l.push({x:t.x-s,y:t.y-s},{x:t.x+s,y:t.y-s});break;case"left":l.push({x:t.x+s,y:t.y-s},{x:t.x+s,y:t.y+s});break;case"right":l.push({x:t.x-s,y:t.y-s},{x:t.x-s,y:t.y+s});break}return l}function h5(t){const{top:a,right:s,bottom:l,left:o}=t;return[{x:o,y:a},{x:s,y:a},{x:s,y:l},{x:o,y:l}]}function m5(t,a){const{x:s,y:l}=t;let o=!1;for(let u=0,d=a.length-1;u<a.length;d=u++){const O=a[u],h=a[d],p=O.x,x=O.y,g=h.x,b=h.y;x>l!=b>l&&s<(g-p)*(l-x)/(b-x)+p&&(o=!o)}return o}function p5(t){const a=t.slice();return a.sort((s,l)=>s.x<l.x?-1:s.x>l.x?1:s.y<l.y?-1:s.y>l.y?1:0),x5(a)}function x5(t){if(t.length<=1)return t.slice();const a=[];for(let l=0;l<t.length;l++){const o=t[l];for(;a.length>=2;){const u=a[a.length-1],d=a[a.length-2];if((u.x-d.x)*(o.y-d.y)>=(u.y-d.y)*(o.x-d.x))a.pop();else break}a.push(o)}a.pop();const s=[];for(let l=t.length-1;l>=0;l--){const o=t[l];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(),a.length===1&&s.length===1&&a[0].x===s[0].x&&a[0].y===s[0].y?a:a.concat(s)}var g5=ub,b5=db,v5=Ob,y5=fb,S5=hb,Q5=xb;function gb(t){var a,s,l="";if(typeof t=="string"||typeof t=="number")l+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(a=0;a<o;a++)t[a]&&(s=gb(t[a]))&&(l&&(l+=" "),l+=s)}else for(s in t)t[s]&&(l&&(l+=" "),l+=s);return l}function j5(){for(var t,a,s=0,l="",o=arguments.length;s<o;s++)(t=arguments[s])&&(a=gb(t))&&(l&&(l+=" "),l+=a);return l}const k5=(t,a)=>{const s=new Array(t.length+a.length);for(let l=0;l<t.length;l++)s[l]=t[l];for(let l=0;l<a.length;l++)s[t.length+l]=a[l];return s},w5=(t,a)=>({classGroupId:t,validator:a}),bb=(t=new Map,a=null,s)=>({nextPart:t,validators:a,classGroupId:s}),pc="-",Kg=[],$5="arbitrary..",T5=t=>{const a=P5(t),{conflictingClassGroups:s,conflictingClassGroupModifiers:l}=t;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return N5(d);const O=d.split(pc),h=O[0]===""&&O.length>1?1:0;return vb(O,h,a)},getConflictingClassGroupIds:(d,O)=>{if(O){const h=l[d],p=s[d];return h?p?k5(p,h):h:p||Kg}return s[d]||Kg}}},vb=(t,a,s)=>{if(t.length-a===0)return s.classGroupId;const o=t[a],u=s.nextPart.get(o);if(u){const p=vb(t,a+1,u);if(p)return p}const d=s.validators;if(d===null)return;const O=a===0?t.join(pc):t.slice(a).join(pc),h=d.length;for(let p=0;p<h;p++){const x=d[p];if(x.validator(O))return x.classGroupId}},N5=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=t.slice(1,-1),s=a.indexOf(":"),l=a.slice(0,s);return l?$5+l:void 0})(),P5=t=>{const{theme:a,classGroups:s}=t;return z5(s,a)},z5=(t,a)=>{const s=bb();for(const l in t){const o=t[l];Kf(o,s,l,a)}return s},Kf=(t,a,s,l)=>{const o=t.length;for(let u=0;u<o;u++){const d=t[u];R5(d,a,s,l)}},R5=(t,a,s,l)=>{if(typeof t=="string"){C5(t,a,s);return}if(typeof t=="function"){X5(t,a,s,l);return}_5(t,a,s,l)},C5=(t,a,s)=>{const l=t===""?a:yb(a,t);l.classGroupId=s},X5=(t,a,s,l)=>{if(A5(t)){Kf(t(l),a,s,l);return}a.validators===null&&(a.validators=[]),a.validators.push(w5(s,t))},_5=(t,a,s,l)=>{const o=Object.entries(t),u=o.length;for(let d=0;d<u;d++){const[O,h]=o[d];Kf(h,yb(a,O),s,l)}},yb=(t,a)=>{let s=t;const l=a.split(pc),o=l.length;for(let u=0;u<o;u++){const d=l[u];let O=s.nextPart.get(d);O||(O=bb(),s.nextPart.set(d,O)),s=O}return s},A5=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Z5=t=>{if(t<1)return{get:()=>{},set:()=>{}};let a=0,s=Object.create(null),l=Object.create(null);const o=(u,d)=>{s[u]=d,a++,a>t&&(a=0,l=s,s=Object.create(null))};return{get(u){let d=s[u];if(d!==void 0)return d;if((d=l[u])!==void 0)return o(u,d),d},set(u,d){u in s?s[u]=d:o(u,d)}}},xf="!",Jg=":",E5=[],e1=(t,a,s,l,o)=>({modifiers:t,hasImportantModifier:a,baseClassName:s,maybePostfixModifierPosition:l,isExternal:o}),q5=t=>{const{prefix:a,experimentalParseClassName:s}=t;let l=o=>{const u=[];let d=0,O=0,h=0,p;const x=o.length;for(let k=0;k<x;k++){const $=o[k];if(d===0&&O===0){if($===Jg){u.push(o.slice(h,k)),h=k+1;continue}if($==="/"){p=k;continue}}$==="["?d++:$==="]"?d--:$==="("?O++:$===")"&&O--}const g=u.length===0?o:o.slice(h);let b=g,y=!1;g.endsWith(xf)?(b=g.slice(0,-1),y=!0):g.startsWith(xf)&&(b=g.slice(1),y=!0);const Q=p&&p>h?p-h:void 0;return e1(u,y,b,Q)};if(a){const o=a+Jg,u=l;l=d=>d.startsWith(o)?u(d.slice(o.length)):e1(E5,!1,d,void 0,!0)}if(s){const o=l;l=u=>s({className:u,parseClassName:o})}return l},M5=t=>{const a=new Map;return t.orderSensitiveModifiers.forEach((s,l)=>{a.set(s,1e6+l)}),s=>{const l=[];let o=[];for(let u=0;u<s.length;u++){const d=s[u],O=d[0]==="[",h=a.has(d);O||h?(o.length>0&&(o.sort(),l.push(...o),o=[]),l.push(d)):o.push(d)}return o.length>0&&(o.sort(),l.push(...o)),l}},Y5=t=>({cache:Z5(t.cacheSize),parseClassName:q5(t),sortModifiers:M5(t),...T5(t)}),U5=/\s+/,V5=(t,a)=>{const{parseClassName:s,getClassGroupId:l,getConflictingClassGroupIds:o,sortModifiers:u}=a,d=[],O=t.trim().split(U5);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:k}=s(x);if(g){h=x+(h.length>0?" "+h:h);continue}let $=!!k,j=l($?Q.substring(0,k):Q);if(!j){if(!$){h=x+(h.length>0?" "+h:h);continue}if(j=l(Q),!j){h=x+(h.length>0?" "+h:h);continue}$=!1}const z=b.length===0?"":b.length===1?b[0]:u(b).join(":"),N=y?z+xf:z,_=N+j;if(d.indexOf(_)>-1)continue;d.push(_);const G=o(j,$);for(let R=0;R<G.length;++R){const X=G[R];d.push(N+X)}h=x+(h.length>0?" "+h:h)}return h},G5=(...t)=>{let a=0,s,l,o="";for(;a<t.length;)(s=t[a++])&&(l=Sb(s))&&(o&&(o+=" "),o+=l);return o},Sb=t=>{if(typeof t=="string")return t;let a,s="";for(let l=0;l<t.length;l++)t[l]&&(a=Sb(t[l]))&&(s&&(s+=" "),s+=a);return s},L5=(t,...a)=>{let s,l,o,u;const d=h=>{const p=a.reduce((x,g)=>g(x),t());return s=Y5(p),l=s.cache.get,o=s.cache.set,u=O,O(h)},O=h=>{const p=l(h);if(p)return p;const x=V5(h,s);return o(h,x),x};return u=d,(...h)=>u(G5(...h))},D5=[],ct=t=>{const a=s=>s[t]||D5;return a.isThemeGetter=!0,a},Qb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,W5=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,B5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,H5=/\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$/,I5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,F5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,K5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ma=t=>W5.test(t),ke=t=>!!t&&!Number.isNaN(Number(t)),Ya=t=>!!t&&Number.isInteger(Number(t)),SO=t=>t.endsWith("%")&&ke(t.slice(0,-1)),Jn=t=>B5.test(t),kb=()=>!0,J5=t=>H5.test(t)&&!I5.test(t),Jf=()=>!1,e$=t=>F5.test(t),t$=t=>K5.test(t),n$=t=>!Oe(t)&&!fe(t),a$=t=>ts(t,Tb,Jf),Oe=t=>Qb.test(t),Qs=t=>ts(t,Nb,J5),t1=t=>ts(t,d$,ke),s$=t=>ts(t,zb,kb),l$=t=>ts(t,Pb,Jf),n1=t=>ts(t,wb,Jf),r$=t=>ts(t,$b,t$),Vo=t=>ts(t,Rb,e$),fe=t=>jb.test(t),Lr=t=>Xs(t,Nb),i$=t=>Xs(t,Pb),a1=t=>Xs(t,wb),o$=t=>Xs(t,Tb),c$=t=>Xs(t,$b),Go=t=>Xs(t,Rb,!0),u$=t=>Xs(t,zb,!0),ts=(t,a,s)=>{const l=Qb.exec(t);return l?l[1]?a(l[1]):s(l[2]):!1},Xs=(t,a,s=!1)=>{const l=jb.exec(t);return l?l[1]?a(l[1]):s:!1},wb=t=>t==="position"||t==="percentage",$b=t=>t==="image"||t==="url",Tb=t=>t==="length"||t==="size"||t==="bg-size",Nb=t=>t==="length",d$=t=>t==="number",Pb=t=>t==="family-name",zb=t=>t==="number"||t==="weight",Rb=t=>t==="shadow",O$=()=>{const t=ct("color"),a=ct("font"),s=ct("text"),l=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"),k=ct("perspective"),$=ct("aspect"),j=ct("ease"),z=ct("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[..._(),fe,Oe],R=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto","contain","none"],T=()=>[fe,Oe,h],Y=()=>[Ma,"full","auto",...T()],M=()=>[Ya,"none","subgrid",fe,Oe],ae=()=>["auto",{span:["full",Ya,fe,Oe]},Ya,fe,Oe],F=()=>[Ya,"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=()=>[Ma,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],E=()=>[Ma,"screen","full","dvw","lvw","svw","min","max","fit",...T()],ce=()=>[Ma,"screen","full","lh","dvh","lvh","svh","min","max","fit",...T()],ee=()=>[t,fe,Oe],be=()=>[..._(),a1,n1,{position:[fe,Oe]}],Se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ye=()=>["auto","cover","contain",o$,a$,{size:[fe,Oe]}],Re=()=>[SO,Lr,Qs],H=()=>["","none","full",p,fe,Oe],ue=()=>["",ke,Lr,Qs],Ce=()=>["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=()=>[ke,SO,a1,n1],He=()=>["","none",Q,fe,Oe],bt=()=>["none",ke,fe,Oe],un=()=>["none",ke,fe,Oe],Ht=()=>[ke,fe,Oe],yt=()=>[Ma,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Jn],breakpoint:[Jn],color:[kb],container:[Jn],"drop-shadow":[Jn],ease:["in","out","in-out"],font:[n$],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Jn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Jn],shadow:[Jn],spacing:["px",ke],text:[Jn],"text-shadow":[Jn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ma,Oe,fe,$]}],container:["container"],columns:[{columns:[ke,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:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],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:[Ya,"auto",fe,Oe]}],basis:[{basis:[Ma,"full","auto",O,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ke,Ma,"auto","initial","none",Oe]}],grow:[{grow:["",ke,fe,Oe]}],shrink:[{shrink:["",ke,fe,Oe]}],order:[{order:[Ya,"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,Lr,Qs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,u$,s$]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",SO,Oe]}],"font-family":[{font:[i$,l$,a]}],"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":[ke,"none",fe,t1]}],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:[...Ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[ke,"from-font","auto",fe,Qs]}],"text-decoration-color":[{decoration:ee()}],"underline-offset":[{"underline-offset":[ke,"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:be()}],"bg-repeat":[{bg:Se()}],"bg-size":[{bg:ye()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ya,fe,Oe],radial:["",fe,Oe],conic:[Ya,fe,Oe]},c$,r$]}],"bg-color":[{bg:ee()}],"gradient-from-pos":[{from:Re()}],"gradient-via-pos":[{via:Re()}],"gradient-to-pos":[{to:Re()}],"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:[...Ce(),"hidden","none"]}],"divide-style":[{divide:[...Ce(),"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:[...Ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ke,fe,Oe]}],"outline-w":[{outline:["",ke,Lr,Qs]}],"outline-color":[{outline:ee()}],shadow:[{shadow:["","none",x,Go,Vo]}],"shadow-color":[{shadow:ee()}],"inset-shadow":[{"inset-shadow":["none",g,Go,Vo]}],"inset-shadow-color":[{"inset-shadow":ee()}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ee()}],"ring-offset-w":[{"ring-offset":[ke,Qs]}],"ring-offset-color":[{"ring-offset":ee()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":ee()}],"text-shadow":[{"text-shadow":["none",b,Go,Vo]}],"text-shadow-color":[{"text-shadow":ee()}],opacity:[{opacity:[ke,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":[ke]}],"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":_()}],"mask-image-conic-pos":[{"mask-conic":[ke]}],"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:be()}],"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:[ke,fe,Oe]}],contrast:[{contrast:[ke,fe,Oe]}],"drop-shadow":[{"drop-shadow":["","none",y,Go,Vo]}],"drop-shadow-color":[{"drop-shadow":ee()}],grayscale:[{grayscale:["",ke,fe,Oe]}],"hue-rotate":[{"hue-rotate":[ke,fe,Oe]}],invert:[{invert:["",ke,fe,Oe]}],saturate:[{saturate:[ke,fe,Oe]}],sepia:[{sepia:["",ke,fe,Oe]}],"backdrop-filter":[{"backdrop-filter":["","none",fe,Oe]}],"backdrop-blur":[{"backdrop-blur":He()}],"backdrop-brightness":[{"backdrop-brightness":[ke,fe,Oe]}],"backdrop-contrast":[{"backdrop-contrast":[ke,fe,Oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ke,fe,Oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ke,fe,Oe]}],"backdrop-invert":[{"backdrop-invert":["",ke,fe,Oe]}],"backdrop-opacity":[{"backdrop-opacity":[ke,fe,Oe]}],"backdrop-saturate":[{"backdrop-saturate":[ke,fe,Oe]}],"backdrop-sepia":[{"backdrop-sepia":["",ke,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:[ke,"initial",fe,Oe]}],ease:[{ease:["linear","initial",j,fe,Oe]}],delay:[{delay:[ke,fe,Oe]}],animate:[{animate:["none",z,fe,Oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,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:un()}],"scale-x":[{"scale-x":un()}],"scale-y":[{"scale-y":un()}],"scale-z":[{"scale-z":un()}],"scale-3d":["scale-3d"],skew:[{skew:Ht()}],"skew-x":[{"skew-x":Ht()}],"skew-y":[{"skew-y":Ht()}],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:[ke,Lr,Qs,t1]}],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"]}},f$=L5(O$);function re(...t){return f$(j5(t))}function h$({children:t}){return r.jsx(g5,{delayDuration:300,children:t})}function s1({children:t,content:a,side:s="top",className:l}){return a?r.jsxs(b5,{children:[r.jsx(v5,{asChild:!0,children:t}),r.jsx(y5,{children:r.jsxs(S5,{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",l),children:[a,r.jsx(Q5,{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 Cb=(...t)=>t.filter((a,s,l)=>!!a&&a.trim()!==""&&l.indexOf(a)===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 m$=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 p$=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,s,l)=>l?l.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 l1=t=>{const a=p$(t);return a.charAt(0).toUpperCase()+a.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 QO={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 x$=t=>{for(const a in t)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1},g$=v.createContext({}),b$=()=>v.useContext(g$),v$=v.forwardRef(({color:t,size:a,strokeWidth:s,absoluteStrokeWidth:l,className:o="",children:u,iconNode:d,...O},h)=>{const{size:p=24,strokeWidth:x=2,absoluteStrokeWidth:g=!1,color:b="currentColor",className:y=""}=b$()??{},Q=l??g?Number(s??x)*24/Number(a??p):s??x;return v.createElement("svg",{ref:h,...QO,width:a??p??QO.width,height:a??p??QO.height,stroke:t??b,strokeWidth:Q,className:Cb("lucide",y,o),...!u&&!x$(O)&&{"aria-hidden":"true"},...O},[...d.map(([k,$])=>v.createElement(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,a)=>{const s=v.forwardRef(({className:l,...o},u)=>v.createElement(v$,{ref:u,iconNode:a,className:Cb(`lucide-${m$(l1(t))}`,`lucide-${t}`,l),...o}));return s.displayName=l1(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 y$=[["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"}]],xc=le("activity",y$);/**
|
|
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 S$=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Q$=le("arrow-up",S$);/**
|
|
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 j$=[["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",j$);/**
|
|
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 w$=[["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"}]],eh=le("box",w$);/**
|
|
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 $$=[["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"}]],T$=le("brain",$$);/**
|
|
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 N$=[["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"}]],P$=le("calculator",N$);/**
|
|
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 z$=[["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"}]],gc=le("calendar",z$);/**
|
|
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 R$=[["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"}]],Gc=le("chart-column",R$);/**
|
|
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 C$=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Wt=le("check",C$);/**
|
|
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"}]],Pn=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 _$=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Xb=le("chevron-left",_$);/**
|
|
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 A$=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],_s=le("chevron-right",A$);/**
|
|
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 Z$=[["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"}]],ua=le("circle-alert",Z$);/**
|
|
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 E$=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],ni=le("circle-check-big",E$);/**
|
|
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 q$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],gf=le("circle-check",q$);/**
|
|
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 M$=[["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"}]],bc=le("circle-question-mark",M$);/**
|
|
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 Y$=[["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"}]],_b=le("circle-x",Y$);/**
|
|
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 U$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],bf=le("clock",U$);/**
|
|
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 V$=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],G$=le("cloud",V$);/**
|
|
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 L$=[["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"}]],ns=le("code-xml",L$);/**
|
|
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 D$=[["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"}]],vf=le("copy",D$);/**
|
|
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 W$=[["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"}]],Zl=le("cpu",W$);/**
|
|
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 B$=[["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"}]],H$=le("database",B$);/**
|
|
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 I$=[["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"}]],F$=le("dollar-sign",I$);/**
|
|
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 K$=[["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"}]],mi=le("download",K$);/**
|
|
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 J$=[["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"}]],vc=le("external-link",J$);/**
|
|
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 eT=[["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"}]],th=le("eye-off",eT);/**
|
|
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 tT=[["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"}]],Dl=le("eye",tT);/**
|
|
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 nT=[["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"}]],aT=le("file-code",nT);/**
|
|
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 sT=[["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"}]],Ab=le("file-pen",sT);/**
|
|
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 lT=[["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"}]],jO=le("file-plus",lT);/**
|
|
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 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:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Ba=le("file-text",rT);/**
|
|
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 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"}]],oT=le("file",iT);/**
|
|
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 cT=[["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"}]],uT=le("flame",cT);/**
|
|
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 dT=[["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"}]],OT=le("folder-closed",dT);/**
|
|
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 fT=[["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"}]],ai=le("folder-open",fT);/**
|
|
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 hT=[["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"}]],kO=le("folder-plus",hT);/**
|
|
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 mT=[["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"}]],Zb=le("folder-search",mT);/**
|
|
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 pT=[["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"}]],Eb=le("folder",pT);/**
|
|
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 xT=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],qb=le("gauge",xT);/**
|
|
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 gT=[["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",gT);/**
|
|
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 bT=[["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"}]],vT=le("headphones",bT);/**
|
|
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 yT=[["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"}]],ST=le("heart",yT);/**
|
|
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 QT=[["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"}]],jT=le("house",QT);/**
|
|
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"}]],Mb=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 wT=[["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"}]],yc=le("key",wT);/**
|
|
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 $T=[["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"}]],r1=le("layers",$T);/**
|
|
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 TT=[["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"}]],NT=le("layout-dashboard",TT);/**
|
|
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 PT=[["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"}]],zT=le("list-checks",PT);/**
|
|
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 RT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ka=le("loader-circle",RT);/**
|
|
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 CT=[["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",CT);/**
|
|
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"}]],Yb=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 _T=[["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"}]],AT=le("map",_T);/**
|
|
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 ZT=[["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"}]],ET=le("maximize-2",ZT);/**
|
|
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 qT=[["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"}]],MT=le("memory-stick",qT);/**
|
|
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 YT=[["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"}]],UT=le("megaphone",YT);/**
|
|
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 VT=[["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"}]],Ub=le("message-circle",VT);/**
|
|
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 GT=[["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"}]],pi=le("message-square",GT);/**
|
|
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 LT=[["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"}]],DT=le("minimize-2",LT);/**
|
|
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 WT=[["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",WT);/**
|
|
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 BT=[["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"}]],Vb=le("network",BT);/**
|
|
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 HT=[["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"}]],si=le("newspaper",HT);/**
|
|
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 IT=[["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"}]],Gb=le("package",IT);/**
|
|
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 FT=[["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"}]],KT=le("paperclip",FT);/**
|
|
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 JT=[["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"}]],eN=le("pause",JT);/**
|
|
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 tN=[["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"}]],nN=le("pen",tN);/**
|
|
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 aN=[["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"}]],Lc=le("pencil",aN);/**
|
|
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 sN=[["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"}]],lN=le("play",sN);/**
|
|
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 rN=[["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"}]],i1=le("plug-zap",rN);/**
|
|
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 iN=[["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"}]],Lb=le("plug",iN);/**
|
|
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 oN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ja=le("plus",oN);/**
|
|
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 cN=[["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"}]],uN=le("presentation",cN);/**
|
|
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 dN=[["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"}]],Db=le("puzzle",dN);/**
|
|
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 ON=[["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",ON);/**
|
|
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 fN=[["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"}]],Rn=le("refresh-cw",fN);/**
|
|
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 hN=[["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"}]],Wb=le("rocket",hN);/**
|
|
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 mN=[["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"}]],Wl=le("rotate-cw",mN);/**
|
|
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 pN=[["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"}]],xN=le("save",pN);/**
|
|
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 gN=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],da=le("search",gN);/**
|
|
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 bN=[["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",bN);/**
|
|
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 vN=[["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"}]],Bb=le("server",vN);/**
|
|
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 yN=[["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"}]],Hb=le("settings",yN);/**
|
|
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 SN=[["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"}]],Ib=le("shield-check",SN);/**
|
|
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 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:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]],jN=le("shield-x",QN);/**
|
|
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"}]],li=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 wN=[["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"}]],wO=le("shopping-bag",wN);/**
|
|
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 $N=[["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",$N);/**
|
|
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 TN=[["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"}]],Ir=le("sparkles",TN);/**
|
|
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 NN=[["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"}]],Fb=le("star",NN);/**
|
|
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 PN=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],xi=le("terminal",PN);/**
|
|
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 zN=[["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",zN);/**
|
|
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 RN=[["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"}]],as=le("trash-2",RN);/**
|
|
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 CN=[["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"}]],gi=le("triangle-alert",CN);/**
|
|
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"}]],_N=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 AN=[["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"}]],ZN=le("user-check",AN);/**
|
|
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 EN=[["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"}]],qN=le("user-plus",EN);/**
|
|
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 MN=[["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"}]],Kb=le("user",MN);/**
|
|
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 YN=[["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"}]],bi=le("users",YN);/**
|
|
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 UN=[["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"}]],VN=le("wrench",UN);/**
|
|
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 GN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Qt=le("x",GN);/**
|
|
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 LN=[["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"}]],Cn=le("zap",LN),DN={success:ni,error:ua,info:Mb,warning:gi},WN={success:"border-l-success",error:"border-l-danger",info:"border-l-accent",warning:"border-l-warning"},BN={success:"text-success",error:"text-danger",info:"text-accent",warning:"text-warning"},HN={success:3e3,error:0,info:5e3,warning:5e3};function IN({toast:t}){const a=D(o=>o.removeToast),s=DN[t.type]||Mb,l=HN[t.type];return v.useEffect(()=>{if(!l)return;const o=setTimeout(()=>a(t.id),l);return()=>clearTimeout(o)},[t.id,l,a]),r.jsxs(Zf.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",WN[t.type]),children:[r.jsx(s,{size:16,className:re("flex-shrink-0",BN[t.type])}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:"text-sm text-text-0 font-sans",children:t.message}),t.detail&&r.jsx("p",{className:"text-xs text-text-3 font-sans mt-0.5",children:t.detail})]}),r.jsx("button",{onClick:o=>{o.stopPropagation(),a(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:r.jsx(Qt,{size:14})})]})}function FN(){const t=D(a=>a.toasts);return r.jsx("div",{className:"fixed bottom-4 right-4 z-[100] flex flex-col-reverse gap-2",children:r.jsx(Af,{mode:"popLayout",children:t.slice(-3).map(a=>r.jsx(IN,{toast:a},a.id))})})}const KN=[{id:"agents",icon:Vb,label:"Agents"},{id:"editor",icon:ns,label:"Editor"},{id:"dashboard",icon:Gc,label:"Dashboard"},{id:"marketplace",icon:Db,label:"Marketplace"},{id:"models",icon:eh,label:"Models"},{id:"teams",icon:bi,label:"Teams"}],JN=[{id:"journalist",icon:si,label:"Journalist",panel:!0},{id:"settings",icon:Hb,label:"Settings",nav:!0}];function eP({activeView:t,detailPanel:a,onNavigate:s,onTogglePanel:l}){return r.jsxs("nav",{className:"w-12 flex-shrink-0 flex flex-col bg-surface-3 border-r border-border",children:[r.jsx("div",{className:"flex flex-col items-center gap-0.5 pt-2",children:KN.map(o=>r.jsx(s1,{content:o.label,side:"right",children:r.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:r.jsx(o.icon,{size:20,strokeWidth:t===o.id?2:1.5})})},o.id))}),r.jsx("div",{className:"flex-1"}),r.jsx("div",{className:"flex flex-col items-center gap-0.5 pb-2",children:JN.map(o=>{const u=o.panel?(a==null?void 0:a.type)===o.id:t===o.id;return r.jsx(s1,{content:o.label,side:"right",children:r.jsx("button",{onClick:()=>o.panel?l(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:r.jsx(o.icon,{size:20,strokeWidth:u?2:1.5})})},o.id)})})]})}const tP={agents:"Agents",editor:"Editor",dashboard:"Dashboard",marketplace:"Marketplace",teams:"Teams"};function nP({activeView:t,connected:a,daemonHost:s,editorActiveFile:l,onOpenCommandPalette:o,onSpawn:u}){const d=["Groove",tP[t]||t];return t==="editor"&&l&&d.push(l.split("/").pop()),r.jsxs("header",{className:"h-11 flex-shrink-0 flex items-center gap-3 px-4 bg-surface-3 border-b border-border",children:[r.jsx("img",{src:"/favicon.png",alt:"Groove",className:"h-7 w-7 rounded-full flex-shrink-0"}),s&&r.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}),r.jsx("div",{className:"flex-1 min-w-4"}),r.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:[r.jsx(da,{size:14,className:"flex-shrink-0"}),r.jsx("span",{className:"flex-1 text-left",children:"Search commands..."}),r.jsx("kbd",{className:"text-2xs font-mono bg-surface-4 px-1.5 py-0.5 rounded-full text-text-4",children:"Cmd+K"})]}),r.jsx("div",{className:"flex-1 min-w-4"}),r.jsx("div",{className:"flex items-center gap-1 text-xs font-sans text-text-3 flex-shrink-0",children:d.map((O,h)=>r.jsxs("span",{className:"flex items-center gap-1",children:[h>0&&r.jsx(_s,{size:11,className:"text-text-4"}),r.jsx("span",{className:re(h===d.length-1?"text-text-2":"text-text-4"),children:O})]},h))}),a&&r.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:[r.jsx(Ja,{size:14}),"Spawn"]})]})}const aP={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 aP[t]||"var(--color-text-3)"}const sP={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 Dc(t){const a=(t||"").toLowerCase();return sP[a]||{bg:"rgba(139, 146, 158, 0.12)",text:"#8b929e",border:"#8b929e"}}function Ts({status:t,size:a="md",className:s}){const l=t==="running"||t==="starting",o=a==="sm"?"w-1.5 h-1.5":a==="lg"?"w-3 h-3":"w-2 h-2";return r.jsx("span",{className:re("rounded-full inline-block flex-shrink-0",l&&"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 vi(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 El(t){return t==null||isNaN(t)?"0%":Math.round(t)+"%"}function Wc(t){if(!t||t<0)return"0s";const a=Math.floor(t/86400),s=Math.floor(t%86400/3600),l=Math.floor(t%3600/60),o=Math.floor(t%60);return a>0?`${a}d ${s}h`:s>0?`${s}h ${l}m`:l>0?`${l}m ${o}s`:`${o}s`}function vt(t){if(!t)return"";const a=(Date.now()-new Date(t).getTime())/1e3;return a<5?"just now":a<60?`${Math.floor(a)}s ago`:a<3600?`${Math.floor(a/60)}m ago`:a<86400?`${Math.floor(a/3600)}h ago`:`${Math.floor(a/86400)}d ago`}function lP({connected:t,agentCount:a,runningCount:s,uptime:l,terminalVisible:o,onToggleTerminal:u}){return r.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:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx(Ts,{status:t?"running":"crashed",size:"sm"}),r.jsx("span",{className:t?"text-text-2":"text-danger",children:t?"Connected":"Offline"})]}),t&&l>0&&r.jsxs("span",{className:"text-text-4",children:["Up ",Wc(l)]}),t&&a>0&&r.jsxs("span",{className:"text-text-4",children:[s,"/",a," agents"]})]}),r.jsx("div",{className:"flex-1"}),r.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:[r.jsx(k$,{size:12}),r.jsx("span",{children:"Docs"})]}),r.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:[r.jsx(xi,{size:12}),r.jsx("span",{children:"Terminal"}),r.jsx("kbd",{className:"font-mono text-text-4 ml-0.5",children:"Cmd+J"})]})]})}function rP({children:t,width:a,onWidthChange:s,onClose:l,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=a;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)},[a,s]);return r.jsxs("aside",{className:re("flex-shrink-0 flex bg-surface-1 border-l border-border relative",o),style:{width:a},children:[r.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}),r.jsx("button",{onClick:l,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:r.jsx(Qt,{size:14})}),r.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:t})]})}const iP=[{id:"nav:agents",label:"Go to Agents",icon:Vb,category:"Navigation",action:t=>{t.setActiveView("agents")}},{id:"nav:editor",label:"Go to Editor",icon:ns,category:"Navigation",action:t=>{t.setActiveView("editor")}},{id:"nav:dashboard",label:"Go to Dashboard",icon:Gc,category:"Navigation",action:t=>{t.setActiveView("dashboard")}},{id:"nav:marketplace",label:"Go to Marketplace",icon:Db,category:"Navigation",action:t=>{t.setActiveView("marketplace")}},{id:"nav:teams",label:"Go to Teams",icon:bi,category:"Navigation",action:t=>{t.setActiveView("teams")}},{id:"action:spawn",label:"Spawn Agent",icon:Ja,category:"Actions",action:t=>{t.openDetail({type:"spawn"})}},{id:"action:terminal",label:"Toggle Terminal",icon:xi,category:"Actions",action:t=>{t.setTerminalVisible(!t.terminalVisible)},shortcut:"Cmd+J"},{id:"action:journalist",label:"Toggle Journalist",icon:si,category:"Actions",action:t=>{var a;((a=t.detailPanel)==null?void 0:a.type)==="journalist"?t.closeDetail():t.openDetail({type:"journalist"})}}];function oP(){const t=D(y=>y.commandPaletteOpen),a=D(y=>y.toggleCommandPalette),s=D(y=>y.agents),l=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:pi,category:"Agents",action:k=>{k.selectAgent(Q.id)}},...Q.status==="running"?[{id:`rotate:${Q.id}`,label:`Rotate ${Q.name}`,icon:Wl,category:"Agents",action:k=>{k.rotateAgent(Q.id)}},{id:`kill:${Q.id}`,label:`Kill ${Q.name}`,icon:ih,category:"Agents",action:k=>{k.killAgent(Q.id)}}]:[]]);return[...iP,...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(l.getState()),a()}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"&&a()}return t?r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-50 bg-black/40 backdrop-blur-sm",onClick:a}),r.jsx(Af,{children:r.jsxs(Zf.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:[r.jsxs("div",{className:"flex items-center gap-2 px-4 py-3 border-b border-border-subtle",children:[r.jsx(da,{size:16,className:"text-text-3 flex-shrink-0"}),r.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"})]}),r.jsxs("div",{className:"overflow-y-auto max-h-[320px] py-1",children:[x.length===0&&r.jsx("div",{className:"px-4 py-6 text-sm text-text-3 text-center font-sans",children:"No results"}),x.map((y,Q)=>r.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:[r.jsx(y.icon,{size:16,className:"text-text-3 flex-shrink-0"}),r.jsx("span",{className:"flex-1 text-left",children:y.label}),r.jsx("span",{className:"text-2xs text-text-4",children:y.category}),y.shortcut&&r.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 cP({children:t,detailContent:a,terminalContent:s}){const l=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),k=D(R=>R.closeDetail),$=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]),_=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()}}],[]);uk(_);const G=o&&o.type!=="spawn";return r.jsx(h$,{children:r.jsxs("div",{className:"w-full h-full flex flex-col bg-surface-2 text-text-1 font-sans",children:[r.jsx(nP,{activeView:l,connected:u,tunneled:d,daemonHost:O,editorActiveFile:p,onOpenCommandPalette:z,onSpawn:()=>Q({type:"spawn"})}),r.jsxs("div",{className:"flex-1 flex min-h-0",children:[r.jsx(eP,{activeView:l,detailPanel:o,onNavigate:y,onTogglePanel:R=>{(o==null?void 0:o.type)===R?k():Q({type:R})}}),r.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0",children:[!(g&&b)&&r.jsx("main",{className:"flex-1 min-h-0 overflow-hidden relative",children:t}),s]}),G&&r.jsx(rP,{width:x,onWidthChange:$,onClose:k,children:a})]}),r.jsx(lP,{connected:u,agentCount:h.length,runningCount:N,terminalVisible:g,onToggleTerminal:()=>j(!g)}),r.jsx(oP,{}),r.jsx(FN,{})]})})}const uP=[];function dP(t){if(!t||t==="auto")return"auto";const a=t.match(/^claude-(opus|sonnet|haiku)-(\d+)-(\d+)(?:-\d+)?$/);return a?`${a[1][0].toUpperCase()+a[1].slice(1)} ${a[2]}.${a[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 OP(t){if(!t)return null;const a=t.toLowerCase();return a.includes("read")?"READ":a.includes("edit")||a.includes("writ")?"WRITE":a.includes("search")||a.includes("grep")||a.includes("glob")?"SEARCH":a.includes("bash")||a.includes("exec")||a.includes("running")?"EXEC":a.includes("test")?"TEST":a.includes("error")||a.includes("fail")?"ERR":a.includes("complet")||a.includes("done")?"DONE":"WORK"}function fP(t){if(!t)return"";const a=Math.floor((Date.now()-t)/1e3);return a<60?`${a}s`:a<3600?`${Math.floor(a/60)}m`:`${Math.floor(a/3600)}h`}function hP({agent:t}){const s=(D(l=>l.activityLog[t.id])||uP).slice(-8);return r.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:r.jsxs("div",{className:"overflow-hidden",style:{background:"#181b21",border:"1px solid #262a32",borderRadius:4},children:[t.prompt&&r.jsx("div",{className:"px-2.5 py-2 border-b border-[#262a32]",children:r.jsx("p",{className:"text-[9px] font-sans text-[#8b929e] line-clamp-3 leading-snug",children:t.prompt})}),s.length>0?r.jsxs("div",{children:[r.jsx("div",{className:"px-2.5 pt-1.5 pb-1",children:r.jsx("span",{className:"text-[8px] font-mono text-[#3a3f4b] uppercase tracking-widest",children:"Activity"})}),s.map((l,o)=>{var O;const u=OP(l.text),d=((O=l.text)==null?void 0:O.length)>45?l.text.slice(0,45)+"...":l.text;return r.jsxs("div",{className:"px-2.5 py-[3px] flex items-start gap-1.5",children:[r.jsx("span",{className:"text-[8px] font-mono text-[#333842] w-5 flex-shrink-0 text-right",children:fP(l.timestamp)}),u&&r.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}),r.jsx("span",{className:"text-[9px] font-sans text-[#6e7681] truncate flex-1",children:d})]},o)}),r.jsx("div",{className:"h-1.5"})]}):r.jsx("div",{className:"px-2.5 py-3",children:r.jsx("span",{className:"text-[9px] font-mono text-[#333842]",children:"Awaiting activity..."})})]})})}const mP={running:"LIVE",starting:"INIT",stopped:"IDLE",crashed:"ERR",completed:"DONE",killed:"KILL",rotating:"ROT"},Jb=v.memo(({data:t,selected:a})=>{const{agent:s}=t,l=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 r.jsxs("div",{className:"relative",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:[r.jsxs("div",{className:"w-[220px] overflow-hidden transition-all duration-150",style:{background:"#1c1f26",border:`1px solid ${a?"#2e323a":"#262a32"}`,borderRadius:4},children:[r.jsx(Da,{id:"top",type:"target",position:Wa.Top,className:"!w-1 !h-1 !bg-transparent !border-0"}),r.jsx(Da,{id:"bottom",type:"target",position:Wa.Bottom,className:"!w-1 !h-1 !bg-transparent !border-0"}),r.jsx(Da,{id:"left",type:"target",position:Wa.Left,className:"!w-1 !h-1 !bg-transparent !border-0"}),r.jsx(Da,{id:"right",type:"target",position:Wa.Right,className:"!w-1 !h-1 !bg-transparent !border-0"}),l&&r.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",style:{borderRadius:3},children:r.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"}})}),r.jsxs("div",{className:"px-3 pt-2.5 pb-1.5",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[r.jsx("span",{className:"absolute inset-0 rounded-sm",style:{background:u}}),l&&r.jsx("span",{className:"absolute inset-[-2px] rounded-sm",style:{background:u,opacity:.15,animation:"node-pulse-bar 2s ease-in-out infinite"}})]}),r.jsx("span",{className:"text-[12px] font-semibold text-[#e6e6e6] font-sans truncate flex-1 leading-none",children:s.name}),r.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:mP[s.status]||s.status})]}),r.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5",children:[r.jsx("span",{className:"text-[9px] font-mono text-[#505862] uppercase tracking-[0.05em]",children:s.role}),r.jsx("span",{className:"text-[9px] text-[#2a2e36]",children:"/"}),r.jsx("span",{className:"text-[9px] font-mono text-[#505862]",children:dP(s.model)})]})]}),r.jsxs("div",{className:"px-3 pt-1 pb-2",children:[r.jsxs("div",{className:"flex items-baseline gap-1.5",children:[r.jsx("span",{className:"text-[14px] font-mono font-medium text-[#bcc2cd] leading-none",children:Ke(d)}),r.jsx("span",{className:"text-[8px] font-mono text-[#505862]",children:"tok"}),r.jsx("span",{className:"flex-1"}),r.jsxs("span",{className:"text-[9px] font-mono text-[#505862]",children:[o,"%"]})]}),r.jsx("div",{className:"mt-1.5 h-[2px] rounded-sm overflow-hidden",style:{background:"rgba(51, 175, 188, 0.15)"},children:r.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&&r.jsx(hP,{agent:s})]})});Jb.displayName="AgentNode";const ev=v.memo(({data:t})=>{const{agentCount:a,runningCount:s}=t,l=s>0,o={background:"transparent",border:0,width:2,height:2};return r.jsxs("div",{className:"relative flex items-center justify-center",style:{width:84,height:84},children:[r.jsx("div",{className:re("absolute inset-0 rounded-full transition-all duration-500",l&&"animate-[spin-slow_30s_linear_infinite]"),style:{border:`1px dashed ${l?"rgba(97,175,239,0.5)":"rgba(97,175,239,0.25)"}`}}),r.jsx("div",{className:"absolute inset-[10px] rounded-full",style:{background:l?"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:l?"node-pulse-bar 2.5s ease-in-out infinite":"none"}}),r.jsx("div",{className:re("w-14 h-14 rounded-full flex items-center justify-center relative z-10 transition-all duration-300",l?"bg-[#1c1f26] border-2 border-[#61afef]/35 shadow-[0_0_28px_rgba(97,175,239,0.15)]":"bg-[#1c1f26] border border-[#61afef]/20"),children:r.jsx("img",{src:"/favicon.png",alt:"G",className:re("h-7 w-7 rounded-full transition-opacity",l?"opacity-90":"opacity-60")})}),a>0&&r.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",l?"bg-[#1c1f26] text-[#61afef] border border-[#61afef]/40":"bg-[#1c1f26] text-[#61afef]/60 border border-[#61afef]/20"),style:{bottom:2,right:2},children:a}),r.jsx(Da,{id:"bottom",type:"source",position:Wa.Bottom,style:o}),r.jsx(Da,{id:"right",type:"source",position:Wa.Right,style:o}),r.jsx(Da,{id:"left",type:"source",position:Wa.Left,style:o}),r.jsx(Da,{id:"top",type:"source",position:Wa.Top,style:o})]})});ev.displayName="RootNode";const pP={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"},xP={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"},ve=v.forwardRef(({className:t,variant:a="secondary",size:s="md",children:l,...o},u)=>r.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",pP[a],xP[s],t),...o,children:l}));ve.displayName="Button";const gP={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 Xe({children:t,variant:a="default",className:s,dot:l,...o}){return r.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",gP[a],s),...o,children:[l&&r.jsx("span",{className:re("w-1.5 h-1.5 rounded-full",l==="pulse"&&"animate-pulse"),style:{background:"currentColor"}}),t]})}const bP={agentNode:Jb,rootNode:ev},$O=220,TO=82,Lo=260,Do=130,Ua=4,hn="__groove_root__";function NO(){try{return JSON.parse(localStorage.getItem("groove:nodePositions")||"{}")}catch{return{}}}function vP(t){try{localStorage.setItem("groove:nodePositions",JSON.stringify(t))}catch{}}function yP(){const t=D(N=>N.teams),a=D(N=>N.activeTeamId),s=D(N=>N.agents),l=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(""),k=v.useRef(!1);function $(){const N=p.trim();!N||k.current||(k.current=!0,x(""),h(!1),o(N).finally(()=>{k.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 r.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 _=s.filter(T=>T.teamId===N.id).length,G=N.id===a,R=g===N.id,X=s.filter(T=>T.teamId===N.id&&(T.status==="running"||T.status==="starting")).length;return r.jsxs("div",{onClick:()=>!R&&l(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&&r.jsx("div",{className:"absolute top-0 left-0 right-0 h-px bg-accent",style:{height:"0.5px"}}),r.jsx(bi,{size:13,className:G?"text-accent":"text-text-4"}),R?r.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()}):r.jsx("span",{className:"truncate max-w-[120px]",children:N.name}),_>0&&!R&&r.jsx("span",{className:re("flex items-center justify-center min-w-[18px] h-[18px] px-1 rounded-full text-2xs font-mono font-semibold",X>0?"bg-accent/15 text-accent":"bg-surface-4 text-text-3"),children:_}),!R&&r.jsxs("div",{className:"flex items-center gap-0.5 ml-0.5 opacity-0 group-hover:opacity-100 transition-opacity",children:[r.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:r.jsx(Lc,{size:10})}),!N.isDefault&&r.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:r.jsx(Qt,{size:10})})]}),G&&r.jsx("div",{className:"absolute bottom-[-1px] left-0 right-0 h-px bg-surface-0"})]},N.id)}),O?r.jsxs("div",{className:"flex items-center gap-1.5 px-3 h-9 bg-surface-3/50",children:[r.jsx("input",{value:p,onChange:N=>x(N.target.value),onKeyDown:N=>{N.key==="Enter"&&$(),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}),r.jsx("button",{onClick:$,disabled:!p.trim(),className:"p-1 rounded text-accent hover:bg-accent/10 cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed",children:r.jsx(Wt,{size:12})}),r.jsx("button",{onClick:()=>{h(!1),x("")},className:"p-1 rounded text-text-4 hover:text-text-1 cursor-pointer",children:r.jsx(Qt,{size:12})})]}):r.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:r.jsx(Ja,{size:14})})]})}function SP(){const t=D(T=>T.agents),a=D(T=>T.activeTeamId),s=D(T=>T.tokenTimeline),l=D(T=>T.selectAgent),o=D(T=>T.closeDetail),u=v.useMemo(()=>t.filter(T=>T.teamId===a),[t,a]),{fitView:d}=jj(),[O,h]=v.useState(0),p=v.useMemo(()=>{const T=NO(),Y=u.filter(W=>W.status==="running").length,M=[{id:hn,type:"rootNode",position:T[hn]||{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[hn]||{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/Ua),E=P%Ua;let be={x:-((Math.min(u.length-B*Ua,Ua)-1)*Lo)/2+E*Lo,y:Do+B*Do};for(;ae.has(F(be.x,be.y));)be={x:be.x,y:be.y+Do};ae.add(F(be.x,be.y)),M.push({id:W.id,type:"agentNode",position:be,data:{agent:W,timeline:s[W.id]||[]},draggable:!0,selectable:!0})}return M},[u,s]),x=v.useMemo(()=>{const T=NO(),Y=T[hn]||{x:0,y:0};return u.map((M,ae)=>{const F=M.name||M.id,se=Math.floor(ae/Ua),ie=ae%Ua,P=-((Math.min(u.length-se*Ua,Ua)-1)*Lo)/2,B=T[F]||{x:P+ie*Lo,y:140+se*Do},E=B.x+$O/2-Y.x,ce=B.y+TO/2-Y.y;let ee,be;return Math.abs(ce)>Math.abs(E)?(ee=ce>0?"bottom":"top",be=ce>0?"top":"bottom"):(ee=E>0?"right":"left",be=E>0?"left":"right"),{id:`e-${hn}-${M.id}`,source:hn,target:M.id,sourceHandle:ee,targetHandle:be,type:"default",animated:M.status==="running"}})},[u]),[g,b,y]=kj(p),[Q,k,$]=wj(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(()=>{k(()=>{const T=g.find(M=>M.id===hn);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+$O/2-Y.x,se=ae.position.y+TO/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,k]);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 _=v.useCallback((T,Y)=>{Y.id!==hn&&l(Y.id)},[l]),G=v.useCallback(()=>{o()},[o]),R=v.useCallback((T,Y)=>{const M=g.find(F=>F.id===hn);if(!M)return;const ae=M.position;k(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+$O/2-ae.x,E=P.y+TO/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,k]),X=v.useCallback((T,Y)=>{const M=u.find(se=>se.id===Y.id),ae=Y.id===hn?hn:(M==null?void 0:M.name)||Y.id,F=NO();F[ae]=Y.position,vP(F)},[u]);return r.jsx($j,{nodes:g,edges:Q,nodeTypes:bP,onNodesChange:y,onEdgesChange:$,onNodeClick:_,onPaneClick:G,onNodeDrag:R,onNodeDragStop:X,defaultViewport:{x:0,y:0,zoom:1.2},proOptions:{hideAttribution:!0},minZoom:.2,maxZoom:1.5,className:"bg-surface-2",children:r.jsx(Tj,{color:"rgba(97,175,239,0.03)",gap:24,size:1})})}function QP({onPlanner:t,onSpawn:a}){return r.jsx("div",{className:"w-full h-full flex items-center justify-center",children:r.jsxs("div",{className:"max-w-2xl w-full text-center space-y-10 px-8",children:[r.jsxs("div",{className:"relative mx-auto w-20 h-20",children:[r.jsx("div",{className:"absolute inset-0 rounded-full bg-accent/8 animate-pulse"}),r.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:r.jsx("img",{src:"/favicon.png",alt:"Groove",className:"h-10 w-10 rounded-full"})})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsx("h1",{className:"text-3xl font-bold text-text-0 font-sans tracking-tight",children:"Welcome to Groove"}),r.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."})]}),r.jsxs("div",{className:"space-y-3 max-w-xl mx-auto",children:[r.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:[r.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:r.jsx(Cn,{size:24,className:"text-accent"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("div",{className:"text-base font-semibold text-text-0 font-sans",children:"Start with a Planner"}),r.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"})]}),r.jsx("div",{className:"text-accent text-xs font-semibold font-sans flex-shrink-0 opacity-60 group-hover:opacity-100 transition-opacity",children:"Recommended"})]}),r.jsxs("button",{onClick:a,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:[r.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:r.jsx(Ja,{size:20,className:"text-text-1"})}),r.jsxs("div",{className:"min-w-0",children:[r.jsx("div",{className:"text-sm font-semibold text-text-0 font-sans",children:"Spawn Agent"}),r.jsx("div",{className:"text-xs text-text-3 font-sans mt-0.5",children:"Choose a role and configure"})]})]})]}),r.jsxs("p",{className:"text-xs text-text-4 font-sans",children:[r.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+K"}),r.jsx("span",{className:"mx-1.5",children:"command palette"}),r.jsx("span",{className:"text-text-4 mx-1",children:"·"}),r.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+N"}),r.jsx("span",{className:"mx-1.5",children:"spawn"}),r.jsx("span",{className:"text-text-4 mx-1",children:"·"}),r.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+J"}),r.jsx("span",{className:"mx-1.5",children:"terminal"})]})]})})}const jP={backend:Bb,frontend:sh,fullstack:ns,testing:oh,security:li},kP=/^[a-zA-Z0-9_-]{1,64}$/;function wP(t){return t.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9_-]/g,"").slice(0,64)}function $P(){var y;const t=D(Q=>Q.recommendedTeam),a=D(Q=>Q.launchRecommendedTeam),[s,l]=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,k){const $=p.map((j,z)=>z===Q?{...j,name:wP(k)}:j);u($)}async function g(){l(!0);try{const Q=[...p,...h];await a(Q)}catch{}l(!1)}function b(){D.setState({recommendedTeam:null})}return r.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-50 w-full max-w-lg",children:r.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:[r.jsxs("div",{className:"px-4 py-3 border-b border-border-subtle flex items-center gap-2",children:[r.jsx(Wb,{size:16,className:"text-accent"}),r.jsx("span",{className:"text-sm font-semibold text-text-0 font-sans flex-1",children:"Planner Recommends a Team"}),r.jsx("button",{onClick:b,className:"text-text-4 hover:text-text-1 cursor-pointer",children:r.jsx(Qt,{size:14})})]}),r.jsxs("div",{className:"px-4 py-3 space-y-1.5",children:[p.map((Q,k)=>{var z;const $=jP[Q.role]||ns,j=!Q.name||kP.test(Q.name);return r.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1.5 rounded-md bg-surface-4 border border-border-subtle",children:[r.jsx($,{size:12,className:"text-text-2 shrink-0"}),r.jsx("input",{type:"text",value:Q.name,onChange:N=>x(k,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&&r.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}`:""]})]},k)}),t.projectDir&&r.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-2 font-mono pt-0.5",children:[r.jsx("span",{className:"text-text-4",children:"Project:"}),r.jsxs("span",{className:"text-accent",children:[t.projectDir,"/"]})]}),h.length>0&&r.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-3 font-sans",children:[r.jsx(li,{size:10}),r.jsxs("span",{children:[h.length," QC agent",h.length>1?"s":""," will auto-spawn after builders complete"]})]})]}),r.jsx("div",{className:"px-4 py-3 border-t border-border-subtle",children:r.jsxs(ve,{variant:"primary",size:"md",onClick:g,disabled:s,className:"w-full gap-2",children:[r.jsx(Cn,{size:14}),s?"Launching...":`Launch ${O.length} Agent${O.length>1?"s":""}`]})})]})})}function o1(){const t=D(b=>b.agents),a=D(b=>b.activeTeamId),s=D(b=>b.openDetail),l=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 l({role:"planner"});b!=null&&b.id&&o(b.id)}catch{}}const O=t.filter(b=>b.teamId===a),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 r.jsxs("div",{className:"flex flex-col h-full relative",children:[r.jsx(yP,{}),r.jsx("div",{className:"flex-1 min-h-0",children:g?r.jsxs("div",{className:re("flex flex-col items-center justify-center h-full transition-opacity duration-500",!p&&h?"opacity-0":"opacity-100"),children:[r.jsxs("div",{className:"relative w-12 h-12 mb-5",children:[r.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-accent/20 animate-ping",style:{animationDuration:"2s"}}),r.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-transparent border-t-accent animate-spin",style:{animationDuration:"1s"}}),r.jsx("span",{className:"absolute inset-[6px] rounded-full bg-accent/8 flex items-center justify-center",children:r.jsx(Cn,{size:16,className:"text-accent animate-pulse"})})]}),r.jsx("p",{className:"text-sm font-medium text-text-1 font-sans animate-pulse",children:"Connecting to agents"}),r.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Syncing with daemon..."})]}):O.length===0?r.jsx(QP,{onPlanner:d,onSpawn:()=>s({type:"spawn"})}):r.jsx(Qj,{children:r.jsx(SP,{})})}),r.jsx($P,{})]})}var TP=v.createContext(void 0);function uh(t){const a=v.useContext(TP);return t||a||"ltr"}function NP(t,[a,s]){return Math.min(s,Math.max(a,t))}function PP(t,a){return v.useReducer((s,l)=>a[s][l]??s,t)}var dh="ScrollArea",[tv]=Cs(dh),[zP,on]=tv(dh),nv=v.forwardRef((t,a)=>{const{__scopeScrollArea:s,type:l="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),[k,$]=v.useState(null),[j,z]=v.useState(0),[N,_]=v.useState(0),[G,R]=v.useState(!1),[X,T]=v.useState(!1),Y=it(a,ae=>h(ae)),M=uh(o);return r.jsx(zP,{scope:s,type:l,dir:M,scrollHideDelay:u,scrollArea:O,viewport:p,onViewportChange:x,content:g,onContentChange:b,scrollbarX:y,onScrollbarXChange:Q,scrollbarXEnabled:G,onScrollbarXEnabledChange:R,scrollbarY:k,onScrollbarYChange:$,scrollbarYEnabled:X,onScrollbarYEnabledChange:T,onCornerWidthChange:z,onCornerHeightChange:_,children:r.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}})})});nv.displayName=dh;var av="ScrollAreaViewport",sv=v.forwardRef((t,a)=>{const{__scopeScrollArea:s,children:l,nonce:o,...u}=t,d=on(av,s),O=v.useRef(null),h=it(a,O,d.onViewportChange);return r.jsxs(r.Fragment,{children:[r.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}),r.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:r.jsx("div",{ref:d.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});sv.displayName=av;var Xn="ScrollAreaScrollbar",lv=v.forwardRef((t,a)=>{const{forceMount:s,...l}=t,o=on(Xn,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"?r.jsx(RP,{...l,ref:a,forceMount:s}):o.type==="scroll"?r.jsx(CP,{...l,ref:a,forceMount:s}):o.type==="auto"?r.jsx(rv,{...l,ref:a,forceMount:s}):o.type==="always"?r.jsx(Oh,{...l,ref:a}):null});lv.displayName=Xn;var RP=v.forwardRef((t,a)=>{const{forceMount:s,...l}=t,o=on(Xn,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]),r.jsx(vn,{present:s||u,children:r.jsx(rv,{"data-state":u?"visible":"hidden",...l,ref:a})})}),CP=v.forwardRef((t,a)=>{const{forceMount:s,...l}=t,o=on(Xn,t.__scopeScrollArea),u=t.orientation==="horizontal",d=Hc(()=>h("SCROLL_END"),100),[O,h]=PP("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]),r.jsx(vn,{present:s||O!=="hidden",children:r.jsx(Oh,{"data-state":O==="hidden"?"hidden":"visible",...l,ref:a,onPointerEnter:qe(t.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:qe(t.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),rv=v.forwardRef((t,a)=>{const s=on(Xn,t.__scopeScrollArea),{forceMount:l,...o}=t,[u,d]=v.useState(!1),O=t.orientation==="horizontal",h=Hc(()=>{if(s.viewport){const p=s.viewport.offsetWidth<s.viewport.scrollWidth,x=s.viewport.offsetHeight<s.viewport.scrollHeight;d(O?p:x)}},10);return ql(s.viewport,h),ql(s.content,h),r.jsx(vn,{present:l||u,children:r.jsx(Oh,{"data-state":u?"visible":"hidden",...o,ref:a})})}),Oh=v.forwardRef((t,a)=>{const{orientation:s="vertical",...l}=t,o=on(Xn,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=dv(O.viewport,O.content),x={...l,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 qP(b,d.current,O,y)}return s==="horizontal"?r.jsx(XP,{...x,ref:a,onThumbPositionChange:()=>{if(o.viewport&&u.current){const b=o.viewport.scrollLeft,y=c1(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"?r.jsx(_P,{...x,ref:a,onThumbPositionChange:()=>{if(o.viewport&&u.current){const b=o.viewport.scrollTop,y=c1(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,a)=>{const{sizes:s,onSizesChange:l,...o}=t,u=on(Xn,t.__scopeScrollArea),[d,O]=v.useState(),h=v.useRef(null),p=it(a,h,u.onScrollbarXChange);return v.useEffect(()=>{h.current&&O(getComputedStyle(h.current))},[h]),r.jsx(ov,{"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":Bc(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),fv(b,g)&&x.preventDefault()}},onResize:()=>{h.current&&u.viewport&&d&&l({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:Qc(d.paddingLeft),paddingEnd:Qc(d.paddingRight)}})}})}),_P=v.forwardRef((t,a)=>{const{sizes:s,onSizesChange:l,...o}=t,u=on(Xn,t.__scopeScrollArea),[d,O]=v.useState(),h=v.useRef(null),p=it(a,h,u.onScrollbarYChange);return v.useEffect(()=>{h.current&&O(getComputedStyle(h.current))},[h]),r.jsx(ov,{"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":Bc(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),fv(b,g)&&x.preventDefault()}},onResize:()=>{h.current&&u.viewport&&d&&l({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:Qc(d.paddingTop),paddingEnd:Qc(d.paddingBottom)}})}})}),[AP,iv]=tv(Xn),ov=v.forwardRef((t,a)=>{const{__scopeScrollArea:s,sizes:l,hasThumb:o,onThumbChange:u,onThumbPointerUp:d,onThumbPointerDown:O,onThumbPositionChange:h,onDragScroll:p,onWheelScroll:x,onResize:g,...b}=t,y=on(Xn,s),[Q,k]=v.useState(null),$=it(a,Y=>k(Y)),j=v.useRef(null),z=v.useRef(""),N=y.viewport,_=l.content-l.viewport,G=zt(x),R=zt(h),X=Hc(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,_)};return document.addEventListener("wheel",Y,{passive:!1}),()=>document.removeEventListener("wheel",Y,{passive:!1})},[N,Q,_,G]),v.useEffect(R,[l,R]),ql(Q,X),ql(y.content,X),r.jsx(AP,{scope:s,scrollbar:Q,hasThumb:o,onThumbChange:zt(u),onThumbPointerUp:zt(d),onThumbPositionChange:R,onThumbPointerDown:zt(O),children:r.jsx(Be.div,{...b,ref:$,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",cv=v.forwardRef((t,a)=>{const{forceMount:s,...l}=t,o=iv(Sc,t.__scopeScrollArea);return r.jsx(vn,{present:s||o.hasThumb,children:r.jsx(ZP,{ref:a,...l})})}),ZP=v.forwardRef((t,a)=>{const{__scopeScrollArea:s,style:l,...o}=t,u=on(Sc,s),d=iv(Sc,s),{onThumbPositionChange:O}=d,h=it(a,g=>d.onThumbChange(g)),p=v.useRef(void 0),x=Hc(()=>{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=MP(g,O);p.current=y,O()}};return O(),g.addEventListener("scroll",b),()=>g.removeEventListener("scroll",b)}},[u.viewport,x,O]),r.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)",...l},onPointerDownCapture:qe(t.onPointerDownCapture,g=>{const y=g.target.getBoundingClientRect(),Q=g.clientX-y.left,k=g.clientY-y.top;d.onThumbPointerDown({x:Q,y:k})}),onPointerUp:qe(t.onPointerUp,d.onThumbPointerUp)})});cv.displayName=Sc;var fh="ScrollAreaCorner",uv=v.forwardRef((t,a)=>{const s=on(fh,t.__scopeScrollArea),l=!!(s.scrollbarX&&s.scrollbarY);return s.type!=="scroll"&&l?r.jsx(EP,{...t,ref:a}):null});uv.displayName=fh;var EP=v.forwardRef((t,a)=>{const{__scopeScrollArea:s,...l}=t,o=on(fh,s),[u,d]=v.useState(0),[O,h]=v.useState(0),p=!!(u&&O);return ql(o.scrollbarX,()=>{var g;const x=((g=o.scrollbarX)==null?void 0:g.offsetHeight)||0;o.onCornerHeightChange(x),h(x)}),ql(o.scrollbarY,()=>{var g;const x=((g=o.scrollbarY)==null?void 0:g.offsetWidth)||0;o.onCornerWidthChange(x),d(x)}),p?r.jsx(Be.div,{...l,ref:a,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 dv(t,a){const s=t/a;return isNaN(s)?0:s}function Bc(t){const a=dv(t.viewport,t.content),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=(t.scrollbar.size-s)*a;return Math.max(l,18)}function qP(t,a,s,l="ltr"){const o=Bc(s),u=o/2,d=a||u,O=o-d,h=s.scrollbar.paddingStart+d,p=s.scrollbar.size-s.scrollbar.paddingEnd-O,x=s.content-s.viewport,g=l==="ltr"?[0,x]:[x*-1,0];return Ov([h,p],g)(t)}function c1(t,a,s="ltr"){const l=Bc(a),o=a.scrollbar.paddingStart+a.scrollbar.paddingEnd,u=a.scrollbar.size-o,d=a.content-a.viewport,O=u-l,h=s==="ltr"?[0,d]:[d*-1,0],p=NP(t,h);return Ov([0,d],[0,O])(p)}function Ov(t,a){return s=>{if(t[0]===t[1]||a[0]===a[1])return a[0];const l=(a[1]-a[0])/(t[1]-t[0]);return a[0]+l*(s-t[0])}}function fv(t,a){return t>0&&t<a}var MP=(t,a=()=>{})=>{let s={left:t.scrollLeft,top:t.scrollTop},l=0;return(function o(){const u={left:t.scrollLeft,top:t.scrollTop},d=s.left!==u.left,O=s.top!==u.top;(d||O)&&a(),s=u,l=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(l)};function Hc(t,a){const s=zt(t),l=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(l.current),[]),v.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(s,a)},[s,a])}function ql(t,a){const s=zt(a);ia(()=>{let l=0;if(t){const o=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(s)});return o.observe(t),()=>{window.cancelAnimationFrame(l),o.unobserve(t)}}},[t,s])}var YP=nv,UP=sv,u1=lv,d1=cv,VP=uv;function fa({children:t,className:a,...s}){return r.jsxs(YP,{className:re("overflow-hidden",a),...s,children:[r.jsx(UP,{className:"h-full w-full rounded-[inherit]",children:t}),r.jsx(u1,{orientation:"vertical",className:"flex touch-none select-none p-0.5 transition-colors w-2",children:r.jsx(d1,{className:"relative flex-1 rounded-full bg-surface-5 hover:bg-surface-6"})}),r.jsx(u1,{orientation:"horizontal",className:"flex touch-none select-none flex-col p-0.5 transition-colors h-2",children:r.jsx(d1,{className:"relative flex-1 rounded-full bg-surface-5 hover:bg-surface-6"})}),r.jsx(VP,{})]})}const GP={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 LP(t){var s;const a=(s=t.split(".").pop())==null?void 0:s.toLowerCase();return GP[a]||"text-text-3"}function DP({x:t,y:a,items:s,onClose:l}){const o=v.useRef(null);return v.useEffect(()=>{function u(d){o.current&&!o.current.contains(d.target)&&l()}return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[l]),r.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:a},children:s.map((u,d)=>u.separator?r.jsx("div",{className:"h-px bg-border-subtle my-1"},d):r.jsxs("button",{onClick:()=>{u.action(),l()},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&&r.jsx(u.icon,{size:12,className:u.danger?"text-danger":"text-text-3"}),u.label]},d))})}function jc({defaultValue:t="",placeholder:a,onSubmit:s,onCancel:l,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"&&l()}return r.jsx("div",{className:"flex items-center py-0.5",style:{paddingLeft:o*16+8},children:r.jsx("input",{ref:O,value:u,onChange:p=>d(p.target.value),onKeyDown:h,onBlur:l,placeholder:a,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 hv({entry:t,depth:a=0,activePath:s,onFileClick:l,onDirToggle:o,expanded:u,onContextMenu:d}){const O=t.type==="dir",h=s===t.path,p=u.has(t.path),x=a*16+8;function g(b){b.preventDefault(),b.stopPropagation(),d(b,t)}return r.jsxs("button",{onClick:()=>O?o(t.path):l(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?r.jsxs(r.Fragment,{children:[p?r.jsx(Pn,{size:12,className:"text-text-4 flex-shrink-0"}):r.jsx(_s,{size:12,className:"text-text-4 flex-shrink-0"}),p?r.jsx(ai,{size:14,className:"text-accent flex-shrink-0"}):r.jsx(Eb,{size:14,className:"text-text-3 flex-shrink-0"})]}):r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"w-3"}),r.jsx(oT,{size:14,className:re("flex-shrink-0",LP(t.name))})]}),r.jsx("span",{className:"truncate",children:t.name})]})}function mv({dirPath:t,depth:a,activePath:s,onFileClick:l,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)?r.jsxs(r.Fragment,{children:[(p==null?void 0:p.parentPath)===t&&r.jsx(jc,{placeholder:p.type==="file"?"filename.ext":"folder-name",onSubmit:p.onSubmit,onCancel:p.onCancel,depth:a}),x.map(g=>r.jsxs("div",{children:[(p==null?void 0:p.renamePath)===g.path?r.jsx(jc,{defaultValue:g.name,onSubmit:p.onSubmit,onCancel:p.onCancel,depth:a}):r.jsx(hv,{entry:g,depth:a,activePath:s,onFileClick:l,onDirToggle:u,expanded:o,onContextMenu:h}),g.type==="dir"&&r.jsx(mv,{dirPath:g.path,depth:a+1,activePath:s,onFileClick:l,expanded:o,onDirToggle:u,treeCache:d,fetchTreeDir:O,onContextMenu:h,inlineInput:p})]},g.path))]}):null}function WP({rootDir:t}){const a=D(T=>T.editorTreeCache),s=D(T=>T.editorActiveFile),l=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 k(T,Y){g({x:T.clientX,y:T.clientY,entry:Y})}function $(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 J.post("/files/create",{path:M,content:""}),o(T),l(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 J.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 _(T){y({type:"rename",renamePath:T.path,onSubmit:async Y=>{const M=j(T.path),ae=M?`${M}/${Y}`:Y;try{await J.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 J.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:jO,label:"New File",action:()=>z(T.path)}),M.push({icon:kO,label:"New Folder",action:()=>N(T.path)})),T.name!=="root"?(M.length>0&&M.push({separator:!0}),M.push({icon:Lc,label:"Rename",action:()=>_(T)}),M.push({icon:as,label:"Delete",danger:!0,action:()=>G(T)})):(M.length=0,M.push({icon:jO,label:"New File",action:()=>z("")}),M.push({icon:kO,label:"New Folder",action:()=>N("")})),M}const X=a[""]||[];return r.jsxs("div",{className:"flex flex-col h-full bg-surface-1",onContextMenu:$,children:[r.jsxs("div",{className:"flex items-center gap-1 px-2 py-1.5 border-b border-border-subtle",children:[r.jsxs("div",{className:"flex-1 relative",children:[r.jsx(da,{size:12,className:"absolute left-2 top-1/2 -translate-y-1/2 text-text-4"}),r.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"})]}),r.jsx("button",{onClick:()=>z(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"New file",children:r.jsx(jO,{size:12})}),r.jsx("button",{onClick:()=>N(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"New folder",children:r.jsx(kO,{size:12})}),r.jsx("button",{onClick:()=>o(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"Refresh",children:r.jsx(Rn,{size:12})})]}),r.jsx(fa,{className:"flex-1",children:r.jsxs("div",{className:"py-1",children:[(b==null?void 0:b.parentPath)===""&&r.jsx(jc,{placeholder:b.type==="file"?"filename.ext":"folder-name",onSubmit:b.onSubmit,onCancel:b.onCancel,depth:0}),X.filter(T=>!h||T.name.toLowerCase().includes(h.toLowerCase())).map(T=>r.jsxs("div",{children:[(b==null?void 0:b.renamePath)===T.path?r.jsx(jc,{defaultValue:T.name,onSubmit:b.onSubmit,onCancel:b.onCancel,depth:0}):r.jsx(hv,{entry:T,depth:0,activePath:s,onFileClick:l,onDirToggle:Q,expanded:d,onContextMenu:k}),T.type==="dir"&&r.jsx(mv,{dirPath:T.path,depth:1,activePath:s,onFileClick:l,expanded:d,onDirToggle:Q,treeCache:a,fetchTreeDir:o,onContextMenu:k,inlineInput:b})]},T.path))]})}),x&&r.jsx(DP,{x:x.x,y:x.y,items:R(x.entry),onClose:()=>g(null)})]})}function BP(){const t=D(u=>u.editorOpenTabs),a=D(u=>u.editorActiveFile),s=D(u=>u.editorFiles),l=D(u=>u.setActiveFile),o=D(u=>u.closeFile);return t.length===0?null:r.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===a,O=s[u],h=O&&O.content!==O.originalContent,p=u.split("/").pop();return r.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:()=>l(u),children:[r.jsx("span",{className:"truncate max-w-[120px]",children:p}),h&&r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-warning flex-shrink-0"}),r.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:r.jsx(Qt,{size:12})})]},u)})})}var O1={};class kc{constructor(a,s,l,o,u,d,O,h,p,x=0,g){this.p=a,this.stack=s,this.state=l,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((a,s)=>s%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(a,s,l=0){let o=a.parser.context;return new kc(a,[],s,l,l,0,[],0,o?new f1(o,o.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(a,s){this.stack.push(this.state,s,this.bufferBase+this.buffer.length),this.state=a}reduce(a){var s;let l=a>>19,o=a&65535,{parser:u}=this.p,d=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),O=u.dynamicPrecedence(o);if(O&&(this.score+=O),l==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-(l-1)*3-(a&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||a&131072){let y=u.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(o,p,y,b+4,!0)}if(a&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(a,s,l,o=4,u=!1){if(a==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==l)return;if(d.buffer[O-2]>=s){d.buffer[O-2]=l;return}}}if(!u||this.pos==l)this.buffer.push(a,s,l,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]>l;h-=4)if(this.buffer[h-1]>=0){O=!0;break}if(O)for(;d>0&&this.buffer[d-2]>l;)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]=a,this.buffer[d+1]=s,this.buffer[d+2]=l,this.buffer[d+3]=o}}shift(a,s,l,o){if(a&131072)this.pushState(a&65535,this.pos);else if((a&262144)==0){let u=a,{parser:d}=this.p;this.pos=o;let O=d.stateFlag(u,1);!O&&(o>l||s<=d.maxNode)&&(this.reducePos=o),this.pushState(u,O?l:Math.min(l,this.reducePos)),this.shiftContext(s,l),s<=d.maxNode&&this.buffer.push(s,l,o,4)}else this.pos=o,this.shiftContext(s,l),s<=this.p.parser.maxNode&&this.buffer.push(s,l,o,4)}apply(a,s,l,o){a&65536?this.reduce(a):this.shift(a,s,l,o)}useNode(a,s){let l=this.p.reused.length-1;(l<0||this.p.reused[l]!=a)&&(this.p.reused.push(a),l++);let o=this.pos;this.reducePos=this.pos=o+a.length,this.pushState(s,o),this.buffer.push(l,o,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,a,this,this.p.stream.reset(this.pos-a.length)))}split(){let a=this,s=a.buffer.length;for(;s>0&&a.buffer[s-2]>a.reducePos;)s-=4;let l=a.buffer.slice(s),o=a.bufferBase+s;for(;a&&o==a.bufferBase;)a=a.parent;return new kc(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,l,o,this.curContext,this.lookAhead,a)}recoverByDelete(a,s){let l=a<=this.p.parser.maxNode;l&&this.storeNode(a,this.pos,s,4),this.storeNode(0,this.pos,s,l?8:4),this.pos=this.reducePos=s,this.score-=190}canShift(a){for(let s=new HP(this);;){let l=this.p.parser.stateSlot(s.state,4)||this.p.parser.hasAction(s.state,a);if(l==0)return!1;if((l&65536)==0)return!0;s.reduce(l)}}recoverByInsert(a){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,a)&&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 l=[];for(let o=0;o<s.length&&l.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,l.push(d)}return l}forceReduce(){let{parser:a}=this.p,s=a.stateSlot(this.state,5);if((s&65536)==0)return!1;if(!a.validAction(this.state,s)){let l=s>>19,o=s&65535,u=this.stack.length-l*3;if(u<0||a.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:a}=this.p,s=[],l=(o,u)=>{if(!s.includes(o))return s.push(o),a.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&&a.getGoto(this.stack[p],h,!1)>=0)return O<<19|65536|h}}else{let O=l(d,u+1);if(O!=null)return O}})};return l(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:a}=this.p;return a.data[a.stateSlot(this.state,1)]==65535&&!a.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(a){if(this.state!=a.state||this.stack.length!=a.stack.length)return!1;for(let s=0;s<this.stack.length;s+=3)if(this.stack[s]!=a.stack[s])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(a){return this.p.parser.dialect.flags[a]}shiftContext(a,s){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,a,this,this.p.stream.reset(s)))}reduceContext(a,s){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,a,this,this.p.stream.reset(s)))}emitContext(){let a=this.buffer.length-1;(a<0||this.buffer[a]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let a=this.buffer.length-1;(a<0||this.buffer[a]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(a){if(a!=this.curContext.context){let s=new f1(this.curContext.tracker,a);s.hash!=this.curContext.hash&&this.emitContext(),this.curContext=s}}setLookAhead(a){return a<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=a,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class f1{constructor(a,s){this.tracker=a,this.context=s,this.hash=a.strict?a.hash(s):0}}class HP{constructor(a){this.start=a,this.state=a.state,this.stack=a.stack,this.base=this.stack.length}reduce(a){let s=a&65535,l=a>>19;l==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(l-1)*3;let o=this.start.p.parser.getGoto(this.stack[this.base-3],s,!0);this.state=o}}class wc{constructor(a,s,l){this.stack=a,this.pos=s,this.index=l,this.buffer=a.buffer,this.index==0&&this.maybeNext()}static create(a,s=a.bufferBase+a.buffer.length){return new wc(a,s,s-a.bufferBase)}maybeNext(){let a=this.stack.parent;a!=null&&(this.index=this.stack.bufferBase-a.bufferBase,this.stack=a,this.buffer=a.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 wc(this.stack,this.pos,this.index)}}function Hr(t,a=Uint16Array){if(typeof t!="string")return t;let s=null;for(let l=0,o=0;l<t.length;){let u=0;for(;;){let d=t.charCodeAt(l++),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 a(u)}return s}class sc{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const h1=new sc;class IP{constructor(a,s){this.input=a,this.ranges=s,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=h1,this.rangeIndex=0,this.pos=this.chunkPos=s[0].from,this.range=s[0],this.end=s[s.length-1].to,this.readNext()}resolveOffset(a,s){let l=this.range,o=this.rangeIndex,u=this.pos+a;for(;u<l.from;){if(!o)return null;let d=this.ranges[--o];u-=l.from-d.to,l=d}for(;s<0?u>l.to:u>=l.to;){if(o==this.ranges.length-1)return null;let d=this.ranges[++o];u+=d.from-l.to,l=d}return u}clipPos(a){if(a>=this.range.from&&a<this.range.to)return a;for(let s of this.ranges)if(s.to>a)return Math.max(a,s.from);return this.end}peek(a){let s=this.chunkOff+a,l,o;if(s>=0&&s<this.chunk.length)l=this.pos+a,o=this.chunk.charCodeAt(s);else{let u=this.resolveOffset(a,1);if(u==null)return-1;if(l=u,l>=this.chunk2Pos&&l<this.chunk2Pos+this.chunk2.length)o=this.chunk2.charCodeAt(l-this.chunk2Pos);else{let d=this.rangeIndex,O=this.range;for(;O.to<=l;)O=this.ranges[++d];this.chunk2=this.input.chunk(this.chunk2Pos=l),l+this.chunk2.length>O.to&&(this.chunk2=this.chunk2.slice(0,O.to-l)),o=this.chunk2.charCodeAt(0)}}return l>=this.token.lookAhead&&(this.token.lookAhead=l+1),o}acceptToken(a,s=0){let l=s?this.resolveOffset(s,-1):this.pos;if(l==null||l<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=a,this.token.end=l}acceptTokenTo(a,s){this.token.value=a,this.token.end=s}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:a,chunkPos:s}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=a,this.chunk2Pos=s,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let a=this.input.chunk(this.pos),s=this.pos+a.length;this.chunk=s>this.range.to?a.slice(0,this.range.to-this.pos):a,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(a=1){for(this.chunkOff+=a;this.pos+a>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();a-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=a,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(a,s){if(s?(this.token=s,s.start=a,s.lookAhead=a+1,s.value=s.extended=-1):this.token=h1,this.pos!=a){if(this.pos=a,a==this.end)return this.setDone(),this;for(;a<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;a>=this.range.to;)this.range=this.ranges[++this.rangeIndex];a>=this.chunkPos&&a<this.chunkPos+this.chunk.length?this.chunkOff=a-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(a,s){if(a>=this.chunkPos&&s<=this.chunkPos+this.chunk.length)return this.chunk.slice(a-this.chunkPos,s-this.chunkPos);if(a>=this.chunk2Pos&&s<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(a-this.chunk2Pos,s-this.chunk2Pos);if(a>=this.range.from&&s<=this.range.to)return this.input.read(a,s);let l="";for(let o of this.ranges){if(o.from>=s)break;o.to>a&&(l+=this.input.read(Math.max(o.from,a),Math.min(o.to,s)))}return l}}class Pl{constructor(a,s){this.data=a,this.id=s}token(a,s){let{parser:l}=s.p;pv(this.data,a,s,this.id,l.data,l.tokenPrecTable)}}Pl.prototype.contextual=Pl.prototype.fallback=Pl.prototype.extend=!1;class $c{constructor(a,s,l){this.precTable=s,this.elseToken=l,this.data=typeof a=="string"?Hr(a):a}token(a,s){let l=a.pos,o=0;for(;;){let u=a.next<0,d=a.resolveOffset(1,1);if(pv(this.data,a,s,0,this.data,this.precTable),a.token.value>-1)break;if(this.elseToken==null)return;if(u||o++,d==null)break;a.reset(d,a.token)}o&&(a.reset(l,a.token),a.acceptToken(this.elseToken,o))}}$c.prototype.contextual=Pl.prototype.fallback=Pl.prototype.extend=!1;class gt{constructor(a,s={}){this.token=a,this.contextual=!!s.contextual,this.fallback=!!s.fallback,this.extend=!!s.extend}}function pv(t,a,s,l,o,u){let d=0,O=1<<l,{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)&&(a.token.value==-1||a.token.value==Q||FP(Q,a.token.value,o,u))){a.acceptToken(Q);break}}let x=a.next,g=0,b=t[d+2];if(a.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),k=t[Q],$=t[Q+1]||65536;if(x<k)b=y;else if(x>=$)g=y+1;else{d=t[Q+2],a.advance();continue e}}break}}function m1(t,a,s){for(let l=a,o;(o=t[l])!=65535;l++)if(o==s)return l-a;return-1}function FP(t,a,s,l){let o=m1(s,l,a);return o<0||m1(s,l,t)<o}const Ut=typeof process<"u"&&O1&&/\bparse\b/.test(O1.LOG);let PO=null;function p1(t,a,s){let l=t.cursor(_c.IncludeAnonymous);for(l.moveTo(a);;)if(!(s<0?l.childBefore(a):l.childAfter(a)))for(;;){if((s<0?l.to<a:l.from>a)&&!l.type.isError)return s<0?Math.max(0,Math.min(l.to-1,a-25)):Math.min(t.length,Math.max(l.from+1,a+25));if(s<0?l.prevSibling():l.nextSibling())break;if(!l.parent())return s<0?0:t.length}}let KP=class{constructor(a,s){this.fragments=a,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 a=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(a){for(this.safeFrom=a.openStart?p1(a.tree,a.from+a.offset,1)-a.offset:a.from,this.safeTo=a.openEnd?p1(a.tree,a.to+a.offset,-1)-a.offset:a.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(a.tree),this.start.push(-a.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(a){if(a<this.nextStart)return null;for(;this.fragment&&this.safeTo<=a;)this.nextFragment();if(!this.fragment)return null;for(;;){let s=this.trees.length-1;if(s<0)return this.nextFragment(),null;let l=this.trees[s],o=this.index[s];if(o==l.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let u=l.children[o],d=this.start[s]+l.positions[o];if(d>a)return this.nextStart=d,null;if(u instanceof pn){if(d==a){if(d<this.safeFrom)return null;let O=d+u.length;if(O<=this.safeTo){let h=u.prop(ra.lookAhead);if(!h||O+h<this.fragment.to)return u}}this.index[s]++,d+u.length>=Math.max(this.safeFrom,a)&&(this.trees.push(u),this.start.push(d),this.index.push(0))}else this.index[s]++,this.nextStart=d+u.length}}};class JP{constructor(a,s){this.stream=s,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=a.tokenizers.map(l=>new sc)}getActions(a){let s=0,l=null,{parser:o}=a.p,{tokenizers:u}=o,d=o.stateSlot(a.state,3),O=a.curContext?a.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(!(l&&!x.fallback)&&((x.contextual||g.start!=a.pos||g.mask!=d||g.context!=O)&&(this.updateCachedToken(g,x,a),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(a,g.extended,g.end,s)),s=this.addActions(a,g.value,g.end,s),!x.extend&&(l=g,s>b))break}}for(;this.actions.length>s;)this.actions.pop();return h&&a.setLookAhead(h),!l&&a.pos==this.stream.end&&(l=new sc,l.value=a.p.parser.eofTerm,l.start=l.end=a.pos,s=this.addActions(a,l.value,l.end,s)),this.mainToken=l,this.actions}getMainToken(a){if(this.mainToken)return this.mainToken;let s=new sc,{pos:l,p:o}=a;return s.start=l,s.end=Math.min(l+1,o.stream.end),s.value=l==o.stream.end?o.parser.eofTerm:0,s}updateCachedToken(a,s,l){let o=this.stream.clipPos(l.pos);if(s.token(this.stream.reset(o,a),l),a.value>-1){let{parser:u}=l.p;for(let d=0;d<u.specialized.length;d++)if(u.specialized[d]==a.value){let O=u.specializers[d](this.stream.read(a.start,a.end),l);if(O>=0&&l.p.parser.dialect.allows(O>>1)){(O&1)==0?a.value=O>>1:a.extended=O>>1;break}}}else a.value=0,a.end=this.stream.clipPos(o+1)}putAction(a,s,l,o){for(let u=0;u<o;u+=3)if(this.actions[u]==a)return o;return this.actions[o++]=a,this.actions[o++]=s,this.actions[o++]=l,o}addActions(a,s,l,o){let{state:u}=a,{parser:d}=a.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=la(O,p+2);else{o==0&&O[p+1]==2&&(o=this.putAction(la(O,p+2),s,l,o));break}O[p]==s&&(o=this.putAction(la(O,p+1),s,l,o))}return o}}class e3{constructor(a,s,l,o){this.parser=a,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 IP(s,o),this.tokens=new JP(a,this.stream),this.topTerm=a.top[1];let{from:u}=o[0];this.stacks=[kc.start(this,a.top[0],u)],this.fragments=l.length&&this.stream.end-u>a.bufferLength*4?new KP(l,a.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let a=this.stacks,s=this.minStackPos,l=this.stacks=[],o,u;if(this.bigReductionCount>300&&a.length==1){let[d]=a;for(;d.forceReduce()&&d.stack.length&&d.stack[d.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let d=0;d<a.length;d++){let O=a[d];for(;;){if(this.tokens.mainToken=null,O.pos>s)l.push(O);else{if(this.advanceStack(O,l,a))continue;{o||(o=[],u=[]),o.push(O);let h=this.tokens.getMainToken(O);u.push(h.value,h.end)}}break}}if(!l.length){let d=o&&n3(o);if(d)return Ut&&console.log("Finish with "+this.stackID(d)),this.stackToTree(d);if(this.parser.strict)throw Ut&&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,l);if(d)return Ut&&console.log("Force-finish "+this.stackID(d)),this.stackToTree(d.forceAll())}if(this.recovering){let d=this.recovering==1?1:this.recovering*3;if(l.length>d)for(l.sort((O,h)=>h.score-O.score);l.length>d;)l.pop();l.some(O=>O.reducePos>s)&&this.recovering--}else if(l.length>1){e:for(let d=0;d<l.length-1;d++){let O=l[d];for(let h=d+1;h<l.length;h++){let p=l[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)l.splice(h--,1);else{l.splice(d--,1);continue e}}}l.length>12&&(l.sort((d,O)=>O.score-d.score),l.splice(12,l.length-12))}this.minStackPos=l[0].pos;for(let d=1;d<l.length;d++)l[d].pos<this.minStackPos&&(this.minStackPos=l[d].pos);return null}stopAt(a){if(this.stoppedAt!=null&&this.stoppedAt<a)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=a}advanceStack(a,s,l){let o=a.pos,{parser:u}=this,d=Ut?this.stackID(a)+" -> ":"";if(this.stoppedAt!=null&&o>this.stoppedAt)return a.forceReduce()?a:null;if(this.fragments){let p=a.curContext&&a.curContext.tracker.strict,x=p?a.curContext.hash:0;for(let g=this.fragments.nodeAt(o);g;){let b=this.parser.nodeSet.types[g.type.id]==g.type?u.getGoto(a.state,g.type.id):-1;if(b>-1&&g.length&&(!p||(g.prop(ra.contextHash)||0)==x))return a.useNode(g,b),Ut&&console.log(d+this.stackID(a)+` (via reuse of ${u.getName(g.type.id)})`),!0;if(!(g instanceof pn)||g.children.length==0||g.positions[0]>0)break;let y=g.children[0];if(y instanceof pn&&g.positions[0]==0)g=y;else break}}let O=u.stateSlot(a.state,4);if(O>0)return a.reduce(O),Ut&&console.log(d+this.stackID(a)+` (via always-reduce ${u.getName(O&65535)})`),!0;if(a.stack.length>=8400)for(;a.stack.length>6e3&&a.forceReduce(););let h=this.tokens.getActions(a);for(let p=0;p<h.length;){let x=h[p++],g=h[p++],b=h[p++],y=p==h.length||!l,Q=y?a:a.split(),k=this.tokens.mainToken;if(Q.apply(x,g,k?k.start:Q.pos,b),Ut&&console.log(d+this.stackID(Q)+` (via ${(x&65536)==0?"shift":`reduce of ${u.getName(x&65535)}`} for ${u.getName(g)} @ ${o}${Q==a?"":", split"})`),y)return!0;Q.pos>o?s.push(Q):l.push(Q)}return!1}advanceFully(a,s){let l=a.pos;for(;;){if(!this.advanceStack(a,null,null))return!1;if(a.pos>l)return x1(a,s),!0}}runRecovery(a,s,l){let o=null,u=!1;for(let d=0;d<a.length;d++){let O=a[d],h=s[d<<1],p=s[(d<<1)+1],x=Ut?this.stackID(O)+" -> ":"";if(O.deadEnd&&(u||(u=!0,O.restart(),Ut&&console.log(x+this.stackID(O)+" (restarted)"),this.advanceFully(O,l))))continue;let g=O.split(),b=x;for(let y=0;y<10&&g.forceReduce()&&(Ut&&console.log(b+this.stackID(g)+" (via force-reduce)"),!this.advanceFully(g,l));y++)Ut&&(b=this.stackID(g)+" -> ");for(let y of O.recoverByInsert(h))Ut&&console.log(x+this.stackID(y)+" (via recover-insert)"),this.advanceFully(y,l);this.stream.end>O.pos?(p==O.pos&&(p++,h=0),O.recoverByDelete(h,p),Ut&&console.log(x+this.stackID(O)+` (via recover-delete ${this.parser.getName(h)})`),x1(O,l)):(!o||o.score<g.score)&&(o=g)}return o}stackToTree(a){return a.close(),pn.build({buffer:wc.create(a),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:a.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(a){let s=(PO||(PO=new WeakMap)).get(a);return s||PO.set(a,s=String.fromCodePoint(this.nextStackID++)),s+a}}function x1(t,a){for(let s=0;s<a.length;s++){let l=a[s];if(l.pos==t.pos&&l.sameState(t)){a[s].score<t.score&&(a[s]=t);return}}a.push(t)}class t3{constructor(a,s,l){this.source=a,this.flags=s,this.disabled=l}allows(a){return!this.disabled||this.disabled[a]==0}}const zO=t=>t;class hh{constructor(a){this.start=a.start,this.shift=a.shift||zO,this.reduce=a.reduce||zO,this.reuse=a.reuse||zO,this.hash=a.hash||(()=>0),this.strict=a.strict!==!1}}class es extends N0{constructor(a){if(super(),this.wrappers=[],a.version!=14)throw new RangeError(`Parser version (${a.version}) doesn't match runtime version (14)`);let s=a.nodeNames.split(" ");this.minRepeatTerm=s.length;for(let O=0;O<a.repeatNodeCount;O++)s.push("");let l=Object.keys(a.topRules).map(O=>a.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(a.nodeProps)for(let O of a.nodeProps){let h=O[0];typeof h=="string"&&(h=ra[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 Ef(s.map((O,h)=>di.define({name:h>=this.minRepeatTerm?void 0:O,id:h,props:o[h],top:l.indexOf(h)>-1,error:h==0,skipped:a.skippedNodes&&a.skippedNodes.indexOf(h)>-1}))),a.propSources&&(this.nodeSet=this.nodeSet.extend(...a.propSources)),this.strict=!1,this.bufferLength=Nj;let d=Hr(a.tokenData);this.context=a.context,this.specializerSpecs=a.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(g1),this.states=Hr(a.states,Uint32Array),this.data=Hr(a.stateData),this.goto=Hr(a.goto),this.maxTerm=a.maxTerm,this.tokenizers=a.tokenizers.map(O=>typeof O=="number"?new Pl(d,O):O),this.topRules=a.topRules,this.dialects=a.dialects||{},this.dynamicPrecedences=a.dynamicPrecedences||null,this.tokenPrecTable=a.tokenPrec,this.termNames=a.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(a,s,l){let o=new e3(this,a,s,l);for(let u of this.wrappers)o=u(o,a,s,l);return o}getGoto(a,s,l=!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&&l)return h;for(let p=u+(d>>1);u<p;u++)if(o[u]==a)return h;if(O)return-1}}hasAction(a,s){let l=this.data;for(let o=0;o<2;o++)for(let u=this.stateSlot(a,o?2:1),d;;u+=3){if((d=l[u])==65535)if(l[u+1]==1)d=l[u=la(l,u+2)];else{if(l[u+1]==2)return la(l,u+2);break}if(d==s||d==0)return la(l,u+1)}return 0}stateSlot(a,s){return this.states[a*6+s]}stateFlag(a,s){return(this.stateSlot(a,0)&s)>0}validAction(a,s){return!!this.allActions(a,l=>l==s?!0:null)}allActions(a,s){let l=this.stateSlot(a,4),o=l?s(l):void 0;for(let u=this.stateSlot(a,1);o==null;u+=3){if(this.data[u]==65535)if(this.data[u+1]==1)u=la(this.data,u+2);else break;o=s(la(this.data,u+1))}return o}nextStates(a){let s=[];for(let l=this.stateSlot(a,1);;l+=3){if(this.data[l]==65535)if(this.data[l+1]==1)l=la(this.data,l+2);else break;if((this.data[l+2]&1)==0){let o=this.data[l+1];s.some((u,d)=>d&1&&u==o)||s.push(this.data[l],o)}}return s}configure(a){let s=Object.assign(Object.create(es.prototype),this);if(a.props&&(s.nodeSet=this.nodeSet.extend(...a.props)),a.top){let l=this.topRules[a.top];if(!l)throw new RangeError(`Invalid top rule name ${a.top}`);s.top=l}return a.tokenizers&&(s.tokenizers=this.tokenizers.map(l=>{let o=a.tokenizers.find(u=>u.from==l);return o?o.to:l})),a.specializers&&(s.specializers=this.specializers.slice(),s.specializerSpecs=this.specializerSpecs.map((l,o)=>{let u=a.specializers.find(O=>O.from==l.external);if(!u)return l;let d=Object.assign(Object.assign({},l),{external:u.to});return s.specializers[o]=g1(d),d})),a.contextTracker&&(s.context=a.contextTracker),a.dialect&&(s.dialect=this.parseDialect(a.dialect)),a.strict!=null&&(s.strict=a.strict),a.wrap&&(s.wrappers=s.wrappers.concat(a.wrap)),a.bufferLength!=null&&(s.bufferLength=a.bufferLength),s}hasWrappers(){return this.wrappers.length>0}getName(a){return this.termNames?this.termNames[a]:String(a<=this.maxNode&&this.nodeSet.types[a].name||a)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(a){let s=this.dynamicPrecedences;return s==null?0:s[a]||0}parseDialect(a){let s=Object.keys(this.dialects),l=s.map(()=>!1);if(a)for(let u of a.split(" ")){let d=s.indexOf(u);d>=0&&(l[d]=!0)}let o=null;for(let u=0;u<s.length;u++)if(!l[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 t3(a,l,o)}static deserialize(a){return new es(a)}}function la(t,a){return t[a]|t[a+1]<<16}function n3(t){let a=null;for(let s of t){let l=s.p.stoppedAt;(s.pos==s.p.stream.end||l!=null&&s.pos>l)&&s.p.parser.stateFlag(s.state,2)&&(!a||a.score<s.score)&&(a=s)}return a}function g1(t){if(t.external){let a=t.extend?1:0;return(s,l)=>t.external(s,l)<<1|a}return t.get}const a3=316,s3=317,b1=1,l3=2,r3=3,i3=4,o3=318,c3=320,u3=321,d3=5,O3=6,f3=0,yf=[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],xv=125,h3=59,Sf=47,m3=42,p3=43,x3=45,g3=60,b3=44,v3=63,y3=46,S3=91,Q3=new hh({start:!1,shift(t,a){return a==d3||a==O3||a==c3?t:a==u3},strict:!1}),j3=new gt((t,a)=>{let{next:s}=t;(s==xv||s==-1||a.context)&&t.acceptToken(o3)},{contextual:!0,fallback:!0}),k3=new gt((t,a)=>{let{next:s}=t,l;yf.indexOf(s)>-1||s==Sf&&((l=t.peek(1))==Sf||l==m3)||s!=xv&&s!=h3&&s!=-1&&!a.context&&t.acceptToken(a3)},{contextual:!0}),w3=new gt((t,a)=>{t.next==S3&&!a.context&&t.acceptToken(s3)},{contextual:!0}),$3=new gt((t,a)=>{let{next:s}=t;if(s==p3||s==x3){if(t.advance(),s==t.next){t.advance();let l=!a.context&&a.canShift(b1);t.acceptToken(l?b1:l3)}}else s==v3&&t.peek(1)==y3&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(r3))},{contextual:!0});function RO(t,a){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!a&&t>=48&&t<=57}const T3=new gt((t,a)=>{if(t.next!=g3||!a.dialectEnabled(f3)||(t.advance(),t.next==Sf))return;let s=0;for(;yf.indexOf(t.next)>-1;)t.advance(),s++;if(RO(t.next,!0)){for(t.advance(),s++;RO(t.next,!1);)t.advance(),s++;for(;yf.indexOf(t.next)>-1;)t.advance(),s++;if(t.next==b3)return;for(let l=0;;l++){if(l==7){if(!RO(t.next,!0))return;break}if(t.next!="extends".charCodeAt(l))break;t.advance(),s++}}t.acceptToken(i3,-s)}),N3=zs({"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)}),P3={__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},z3={__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},R3={__proto__:null,"<":193},C3=es.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.bQl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3z<hQ3{.{Q3|<kQ4P<nQ4Q<{Q4X<iQ5X0rQ5c1SQ6u=OQ6{3QQ7Q3WQ7a3lQ7b=PQ7k=RQ7l=ZQ8k5wQ9X6sQ9]6|Q9g=[Q9m=eQ9n=fQ:o9_Q;W:ZQ;`:mQ<W#SR=v>SR#[WR'Z!el!tQ!r!v!y!z'`'l'm'n-e-u1o5{5}S'V!e-]U*j$|*Z*oS-Y'W'_S0U*k*qQ0^*rQ2u-cQ4v0[R4{0_R({#xQ!fQT-d'`-e]!qQ!r'`-e1o5{Q#p]R'i<VR)f$dY!uQ'`-e1o5{Q'k!rS'u!v!yS'w!z5}S-t'l'mQ-v'nR3T-uT#kZ%eS#jZ%eS%km,oU(g#h#i#lS.Y(h(iQ.^(jQ0t+^Q3Y.ZU3Z.[.]._S7S3[3]R9`7Td#^W#W#Z%h(T(^*Y+Z.T/mr#gZm#h#i#l%e(h(i(j+^.Z.[.]._3[3]7TS*]$x*bQ/t*^Q2U,oQ2l-VQ4`/pQ6q2dQ7s4aQ9W6rT=m'X+[V#aW%h*YU#`W%h*YS(U#W(^U(Z#Z+Z/mS-['X+[T.O(T.TV'^!e%i*ZQ$lfR)x$qT)m$l)nR4V/UT*_$x*bT*h${*YQ0w+fQ1g,VQ3_.fQ5t1iQ6P1qQ7X3cQ8r6SQ9c7WQ:^8qQ:p9bQ;Z:`Q;c:rQ;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:Q3,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:[N3],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$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c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Y%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,w3,$3,T3,2,3,4,5,6,7,8,9,10,11,12,13,14,j3,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=>P3[t]||-1},{term:343,get:t=>z3[t]||-1},{term:95,get:t=>R3[t]||-1}],tokenPrec:15201}),gv=[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=gv.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"})]),v1=new qf,bv=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Dr(t){return(a,s)=>{let l=a.node.getChild("VariableDefinition");return l&&s(l,t),!0}}const _3=["FunctionDeclaration"],A3={FunctionDeclaration:Dr("function"),ClassDeclaration:Dr("class"),ClassExpression:()=>!0,EnumDeclaration:Dr("constant"),TypeAliasDeclaration:Dr("type"),NamespaceDeclaration:Dr("namespace"),VariableDefinition(t,a){t.matchContext(_3)||a(t,"variable")},TypeDefinition(t,a){a(t,"type")},__proto__:null};function vv(t,a){let s=v1.get(a);if(s)return s;let l=[],o=!0;function u(d,O){let h=t.sliceString(d.from,d.to);l.push({label:h,type:O})}return a.cursor(_c.IncludeAnonymous).iterate(d=>{if(o)o=!1;else if(d.name){let O=A3[d.name];if(O&&O(d,u)||bv.has(d.name))return!1}else if(d.to-d.from>8192){for(let O of vv(t,d.node))l.push(O);return!1}}),v1.set(a,l),l}const y1=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,yv=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function Z3(t){let a=bn(t.state).resolveInner(t.pos,-1);if(yv.indexOf(a.name)>-1)return null;let s=a.name=="VariableName"||a.to-a.from<20&&y1.test(t.state.sliceDoc(a.from,a.to));if(!s&&!t.explicit)return null;let l=[];for(let o=a;o;o=o.parent)bv.has(o.name)&&(l=l.concat(vv(t.state.doc,o)));return{options:l,from:s?a.from:t.pos,validFor:y1}}const Nn=Oi.define({name:"javascript",parser:C3.configure({props:[Vl.add({IfStatement:$l({except:/^\s*({|else\b)/}),TryStatement:$l({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Pj,SwitchBody:t=>{let a=t.textAfter,s=/^\s*\}/.test(a),l=/^\s*(case|default)\b/.test(a);return t.baseIndent+(s?0:l?1:2)*t.unit},Block:nc({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":$l({except:/^\s*{/}),JSXElement(t){let a=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(a?0:t.unit)},JSXEscape(t){let a=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(a?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),Rs.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Ac,BlockComment(t){return{from:t.from+2,to:t.to-2}},JSXElement(t){let a=t.firstChild;if(!a||a.name=="JSXSelfClosingTag")return null;let s=t.lastChild;return{from:a.to,to:s.type.isError?t.to:s.from}},"JSXSelfClosingTag JSXOpenTag"(t){var a;let s=(a=t.firstChild)===null||a===void 0?void 0:a.nextSibling,l=t.lastChild;return!s||s.type.isError?null:{from:s.to,to:l.type.isError?t.to:l.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Sv={test:t=>/^JSX/.test(t.name),facet:C0({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Qv=Nn.configure({dialect:"ts"},"typescript"),jv=Nn.configure({dialect:"jsx",props:[R0.add(t=>t.isTop?[Sv]:void 0)]}),kv=Nn.configure({dialect:"jsx ts",props:[R0.add(t=>t.isTop?[Sv]:void 0)]},"typescript");let wv=t=>({label:t,type:"keyword"});const $v="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(wv),E3=$v.concat(["declare","implements","private","protected","public"].map(wv));function Qf(t={}){let a=t.jsx?t.typescript?kv:jv:t.typescript?Qv:Nn,s=t.typescript?X3.concat(E3):gv.concat($v);return new ws(a,[Nn.data.of({autocomplete:P0(yv,z0(s))}),Nn.data.of({autocomplete:Z3}),t.jsx?Y3:[]])}function q3(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 S1(t,a,s=t.length){for(let l=a==null?void 0:a.firstChild;l;l=l.nextSibling)if(l.name=="JSXIdentifier"||l.name=="JSXBuiltin"||l.name=="JSXNamespacedName"||l.name=="JSXMemberExpression")return t.sliceString(l.from,Math.min(l.to,s));return""}const M3=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Y3=Xl.inputHandler.of((t,a,s,l,o)=>{if((M3?t.composing:t.compositionStarted)||t.state.readOnly||a!=s||l!=">"&&l!="/"||!Nn.isActiveAt(t.state,a,-1))return!1;let u=o(),{state:d}=u,O=d.changeByRange(h=>{var p;let{head:x}=h,g=bn(d).resolveInner(x-1,-1),b;if(g.name=="JSXStartTag"&&(g=g.parent),!(d.doc.sliceString(x-1,x)!=l||g.name=="JSXAttributeValue"&&g.to>x)){if(l==">"&&g.name=="JSXFragmentTag")return{range:h,changes:{from:x,insert:"</>"}};if(l=="/"&&g.name=="JSXStartCloseTag"){let y=g.parent,Q=y.parent;if(Q&&y.from==x-2&&((b=S1(d.doc,Q.firstChild,x))||((p=Q.firstChild)===null||p===void 0?void 0:p.name)=="JSXFragmentTag")){let k=`${b}>`;return{range:Ha.cursor(x+k.length,-1),changes:{from:x,insert:k}}}}else if(l==">"){let y=q3(g);if(y&&y.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(d.doc.sliceString(x,x+2))&&(b=S1(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)}),U3=135,Q1=1,V3=136,G3=137,Tv=2,L3=138,D3=3,W3=4,Nv=[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],B3=58,H3=40,Pv=95,I3=91,lc=45,F3=46,K3=35,J3=37,e4=38,t4=92,n4=10,a4=42;function ri(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function mh(t){return t>=48&&t<=57}function j1(t){return mh(t)||t>=97&&t<=102||t>=65&&t<=70}const zv=(t,a,s)=>(l,o)=>{for(let u=!1,d=0,O=0;;O++){let{next:h}=l;if(ri(h)||h==lc||h==Pv||u&&mh(h))!u&&(h!=lc||O>0)&&(u=!0),d===O&&h==lc&&d++,l.advance();else if(h==t4&&l.peek(1)!=n4){if(l.advance(),j1(l.next)){do l.advance();while(j1(l.next));l.next==32&&l.advance()}else l.next>-1&&l.advance();u=!0}else{u&&l.acceptToken(d==2&&o.canShift(Tv)?a:h==H3?s:t);break}}},s4=new gt(zv(V3,Tv,G3),{contextual:!0}),l4=new gt(zv(L3,D3,W3),{contextual:!0}),r4=new gt(t=>{if(Nv.includes(t.peek(-1))){let{next:a}=t;(ri(a)||a==Pv||a==K3||a==F3||a==a4||a==I3||a==B3&&ri(t.peek(1))||a==lc||a==e4)&&t.acceptToken(U3)}}),i4=new gt(t=>{if(!Nv.includes(t.peek(-1))){let{next:a}=t;if(a==J3&&(t.advance(),t.acceptToken(Q1)),ri(a)){do t.advance();while(ri(t.next)||mh(t.next));t.acceptToken(Q1)}}}),o4=zs({"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}),c4={__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},u4={__proto__:null,or:104,and:104,not:112,only:112,layer:186},d4={__proto__:null,selector:118,layer:182},O4={__proto__:null,"@import":178,"@media":190,"@charset":194,"@namespace":198,"@keyframes":204,"@supports":216,"@scope":220,"@font-feature-values":226},f4={__proto__:null,to:223},h4=es.deserialize({version:14,states:"IpQYQdOOO#}QdOOP$UO`OOO%OQaO'#CfOOQP'#Ce'#CeO%VQdO'#CgO%[Q`O'#CgO%aQaO'#FdO&XQdO'#CkO&xQaO'#CcO'SQdO'#CnO'_QdO'#DtO'dQdO'#DvO'oQdO'#D}O'oQdO'#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$y%U%Z%_&V&W&a&f&k&p'U'^'k'sQ!|gR$o!}Q!WYR#dyQ#c!WR%S#dQ!ZZR#fzQ!_[R#g{T!^[{Q#r!]R%]#sQ!SXQ!i`Q#SjQ#m!QQ$P!dQ$l!yQ$r#QQ$u#UQ$x#XQ%e$OQ&S$tQ&y&OQ&|&TR'h&xSnP!RQ#]oQ$|#ZR&Z$}ZmPo!R#Z$}Q${#YQ&X$yR'P&WR$e!qQ&n%oR'm'_R!}gR#PhR$q#PS&O$p&PR'f&wV%|$p&P&wR#XkQ#_qR%Q#_QcOSoP!RU!kco$}R$}#ZQ%Z#pY&`%Z&f'U'^'sQ&f%_Q'U&aQ'^&kR's'kQ$Y!mQ$[!nQ$^!oV%j$Y$[$^Q%t$gR&t%tQ&j%gS']&j'lR'l'^Q&b%ZR'V&bQ&^%WR'T&^Q!QXR#l!QQ&W$yR'O&WQ#[nS%O#[%PR%P#]Q'`&nR'n'`Q$k!xR%x$kQ&P$pR&z&PQ&x&OR'g&xQ#WkR$w#WQ$O!dR%d$O_bOPco!R#Z$}^XOPco!R#Z$}Q!`]Q!a^Q#h|Q#i}Q#j!OQ#k!PQ$s#RQ%W#oR'S&]R%[#pQ!qdQ!zf[$V!m!n!o$Y$[$^Q$y#Yd%Y#p%Z%_&a&f&k'U'^'k'sQ%^#uQ%n$aS&U$y&WQ&[%UQ&}&VR'b&p]$X!m!n!o$Y$[$^Q!d`U!xe!q$eQ#QiQ#x!cS#{!d$OQ$Q!eQ%b#|Q%c#}Q%g$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:[o4],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`#r#sJq#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$KV%Z$KV$KW&R$KW&FU%Z&FU&FV&R&FV;'S%Z;'S;=`KY<%lO%Z`%^SOy%jz;'S%j;'S;=`%{<%lO%j`%oS!e`Oy%jz;'S%j;'S;=`%{<%lO%j`&OP;=`<%l%j~&Wh$Q~OX%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!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:[r4,i4,s4,l4,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=>c4[t]||-1},{term:138,get:t=>u4[t]||-1},{term:4,get:t=>d4[t]||-1},{term:28,get:t=>O4[t]||-1},{term:136,get:t=>f4[t]||-1}],tokenPrec:2256});let CO=null;function XO(){if(!CO&&typeof document=="object"&&document.body){let{style:t}=document.body,a=[],s=new Set;for(let l in t)l!="cssText"&&l!="cssFloat"&&typeof t[l]=="string"&&(/[A-Z]/.test(l)&&(l=l.replace(/[A-Z]/g,o=>"-"+o.toLowerCase())),s.has(l)||(a.push(l),s.add(l)));CO=a.sort().map(l=>({type:"property",label:l,apply:l+": "}))}return CO||[]}const k1=["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})),w1=["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}))),m4=["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})),p4=["@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})),ea=/^(\w[\w-]*|-\w[\w-]*|)$/,x4=/^-(-[\w-]*)?$/;function g4(t,a){var s;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let l=(s=t.parent)===null||s===void 0?void 0:s.firstChild;return(l==null?void 0:l.name)!="Callee"?!1:a.sliceString(l.from,l.to)=="var"}const $1=new qf,b4=["Declaration"];function v4(t){for(let a=t;;){if(a.type.isTop)return a;if(!(a=a.parent))return t}}function Rv(t,a,s){if(a.to-a.from>4096){let l=$1.get(a);if(l)return l;let o=[],u=new Set,d=a.cursor(_c.IncludeAnonymous);if(d.firstChild())do for(let O of Rv(t,d.node,s))u.has(O.label)||(u.add(O.label),o.push(O));while(d.nextSibling());return $1.set(a,o),o}else{let l=[],o=new Set;return a.cursor().iterate(u=>{var d;if(s(u)&&u.matchContext(b4)&&((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),l.push({label:O,type:"variable"}))}}),l}}const y4=t=>a=>{let{state:s,pos:l}=a,o=bn(s).resolveInner(l,-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:XO(),validFor:ea};if(o.name=="ValueName")return{from:o.from,options:w1,validFor:ea};if(o.name=="PseudoClassName")return{from:o.from,options:k1,validFor:ea};if(t(o)||(a.explicit||u)&&g4(o,s.doc))return{from:t(o)||u?o.from:l,options:Rv(s.doc,v4(o),t),validFor:x4};if(o.name=="TagName"){for(let{parent:h}=o;h;h=h.parent)if(h.name=="Block")return{from:o.from,options:XO(),validFor:ea};return{from:o.from,options:m4,validFor:ea}}if(o.name=="AtKeyword")return{from:o.from,options:p4,validFor:ea};if(!a.explicit)return null;let d=o.resolve(l),O=d.childBefore(l);return O&&O.name==":"&&d.name=="PseudoClassSelector"?{from:l,options:k1,validFor:ea}:O&&O.name==":"&&d.name=="Declaration"||d.name=="ArgList"?{from:l,options:w1,validFor:ea}:d.name=="Block"||d.name=="Styles"?{from:l,options:XO(),validFor:ea}:null},S4=y4(t=>t.name=="VariableName"),Tc=Oi.define({name:"css",parser:h4.configure({props:[Vl.add({Declaration:$l()}),Rs.add({"Block KeyframeList":Ac})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function Cv(){return new ws(Tc,Tc.data.of({autocomplete:S4}))}const Q4=55,j4=1,k4=56,w4=2,$4=57,T4=3,T1=4,N4=5,ph=6,Xv=7,_v=8,Av=9,Zv=10,P4=11,z4=12,R4=13,_O=58,C4=14,X4=15,N1=59,Ev=21,_4=23,qv=24,A4=25,jf=27,Mv=28,Z4=29,E4=32,q4=35,M4=37,Y4=38,U4=0,V4=1,G4={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},L4={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},P1={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 D4(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}let z1=null,R1=null,C1=0;function kf(t,a){let s=t.pos+a;if(C1==s&&R1==t)return z1;let l=t.peek(a),o="";for(;D4(l);)o+=String.fromCharCode(l),l=t.peek(++a);return R1=t,C1=s,z1=o?o.toLowerCase():l==W4||l==B4?void 0:null}const Yv=60,Nc=62,xh=47,W4=63,B4=33,H4=45;function X1(t,a){this.name=t,this.parent=a}const I4=[ph,Zv,Xv,_v,Av],F4=new hh({start:null,shift(t,a,s,l){return I4.indexOf(a)>-1?new X1(kf(l,1)||"",t):t},reduce(t,a){return a==Ev&&t?t.parent:t},reuse(t,a,s,l){let o=a.type.id;return o==ph||o==M4?new X1(kf(l,1)||"",t):t},strict:!1}),K4=new gt((t,a)=>{if(t.next!=Yv){t.next<0&&a.context&&t.acceptToken(_O);return}t.advance();let s=t.next==xh;s&&t.advance();let l=kf(t,0);if(l===void 0)return;if(!l)return t.acceptToken(s?X4:C4);let o=a.context?a.context.name:null;if(s){if(l==o)return t.acceptToken(P4);if(o&&L4[o])return t.acceptToken(_O,-2);if(a.dialectEnabled(U4))return t.acceptToken(z4);for(let u=a.context;u;u=u.parent)if(u.name==l)return;t.acceptToken(R4)}else{if(l=="script")return t.acceptToken(Xv);if(l=="style")return t.acceptToken(_v);if(l=="textarea")return t.acceptToken(Av);if(G4.hasOwnProperty(l))return t.acceptToken(Zv);o&&P1[o]&&P1[o][l]?t.acceptToken(_O,-1):t.acceptToken(ph)}},{contextual:!0}),J4=new gt(t=>{for(let a=0,s=0;;s++){if(t.next<0){s&&t.acceptToken(N1);break}if(t.next==H4)a++;else if(t.next==Nc&&a>=2){s>=3&&t.acceptToken(N1,-2);break}else a=0;t.advance()}});function ez(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const tz=new gt((t,a)=>{if(t.next==xh&&t.peek(1)==Nc){let s=a.dialectEnabled(V4)||ez(a.context);t.acceptToken(s?N4:T1,2)}else t.next==Nc&&t.acceptToken(T1,1)});function gh(t,a,s){let l=2+t.length;return new gt(o=>{for(let u=0,d=0,O=0;;O++){if(o.next<0){O&&o.acceptToken(a);break}if(u==0&&o.next==Yv||u==1&&o.next==xh||u>=2&&u<l&&o.next==t.charCodeAt(u-2))u++,d++;else if(u==l&&o.next==Nc){O>d?o.acceptToken(a,-d):o.acceptToken(s,-(d-2));break}else if((o.next==10||o.next==13)&&O){o.acceptToken(a,1);break}else u=d=0;o.advance()}})}const nz=gh("script",Q4,j4),az=gh("style",k4,w4),sz=gh("textarea",$4,T4),lz=zs({"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}),rz=es.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,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'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!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:F4,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:[lz],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-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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:[nz,az,sz,tz,K4,J4,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function Uv(t,a){let s=Object.create(null);for(let l of t.getChildren(qv)){let o=l.getChild(A4),u=l.getChild(jf)||l.getChild(Mv);o&&(s[a.read(o.from,o.to)]=u?u.type.id==jf?a.read(u.from+1,u.to-1):a.read(u.from,u.to):"")}return s}function _1(t,a){let s=t.getChild(_4);return s?a.read(s.from,s.to):" "}function AO(t,a,s){let l;for(let o of s)if(!o.attrs||o.attrs(l||(l=Uv(t.node.parent.firstChild,a))))return{parser:o.parser,bracketed:!0};return null}function Vv(t=[],a=[]){let s=[],l=[],o=[],u=[];for(let O of t)(O.tag=="script"?s:O.tag=="style"?l:O.tag=="textarea"?o:u).push(O);let d=a.length?Object.create(null):null;for(let O of a)(d[O.name]||(d[O.name]=[])).push(O);return X0((O,h)=>{let p=O.type.id;if(p==Z4)return AO(O,h,s);if(p==E4)return AO(O,h,l);if(p==q4)return AO(O,h,o);if(p==Ev&&u.length){let x=O.node,g=x.firstChild,b=g&&_1(g,h),y;if(b){for(let Q of u)if(Q.tag==b&&(!Q.attrs||Q.attrs(y||(y=Uv(g,h))))){let k=x.lastChild,$=k.type.id==Y4?k.from:x.to;if($>g.to)return{parser:Q.parser,overlay:[{from:g.to,to:$}]}}}}if(d&&p==qv){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!=_1(x.parent,h))continue;let Q=x.lastChild;if(Q.type.id==jf){let k=Q.from+1,$=Q.lastChild,j=Q.to-($&&$.isError?0:1);if(j>k)return{parser:y.parser,overlay:[{from:k,to:j}],bracketed:!0}}else if(Q.type.id==Mv)return{parser:y.parser,overlay:[{from:Q.from,to:Q.to}]}}}}return null})}const Wr=["_blank","_self","_top","_parent"],ZO=["ascii","utf-8","utf-16","latin1","latin1"],EO=["get","post","put","delete"],qO=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Vt=["true","false"],pe={},iz={a:{attrs:{href:null,ping:null,type:null,media:null,target:Wr,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:Wr}},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:qO,formmethod:EO,formnovalidate:["novalidate"],formtarget:Wr,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":ZO,autocomplete:["on","off"],enctype:qO,method:EO,novalidate:["novalidate"],target:Wr}},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:qO,formmethod:EO,formnovalidate:["novalidate"],formtarget:Wr,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:ZO,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:ZO}},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},Gv={accesskey:null,class:null,contenteditable:Vt,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:Vt,autocorrect:Vt,autocapitalize:Vt,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":Vt,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Vt,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Vt,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Vt,"aria-hidden":Vt,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Vt,"aria-multiselectable":Vt,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Vt,"aria-relevant":null,"aria-required":Vt,"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},Lv="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 Lv)Gv[t]=null;class ii{constructor(a,s){this.tags={...iz,...a},this.globalAttrs={...Gv,...s},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}ii.default=new ii;function Ml(t,a,s=t.length){if(!a)return"";let l=a.firstChild,o=l&&l.getChild("TagName");return o?t.sliceString(o.from,Math.min(o.to,s)):""}function Yl(t,a=!1){for(;t;t=t.parent)if(t.name=="Element")if(a)a=!1;else return t;return null}function Dv(t,a,s){let l=s.tags[Ml(t,Yl(a))];return(l==null?void 0:l.children)||s.allTags}function bh(t,a){let s=[];for(let l=Yl(a);l&&!l.type.isTop;l=Yl(l.parent)){let o=Ml(t,l);if(o&&l.lastChild.name=="CloseTag")break;o&&s.indexOf(o)<0&&(a.name=="EndTag"||a.from>=l.firstChild.to)&&s.push(o)}return s}const Wv=/^[:\-\.\w\u00b7-\uffff]*$/;function A1(t,a,s,l,o){let u=/\s*>/.test(t.sliceDoc(o,o+5))?"":">",d=Yl(s,s.name=="StartTag"||s.name=="TagName");return{from:l,to:o,options:Dv(t.doc,d,a).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 Z1(t,a,s,l){let o=/\s*>/.test(t.sliceDoc(l,l+5))?"":">";return{from:s,to:l,options:bh(t.doc,a).map((u,d)=>({label:u,apply:u+o,type:"type",boost:99-d})),validFor:Wv}}function oz(t,a,s,l){let o=[],u=0;for(let d of Dv(t.doc,s,a))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:l,to:l,options:o,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function cz(t,a,s,l,o){let u=Yl(s),d=u?a.tags[Ml(t.doc,u)]:null,O=d&&d.attrs?Object.keys(d.attrs):[],h=d&&d.globalAttrs===!1?O:O.length?O.concat(a.globalAttrNames):a.globalAttrNames;return{from:l,to:o,options:h.map(p=>({label:p,type:"property"})),validFor:Wv}}function uz(t,a,s,l,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=a.globalAttrs[p];if(!x){let g=Yl(s),b=g?a.tags[Ml(t.doc,g)]:null;x=(b==null?void 0:b.attrs)&&b.attrs[p]}if(x){let g=t.sliceDoc(l,o).toLowerCase(),b='"',y='"';/^['"]/.test(g)?(h=g[0]=='"'?/^[^"]*$/:/^[^']*$/,b="",y=t.sliceDoc(o,o+1)==g[0]?"":g[0],g=g.slice(1),l++):h=/^[^\s<>='"]*$/;for(let Q of x)O.push({label:Q,apply:b+Q+y,type:"constant"})}}return{from:l,to:o,options:O,validFor:h}}function Bv(t,a){let{state:s,pos:l}=a,o=bn(s).resolveInner(l,-1),u=o.resolve(l);for(let d=l,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)?Z1(s,o,o.from,l):A1(s,t,o,o.from,l):o.name=="StartTag"||o.name=="IncompleteTag"?A1(s,t,o,l,l):o.name=="StartCloseTag"||o.name=="IncompleteCloseTag"?Z1(s,o,l,l):o.name=="OpenTag"||o.name=="SelfClosingTag"||o.name=="AttributeName"?cz(s,t,o,o.name=="AttributeName"?o.from:l,l):o.name=="Is"||o.name=="AttributeValue"||o.name=="UnquotedAttributeValue"?uz(s,t,o,o.name=="Is"?l:o.from,l):a.explicit&&(u.name=="Element"||u.name=="Text"||u.name=="Document")?oz(s,t,o,l):null}function dz(t){return Bv(ii.default,t)}function Oz(t){let{extraTags:a,extraGlobalAttributes:s}=t,l=s||a?new ii(a,s):ii.default;return o=>Bv(l,o)}const fz=Nn.parser.configure({top:"SingleExpression"}),Hv=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:Qv.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:jv.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:kv.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:fz},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:Nn.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:Tc.parser}],Iv=[{name:"style",parser:Tc.parser.configure({top:"Styles"})}].concat(Lv.map(t=>({name:t,parser:Nn.parser}))),Fv=Oi.define({name:"html",parser:rz.configure({props:[Vl.add({Element(t){let a=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+a[0].length?t.continue():t.lineIndent(t.node.from)+(a[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 a=null,s;for(let l=t.node;;){let o=l.lastChild;if(!o||o.name!="Element"||o.to!=l.to)break;a=l=o}return a&&!((s=a.lastChild)&&(s.name=="CloseTag"||s.name=="SelfClosingTag"))?t.lineIndent(a.from)+t.unit:null}}),Rs.add({Element(t){let a=t.firstChild,s=t.lastChild;return!a||a.name!="OpenTag"?null:{from:a.to,to:s.name=="CloseTag"?s.from:t.to}}}),zj.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),rc=Fv.configure({wrap:Vv(Hv,Iv)});function Kv(t={}){let a="",s;t.matchClosingTags===!1&&(a="noMatch"),t.selfClosingTags===!0&&(a=(a?a+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(s=Vv((t.nestedLanguages||[]).concat(Hv),(t.nestedAttributes||[]).concat(Iv)));let l=s?Fv.configure({wrap:s,dialect:a}):a?rc.configure({dialect:a}):rc;return new ws(l,[rc.data.of({autocomplete:Oz(t)}),t.autoCloseTags!==!1?hz:[],Qf().support,Cv().support])}const E1=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),hz=Xl.inputHandler.of((t,a,s,l,o)=>{if(t.composing||t.state.readOnly||a!=s||l!=">"&&l!="/"||!rc.isActiveAt(t.state,a,-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)==l,{head:y}=h,Q=bn(d).resolveInner(y,-1),k;if(b&&l==">"&&Q.name=="EndTag"){let $=Q.parent;if(((x=(p=$.parent)===null||p===void 0?void 0:p.lastChild)===null||x===void 0?void 0:x.name)!="CloseTag"&&(k=Ml(d.doc,$.parent,y))&&!E1.has(k)){let j=y+(d.doc.sliceString(y,y+1)===">"?1:0),z=`</${k}>`;return{range:h,changes:{from:y,to:j,insert:z}}}}else if(b&&l=="/"&&Q.name=="IncompleteCloseTag"){let $=Q.parent;if(Q.from==y-2&&((g=$.lastChild)===null||g===void 0?void 0:g.name)!="CloseTag"&&(k=Ml(d.doc,$,y))&&!E1.has(k)){let j=y+(d.doc.sliceString(y,y+1)===">"?1:0),z=`${k}>`;return{range:Ha.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)}),mz=zs({String:Z.string,Number:Z.number,"True False":Z.bool,PropertyName:Z.propertyName,Null:Z.null,", :":Z.separator,"[ ]":Z.squareBracket,"{ }":Z.brace}),pz=es.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:[mz],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}),xz=Oi.define({name:"json",parser:pz.configure({props:[Vl.add({Object:$l({except:/^\s*\}/}),Array:$l({except:/^\s*\]/})}),Rs.add({"Object Array":Ac})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function gz(){return new ws(xz)}class Pc{static create(a,s,l,o,u){let d=o+(o<<8)+a+(s<<4)|0;return new Pc(a,s,l,d,u,[],[])}constructor(a,s,l,o,u,d,O){this.type=a,this.value=s,this.from=l,this.hash=o,this.end=u,this.children=d,this.positions=O,this.hashProp=[[ra.contextHash,o]]}addChild(a,s){a.prop(ra.contextHash)!=this.hash&&(a=new pn(a.type,a.children,a.positions,a.length,this.hashProp)),this.children.push(a),this.positions.push(s)}toTree(a,s=this.end){let l=this.children.length-1;return l>=0&&(s=Math.max(s,this.positions[l]+this.children[l].length+this.from)),new pn(a.types[this.type],this.children,this.positions,s-this.from).balance({makeTree:(o,u,d)=>new pn(di.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 bz{constructor(a,s){this.start=a,this.content=s,this.marks=[],this.parsers=[]}}class vz{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 a=this.skipSpace(this.basePos);this.indent=this.countIndent(a,this.pos,this.indent),this.pos=a,this.next=a==this.text.length?-1:this.text.charCodeAt(a)}skipSpace(a){return Fr(this.text,a)}reset(a){for(this.text=a,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(a){this.basePos=a,this.baseIndent=this.countIndent(a,this.pos,this.indent)}moveBaseColumn(a){this.baseIndent=a,this.basePos=this.findColumn(a)}addMarker(a){this.markers.push(a)}countIndent(a,s=0,l=0){for(let o=s;o<a;o++)l+=this.text.charCodeAt(o)==9?4-l%4:1;return l}findColumn(a){let s=0;for(let l=0;s<this.text.length&&l<a;s++)l+=this.text.charCodeAt(s)==9?4-l%4:1;return s}scrub(){if(!this.baseIndent)return this.text;let a="";for(let s=0;s<this.basePos;s++)a+=" ";return a+this.text.slice(this.basePos)}}function q1(t,a,s){if(s.pos==s.text.length||t!=a.block&&s.indent>=a.stack[s.depth+1].value+s.baseIndent)return!0;if(s.indent>=s.baseIndent+4)return!1;let l=(t.type==oe.OrderedList?Sh:yh)(s,a,!1);return l>0&&(t.type!=oe.BulletList||vh(s,a,!1)<0)&&s.text.charCodeAt(s.pos+l-1)==t.value}const Jv={[oe.Blockquote](t,a,s){return s.next!=62?!1:(s.markers.push(ze(oe.QuoteMark,a.lineStart+s.pos,a.lineStart+s.pos+1)),s.moveBase(s.pos+(cn(s.text.charCodeAt(s.pos+1))?2:1)),t.end=a.lineStart+s.text.length,!0)},[oe.ListItem](t,a,s){return s.indent<s.baseIndent+t.value&&s.next>-1?!1:(s.moveBaseColumn(s.baseIndent+t.value),!0)},[oe.OrderedList]:q1,[oe.BulletList]:q1,[oe.Document](){return!0}};function cn(t){return t==32||t==9||t==10||t==13}function Fr(t,a=0){for(;a<t.length&&cn(t.charCodeAt(a));)a++;return a}function M1(t,a,s){for(;a>s&&cn(t.charCodeAt(a-1));)a--;return a}function ey(t){if(t.next!=96&&t.next!=126)return-1;let a=t.pos+1;for(;a<t.text.length&&t.text.charCodeAt(a)==t.next;)a++;if(a<t.pos+3)return-1;if(t.next==96){for(let s=a;s<t.text.length;s++)if(t.text.charCodeAt(s)==96)return-1}return a}function ty(t){return t.next!=62?-1:t.text.charCodeAt(t.pos+1)==32?2:1}function vh(t,a,s){if(t.next!=42&&t.next!=45&&t.next!=95)return-1;let l=1;for(let o=t.pos+1;o<t.text.length;o++){let u=t.text.charCodeAt(o);if(u==t.next)l++;else if(!cn(u))return-1}return s&&t.next==45&&sy(t)>-1&&t.depth==a.stack.length&&a.parser.leafBlockParsers.indexOf(oy.SetextHeading)>-1||l<3?-1:1}function ny(t,a){for(let s=t.stack.length-1;s>=0;s--)if(t.stack[s].type==a)return!0;return!1}function yh(t,a,s){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||cn(t.text.charCodeAt(t.pos+1)))&&(!s||ny(a,oe.BulletList)||t.skipSpace(t.pos+2)<t.text.length)?1:-1}function Sh(t,a,s){let l=t.pos,o=t.next;for(;o>=48&&o<=57;){l++;if(l==t.text.length)return-1;o=t.text.charCodeAt(l)}return l==t.pos||l>t.pos+9||o!=46&&o!=41||l<t.text.length-1&&!cn(t.text.charCodeAt(l+1))||s&&!ny(a,oe.OrderedList)&&(t.skipSpace(l+1)==t.text.length||l>t.pos+1||t.next!=49)?-1:l+1-t.pos}function ay(t){if(t.next!=35)return-1;let a=t.pos+1;for(;a<t.text.length&&t.text.charCodeAt(a)==35;)a++;if(a<t.text.length&&t.text.charCodeAt(a)!=32)return-1;let s=a-t.pos;return s>6?-1:s}function sy(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let a=t.pos+1;for(;a<t.text.length&&t.text.charCodeAt(a)==t.next;)a++;let s=a;for(;a<t.text.length&&cn(t.text.charCodeAt(a));)a++;return a==t.text.length?s:-1}const wf=/^[ \t]*$/,ly=/-->/,ry=/\?>/,$f=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,ly],[/^\s*<\?/,ry],[/^\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,wf],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,wf]];function iy(t,a,s){if(t.next!=60)return-1;let l=t.text.slice(t.pos);for(let o=0,u=$f.length-(s?1:0);o<u;o++)if($f[o][0].test(l))return o;return-1}function Y1(t,a){let s=t.countIndent(a,t.pos,t.indent),l=t.countIndent(t.skipSpace(a),a,s);return l>=s+5?s+1:l}function Va(t,a,s){let l=t.length-1;l>=0&&t[l].to==a&&t[l].type==oe.CodeText?t[l].to=s:t.push(ze(oe.CodeText,a,s))}const Wo={LinkReference:void 0,IndentedCode(t,a){let s=a.baseIndent+4;if(a.indent<s)return!1;let l=a.findColumn(s),o=t.lineStart+l,u=t.lineStart+a.text.length,d=[],O=[];for(Va(d,o,u);t.nextLine()&&a.depth>=t.stack.length;)if(a.pos==a.text.length){Va(O,t.lineStart-1,t.lineStart);for(let h of a.markers)O.push(h)}else{if(a.indent<s)break;{if(O.length){for(let p of O)p.type==oe.CodeText?Va(d,p.from,p.to):d.push(p);O=[]}Va(d,t.lineStart-1,t.lineStart);for(let p of a.markers)d.push(p);u=t.lineStart+a.text.length;let h=t.lineStart+a.findColumn(a.baseIndent+4);h<u&&Va(d,h,u)}}return O.length&&(O=O.filter(h=>h.type!=oe.CodeText),O.length&&(a.markers=O.concat(a.markers))),t.addNode(t.buffer.writeElements(d,-o).finish(oe.CodeBlock,u-o),o),!0},FencedCode(t,a){let s=ey(a);if(s<0)return!1;let l=t.lineStart+a.pos,o=a.next,u=s-a.pos,d=a.skipSpace(s),O=M1(a.text,a.text.length,d),h=[ze(oe.CodeMark,l,l+u)];d<O&&h.push(ze(oe.CodeInfo,t.lineStart+d,t.lineStart+O));for(let p=!0,x=!0,g=!1;t.nextLine()&&a.depth>=t.stack.length;p=!1){let b=a.pos;if(a.indent-a.baseIndent<4)for(;b<a.text.length&&a.text.charCodeAt(b)==o;)b++;if(b-a.pos>=u&&a.skipSpace(b)==a.text.length){for(let y of a.markers)h.push(y);x&&g&&Va(h,t.lineStart-1,t.lineStart),h.push(ze(oe.CodeMark,t.lineStart+a.pos,t.lineStart+b)),t.nextLine();break}else{g=!0,p||(Va(h,t.lineStart-1,t.lineStart),x=!1);for(let k of a.markers)h.push(k);let y=t.lineStart+a.basePos,Q=t.lineStart+a.text.length;y<Q&&(Va(h,y,Q),x=!1)}}return t.addNode(t.buffer.writeElements(h,-l).finish(oe.FencedCode,t.prevLineEnd()-l),l),!0},Blockquote(t,a){let s=ty(a);return s<0?!1:(t.startContext(oe.Blockquote,a.pos),t.addNode(oe.QuoteMark,t.lineStart+a.pos,t.lineStart+a.pos+1),a.moveBase(a.pos+s),null)},HorizontalRule(t,a){if(vh(a,t,!1)<0)return!1;let s=t.lineStart+a.pos;return t.nextLine(),t.addNode(oe.HorizontalRule,s),!0},BulletList(t,a){let s=yh(a,t,!1);if(s<0)return!1;t.block.type!=oe.BulletList&&t.startContext(oe.BulletList,a.basePos,a.next);let l=Y1(a,a.pos+1);return t.startContext(oe.ListItem,a.basePos,l-a.baseIndent),t.addNode(oe.ListMark,t.lineStart+a.pos,t.lineStart+a.pos+s),a.moveBaseColumn(l),null},OrderedList(t,a){let s=Sh(a,t,!1);if(s<0)return!1;t.block.type!=oe.OrderedList&&t.startContext(oe.OrderedList,a.basePos,a.text.charCodeAt(a.pos+s-1));let l=Y1(a,a.pos+s);return t.startContext(oe.ListItem,a.basePos,l-a.baseIndent),t.addNode(oe.ListMark,t.lineStart+a.pos,t.lineStart+a.pos+s),a.moveBaseColumn(l),null},ATXHeading(t,a){let s=ay(a);if(s<0)return!1;let l=a.pos,o=t.lineStart+l,u=M1(a.text,a.text.length,l),d=u;for(;d>l&&a.text.charCodeAt(d-1)==a.next;)d--;(d==u||d==l||!cn(a.text.charCodeAt(d-1)))&&(d=a.text.length);let O=t.buffer.write(oe.HeaderMark,0,s).writeElements(t.parser.parseInline(a.text.slice(l+s+1,d),o+s+1),-o);d<a.text.length&&O.write(oe.HeaderMark,d-l,u-l);let h=O.finish(oe.ATXHeading1-1+s,a.text.length-l);return t.nextLine(),t.addNode(h,o),!0},HTMLBlock(t,a){let s=iy(a,t,!1);if(s<0)return!1;let l=t.lineStart+a.pos,o=$f[s][1],u=[],d=o!=wf;for(;!o.test(a.text)&&t.nextLine();){if(a.depth<t.stack.length){d=!1;break}for(let p of a.markers)u.push(p)}d&&t.nextLine();let O=o==ly?oe.CommentBlock:o==ry?oe.ProcessingInstructionBlock:oe.HTMLBlock,h=t.prevLineEnd();return t.addNode(t.buffer.writeElements(u,-l).finish(O,h-l),l),!0},SetextHeading:void 0};class yz{constructor(a){this.stage=0,this.elts=[],this.pos=0,this.start=a.start,this.advance(a.content)}nextLine(a,s,l){if(this.stage==-1)return!1;let o=l.content+`
|
|
582
|
-
`+s.scrub(),u=this.advance(o);return u>-1&&u<o.length?this.complete(a,l,u):!1}finish(a,s){return(this.stage==2||this.stage==3)&&Fr(s.content,this.pos)==s.content.length?this.complete(a,s,s.content.length):!1}complete(a,s,l){return a.addLeafElement(s,ze(oe.LinkReference,this.start,this.start+l,this.elts)),!0}nextStage(a){return a?(this.pos=a.to-this.start,this.elts.push(a),this.stage++,!0):(a===!1&&(this.stage=-1),!1)}advance(a){for(;;){if(this.stage==-1)return-1;if(this.stage==0){if(!this.nextStage(xy(a,this.pos,this.start,!0)))return-1;if(a.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(ze(oe.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(my(a,Fr(a,this.pos),this.start)))return-1}else if(this.stage==2){let s=Fr(a,this.pos),l=0;if(s>this.pos){let o=py(a,s,this.start);if(o){let u=MO(a,o.to-this.start);u>0&&(this.nextStage(o),l=u)}}return l||(l=MO(a,this.pos)),l>0&&l<a.length?l:-1}else return MO(a,this.pos)}}}function MO(t,a){for(;a<t.length;a++){let s=t.charCodeAt(a);if(s==10)break;if(!cn(s))return-1}return a}class Sz{nextLine(a,s,l){let o=s.depth<a.stack.length?-1:sy(s),u=s.next;if(o<0)return!1;let d=ze(oe.HeaderMark,a.lineStart+s.pos,a.lineStart+o);return a.nextLine(),a.addLeafElement(l,ze(u==61?oe.SetextHeading1:oe.SetextHeading2,l.start,a.prevLineEnd(),[...a.parser.parseInline(l.content,l.start),d])),!0}finish(){return!1}}const oy={LinkReference(t,a){return a.content.charCodeAt(0)==91?new yz(a):null},SetextHeading(){return new Sz}},Qz=[(t,a)=>ay(a)>=0,(t,a)=>ey(a)>=0,(t,a)=>ty(a)>=0,(t,a)=>yh(a,t,!0)>=0,(t,a)=>Sh(a,t,!0)>=0,(t,a)=>vh(a,t,!0)>=0,(t,a)=>iy(a,t,!0)>=0],jz={text:"",end:0};class kz{constructor(a,s,l,o){this.parser=a,this.input=s,this.ranges=o,this.line=new vz,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=l.length?new Tz(l,s):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:a}=this;for(;;){for(let l=0;;){let o=a.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;l<a.markers.length&&(!o||a.markers[l].from<o.end);){let u=a.markers[l++];this.addNode(u.type,u.from,u.to)}if(!o)break;this.finishContext()}if(a.pos<a.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(a.basePos))return null;e:for(;;){for(let l of this.parser.blockParsers)if(l){let o=l(this,a);if(o!=!1){if(o==!0)return null;a.forward();continue e}}break}let s=new bz(this.lineStart+a.pos,a.text.slice(a.pos));for(let l of this.parser.leafBlockParsers)if(l){let o=l(this,s);o&&s.parsers.push(o)}e:for(;this.nextLine()&&a.pos!=a.text.length;){if(a.indent<a.baseIndent+4){for(let l of this.parser.endLeafBlock)if(l(this,a,s))break e}for(let l of s.parsers)if(l.nextLine(this,a,s))return null;s.content+=`
|
|
583
|
-
`+a.scrub();for(let l of a.markers)s.marks.push(l)}return this.finishLeaf(s),null}stopAt(a){if(this.stoppedAt!=null&&this.stoppedAt<a)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=a}reuseFragment(a){if(!this.fragments.moveTo(this.absoluteLineStart+a,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let s=this.fragments.takeNodes(this);return s?(this.absoluteLineStart+=s,this.lineStart=gy(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(a=this.depth-1){return this.parser.nodeSet.types[this.stack[a].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(a){let s=jz;if(s.end=a,a>=this.to)s.text="";else if(s.text=this.lineChunkAt(a),s.end+=s.text.length,this.ranges.length>1){let l=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-l)+d,l=s.end-s.text.length}}return s}readLine(){let{line:a}=this,{text:s,end:l}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=l,a.reset(s);a.depth<this.stack.length;a.depth++){let o=this.stack[a.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,a)){this.line.markers.length>d&&(o.end=this.line.markers[this.line.markers.length-1].to),a.forward();break}a.forward()}}lineChunkAt(a){let s=this.input.chunk(a),l;if(this.input.lineChunks)l=s==`
|
|
584
|
-
`?"":s;else{let o=s.indexOf(`
|
|
585
|
-
`);l=o<0?s:s.slice(0,o)}return a+l.length>this.to?l.slice(0,this.to-a):l}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(a,s,l=0){this.block=Pc.create(a,l,this.lineStart+s,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(a,s,l=0){this.startContext(this.parser.getNodeType(a),s,l)}addNode(a,s,l){typeof a=="number"&&(a=new pn(this.parser.nodeSet.types[a],Ul,Ul,(l??this.prevLineEnd())-s)),this.block.addChild(a,s-this.block.from)}addElement(a){this.block.addChild(a.toTree(this.parser.nodeSet),a.from-this.block.from)}addLeafElement(a,s){this.addNode(this.buffer.writeElements(Nf(s.children,a.marks),-s.from).finish(s.type,s.to-s.from),s.from)}finishContext(){let a=this.stack.pop(),s=this.stack[this.stack.length-1];s.addChild(a.toTree(this.parser.nodeSet),a.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(a){return this.ranges.length>1?cy(this.ranges,0,a.topNode,this.ranges[0].from,this.reusePlaceholders):a}finishLeaf(a){for(let l of a.parsers)if(l.finish(this,a))return;let s=Nf(this.parser.parseInline(a.content,a.start),a.marks);this.addNode(this.buffer.writeElements(s,-a.start).finish(oe.Paragraph,a.content.length),a.start)}elt(a,s,l,o){return typeof a=="string"?ze(this.parser.getNodeType(a),s,l,o):new Oy(a,s)}get buffer(){return new dy(this.parser.nodeSet)}}function cy(t,a,s,l,o){let u=t[a].to,d=[],O=[],h=s.from+l;function p(x,g){for(;g?x>=u:x>u;){let b=t[a+1].from-u;l+=b,x+=b,a++,u=t[a].to}}for(let x=s.firstChild;x;x=x.nextSibling){p(x.from+l,!0);let g=x.from+l,b,y=o.get(x.tree);y?b=y:x.to+l>u?(b=cy(t,a,x,l,o),p(x.to+l,!1)):b=x.toTree(),d.push(b),O.push(g-h)}return p(s.to+l,!1),new pn(s.type,d,O,s.to+l-h,s.tree?s.tree.propValues:void 0)}class Ic extends N0{constructor(a,s,l,o,u,d,O,h,p){super(),this.nodeSet=a,this.blockParsers=s,this.leafBlockParsers=l,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 a.types)this.nodeTypes[x.name]=x.id}createParse(a,s,l){let o=new kz(this,a,s,l);for(let u of this.wrappers)o=u(o,a,s,l);return o}configure(a){let s=Tf(a);if(!s)return this;let{nodeSet:l,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(Br(s.defineNodes)){o=Object.assign({},o);let b=l.types.slice(),y;for(let Q of s.defineNodes){let{name:k,block:$,composite:j,style:z}=typeof Q=="string"?{name:Q}:Q;if(b.some(G=>G.name==k))continue;j&&(o[b.length]=(G,R,X)=>j(R,X,G.value));let N=b.length,_=j?["Block","BlockContext"]:$?N>=oe.ATXHeading1&&N<=oe.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;b.push(di.define({id:N,name:k,props:_&&[[ra.group,_]]})),z&&(y||(y={}),Array.isArray(z)||z instanceof Rj?y[k]=z:Object.assign(y,z))}l=new Ef(b),y&&(l=l.extend(zs(y)))}if(Br(s.props)&&(l=l.extend(...s.props)),Br(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(Br(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?Bo(O,b.before):b.after?Bo(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(Br(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?Bo(p,b.before):b.after?Bo(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 Ic(l,u,d,O,x,o,h,p,g)}getNodeType(a){let s=this.nodeTypes[a];if(s==null)throw new RangeError(`Unknown node type '${a}'`);return s}parseInline(a,s){let l=new Qh(this,a,s);e:for(let o=s;o<l.end;){let u=l.char(o);for(let d of this.inlineParsers)if(d){let O=d(l,u,o);if(O>=0){o=O;continue e}}o++}return l.resolveMarkers(0)}}function Br(t){return t!=null&&t.length>0}function Tf(t){if(!Array.isArray(t))return t;if(t.length==0)return null;let a=Tf(t[0]);if(t.length==1)return a;let s=Tf(t.slice(1));if(!s||!a)return a||s;let l=(d,O)=>(d||Ul).concat(O||Ul),o=a.wrap,u=s.wrap;return{props:l(a.props,s.props),defineNodes:l(a.defineNodes,s.defineNodes),parseBlock:l(a.parseBlock,s.parseBlock),parseInline:l(a.parseInline,s.parseInline),remove:l(a.remove,s.remove),wrap:o?u?(d,O,h,p)=>o(u(d,O,h,p),O,h,p):o:u}}function Bo(t,a){let s=t.indexOf(a);if(s<0)throw new RangeError(`Position specified relative to unknown parser ${a}`);return s}let uy=[di.none];for(let t=1,a;a=oe[t];t++)uy[t]=di.define({id:t,name:a,props:t>=oe.Escape?[]:[[ra.group,t in Jv?["Block","BlockContext"]:["Block","LeafBlock"]]],top:a=="Document"});const Ul=[];class dy{constructor(a){this.nodeSet=a,this.content=[],this.nodes=[]}write(a,s,l,o=0){return this.content.push(a,s,l,4+o*4),this}writeElements(a,s=0){for(let l of a)l.writeTo(this,s);return this}finish(a,s){return pn.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:a,length:s})}}let oi=class{constructor(a,s,l,o=Ul){this.type=a,this.from=s,this.to=l,this.children=o}writeTo(a,s){let l=a.content.length;a.writeElements(this.children,s),a.content.push(this.type,this.from+s,this.to+s,a.content.length+4-l)}toTree(a){return new dy(a).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class Oy{constructor(a,s){this.tree=a,this.from=s}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return Ul}writeTo(a,s){a.nodes.push(this.tree),a.content.push(a.nodes.length-1,this.from+s,this.to+s,-1)}toTree(){return this.tree}}function ze(t,a,s,l){return new oi(t,a,s,l)}const fy={resolve:"Emphasis",mark:"EmphasisMark"},hy={resolve:"Emphasis",mark:"EmphasisMark"},js={},zc={};class Lt{constructor(a,s,l,o){this.type=a,this.from=s,this.to=l,this.side=o}}const U1="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let ci=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{ci=new RegExp("[\\p{S}|\\p{P}]","u")}catch{}const YO={Escape(t,a,s){if(a!=92||s==t.end-1)return-1;let l=t.char(s+1);for(let o=0;o<U1.length;o++)if(U1.charCodeAt(o)==l)return t.append(ze(oe.Escape,s,s+2));return-1},Entity(t,a,s){if(a!=38)return-1;let l=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(t.slice(s+1,s+31));return l?t.append(ze(oe.Entity,s,s+1+l[0].length)):-1},InlineCode(t,a,s){if(a!=96||s&&t.char(s-1)==96)return-1;let l=s+1;for(;l<t.end&&t.char(l)==96;)l++;let o=l-s,u=0;for(;l<t.end;l++)if(t.char(l)==96){if(u++,u==o&&t.char(l+1)!=96)return t.append(ze(oe.InlineCode,s,l+1,[ze(oe.CodeMark,s,s+o),ze(oe.CodeMark,l+1-o,l+1)]))}else u=0;return-1},HTMLTag(t,a,s){if(a!=60||s==t.end-1)return-1;let l=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(l);if(o)return t.append(ze(oe.Autolink,s,s+1+o[0].length,[ze(oe.LinkMark,s,s+1),ze(oe.URL,s+1,s+o[0].length),ze(oe.LinkMark,s+o[0].length,s+1+o[0].length)]));let u=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(l);if(u)return t.append(ze(oe.Comment,s,s+1+u[0].length));let d=/^\?[^]*?\?>/.exec(l);if(d)return t.append(ze(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(l);return O?t.append(ze(oe.HTMLTag,s,s+1+O[0].length)):-1},Emphasis(t,a,s){if(a!=95&&a!=42)return-1;let l=s+1;for(;t.char(l)==a;)l++;let o=t.slice(s-1,s),u=t.slice(l,l+1),d=ci.test(o),O=ci.test(u),h=/\s|^$/.test(o),p=/\s|^$/.test(u),x=!p&&(!O||h||d),g=!h&&(!d||p||O),b=x&&(a==42||!g||d),y=g&&(a==42||!x||O);return t.append(new Lt(a==95?fy:hy,s,l,(b?1:0)|(y?2:0)))},HardBreak(t,a,s){if(a==92&&t.char(s+1)==10)return t.append(ze(oe.HardBreak,s,s+2));if(a==32){let l=s+1;for(;t.char(l)==32;)l++;if(t.char(l)==10&&l>=s+2)return t.append(ze(oe.HardBreak,s,l+1))}return-1},Link(t,a,s){return a==91?t.append(new Lt(js,s,s+1,1)):-1},Image(t,a,s){return a==33&&t.char(s+1)==91?t.append(new Lt(zc,s,s+2,1)):-1},LinkEnd(t,a,s){if(a!=93)return-1;for(let l=t.parts.length-1;l>=0;l--){let o=t.parts[l];if(o instanceof Lt&&(o.type==js||o.type==zc)){if(!o.side||t.skipSpace(o.to)==s&&!/[(\[]/.test(t.slice(s+1,s+2)))return t.parts[l]=null,-1;let u=t.takeContent(l),d=t.parts[l]=wz(t,u,o.type==js?oe.Link:oe.Image,o.from,s+1);if(o.type==js)for(let O=0;O<l;O++){let h=t.parts[O];h instanceof Lt&&h.type==js&&(h.side=0)}return d.to}}return-1}};function wz(t,a,s,l,o){let{text:u}=t,d=t.char(o),O=o;if(a.unshift(ze(oe.LinkMark,l,l+(s==oe.Image?2:1))),a.push(ze(oe.LinkMark,o-1,o)),d==40){let h=t.skipSpace(o+1),p=my(u,h-t.offset,t.offset),x;p&&(h=t.skipSpace(p.to),h!=p.to&&(x=py(u,h-t.offset,t.offset),x&&(h=t.skipSpace(x.to)))),t.char(h)==41&&(a.push(ze(oe.LinkMark,o,o+1)),O=h+1,p&&a.push(p),x&&a.push(x),a.push(ze(oe.LinkMark,h,O)))}else if(d==91){let h=xy(u,o-t.offset,t.offset,!1);h&&(a.push(h),O=h.to)}return ze(s,l,O,a)}function my(t,a,s){if(t.charCodeAt(a)==60){for(let o=a+1;o<t.length;o++){let u=t.charCodeAt(o);if(u==62)return ze(oe.URL,a+s,o+1+s);if(u==60||u==10)return!1}return null}else{let o=0,u=a;for(let d=!1;u<t.length;u++){let O=t.charCodeAt(u);if(cn(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>a?ze(oe.URL,a+s,u+s):u==t.length?null:!1}}function py(t,a,s){let l=t.charCodeAt(a);if(l!=39&&l!=34&&l!=40)return!1;let o=l==40?41:l;for(let u=a+1,d=!1;u<t.length;u++){let O=t.charCodeAt(u);if(d)d=!1;else{if(O==o)return ze(oe.LinkTitle,a+s,u+1+s);O==92&&(d=!0)}}return null}function xy(t,a,s,l){for(let o=!1,u=a+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 l?!1:ze(oe.LinkLabel,a+s,u+1+s);if(l&&!cn(O)&&(l=!1),O==91)return!1;O==92&&(o=!0)}}return null}class Qh{constructor(a,s,l){this.parser=a,this.text=s,this.offset=l,this.parts=[]}char(a){return a>=this.end?-1:this.text.charCodeAt(a-this.offset)}get end(){return this.offset+this.text.length}slice(a,s){return this.text.slice(a-this.offset,s-this.offset)}append(a){return this.parts.push(a),a.to}addDelimiter(a,s,l,o,u){return this.append(new Lt(a,s,l,(o?1:0)|(u?2:0)))}get hasOpenLink(){for(let a=this.parts.length-1;a>=0;a--){let s=this.parts[a];if(s instanceof Lt&&(s.type==js||s.type==zc))return!0}return!1}addElement(a){return this.append(a)}resolveMarkers(a){for(let l=a;l<this.parts.length;l++){let o=this.parts[l];if(!(o instanceof Lt&&o.type.resolve&&o.side&2))continue;let u=o.type==fy||o.type==hy,d=o.to-o.from,O,h=l-1;for(;h>=a;h--){let k=this.parts[h];if(k instanceof Lt&&k.side&1&&k.type==o.type&&!(u&&(o.side&1||k.side&2)&&(k.to-k.from+d)%3==0&&((k.to-k.from)%3||d%3))){O=k;break}}if(!O)continue;let p=o.type.resolve,x=[],g=O.from,b=o.to;if(u){let k=Math.min(2,O.to-O.from,d);g=O.to-k,b=o.from+k,p=k==1?"Emphasis":"StrongEmphasis"}O.type.mark&&x.push(this.elt(O.type.mark,g,O.to));for(let k=h+1;k<l;k++)this.parts[k]instanceof oi&&x.push(this.parts[k]),this.parts[k]=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 Lt(O.type,O.from,g,O.side):null,(this.parts[l]=u&&o.to!=b?new Lt(o.type,b,o.to,o.side):null)?this.parts.splice(l,0,y):this.parts[l]=y}let s=[];for(let l=a;l<this.parts.length;l++){let o=this.parts[l];o instanceof oi&&s.push(o)}return s}findOpeningDelimiter(a){for(let s=this.parts.length-1;s>=0;s--){let l=this.parts[s];if(l instanceof Lt&&l.type==a&&l.side&1)return s}return null}takeContent(a){let s=this.resolveMarkers(a);return this.parts.length=a,s}getDelimiterAt(a){let s=this.parts[a];return s instanceof Lt?s:null}skipSpace(a){return Fr(this.text,a-this.offset)+this.offset}elt(a,s,l,o){return typeof a=="string"?ze(this.parser.getNodeType(a),s,l,o):new Oy(a,s)}}Qh.linkStart=js;Qh.imageStart=zc;function Nf(t,a){if(!a.length)return t;if(!t.length)return a;let s=t.slice(),l=0;for(let o of a){for(;l<s.length&&s[l].to<o.to;)l++;if(l<s.length&&s[l].from<o.from){let u=s[l];u instanceof oi&&(s[l]=new oi(u.type,u.from,u.to,Nf(u.children,[o])))}else s.splice(l++,0,o)}return s}const $z=[oe.CodeBlock,oe.ListItem,oe.OrderedList,oe.BulletList];class Tz{constructor(a,s){this.fragments=a,this.input=s,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,a.length&&(this.fragment=a[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(a,s){for(;this.fragment&&this.fragment.to<=a;)this.nextFragment();if(!this.fragment||this.fragment.from>(a?a-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 l=this.cursor;l||(l=this.cursor=this.fragment.tree.cursor(),l.firstChild());let o=a+this.fragment.offset;for(;l.to<=o;)if(!l.parent())return!1;for(;;){if(l.from>=o)return this.fragment.from<=s;if(!l.childAfter(o))return!1}}matches(a){let s=this.cursor.tree;return s&&s.prop(ra.contextHash)==a}takeNodes(a){let s=this.cursor,l=this.fragment.offset,o=this.fragmentEnd-(this.fragment.openEnd?1:0),u=a.absoluteLineStart,d=u,O=a.block.children.length,h=d,p=O;for(;;){if(s.to-l>o){if(s.type.isAnonymous&&s.firstChild())continue;break}let x=gy(s.from-l,a.ranges);if(s.to-l<=a.ranges[a.rangeI].to)a.addNode(s.tree,x);else{let g=new pn(a.parser.nodeSet.types[oe.Paragraph],[],[],0,a.block.hashProp);a.reusePlaceholders.set(g,s.tree),a.addNode(g,x)}if(s.type.is("Block")&&($z.indexOf(s.type.id)<0?(d=s.to-l,O=a.block.children.length):(d=h,O=p),h=s.to-l,p=a.block.children.length),!s.nextSibling())break}for(;a.block.children.length>O;)a.block.children.pop(),a.block.positions.pop();return d-u}}function gy(t,a){let s=t;for(let l=1;l<a.length;l++){let o=a[l-1].to,u=a[l].from;o<t&&(s-=u-o)}return s}const Nz=zs({"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}),Pz=new Ic(new Ef(uy).extend(Nz),Object.keys(Wo).map(t=>Wo[t]),Object.keys(Wo).map(t=>oy[t]),Object.keys(Wo),Qz,Jv,Object.keys(YO).map(t=>YO[t]),Object.keys(YO),[]);function zz(t,a,s){let l=[];for(let o=t.firstChild,u=a;;o=o.nextSibling){let d=o?o.from:s;if(d>u&&l.push({from:u,to:d}),!o)break;u=o.to}return l}function Rz(t){let{codeParser:a,htmlParser:s}=t;return{wrap:X0((o,u)=>{let d=o.type.id;if(a&&(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=a(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:zz(o.node,o.from,o.to)};return null})}}const Cz={resolve:"Strikethrough",mark:"StrikethroughMark"},Xz={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Z.strikethrough}},{name:"StrikethroughMark",style:Z.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,a,s){if(a!=126||t.char(s+1)!=126||t.char(s+2)==126)return-1;let l=t.slice(s-1,s),o=t.slice(s+2,s+3),u=/\s|^$/.test(l),d=/\s|^$/.test(o),O=ci.test(l),h=ci.test(o);return t.addDelimiter(Cz,s,s+2,!d&&(!h||u||O),!u&&(!O||d||h))},after:"Emphasis"}]};function Kr(t,a,s=0,l,o=0){let u=0,d=!0,O=-1,h=-1,p=!1,x=()=>{l.push(t.elt("TableCell",o+O,o+h,t.parser.parseInline(a.slice(O,h),o+O)))};for(let g=s;g<a.length;g++){let b=a.charCodeAt(g);b==124&&!p?((!d||O>-1)&&u++,d=!1,l&&(O>-1&&x(),l.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++,l&&x()),u}function V1(t,a){for(let s=a;s<t.length;s++){let l=t.charCodeAt(s);if(l==124)return!0;l==92&&s++}return!1}const by=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class G1{constructor(){this.rows=null}nextLine(a,s,l){if(this.rows==null){this.rows=!1;let o;if((s.next==45||s.next==58||s.next==124)&&by.test(o=s.text.slice(s.pos))){let u=[];Kr(a,l.content,0,u,l.start)==Kr(a,o,s.pos)&&(this.rows=[a.elt("TableHeader",l.start,l.start+l.content.length,u),a.elt("TableDelimiter",a.lineStart+s.pos,a.lineStart+s.text.length)])}}else if(this.rows){let o=[];Kr(a,s.text,s.pos,o,a.lineStart),this.rows.push(a.elt("TableRow",a.lineStart+s.pos,a.lineStart+s.text.length,o))}return!1}finish(a,s){return this.rows?(a.addLeafElement(s,a.elt("Table",s.start,s.start+s.content.length,this.rows)),!0):!1}}const _z={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,a){return V1(a.content,0)?new G1:null},endLeaf(t,a,s){if(s.parsers.some(o=>o instanceof G1)||!V1(a.text,a.basePos))return!1;let l=t.peekLine();return by.test(l)&&Kr(t,a.text,a.basePos)==Kr(t,l,a.basePos)},before:"SetextHeading"}]};class Az{nextLine(){return!1}finish(a,s){return a.addLeafElement(s,a.elt("Task",s.start,s.start+s.content.length,[a.elt("TaskMarker",s.start,s.start+3),...a.parser.parseInline(s.content.slice(3),s.start+3)])),!0}}const Zz={defineNodes:[{name:"Task",block:!0,style:Z.list},{name:"TaskMarker",style:Z.atom}],parseBlock:[{name:"TaskList",leaf(t,a){return/^\[[ xX]\][ \t]/.test(a.content)&&t.parentType().name=="ListItem"?new Az:null},after:"SetextHeading"}]},L1=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,D1=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,Ez=/[\w-]+\.[\w-]+($|\/)/,W1=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,B1=/\/[a-zA-Z\d@.]+/gy;function H1(t,a,s,l){let o=0;for(let u=a;u<s;u++)t[u]==l&&o++;return o}function qz(t,a){D1.lastIndex=a;let s=D1.exec(t);if(!s||Ez.exec(s[0])[0].indexOf("_")>-1)return-1;let l=a+s[0].length;for(;;){let o=t[l-1],u;if(/[?!.,:*_~]/.test(o)||o==")"&&H1(t,a,l,")")>H1(t,a,l,"("))l--;else if(o==";"&&(u=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(a,l))))l=a+u.index;else break}return l}function I1(t,a){W1.lastIndex=a;let s=W1.exec(t);if(!s)return-1;let l=s[0][s[0].length-1];return l=="_"||l=="-"?-1:a+s[0].length-(l=="."?1:0)}const Mz={parseInline:[{name:"Autolink",parse(t,a,s){let l=s-t.offset;if(l&&/\w/.test(t.text[l-1]))return-1;L1.lastIndex=l;let o=L1.exec(t.text),u=-1;if(!o)return-1;if(o[1]||o[2]){if(u=qz(t.text,l+o[0].length),u>-1&&t.hasOpenLink){let d=/([^\[\]]|\[[^\]]*\])*/.exec(t.text.slice(l,u));u=l+d[0].length}}else o[3]?u=I1(t.text,l):(u=I1(t.text,l+o[0].length),u>-1&&o[0]=="xmpp:"&&(B1.lastIndex=u,o=B1.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)}}]},Yz=[_z,Zz,Xz,Mz];function vy(t,a,s){return(l,o,u)=>{if(o!=t||l.char(u+1)==t)return-1;let d=[l.elt(s,u,u+1)];for(let O=u+1;O<l.end;O++){let h=l.char(O);if(h==t)return l.addElement(l.elt(a,u,O+1,d.concat(l.elt(s,O,O+1))));if(h==92&&d.push(l.elt("Escape",O,O+++2)),cn(h))break}return-1}}const Uz={defineNodes:[{name:"Superscript",style:Z.special(Z.content)},{name:"SuperscriptMark",style:Z.processingInstruction}],parseInline:[{name:"Superscript",parse:vy(94,"Superscript","SuperscriptMark")}]},Vz={defineNodes:[{name:"Subscript",style:Z.special(Z.content)},{name:"SubscriptMark",style:Z.processingInstruction}],parseInline:[{name:"Subscript",parse:vy(126,"Subscript","SubscriptMark")}]},Gz={defineNodes:[{name:"Emoji",style:Z.character}],parseInline:[{name:"Emoji",parse(t,a,s){let l;return a!=58||!(l=/^[a-zA-Z_0-9]+:/.exec(t.slice(s+1,t.end)))?-1:t.addElement(t.elt("Emoji",s,s+1+l[0].length))}}]},yy=C0({commentTokens:{block:{open:"<!--",close:"-->"}}}),Sy=new ra,Qy=Pz.configure({props:[Rs.add(t=>!t.is("Block")||t.is("Document")||Pf(t)!=null||Lz(t)?void 0:(a,s)=>({from:s.doc.lineAt(a.from).to,to:a.to})),Sy.add(Pf),Vl.add({Document:()=>null}),Ej.add({Document:yy})]});function Pf(t){let a=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return a?+a[1]:void 0}function Lz(t){return t.name=="OrderedList"||t.name=="BulletList"}function Dz(t,a){let s=t;for(;;){let l=s.nextSibling,o;if(!l||(o=Pf(l.type))!=null&&o<=a)break;s=l}return s.to}const Wz=Xj.of((t,a,s)=>{for(let l=bn(t).resolveInner(s,-1);l&&!(l.from<a);l=l.parent){let o=l.type.prop(Sy);if(o==null)continue;let u=Dz(l,o);if(u>s)return{from:s,to:u}}return null});function jh(t){return new _j(yy,t,[],"markdown")}const Bz=jh(Qy),Hz=Qy.configure([Yz,Vz,Uz,Gz,{props:[Rs.add({Table:(t,a)=>({from:a.doc.lineAt(t.from).to,to:t.to})})]}]),Rc=jh(Hz);function Iz(t,a){return s=>{if(s&&t){let l=null;if(s=/\S*/.exec(s)[0],typeof t=="function"?l=t(s):l=Rg.matchLanguageName(t,s,!0),l instanceof Rg)return l.support?l.support.language.parser:qj.getSkippingParser(l.load());if(l)return l.parser}return a?a.parser:null}}let UO=class{constructor(a,s,l,o,u,d,O){this.node=a,this.from=s,this.to=l,this.spaceBefore=o,this.spaceAfter=u,this.type=d,this.item=O}blank(a,s=!0){let l=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(a!=null){for(;l.length<a;)l+=" ";return l}else{for(let o=this.to-this.from-l.length-this.spaceAfter.length;o>0;o--)l+=" ";return l+(s?this.spaceAfter:"")}}marker(a,s){let l=this.node.name=="OrderedList"?String(+ky(this.item,a)[2]+s):"";return this.spaceBefore+l+this.type+this.spaceAfter}};function jy(t,a){let s=[],l=[];for(let o=t;o;o=o.parent){if(o.name=="FencedCode")return l;(o.name=="ListItem"||o.name=="Blockquote")&&s.push(o)}for(let o=s.length-1;o>=0;o--){let u=s[o],d,O=a.lineAt(u.from),h=u.from-O.from;if(u.name=="Blockquote"&&(d=/^ *>( ?)/.exec(O.text.slice(h))))l.push(new UO(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),l.push(new UO(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]/," ")),l.push(new UO(u.parent,h,h+x,d[1],p,g,u))}}return l}function ky(t,a){return/^(\s*)(\d+)(?=[.)])/.exec(a.sliceString(t.from,t.from+10))}function VO(t,a,s,l=0){for(let o=-1,u=t;;){if(u.name=="ListItem"){let O=ky(u,a),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+l)})}o=h}let d=u.nextSibling;if(!d)break;u=d}}function kh(t,a){let s=/^[ \t]*/.exec(t)[0].length;if(!s||a.facet(Aj)!=" ")return t;let l=Jr(t,4,s),o="";for(let u=l;u>0;)u>=4?(o+=" ",u-=4):(o+=" ",u--);return o+t.slice(s)}const Fz=(t={})=>({state:a,dispatch:s})=>{let l=bn(a),{doc:o}=a,u=null,d=a.changeByRange(O=>{if(!O.empty||!Rc.isActiveAt(a,O.from,-1)&&!Rc.isActiveAt(a,O.from,1))return u={range:O};let h=O.from,p=o.lineAt(h),x=jy(l.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,_,G="";N&&N.item?(_=p.from+N.from,G=N.marker(o,1)):_=p.from+(N?N.to:0);let R=[{from:_,to:h,insert:G}];return g.node.name=="OrderedList"&&VO(g.item,o,R,-2),N&&N.node.name=="OrderedList"&&VO(N.item,o,R),{range:Ha.cursor(_+G.length),changes:R}}else{let N=K1(x,a,p);return{range:Ha.cursor(h+N.length+1),changes:{from:p.from,insert:N+a.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=a.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"&&VO(g.item,o,y);let Q=g.item&&g.item.from<p.from,k="";if(!Q||/^[\s\d.)\-+*>]*/.exec(p.text)[0].length>=g.to)for(let j=0,z=x.length-1;j<=z;j++)k+=j==z&&!Q?x[j].marker(o,1):x[j].blank(j<z?Jr(p.text,4,x[j+1].from)-k.length:null);let $=h;for(;$>p.from&&/\s/.test(p.text.charAt($-p.from-1));)$--;return k=kh(k,a),Jz(g.node,a.doc)&&(k=K1(x,a,p)+a.lineBreak+k),y.push({from:$,to:h,insert:a.lineBreak+k}),{range:Ha.cursor($+k.length+1),changes:y}});return u?!1:(s(a.update(d,{scrollIntoView:!0,userEvent:"input"})),!0)},Kz=Fz();function F1(t){return t.name=="QuoteMark"||t.name=="ListMark"}function Jz(t,a){if(t.name!="OrderedList"&&t.name!="BulletList")return!1;let s=t.firstChild,l=t.getChild("ListItem","ListItem");if(!l)return!1;let o=a.lineAt(s.to),u=a.lineAt(l.from),d=/^[\s>]*$/.test(o.text);return o.number+(d?0:1)<u.number}function K1(t,a,s){let l="";for(let o=0,u=t.length-2;o<=u;o++)l+=t[o].blank(o<u?Jr(s.text,4,t[o+1].from)-l.length:null,o<u);return kh(l,a)}function eR(t,a){let s=t.resolveInner(a,-1),l=a;F1(s)&&(l=s.from,s=s.parent);for(let o;o=s.childBefore(l);)if(F1(o))l=o.from;else if(o.name=="OrderedList"||o.name=="BulletList")s=o.lastChild,l=s.to;else break;return s}const tR=({state:t,dispatch:a})=>{let s=bn(t),l=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=jy(eR(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:Ha.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(Jr(h.text,4,x.to)-Jr(h.text,4,x.from));return b==h.from&&(y=kh(y,t)),{range:Ha.cursor(b+y.length),changes:{from:b,to:h.from+x.to,insert:y}}}if(b<d)return{range:Ha.cursor(b),changes:{from:b,to:d}}}}}return l={range:u}});return l?!1:(a(t.update(o,{scrollIntoView:!0,userEvent:"delete"})),!0)},nR=[{key:"Enter",run:Kz},{key:"Backspace",run:tR}],wy=Kv({matchClosingTags:!1});function aR(t={}){let{codeLanguages:a,defaultCodeLanguage:s,addKeymap:l=!0,base:{parser:o}=Bz,completeHTMLTags:u=!0,pasteURLAsLink:d=!0,htmlTagLanguage:O=wy}=t;if(!(o instanceof Ic))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let h=t.extensions?[t.extensions]:[],p=[O.support,Wz],x;d&&p.push(iR),s instanceof ws?(p.push(s.support),x=s.language):s&&(x=s);let g=a||x?Iz(a,x):void 0;h.push(Rz({codeParser:g,htmlParser:O.language.parser})),l&&p.push(Cj.high(cf.of(nR)));let b=jh(o.configure(h));return u&&p.push(b.data.of({autocomplete:sR})),new ws(b,p)}function sR(t){let{state:a,pos:s}=t,l=/<[:\-\.\w\u00b7-\uffff]*$/.exec(a.sliceDoc(s-25,s));if(!l)return null;let o=bn(a).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-l[0].length,to:s,options:lR(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let GO=null;function lR(){if(GO)return GO;let t=dz(new Zj(_0.create({extensions:wy}),0,!0));return GO=t?t.options:[]}const rR=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,iR=Xl.domEventHandlers({paste:(t,a)=>{var s;let{main:l}=a.state.selection;if(l.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(a.state,l.from,1)))return!1;let u=bn(a.state),d=!1;return u.iterate({from:l.from,to:l.to,enter:O=>{(O.from>l.from||rR.test(O.name))&&(d=!0)},leave:O=>{O.to<l.to&&(d=!0)}}),d?!1:(a.dispatch({changes:[{from:l.from,insert:"["},{from:l.to,insert:`](${o})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}}),oR=1,$y=194,Ty=195,cR=196,J1=197,uR=198,dR=199,OR=200,fR=2,Ny=3,e0=201,hR=24,mR=25,pR=49,xR=50,gR=55,bR=56,vR=57,yR=59,SR=60,QR=61,jR=62,kR=63,wR=65,$R=238,TR=71,NR=241,PR=242,zR=243,RR=244,CR=245,XR=246,_R=247,AR=248,Py=72,ZR=249,ER=250,qR=251,MR=252,YR=253,UR=254,VR=255,GR=256,LR=73,DR=77,WR=263,BR=112,HR=130,IR=151,FR=152,KR=155,Ns=10,ui=13,wh=32,Fc=9,$h=35,JR=40,eC=46,zf=123,t0=125,zy=39,Ry=34,n0=92,tC=111,nC=120,aC=78,sC=117,lC=85,rC=new Set([mR,pR,xR,WR,wR,HR,bR,vR,$R,jR,kR,Py,LR,DR,SR,QR,IR,FR,KR,BR]);function LO(t){return t==Ns||t==ui}function DO(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}const iC=new gt((t,a)=>{let s;if(t.next<0)t.acceptToken(dR);else if(a.context.flags&ic)LO(t.next)&&t.acceptToken(uR,1);else if(((s=t.peek(-1))<0||LO(s))&&a.canShift(J1)){let l=0;for(;t.next==wh||t.next==Fc;)t.advance(),l++;(t.next==Ns||t.next==ui||t.next==$h)&&t.acceptToken(J1,-l)}else LO(t.next)&&t.acceptToken(cR,1)},{contextual:!0}),oC=new gt((t,a)=>{let s=a.context;if(s.flags)return;let l=t.peek(-1);if(l==Ns||l==ui){let o=0,u=0;for(;;){if(t.next==wh)o++;else if(t.next==Fc)o+=8-o%8;else break;t.advance(),u++}o!=s.indent&&t.next!=Ns&&t.next!=ui&&t.next!=$h&&(o<s.indent?t.acceptToken(Ty,-u):t.acceptToken($y))}}),ic=1,Cy=2,ta=4,na=8,aa=16,sa=32;function oc(t,a,s){this.parent=t,this.indent=a,this.flags=s,this.hash=(t?t.hash+t.hash<<8:0)+a+(a<<4)+s+(s<<6)}const cC=new oc(null,0,0);function uC(t){let a=0;for(let s=0;s<t.length;s++)a+=t.charCodeAt(s)==Fc?8-a%8:1;return a}const a0=new Map([[NR,0],[PR,ta],[zR,na],[RR,na|ta],[CR,aa],[XR,aa|ta],[_R,aa|na],[AR,aa|na|ta],[ZR,sa],[ER,sa|ta],[qR,sa|na],[MR,sa|na|ta],[YR,sa|aa],[UR,sa|aa|ta],[VR,sa|aa|na],[GR,sa|aa|na|ta]].map(([t,a])=>[t,a|Cy])),dC=new hh({start:cC,reduce(t,a,s,l){return t.flags&ic&&rC.has(a)||(a==TR||a==Py)&&t.flags&Cy?t.parent:t},shift(t,a,s,l){return a==$y?new oc(t,uC(l.read(l.pos,s.pos)),0):a==Ty?t.parent:a==hR||a==gR||a==yR||a==Ny?new oc(t,0,ic):a0.has(a)?new oc(t,0,a0.get(a)|t.flags&ic):t},hash(t){return t.hash}}),OC=new gt(t=>{for(let a=0;a<5;a++){if(t.next!="print".charCodeAt(a))return;t.advance()}if(!/\w/.test(String.fromCharCode(t.next)))for(let a=0;;a++){let s=t.peek(a);if(!(s==wh||s==Fc)){s!=JR&&s!=eC&&s!=Ns&&s!=ui&&s!=$h&&t.acceptToken(oR);return}}}),fC=new gt((t,a)=>{let{flags:s}=a.context,l=s&ta?Ry:zy,o=(s&na)>0,u=!(s&aa),d=(s&sa)>0,O=t.pos;for(;!(t.next<0);)if(d&&t.next==zf)if(t.peek(1)==zf)t.advance(2);else{if(t.pos==O){t.acceptToken(Ny,1);return}break}else if(u&&t.next==n0){if(t.pos==O){t.advance();let h=t.next;h>=0&&(t.advance(),hC(t,h)),t.acceptToken(fR);return}break}else if(t.next==n0&&!u&&t.peek(1)>-1)t.advance(2);else if(t.next==l&&(!o||t.peek(1)==l&&t.peek(2)==l)){if(t.pos==O){t.acceptToken(e0,o?3:1);return}break}else if(t.next==Ns){if(o)t.advance();else if(t.pos==O){t.acceptToken(e0);return}break}else t.advance();t.pos>O&&t.acceptToken(OR)});function hC(t,a){if(a==tC)for(let s=0;s<2&&t.next>=48&&t.next<=55;s++)t.advance();else if(a==nC)for(let s=0;s<2&&DO(t.next);s++)t.advance();else if(a==sC)for(let s=0;s<4&&DO(t.next);s++)t.advance();else if(a==lC)for(let s=0;s<8&&DO(t.next);s++)t.advance();else if(a==aC&&t.next==zf){for(t.advance();t.next>=0&&t.next!=t0&&t.next!=zy&&t.next!=Ry&&t.next!=Ns;)t.advance();t.next==t0&&t.advance()}}const mC=zs({'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}),pC={__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},xC=es.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'#FOO1XQdO'#FQO1XQdO'#FVO4nQdO'#F[P4uOdO'#GpPOOO)CBd)CBdOOQS'#Ce'#CeOOQS'#Cf'#CfOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Cl'#ClO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO5TQdO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+]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:dC,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:[mC],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(r#h#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(cTmR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(yT!mR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk)aV&n`&[ZOr%Trs)vs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk){V&n`Or%Trs*bs#o%T#p#q%T#r;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[s#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!*aV&n`Or%Trs!*vs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!*}T&n`&jZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!+eV&n`&gZOw%Twx!+zx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,PV&n`Ow%Twx!,fx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,mT&n`&iZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!-Vi&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!dJU!d!eLx!e!hJU!h!i!(`!i!}JU!}#R%T#R#SJU#S#T%T#T#UJU#U#VLx#V#YJU#Y#Z!(`#Z#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUo!.}a&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!0ZT!XZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc!0qT!WR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj!1XV%kQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!1sO!]~k!1zV%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",tokenizers:[OC,oC,iC,fC,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:t=>pC[t]||-1}],tokenPrec:7668}),s0=new qf,Xy=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function Ho(t){return(a,s,l)=>{if(l)return!1;let o=a.node.getChild("VariableName");return o&&s(o,t),!0}}const gC={FunctionDefinition:Ho("function"),ClassDefinition:Ho("class"),ForStatement(t,a,s){if(s){for(let l=t.node.firstChild;l;l=l.nextSibling)if(l.name=="VariableName")a(l,"variable");else if(l.name=="in")break}},ImportStatement(t,a){var s,l;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"&&((l=d.nextSibling)===null||l===void 0?void 0:l.name)!="as"&&a(d,u?"variable":"namespace")},AssignStatement(t,a){for(let s=t.node.firstChild;s;s=s.nextSibling)if(s.name=="VariableName")a(s,"variable");else if(s.name==":"||s.name=="AssignOp")break},ParamList(t,a){for(let s=null,l=t.node.firstChild;l;l=l.nextSibling)l.name=="VariableName"&&(!s||!/\*|AssignOp/.test(s.name))&&a(l,"variable"),s=l},CapturePattern:Ho("variable"),AsPattern:Ho("variable"),__proto__:null};function _y(t,a){let s=s0.get(a);if(s)return s;let l=[],o=!0;function u(d,O){let h=t.sliceString(d.from,d.to);l.push({label:h,type:O})}return a.cursor(_c.IncludeAnonymous).iterate(d=>{if(d.name){let O=gC[d.name];if(O&&O(d,u,o)||!o&&Xy.has(d.name))return!1;o=!1}else if(d.to-d.from>8192){for(let O of _y(t,d.node))l.push(O);return!1}}),s0.set(a,l),l}const l0=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,Ay=["String","FormatString","Comment","PropertyName"];function bC(t){let a=bn(t.state).resolveInner(t.pos,-1);if(Ay.indexOf(a.name)>-1)return null;let s=a.name=="VariableName"||a.to-a.from<20&&l0.test(t.state.sliceDoc(a.from,a.to));if(!s&&!t.explicit)return null;let l=[];for(let o=a;o;o=o.parent)Xy.has(o.name)&&(l=l.concat(_y(t.state.doc,o)));return{options:l,from:s?a.from:t.pos,validFor:l0}}const vC=["__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"}))),yC=[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"})],SC=P0(Ay,z0(vC.concat(yC)));function WO(t){let{node:a,pos:s}=t,l=t.lineIndent(s,-1),o=null;for(;;){let u=a.childBefore(s);if(u)if(u.name=="Comment")s=u.from;else if(u.name=="Body"||u.name=="MatchBody")t.baseIndentFor(u)+t.unit<=l&&(o=u),a=u;else if(u.name=="MatchClause")a=u;else if(u.type.is("Statement"))a=u;else break;else break}return o}function BO(t,a){let s=t.baseIndentFor(a),l=t.lineAt(t.pos,-1),o=l.from+l.text.length;return/^\s*($|#)/.test(l.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 HO=Oi.define({name:"python",parser:xC.configure({props:[Vl.add({Body:t=>{var a;let s=/^\s*(#|$)/.test(t.textAfter)&&WO(t)||t.node;return(a=BO(t,s))!==null&&a!==void 0?a:t.continue()},MatchBody:t=>{var a;let s=WO(t);return(a=BO(t,s||t.node))!==null&&a!==void 0?a: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":nc({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":nc({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":nc({closing:"]"}),MemberExpression:t=>t.baseIndent+t.unit,"String FormatString":()=>null,Script:t=>{var a;let s=WO(t);return(a=s&&BO(t,s))!==null&&a!==void 0?a:t.continue()}}),Rs.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":Ac,Body:(t,a)=>({from:t.from+1,to:t.to-(t.to==a.doc.length?0:1)}),"String FormatString":(t,a)=>({from:a.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 QC(){return new ws(HO,[HO.data.of({autocomplete:bC}),HO.data.of({autocomplete:SC})])}const Io={javascript:()=>Qf({jsx:!0,typescript:!1}),typescript:()=>Qf({jsx:!0,typescript:!0}),css:()=>Cv(),html:()=>Kv(),json:()=>gz(),markdown:()=>aR(),python:()=>QC()},jC=Xl.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 r0({content:t,language:a,onChange:s,onSave:l}){const o=v.useRef(null),u=v.useRef(null),d=v.useRef(new Mj),O=v.useRef(s),h=v.useRef(l);return O.current=s,h.current=l,v.useEffect(()=>{if(!o.current)return;const p=Io[a]||Io.javascript,x=cf.of([{key:"Mod-s",run:()=>{var y;return(y=h.current)==null||y.call(h),!0}}]),g=_0.create({doc:t||"",extensions:[Uj(),Vj(),Gj(),Lj(),Dj(),Wj(),Bj(),cf.of([...Hj,...Ij,...Fj]),x,Yj,jC,d.current.of(p()),Xl.updateListener.of(y=>{var Q;y.docChanged&&((Q=O.current)==null||Q.call(O,y.state.doc.toString()))})]}),b=new Xl({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=Io[a]||Io.javascript;p.dispatch({effects:d.current.reconfigure(x())})},[a]),r.jsx("div",{ref:o,className:"w-full h-full overflow-hidden"})}const kC=["png","jpg","jpeg","gif","svg","webp","ico","bmp","avif"],Zy=["mp4","webm","mov","avi","mkv","ogv"];function wC(t){var s;const a=(s=t.split(".").pop())==null?void 0:s.toLowerCase();return kC.includes(a)||Zy.includes(a)}function $C({path:t}){var u;const a=(u=t.split(".").pop())==null?void 0:u.toLowerCase(),s=`/api/files/raw?path=${encodeURIComponent(t)}`,l=t.split("/").pop(),o=Zy.includes(a);return r.jsxs("div",{className:"w-full h-full flex flex-col items-center justify-center bg-surface-0 p-8 gap-4",children:[r.jsxs("div",{className:"flex items-center gap-2 text-xs text-text-3 font-sans",children:[r.jsx(Xe,{children:a==null?void 0:a.toUpperCase()}),r.jsx("span",{className:"font-mono",children:l}),r.jsx("a",{href:s,target:"_blank",rel:"noopener",className:"text-accent hover:text-accent/80 transition-colors",children:r.jsx(vc,{size:12})})]}),o?r.jsx("video",{src:s,controls:!0,className:"max-w-full max-h-[70vh] rounded-md border border-border"}):r.jsx("img",{src:s,alt:l,className:"max-w-full max-h-[70vh] rounded-md border border-border object-contain"})]})}function TC(t){var s;const a=(s=t==null?void 0:t.split(".").pop())==null?void 0:s.toLowerCase();return a==="html"||a==="htm"}function NC(){const t=D(j=>j.editorActiveFile),a=D(j=>j.editorFiles),s=D(j=>j.editorChangedFiles),l=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(()=>{J.get("/files/root").then(j=>h(j.root||"")).catch(()=>{})},[]),v.useEffect(()=>{x(!1)},[t]);const y=t?a[t]:null,Q=t&&wC(t),k=t&&TC(t),$=t&&s[t];return r.jsxs("div",{className:"flex h-full",children:[r.jsx("div",{className:"w-60 flex-shrink-0 border-r border-border",children:r.jsx(WP,{rootDir:O})}),r.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[r.jsx(BP,{}),r.jsxs("div",{className:"flex-1 relative min-h-0",children:[$&&r.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:[r.jsx(gi,{size:14,className:"text-warning"}),r.jsx("span",{className:"text-xs text-warning font-sans flex-1",children:"File modified externally"}),r.jsxs(ve,{variant:"ghost",size:"sm",onClick:()=>u(t),children:[r.jsx(Rn,{size:12})," Reload"]}),r.jsxs(ve,{variant:"ghost",size:"sm",onClick:()=>d(t),children:[r.jsx(Qt,{size:12})," Dismiss"]})]}),!t&&r.jsx("div",{className:"w-full h-full flex items-center justify-center text-text-4 font-sans",children:r.jsxs("div",{className:"text-center space-y-2",children:[r.jsx(ns,{size:32,className:"mx-auto"}),r.jsx("p",{className:"text-sm",children:"Open a file from the tree"})]})}),t&&Q&&r.jsx($C,{path:t}),t&&!Q&&k&&r.jsxs(r.Fragment,{children:[r.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:[r.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:[r.jsx(aT,{size:12})," Code"]}),r.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:[r.jsx(Dl,{size:12})," Preview"]})]}),p?r.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&&r.jsx(r0,{content:y.content,language:y.language,onChange:j=>l(t,j),onSave:()=>o(t)})]}),t&&!Q&&!k&&y&&r.jsx(r0,{content:y.content,language:y.language,onChange:j=>l(t,j),onSave:()=>o(t)})]})]})]})}function PC(){var k;const t=D($=>$.connected),a=D($=>$.agents),[s,l]=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 $=!0;async function j(){try{const N=await J.get("/dashboard");if(!$)return;l(N),u(!1),h.current=Date.now(),O(_=>{var F,se,ie,W,P,B,E,ce,ee;const G=Date.now(),R=(be,Se)=>[...be.slice(-59),{t:G,v:Se||0}],X=((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=X+T,M=((W=N.tokens)==null?void 0:W.totalInputTokens)||0,ae=((P=N.tokens)==null?void 0:P.totalOutputTokens)||0;return{tokens:R(_.tokens,X),cost:R(_.cost,(B=N.tokens)==null?void 0:B.totalCostUsd),saved:R(_.saved,T),efficiency:R(_.efficiency,Y>0?T/Y*100:0),cache:R(_.cache,(E=N.tokens)==null?void 0:E.cacheHitRate),inputOutput:R(_.inputOutput,ae>0?M/ae:0),agents:R(_.agents,((ce=N.agents)==null?void 0:ce.running)||0),turns:R(_.turns,(ee=N.tokens)==null?void 0:ee.totalTurns)}})}catch{$&&u(!1)}}j();const z=setInterval(j,4e3);return()=>{$=!1,clearInterval(z)}},[t]);const p=((k=s==null?void 0:s.agents)==null?void 0:k.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:a,connected:t,kpiHistory:d,lastFetch:h.current,agentBreakdown:p,routing:x,rotation:g,adaptive:b,journalist:y,rotating:Q}}const i0=v.memo(function({connected:a,runningCount:s,totalCount:l,uptime:o,lastFetch:u,activeTeam:d}){return r.jsxs("div",{className:"flex items-center gap-4 px-4 py-2 bg-surface-1 border-b border-border",children:[r.jsx("h2",{className:"text-xs font-semibold text-text-0 font-sans tracking-wide uppercase",children:"Command Center"}),d&&r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"text-text-4",children:"/"}),r.jsx("span",{className:"text-xs font-mono text-text-2",children:d.name})]}),r.jsx("div",{className:"flex-1"}),a&&r.jsxs("div",{className:"flex items-center gap-3.5 text-xs font-mono text-text-2",children:[r.jsxs("span",{children:[r.jsx("span",{className:"text-text-1",children:s}),r.jsxs("span",{className:"text-text-3",children:["/",l]}),r.jsx("span",{className:"ml-1 text-text-3",children:"agents"})]}),o>0&&r.jsxs("span",{className:"text-text-3",children:["Up ",Wc(o)]}),u>0&&r.jsxs("span",{className:"flex items-center gap-1 text-text-4",children:[r.jsx(Rn,{size:9}),r.jsx("span",{children:vt(u)})]})]}),r.jsx(Ts,{status:a?"running":"crashed",size:"sm"})]})});function Gt(t,a){const s=parseInt(t.slice(1,3),16),l=parseInt(t.slice(3,5),16),o=parseInt(t.slice(5,7),16);return`rgba(${s},${l},${o},${a})`}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 zC({data:t,color:a=me.accent,width:s=72,height:l=22}){if(!t||t.length<2)return r.jsx("div",{style:{width:s,height:l}});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=l-(x.v-u)/O*(l-2)-1;return`${b},${y}`}).join(" "),p=`kpi-${a.replace("#","")}`;return r.jsxs("svg",{width:s,height:l,className:"flex-shrink-0",children:[r.jsx("defs",{children:r.jsxs("linearGradient",{id:p,x1:"0",y1:"0",x2:"0",y2:"1",children:[r.jsx("stop",{offset:"0%",stopColor:a,stopOpacity:"0.2"}),r.jsx("stop",{offset:"100%",stopColor:a,stopOpacity:"0"})]})}),r.jsx("polygon",{points:`0,${l} ${h} ${s},${l}`,fill:`url(#${p})`}),r.jsx("polyline",{points:h,fill:"none",stroke:a,strokeWidth:"1.5",strokeLinejoin:"round",strokeOpacity:"0.8"})]})}const RC=v.memo(function({label:a,value:s,sparkData:l,color:o=me.accent,className:u}){return r.jsxs("div",{className:re("flex items-center gap-2.5 px-3 py-2.5 min-w-0","bg-surface-1",u),children:[r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5 truncate",children:a}),r.jsx("div",{className:"text-base font-semibold font-mono text-text-0 tabular-nums leading-none",children:s})]}),r.jsx(zC,{data:l,color:o})]})});function CC({kpis:t}){return r.jsx("div",{className:"flex flex-wrap border-b border-border",style:{background:"var(--color-surface-0)"},children:t.map(a=>r.jsx(RC,{label:a.label,value:a.value,sparkData:a.sparkData,color:a.color,className:re("flex-1 basis-[12.5%] min-w-[140px]","border-b border-r border-border")},a.label))})}const XC={actual:"ACT",estimated:"EST",local:"LOC"};function _C(t){if(!t||t==="auto"||t==="default")return"default";const a=t.match(/^claude-(opus|sonnet|haiku)-(\d+)-(\d+)/);return a?`${a[1][0].toUpperCase()}${a[1].slice(1)} ${a[2]}.${a[3]}`:t.startsWith("gemini-")?t.replace("gemini-","Gem ").replace("-preview",""):t.length>12?t.slice(0,12)+"...":t}const AC=v.memo(function({agent:a,isRotating:s}){const l=a.status==="running"||a.status==="starting",o=Math.round((a.contextUsage||0)*100),u=s?"#c678dd":ch(a.status),d=a.quality,O=(d==null?void 0:d.toolSuccessRate)!=null?Math.round(d.toolSuccessRate*100):null,h=a.rotationThreshold?Math.round(a.rotationThreshold*100):null,p=Dc(a.role),x=o>80?me.danger:o>60?me.warning:me.accent;return r.jsxs("div",{className:"px-3 pl-6 py-2 hover:bg-[rgba(51,175,188,0.06)] transition-colors space-y-1.5",children:[r.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[r.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[r.jsx("span",{className:"absolute inset-0 rounded-sm",style:{background:u}}),l&&r.jsx("span",{className:"absolute inset-[-2px] rounded-sm",style:{background:u,opacity:.15,animation:"node-pulse-bar 2s ease-in-out infinite"}})]}),r.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate leading-none flex-shrink-0 max-w-[80px]",children:a.name}),r.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:(a.role||"").toLowerCase()}),r.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:_C(a.model)}),r.jsx("div",{className:"flex-1"}),O!=null&&r.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,"%"]}),a.costSource&&a.costSource!=="actual"&&r.jsx("span",{className:"text-2xs font-mono text-text-4 uppercase tracking-wider flex-shrink-0",children:XC[a.costSource]||""}),r.jsxs("div",{className:"text-right flex-shrink-0",children:[r.jsx("div",{className:"text-xs font-mono text-text-1 tabular-nums leading-none",children:Ke(a.tokens||0)}),(a.costUsd||0)>0&&r.jsx("div",{className:"text-2xs font-mono text-text-3 mt-0.5",children:vi(a.costUsd)})]})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("div",{className:"relative flex-1 h-[4px] rounded-full overflow-visible",style:{background:Gt(me.accent,.12)},children:[r.jsx("div",{className:"absolute inset-y-0 left-0 rounded-full transition-all duration-700",style:{width:`${Math.max(o,1)}%`,background:x}}),h&&r.jsx("div",{className:"absolute top-[-2px] w-px h-[8px]",style:{left:`${h}%`,background:me.purple},title:`Rotation at ${h}%`})]}),r.jsxs("span",{className:"text-2xs font-mono text-text-2 tabular-nums flex-shrink-0 w-7 text-right",children:[o,"%"]})]})]})});function ZC({team:t,members:a,rotatingSet:s}){const[l,o]=v.useState(!0),u=a.filter(p=>p.status==="running"||p.status==="starting").length,d=u>0,O=a.reduce((p,x)=>p+(x.tokens||0),0),h=a.reduce((p,x)=>p+(x.costUsd||0),0);return r.jsxs("div",{children:[r.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:[l?r.jsx(Pn,{size:10,className:"text-text-4 flex-shrink-0"}):r.jsx(_s,{size:10,className:"text-text-4 flex-shrink-0"}),r.jsx("span",{className:"text-2xs font-mono font-semibold text-text-2 uppercase tracking-widest flex-1 truncate",children:t==="ungrouped"?"Ungrouped":t}),r.jsx("span",{className:"text-2xs font-mono text-text-3 tabular-nums",children:Ke(O)}),h>0&&r.jsx("span",{className:"text-2xs font-mono text-text-4 tabular-nums ml-1",children:vi(h)}),r.jsxs("span",{className:"text-2xs font-mono tabular-nums flex-shrink-0 ml-1.5",style:{color:d?me.accent:void 0},children:[u,"/",a.length]})]}),l&&a.map(p=>r.jsx(AC,{agent:p,isRotating:s.has(p.id)},p.id))]})}const EC=v.memo(function({agentBreakdown:a,rotating:s=[]}){if(!(a!=null&&a.length))return r.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono p-4",children:"No agents"});const l={};for(const u of a){const d=u.teamId||"ungrouped";l[d]||(l[d]=[]),l[d].push(u)}const o=new Set(s);return r.jsx(fa,{className:"flex-1",children:r.jsx("div",{className:"py-1",children:Object.entries(l).map(([u,d])=>r.jsx(ZC,{team:u,members:d,rotatingSet:o},u))})})}),qC=v.memo(function({data:a}){const s=v.useRef(null),l=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(()=>!a||a.length<2?[]:a.slice(1).map(($,j)=>{const z=a[j],N=($.t-z.t)/6e4,_=Math.max(($.tokens||0)-(z.tokens||0),0);return{burnRate:N>0?Math.round(_/N):0,cacheHitRate:$.cacheHitRate||0,running:$.running||0,agents:$.agents||0,t:$.t}}),[a]);v.useEffect(()=>{const $=s.current;if(!$)return;const j=new ResizeObserver(z=>{const{width:N,height:_}=z[0].contentRect;N>0&&_>0&&u({width:Math.floor(N),height:Math.floor(_)})});return j.observe($),()=>j.disconnect()},[]);const Q=v.useCallback($=>{const j=l.current;if(!j||!y.length||g<=0)return;const z=j.getBoundingClientRect(),N=$.clientX-z.left-x.left;if(N<0||N>g){O(null);return}const _=Math.round(N/g*(y.length-1));O({x:x.left+_/Math.max(y.length-1,1)*g,index:_})},[y,g,x.left]),k=v.useCallback(()=>O(null),[]);return v.useEffect(()=>{const $=l.current;if(!$||!y.length||h<=0||p<=0||g<=0||b<=0)return;const j=$.getContext("2d"),z=window.devicePixelRatio||1;$.width=h*z,$.height=p*z,j.scale(z,z),j.clearRect(0,0,h,p);const N=y.map(P=>P.burnRate),_=y.map(P=>P.cacheHitRate),G=y.map(P=>P.running),R=Math.max(...N,100),X=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/X*b*.3,ce=T(P)-ae/2,ee=x.top+b-E;j.fillStyle=Gt(me.surface5,.5),j.fillRect(ce,ee,ae,E)}j.setLineDash([2,4]),j.strokeStyle=Gt(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=Gt(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,Gt(me.accent,.2)),F.addColorStop(.7,Gt(me.accent,.04)),F.addColorStop(1,Gt(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=_.some(P=>P>0);if(se){j.beginPath(),j.strokeStyle=Gt(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(_[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=Gt(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=Gt(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=Gt(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:El(B.cacheHitRate*100),color:me.info},{label:"Agents",value:`${B.running}/${B.agents}`,color:me.text2}],ee=104,be=ce.length*16+12;let Se=P+12;Se+ee>h-8&&(Se=P-ee-12);const ye=Math.max(x.top,E-be/2);j.fillStyle=Gt(me.surface0,.92),j.beginPath(),j.roundRect(Se,ye,ee,be,4),j.fill(),j.strokeStyle=Gt(me.text4,.2),j.lineWidth=1,j.stroke(),j.textAlign="left",ce.forEach((Re,H)=>{const ue=ye+14+H*16;j.beginPath(),j.arc(Se+8,ue-3,2,0,Math.PI*2),j.fillStyle=Re.color,j.fill(),j.font="8px 'Inter Variable', sans-serif",j.fillStyle=me.text3,j.fillText(Re.label,Se+14,ue),j.font="9px 'JetBrains Mono Variable', monospace",j.fillStyle=me.text0,j.textAlign="right",j.fillText(Re.value,Se+ee-8,ue),j.textAlign="left"})}},[y,h,p,d,g,b,x]),r.jsx("div",{ref:s,className:"absolute inset-0",children:h>0&&p>0&&r.jsx("canvas",{ref:l,style:{width:h,height:p},className:"block cursor-crosshair",onMouseMove:Q,onMouseLeave:k})})}),MC=v.memo(function({cacheRead:a=0,cacheCreation:s=0,totalInput:l=0,size:o=140}){const u=v.useRef(null),d=a+s+l,O=d>0?a/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,k=135*Math.PI/180,$=405*Math.PI/180,j=$-k;if(x.beginPath(),x.arc(g,b,y,k,$),x.strokeStyle=me.surface4,x.lineWidth=Q,x.lineCap="round",x.stroke(),d>0){const z=a/d,N=s/d;if(z>0){const _=k+j*z;x.beginPath(),x.arc(g,b,y,k,_),x.strokeStyle=me.accent,x.lineWidth=Q,x.lineCap="round",x.stroke()}if(N>0){const _=k+j*z,G=_+j*N;x.beginPath(),x.arc(g,b,y,_,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)},[a,s,l,o,d,O]),r.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-3 py-3",children:[r.jsx("canvas",{ref:u,className:"flex-shrink-0",style:{width:o,height:o}}),r.jsxs("div",{className:"w-full mt-3 space-y-1.5 max-w-[160px]",children:[r.jsx(IO,{color:me.accent,label:"Read",value:Ke(a)}),r.jsx(IO,{color:me.purple,label:"Create",value:Ke(s)}),r.jsx(IO,{color:me.surface5,label:"Miss",value:Ke(Math.max(l-a-s,0))})]})]})});function IO({color:t,label:a,value:s}){return r.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:t}}),r.jsx("span",{className:"text-text-3 uppercase tracking-wider flex-1",children:a}),r.jsx("span",{className:"text-text-1 tabular-nums",children:s})]})}const o0={heavy:me.danger,medium:me.warning,light:me.success},c0={heavy:"Heavy",medium:"Medium",light:"Light"},YC=v.memo(function({routing:a,agentBreakdown:s}){if(!a)return null;const{byTier:l={},totalDecisions:o=0,autoRoutedCount:u=0}=a,d=["heavy","medium","light"],O=d.reduce((g,b)=>g+(l[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 r.jsxs("div",{className:"flex flex-col h-full px-3 py-3 overflow-y-auto",children:[O>0&&r.jsxs("div",{className:"space-y-1.5 mb-3",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider",children:"Tier Distribution"}),r.jsxs("span",{className:"text-2xs font-mono text-text-4 ml-auto tabular-nums",children:[Ke(O)," decisions"]})]}),r.jsx("div",{className:"h-[6px] bg-surface-4 rounded-full overflow-hidden flex",children:d.map(g=>{const b=l[g]||0;if(b===0)return null;const y=b/O*100;return r.jsx("div",{className:"h-full transition-all duration-500",style:{width:`${y}%`,background:o0[g]},title:`${c0[g]}: ${b} (${Math.round(y)}%)`},g)})}),r.jsx("div",{className:"flex items-center gap-3",children:d.map(g=>{const b=l[g]||0;if(b===0)return null;const y=O>0?b/O*100:0;return r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:o0[g]}}),r.jsx("span",{className:"text-2xs font-mono text-text-2",children:c0[g]}),r.jsx("span",{className:"text-2xs font-mono text-text-4 tabular-nums",children:El(y)})]},g)})})]}),p.length>0&&r.jsxs("div",{className:"space-y-1.5 flex-1",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider",children:"Models in Use"}),u>0&&r.jsxs("span",{className:"text-2xs font-mono text-text-4 ml-auto",children:[u," auto"]})]}),r.jsx("div",{className:"space-y-1.5",children:p.map(([g,b])=>{const y=x>0?b.tokens/x*100:0;return r.jsxs("div",{className:"space-y-0.5",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-xs font-mono text-text-1 flex-1 truncate",children:UC(g)}),r.jsxs("span",{className:"text-2xs font-mono text-text-3 tabular-nums",children:[b.agents," agent",b.agents!==1?"s":""]}),r.jsx("span",{className:"text-xs font-mono text-text-1 tabular-nums",children:Ke(b.tokens)})]}),r.jsx("div",{className:"h-[3px] bg-surface-4 rounded-full overflow-hidden",children:r.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&&r.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono",children:"No routing data"})]})});function UC(t){if(!t||t==="auto"||t==="default")return"Default";const a=t.match(/^claude-(opus|sonnet|haiku)-(\d+)-(\d+)/);return a?`${a[1][0].toUpperCase()}${a[1].slice(1)} ${a[2]}.${a[3]}`:t.startsWith("gemini-")?t.replace("gemini-","Gemini ").replace("-preview",""):t}function VC(t){const a=t+"CollectionProvider",[s,l]=Cs(a),[o,u]=s(a,{collectionRef:{current:null},itemMap:new Map}),d=k=>{const{scope:$,children:j}=k,z=Ga.useRef(null),N=Ga.useRef(new Map).current;return r.jsx(o,{scope:$,itemMap:N,collectionRef:z,children:j})};d.displayName=a;const O=t+"CollectionSlot",h=dc(O),p=Ga.forwardRef((k,$)=>{const{scope:j,children:z}=k,N=u(O,j),_=it($,N.collectionRef);return r.jsx(h,{ref:_,children:z})});p.displayName=O;const x=t+"CollectionItemSlot",g="data-radix-collection-item",b=dc(x),y=Ga.forwardRef((k,$)=>{const{scope:j,children:z,...N}=k,_=Ga.useRef(null),G=it($,_),R=u(x,j);return Ga.useEffect(()=>(R.itemMap.set(_,{ref:_,...N}),()=>void R.itemMap.delete(_))),r.jsx(b,{[g]:"",ref:G,children:z})});y.displayName=x;function Q(k){const $=u(t+"CollectionConsumer",k);return Ga.useCallback(()=>{const z=$.collectionRef.current;if(!z)return[];const N=Array.from(z.querySelectorAll(`[${g}]`));return Array.from($.itemMap.values()).sort((R,X)=>N.indexOf(R.ref.current)-N.indexOf(X.ref.current))},[$.collectionRef,$.itemMap])}return[{Provider:d,Slot:p,ItemSlot:y},Q,l]}var FO="rovingFocusGroup.onEntryFocus",GC={bubbles:!1,cancelable:!0},yi="RovingFocusGroup",[Rf,Ey,LC]=VC(yi),[DC,qy]=Cs(yi,[LC]),[WC,BC]=DC(yi),My=v.forwardRef((t,a)=>r.jsx(Rf.Provider,{scope:t.__scopeRovingFocusGroup,children:r.jsx(Rf.Slot,{scope:t.__scopeRovingFocusGroup,children:r.jsx(HC,{...t,ref:a})})}));My.displayName=yi;var HC=v.forwardRef((t,a)=>{const{__scopeRovingFocusGroup:s,orientation:l,loop:o=!1,dir:u,currentTabStopId:d,defaultCurrentTabStopId:O,onCurrentTabStopIdChange:h,onEntryFocus:p,preventScrollOnEntryFocus:x=!1,...g}=t,b=v.useRef(null),y=it(a,b),Q=uh(u),[k,$]=Yc({prop:d,defaultProp:O??null,onChange:h,caller:yi}),[j,z]=v.useState(!1),N=zt(p),_=Ey(s),G=v.useRef(!1),[R,X]=v.useState(0);return v.useEffect(()=>{const T=b.current;if(T)return T.addEventListener(FO,N),()=>T.removeEventListener(FO,N)},[N]),r.jsx(WC,{scope:s,orientation:l,dir:Q,loop:o,currentTabStopId:k,onItemFocus:v.useCallback(T=>$(T),[$]),onItemShiftTab:v.useCallback(()=>z(!0),[]),onFocusableItemAdd:v.useCallback(()=>X(T=>T+1),[]),onFocusableItemRemove:v.useCallback(()=>X(T=>T-1),[]),children:r.jsx(Be.div,{tabIndex:j||R===0?-1:0,"data-orientation":l,...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(FO,GC);if(T.currentTarget.dispatchEvent(M),!M.defaultPrevented){const ae=_().filter(P=>P.focusable),F=ae.find(P=>P.active),se=ae.find(P=>P.id===k),W=[F,se,...ae].filter(Boolean).map(P=>P.ref.current);Vy(W,x)}}G.current=!1}),onBlur:qe(t.onBlur,()=>z(!1))})})}),Yy="RovingFocusGroupItem",Uy=v.forwardRef((t,a)=>{const{__scopeRovingFocusGroup:s,focusable:l=!0,active:o=!1,tabStopId:u,children:d,...O}=t,h=Tl(),p=u||h,x=BC(Yy,s),g=x.currentTabStopId===p,b=Ey(s),{onFocusableItemAdd:y,onFocusableItemRemove:Q,currentTabStopId:k}=x;return v.useEffect(()=>{if(l)return y(),()=>Q()},[l,y,Q]),r.jsx(Rf.ItemSlot,{scope:s,id:p,focusable:l,active:o,children:r.jsx(Be.span,{tabIndex:g?0:-1,"data-orientation":x.orientation,...O,ref:a,onMouseDown:qe(t.onMouseDown,$=>{l?x.onItemFocus(p):$.preventDefault()}),onFocus:qe(t.onFocus,()=>x.onItemFocus(p)),onKeyDown:qe(t.onKeyDown,$=>{if($.key==="Tab"&&$.shiftKey){x.onItemShiftTab();return}if($.target!==$.currentTarget)return;const j=KC($,x.orientation,x.dir);if(j!==void 0){if($.metaKey||$.ctrlKey||$.altKey||$.shiftKey)return;$.preventDefault();let N=b().filter(_=>_.focusable).map(_=>_.ref.current);if(j==="last")N.reverse();else if(j==="prev"||j==="next"){j==="prev"&&N.reverse();const _=N.indexOf($.currentTarget);N=x.loop?JC(N,_+1):N.slice(_+1)}setTimeout(()=>Vy(N))}}),children:typeof d=="function"?d({isCurrentTabStop:g,hasTabStop:k!=null}):d})})});Uy.displayName=Yy;var IC={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function FC(t,a){return a!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function KC(t,a,s){const l=FC(t.key,s);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(l))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(l)))return IC[l]}function Vy(t,a=!1){const s=document.activeElement;for(const l of t)if(l===s||(l.focus({preventScroll:a}),document.activeElement!==s))return}function JC(t,a){return t.map((s,l)=>t[(a+l)%t.length])}var eX=My,tX=Uy,Kc="Tabs",[nX]=Cs(Kc,[qy]),Gy=qy(),[aX,Th]=nX(Kc),Ly=v.forwardRef((t,a)=>{const{__scopeTabs:s,value:l,onValueChange:o,defaultValue:u,orientation:d="horizontal",dir:O,activationMode:h="automatic",...p}=t,x=uh(O),[g,b]=Yc({prop:l,onChange:o,defaultProp:u??"",caller:Kc});return r.jsx(aX,{scope:s,baseId:Tl(),value:g,onValueChange:b,orientation:d,dir:x,activationMode:h,children:r.jsx(Be.div,{dir:x,"data-orientation":d,...p,ref:a})})});Ly.displayName=Kc;var Dy="TabsList",Wy=v.forwardRef((t,a)=>{const{__scopeTabs:s,loop:l=!0,...o}=t,u=Th(Dy,s),d=Gy(s);return r.jsx(eX,{asChild:!0,...d,orientation:u.orientation,dir:u.dir,loop:l,children:r.jsx(Be.div,{role:"tablist","aria-orientation":u.orientation,...o,ref:a})})});Wy.displayName=Dy;var By="TabsTrigger",Hy=v.forwardRef((t,a)=>{const{__scopeTabs:s,value:l,disabled:o=!1,...u}=t,d=Th(By,s),O=Gy(s),h=Ky(d.baseId,l),p=Jy(d.baseId,l),x=l===d.value;return r.jsx(tX,{asChild:!0,...O,focusable:!o,active:x,children:r.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:a,onMouseDown:qe(t.onMouseDown,g=>{!o&&g.button===0&&g.ctrlKey===!1?d.onValueChange(l):g.preventDefault()}),onKeyDown:qe(t.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&d.onValueChange(l)}),onFocus:qe(t.onFocus,()=>{const g=d.activationMode!=="manual";!x&&!o&&g&&d.onValueChange(l)})})})});Hy.displayName=By;var Iy="TabsContent",Fy=v.forwardRef((t,a)=>{const{__scopeTabs:s,value:l,forceMount:o,children:u,...d}=t,O=Th(Iy,s),h=Ky(O.baseId,l),p=Jy(O.baseId,l),x=l===O.value,g=v.useRef(x);return v.useEffect(()=>{const b=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(b)},[]),r.jsx(vn,{present:o||x,children:({present:b})=>r.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:a,style:{...t.style,animationDuration:g.current?"0s":void 0},children:b&&u})})});Fy.displayName=Iy;function Ky(t,a){return`${t}-trigger-${a}`}function Jy(t,a){return`${t}-content-${a}`}var sX=Ly,lX=Wy,rX=Hy,iX=Fy;function eS({children:t,...a}){return r.jsx(sX,{...a,children:t})}function tS({children:t,className:a,...s}){return r.jsx(lX,{className:re("flex items-center gap-0 border-b border-border-subtle",a),...s,children:t})}function zl({children:t,className:a,...s}){return r.jsx(rX,{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",a),...s,children:t})}function Rl({children:t,className:a,...s}){return r.jsx(iX,{className:re("flex-1 min-h-0",a),...s,children:t})}function u0({data:t,color:a=me.accent,width:s=60,height:l=16}){if(!t||t.length<2)return r.jsx("div",{style:{width:s,height:l}});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=l-(p-u)/O*(l-2)-1;return`${g},${b}`}).join(" ");return r.jsx("svg",{width:s,height:l,className:"flex-shrink-0",children:r.jsx("polyline",{points:h,fill:"none",stroke:a,strokeWidth:"1",strokeLinejoin:"round",strokeOpacity:"0.7"})})}function KO({label:t,value:a,total:s,color:l}){const o=s>0?a/s*100:0;return r.jsxs("div",{className:"space-y-1",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-xs font-mono text-text-2",children:t}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("span",{className:"text-xs font-mono font-semibold tabular-nums",style:{color:l},children:[Math.round(o),"%"]}),r.jsx("span",{className:"text-2xs font-mono text-text-3 tabular-nums w-10 text-right",children:Ke(a)})]})]}),r.jsx("div",{className:"h-[7px] rounded-full overflow-hidden",style:{background:"rgba(51,175,188,0.08)"},children:r.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${Math.min(o,100)}%`,background:l}})})]})}function oX({tokens:t,rotation:a}){const s=(t==null?void 0:t.savings)||{},l=s.total||0,u=((t==null?void 0:t.totalTokens)||0)+l,d=u>0?Math.round(l/u*100):0,O=((a==null?void 0:a.history)||[]).slice(-10).reverse();return r.jsxs("div",{className:"p-3 space-y-4",children:[r.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[r.jsxs("div",{className:"bg-surface-0 rounded p-2.5",children:[r.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Rotations"}),r.jsx("div",{className:"text-2xl font-mono font-bold text-text-0 tabular-nums leading-none",children:(a==null?void 0:a.totalRotations)||0})]}),r.jsxs("div",{className:"bg-surface-0 rounded p-2.5",children:[r.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Saved"}),r.jsx("div",{className:"text-2xl font-mono font-bold tabular-nums leading-none",style:{color:"#4ae168"},children:Ke(l)})]}),r.jsxs("div",{className:"bg-surface-0 rounded p-2.5",children:[r.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Efficiency"}),r.jsxs("div",{className:"text-2xl font-mono font-bold tabular-nums leading-none",style:{color:"#33afbc"},children:[d,"%"]})]})]}),r.jsxs("div",{className:"space-y-2.5",children:[r.jsx(KO,{label:"Rotation",value:s.fromRotation||0,total:u,color:me.accent}),r.jsx(KO,{label:"Conflict prevention",value:s.fromConflictPrevention||0,total:u,color:"#4ec9d4"}),r.jsx(KO,{label:"Cold-start skip",value:s.fromColdStartSkip||0,total:u,color:me.info})]}),O.length>0?r.jsxs("div",{children:[r.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-2.5",children:"Recent Rotations"}),r.jsx("div",{className:"space-y-0",children:O.map((h,p)=>r.jsxs("div",{className:"flex items-start gap-2.5",children:[r.jsxs("div",{className:"flex flex-col items-center flex-shrink-0",children:[r.jsx("div",{className:"h-1.5"}),r.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&&r.jsx("div",{className:"w-px flex-1 mt-1",style:{background:"rgba(51,175,188,0.15)",minHeight:"12px"}})]}),r.jsx("div",{className:re("flex-1 bg-surface-0 rounded px-2 py-1.5",p<O.length-1&&"mb-2"),children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-xs font-mono text-text-1 font-medium capitalize truncate flex-1",children:h.agentName||h.role}),r.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:El((h.contextUsage||0)*100)}),r.jsx("span",{className:"text-2xs font-mono text-text-4 flex-shrink-0",children:vt(h.timestamp)})]})})]},p))})]}):r.jsxs("div",{className:"bg-surface-0 rounded p-3 text-center space-y-1.5",children:[r.jsx("div",{className:"text-xs font-mono text-text-2 font-semibold",children:"No rotations yet"}),r.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 cX({adaptive:t}){if(!(t!=null&&t.length))return r.jsx("div",{className:"p-3",children:r.jsxs("div",{className:"bg-surface-0 rounded p-4 text-center space-y-2",children:[r.jsx("div",{className:"text-xs font-mono text-text-2 font-semibold",children:"No adaptive profiles yet"}),r.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 a(s){const l=s.split(":");return{provider:l[0]||s,role:l[1]||""}}return r.jsx("div",{className:"p-3 space-y-3",children:t.map(s=>{var x,g;const{provider:l,role:o}=a(s.key),u=o||l,d=((x=s.thresholdHistory)==null?void 0:x.length)>1,O=((g=s.recentScores)==null?void 0:g.length)>1,h=Dc(u),p=s.lastSignals;return r.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:[r.jsxs("div",{className:"flex items-center gap-2 px-3 pt-2.5 pb-1.5",children:[r.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&&r.jsx("span",{className:"text-2xs font-mono text-text-4 bg-surface-4 px-1.5 py-px rounded-sm",children:l}),r.jsx("div",{className:"flex-1"}),r.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&&r.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"]})]}),r.jsxs("div",{className:"flex items-end gap-5 px-3 pb-2",children:[r.jsxs("div",{children:[r.jsx("div",{className:"text-2xs font-mono text-text-4 uppercase tracking-wider mb-0.5",children:"Threshold"}),r.jsx("div",{className:"text-3xl font-mono font-bold tabular-nums leading-none",style:{color:s.converged?"#33afbc":"#e5c07b"},children:El(s.threshold*100)})]}),r.jsxs("div",{className:"pb-0.5",children:[r.jsx("div",{className:"text-2xs font-mono text-text-4 uppercase tracking-wider mb-0.5",children:"Adj."}),r.jsx("div",{className:"text-lg font-mono font-semibold text-text-1 tabular-nums",children:s.adjustments})]})]}),(d||O)&&r.jsxs("div",{className:"px-3 pb-2 space-y-2 overflow-hidden",children:[d&&r.jsxs("div",{children:[r.jsx("div",{className:"text-2xs font-mono text-text-4 mb-0.5",children:"Threshold history"}),r.jsx(u0,{data:s.thresholdHistory.map(b=>b.v),color:s.converged?me.accent:me.warning,width:240,height:32})]}),O&&r.jsxs("div",{children:[r.jsx("div",{className:"text-2xs font-mono text-text-4 mb-0.5",children:"Quality score"}),r.jsx(u0,{data:s.recentScores,color:me.warning,width:240,height:24})]})]}),p&&r.jsxs("div",{className:"flex flex-wrap gap-1.5 px-3 pb-2.5",children:[p.errorCount!=null&&r.jsxs("span",{className:"text-2xs font-mono px-1.5 py-px rounded-sm bg-surface-4 text-text-3",children:["Errors: ",r.jsx("span",{className:"text-danger",children:p.errorCount})]}),p.toolSuccessRate!=null&&r.jsxs("span",{className:"text-2xs font-mono px-1.5 py-px rounded-sm bg-surface-4 text-text-3",children:["Tools: ",r.jsxs("span",{className:"text-text-1",children:[Math.round(p.toolSuccessRate*100),"%"]})]}),p.fileChurn!=null&&r.jsxs("span",{className:"text-2xs font-mono px-1.5 py-px rounded-sm bg-surface-4 text-text-3",children:["Churn: ",r.jsx("span",{className:"text-text-1",children:p.fileChurn})]}),p.repetitions!=null&&r.jsxs("span",{className:"text-2xs font-mono px-1.5 py-px rounded-sm bg-surface-4 text-text-3",children:["Reps: ",r.jsx("span",{className:"text-warning",children:p.repetitions})]})]})]},s.key)})})}function uX({journalist:t}){var a;return t?r.jsx("div",{children:r.jsxs("div",{className:"p-3 space-y-3",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsxs("div",{children:[r.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5",children:"Cycles"}),r.jsx("div",{className:"text-lg font-mono font-semibold text-text-0 tabular-nums leading-none",children:t.cycleCount||0})]}),t.lastCycleAt&&r.jsxs("div",{children:[r.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5",children:"Last"}),r.jsx("div",{className:"text-xs font-mono text-text-2",children:vt(t.lastCycleAt)})]}),t.synthesizing&&r.jsx("span",{className:"text-2xs font-mono font-bold text-accent uppercase tracking-wider animate-pulse",children:"Synthesizing"})]}),t.lastSummary&&r.jsxs("div",{children:[r.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Summary"}),r.jsx("div",{className:"text-xs font-sans text-text-2 leading-relaxed",children:t.lastSummary})]}),t.projectMap&&r.jsxs("div",{children:[r.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Project Map"}),r.jsx("div",{className:"text-xs font-mono text-text-2 leading-relaxed whitespace-pre-wrap",children:t.projectMap})]}),t.decisions&&r.jsxs("div",{children:[r.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Decisions"}),r.jsx("div",{className:"text-xs font-mono text-text-2 leading-relaxed whitespace-pre-wrap",children:t.decisions})]}),((a=t.recentHistory)==null?void 0:a.length)>0&&r.jsxs("div",{children:[r.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1.5",children:"History"}),r.jsx("div",{className:"space-y-1",children:t.recentHistory.slice().reverse().map((s,l)=>r.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono px-2 py-1 bg-surface-0 rounded",children:[r.jsxs("span",{className:"text-text-3",children:["#",s.cycle]}),r.jsxs("span",{className:"text-text-2 flex-1 truncate",children:[s.agentCount," agents"]}),r.jsx("span",{className:"text-text-4",children:vt(s.timestamp)})]},l))})]})]})}):r.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono p-4",children:"Journalist inactive"})}const dX=v.memo(function({tokens:a,rotation:s,adaptive:l,journalist:o}){return r.jsxs(eS,{defaultValue:"rotation",className:"flex flex-col h-full",children:[r.jsxs(tS,{className:"flex-shrink-0 px-1",children:[r.jsxs(zl,{value:"rotation",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[r.jsx(Wl,{size:11}),"Rotation"]}),r.jsxs(zl,{value:"adaptive",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[r.jsx(T$,{size:11}),"Adaptive"]}),r.jsxs(zl,{value:"journalist",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[r.jsx(lh,{size:11}),"Journalist"]})]}),r.jsx(Rl,{value:"rotation",className:"flex-1 min-h-0 relative",children:r.jsx("div",{className:"absolute inset-0 overflow-y-auto",children:r.jsx(oX,{tokens:a,rotation:s})})}),r.jsx(Rl,{value:"adaptive",className:"flex-1 min-h-0 relative",children:r.jsx("div",{className:"absolute inset-0 overflow-y-auto",children:r.jsx(cX,{adaptive:l})})}),r.jsx(Rl,{value:"journalist",className:"flex-1 min-h-0 relative",children:r.jsx("div",{className:"absolute inset-0 overflow-y-auto",children:r.jsx(uX,{journalist:o})})})]})}),OX={spawn:qN,complete:ni,crash:gi,kill:_b,rotate:Wl,error:ih},fX={spawn:"text-accent",complete:"text-success",crash:"text-danger",kill:"text-text-3",rotate:"text-purple",error:"text-danger"};function hX(t){const a=t.agentName||t.role||"";switch(t.type){case"spawn":return`${a} spawned`;case"complete":return`${a} completed`;case"crash":return`${a} crashed`;case"kill":return`${a} killed`;case"rotate":return`${a} rotated`;default:return t.text||t.type||"event"}}const mX=v.memo(function({events:a=[]}){return a.length?r.jsx("div",{className:"flex items-center gap-3 overflow-x-auto py-2 px-3",children:a.slice(-15).reverse().map((s,l)=>{const o=OX[s.type]||Cn,u=fX[s.type]||"text-text-3",d=hX(s);return r.jsxs("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[r.jsx(o,{size:11,className:u}),r.jsx("span",{className:"text-xs font-sans text-text-2 whitespace-nowrap",children:d}),r.jsx("span",{className:"text-2xs font-mono text-text-4",children:vt(s.t||s.timestamp)})]},l)})}):r.jsx("div",{className:"text-xs text-text-3 font-mono py-2.5 text-center",children:"No recent activity"})});function rn({className:t,...a}){return r.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),...a})}function pX(){return r.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:[r.jsx("div",{className:"col-span-3",children:r.jsx(rn,{className:"h-[72px] rounded-none"})}),r.jsx(rn,{className:"rounded-none"}),r.jsx(rn,{className:"rounded-none"}),r.jsx(rn,{className:"rounded-none"}),r.jsx(rn,{className:"rounded-none"}),r.jsx("div",{className:"col-span-2",children:r.jsx(rn,{className:"h-full rounded-none"})})]})}function xX(){const{data:t,loading:a,agents:s,connected:l,kpiHistory:o,lastFetch:u,agentBreakdown:d,routing:O,rotation:h,adaptive:p,journalist:x,rotating:g}=PC(),b=s.filter(R=>R.status==="running").length;if(!l)return r.jsx("div",{className:"w-full h-full flex items-center justify-center",children:r.jsxs("div",{className:"text-center space-y-2 text-text-3 font-mono",children:[r.jsx(Gc,{size:28,className:"mx-auto"}),r.jsx("p",{className:"text-xs",children:"Connecting to daemon..."})]})});if(a||!t)return r.jsxs("div",{className:"flex flex-col h-full",children:[r.jsx(i0,{connected:l,runningCount:0,totalCount:0,uptime:0,lastFetch:0}),r.jsx(pX,{})]});const y=t.tokens||{},Q={totalTokens:y.totalTokens||0,totalCostUsd:y.totalCostUsd||0,totalInputTokens:y.totalInputTokens||0,totalOutputTokens:y.totalOutputTokens||0,cacheReadTokens:y.cacheReadTokens||0,cacheCreationTokens:y.cacheCreationTokens||0,cacheHitRate:y.cacheHitRate||0,totalTurns:y.totalTurns||0,agentCount:y.agentCount||0,savings:y.savings||{}},k=Q.totalTokens+(Q.savings.total||0),$=k>0?(Q.savings.total||0)/k*100:0,j=Q.totalOutputTokens>0?(Q.totalInputTokens/Q.totalOutputTokens).toFixed(1):"—",z=t.timeline||{},N=z.snapshots||[],_=z.events||t.events||[],G=[{label:"Tokens Used",value:Ke(Q.totalTokens),sparkData:o.tokens,color:me.accent},{label:"Total Cost",value:vi(Q.totalCostUsd),sparkData:o.cost,color:me.warning},{label:"Tokens Saved",value:Ke(Q.savings.total||0),sparkData:o.saved,color:me.success},{label:"Efficiency",value:El($),sparkData:o.efficiency,color:me.purple},{label:"Cache Rate",value:El(Q.cacheHitRate*100),sparkData:o.cache,color:me.info},{label:"I/O Ratio",value:`${j}:1`,sparkData:o.inputOutput,color:me.orange},{label:"Agents",value:`${b}/${s.length}`,sparkData:o.agents,color:me.accent},{label:"Turns",value:Ke(Q.totalTurns),sparkData:o.turns,color:me.text2}];return r.jsxs("div",{className:"flex flex-col h-full",children:[r.jsx(i0,{connected:l,runningCount:b,totalCount:s.length,uptime:t.uptime||0,lastFetch:u,activeTeam:t.activeTeam}),r.jsx(CC,{kpis:G}),r.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:[r.jsx("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 relative",children:r.jsx(qC,{data:N})}),r.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-l border-border",children:[r.jsx("div",{className:"px-3 pt-2.5 pb-1",children:r.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Cache Performance"})}),r.jsx(MC,{cacheRead:Q.cacheReadTokens,cacheCreation:Q.cacheCreationTokens,totalInput:Q.totalInputTokens})]}),r.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-l border-border",children:[r.jsx("div",{className:"px-3 pt-2.5 pb-1",children:r.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Model Routing"})}),r.jsx(YC,{routing:O,agentBreakdown:d})]}),r.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-t border-border",children:[r.jsx("div",{className:"px-3 pt-2.5 pb-1 flex-shrink-0",children:r.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Agent Fleet"})}),r.jsx(EC,{agentBreakdown:d,rotating:g})]}),r.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:r.jsx(dX,{tokens:Q,rotation:h,adaptive:p,journalist:x})})]}),r.jsx("div",{className:"flex-shrink-0 bg-surface-1 border-t border-border",children:r.jsx(mX,{events:_})})]})}const d0={sm:12,md:16,lg:20};function gX({fill:t="full",size:a,color:s="#fbbf24",emptyColor:l="rgba(255,255,255,0.4)"}){const o=`star-${Math.random().toString(36).slice(2,8)}`;return r.jsxs("svg",{width:a,height:a,viewBox:"0 0 20 20",fill:"none",children:[t==="half"&&r.jsx("defs",{children:r.jsxs("linearGradient",{id:o,children:[r.jsx("stop",{offset:"50%",stopColor:s}),r.jsx("stop",{offset:"50%",stopColor:l})]})}),r.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})`:l})]})}function nS({rating:t=0,count:a,size:s="sm"}){const l=d0[s]||d0.sm,o=[];for(let u=1;u<=5;u++)t>=u?o.push("full"):t>=u-.5?o.push("half"):o.push("empty");return r.jsxs("span",{className:"inline-flex items-center",style:{gap:1},children:[o.map((u,d)=>r.jsx(gX,{fill:u,size:l},d)),a!=null&&r.jsxs("span",{className:"ml-1 text-[11px] text-[var(--text-dim,#6b7f95)] font-sans",children:["(",a,")"]})]})}const O0={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 aS({label:t,variant:a,className:s}){const l=O0[a]||O0.draft;return r.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:l.color,background:l.bg},children:t})}function sS({price:t=0,size:a="sm"}){const s=!t||t===0,l={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 r.jsx("span",{className:`inline-flex items-center font-mono font-semibold rounded whitespace-nowrap ${l[a]||l.sm} ${s?"bg-success/12 text-success":"bg-white/8 text-text-1"}`,children:s?"Free":`$${t.toFixed(2)}`})}function lS({type:t="verified",size:a=12}){const s=t==="claude-official"||t==="anthropic"?"#f59e0b":"#4ade80";return r.jsxs("svg",{width:a,height:a,viewBox:"0 0 20 20",fill:"none",className:"inline-block flex-shrink-0",children:[r.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}),r.jsx("path",{d:"M7 10.5l2 2 4-4.5",fill:"none",stroke:"#24282f",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const rS="groove_favorites";function Nh(){try{return JSON.parse(localStorage.getItem(rS)||"[]")}catch{return[]}}function bX(t){return Nh().includes(t)}function vX(t){const a=Nh(),s=a.indexOf(t);return s>=0?a.splice(s,1):a.push(t),localStorage.setItem(rS,JSON.stringify(a)),s<0}function yX(t){const a=new Set(Nh());return t.map(s=>({...s,favorited:a.has(s.id)}))}function SX({filled:t,size:a=16}){return r.jsx("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:t?"#f87171":"none",stroke:t?"#f87171":"rgba(255,255,255,0.3)",strokeWidth:"2",children:r.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 QX(){return r.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[r.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),r.jsx("polyline",{points:"7 10 12 15 17 10"}),r.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}function jX({skill:t,onClick:a}){var u,d;const[s,l]=v.useState(()=>bX(t.id));function o(O){O.stopPropagation(),l(vX(t.id))}return r.jsxs("div",{onClick:()=>a==null?void 0:a(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:[r.jsxs("div",{className:"flex justify-between items-start",children:[r.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())||"?"}),r.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:r.jsx(SX,{filled:s})})]}),r.jsx("div",{className:"mt-3 text-[15px] font-semibold text-text-0 font-sans line-clamp-2 leading-snug",children:t.name}),r.jsxs("div",{className:"mt-1 flex items-center gap-1.5 text-xs text-text-3 font-sans",children:[r.jsxs("span",{children:["by ",t.author||"Community"]}),(t.source==="claude-official"||t.verified)&&r.jsx(lS,{type:t.source,size:12})]}),r.jsx("div",{className:"mt-2.5 text-xs text-text-2 font-sans line-clamp-3 flex-1 leading-relaxed",children:t.description}),r.jsx("div",{className:"mt-3",children:r.jsx(aS,{label:t.category||"general",variant:t.category||"draft"})}),r.jsx("div",{className:"h-px bg-border-subtle my-3"}),r.jsxs("div",{className:"flex items-center justify-between gap-2",children:[r.jsx(nS,{rating:t.rating||0,count:t.rating_count||t.ratingCount||0,size:"sm"}),r.jsxs("span",{className:"flex items-center gap-1 text-xs text-text-3 font-mono",children:[r.jsx(QX,{}),Ke(t.downloads||0)]}),r.jsx(sS,{price:t.price||0,size:"sm"})]})]})}function iS(){return r.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md animate-pulse",style:{padding:20,minHeight:280},children:[r.jsx("div",{className:"w-10 h-10 rounded-full bg-surface-4"}),r.jsx("div",{className:"mt-3 h-4 w-[70%] rounded bg-surface-4"}),r.jsx("div",{className:"mt-2 h-3 w-[40%] rounded bg-surface-4"}),r.jsx("div",{className:"mt-3.5 h-3 w-full rounded bg-surface-4"}),r.jsx("div",{className:"mt-1.5 h-3 w-[90%] rounded bg-surface-4"}),r.jsx("div",{className:"mt-1.5 h-3 w-[60%] rounded bg-surface-4"}),r.jsx("div",{className:"mt-3.5 h-5 w-[50px] rounded bg-surface-4"}),r.jsx("div",{className:"h-px bg-surface-4 my-3"}),r.jsxs("div",{className:"flex justify-between",children:[r.jsx("div",{className:"h-3 w-16 rounded bg-surface-4"}),r.jsx("div",{className:"h-3 w-12 rounded bg-surface-4"}),r.jsx("div",{className:"h-3 w-10 rounded bg-surface-4"})]})]})}const kX={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 wX({item:t,size:a=40}){const s=kX[t.id];if(s)return r.jsxs("div",{className:"rounded-md bg-surface-4 flex items-center justify-center flex-shrink-0 overflow-hidden",style:{width:a,height:a},children:[r.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"}}),r.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 l=(t.name||"?")[0].toUpperCase(),o=t.name?t.name.charCodeAt(0)*37%360:200;return r.jsx("div",{className:"rounded-md flex items-center justify-center flex-shrink-0 text-lg font-bold font-sans",style:{width:a,height:a,background:`hsl(${o}, 40%, 18%)`,color:`hsl(${o}, 60%, 65%)`},children:l})}function $X({item:t,onClick:a,className:s}){var o;const l=t.installed;return r.jsxs("button",{onClick:()=>a(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:[r.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[r.jsx(wX,{item:t,size:36}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx("span",{className:"text-[14px] font-semibold text-text-0 font-sans truncate",children:t.name}),(t.verified||t.verified==="mcp-official")&&r.jsx(ni,{size:11,className:"text-accent flex-shrink-0"})]}),r.jsx("span",{className:"text-2xs text-text-3 font-sans",children:t.author||"Community"})]})]}),r.jsx("p",{className:"text-xs text-text-2 font-sans line-clamp-3 mb-3 flex-1 leading-relaxed",children:t.description}),r.jsx("div",{className:"h-px bg-border-subtle my-2"}),r.jsxs("div",{className:"flex items-center gap-3 text-2xs text-text-3 font-sans",children:[r.jsxs("span",{className:"flex items-center gap-1",children:[r.jsx(mi,{size:10}),Ke(t.downloads||0)]}),(t.rating||0)>0&&r.jsxs("span",{className:"flex items-center gap-1",children:[r.jsx(Fb,{size:10,className:"text-warning",fill:"currentColor"}),(o=t.rating)==null?void 0:o.toFixed(1)]}),r.jsx("span",{className:"flex-1"}),l&&r.jsx(Xe,{variant:"accent",className:"text-2xs",children:"Installed"})]})]})}function oS({value:t,onChange:a,placeholder:s="Search skills, tags, authors...",large:l}){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(()=>a(p),300)}return r.jsxs("div",{className:"relative w-full",children:[r.jsx(da,{size:16,className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-text-4 pointer-events-none"}),r.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",l?"py-3 pl-11 pr-12 text-[15px] rounded-lg":"py-2.5 pl-10 pr-3 text-sm rounded-md")}),l&&r.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 TX=[{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 NX({selected:t="",categories:a=TX,onSelect:s}){return r.jsx("div",{className:"flex gap-2 overflow-x-auto",style:{scrollbarWidth:"none"},children:a.map(l=>{const o=t===l.id;return r.jsx("button",{onClick:()=>s(l.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:l.label},l.id)})})}function Bl(){const t=D(a=>a.addToast);return{success:(a,s)=>t("success",a,s),error:(a,s)=>t("error",a,s),info:(a,s)=>t("info",a,s),warning:(a,s)=>t("warning",a,s)}}function PX({skill:t,onBack:a}){var G,R,X;const s=Bl(),[l,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),[k,$]=v.useState(!0);v.useEffect(()=>{$(!0),J.get(`/skills/${t.id}/content`).then(T=>{o(T.content||""),d(T.requiresPurchase||!1)}).catch(()=>{}).finally(()=>$(!1))},[t.id]);async function j(){h(!0);try{await J.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 J.post(`/skills/${t.id}/update`),s.success(`${t.name} updated to latest`);const T=await J.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 J.delete(`/skills/${t.id}`),Q(!1),s.success(`${t.name} uninstalled`)}catch(T){s.error("Uninstall failed",T.message)}b(!1)}async function _(){const{marketplaceAuthenticated:T,marketplaceLogin:Y,marketplaceCheckout:M}=D.getState();if(!T){Y();return}try{await M(t.id)}catch{}}return r.jsx(fa,{className:"h-full",children:r.jsxs("div",{className:"px-6 py-5",children:[r.jsxs("button",{onClick:a,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:[r.jsx(Xb,{size:14})," Back"]}),r.jsxs("div",{className:"flex gap-8",children:[r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.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())}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("h1",{className:"text-lg font-bold text-text-0 font-sans",children:t.name}),r.jsxs("div",{className:"flex items-center gap-2 mt-0.5 text-xs text-text-3 font-sans",children:[r.jsx("span",{children:t.author||"Community"}),(t.source==="claude-official"||t.verified)&&r.jsx(lS,{type:t.source,size:13})]})]})]}),r.jsx("p",{className:"mt-3 text-sm text-text-2 font-sans leading-relaxed",children:t.description}),((X=t.tags)==null?void 0:X.length)>0&&r.jsx("div",{className:"flex flex-wrap gap-1.5 mt-3",children:t.tags.map(T=>r.jsx("span",{className:"text-2xs text-text-3 font-sans px-2 py-0.5 rounded bg-surface-4",children:T},T))}),r.jsx("div",{className:"h-px bg-border-subtle my-5"}),k?r.jsxs("div",{className:"space-y-2",children:[r.jsx("div",{className:"h-3 w-48 bg-surface-4 rounded animate-pulse"}),r.jsx("div",{className:"h-3 w-full bg-surface-4 rounded animate-pulse"}),r.jsx("div",{className:"h-3 w-3/4 bg-surface-4 rounded animate-pulse"})]}):l?r.jsxs("div",{className:"text-sm text-text-2 font-sans leading-relaxed",children:[r.jsx("h2",{className:"text-sm font-semibold text-text-0 mb-2",children:"About"}),r.jsx("pre",{className:"whitespace-pre-wrap font-sans",children:l})]}):u?r.jsxs("div",{className:"bg-warning/5 border border-warning/15 rounded-lg px-4 py-3",children:[r.jsx("p",{className:"text-sm text-text-1 font-sans font-medium",children:"Paid skill — purchase to view content"}),r.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Sign in and purchase this skill to access its full instructions."})]}):r.jsx("p",{className:"text-xs text-text-4 font-sans",children:"Content loading failed — check your connection."})]}),r.jsx("div",{className:"w-[240px] flex-shrink-0",children:r.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-lg p-4 sticky top-4",children:[r.jsx(sS,{price:t.price||0,size:"md"}),u&&!y?r.jsxs("button",{onClick:_,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?r.jsxs("div",{className:"mt-3 flex flex-col gap-1.5",children:[r.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:[r.jsx(Rn,{size:12,className:p?"animate-spin":""}),p?"Updating...":"Pull Latest"]}),r.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:[r.jsx(as,{size:12}),g?"Removing...":"Uninstall"]})]}):r.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"}),r.jsx("div",{className:"mt-4 flex flex-col gap-2.5",children:[["Downloads",r.jsx("span",{className:"font-mono text-text-0",children:Ke(t.downloads||0)},"d")],["Rating",r.jsx(nS,{rating:t.rating||0,count:t.rating_count||t.ratingCount,size:"sm"},"r")],["Version",r.jsx("span",{className:"font-mono text-text-0",children:t.version||"1.0.0"},"v")],["Category",r.jsx(aS,{label:t.category||"general",variant:t.category||"draft"},"c")],["Source",r.jsx("span",{className:"text-text-0",children:t.source==="claude-official"?"Anthropic":"Community"},"s")]].map(([T,Y])=>r.jsxs("div",{className:"flex justify-between items-center text-xs font-sans",children:[r.jsx("span",{className:"text-text-3",children:T}),Y]},T))})]})})]})]})})}function zX(){const[t,a]=v.useState([]),[s,l]=v.useState(!0),[o,u]=v.useState(""),[d,O]=v.useState(""),[h,p]=v.useState("popular"),[x,g]=v.useState(null);return v.useEffect(()=>{l(!0);const b=new URLSearchParams;o&&b.set("search",o),d&&b.set("category",d),h&&b.set("sort",h),J.get(`/skills/registry?${b}`).then(y=>a(yX(y.skills||y.items||(Array.isArray(y)?y:[])))).catch(()=>a([])).finally(()=>l(!1))},[o,d,h]),x?r.jsx(PX,{skill:x,onBack:()=>g(null)}):r.jsx(fa,{className:"h-full",children:r.jsxs("div",{className:"px-5 py-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-72",children:r.jsx(oS,{value:o,onChange:u})}),r.jsx(NX,{selected:d,onSelect:O}),r.jsx("div",{className:"flex-1"}),r.jsxs("div",{className:"relative flex-shrink-0",children:[r.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:[r.jsx("option",{value:"popular",children:"Popular"}),r.jsx("option",{value:"rating",children:"Top Rated"}),r.jsx("option",{value:"newest",children:"Newest"}),r.jsx("option",{value:"name",children:"A-Z"})]}),r.jsx(Pn,{size:12,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-4 pointer-events-none"})]}),r.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0",children:t.length})]}),r.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)=>r.jsx(iS,{},y)):t.map(b=>r.jsx(jX,{skill:b,onClick:g},b.id))}),!s&&t.length===0&&r.jsx("div",{className:"text-center py-16 text-text-4 font-sans text-sm",children:"No skills found."})]})})}function RX(){const[t,a]=v.useState([]),[s,l]=v.useState(!0),[o,u]=v.useState(""),d=Bl();return v.useEffect(()=>{l(!0),J.get(`/integrations/registry?search=${encodeURIComponent(o)}`).then(O=>a(O.integrations||O.items||(Array.isArray(O)?O:[]))).catch(()=>a([])).finally(()=>l(!1))},[o]),r.jsx(fa,{className:"h-full",children:r.jsxs("div",{className:"px-5 py-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-72",children:r.jsx(oS,{value:o,onChange:u,placeholder:"Search integrations..."})}),r.jsx("div",{className:"flex-1"}),r.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0",children:t.length})]}),r.jsx("div",{className:"mt-4 grid gap-3",style:{gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))"},children:s?Array.from({length:6}).map((O,h)=>r.jsx(iS,{},h)):t.map(O=>r.jsx($X,{item:O,onClick:()=>d.info(`${O.name} — install via CLI: groove integrations install ${O.id}`)},O.id))}),!s&&t.length===0&&r.jsx("div",{className:"text-center py-16 text-text-4 font-sans text-sm",children:"No integrations found."})]})})}function CX(){const t=D($=>$.marketplaceAuthenticated),a=D($=>$.marketplaceLogin),[s,l]=v.useState([]),[o,u]=v.useState([]),[d,O]=v.useState(!0),[h,p]=v.useState(null),x=Bl(),g=v.useRef(null),b=async()=>{const $=await J.get("/skills/installed");u(Array.isArray($)?$:$.skills||[])};v.useEffect(()=>{O(!0),Promise.all([t?J.get("/auth/purchases").then($=>$.purchases||[]).catch(()=>[]):Promise.resolve([]),J.get("/skills/installed").then($=>Array.isArray($)?$:$.skills||[]).catch(()=>[])]).then(([$,j])=>{l($),u(j)}).finally(()=>O(!1))},[t]);async function y($){p($.id);try{await J.post(`/skills/${$.id}/update`),x.success(`${$.name||$.id} updated`),await b()}catch(j){x.error("Update failed",j.message)}p(null)}async function Q($){p($.id);try{await J.delete(`/skills/${$.id}`),x.success(`${$.name||$.id} uninstalled`),await b()}catch(j){x.error("Uninstall failed",j.message)}p(null)}async function k($){var z;const j=(z=$.target.files)==null?void 0:z[0];if(j){try{const N=await j.text(),_=j.name.replace(/\.md$/i,"");await J.post("/skills/import",{name:_,content:N}),x.success(`Imported "${_}"`),await b()}catch(N){x.error("Import failed",N.message)}$.target.value=""}}return d?r.jsx("div",{className:"p-5 space-y-3",children:[...Array(4)].map(($,j)=>r.jsx(rn,{className:"h-14 rounded-md"},j))}):r.jsx(fa,{className:"h-full",children:r.jsxs("div",{className:"px-5 py-4 space-y-6",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("input",{ref:g,type:"file",accept:".md",onChange:k,className:"hidden"}),r.jsxs(ve,{variant:"secondary",size:"md",onClick:()=>{var $;return($=g.current)==null?void 0:$.click()},className:"gap-1.5",children:[r.jsx(_N,{size:13}),"Import .md Skill"]}),r.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"Drop a markdown skill file to install locally"})]}),t&&s.length>0&&r.jsxs("div",{children:[r.jsxs("h3",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider mb-3 flex items-center gap-1.5",children:[r.jsx(wO,{size:12}),"Purchases (",s.length,")"]}),r.jsx("div",{className:"space-y-1.5",children:s.map($=>{var j,z;return r.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-1 border border-border-subtle",children:[r.jsx("div",{className:"w-8 h-8 rounded-md bg-accent/10 flex items-center justify-center text-sm flex-shrink-0",children:$.skill_icon||((z=(j=$.skill_name)==null?void 0:j[0])==null?void 0:z.toUpperCase())||"?"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:$.skill_name||$.skill_id}),r.jsxs("div",{className:"text-2xs text-text-4 font-sans",children:["$",($.amount||0).toFixed(2)," · ",vt($.created_at)]})]}),r.jsx(Xe,{variant:"success",className:"text-2xs flex-shrink-0",children:"Owned"})]},$.id||$.skill_id)})})]}),t&&s.length===0&&r.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[r.jsx(wO,{size:20,className:"mx-auto text-text-4 mb-2"}),r.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No purchases yet"})]}),!t&&r.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[r.jsx(wO,{size:20,className:"mx-auto text-text-4 mb-2"}),r.jsx("p",{className:"text-xs text-text-2 font-sans mb-3",children:"Sign in to see your purchases"}),r.jsxs(ve,{variant:"primary",size:"sm",onClick:a,className:"gap-1.5 mx-auto",children:[r.jsx(ah,{size:12})," Sign in"]})]}),r.jsxs("div",{children:[r.jsxs("h3",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider mb-3 flex items-center gap-1.5",children:[r.jsx(Gb,{size:12}),"Installed (",o.length,")"]}),o.length===0?r.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[r.jsx(mi,{size:20,className:"mx-auto text-text-4 mb-2"}),r.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No skills installed — browse the Skills tab or import a .md file"})]}):r.jsx("div",{className:"space-y-1.5",children:o.map($=>{var j,z;return r.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-1 border border-border-subtle group",children:[r.jsx("div",{className:"w-8 h-8 rounded-md bg-accent/10 flex items-center justify-center text-sm flex-shrink-0",children:$.icon||((z=(j=$.name)==null?void 0:j[0])==null?void 0:z.toUpperCase())||"?"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:$.name||$.id}),r.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:$.description||$.category||"local skill"})]}),r.jsxs("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[r.jsx("button",{onClick:()=>y($),disabled:h===$.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:r.jsx(Rn,{size:12,className:h===$.id?"animate-spin":""})}),r.jsx("button",{onClick:()=>Q($),disabled:h===$.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:r.jsx(as,{size:12})})]}),r.jsx(Xe,{variant:"accent",className:"text-2xs flex-shrink-0",children:"Installed"})]},$.id)})})]})]})})}function XX(){const t=D(o=>o.marketplaceAuthenticated),a=D(o=>o.marketplaceUser),s=D(o=>o.marketplaceLogin),l=D(o=>o.marketplaceLogout);return t?r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 rounded bg-surface-3 border border-border-subtle",children:[r.jsx("div",{className:"w-4 h-4 rounded-full bg-accent/20 flex items-center justify-center",children:r.jsx(Kb,{size:9,className:"text-accent"})}),r.jsx("span",{className:"text-xs text-text-0 font-sans font-medium max-w-[120px] truncate",children:(a==null?void 0:a.displayName)||(a==null?void 0:a.id)||"Account"})]}),r.jsx("button",{onClick:l,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:r.jsx(Yb,{size:11})})]}):r.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:[r.jsx(ah,{size:12}),"Sign in"]})}function _X(){const[t,a]=v.useState("skills"),s=[{id:"skills",label:"Skills",icon:Ir},{id:"integrations",label:"Integrations",icon:Lb},{id:"library",label:"My Library",icon:Gb}];return r.jsxs("div",{className:"flex flex-col h-full",children:[r.jsx("div",{className:"flex-shrink-0 bg-surface-1 border-b border-border-subtle",children:r.jsxs("div",{className:"flex items-center px-5 h-11",children:[r.jsx("div",{className:"flex items-center",children:s.map(l=>{const o=l.icon;return r.jsxs("button",{onClick:()=>a(l.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===l.id?"border-accent text-text-0":"border-transparent text-text-3 hover:text-text-1"}`,children:[r.jsx(o,{size:12}),l.label]},l.id)})}),r.jsx("div",{className:"flex-1"}),r.jsx(XX,{})]})}),r.jsxs("div",{className:"flex-1 min-h-0",children:[t==="skills"&&r.jsx(zX,{}),t==="integrations"&&r.jsx(RX,{}),t==="library"&&r.jsx(CX,{})]})]})}function AX(){const t=D(u=>u.teams),a=D(u=>u.agents),s=D(u=>u.activeTeamId),l=D(u=>u.deleteTeam),o=D(u=>u.addToast);return t.length===0?r.jsx("div",{className:"flex-1 flex items-center justify-center",children:r.jsxs("div",{className:"text-center space-y-2",children:[r.jsx(bi,{size:28,className:"mx-auto text-text-4"}),r.jsx("p",{className:"text-xs font-sans text-text-3",children:"No teams yet"}),r.jsx("p",{className:"text-2xs font-sans text-text-4",children:"Teams are created when you spawn agents or launch a planner"})]})}):r.jsx("div",{className:"flex-1 overflow-y-auto",children:r.jsx("div",{className:"p-4 space-y-3",children:t.map(u=>{const d=a.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 r.jsxs("div",{className:re("rounded-md border bg-surface-1 overflow-hidden transition-colors",b?"border-accent/30":"border-border-subtle"),children:[r.jsxs("div",{className:"px-4 py-3 flex items-center gap-3",children:[r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-sm font-semibold text-text-0 font-sans",children:u.name}),b&&r.jsx(Xe,{variant:"accent",className:"text-2xs",children:"Active"})]}),u.workingDir&&r.jsxs("div",{className:"flex items-center gap-1 mt-0.5",children:[r.jsx(Eb,{size:10,className:"text-text-4"}),r.jsx("span",{className:"text-2xs font-mono text-text-3 truncate",children:u.workingDir})]})]}),r.jsx("button",{onClick:()=>{if(d.some(y=>y.status==="running")){o("error","Stop running agents first");return}l(u.id)},className:"p-1.5 text-text-4 hover:text-danger rounded transition-colors cursor-pointer",title:"Delete team",children:r.jsx(as,{size:13})})]}),r.jsxs("div",{className:"px-4 py-2.5 border-t border-border-subtle bg-surface-0 flex items-center gap-4",children:[r.jsx(vl,{label:"Agents",value:d.length}),r.jsx(vl,{label:"Running",value:O.length,color:O.length>0?"text-success":void 0}),r.jsx(vl,{label:"Done",value:h.length}),r.jsx(vl,{label:"Crashed",value:p.length,color:p.length>0?"text-danger":void 0}),r.jsx("div",{className:"flex-1"}),r.jsx(vl,{label:"Tokens",value:Ke(x)}),g>0&&r.jsx(vl,{label:"Cost",value:vi(g)})]}),d.length>0&&r.jsx("div",{className:"border-t border-border-subtle",children:d.map(y=>r.jsxs("div",{className:"flex items-center gap-2 px-4 py-1.5 border-b border-border-subtle last:border-b-0",children:[r.jsx(Ts,{status:y.status,size:"sm"}),r.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:y.name}),r.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase",children:y.role}),r.jsx("div",{className:"flex-1"}),r.jsx("span",{className:"text-2xs font-mono text-text-2 tabular-nums",children:Ke(y.tokensUsed||0)})]},y.id))})]},u.id)})})})}function vl({label:t,value:a,color:s}){return r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:re("text-xs font-mono tabular-nums",s||"text-text-1"),children:a}),r.jsx("div",{className:"text-2xs font-mono text-text-4 uppercase tracking-wider",children:t})]})}function ZX(){const t=D(l=>l.pendingApprovals),a=D(l=>l.approveRequest),s=D(l=>l.rejectRequest);return t.length===0?null:r.jsxs("div",{className:"px-4 pt-4 space-y-2",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[r.jsx(gi,{size:12,className:"text-warning"}),r.jsxs("span",{className:"text-2xs font-mono text-warning uppercase tracking-wider",children:["Pending (",t.length,")"]})]}),t.map(l=>{var o,u,d;return r.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-md bg-warning/5 border border-warning/20",children:[r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"text-xs text-text-0 font-sans font-medium truncate",children:[l.agentName,": ",((o=l.action)==null?void 0:o.description)||((u=l.action)==null?void 0:u.type)||"action"]}),((d=l.action)==null?void 0:d.filePath)&&r.jsx("div",{className:"text-2xs font-mono text-text-3 truncate mt-0.5",children:l.action.filePath}),r.jsx("div",{className:"text-2xs text-text-4 font-mono mt-0.5",children:vt(l.requestedAt)})]}),r.jsxs("div",{className:"flex gap-1.5 flex-shrink-0",children:[r.jsxs(ve,{variant:"primary",size:"sm",onClick:()=>a(l.id),className:"h-7 px-2.5 gap-1 text-2xs",children:[r.jsx(Ib,{size:10})," Approve"]}),r.jsxs(ve,{variant:"danger",size:"sm",onClick:()=>s(l.id),className:"h-7 px-2.5 gap-1 text-2xs",children:[r.jsx(jN,{size:10})," Reject"]})]})]},l.id)})]})}function EX(){const t=D(h=>h.resolvedApprovals),[a,s]=v.useState([]),[l,o]=v.useState(!0);v.useEffect(()=>{const h=setInterval(u,4e3);return u(),()=>clearInterval(h)},[]);async function u(){try{const h=await J.get("/pm/history");s(h.history||h||[])}catch{}o(!1)}const d=new Set,O=[...t,...a].filter(h=>{const p=h.id||`${h.agentName}-${h.timestamp}`;return d.has(p)?!1:(d.add(p),!0)});return r.jsxs("div",{className:"flex-1 overflow-y-auto",children:[r.jsx(ZX,{}),r.jsxs("div",{className:"p-4 space-y-1.5",children:[l&&O.length===0&&r.jsx("div",{className:"text-center py-12 text-text-4 font-mono text-xs",children:"Loading..."}),!l&&O.length===0&&r.jsxs("div",{className:"text-center py-12",children:[r.jsx(ni,{size:24,className:"mx-auto mb-2 text-text-4"}),r.jsx("p",{className:"text-xs font-sans text-text-3",children:"No approval history"}),r.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 r.jsxs("div",{className:"flex items-center gap-2.5 px-3 py-2 rounded-md bg-surface-0 border border-border-subtle",children:[x?r.jsx(ni,{size:12,className:"text-success flex-shrink-0"}):r.jsx(_b,{size:12,className:"text-danger flex-shrink-0"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"text-xs text-text-1 font-sans truncate",children:[r.jsx("span",{className:"font-medium text-text-0",children:h.agentName}),r.jsx("span",{className:"text-text-3 mx-1",children:"·"}),r.jsx("span",{children:((g=h.action)==null?void 0:g.description)||h.action||"action"})]}),h.reason&&r.jsx("div",{className:"text-2xs text-text-3 font-sans truncate mt-0.5",children:h.reason})]}),r.jsx("span",{className:"text-2xs font-mono text-text-4 flex-shrink-0",children:vt(h.resolvedAt||h.timestamp)})]},h.id||p)})]})]})}function qX(){const[t,a]=v.useState([]),[s,l]=v.useState(!0),o=Bl();v.useEffect(()=>{const O=setInterval(u,1e4);return u(),()=>clearInterval(O)},[]);async function u(){try{const O=await J.get("/schedules");a(O.schedules||O||[])}catch{}l(!1)}async function d(O,h){try{await J.post(`/schedules/${O}/${h?"disable":"enable"}`),u()}catch(p){o.error("Failed to toggle schedule",p.message)}}return r.jsx("div",{className:"flex-1 overflow-y-auto",children:r.jsxs("div",{className:"p-4 space-y-2",children:[s&&t.length===0&&r.jsx("div",{className:"text-center py-12 text-text-4 font-mono text-xs",children:"Loading..."}),!s&&t.length===0&&r.jsxs("div",{className:"text-center py-12",children:[r.jsx(gc,{size:24,className:"mx-auto mb-2 text-text-4"}),r.jsx("p",{className:"text-xs font-sans text-text-3",children:"No schedules configured"}),r.jsx("p",{className:"text-2xs text-text-4 font-sans mt-1",children:"Use the CLI to create agent schedules"})]}),t.map(O=>r.jsxs("div",{className:"rounded-md border border-border-subtle bg-surface-0 overflow-hidden",children:[r.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans",children:O.name}),r.jsx(Xe,{variant:O.enabled?"success":"default",className:"text-2xs",children:O.enabled?"Active":"Paused"})]}),r.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[r.jsx("span",{className:"text-2xs font-mono text-text-2",children:O.cron}),r.jsx("span",{className:"text-2xs text-text-4",children:"·"}),r.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase",children:O.role}),O.teamId&&r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"text-2xs text-text-4",children:"·"}),r.jsx("span",{className:"text-2xs font-sans text-text-3",children:O.teamName||O.teamId})]})]}),O.prompt&&r.jsx("div",{className:"text-2xs font-sans text-text-4 mt-1 truncate",children:O.prompt})]}),r.jsx(ve,{variant:"secondary",size:"sm",onClick:()=>d(O.id,O.enabled),className:"h-7 px-2.5 gap-1 text-2xs",children:O.enabled?r.jsxs(r.Fragment,{children:[r.jsx(eN,{size:10})," Pause"]}):r.jsxs(r.Fragment,{children:[r.jsx(lN,{size:10})," Enable"]})})]}),O.lastRunAt&&r.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&&r.jsxs("span",{className:"ml-3",children:["Next: ",vt(O.nextRunAt)]})]})]},O.id))]})})}function MX(){return r.jsxs(eS,{defaultValue:"dashboard",className:"flex flex-col h-full",children:[r.jsxs("div",{className:"px-4 pt-3 bg-surface-1 border-b border-border",children:[r.jsx("div",{className:"flex items-center gap-4 mb-0",children:r.jsx("h2",{className:"text-xs font-semibold text-text-0 font-sans tracking-wide uppercase",children:"Management"})}),r.jsxs(tS,{className:"border-b-0",children:[r.jsxs(zl,{value:"dashboard",className:"inline-flex items-center gap-1.5",children:[r.jsx(NT,{size:12}),"Teams"]}),r.jsxs(zl,{value:"approvals",className:"inline-flex items-center gap-1.5",children:[r.jsx(zT,{size:12}),"Approvals"]}),r.jsxs(zl,{value:"schedules",className:"inline-flex items-center gap-1.5",children:[r.jsx(gc,{size:12}),"Schedules"]})]})]}),r.jsx(Rl,{value:"dashboard",className:"flex-1 min-h-0",children:r.jsx(AX,{})}),r.jsx(Rl,{value:"approvals",className:"flex-1 min-h-0",children:r.jsx(EX,{})}),r.jsx(Rl,{value:"schedules",className:"flex-1 min-h-0",children:r.jsx(qX,{})})]})}const YX={code:"Code",general:"General"},UX={light:"text-success",medium:"text-accent",heavy:"text-warning"};function VX(t){return t<1?`${Math.round(t*1024)} MB`:`${t} GB`}function cS({hardware:t}){if(!t)return null;const{totalRamGb:a,gpu:s,isAppleSilicon:l}=t;return r.jsxs("div",{className:"flex items-center gap-3 bg-surface-0 rounded-lg border border-border-subtle px-3 py-2.5",children:[r.jsx(sh,{size:14,className:"text-text-3 flex-shrink-0"}),r.jsx("div",{className:"flex-1 min-w-0",children:r.jsxs("div",{className:"flex items-center gap-2 text-xs font-sans",children:[r.jsxs("span",{className:"text-text-0 font-semibold",children:[a," GB RAM"]}),s&&r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"text-text-4",children:"·"}),r.jsx("span",{className:"text-text-2",children:s.name})]}),l&&r.jsx(Xe,{variant:"accent",className:"text-2xs",children:"Unified Memory"})]})})]})}function GX({onRecheck:t}){const[a,s]=v.useState(null),[l,o]=v.useState(!1),[u,d]=v.useState(!1),[O,h]=v.useState(!1),p=D(_=>_.addToast);v.useEffect(()=>{J.post("/providers/ollama/check").then(s).catch(()=>{})},[]);async function x(){o(!0);try{const _=await J.post("/providers/ollama/check");s(_),_.installed&&_.serverRunning?(p("success","Ollama is ready!"),t()):_.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 J.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 X=await J.post("/providers/ollama/check");if(s(X),X.serverRunning){G=!0;break}}G&&t()}}catch(_){p("error","Could not start server",_.message)}d(!1)}function b(_){navigator.clipboard.writeText(_),h(!0),setTimeout(()=>h(!1),2e3)}if(!a)return r.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Loading..."});const{hardware:y,install:Q,requirements:k,installed:$,serverRunning:j}=a,z=y.totalRamGb>=k.minRAM,N=y.recommended;return r.jsxs("div",{className:"space-y-3 p-3",children:[r.jsx(cS,{hardware:y}),z?r.jsxs("div",{className:"flex items-start gap-2 bg-success/8 border border-success/20 rounded-lg px-3 py-2.5",children:[r.jsx(Wt,{size:14,className:"text-success flex-shrink-0 mt-0.5"}),r.jsxs("div",{className:"text-xs font-sans",children:[r.jsx("span",{className:"text-success font-semibold",children:"Your system is ready."}),r.jsx("span",{className:"text-text-2 ml-1",children:N.code?`Recommended: ${N.code}`:`${y.totalRamGb} GB RAM available`})]})]}):r.jsxs("div",{className:"flex items-start gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[r.jsx(ua,{size:14,className:"text-warning flex-shrink-0 mt-0.5"}),r.jsxs("div",{className:"text-xs font-sans text-text-2",children:[r.jsxs("span",{className:"text-warning font-semibold",children:[y.totalRamGb," GB RAM detected."]})," ","Minimum ",k.minRAM," GB needed. Smallest models may still work."]})]}),$&&!j&&r.jsxs("div",{className:"space-y-2",children:[r.jsxs("div",{className:"flex items-start gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[r.jsx(ua,{size:14,className:"text-warning flex-shrink-0 mt-0.5"}),r.jsxs("div",{className:"text-xs font-sans text-text-2",children:[r.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."]})]}),r.jsxs(ve,{variant:"primary",size:"md",onClick:g,disabled:u,className:"w-full gap-1.5",children:[r.jsx(Cn,{size:12}),u?"Starting...":"Start Ollama Server"]})]}),!$&&r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("p",{className:"text-xs font-semibold text-text-1 font-sans",children:"Install Ollama"}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.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}),r.jsxs(ve,{variant:"secondary",size:"sm",onClick:()=>b(Q.command),className:"h-8 px-2.5 gap-1 flex-shrink-0",children:[O?r.jsx(Wt,{size:12}):r.jsx(vf,{size:12}),O?"Copied":"Copy"]})]}),Q.alt&&r.jsx("p",{className:"text-2xs text-text-4 font-sans",children:Q.alt})]}),r.jsxs(ve,{variant:"secondary",size:"md",onClick:x,disabled:l,className:"w-full gap-1.5",children:[r.jsx(Rn,{size:12,className:l?"animate-spin":""}),l?"Checking...":$?"Check again":"I installed it — check again"]})]})}function LX({model:t,isInstalled:a,isRecommended:s,canRun:l,onPull:o,onDelete:u,pulling:d}){const O=d===t.id;return r.jsxs("div",{className:re("flex items-center gap-2 px-3 py-2 border-t border-border-subtle transition-colors",!l&&"opacity-40"),children:[a?r.jsx(Wt,{size:12,className:"text-success flex-shrink-0"}):r.jsx("div",{className:"w-3"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx("span",{className:"text-xs font-mono text-text-1 truncate",children:t.name}),s&&r.jsx(Fb,{size:10,className:"text-warning flex-shrink-0"})]}),r.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[r.jsx("span",{className:re("text-2xs font-semibold font-sans",UX[t.tier]),children:t.tier}),r.jsx("span",{className:"text-2xs text-text-4 font-sans",children:VX(t.sizeGb)}),r.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:["· ",t.ramGb," GB RAM"]})]})]}),a?r.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:r.jsx(as,{size:12})}):l?r.jsx(ve,{variant:"secondary",size:"sm",onClick:()=>o(t.id),disabled:!!d,className:"h-7 px-2 text-2xs gap-1",children:O?r.jsxs(r.Fragment,{children:[r.jsx(Rn,{size:10,className:"animate-spin"})," Pulling..."]}):r.jsxs(r.Fragment,{children:[r.jsx(mi,{size:10})," Pull"]})}):r.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:["Needs ",t.ramGb," GB"]})]})}function DX({onStopped:t}){const[a,s]=v.useState(null),l=D(d=>d.addToast);async function o(){s("stopping");try{(await J.post("/providers/ollama/stop")).ok?(l("info","Ollama server stopped"),t&&t()):l("error","Could not stop server")}catch(d){l("error","Stop failed",d.message)}s(null)}async function u(){s("restarting");try{(await J.post("/providers/ollama/restart")).ok?l("success","Ollama server restarted"):l("error","Restart failed")}catch(d){l("error","Restart failed",d.message)}s(null)}return r.jsxs("div",{className:"flex items-center gap-2 bg-success/8 border border-success/20 rounded-lg px-3 py-2",children:[r.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[r.jsx("span",{className:"absolute inset-0 rounded-full bg-success"}),r.jsx("span",{className:"absolute inset-[-2px] rounded-full bg-success opacity-20 animate-pulse"})]}),r.jsx("span",{className:"text-xs font-sans text-success font-semibold",children:"Server Running"}),r.jsx("span",{className:"text-2xs font-mono text-text-4",children:":11434"}),r.jsx("div",{className:"flex-1"}),r.jsxs("button",{onClick:u,disabled:!!a,className:"flex items-center gap-1 text-2xs font-sans text-text-3 hover:text-accent cursor-pointer transition-colors disabled:opacity-40",children:[r.jsx(Rn,{size:10,className:a==="restarting"?"animate-spin":""}),a==="restarting"?"Restarting...":"Restart"]}),r.jsxs("button",{onClick:o,disabled:!!a,className:"flex items-center gap-1 text-2xs font-sans text-text-3 hover:text-danger cursor-pointer transition-colors disabled:opacity-40",children:[r.jsx(ua,{size:10}),a==="stopping"?"Stopping...":"Stop"]})]})}function WX({onModelChange:t}){var T,Y;const[a,s]=v.useState(null),[l,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(){J.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 J.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 k(M){try{await J.delete(`/providers/ollama/models/${encodeURIComponent(M)}`),g("info",`Removed ${M}`),y(),t&&t()}catch(ae){g("error",`Delete failed: ${ae.message}`)}}if(!a)return r.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Loading..."});const{installed:$,catalog:j,hardware:z}=a,N=new Set($.map(M=>M.id)),_=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),X=O?R:R.filter(M=>M.ramGb<=_);return p?r.jsxs("div",{className:"space-y-3 p-3",children:[r.jsxs("div",{className:"flex items-center gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[r.jsx(ua,{size:14,className:"text-warning flex-shrink-0"}),r.jsxs("span",{className:"text-xs font-sans text-text-2",children:[r.jsx("span",{className:"text-warning font-semibold",children:"Ollama server stopped."})," ","Start it again to pull and use models."]})]}),r.jsxs(ve,{variant:"primary",size:"md",onClick:async()=>{try{(await J.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:[r.jsx(Cn,{size:12}),"Start Ollama Server"]})]}):r.jsxs("div",{className:"space-y-2 p-3",children:[r.jsx(DX,{onStopped:()=>x(!0)}),r.jsx(cS,{hardware:z}),$.length>0&&r.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-sans text-text-2",children:[r.jsx(nh,{size:12,className:"text-text-3"}),r.jsx("span",{className:"font-semibold",children:$.length})," model",$.length!==1?"s":""," installed"]}),r.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:Object.entries(YX).map(([M,ae])=>r.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))}),r.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-0 overflow-hidden",children:[X.map(M=>r.jsx(LX,{model:M,isInstalled:N.has(M.id),isRecommended:G.includes(M.id),canRun:M.ramGb<=_,onPull:Q,onDelete:k,pulling:l},M.id)),X.length===0&&r.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>X.length&&r.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:[r.jsx(Pn,{size:10}),"Show ",R.length-X.length," more (exceed your RAM)"]})]})}function uS({isInstalled:t,onModelChange:a}){const[s,l]=v.useState(!1),[o,u]=v.useState(!1);return v.useEffect(()=>{t?J.post("/providers/ollama/check").then(d=>{l(d.installed&&d.serverRunning),u(!0)}).catch(()=>u(!0)):u(!0)},[t]),o?s?r.jsx(WX,{onModelChange:a}):r.jsx(GX,{onRecheck:()=>{l(!0),a&&a()}}):r.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Checking Ollama..."})}var JO="focusScope.autoFocusOnMount",ef="focusScope.autoFocusOnUnmount",f0={bubbles:!1,cancelable:!0},BX="FocusScope",dS=v.forwardRef((t,a)=>{const{loop:s=!1,trapped:l=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...d}=t,[O,h]=v.useState(null),p=zt(o),x=zt(u),g=v.useRef(null),b=it(a,k=>h(k)),y=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(l){let k=function(N){if(y.paused||!O)return;const _=N.target;O.contains(_)?g.current=_:La(g.current,{select:!0})},$=function(N){if(y.paused||!O)return;const _=N.relatedTarget;_!==null&&(O.contains(_)||La(g.current,{select:!0}))},j=function(N){if(document.activeElement===document.body)for(const G of N)G.removedNodes.length>0&&La(O)};document.addEventListener("focusin",k),document.addEventListener("focusout",$);const z=new MutationObserver(j);return O&&z.observe(O,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",$),z.disconnect()}}},[l,O,y.paused]),v.useEffect(()=>{if(O){m0.add(y);const k=document.activeElement;if(!O.contains(k)){const j=new CustomEvent(JO,f0);O.addEventListener(JO,p),O.dispatchEvent(j),j.defaultPrevented||(HX(e_(OS(O)),{select:!0}),document.activeElement===k&&La(O))}return()=>{O.removeEventListener(JO,p),setTimeout(()=>{const j=new CustomEvent(ef,f0);O.addEventListener(ef,x),O.dispatchEvent(j),j.defaultPrevented||La(k??document.body,{select:!0}),O.removeEventListener(ef,x),m0.remove(y)},0)}}},[O,p,x,y]);const Q=v.useCallback(k=>{if(!s&&!l||y.paused)return;const $=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,j=document.activeElement;if($&&j){const z=k.currentTarget,[N,_]=IX(z);N&&_?!k.shiftKey&&j===_?(k.preventDefault(),s&&La(N,{select:!0})):k.shiftKey&&j===N&&(k.preventDefault(),s&&La(_,{select:!0})):j===z&&k.preventDefault()}},[s,l,y.paused]);return r.jsx(Be.div,{tabIndex:-1,...d,ref:b,onKeyDown:Q})});dS.displayName=BX;function HX(t,{select:a=!1}={}){const s=document.activeElement;for(const l of t)if(La(l,{select:a}),document.activeElement!==s)return}function IX(t){const a=OS(t),s=h0(a,t),l=h0(a.reverse(),t);return[s,l]}function OS(t){const a=[],s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const o=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||o?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)a.push(s.currentNode);return a}function h0(t,a){for(const s of t)if(!FX(s,{upTo:a}))return s}function FX(t,{upTo:a}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(a!==void 0&&t===a)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function KX(t){return t instanceof HTMLInputElement&&"select"in t}function La(t,{select:a=!1}={}){if(t&&t.focus){const s=document.activeElement;t.focus({preventScroll:!0}),t!==s&&KX(t)&&a&&t.select()}}var m0=JX();function JX(){let t=[];return{add(a){const s=t[0];a!==s&&(s==null||s.pause()),t=p0(t,a),t.unshift(a)},remove(a){var s;t=p0(t,a),(s=t[0])==null||s.resume()}}}function p0(t,a){const s=[...t],l=s.indexOf(a);return l!==-1&&s.splice(l,1),s}function e_(t){return t.filter(a=>a.tagName!=="A")}var tf=0;function t_(){v.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??x0()),document.body.insertAdjacentElement("beforeend",t[1]??x0()),tf++,()=>{tf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),tf--}},[])}function x0(){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 wn=function(){return wn=Object.assign||function(a){for(var s,l=1,o=arguments.length;l<o;l++){s=arguments[l];for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(a[u]=s[u])}return a},wn.apply(this,arguments)};function fS(t,a){var s={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&a.indexOf(l)<0&&(s[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(t);o<l.length;o++)a.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(t,l[o])&&(s[l[o]]=t[l[o]]);return s}function n_(t,a,s){if(s||arguments.length===2)for(var l=0,o=a.length,u;l<o;l++)(u||!(l in a))&&(u||(u=Array.prototype.slice.call(a,0,l)),u[l]=a[l]);return t.concat(u||Array.prototype.slice.call(a))}var cc="right-scroll-bar-position",uc="width-before-scroll-bar",a_="with-scroll-bars-hidden",s_="--removed-body-scroll-bar-size";function nf(t,a){return typeof t=="function"?t(a):t&&(t.current=a),t}function l_(t,a){var s=v.useState(function(){return{value:t,callback:a,facade:{get current(){return s.value},set current(l){var o=s.value;o!==l&&(s.value=l,s.callback(l,o))}}}})[0];return s.callback=a,s.facade}var r_=typeof window<"u"?v.useLayoutEffect:v.useEffect,g0=new WeakMap;function i_(t,a){var s=l_(null,function(l){return t.forEach(function(o){return nf(o,l)})});return r_(function(){var l=g0.get(s);if(l){var o=new Set(l),u=new Set(t),d=s.current;o.forEach(function(O){u.has(O)||nf(O,null)}),u.forEach(function(O){o.has(O)||nf(O,d)})}g0.set(s,t)},[t]),s}function o_(t){return t}function c_(t,a){a===void 0&&(a=o_);var s=[],l=!1,o={read:function(){if(l)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=a(u,l);return s.push(d),function(){s=s.filter(function(O){return O!==d})}},assignSyncMedium:function(u){for(l=!0;s.length;){var d=s;s=[],d.forEach(u)}s={push:function(O){return u(O)},filter:function(){return s}}},assignMedium:function(u){l=!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 u_(t){t===void 0&&(t={});var a=c_(null);return a.options=wn({async:!0,ssr:!1},t),a}var hS=function(t){var a=t.sideCar,s=fS(t,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=a.read();if(!l)throw new Error("Sidecar medium not found");return v.createElement(l,wn({},s))};hS.isSideCarExport=!0;function d_(t,a){return t.useMedium(a),hS}var mS=u_(),af=function(){},Jc=v.forwardRef(function(t,a){var s=v.useRef(null),l=v.useState({onScrollCapture:af,onWheelCapture:af,onTouchMoveCapture:af}),o=l[0],u=l[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,k=t.inert,$=t.allowPinchZoom,j=t.as,z=j===void 0?"div":j,N=t.gapMode,_=fS(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),G=b,R=i_([s,a]),X=wn(wn({},_),o);return v.createElement(v.Fragment,null,x&&v.createElement(G,{sideCar:mS,removeScrollBar:p,shards:g,noRelative:y,noIsolation:Q,inert:k,setCallbacks:u,allowPinchZoom:!!$,lockRef:s,gapMode:N}),d?v.cloneElement(v.Children.only(O),wn(wn({},X),{ref:R})):v.createElement(z,wn({},X,{className:h,ref:R}),O))});Jc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Jc.classNames={fullWidth:uc,zeroRight:cc};var O_=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function f_(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var a=O_();return a&&t.setAttribute("nonce",a),t}function h_(t,a){t.styleSheet?t.styleSheet.cssText=a:t.appendChild(document.createTextNode(a))}function m_(t){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(t)}var p_=function(){var t=0,a=null;return{add:function(s){t==0&&(a=f_())&&(h_(a,s),m_(a)),t++},remove:function(){t--,!t&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},x_=function(){var t=p_();return function(a,s){v.useEffect(function(){return t.add(a),function(){t.remove()}},[a&&s])}},pS=function(){var t=x_(),a=function(s){var l=s.styles,o=s.dynamic;return t(l,o),null};return a},g_={left:0,top:0,right:0,gap:0},sf=function(t){return parseInt(t||"",10)||0},b_=function(t){var a=window.getComputedStyle(document.body),s=a[t==="padding"?"paddingLeft":"marginLeft"],l=a[t==="padding"?"paddingTop":"marginTop"],o=a[t==="padding"?"paddingRight":"marginRight"];return[sf(s),sf(l),sf(o)]},v_=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return g_;var a=b_(t),s=document.documentElement.clientWidth,l=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,l-s+a[2]-a[0])}},y_=pS(),Cl="data-scroll-locked",S_=function(t,a,s,l){var o=t.left,u=t.top,d=t.right,O=t.gap;return s===void 0&&(s="margin"),`
|
|
589
|
-
.`.concat(a_,` {
|
|
590
|
-
overflow: hidden `).concat(l,`;
|
|
591
|
-
padding-right: `).concat(O,"px ").concat(l,`;
|
|
592
|
-
}
|
|
593
|
-
body[`).concat(Cl,`] {
|
|
594
|
-
overflow: hidden `).concat(l,`;
|
|
595
|
-
overscroll-behavior: contain;
|
|
596
|
-
`).concat([a&&"position: relative ".concat(l,";"),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(l,`;
|
|
603
|
-
`),s==="padding"&&"padding-right: ".concat(O,"px ").concat(l,";")].filter(Boolean).join(""),`
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
.`).concat(cc,` {
|
|
607
|
-
right: `).concat(O,"px ").concat(l,`;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
.`).concat(uc,` {
|
|
611
|
-
margin-right: `).concat(O,"px ").concat(l,`;
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
.`).concat(cc," .").concat(cc,` {
|
|
615
|
-
right: 0 `).concat(l,`;
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
.`).concat(uc," .").concat(uc,` {
|
|
619
|
-
margin-right: 0 `).concat(l,`;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
body[`).concat(Cl,`] {
|
|
623
|
-
`).concat(s_,": ").concat(O,`px;
|
|
624
|
-
}
|
|
625
|
-
`)},b0=function(){var t=parseInt(document.body.getAttribute(Cl)||"0",10);return isFinite(t)?t:0},Q_=function(){v.useEffect(function(){return document.body.setAttribute(Cl,(b0()+1).toString()),function(){var t=b0()-1;t<=0?document.body.removeAttribute(Cl):document.body.setAttribute(Cl,t.toString())}},[])},j_=function(t){var a=t.noRelative,s=t.noImportant,l=t.gapMode,o=l===void 0?"margin":l;Q_();var u=v.useMemo(function(){return v_(o)},[o]);return v.createElement(y_,{styles:S_(u,!a,o,s?"":"!important")})},Cf=!1;if(typeof window<"u")try{var Fo=Object.defineProperty({},"passive",{get:function(){return Cf=!0,!0}});window.addEventListener("test",Fo,Fo),window.removeEventListener("test",Fo,Fo)}catch{Cf=!1}var yl=Cf?{passive:!1}:!1,k_=function(t){return t.tagName==="TEXTAREA"},xS=function(t,a){if(!(t instanceof Element))return!1;var s=window.getComputedStyle(t);return s[a]!=="hidden"&&!(s.overflowY===s.overflowX&&!k_(t)&&s[a]==="visible")},w_=function(t){return xS(t,"overflowY")},$_=function(t){return xS(t,"overflowX")},v0=function(t,a){var s=a.ownerDocument,l=a;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var o=gS(t,l);if(o){var u=bS(t,l),d=u[1],O=u[2];if(d>O)return!0}l=l.parentNode}while(l&&l!==s.body);return!1},T_=function(t){var a=t.scrollTop,s=t.scrollHeight,l=t.clientHeight;return[a,s,l]},N_=function(t){var a=t.scrollLeft,s=t.scrollWidth,l=t.clientWidth;return[a,s,l]},gS=function(t,a){return t==="v"?w_(a):$_(a)},bS=function(t,a){return t==="v"?T_(a):N_(a)},P_=function(t,a){return t==="h"&&a==="rtl"?-1:1},z_=function(t,a,s,l,o){var u=P_(t,window.getComputedStyle(a).direction),d=u*l,O=s.target,h=a.contains(O),p=!1,x=d>0,g=0,b=0;do{if(!O)break;var y=bS(t,O),Q=y[0],k=y[1],$=y[2],j=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&&(a.contains(O)||a===O));return(x&&Math.abs(g)<1||!x&&Math.abs(b)<1)&&(p=!0),p},Ko=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},y0=function(t){return[t.deltaX,t.deltaY]},S0=function(t){return t&&"current"in t?t.current:t},R_=function(t,a){return t[0]===a[0]&&t[1]===a[1]},C_=function(t){return`
|
|
626
|
-
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
627
|
-
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
628
|
-
`)},X_=0,Sl=[];function __(t){var a=v.useRef([]),s=v.useRef([0,0]),l=v.useRef(),o=v.useState(X_++)[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 k=n_([t.lockRef.current],(t.shards||[]).map(S0),!0).filter(Boolean);return k.forEach(function($){return $.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),k.forEach(function($){return $.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var O=v.useCallback(function(k,$){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!d.current.allowPinchZoom;var j=Ko(k),z=s.current,N="deltaX"in k?k.deltaX:z[0]-j[0],_="deltaY"in k?k.deltaY:z[1]-j[1],G,R=k.target,X=Math.abs(N)>Math.abs(_)?"h":"v";if("touches"in k&&X==="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=v0(X,R);if(!ae)return!0;if(ae?G=X:(G=X==="v"?"h":"v",ae=v0(X,R)),!ae)return!1;if(!l.current&&"changedTouches"in k&&(N||_)&&(l.current=G),!G)return!0;var F=l.current||G;return z_(F,$,k,F==="h"?N:_)},[]),h=v.useCallback(function(k){var $=k;if(!(!Sl.length||Sl[Sl.length-1]!==u)){var j="deltaY"in $?y0($):Ko($),z=a.current.filter(function(G){return G.name===$.type&&(G.target===$.target||$.target===G.shadowParent)&&R_(G.delta,j)})[0];if(z&&z.should){$.cancelable&&$.preventDefault();return}if(!z){var N=(d.current.shards||[]).map(S0).filter(Boolean).filter(function(G){return G.contains($.target)}),_=N.length>0?O($,N[0]):!d.current.noIsolation;_&&$.cancelable&&$.preventDefault()}}},[]),p=v.useCallback(function(k,$,j,z){var N={name:k,delta:$,target:j,should:z,shadowParent:A_(j)};a.current.push(N),setTimeout(function(){a.current=a.current.filter(function(_){return _!==N})},1)},[]),x=v.useCallback(function(k){s.current=Ko(k),l.current=void 0},[]),g=v.useCallback(function(k){p(k.type,y0(k),k.target,O(k,t.lockRef.current))},[]),b=v.useCallback(function(k){p(k.type,Ko(k),k.target,O(k,t.lockRef.current))},[]);v.useEffect(function(){return Sl.push(u),t.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:b}),document.addEventListener("wheel",h,yl),document.addEventListener("touchmove",h,yl),document.addEventListener("touchstart",x,yl),function(){Sl=Sl.filter(function(k){return k!==u}),document.removeEventListener("wheel",h,yl),document.removeEventListener("touchmove",h,yl),document.removeEventListener("touchstart",x,yl)}},[]);var y=t.removeScrollBar,Q=t.inert;return v.createElement(v.Fragment,null,Q?v.createElement(u,{styles:C_(o)}):null,y?v.createElement(j_,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function A_(t){for(var a=null;t!==null;)t instanceof ShadowRoot&&(a=t.host,t=t.host),t=t.parentNode;return a}const Z_=d_(mS,__);var vS=v.forwardRef(function(t,a){return v.createElement(Jc,wn({},t,{ref:a,sideCar:Z_}))});vS.classNames=Jc.classNames;var E_=function(t){if(typeof document>"u")return null;var a=Array.isArray(t)?t[0]:t;return a.ownerDocument.body},Ql=new WeakMap,Jo=new WeakMap,ec={},lf=0,yS=function(t){return t&&(t.host||yS(t.parentNode))},q_=function(t,a){return a.map(function(s){if(t.contains(s))return s;var l=yS(s);return l&&t.contains(l)?l:(console.error("aria-hidden",s,"in not contained inside",t,". Doing nothing"),null)}).filter(function(s){return!!s})},M_=function(t,a,s,l){var o=q_(a,Array.isArray(t)?t:[t]);ec[s]||(ec[s]=new WeakMap);var u=ec[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(l),Q=y!==null&&y!=="false",k=(Ql.get(b)||0)+1,$=(u.get(b)||0)+1;Ql.set(b,k),u.set(b,$),d.push(b),k===1&&Q&&Jo.set(b,!0),$===1&&b.setAttribute(s,"true"),Q||b.setAttribute(l,"true")}catch(j){console.error("aria-hidden: cannot operate on ",b,j)}})};return x(a),O.clear(),lf++,function(){d.forEach(function(g){var b=Ql.get(g)-1,y=u.get(g)-1;Ql.set(g,b),u.set(g,y),b||(Jo.has(g)||g.removeAttribute(l),Jo.delete(g)),y||g.removeAttribute(s)}),lf--,lf||(Ql=new WeakMap,Ql=new WeakMap,Jo=new WeakMap,ec={})}},Y_=function(t,a,s){s===void 0&&(s="data-aria-hidden");var l=Array.from(Array.isArray(t)?t:[t]),o=E_(t);return o?(l.push.apply(l,Array.from(o.querySelectorAll("[aria-live], script"))),M_(l,o,s,"aria-hidden")):function(){return null}},eu="Dialog",[SS]=Cs(eu),[U_,yn]=SS(eu),QS=t=>{const{__scopeDialog:a,children:s,open:l,defaultOpen:o,onOpenChange:u,modal:d=!0}=t,O=v.useRef(null),h=v.useRef(null),[p,x]=Yc({prop:l,defaultProp:o??!1,onChange:u,caller:eu});return r.jsx(U_,{scope:a,triggerRef:O,contentRef:h,contentId:Tl(),titleId:Tl(),descriptionId:Tl(),open:p,onOpenChange:x,onOpenToggle:v.useCallback(()=>x(g=>!g),[x]),modal:d,children:s})};QS.displayName=eu;var jS="DialogTrigger",V_=v.forwardRef((t,a)=>{const{__scopeDialog:s,...l}=t,o=yn(jS,s),u=it(a,o.triggerRef);return r.jsx(Be.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Rh(o.open),...l,ref:u,onClick:qe(t.onClick,o.onOpenToggle)})});V_.displayName=jS;var Ph="DialogPortal",[G_,kS]=SS(Ph,{forceMount:void 0}),wS=t=>{const{__scopeDialog:a,forceMount:s,children:l,container:o}=t,u=yn(Ph,a);return r.jsx(G_,{scope:a,forceMount:s,children:v.Children.map(l,d=>r.jsx(vn,{present:s||u.open,children:r.jsx(Hf,{asChild:!0,container:o,children:d})}))})};wS.displayName=Ph;var Cc="DialogOverlay",$S=v.forwardRef((t,a)=>{const s=kS(Cc,t.__scopeDialog),{forceMount:l=s.forceMount,...o}=t,u=yn(Cc,t.__scopeDialog);return u.modal?r.jsx(vn,{present:l||u.open,children:r.jsx(D_,{...o,ref:a})}):null});$S.displayName=Cc;var L_=dc("DialogOverlay.RemoveScroll"),D_=v.forwardRef((t,a)=>{const{__scopeDialog:s,...l}=t,o=yn(Cc,s);return r.jsx(vS,{as:L_,allowPinchZoom:!0,shards:[o.contentRef],children:r.jsx(Be.div,{"data-state":Rh(o.open),...l,ref:a,style:{pointerEvents:"auto",...l.style}})})}),Ps="DialogContent",TS=v.forwardRef((t,a)=>{const s=kS(Ps,t.__scopeDialog),{forceMount:l=s.forceMount,...o}=t,u=yn(Ps,t.__scopeDialog);return r.jsx(vn,{present:l||u.open,children:u.modal?r.jsx(W_,{...o,ref:a}):r.jsx(B_,{...o,ref:a})})});TS.displayName=Ps;var W_=v.forwardRef((t,a)=>{const s=yn(Ps,t.__scopeDialog),l=v.useRef(null),o=it(a,s.contentRef,l);return v.useEffect(()=>{const u=l.current;if(u)return Y_(u)},[]),r.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())})}),B_=v.forwardRef((t,a)=>{const s=yn(Ps,t.__scopeDialog),l=v.useRef(!1),o=v.useRef(!1);return r.jsx(NS,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var d,O;(d=t.onCloseAutoFocus)==null||d.call(t,u),u.defaultPrevented||(l.current||(O=s.triggerRef.current)==null||O.focus(),u.preventDefault()),l.current=!1,o.current=!1},onInteractOutside:u=>{var h,p;(h=t.onInteractOutside)==null||h.call(t,u),u.defaultPrevented||(l.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,a)=>{const{__scopeDialog:s,trapFocus:l,onOpenAutoFocus:o,onCloseAutoFocus:u,...d}=t,O=yn(Ps,s),h=v.useRef(null),p=it(a,h);return t_(),r.jsxs(r.Fragment,{children:[r.jsx(dS,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:o,onUnmountAutoFocus:u,children:r.jsx(Mf,{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)})}),r.jsxs(r.Fragment,{children:[r.jsx(H_,{titleId:O.titleId}),r.jsx(F_,{contentRef:h,descriptionId:O.descriptionId})]})]})}),zh="DialogTitle",PS=v.forwardRef((t,a)=>{const{__scopeDialog:s,...l}=t,o=yn(zh,s);return r.jsx(Be.h2,{id:o.titleId,...l,ref:a})});PS.displayName=zh;var zS="DialogDescription",RS=v.forwardRef((t,a)=>{const{__scopeDialog:s,...l}=t,o=yn(zS,s);return r.jsx(Be.p,{id:o.descriptionId,...l,ref:a})});RS.displayName=zS;var CS="DialogClose",XS=v.forwardRef((t,a)=>{const{__scopeDialog:s,...l}=t,o=yn(CS,s);return r.jsx(Be.button,{type:"button",...l,ref:a,onClick:qe(t.onClick,()=>o.onOpenChange(!1))})});XS.displayName=CS;function Rh(t){return t?"open":"closed"}var _S="DialogTitleWarning",[lZ,AS]=dk(_S,{contentName:Ps,titleName:zh,docsSlug:"dialog"}),H_=({titleId:t})=>{const a=AS(_S),s=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
|
|
629
|
-
|
|
630
|
-
If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
631
|
-
|
|
632
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return v.useEffect(()=>{t&&(document.getElementById(t)||console.error(s))},[s,t]),null},I_="DialogDescriptionWarning",F_=({contentRef:t,descriptionId:a})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${AS(I_).contentName}}.`;return v.useEffect(()=>{var u;const o=(u=t.current)==null?void 0:u.getAttribute("aria-describedby");a&&o&&(document.getElementById(a)||console.warn(l))},[l,t,a]),null},ZS=QS,ES=wS,qS=$S,MS=TS,YS=PS,US=RS,VS=XS;function GS({children:t,...a}){return r.jsx(ZS,{...a,children:t})}function LS({children:t,className:a,title:s,description:l,...o}){return r.jsxs(ES,{children:[r.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"}),r.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",a),...o,children:[s&&r.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border-subtle",children:[r.jsx(YS,{className:"text-base font-semibold text-text-0 font-sans",children:s}),r.jsx(VS,{className:"p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors",children:r.jsx(Qt,{size:16})})]}),l&&r.jsx(US,{className:"sr-only",children:l}),t]})]})}var Q0={};function K_({path:t,onNavigate:a}){const s=t.split("/").filter(Boolean);return r.jsxs("div",{className:"flex items-center gap-0.5 min-w-0 overflow-x-auto py-1.5 scrollbar-none",children:[r.jsx("button",{onClick:()=>a("/"),className:"flex-shrink-0 p-1 rounded hover:bg-surface-5 cursor-pointer text-text-3 hover:text-text-0 transition-colors",children:r.jsx(nh,{size:13})}),s.map((l,o)=>{const u="/"+s.slice(0,o+1).join("/"),d=o===s.length-1;return r.jsxs("div",{className:"flex items-center gap-0.5 flex-shrink-0",children:[r.jsx(_s,{size:11,className:"text-text-4"}),r.jsx("button",{onClick:()=>a(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:l})]},o)})]})}function DS({open:t,onOpenChange:a,currentPath:s,onSelect:l}){const[o,u]=v.useState(s||Q0.HOME||"/"),[d,O]=v.useState([]),[h,p]=v.useState(!1),[x,g]=v.useState(null);v.useEffect(()=>{t&&b(s||"/")},[t]);async function b($){p(!0),g(null);try{const j=await J.get(`/browse-system?path=${encodeURIComponent($)}`);u(j.current||$),O(j.dirs||[])}catch(j){g(j.message),O([])}p(!1)}function y(){const $=o==="/"?"/":o.split("/").slice(0,-1).join("/")||"/";b($)}function Q(){b(Q0.HOME||"/Users")}function k(){l(o),a(!1)}return r.jsx(GS,{open:t,onOpenChange:a,children:r.jsx(LS,{title:"Select Working Directory",description:"Choose a directory for this agent to work in",className:"max-w-[520px]",children:r.jsxs("div",{className:"px-5 py-4 space-y-3",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.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:r.jsx(Q$,{size:14})}),r.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:r.jsx(jT,{size:14})}),r.jsx("div",{className:"flex-1 min-w-0 bg-surface-0 rounded-md border border-border-subtle px-2",children:r.jsx(K_,{path:o,onNavigate:b})})]}),r.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle overflow-hidden",children:r.jsxs("div",{className:"max-h-[340px] overflow-y-auto",children:[h&&r.jsx("div",{className:"flex items-center justify-center py-8",children:r.jsx(Ka,{size:18,className:"text-text-3 animate-spin"})}),x&&r.jsx("div",{className:"px-4 py-6 text-center",children:r.jsx("p",{className:"text-xs text-danger font-sans",children:x})}),!h&&!x&&d.length===0&&r.jsx("div",{className:"px-4 py-6 text-center",children:r.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No subdirectories"})}),!h&&!x&&d.map($=>r.jsxs("button",{onClick:()=>b($.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:[$.hasChildren?r.jsx(OT,{size:15,className:"text-warning flex-shrink-0"}):r.jsx(ai,{size:15,className:"text-text-3 flex-shrink-0"}),r.jsx("span",{className:"text-sm text-text-0 font-sans truncate flex-1",children:$.name}),$.hasChildren&&r.jsx(_s,{size:12,className:"text-text-4 flex-shrink-0"})]},$.path))]})}),r.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:[r.jsx(ai,{size:16,className:"text-accent flex-shrink-0"}),r.jsx("span",{className:"text-xs font-mono text-text-1 truncate flex-1",children:o})]}),r.jsxs("div",{className:"flex justify-end gap-2",children:[r.jsx(ve,{variant:"ghost",size:"md",onClick:()=>a(!1),children:"Cancel"}),r.jsxs(ve,{variant:"primary",size:"md",onClick:k,className:"gap-1.5",children:[r.jsx(Wt,{size:14})," Select Folder"]})]})]})})})}function WS({children:t,...a}){return r.jsx(ZS,{...a,children:t})}function BS({children:t,className:a,title:s,side:l="right",width:o=400,...u}){return r.jsxs(ES,{children:[r.jsx(qS,{className:"fixed inset-0 z-40 bg-black/30"}),r.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",l==="right"&&"right-0 data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",l==="left"&&"left-0 data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",a),style:{width:o},...u,children:[s&&r.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:[r.jsx(YS,{className:"text-base font-semibold text-text-0 font-sans",children:s}),r.jsx(VS,{className:"p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer",children:r.jsx(Qt,{size:16})})]}),r.jsx(US,{className:"sr-only",children:"Panel"}),t]})]})}function J_({value:t,onChange:a}){return r.jsx("button",{onClick:()=>a(!t),className:re("w-9 h-5 rounded-full p-0.5 transition-colors cursor-pointer",t?"bg-accent":"bg-surface-5"),children:r.jsx("div",{className:re("w-4 h-4 rounded-full bg-white shadow-sm transition-transform",t?"translate-x-4":"translate-x-0")})})}function eA({user:t}){const[a,s]=v.useState(!1),l=(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 l&&!a?r.jsx("img",{src:l,alt:"",className:"w-6 h-6 rounded-full",referrerPolicy:"no-referrer",crossOrigin:"anonymous",onError:()=>s(!0)}):r.jsx("div",{className:"w-6 h-6 rounded-full bg-accent/10 flex items-center justify-center",children:r.jsx(Kb,{size:12,className:"text-accent"})})}function tA({provider:t,onKeyChange:a}){var $,j,z;const[s,l]=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 J.post(`/credentials/${t.id}`,{key:o.trim()}),x("success",`API key set for ${t.name}`),u(""),l(!1),a&&a()}catch(N){x("error","Failed to set key",N.message)}}async function k(){try{await J.delete(`/credentials/${t.id}`),x("info",`Removed ${t.name} key`),a&&a()}catch(N){x("error","Remove failed",N.message)}}if(g){const N=((j=($=t.models)==null?void 0:$.filter(G=>!G.disabled))==null?void 0:j.length)||0,_=()=>D.getState().setActiveView("models");return r.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[r.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[r.jsx(Ts,{status:y&&N>0?"running":"crashed",size:"sm"}),r.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:t.name}),r.jsx("div",{className:"flex-1"}),y&&N>0?r.jsxs(Xe,{variant:"success",className:"text-2xs gap-1",children:[r.jsx(Wt,{size:8})," ",N," models"]}):y?r.jsx(Xe,{variant:"warning",className:"text-2xs",children:"No models pulled"}):r.jsx(Xe,{variant:"default",className:"text-2xs",children:"Not set up"})]}),r.jsx("div",{className:"flex-1",children:h?r.jsxs(r.Fragment,{children:[r.jsx(uS,{isInstalled:y,onModelChange:a}),r.jsxs("div",{className:"px-4 py-2 border-t border-border-subtle flex gap-2",children:[r.jsx(ve,{variant:"ghost",size:"sm",onClick:()=>p(!1),className:"flex-1 h-7 text-2xs",children:"Back"}),r.jsx(ve,{variant:"secondary",size:"sm",onClick:()=>{p(!1),_()},className:"flex-1 h-7 text-2xs gap-1",children:"Models Tab"})]})]}):r.jsxs("div",{className:"px-4 py-3 flex flex-col h-full",children:[r.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."}),r.jsxs("div",{className:"flex gap-2 mt-3",children:[y?r.jsxs(ve,{variant:"primary",size:"sm",onClick:()=>p(!0),className:"flex-1 h-7 text-2xs gap-1.5",children:[r.jsx(Zl,{size:11})," ",N>0?"Manage":"Pull Models"]}):r.jsxs(ve,{variant:"primary",size:"sm",onClick:()=>p(!0),className:"flex-1 h-7 text-2xs gap-1.5",children:[r.jsx(Zl,{size:11})," Set Up Ollama"]}),r.jsx(ve,{variant:"secondary",size:"sm",onClick:_,className:"flex-1 h-7 text-2xs gap-1.5",children:"Models Tab"})]})]})})]})}return r.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[r.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[r.jsx(Ts,{status:y?"running":"crashed",size:"sm"}),r.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:t.name}),r.jsx("div",{className:"flex-1"}),y?r.jsxs(Xe,{variant:"success",className:"text-2xs gap-1",children:[r.jsx(Wt,{size:8})," Ready"]}):r.jsx(Xe,{variant:"default",className:"text-2xs",children:b?"Not installed":"No key"})]}),r.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&&r.jsx("div",{className:"flex flex-wrap gap-1 mb-3",children:t.models.map(N=>r.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&&r.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:[r.jsx(Wt,{size:10})," Subscription active"]}),t.hasKey&&!s&&r.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[r.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:[r.jsx(Wt,{size:10})," API Connected"]}),r.jsx("button",{onClick:()=>{l(!0),O(!1),u("")},className:"text-2xs text-text-4 hover:text-accent cursor-pointer font-sans",children:"Edit"}),r.jsx("button",{onClick:k,className:"text-2xs text-text-4 hover:text-danger cursor-pointer font-sans",children:"Remove"})]}),r.jsx("div",{className:"flex-1"}),s&&r.jsxs("div",{className:"space-y-2.5 pt-1",children:[r.jsxs("div",{children:[r.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`}),r.jsxs("div",{className:"relative",children:[r.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}),r.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?r.jsx(th,{size:12}):r.jsx(Dl,{size:12})})]})]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx(ve,{variant:"primary",size:"sm",onClick:Q,disabled:!o.trim(),className:"flex-1 h-8 text-xs",children:"Save Key"}),r.jsx(ve,{variant:"ghost",size:"sm",onClick:()=>{l(!1),u("")},className:"h-8 text-xs px-3",children:"Cancel"})]})]}),!s&&!t.hasKey&&r.jsxs(ve,{variant:b?"secondary":"primary",size:"sm",onClick:()=>{l(!0),O(!1),u("")},className:"w-full h-8 text-2xs gap-1.5 mt-2",children:[r.jsx(yc,{size:11}),b?"Add API key for headless mode":"Add API Key"]})]})]})}function jl({icon:t,label:a,description:s,children:l}){return r.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-1 px-4 py-3.5 flex flex-col gap-2",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"w-6 h-6 rounded bg-accent/8 flex items-center justify-center flex-shrink-0",children:r.jsx(t,{size:12,className:"text-accent"})}),r.jsx("div",{className:"text-[13px] font-medium text-text-0 font-sans leading-tight",children:a})]}),r.jsx("div",{className:"text-2xs text-text-4 font-sans leading-relaxed",children:s}),r.jsx("div",{className:"mt-auto pt-1",children:l})]})}const HS={telegram:rh,discord:pi,slack:Ub},ks={telegram:"Telegram",discord:"Discord",slack:"Slack"},nA={telegram:"Bot token from @BotFather",discord:"Bot token from Developer Portal",slack:"Bot token (xoxb-...)"},aA=["critical","lifecycle","all"];function sA({type:t,open:a,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:pi,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:Ub,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 r.jsx(WS,{open:a,onOpenChange:s,children:r.jsx(BS,{title:o.title,width:480,children:r.jsxs("div",{className:"px-5 py-4 space-y-5",children:[r.jsxs("div",{className:"flex items-start gap-3 p-3 bg-accent/5 border border-accent/15 rounded-lg",children:[r.jsx("div",{className:"w-8 h-8 rounded-lg bg-accent/10 flex items-center justify-center flex-shrink-0 mt-0.5",children:r.jsx(u,{size:16,className:"text-accent"})}),r.jsx("p",{className:"text-xs text-text-2 font-sans leading-relaxed",children:o.intro})]}),o.sections.map((d,O)=>{var h;return r.jsxs("div",{children:[r.jsxs("h3",{className:"text-xs font-semibold text-text-0 font-sans mb-2.5 flex items-center gap-2",children:[r.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&&r.jsx("p",{className:"text-2xs text-text-3 font-sans mb-2",children:d.note}),d.steps&&r.jsx("ol",{className:"space-y-2 mb-2",children:d.steps.map((p,x)=>r.jsxs("li",{className:"flex gap-2 text-2xs text-text-2 font-sans leading-relaxed",children:[r.jsxs("span",{className:"text-text-4 font-mono w-4 flex-shrink-0 pt-px",children:[x+1,"."]}),r.jsxs("span",{children:[p.text,p.link&&r.jsxs(r.Fragment,{children:[" ",r.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,r.jsx(vc,{size:9})]})]})]})]},x))}),d.scopes&&r.jsx("div",{className:"flex flex-wrap gap-1.5 mb-2 ml-6",children:d.scopes.map(p=>r.jsx("code",{className:"px-2 py-0.5 rounded bg-surface-4 text-2xs font-mono text-accent",children:p},p))}),d.after&&r.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 r.jsxs("li",{className:"flex gap-2 text-2xs text-text-2 font-sans leading-relaxed",children:[r.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,"."]}),r.jsx("span",{children:p.text})]},x)})}),d.important&&r.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&&r.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=>r.jsx("code",{className:"block text-2xs font-mono text-text-1",children:p},p))})]},O)}),r.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:[r.jsx(vc,{size:10}),"Full documentation at docs.groovedev.ai"]})]})})})}function lA({gateway:t,onRefresh:a}){var se,ie;const[s,l]=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,k]=v.useState([]),[$,j]=v.useState(!1),z=D(W=>W.addToast);v.useEffect(()=>{t.connected&&!t.chatId&&t.type==="slack"&&J.get(`/gateways/${t.id}/channels`).then(W=>k(Array.isArray(W)?W:[])).catch(()=>{})},[t.connected,t.chatId,t.id,t.type]);const N=HS[t.type]||lh,_=t.type==="slack";async function G(){if(o.trim())try{await J.post(`/gateways/${t.id}/credentials`,{key:"bot_token",value:o.trim()}),_&&d.trim()&&await J.post(`/gateways/${t.id}/credentials`,{key:"app_token",value:d.trim()}),z("success","Token saved — connecting..."),u(""),O(""),l(!1);try{await J.post(`/gateways/${t.id}/connect`),z("success",`${ks[t.type]} connected!`)}catch(W){z("error","Token saved but connect failed",W.message)}a()}catch(W){z("error","Failed to save token",W.message)}}async function R(){g(!0);try{await J.post(`/gateways/${t.id}/test`),z("success","Test message sent!")}catch(W){z("error","Test failed",W.message)}g(!1)}async function X(){y(!0);try{t.connected?(await J.post(`/gateways/${t.id}/disconnect`),z("info",`${ks[t.type]} disconnected`)):(await J.post(`/gateways/${t.id}/connect`),z("success",`${ks[t.type]} connected!`)),a()}catch(W){z("error",t.connected?"Disconnect failed":"Connect failed",W.message)}y(!1)}async function T(W){try{await J.patch(`/gateways/${t.id}`,{enabled:W}),a()}catch(P){z("error","Update failed",P.message)}}async function Y(W){try{await J.patch(`/gateways/${t.id}`,{notifications:{preset:W}}),a()}catch(P){z("error","Update failed",P.message)}}async function M(W){try{await J.patch(`/gateways/${t.id}`,{commandPermission:W}),a()}catch(P){z("error","Update failed",P.message)}}async function ae(){try{await J.delete(`/gateways/${t.id}`),z("info",`${ks[t.type]} gateway removed`),a()}catch(W){z("error","Delete failed",W.message)}}const F=((se=t.notifications)==null?void 0:se.preset)||"critical";return r.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[r.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[r.jsx(Ts,{status:t.connected?"running":"crashed",size:"sm"}),r.jsx(N,{size:13,className:"text-text-2"}),r.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:ks[t.type]}),r.jsx("div",{className:"flex-1"}),t.connected?r.jsxs(Xe,{variant:"success",className:"text-2xs gap-1",children:[r.jsx(i1,{size:8})," Connected"]}):t.enabled?r.jsx(Xe,{variant:"warning",className:"text-2xs",children:"Disconnected"}):r.jsx(Xe,{variant:"default",className:"text-2xs",children:"Disabled"})]}),r.jsxs("div",{className:"flex-1 flex flex-col px-4 py-3 min-h-[140px]",children:[t.connected&&!s&&r.jsxs(r.Fragment,{children:[r.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:[r.jsx(Wt,{size:10})," Gateway active",t.botUsername&&r.jsxs("span",{className:"text-text-4 ml-1",children:["@",t.botUsername]}),t.botTag&&r.jsx("span",{className:"text-text-4 ml-1",children:t.botTag})]}),r.jsxs("div",{className:"mb-3",children:[r.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?r.jsxs("div",{className:"flex items-center gap-2",children:[r.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}),r.jsx("button",{onClick:async()=>{try{await J.patch(`/gateways/${t.id}`,{chatId:null}),a()}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?r.jsxs("select",{onChange:async W=>{if(W.target.value)try{await J.patch(`/gateways/${t.id}`,{chatId:W.target.value}),a()}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:[r.jsx("option",{value:"",disabled:!0,children:"Select a channel..."}),Q.map(W=>r.jsxs("option",{value:W.id,children:["#",W.name]},W.id))]}):r.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:",r.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 J.patch(`/gateways/${t.id}`,{chatId:W.target.value.trim()}),a()}catch(P){z("error","Failed to set channel",P.message)}}})]})]}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{className:"text-2xs font-semibold text-text-3 font-sans mb-1.5 block",children:"Notifications"}),r.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:aA.map(W=>r.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))})]}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{className:"text-2xs font-semibold text-text-3 font-sans mb-1.5 block",children:"Commands"}),r.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:["full","read-only"].map(W=>r.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&&r.jsxs(r.Fragment,{children:[r.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&&r.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:[r.jsx(bc,{size:11}),"How to set up",r.jsx(vc,{size:9})]})]}),r.jsx(sA,{type:t.type,open:$,onOpenChange:j}),r.jsx("div",{className:"flex-1"}),s&&r.jsxs("div",{className:"space-y-2.5 pt-1",children:[r.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:[r.jsx(bc,{size:11}),"Where do I get these?"]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-2xs font-semibold text-text-2 font-sans mb-1.5 block",children:"Bot Token"}),r.jsxs("div",{className:"relative",children:[r.jsx("input",{value:o,onChange:W=>u(W.target.value),onKeyDown:W=>W.key==="Enter"&&!_&&G(),type:h?"text":"password",placeholder:nA[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}),r.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?r.jsx(th,{size:12}):r.jsx(Dl,{size:12})})]})]}),_&&r.jsxs("div",{children:[r.jsx("label",{className:"text-2xs font-semibold text-text-2 font-sans mb-1.5 block",children:"App Token (Socket Mode)"}),r.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"})]}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx(ve,{variant:"primary",size:"sm",onClick:G,disabled:!o.trim(),className:"flex-1 h-8 text-xs",children:"Save Token"}),r.jsx(ve,{variant:"ghost",size:"sm",onClick:()=>{l(!1),u(""),O("")},className:"h-8 text-xs px-3",children:"Cancel"})]})]}),!s&&r.jsxs("div",{className:"flex gap-2 mt-2",children:[!t.connected&&r.jsxs(ve,{variant:"primary",size:"sm",onClick:()=>l(!0),className:"flex-1 h-7 text-2xs gap-1.5",children:[r.jsx(yc,{size:11}),t.enabled?"Set Token":"Configure"]}),t.connected&&r.jsxs(r.Fragment,{children:[r.jsxs(ve,{variant:"secondary",size:"sm",onClick:R,disabled:x,className:"flex-1 h-7 text-2xs gap-1.5",children:[r.jsx(oh,{size:11}),x?"Sending...":"Test"]}),r.jsx(ve,{variant:"secondary",size:"sm",onClick:()=>l(!0),className:"h-7 text-2xs px-2.5",children:r.jsx(yc,{size:11})})]}),r.jsx(ve,{variant:"ghost",size:"sm",onClick:X,disabled:b,className:"h-7 text-2xs px-2.5",title:t.connected?"Disconnect":"Connect",children:t.connected?r.jsx(Lb,{size:11}):r.jsx(i1,{size:11})}),r.jsx(J_,{value:t.enabled,onChange:T}),r.jsx("button",{onClick:ae,className:"text-text-4 hover:text-danger cursor-pointer p-1",title:"Remove gateway",children:r.jsx(as,{size:11})})]})]})]})}function rA({existingTypes:t,onAdd:a}){const[s,l]=v.useState(!1),o=["telegram","discord","slack"].filter(u=>!t.includes(u));return o.length===0?null:s?r.jsxs("div",{className:"flex flex-col rounded-lg border border-accent/30 bg-surface-1 overflow-hidden min-w-[220px]",children:[r.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[r.jsx(lh,{size:13,className:"text-accent"}),r.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:"Add Gateway"}),r.jsx("div",{className:"flex-1"}),r.jsx("button",{onClick:()=>l(!1),className:"text-text-4 hover:text-text-1 cursor-pointer",children:r.jsx(Qt,{size:12})})]}),r.jsx("div",{className:"p-3 space-y-2",children:o.map(u=>{const d=HS[u];return r.jsxs("button",{onClick:()=>{a(u),l(!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:[r.jsx(d,{size:14,className:"text-text-3 group-hover:text-accent"}),r.jsx("span",{className:"text-xs font-medium text-text-1 group-hover:text-accent font-sans",children:ks[u]})]},u)})})]}):r.jsxs("button",{onClick:()=>l(!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:[r.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:r.jsx(Ja,{size:14,className:"text-accent"})}),r.jsx("span",{className:"text-2xs font-semibold text-text-3 group-hover:text-text-1 font-sans transition-colors",children:"Add Gateway"})]})}function iA(){const[t,a]=v.useState([]),[s,l]=v.useState(null),[o,u]=v.useState(null),[d,O]=v.useState([]),[h,p]=v.useState(!0),[x,g]=v.useState(!1),b=D(X=>X.addToast),y=D(X=>X.marketplaceUser),Q=D(X=>X.marketplaceAuthenticated),k=D(X=>X.marketplaceLogin),$=D(X=>X.marketplaceLogout);function j(){J.get("/providers").then(X=>a(Array.isArray(X)?X:[])).catch(()=>{})}function z(){J.get("/gateways").then(X=>O(Array.isArray(X)?X:[])).catch(()=>{})}v.useEffect(()=>{Promise.all([J.get("/providers"),J.get("/config"),J.get("/status"),J.get("/gateways")]).then(([X,T,Y,M])=>{a(Array.isArray(X)?X:[]),l(T),u(Y),O(Array.isArray(M)?M:[]),p(!1)}).catch(()=>p(!1))},[]);async function N(X){try{await J.post("/gateways",{type:X}),b("success",`${ks[X]} gateway added`),z()}catch(T){b("error","Failed to add gateway",T.message)}}async function _(X,T){try{const Y=await J.patch("/config",{[X]:T});l(Y)}catch(Y){b("error","Update failed",Y.message)}}if(h)return r.jsxs("div",{className:"flex flex-col h-full",children:[r.jsx("div",{className:"h-12 bg-surface-1 border-b border-border"}),r.jsxs("div",{className:"flex-1 p-4 space-y-4",children:[r.jsx("div",{className:"grid grid-cols-4 gap-3",children:[...Array(4)].map((X,T)=>r.jsx(rn,{className:"h-40 rounded-lg"},T))}),r.jsx("div",{className:"grid grid-cols-3 gap-3",children:[...Array(6)].map((X,T)=>r.jsx(rn,{className:"h-28 rounded-lg"},T))})]})]});const G=t.filter(X=>X.authType==="local"||X.authType==="subscription"?X.installed:X.hasKey).length,R=(s==null?void 0:s.rotationThreshold)||0;return r.jsxs("div",{className:"flex flex-col h-full",children:[r.jsxs("div",{className:"flex items-center gap-4 px-4 py-2.5 bg-surface-1 border-b border-border flex-shrink-0",children:[r.jsx("h2",{className:"text-sm font-semibold text-text-0 font-sans",children:"Settings"}),r.jsx("div",{className:"flex-1"}),r.jsxs("div",{className:"flex items-center gap-4 text-2xs text-text-3 font-sans",children:[(o==null?void 0:o.version)&&r.jsxs("span",{children:["v",o.version]}),(o==null?void 0:o.port)&&r.jsxs("span",{children:[":",o.port]}),(o==null?void 0:o.uptime)>0&&r.jsxs("span",{children:["Up ",Wc(o.uptime)]})]}),r.jsx("div",{className:"w-px h-4 bg-border-subtle"}),Q?r.jsxs("div",{className:"flex items-center gap-2.5",children:[r.jsx(eA,{user:y}),r.jsx("span",{className:"text-xs font-medium text-text-0 font-sans",children:(y==null?void 0:y.displayName)||"User"}),r.jsxs("button",{onClick:$,className:"text-2xs text-text-4 hover:text-text-1 cursor-pointer font-sans flex items-center gap-1",children:[r.jsx(Yb,{size:10})," Sign out"]})]}):r.jsxs(ve,{variant:"ghost",size:"sm",onClick:k,className:"h-7 text-2xs gap-1.5 text-text-3",children:[r.jsx(ah,{size:11})," Sign in"]}),r.jsx(Ts,{status:"running",size:"sm"})]}),r.jsx(fa,{className:"flex-1",children:r.jsxs("div",{className:"p-4 space-y-4",children:[r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[r.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Providers"}),r.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),r.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:[G,"/",t.length," connected"]})]}),r.jsx("div",{className:"grid grid-cols-4 gap-3",children:t.map(X=>r.jsx(tA,{provider:X,onKeyChange:j},X.id))})]}),r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[r.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Gateways"}),r.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),r.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:[d.filter(X=>X.connected).length,"/",d.length," connected"]})]}),r.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[d.map(X=>r.jsx(lA,{gateway:X,onRefresh:z},X.id)),r.jsx(rA,{existingTypes:d.map(X=>X.type),onAdd:N})]})]}),s&&r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[r.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Configuration"}),r.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),r.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"Auto-saves"})]}),r.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[r.jsx(jl,{icon:Zl,label:"Default Provider",description:"Provider used when spawning new agents.",children:r.jsx("select",{value:s.defaultProvider||"claude-code",onChange:X=>_("defaultProvider",X.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(X=>X.installed||X.hasKey).map(X=>r.jsx("option",{value:X.id,children:X.name},X.id))})}),r.jsx(jl,{icon:ai,label:"Working Directory",description:"Default root directory for new agents.",children:r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.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"}),r.jsx(ve,{variant:"secondary",size:"sm",onClick:()=>g(!0),className:"h-8 px-2 flex-shrink-0",children:r.jsx(Zb,{size:12})})]})}),r.jsx(jl,{icon:qb,label:"Rotation Threshold",description:"Context usage that triggers auto-rotation.",children:r.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:["auto","50%","65%","75%","85%"].map(X=>{const T=X==="auto"?0:parseInt(X,10)/100,Y=R===T;return r.jsx("button",{onClick:()=>_("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:X==="auto"?"Auto":X},X)})})}),r.jsx(jl,{icon:Ib,label:"QC Threshold",description:"Running agents count that triggers auto-QC.",children:r.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[2,3,4,6,8].map(X=>{const T=(s.qcThreshold||2)===X;return r.jsx("button",{onClick:()=>_("qcThreshold",X),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:X},X)})})}),r.jsx(jl,{icon:bi,label:"Max Agents",description:"Concurrent agent limit. 0 = unlimited.",children:r.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[0,4,8,12,20].map(X=>{const T=(s.maxAgents||0)===X;return r.jsx("button",{onClick:()=>_("maxAgents",X),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:X===0?"∞":X},X)})})}),r.jsx(jl,{icon:si,label:"Journalist Interval",description:"Seconds between synthesis cycles.",children:r.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[60,120,300,600].map(X=>{const T=(s.journalistInterval||120)===X,Y=X<60?`${X}s`:`${X/60}m`;return r.jsx("button",{onClick:()=>_("journalistInterval",X),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},X)})})})]})]})]})}),r.jsx(DS,{open:x,onOpenChange:g,currentPath:(s==null?void 0:s.defaultWorkingDir)||"/",onSelect:X=>_("defaultWorkingDir",X)})]})}const Xf=v.forwardRef(({className:t,label:a,error:s,mono:l,...o},u)=>r.jsxs("div",{className:"flex flex-col gap-1",children:[a&&r.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:a}),r.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",l?"font-mono":"font-sans",s&&"border-danger focus:ring-danger",t),...o}),s&&r.jsx("span",{className:"text-2xs text-danger font-sans",children:s})]}));Xf.displayName="Input";const oA=v.forwardRef(({className:t,label:a,error:s,mono:l,...o},u)=>r.jsxs("div",{className:"flex flex-col gap-1",children:[a&&r.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:a}),r.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",l?"font-mono":"font-sans",s&&"border-danger focus:ring-danger",t),...o}),s&&r.jsx("span",{className:"text-2xs text-danger font-sans",children:s})]}));oA.displayName="Textarea";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 cA(t){return t?t<1024*1024?`${(t/1024).toFixed(0)} KB/s`:`${(t/(1024*1024)).toFixed(1)} MB/s`:""}function uA({hardware:t}){var a;return t?r.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:[r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx(MT,{size:14,className:"text-text-3"}),r.jsxs("span",{children:[t.totalRamGb," GB RAM"]})]}),r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx(Zl,{size:14,className:"text-text-3"}),r.jsxs("span",{children:[t.cores," cores"]})]}),t.gpu&&r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx(nh,{size:14,className:"text-text-3"}),r.jsxs("span",{children:[t.gpu.name,t.gpu.vram?` (${t.gpu.vram} GB)`:""]})]}),((a=t.recommended)==null?void 0:a.code)&&r.jsxs("div",{className:"ml-auto text-accent",children:["Recommended: ",t.recommended.code]})]}):null}function dA({download:t}){const a=Math.round((t.percent||0)*100);return r.jsxs("div",{className:"space-y-1",children:[r.jsxs("div",{className:"flex items-center justify-between text-2xs font-sans text-text-3",children:[r.jsx("span",{children:t.filename}),r.jsxs("span",{children:[a,"% ",cA(t.speed)]})]}),r.jsx("div",{className:"h-1.5 bg-surface-3 rounded-full overflow-hidden",children:r.jsx("div",{className:"h-full bg-accent rounded-full transition-all",style:{width:`${a}%`}})}),r.jsxs("div",{className:"text-2xs text-text-4",children:[Xc(t.downloaded)," / ",Xc(t.totalBytes)]})]})}function OA({model:t,onDelete:a}){const[s,l]=v.useState(!1),o={light:"text-green-400",medium:"text-blue-400",heavy:"text-orange-400"};return r.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 bg-surface-1 border border-border-subtle rounded-lg",children:[r.jsx(eh,{size:18,className:"text-accent flex-shrink-0"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-sm font-mono font-bold text-text-0 truncate",children:t.id}),t.quantization&&r.jsx(Xe,{variant:"subtle",className:"text-2xs",children:t.quantization}),t.parameters&&r.jsx(Xe,{variant:"subtle",className:"text-2xs",children:t.parameters}),r.jsx("span",{className:re("text-2xs font-medium capitalize",o[t.tier]||"text-text-3"),children:t.tier})]}),r.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&&r.jsxs("span",{className:"text-text-4",children:[" · ",t.repoId]})]})]}),r.jsx("button",{onClick:async()=>{l(!0),await a(t.id),l(!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?r.jsx(Ka,{size:14,className:"animate-spin"}):r.jsx(as,{size:14})})]})}function fA({result:t,onExpand:a,expanded:s}){var l;return r.jsxs("button",{onClick:()=>a(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:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-sm font-mono font-bold text-text-0 truncate flex-1",children:t.name}),r.jsx("span",{className:"text-2xs text-text-4 font-sans",children:t.author}),s?r.jsx(Pn,{size:14,className:"text-text-3"}):r.jsx(_s,{size:14,className:"text-text-3"})]}),r.jsxs("div",{className:"text-2xs text-text-3 font-sans mt-0.5 flex gap-3",children:[r.jsxs("span",{children:[(l=t.downloads)==null?void 0:l.toLocaleString()," downloads"]}),r.jsxs("span",{children:[t.likes," likes"]})]})]})}function hA({repoId:t,onDownload:a,systemRamGb:s}){const[l,o]=v.useState(null),[u,d]=v.useState(!0),[O,h]=v.useState(null),p=Bl();v.useEffect(()=>{d(!0),J.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 J.post("/models/download",{repoId:t,filename:g.filename}),p.success(`Downloading ${g.filename}`),a==null||a(g.filename)}catch(b){p.error(b.message)}h(null)}return u?r.jsx("div",{className:"py-3 px-4 text-2xs text-text-4 font-sans",children:"Loading quantization variants..."}):l!=null&&l.length?r.jsx("div",{className:"pl-6 pr-4 pb-2 space-y-1.5",children:l.map(g=>{const b=!g.estimatedRamGb||!s||g.estimatedRamGb<=s,y=g.estimatedRamGb&&s&&g.estimatedRamGb>s*.8&&b;return r.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:[r.jsx("span",{className:"font-mono text-text-1 truncate flex-1",children:g.filename}),g.quantization&&r.jsx(Xe,{variant:"subtle",className:"text-2xs",children:g.quantization}),r.jsx("span",{className:"text-text-2 text-2xs w-16 text-right",children:Xc(g.size)}),g.estimatedRamGb&&r.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&&r.jsx("span",{className:"text-2xs text-red-400 font-medium",children:"too large"}),r.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?r.jsx(Ka,{size:13,className:"animate-spin"}):r.jsx(mi,{size:13})})]},g.filename)})}):r.jsx("div",{className:"py-3 px-4 text-2xs text-text-4 font-sans",children:"No GGUF files found in this repo."})}function mA({model:t,systemRamGb:a,onPull:s,pulling:l,isInstalled:o}){const u={light:"text-green-400",medium:"text-blue-400",heavy:"text-orange-400"},d={code:"{}",general:"AI"},O=a?Math.round((1-t.ramGb/a)*100):null;return r.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:[r.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"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-sm font-mono font-bold text-text-0 truncate",children:t.name}),r.jsx("span",{className:re("text-2xs font-semibold capitalize",u[t.tier]),children:t.tier}),o&&r.jsxs(Xe,{variant:"success",className:"text-2xs gap-1",children:[r.jsx(Wt,{size:8})," Installed"]})]}),r.jsx("div",{className:"text-2xs text-text-3 font-sans mt-0.5",children:t.description}),r.jsxs("div",{className:"flex items-center gap-3 mt-1 text-2xs font-sans",children:[r.jsxs("span",{className:"text-text-2",children:[t.sizeGb," GB download"]}),r.jsxs("span",{className:"text-green-400 font-medium",children:[t.ramGb," GB RAM"]}),O!==null&&r.jsxs("span",{className:"text-text-4",children:[O,"% headroom"]})]})]}),o?r.jsx("span",{className:"text-xs text-success font-sans font-medium px-3 py-1.5",children:"Ready"}):r.jsxs("button",{onClick:()=>s(t.id),disabled:l===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:[l===t.id?r.jsx(Ka,{size:12,className:"animate-spin"}):r.jsx(mi,{size:12}),"Pull"]})]})}function pA(){const[t,a]=v.useState("recommended"),[s,l]=v.useState(""),[o,u]=v.useState([]),[d,O]=v.useState(!1),[h,p]=v.useState([]),[x,g]=v.useState([]),[b,y]=v.useState([]),[Q,k]=v.useState(null),[$,j]=v.useState(null),[z,N]=v.useState(null),[_,G]=v.useState([]),R=Bl(),X=v.useCallback(()=>{J.get("/models/installed").then(F=>{p(F.models||[])}).catch(()=>{})},[]),T=v.useCallback(()=>{J.get("/providers/ollama/models").then(F=>{G((F.installed||[]).map(se=>se.id))}).catch(()=>{})},[]);v.useEffect(()=>{J.get("/providers/ollama/hardware").then(k).catch(()=>{}),J.get("/models/recommended").then(F=>{g(F.models||[]),!Q&&F.hardware&&k(F.hardware)}).catch(()=>{}),X(),T()},[X,T]);async function Y(F){N(F);try{await J.post("/providers/ollama/pull",{model:F}),R.success(`${F} ready to use`),X(),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(()=>{J.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)),X(),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)}},[X,R]);async function M(){if(s.trim()){O(!0),a("search");try{const F=await J.get(`/models/search?q=${encodeURIComponent(s.trim())}`);u(F)}catch(F){R.error(F.message)}O(!1)}}async function ae(F){try{await J.delete(`/models/${F}`),p(se=>se.filter(ie=>ie.id!==F)),R.success("Model deleted")}catch(se){R.error(se.message)}}return r.jsxs("div",{className:"h-full flex flex-col bg-surface-0",children:[r.jsxs("div",{className:"flex-shrink-0 px-5 pt-4 pb-3 border-b border-border space-y-3",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("h1",{className:"text-base font-bold font-sans text-text-0",children:"Local Models"}),r.jsxs(Xe,{variant:"subtle",className:"text-2xs",children:[h.length," installed"]})]}),r.jsx(uA,{hardware:Q}),r.jsxs("div",{className:"flex gap-2",children:[r.jsxs("div",{className:"relative flex-1",children:[r.jsx(da,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-4"}),r.jsx("input",{value:s,onChange:F=>l(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"})]}),r.jsx(ve,{onClick:M,disabled:d,size:"sm",variant:"accent",children:d?r.jsx(Ka,{size:14,className:"animate-spin"}):"Search"})]}),r.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=>r.jsx("button",{onClick:()=>a(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&&r.jsxs("div",{className:"px-5 py-3 border-b border-border space-y-2",children:[r.jsx("div",{className:"text-xs font-sans font-semibold text-text-2",children:"Downloading"}),b.map(F=>r.jsx(dA,{download:F},F.filename))]}),r.jsx(fa,{className:"flex-1",children:r.jsxs("div",{className:"px-5 py-4 space-y-2",children:[t==="recommended"&&r.jsx(r.Fragment,{children:x.length===0?r.jsxs("div",{className:"text-center py-12",children:[r.jsx(Zl,{size:40,className:"mx-auto text-text-4 mb-3"}),r.jsx("p",{className:"text-sm text-text-2 font-sans font-medium",children:"Detecting hardware..."}),r.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Make sure Ollama is installed so we can check your system."})]}):r.jsxs(r.Fragment,{children:[r.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=_.some(W=>W===F.id||W.startsWith(se+":")||W===se);return r.jsx(mA,{model:F,systemRamGb:Q==null?void 0:Q.totalRamGb,onPull:Y,pulling:z,isInstalled:ie},F.id)})]})}),t==="installed"&&r.jsx(r.Fragment,{children:h.length===0?r.jsxs("div",{className:"text-center py-12",children:[r.jsx(eh,{size:40,className:"mx-auto text-text-4 mb-3"}),r.jsx("p",{className:"text-sm text-text-2 font-sans font-medium",children:"No local models yet"}),r.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=>r.jsx(OA,{model:F,onDelete:ae},F.id))}),t==="search"&&r.jsx(r.Fragment,{children:d?r.jsxs("div",{className:"text-center py-12",children:[r.jsx(Ka,{size:24,className:"mx-auto text-accent animate-spin mb-3"}),r.jsx("p",{className:"text-sm text-text-3 font-sans",children:"Searching HuggingFace..."})]}):o.length===0?r.jsxs("div",{className:"text-center py-12",children:[r.jsx(da,{size:40,className:"mx-auto text-text-4 mb-3"}),r.jsx("p",{className:"text-sm text-text-2 font-sans font-medium",children:"Search for GGUF models"}),r.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:'Try "qwen coder", "deepseek", "codestral", "llama"'})]}):o.map(F=>r.jsxs("div",{className:"space-y-1",children:[r.jsx(fA,{result:F,expanded:$===F.id,onExpand:j}),$===F.id&&r.jsx(hA,{repoId:F.id,onDownload:()=>X(),systemRamGb:Q==null?void 0:Q.totalRamGb})]},F.id))})]})})]})}const j0=["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 xA({agent:t,className:a}){const[s,l]=v.useState(0),[o,u]=v.useState(!0);return v.useEffect(()=>{const d=setInterval(()=>{u(!1),setTimeout(()=>{l(O=>(O+1)%j0.length),u(!0)},250)},2800);return()=>clearInterval(d)},[]),r.jsxs("div",{className:`${a||""}`,children:[r.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[r.jsx("span",{className:"text-2xs font-semibold text-text-1 font-sans",children:(t==null?void 0:t.name)||"Agent"}),r.jsx("span",{className:"text-2xs text-accent font-mono",children:"thinking"})]}),r.jsxs("div",{className:"border-l border-accent/40 pl-3.5 py-1 flex items-center gap-2.5",children:[r.jsx("div",{className:"relative w-3.5 h-3.5 flex-shrink-0",children:r.jsx("span",{className:"absolute inset-0 rounded-full border border-transparent border-t-accent animate-spin",style:{animationDuration:"0.9s"}})}),r.jsx("span",{className:"text-[12px] font-sans text-text-3 transition-opacity duration-[250ms]",style:{opacity:o?1:0},children:j0[s]})]})]})}const _f=[];function IS(t){const a=(t||"").toLowerCase();return a.includes("reading")||a.includes("read ")?{icon:Dl,color:"text-info",label:"Reading"}:a.includes("editing")||a.includes("wrote")||a.includes("writing")||a.includes("edit ")?{icon:Ab,color:"text-warning",label:"Editing"}:a.includes("searching")||a.includes("search")||a.includes("grep")||a.includes("glob")?{icon:da,color:"text-purple",label:"Searching"}:a.includes("running")||a.includes("bash")||a.includes("command")||a.includes("exec")?{icon:xi,color:"text-orange",label:"Running"}:a.includes("test")||a.includes("pass")?{icon:gf,color:"text-success",label:"Testing"}:a.includes("error")||a.includes("fail")||a.includes("crash")?{icon:ua,color:"text-danger",label:"Error"}:a.includes("rotat")?{icon:Wl,color:"text-accent",label:"Rotating"}:a.includes("spawn")||a.includes("start")?{icon:Cn,color:"text-success",label:"Spawned"}:a.includes("tool")||a.includes("function")?{icon:VN,color:"text-text-2",label:"Tool"}:a.includes("complet")||a.includes("done")||a.includes("finish")?{icon:gf,color:"text-success",label:"Done"}:{icon:ns,color:"text-text-3",label:"Activity"}}function wl({text:t}){return t?t.split(/(\*\*[^*]+\*\*|`[^`]+`)/g).map((a,s)=>a.startsWith("**")&&a.endsWith("**")?r.jsx("strong",{className:"font-semibold text-text-0",children:a.slice(2,-2)},s):a.startsWith("`")&&a.endsWith("`")?r.jsx("code",{className:"px-1 py-px rounded bg-accent/8 text-[11px] font-mono text-accent",children:a.slice(1,-1)},s):r.jsx("span",{children:a},s)):null}function gA({text:t}){if(!t)return null;const a=[],s=t.split(`
|
|
633
|
-
`);let l=0;for(;l<s.length;){const o=s[l];if(o.trimStart().startsWith("```")){const d=[],O=o.trim().slice(3);for(l++;l<s.length&&!s[l].trimStart().startsWith("```");)d.push(s[l]),l++;l++,a.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();a.push({type:"heading",content:d}),l++;continue}if(/^\s*[-*]\s/.test(o)){const d=[];for(;l<s.length&&/^\s*[-*]\s/.test(s[l]);)d.push(s[l].replace(/^\s*[-*]\s+/,"").trim()),l++;a.push({type:"list",items:d});continue}if(/^\s*\d+[\.)]\s/.test(o)){const d=[];for(;l<s.length&&/^\s*\d+[\.)]\s/.test(s[l]);)d.push(s[l].replace(/^\s*\d+[\.)]\s+/,"").trim()),l++;a.push({type:"numbered",items:d});continue}if(!o.trim()){l++;continue}if(/^(Note|Warning|Important|IMPORTANT|TODO):/i.test(o.trim())){a.push({type:"note",content:o.trim()}),l++;continue}const u=[];for(;l<s.length&&s[l].trim()&&!/^#{1,3}\s/.test(s[l])&&!/^\s*[-*]\s/.test(s[l])&&!/^\s*\d+[\.)]\s/.test(s[l])&&!s[l].trimStart().startsWith("```");)u.push(s[l].trim()),l++;u.length>0&&a.push({type:"para",content:u.join(" ")})}return r.jsx("div",{className:"space-y-2",children:a.map((o,u)=>{switch(o.type){case"heading":return r.jsxs("div",{className:"flex items-center gap-1.5 pt-1.5 first:pt-0",children:[r.jsx("div",{className:"w-1 h-3.5 rounded-full bg-accent/40 flex-shrink-0"}),r.jsx("span",{className:"text-[12px] font-semibold text-text-0 font-sans",children:r.jsx(wl,{text:o.content})})]},u);case"list":return r.jsx("div",{className:"space-y-1 pl-2",children:o.items.map((d,O)=>r.jsxs("div",{className:"flex gap-2 text-[12px] text-text-0 font-sans leading-relaxed",children:[r.jsx("span",{className:"text-accent/50 mt-0.5 flex-shrink-0",children:"-"}),r.jsx("span",{className:"min-w-0",children:r.jsx(wl,{text:d})})]},O))},u);case"numbered":return r.jsx("div",{className:"space-y-1 pl-2",children:o.items.map((d,O)=>r.jsxs("div",{className:"flex gap-2 text-[12px] text-text-0 font-sans leading-relaxed",children:[r.jsxs("span",{className:"text-text-4 font-mono w-4 text-right flex-shrink-0",children:[O+1,"."]}),r.jsx("span",{className:"min-w-0",children:r.jsx(wl,{text:d})})]},O))},u);case"code":return r.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 r.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:[r.jsx(ua,{size:10,className:"text-warning mt-0.5 flex-shrink-0"}),r.jsx("span",{className:"text-[11px] text-warning/80 font-sans",children:r.jsx(wl,{text:o.content})})]},u);case"para":default:return r.jsx("p",{className:"text-[12px] text-text-0 font-sans leading-relaxed",children:r.jsx(wl,{text:o.content})},u)}})})}function bA({text:t}){if(!t)return null;const a=t.split(/(```[\s\S]*?```)/g);return r.jsx("span",{children:a.map((s,l)=>{if(s.startsWith("```")&&s.endsWith("```")){const o=s.slice(3,-3).replace(/^\w+\n/,"");return r.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},l)}return r.jsx("span",{children:r.jsx(wl,{text:s})},l)})})}function vA({msg:t}){const a=t.isQuery;return r.jsx("div",{className:"flex justify-end pl-8",children:r.jsxs("div",{className:"max-w-[90%]",children:[a&&r.jsxs("div",{className:"flex items-center justify-end gap-1 mb-1",children:[r.jsx(bc,{size:9,className:"text-info"}),r.jsx("span",{className:"text-2xs text-info font-sans font-medium",children:"Query"})]}),r.jsx("div",{className:re("px-3.5 py-2.5 rounded-lg border","bg-info/10 border-info/25"),children:r.jsx("div",{className:"text-[12px] font-sans whitespace-pre-wrap break-words leading-relaxed text-text-0",children:r.jsx(bA,{text:t.text})})}),r.jsx("div",{className:"text-[10px] text-text-4 font-sans mt-1 text-right",children:vt(t.timestamp)})]})})}function yA({msg:t,agent:a}){var u,d;const[s,l]=v.useState(((u=t.text)==null?void 0:u.length)>600),o=((d=t.text)==null?void 0:d.length)>600;return r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[r.jsx("span",{className:"text-2xs font-semibold text-text-1 font-sans",children:(a==null?void 0:a.name)||"Agent"}),r.jsx("span",{className:"text-2xs text-text-4 font-sans",children:a==null?void 0:a.role}),r.jsx("span",{className:"text-[10px] text-text-4 font-sans ml-auto",children:vt(t.timestamp)})]}),r.jsx("div",{className:"border-l border-accent pl-3.5 py-1",children:r.jsx(gA,{text:s?t.text.slice(0,600)+"...":t.text})}),s&&r.jsxs("button",{onClick:()=>l(!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:[r.jsx(Pn,{size:11}),"Show full response"]}),o&&!s&&r.jsxs("button",{onClick:()=>l(!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:[r.jsx(Pn,{size:11,className:"rotate-180"}),"Collapse"]})]})}function SA({msg:t}){return r.jsxs("div",{className:"flex items-center gap-3 py-2",children:[r.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),r.jsx("span",{className:"text-[10px] text-text-4 font-sans flex-shrink-0 uppercase tracking-wide",children:t.text}),r.jsx("div",{className:"flex-1 h-px bg-border-subtle"})]})}function QA({entries:t,isLive:a}){var d;const[s,l]=v.useState(0);if(v.useEffect(()=>{if(!a||t.length<=1)return;const O=setInterval(()=>l(h=>(h+1)%t.length),1500);return()=>clearInterval(O)},[t.length,a]),!a){const O=t[t.length-1],p=IS(O.text).icon;return r.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 text-[10px] text-text-4 font-mono",children:[r.jsx(p,{size:10,className:"opacity-50"}),r.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 r.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:[r.jsx(Ka,{size:11,className:"text-accent animate-spin flex-shrink-0"}),r.jsx("span",{className:"text-[11px] text-text-2 font-mono truncate transition-opacity duration-300",children:u}),t.length>1&&r.jsx("span",{className:"text-[10px] text-text-4 font-mono flex-shrink-0",children:t.length})]})}function jA({agent:t}){const a=D(h=>h.activityLog[t.id])||_f,s=a[a.length-1],l=s?IS(s.text):null,o=(l==null?void 0:l.icon)||ns,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 r.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:[r.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[r.jsxs("div",{className:"relative flex items-center justify-center w-4 h-4",children:[r.jsx("span",{className:"absolute inset-0 rounded-full bg-accent/15 animate-ping",style:{animationDuration:"2s"}}),r.jsx("span",{className:"relative w-1.5 h-1.5 rounded-full bg-accent"})]}),u?r.jsxs(r.Fragment,{children:[r.jsx(o,{size:10,className:re(l.color,"flex-shrink-0")}),r.jsx("span",{className:"text-[11px] text-text-2 font-sans truncate",children:d})]}):r.jsx("span",{className:"text-[11px] text-text-3 font-sans",children:"Working..."})]}),r.jsxs("div",{className:"flex items-center gap-3 flex-shrink-0",children:[r.jsx("span",{className:"text-[10px] text-text-4 font-mono",children:kA(t.tokensUsed)}),r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx("div",{className:"w-14 h-1 rounded-full bg-surface-4 overflow-hidden",children:r.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)"}})}),r.jsxs("span",{className:"text-[10px] text-text-4 font-mono w-7 text-right",children:[O,"%"]})]})]})]})}function kA(t){return t?t>=1e6?(t/1e6).toFixed(1)+"M":t>=1e3?(t/1e3).toFixed(1)+"K":String(t):"0"}function wA({agent:t}){const[a,s]=v.useState([]),l=[{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=l.map((u,d)=>setTimeout(()=>s(O=>[...O,d]),u.delay));return()=>o.forEach(clearTimeout)},[]),r.jsxs("div",{className:"flex flex-col px-4 pt-6",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[r.jsxs("div",{className:"relative w-9 h-9",children:[r.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-accent/20 animate-ping",style:{animationDuration:"2s"}}),r.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-transparent border-t-accent animate-spin",style:{animationDuration:"1s"}}),r.jsx("span",{className:"absolute inset-[5px] rounded-full bg-accent/8"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm font-bold text-text-0 font-sans",children:t.name}),r.jsx("p",{className:"text-2xs text-accent font-mono",children:"starting up"})]})]}),r.jsx("div",{className:"space-y-2 pl-3 border-l border-accent/15",children:l.map((o,u)=>{const d=a.includes(u),O=u===l.length-1;return r.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:[r.jsx("span",{className:re("w-1 h-1 rounded-full flex-shrink-0",O&&d?"bg-accent":d?"bg-text-3":"bg-transparent")}),r.jsx("span",{className:re("text-[11px] font-mono",O&&d?"text-accent":"text-text-3"),children:o.text}),O&&d&&r.jsxs("span",{className:"flex gap-0.5 ml-1",children:[r.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"0ms"}}),r.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"200ms"}}),r.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"400ms"}})]})]},u)})})]})}function $A({agent:t}){const a=D(R=>R.chatHistory[t.id])||_f,s=D(R=>R.activityLog[t.id])||_f,l=D(R=>R.instructAgent),o=D(R=>R.queryAgent),u=D(R=>{var X;return(X=R.thinkingAgents)==null?void 0:X.has(t.id)}),d=D(R=>R.chatInputs[t.id]||""),O=R=>D.setState(X=>({chatInputs:{...X.chatInputs,[t.id]:R}})),h=d,p=O,[x,g]=v.useState("instruct"),[b,y]=v.useState(!1),Q=v.useRef(null),k=v.useRef(null),$=v.useRef(null),j=v.useMemo(()=>{var F;const R=[],X=new Set;for(const se of a){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}),X.add(se.text))}const T=X,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},[a,s]);v.useEffect(()=>{Q.current&&requestAnimationFrame(()=>{Q.current&&(Q.current.scrollTop=Q.current.scrollHeight)})},[j.length]);async function z(R){var M;const X=Array.from(R.target.files||[]);if(X.length===0)return;const T=D.getState().addToast,Y=[];for(const ae of X)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 J.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=k.current)==null||M.focus()}async function N(){var X;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 l(t.id,R)}catch{}y(!1),(X=k.current)==null||X.focus()}}function _(R){R.key==="Enter"&&!R.shiftKey&&(R.preventDefault(),N())}const G=t.status==="running"||t.status==="starting";return r.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[G&&r.jsx(jA,{agent:t}),r.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?r.jsx(wA,{agent:t}):r.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center py-8",children:[r.jsx("div",{className:"w-10 h-10 rounded-xl bg-surface-3 flex items-center justify-center mb-3",children:r.jsx(pi,{size:18,className:"text-text-4"})}),r.jsx("p",{className:"text-sm font-semibold text-text-0 font-sans",children:t.name}),r.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Session complete — send a message to continue"})]})),j.map((R,X)=>{if(R.kind==="activity-group"){const T=!j.slice(X+1).some(Y=>Y.kind==="activity-group"||Y.from==="agent");return r.jsx("div",{children:r.jsx(QA,{entries:R.entries,isLive:G&&T})},`grp-${X}`)}return R.from==="user"?r.jsx(vA,{msg:R},`msg-${X}`):R.from==="system"?r.jsx(SA,{msg:R},`msg-${X}`):r.jsx(yA,{msg:R,agent:t},`msg-${X}`)}),r.jsx(Af,{children:(b||u)&&r.jsx(Zf.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.25,ease:"easeOut"},children:r.jsx(xA,{agent:t})},"thinking")})]}),r.jsxs("div",{className:"border-t border-border px-4 py-3 bg-surface-1/50 flex-shrink-0",children:[r.jsxs("div",{className:"flex items-center gap-1 mb-2",children:[r.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:[r.jsx(Lc,{size:10}),"Instruct"]}),r.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:[r.jsx(bc,{size:10}),"Query"]}),r.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"})]}),r.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:[r.jsx("input",{ref:$,type:"file",multiple:!0,accept:".pdf,.png,.jpg,.jpeg,.gif,.svg,.csv,.txt,.md,.json,.yaml,.yml,.docx,.pptx,.xlsx",onChange:z,className:"hidden"}),r.jsx("button",{onClick:()=>{var R;return(R=$.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:r.jsx(KT,{size:14})}),r.jsx("textarea",{ref:k,value:h,onChange:R=>p(R.target.value),onKeyDown:_,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)}}),r.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?r.jsx(Ka,{size:15,className:"animate-spin"}):r.jsx(rh,{size:15})})]})]})]})}function rf({options:t,value:a,onChange:s}){return r.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:t.map(l=>r.jsx("button",{onClick:()=>s(l.value),className:re("flex-1 px-3 py-1.5 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",a===l.value?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:l.label},l.value))})}function mn({label:t,icon:a,children:s,description:l}){return r.jsxs("div",{className:"space-y-2",children:[r.jsxs("div",{children:[r.jsxs("label",{className:"flex items-center gap-1.5 text-xs font-semibold text-text-1 font-sans",children:[a&&r.jsx(a,{size:13,className:"text-text-3"}),t]}),l&&r.jsx("p",{className:"text-2xs text-text-4 font-sans mt-0.5",children:l})]}),s]})}function TA({agent:t}){const a=D(Q=>Q.killAgent),s=D(Q=>Q.rotateAgent),l=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 a(t.id),o()}catch{}O(null),p(!1)}async function y(){O("clone");try{await l({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?r.jsx("div",{className:"space-y-2",children:r.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[r.jsxs(ve,{variant:"primary",size:"md",onClick:g,disabled:d==="rotate",className:"gap-1.5",children:[r.jsx(Wl,{size:12,className:d==="rotate"?"animate-spin":""}),"Rotate"]}),r.jsxs(ve,{variant:"info",size:"md",onClick:y,disabled:!!d,className:"gap-1.5",children:[r.jsx(vf,{size:12})," Clone"]}),r.jsxs(ve,{variant:"danger",size:"md",onClick:b,disabled:d==="kill",className:"gap-1.5",children:[r.jsx(ih,{size:12}),h?"Confirm":"Kill"]})]})}):r.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[r.jsxs(ve,{variant:"info",size:"md",onClick:y,disabled:!!d,className:"gap-1.5",children:[r.jsx(vf,{size:12})," Clone"]}),r.jsxs(ve,{variant:"danger",size:"md",onClick:b,disabled:d==="kill",className:"gap-1.5",children:[r.jsx(as,{size:12}),h?"Confirm":"Remove"]})]})}function NA({agent:t}){var Re;const a=D(H=>H.addToast),[s,l]=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,k]=v.useState(null),[$,j]=v.useState(!1),[z,N]=v.useState(null),[_,G]=v.useState(t.routingMode||"auto"),[R,X]=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(),J.get("/skills/installed").then(ue=>X(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(){J.get("/providers").then(H=>l(Array.isArray(H)?H:[])).catch(()=>{})}v.useEffect(()=>{u(t.model||""),J.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 Ce={model:ue};H&&H!==t.provider&&(Ce.provider=H),await J.patch(`/agents/${t.id}`,Ce),a("success",`Model → ${ue}${Ce.provider?` (${H})`:""}`)}catch(Ce){a("error","Model swap failed",Ce.message)}}async function E(H){try{await J.patch(`/agents/${t.id}`,{workingDir:H}),a("success",`Working dir → ${H.split("/").pop()||H}`)}catch(ue){a("error","Update failed",ue.message)}}async function ce(H){p(H);try{await J.patch(`/agents/${t.id}`,{effort:H}),a("success",`Effort → ${H}`)}catch(ue){a("error","Update failed",ue.message)}}async function ee(H){if(!H.trim())return;const ue=[...t.scope||[],H.trim()];try{await J.patch(`/agents/${t.id}`,{scope:ue}),O("")}catch(Ce){a("error","Scope update failed",Ce.message)}}async function be(H){const ue=(t.scope||[]).filter((Ce,Ot)=>Ot!==H);try{await J.patch(`/agents/${t.id}`,{scope:ue})}catch(Ce){a("error","Scope update failed",Ce.message)}}async function Se(H){if(b.trim())try{await J.post(`/credentials/${H}`,{key:b.trim()}),a("success",`API key set for ${H}`),y(""),k(null),W(),window.dispatchEvent(new CustomEvent("groove:providers-changed"))}catch(ue){a("error","Failed to set key",ue.message)}}const ye=t.spawnedAt||t.createdAt;return r.jsxs("div",{className:"px-5 py-5 space-y-6 overflow-y-auto h-full",children:[r.jsx(mn,{label:"Active Model",icon:Zl,children:r.jsxs("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-bold font-mono text-text-0",children:t.model||"auto"}),r.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&&r.jsxs(Xe,{variant:"accent",className:"text-2xs gap-1",children:[r.jsx(Cn,{size:8})," Hot-swap"]})]}),((Re=P==null?void 0:P.models)==null?void 0:Re.length)>1&&r.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 r.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)})})]})}),r.jsx(TA,{agent:t}),r.jsxs(mn,{label:"Providers",icon:r1,description:"Click a provider to see its models and connection status.",children:[r.jsx("div",{className:"space-y-1.5",children:s.map(H=>{const ue=H.id===t.provider,Ce=H.installed||H.hasKey,Ot=z===H.id,Ze=H.models||[];return r.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-0 overflow-hidden",children:[r.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:[r.jsx("div",{className:re("w-2 h-2 rounded-full flex-shrink-0",Ce?"bg-success":"bg-text-4")}),r.jsx("span",{className:re("text-xs font-semibold font-sans flex-1 text-left",Ce?"text-text-0":"text-text-3"),children:H.name||H.id}),ue&&r.jsx(Xe,{variant:"accent",className:"text-2xs",children:"Active"}),!Ce&&r.jsx("span",{className:"text-2xs text-text-4 font-sans",children:H.authType==="local"?"Not installed":"No key"}),r.jsx(Pn,{size:12,className:re("text-text-4 transition-transform",Ot&&"rotate-180")})]}),Ot&&H.authType==="local"&&r.jsx("div",{className:"border-t border-border-subtle",children:r.jsx(uS,{isInstalled:Ce,onModelChange:W})}),Ot&&H.authType!=="local"&&r.jsxs("div",{className:"border-t border-border-subtle",children:[(!Ce||H.hasKey)&&r.jsx("div",{className:"px-3 py-2 bg-surface-1/50",children:Q===H.id?r.jsxs("div",{className:"flex gap-1.5",children:[r.jsxs("div",{className:"flex-1 relative",children:[r.jsx("input",{value:b,onChange:He=>y(He.target.value),onKeyDown:He=>He.key==="Enter"&&Se(H.id),type:$?"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}),r.jsx("button",{onClick:()=>j(!$),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:$?r.jsx(th,{size:10}):r.jsx(Dl,{size:10})})]}),r.jsx(ve,{variant:"primary",size:"sm",onClick:()=>Se(H.id),disabled:!b.trim(),className:"h-7 px-2 text-2xs",children:"Save"}),r.jsx(ve,{variant:"ghost",size:"sm",onClick:()=>{k(null),y("")},className:"h-7 px-2 text-2xs",children:"Cancel"})]}):r.jsxs("button",{onClick:()=>{k(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:[r.jsx(yc,{size:10}),Ce?"Update API key":"Add API key to enable"]})}),Ce&&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 r.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?r.jsx(Wt,{size:11,className:"text-accent flex-shrink-0"}):r.jsx("div",{className:"w-[11px]"}),r.jsx("span",{className:"font-mono flex-1 truncate",children:He.name||He.id}),r.jsx(Xe,{variant:bt?"accent":"default",className:"text-2xs",children:He.tier})]},He.id)})]})]},H.id)})}),ie&&r.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-3 font-sans mt-1.5",children:[r.jsx(ua,{size:10}),r.jsx("span",{children:"Model changes apply on next rotation or respawn."})]})]}),r.jsx(mn,{label:"Working Directory",icon:ai,description:"The root directory this agent operates in.",children:r.jsxs("div",{className:"flex gap-2",children:[r.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"}),r.jsxs(ve,{variant:"secondary",size:"md",onClick:()=>g(!0),className:"gap-1.5 flex-shrink-0",children:[r.jsx(Zb,{size:14})," Browse"]})]})}),r.jsx(mn,{label:"Permission Mode",icon:li,description:"Full Send = no approvals. Agent Approve = Fullstack Manager reviews risky operations.",children:r.jsx(rf,{options:[{value:"full",label:"Full Send"},{value:"auto",label:"Agent Approve"}],value:t.permission||"full",onChange:async H=>{try{await J.patch(`/agents/${t.id}`,{permission:H}),a("success",`Permission → ${H==="full"?"Full Send":"Agent Approve"}`)}catch(ue){a("error","Update failed",ue.message)}}})}),r.jsxs(mn,{label:"Model Routing",icon:xc,description:"How Groove selects models for this agent's tasks.",children:[r.jsx(rf,{options:[{value:"fixed",label:"Fixed"},{value:"auto",label:"Auto"},{value:"auto-floor",label:"Auto + Floor"}],value:_,onChange:async H=>{G(H);try{await J.post(`/agents/${t.id}/routing`,{mode:H}),a("success",`Routing → ${H}`)}catch(ue){a("error","Update failed",ue.message)}}}),r.jsxs("div",{className:"text-2xs text-text-4 font-sans mt-1",children:[_==="fixed"&&"Uses the selected model for all tasks.",_==="auto"&&"Groove picks Opus/Sonnet/Haiku based on task complexity.",_==="auto-floor"&&"Auto-routes but never drops below Sonnet."]})]}),r.jsx(mn,{label:"File Scope",icon:li,description:"Restrict which files this agent can access. Empty = unrestricted.",children:r.jsxs("div",{className:"flex flex-wrap gap-2",children:[(t.scope||[]).map((H,ue)=>r.jsxs(Xe,{variant:"default",className:"font-mono text-xs gap-1.5 px-2.5 py-1",children:[H,r.jsx("button",{onClick:()=>be(ue),className:"hover:text-danger cursor-pointer",children:r.jsx(Qt,{size:10})})]},ue)),r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.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"}),r.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:r.jsx(Ja,{size:12})})]})]})}),r.jsx(mn,{label:"Effort Level",icon:qb,description:"Controls how deep the agent reasons. Higher = more tokens but better results.",children:r.jsx(rf,{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})}),r.jsx(mn,{label:"Agent Details",icon:r1,children:r.jsxs("div",{className:"bg-surface-0 rounded-lg border border-border-subtle divide-y divide-border-subtle",children:[r.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[r.jsx("span",{className:"text-xs text-text-3 font-sans",children:"ID"}),r.jsx("span",{className:"text-xs text-text-1 font-mono",children:t.id})]}),r.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[r.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Role"}),r.jsx("span",{className:"text-xs text-text-1 font-sans capitalize",children:t.role})]}),r.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[r.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Provider"}),r.jsx("span",{className:"text-xs text-text-1 font-mono",children:t.provider})]}),r.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[r.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Model"}),r.jsx("span",{className:"text-xs text-text-1 font-mono",children:t.model||"auto"})]}),r.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[r.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Status"}),r.jsx("span",{className:"text-xs text-text-1 font-sans capitalize",children:t.status})]}),r.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[r.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Spawned"}),r.jsx("span",{className:"text-xs text-text-1 font-sans",children:ye?vt(ye):"—"})]}),t.sessionId&&r.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[r.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Session"}),r.jsxs("span",{className:"text-xs text-text-1 font-mono",children:[t.sessionId.slice(0,16),"..."]})]})]})}),r.jsx(mn,{label:"Skills",icon:Ir,description:"Attach installed skills to this agent's context.",children:r.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[(t.skills||[]).map(H=>r.jsxs(Xe,{variant:"accent",className:"font-mono text-xs gap-1.5 px-2.5 py-1",children:[H,r.jsx("button",{onClick:async()=>{try{await J.delete(`/agents/${t.id}/skills/${H}`),a("success",`Detached ${H}`)}catch(ue){a("error","Detach failed",ue.message)}},className:"hover:text-danger cursor-pointer",children:r.jsx(Qt,{size:10})})]},H)),R.filter(H=>!(t.skills||[]).includes(H.id)).length>0&&r.jsxs("div",{className:"relative group",children:[r.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:r.jsx(Ja,{size:12})}),r.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=>r.jsx("button",{onClick:async()=>{try{await J.post(`/agents/${t.id}/skills/${H.id}`),a("success",`Attached ${H.name||H.id}`)}catch(ue){a("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&&r.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"No skills installed — browse the Marketplace"})]})}),r.jsx(mn,{label:"Schedule",icon:gc,description:"Run this agent on a recurring schedule.",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-xs text-text-2 font-sans",children:"Every"}),r.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"}),r.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=>r.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))}),r.jsxs(ve,{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 J.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}}),a("success",`Scheduled every ${H} ${T}`)}catch(Ce){a("error","Schedule failed",Ce.message)}se(!1)},className:"h-7 px-3 text-2xs gap-1",children:[r.jsx(gc,{size:10}),F?"...":"Set"]})]})}),t.prompt&&r.jsx(mn,{label:"Original Prompt",icon:xc,children:r.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})}),r.jsx(DS,{open:x,onOpenChange:g,currentPath:t.workingDir||"/",onSelect:E})]})}const k0=[];function PA({data:t,isAlive:a,height:s=48}){const l=v.useRef(null);return v.useEffect(()=>{const o=l.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,k)=>{const $=k/(t.length-1)*O,j=h-(Q.v-x)/b*(h-4)-2;u.lineTo($,j)}),u.lineTo(O,h),u.closePath();const y=u.createLinearGradient(0,0,0,h);if(y.addColorStop(0,a?"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=a?me.accent:me.text3,u.lineWidth=1.5,t.forEach((Q,k)=>{const $=k/(t.length-1)*O,j=h-(Q.v-x)/b*(h-4)-2;k===0?u.moveTo($,j):u.lineTo($,j)}),u.stroke(),t.length>1&&a){const Q=t[t.length-1],k=O-1,$=h-(Q.v-x)/b*(h-4)-2;u.beginPath(),u.arc(k,$,5,0,Math.PI*2),u.fillStyle="rgba(51,175,188,0.3)",u.fill(),u.beginPath(),u.arc(k,$,2.5,0,Math.PI*2),u.fillStyle=me.accent,u.fill()}},[t,a]),r.jsx("div",{className:"w-full rounded-lg bg-surface-0 overflow-hidden border border-border-subtle",style:{height:s},children:r.jsx("canvas",{ref:l,className:"w-full h-full"})})}function tc({icon:t,label:a,value:s,color:l,sub:o}){return r.jsxs("div",{className:"bg-surface-0 rounded-lg px-3 py-2.5 border border-border-subtle",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[r.jsx(t,{size:12,className:l||"text-text-3"}),r.jsx("span",{className:"text-2xs text-text-4 font-sans uppercase tracking-wider",children:a})]}),r.jsx("div",{className:re("text-lg font-bold font-mono tabular-nums",l||"text-text-0"),children:s}),o&&r.jsx("div",{className:"text-2xs text-text-4 font-sans mt-0.5",children:o})]})}function zA({score:t}){const a=Math.min(Math.max(t,0),100);let s=me.success,l="Healthy";return a<40?(s=me.danger,l="Degraded"):a<70&&(s=me.warning,l="Fair"),r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[r.jsxs("span",{className:"text-2xs text-text-3 font-sans flex items-center gap-1.5",children:[r.jsx(ST,{size:11}),"Session Health"]}),r.jsxs("span",{className:"text-xs font-bold font-mono",style:{color:s},children:[a,"/100"]})]}),r.jsx("div",{className:"h-2 bg-surface-0 rounded-full overflow-hidden border border-border-subtle",children:r.jsx("div",{className:"h-full rounded-full transition-all duration-700",style:{width:`${a}%`,background:s}})}),r.jsx("span",{className:"text-2xs font-sans mt-1 block",style:{color:s},children:l})]})}function RA(t){const a=(t||"").toLowerCase();return a.includes("edit")||a.includes("writ")?{icon:Ab,color:"text-warning"}:a.includes("read")||a.includes("view")?{icon:Dl,color:"text-info"}:a.includes("search")||a.includes("grep")||a.includes("glob")?{icon:da,color:"text-purple"}:a.includes("bash")||a.includes("command")||a.includes("terminal")?{icon:xi,color:"text-orange"}:a.includes("error")||a.includes("fail")?{icon:ua,color:"text-danger"}:a.includes("spawn")||a.includes("start")?{icon:Cn,color:"text-success"}:a.includes("complet")||a.includes("done")?{icon:gf,color:"text-success"}:{icon:bf,color:"text-text-4"}}function CA({agent:t}){const a=D(d=>d.tokenTimeline[t.id])||k0,s=D(d=>d.activityLog[t.id])||k0,l=t.status==="running"||t.status==="starting",o=v.useMemo(()=>{if(a.length<2)return 0;const d=a.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},[a]),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 r.jsxs("div",{className:"px-5 py-5 space-y-5 overflow-y-auto h-full",children:[r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between mb-2",children:[r.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Token Burn"}),l&&r.jsx("span",{className:"text-2xs text-accent font-mono animate-pulse",children:"LIVE"})]}),r.jsx(PA,{data:a,isAlive:l,height:56})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[r.jsx(tc,{icon:uT,label:"Burn Rate",value:o>0?`${Ke(o)}/m`:"—",color:o>5e3?"text-danger":o>2e3?"text-warning":"text-text-0"}),r.jsx(tc,{icon:F$,label:"Cost",value:vi(t.costUsd||0),color:"text-text-0"}),r.jsx(tc,{icon:Wl,label:"Rotations",value:t.rotations||"0",color:"text-text-0"}),r.jsx(tc,{icon:Cn,label:"Turns",value:t.turns||"0",color:"text-text-0"})]}),r.jsx(zA,{score:u}),t.prompt&&r.jsxs("div",{children:[r.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider block mb-1.5",children:"Task"}),r.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&&r.jsxs("div",{children:[r.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider block mb-2",children:"Activity"}),r.jsxs("div",{className:"space-y-0 relative",children:[r.jsx("div",{className:"absolute left-[9px] top-2 bottom-2 w-px bg-border-subtle"}),s.slice(-12).reverse().map((d,O)=>{const h=RA(d.text),p=h.icon;return r.jsxs("div",{className:"flex items-start gap-3 py-1.5 relative",children:[r.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:r.jsx(p,{size:9,className:h.color})}),r.jsx("span",{className:"text-2xs text-text-2 font-sans flex-1 line-clamp-1 pt-0.5",children:d.text}),r.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0 pt-0.5",children:vt(d.timestamp)})]},O)})]})]})]})}function XA({agent:t}){const a=D(z=>z.addToast),[s,l]=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 J.get(`/agents/${t.id}/mdfiles`);l(z.files||[]),u(z.workingDir||"")}catch{}}v.useEffect(()=>{Q()},[t.id]);async function k(z){try{const N=await J.get(`/agents/${t.id}/mdfiles/read?path=${encodeURIComponent(z)}`);p(N.content||""),g(N.content||""),O(z)}catch(N){a("error","Failed to read file",N.message)}}async function $(){if(d){y(!0);try{await J.put(`/agents/${t.id}/mdfiles/write`,{path:d,content:h}),g(h),a("success",`Saved ${d}`)}catch(z){a("error","Save failed",z.message)}y(!1)}}const j=h!==x;return d?r.jsxs("div",{className:"flex flex-col h-full",children:[r.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-border-subtle",children:[r.jsx("button",{onClick:()=>{O(null),p(""),g("")},className:"p-1 text-text-3 hover:text-text-0 cursor-pointer",children:r.jsx(Xb,{size:14})}),r.jsx(Ba,{size:12,className:"text-accent"}),r.jsx("span",{className:"text-xs text-text-0 font-sans font-medium flex-1 truncate",children:d}),j&&r.jsx("span",{className:"text-[10px] text-warning font-sans",children:"unsaved"}),r.jsxs("button",{onClick:$,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:[r.jsx(xN,{size:10}),b?"Saving...":"Save"]})]}),r.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})]}):r.jsxs("div",{className:"flex flex-col h-full",children:[r.jsxs("div",{className:"flex items-center gap-2 px-4 py-2.5 border-b border-border-subtle",children:[r.jsx(Ba,{size:12,className:"text-text-3"}),r.jsx("span",{className:"text-2xs font-semibold text-text-2 font-sans uppercase tracking-wider flex-1",children:"Markdown Files"}),r.jsx("button",{onClick:Q,className:"p-1 text-text-4 hover:text-text-1 cursor-pointer",children:r.jsx(Rn,{size:11})})]}),o&&r.jsx("div",{className:"px-4 py-1.5 text-[10px] text-text-4 font-mono truncate border-b border-border-subtle/50",children:o}),r.jsx("div",{className:"flex-1 overflow-y-auto",children:s.length===0?r.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-4",children:[r.jsx(Ba,{size:20,className:"text-text-4 mb-2"}),r.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No markdown files found"}),r.jsx("p",{className:"text-[10px] text-text-4 font-sans mt-1",children:"MD files in the agent's working directory will appear here"})]}):r.jsx("div",{className:"py-1",children:s.map(z=>r.jsxs("button",{onClick:()=>k(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:[r.jsx(Ba,{size:13,className:"text-accent flex-shrink-0"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("span",{className:"text-xs text-text-0 font-sans block truncate",children:z.name}),r.jsx("span",{className:"text-[10px] text-text-4 font-mono",children:z.path})]}),r.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 _A={running:"success",starting:"warning",stopped:"default",crashed:"danger",completed:"accent",killed:"default",rotating:"purple"},AA={running:"Running",starting:"Starting",stopped:"Stopped",crashed:"Crashed",completed:"Done",killed:"Killed",rotating:"Rotating"},ZA=[{id:"command",label:"Chat",icon:pi},{id:"config",label:"Config",icon:Hb},{id:"telemetry",label:"Monitor",icon:xc},{id:"mdfiles",label:"Files",icon:Ba}];function EA({agent:t}){const a=D(h=>h.addToast),[s,l]=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){l(!1);return}try{await J.patch(`/agents/${t.id}`,{name:h.replace(/\s+/g,"-")}),a("success",`Renamed → ${h}`)}catch(p){a("error","Rename failed",p.message),u(t.name)}l(!1)}return s?r.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0",children:[r.jsx("input",{ref:d,value:o,onChange:h=>u(h.target.value),onKeyDown:h=>{h.key==="Enter"&&O(),h.key==="Escape"&&(u(t.name),l(!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}),r.jsx("button",{onClick:O,className:"p-0.5 text-accent hover:text-accent/80 cursor-pointer",children:r.jsx(Wt,{size:12})}),r.jsx("button",{onClick:()=>{u(t.name),l(!1)},className:"p-0.5 text-text-4 hover:text-text-1 cursor-pointer",children:r.jsx(Qt,{size:12})})]}):r.jsxs("div",{className:"flex items-center gap-1.5 flex-1 min-w-0 group",children:[r.jsx("h2",{className:"text-sm font-bold text-text-0 font-sans truncate",children:t.name}),r.jsx("button",{onClick:()=>{u(t.name),l(!0)},className:"p-0.5 text-text-4 opacity-0 group-hover:opacity-100 hover:text-text-1 cursor-pointer transition-opacity",children:r.jsx(Lc,{size:10})})]})}function qA(){const t=D(p=>p.detailPanel),a=D(p=>p.agents),[s,l]=v.useState("command");if((t==null?void 0:t.type)!=="agent")return null;const o=a.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 Dc(o.role),r.jsxs("div",{className:"flex flex-col h-full",children:[r.jsxs("div",{className:"flex-shrink-0",children:[r.jsxs("div",{className:"pl-4 pr-10 pt-3 pb-2",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(EA,{agent:o}),r.jsx(Xe,{variant:_A[o.status]||"default",dot:u?"pulse":void 0,className:"text-2xs flex-shrink-0",children:AA[o.status]||o.status})]}),r.jsxs("div",{className:"flex items-center gap-2 mt-1 text-2xs text-text-3 font-mono",children:[r.jsx("span",{className:"capitalize",children:o.role}),r.jsx("span",{className:"text-text-4",children:"·"}),r.jsxs("span",{children:[o.provider,":",o.model||"auto"]}),r.jsx("span",{className:"text-text-4",children:"·"}),r.jsxs("span",{children:[Ke(o.tokensUsed||0)," tok"]}),d>0&&r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"text-text-4",children:"·"}),r.jsxs("span",{className:re(d>80?"text-danger":d>60?"text-warning":"text-text-3"),children:[d,"% ctx"]})]}),r.jsx("span",{className:"text-text-4",children:"·"}),r.jsx("span",{children:Wc(h)})]})]}),r.jsx("div",{className:"flex items-center px-4 border-b border-border-subtle",children:ZA.map(p=>{const x=p.icon,g=s===p.id;return r.jsxs("button",{onClick:()=>l(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:[r.jsx(x,{size:11}),p.label]},p.id)})})]}),r.jsxs("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[s==="command"&&r.jsx($A,{agent:o}),s==="config"&&r.jsx(NA,{agent:o}),s==="telemetry"&&r.jsx(CA,{agent:o}),s==="mdfiles"&&r.jsx(XA,{agent:o})]})]})}const MA=[{id:"planner",label:"Planner",desc:"Plans the team and tasks",icon:Wb,tier:"Heavy"},{id:"backend",label:"Backend",desc:"APIs, services, databases",icon:Bb,tier:"Medium"},{id:"frontend",label:"Frontend",desc:"UI, components, styling",icon:sh,tier:"Medium"},{id:"fullstack",label:"Fullstack",desc:"End-to-end implementation",icon:ns,tier:"Heavy"},{id:"testing",label:"Testing",desc:"Tests, coverage, QA",icon:oh,tier:"Medium"},{id:"devops",label:"DevOps",desc:"CI/CD, infra, deployment",icon:G$,tier:"Medium"},{id:"docs",label:"Docs",desc:"Documentation, guides",icon:Ba,tier:"Light"},{id:"security",label:"Security",desc:"Audits, vulnerabilities",icon:li,tier:"Medium"},{id:"database",label:"Database",desc:"Schema, migrations, queries",icon:H$,tier:"Medium"},{id:"cmo",label:"CMO",desc:"Marketing, content, growth",icon:UT,tier:"Medium"},{id:"cfo",label:"CFO",desc:"Finance, metrics, forecasting",icon:P$,tier:"Medium"},{id:"ea",label:"EA",desc:"Executive assistant, scheduling",icon:ZN,tier:"Light"},{id:"support",label:"Support",desc:"Customer support, FAQs",icon:vT,tier:"Medium"},{id:"analyst",label:"Analyst",desc:"Data analysis, insights",icon:Gc,tier:"Medium"},{id:"creative",label:"Writer",desc:"Copy, articles, proposals",icon:nN,tier:"Heavy",skillHint:!0},{id:"slides",label:"Slides",desc:"Pitch decks, presentations",icon:uN,tier:"Heavy",skillHint:!0}];function YA(){return r.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",className:"text-accent flex-shrink-0",children:[r.jsx("circle",{cx:"7",cy:"7",r:"6",fill:"currentColor",fillOpacity:"0.15",stroke:"currentColor",strokeWidth:"1"}),r.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 UA(){const t=D(E=>E.detailPanel),a=D(E=>E.closeDetail),s=D(E=>E.spawnAgent),l=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(""),[k,$]=v.useState(""),[j,z]=v.useState([]),[N,_]=v.useState([]),[G,R]=v.useState([]),[X,T]=v.useState(!1),[Y,M]=v.useState(""),[ae,F]=v.useState(!1);v.useEffect(()=>{o&&(l().then(E=>{const ce=Array.isArray(E)?E:E.providers||[];z(ce);const ee=ce.filter(be=>be.installed);if(ee.length>0&&!g){const Se=["claude-code","gemini","codex","ollama"].find(ye=>ee.some(Re=>Re.id===ye))||ee[0].id;b(Se)}}).catch(()=>{}),J.get("/skills/installed").then(E=>{_(Array.isArray(E)?E:[])}).catch(()=>{}),d(""),h(""),x(""),b(""),Q(""),$(""),R([]))},[o,l]);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},...k&&{prompt:k},...G.length>0&&{skills:G}};await s(E),a()}catch{}F(!1)}}return r.jsx(WS,{open:o,onOpenChange:E=>{E||a()},children:r.jsx(BS,{title:"Spawn Agent",width:480,children:r.jsxs("div",{className:"flex flex-col h-[calc(100%-57px)]",children:[r.jsxs("div",{className:"flex-1 overflow-y-auto px-5 py-4 space-y-6",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider block mb-3",children:"Choose Role"}),r.jsx("div",{className:"grid grid-cols-2 gap-2",children:MA.map(E=>{const ce=Dc(E.id),ee=u===E.id;return r.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:[r.jsx("div",{className:"w-8 h-8 rounded-md flex items-center justify-center flex-shrink-0",style:{background:ce.bg},children:r.jsx(E.icon,{size:16,style:{color:ce.text}})}),r.jsxs("div",{className:"min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans",children:E.label}),E.skillHint&&r.jsx("span",{className:"text-2xs font-mono text-warning/70 bg-warning/8 px-1 py-px rounded",children:"skill"})]}),r.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:E.desc})]})]},E.id)})}),r.jsx("div",{className:"mt-3",children:r.jsx(Xf,{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&&r.jsxs("div",{className:"space-y-4",children:[r.jsx("label",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider block",children:"Configuration"}),r.jsx(Xf,{label:"Name (optional)",value:p,onChange:E=>x(E.target.value),placeholder:`${se}-1`}),r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsxs("div",{className:"space-y-1",children:[r.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Provider"}),r.jsxs("div",{className:"relative",children:[r.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:[r.jsx("option",{value:"",children:"Auto"}),j.map(E=>r.jsxs("option",{value:E.id,disabled:!E.installed,children:[E.name,E.installed?"":" (not installed)"]},E.id))]}),r.jsx(Pn,{size:14,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-3 pointer-events-none"})]})]}),r.jsxs("div",{className:"space-y-1",children:[r.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Model"}),r.jsxs("div",{className:"relative",children:[r.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:[r.jsx("option",{value:"",children:"Auto"}),W.map(E=>r.jsx("option",{value:E.id,children:E.name},E.id))]}),r.jsx(Pn,{size:14,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-3 pointer-events-none"})]})]})]}),g&&ie&&r.jsx("div",{className:"text-2xs text-text-3 font-sans flex items-center gap-2",children:ie.authType==="local"?r.jsx(Xe,{variant:"success",children:"Local"}):ie.authType==="subscription"?r.jsx(Xe,{variant:"accent",children:"Subscription"}):ie.hasKey?r.jsx(Xe,{variant:"success",children:"API key set"}):r.jsxs(Xe,{variant:"warning",children:["No API key — set with: groove set-key ",g," YOUR_KEY"]})}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Skills"}),r.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[G.map(E=>{const ce=N.find(ee=>ee.id===E);return r.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:[r.jsx(Ir,{size:9}),(ce==null?void 0:ce.name)||E,r.jsx("button",{onClick:()=>R(ee=>ee.filter(be=>be!==E)),className:"ml-0.5 hover:text-text-0 cursor-pointer",children:r.jsx(Qt,{size:9})})]},E)}),r.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:[r.jsx(Ir,{size:10}),G.length>0?"Add skill":"Attach skill"]})]})]}),r.jsx(GS,{open:X,onOpenChange:T,children:r.jsx(LS,{title:"Select Skill",className:"max-w-sm",children:r.jsxs("div",{className:"space-y-3 p-4",children:[r.jsxs("div",{className:"relative",children:[r.jsx(da,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-text-4"}),r.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"})]}),r.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 r.jsxs("button",{onClick:()=>{R(ee=>ce?ee.filter(be=>be!==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:[r.jsx(Ir,{size:12,className:ce?"text-accent":"text-text-3"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:E.name||E.id}),E.description&&r.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:E.description})]}),ce&&r.jsx(YA,{})]},E.id)}),N.length===0&&r.jsx("div",{className:"text-center py-6 text-xs text-text-3 font-sans",children:"No skills installed. Visit the Marketplace to install skills."})]})]})})})]})]}),r.jsxs("div",{className:"border-t border-border-subtle px-5 py-4 bg-surface-1",children:[P.length===0&&j.length>0&&r.jsxs("div",{className:"flex items-center gap-2 mb-3 px-3 py-2 rounded-md bg-warning/8 border border-warning/20",children:[r.jsx(gi,{size:13,className:"text-warning flex-shrink-0"}),r.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&&r.jsxs("div",{className:"flex items-center gap-2 mb-3 text-xs text-text-3 font-sans",children:[r.jsx("span",{children:"Spawning"}),r.jsx(Xe,{variant:"accent",children:se}),g&&r.jsxs("span",{children:["on ",(ie==null?void 0:ie.name)||g]}),p&&r.jsxs("span",{children:["as ",p.replace(/\s+/g,"-")]})]}),r.jsx(ve,{variant:"primary",size:"lg",onClick:B,disabled:!se||ae||P.length===0,className:"w-full",children:ae?"Spawning...":"Spawn Agent"})]})]})})})}function w0({title:t,icon:a,defaultOpen:s=!1,badge:l,children:o,className:u}){const[d,O]=v.useState(s);return r.jsxs("div",{className:re("border-t border-border-subtle",u),children:[r.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:[r.jsx(_s,{size:12,className:re("text-text-4 transition-transform duration-200 flex-shrink-0",d&&"rotate-90")}),a&&r.jsx(a,{size:13,className:"text-text-3 flex-shrink-0"}),r.jsx("span",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider flex-1",children:t}),l&&r.jsx("span",{className:"text-2xs font-mono text-text-4 bg-surface-4 px-1.5 py-0.5 rounded",children:l})]}),d&&r.jsx("div",{className:"px-5 pb-4",children:o})]})}function VA(){const t=D(g=>g.journalistStatus),a=D(g=>g.fetchJournalist),s=D(g=>g.triggerJournalistCycle),[l,o]=v.useState(!0),[u,d]=v.useState(!1);v.useEffect(()=>{a().then(()=>o(!1));const g=setInterval(a,1e4);return()=>clearInterval(g)},[a]);async function O(){d(!0);try{await s()}catch{}d(!1)}if(l)return r.jsxs("div",{className:"p-5 space-y-4",children:[r.jsx(rn,{className:"h-6 w-32 rounded"}),r.jsx(rn,{className:"h-20 rounded-md"}),r.jsx(rn,{className:"h-20 rounded-md"})]});const h=t||{},p=h.lastSynthesis,x=h.history||[];return r.jsxs("div",{className:"flex flex-col h-full",children:[r.jsxs("div",{className:"px-5 py-4 border-b border-border-subtle flex items-center gap-2",children:[r.jsx(si,{size:16,className:"text-accent"}),r.jsx("h3",{className:"text-sm font-semibold text-text-0 font-sans flex-1",children:"Journalist"}),r.jsxs(ve,{variant:"secondary",size:"sm",onClick:O,disabled:u,className:"gap-1.5 text-2xs",children:[r.jsx(Rn,{size:11,className:u?"animate-spin":""}),u?"Running...":"Run Synthesis"]})]}),r.jsx(fa,{className:"flex-1",children:r.jsxs("div",{className:"px-5 py-4 space-y-5",children:[r.jsxs("div",{className:"flex items-center gap-3 text-2xs text-text-3 font-sans",children:[r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx(xc,{size:10}),r.jsxs("span",{children:[h.cycleCount||0," cycles"]})]}),h.lastCycleTime&&r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx(bf,{size:10}),r.jsxs("span",{children:["Last: ",vt(h.lastCycleTime)]})]}),r.jsx(Xe,{variant:h.cycleCount>0?"success":"default",className:"text-2xs",children:h.cycleCount>0?"Active":"Idle"})]}),(p==null?void 0:p.summary)&&r.jsxs("div",{className:"space-y-2",children:[r.jsxs("label",{className:"text-xs font-semibold text-text-1 font-sans flex items-center gap-1.5",children:[r.jsx(Ba,{size:12,className:"text-text-3"}),"Latest Summary"]}),r.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)&&r.jsx(w0,{title:"Project Map",icon:AT,children:r.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)&&r.jsx(w0,{title:"Decisions Log",icon:Ba,children:r.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&&r.jsxs("div",{className:"space-y-2",children:[r.jsxs("label",{className:"text-xs font-semibold text-text-1 font-sans flex items-center gap-1.5",children:[r.jsx(bf,{size:12,className:"text-text-3"}),"History (",x.length,")"]}),r.jsx("div",{className:"space-y-1.5",children:x.slice().reverse().slice(0,20).map((g,b)=>r.jsxs("div",{className:"bg-surface-0 rounded-md border border-border-subtle px-3 py-2",children:[r.jsxs("div",{className:"flex items-center gap-2 text-2xs",children:[r.jsxs(Xe,{variant:"default",className:"text-2xs",children:["Cycle ",g.cycle]}),r.jsxs("span",{className:"text-text-4 font-sans",children:[g.agentCount," agent",g.agentCount!==1?"s":""]}),r.jsx("span",{className:"text-text-4 font-sans ml-auto",children:vt(g.timestamp)})]}),g.summary&&r.jsx("p",{className:"text-xs text-text-2 font-sans mt-1 leading-relaxed",children:g.summary})]},b))})]}),!p&&x.length===0&&r.jsxs("div",{className:"text-center py-8 text-text-4 font-sans",children:[r.jsx(si,{size:28,className:"mx-auto mb-2"}),r.jsx("p",{className:"text-sm",children:"No synthesis data yet"}),r.jsx("p",{className:"text-2xs mt-1",children:"The journalist runs automatically when agents are active, or trigger manually above"})]})]})})]})}function GA({children:t,height:a,onHeightChange:s,visible:l,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),k=v.useCallback(j=>{if(o)return;j.preventDefault(),b.current=!0,y.current=j.clientY,Q.current=a;function z(_){if(!b.current)return;const G=y.current-_.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)},[a,s,o]);if(!l)return null;const $=u||[{id:"default",label:"Terminal"}];return r.jsxs("div",{className:"flex flex-col border-t border-border bg-surface-0 relative",style:o?{flex:1,minHeight:0}:{height:a,flexShrink:0},children:[!o&&r.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 cursor-row-resize hover:bg-accent/30 transition-colors z-10",onMouseDown:k}),r.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:[r.jsxs("div",{className:"flex items-center gap-0 flex-1 min-w-0 overflow-x-auto scrollbar-none",children:[$.map(j=>r.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:[r.jsx(xi,{size:10}),r.jsx("span",{className:"truncate max-w-[80px]",children:j.label}),$.length>1&&r.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:r.jsx(Qt,{size:9})})]},j.id)),r.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:r.jsx(Ja,{size:11})})]}),r.jsx("div",{className:"flex items-center gap-0.5 flex-shrink-0 ml-2",children:o?r.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:r.jsx(DT,{size:12})}):r.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:r.jsx(ET,{size:12})})})]}),r.jsx("div",{className:"flex-1 min-h-0 p-2",children:t})]})}const LA={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 of=0;function DA({tabId:t,visible:a}){const s=v.useRef(null),l=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 Kj({theme:LA,fontFamily:"'JetBrains Mono Variable', 'SF Mono', monospace",fontSize:13,lineHeight:1.4,cursorBlink:!0,cursorStyle:"bar",scrollback:5e3,allowProposedApi:!0}),h=new Jj;O.loadAddon(h),O.loadAddon(new ek),O.open(s.current),l.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 k=D.getState().ws;(k==null?void 0:k.readyState)===WebSocket.OPEN&&o.current&&k.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(()=>{a&&l.current&&requestAnimationFrame(()=>{var O,h,p,x,g;try{(g=(x=(p=(h=(O=l.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{}})},[a]),r.jsx("div",{ref:s,className:"w-full h-full",style:{display:a?"block":"none"}})}function WA(){const t=D(b=>b.terminalVisible),a=D(b=>b.terminalHeight),s=D(b=>b.setTerminalVisible),l=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(()=>{of++;const b=`term-${of}`;O(y=>[...y,{id:b,label:`Terminal ${of+1}`}]),p(b)},[]),g=v.useCallback(b=>{O(y=>{const Q=y.filter(k=>k.id!==b);if(Q.length===0)return s(!1),y;if(h===b){const k=y.findIndex(j=>j.id===b),$=Q[Math.min(k,Q.length-1)];p($.id)}return Q})},[h,s]);return r.jsx(GA,{visible:t,height:a,onHeightChange:l,fullHeight:o,tabs:d,activeTab:h,onSelectTab:p,onAddTab:x,onCloseTab:g,onToggleFullHeight:()=>u(!0),onMinimize:()=>u(!1),children:d.map(b=>r.jsx(DA,{tabId:b.id,visible:b.id===h},b.id))})}class BA extends Ga.Component{constructor(a){super(a),this.state={error:null}}static getDerivedStateFromError(a){return{error:a}}render(){return this.state.error?r.jsxs("div",{className:"h-screen bg-surface-0 p-10 font-sans",children:[r.jsx("h2",{className:"text-lg font-semibold text-text-0 mb-4",children:"Groove — Render Error"}),r.jsx("pre",{className:"text-sm text-danger whitespace-pre-wrap mb-4",children:this.state.error.message}),r.jsx("pre",{className:"text-xs text-text-3 whitespace-pre-wrap",children:this.state.error.stack}),r.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 HA(){const t=D(o=>o.activeView),a=D(o=>o.detailPanel);let s;switch(t){case"agents":s=r.jsx(o1,{});break;case"editor":s=r.jsx(NC,{});break;case"dashboard":s=r.jsx(xX,{});break;case"marketplace":s=r.jsx(_X,{});break;case"teams":s=r.jsx(MX,{});break;case"models":s=r.jsx(pA,{});break;case"settings":s=r.jsx(iA,{});break;default:s=r.jsx(o1,{})}let l=null;if(a)switch(a.type){case"agent":l=r.jsx(qA,{});break;case"journalist":l=r.jsx(VA,{});break;case"spawn":l=null;break}return r.jsxs(cP,{detailContent:l,terminalContent:r.jsx(WA,{}),children:[s,r.jsx(UA,{})]})}function IA(){return r.jsxs("div",{className:"h-screen bg-surface-0 flex flex-col items-center justify-center gap-4",children:[r.jsx("img",{src:"/favicon.png",alt:"",className:"w-10 h-10 opacity-60 animate-pulse"}),r.jsx("p",{className:"text-sm text-text-3 font-sans",children:"Connecting..."})]})}function FA(){const t=D(s=>s.connect),a=D(s=>s.hydrated);return v.useEffect(()=>{t()},[t]),a?r.jsx(BA,{children:r.jsx(HA,{})}):r.jsx(IA,{})}lk.createRoot(document.getElementById("root")).render(r.jsx(v.StrictMode,{children:r.jsx(FA,{})}));
|