@alexgorbatchev/dotfiles 0.0.5 → 0.0.10

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.
@@ -1,159 +0,0 @@
1
- import{a as x,b as p,c as J0,d as h0,e as Q0,f as Yw,g as Zw,h as C0}from"./cli-w822cqdk.js";import{j as f1}from"./cli-fj2hdbnx.js";var W0,r,Aw,kv,I0=0,xv=[],L=x,Mv=L.__b,Gv=L.__r,hv=L.diffed,Av=L.__c,Ov=L.unmount,_v=L.__;function R0(w,v){L.__h&&L.__h(r,w,I0||v),I0=0;var b=r.__H||(r.__H={__:[],__h:[]});return w>=b.__.length&&b.__.push({}),b.__[w]}function R(w){return I0=1,T0(rv,w)}function T0(w,v,b){var y=R0(W0++,2);if(y.t=w,!y.__c&&(y.__=[b?b(v):rv(void 0,v),function(Z){var Q=y.__N?y.__N[0]:y.__[0],Y=y.t(Q,Z);Q!==Y&&(y.__N=[Y,y.__[1]],y.__c.setState({}))}],y.__c=r,!r.__f)){var J=function(Z,Q,Y){if(!y.__c.__H)return!0;var K=y.__c.__H.__.filter(function($){return $.__c});if(K.every(function($){return!$.__N}))return!X||X.call(this,Z,Q,Y);var D=y.__c.props!==Z;return K.some(function($){if($.__N){var q=$.__[0];$.__=$.__N,$.__N=void 0,q!==$.__[0]&&(D=!0)}}),X&&X.call(this,Z,Q,Y)||D};r.__f=!0;var{shouldComponentUpdate:X,componentWillUpdate:z}=r;r.componentWillUpdate=function(Z,Q,Y){if(this.__e){var K=X;X=void 0,J(Z,Q,Y),X=K}z&&z.call(this,Z,Q,Y)},r.shouldComponentUpdate=J}return y.__N||y.__}function z0(w,v){var b=R0(W0++,3);!L.__s&&_w(b.__H,v)&&(b.__=w,b.u=v,r.__H.__h.push(b))}function fw(w,v){var b=R0(W0++,4);!L.__s&&_w(b.__H,v)&&(b.__=w,b.u=v,r.__h.push(b))}function l(w){return I0=5,a(function(){return{current:w}},[])}function a(w,v){var b=R0(W0++,7);return _w(b.__H,v)&&(b.__=w(),b.__H=v,b.__h=w),b.__}function Z0(w,v){return I0=8,a(function(){return w},v)}function Jw(w){var v=r.context[w.__c],b=R0(W0++,9);return b.c=w,v?(b.__==null&&(b.__=!0,v.sub(r)),v.props.value):w.__}function k1(){for(var w;w=xv.shift();){var v=w.__H;if(w.__P&&v)try{v.__h.some(yw),v.__h.some(Ow),v.__h=[]}catch(b){v.__h=[],L.__e(b,w.__v)}}}L.__b=function(w){r=null,Mv&&Mv(w)},L.__=function(w,v){w&&v.__k&&v.__k.__m&&(w.__m=v.__k.__m),_v&&_v(w,v)},L.__r=function(w){Gv&&Gv(w),W0=0;var v=(r=w.__c).__H;v&&(Aw===r?(v.__h=[],r.__h=[],v.__.some(function(b){b.__N&&(b.__=b.__N),b.u=b.__N=void 0})):(v.__h.some(yw),v.__h.some(Ow),v.__h=[],W0=0)),Aw=r},L.diffed=function(w){hv&&hv(w);var v=w.__c;v&&v.__H&&(v.__H.__h.length&&(xv.push(v)!==1&&kv===L.requestAnimationFrame||((kv=L.requestAnimationFrame)||M1)(k1)),v.__H.__.some(function(b){b.u&&(b.__H=b.u),b.u=void 0})),Aw=r=null},L.__c=function(w,v){v.some(function(b){try{b.__h.some(yw),b.__h=b.__h.filter(function(y){return!y.__||Ow(y)})}catch(y){v.some(function(J){J.__h&&(J.__h=[])}),v=[],L.__e(y,b.__v)}}),Av&&Av(w,v)},L.unmount=function(w){Ov&&Ov(w);var v,b=w.__c;b&&b.__H&&(b.__H.__.some(function(y){try{yw(y)}catch(J){v=J}}),b.__H=void 0,v&&L.__e(v,b.__v))};var Pv=typeof requestAnimationFrame=="function";function M1(w){var v,b=function(){clearTimeout(y),Pv&&cancelAnimationFrame(v),setTimeout(w)},y=setTimeout(b,35);Pv&&(v=requestAnimationFrame(b))}function yw(w){var v=r,b=w.__c;typeof b=="function"&&(w.__c=void 0,b()),r=v}function Ow(w){var v=r;w.__c=w.__(),r=v}function _w(w,v){return!w||w.length!==v.length||v.some(function(b,y){return b!==w[y]})}function rv(w,v){return typeof v=="function"?v(w):v}var A0,L0;function G1(w){return!L0||(typeof L0=="string"?w.startsWith(L0):L0.test(w))}function h1(w,v){let b="";if(A0=void 0,v&&v.type==="click"){if(v.ctrlKey||v.metaKey||v.altKey||v.shiftKey||v.button!==0)return w;let y=v.composedPath().find((X)=>X.nodeName=="A"&&X.href),J=y&&y.getAttribute("href");if(!y||y.origin!=location.origin||/^#/.test(J)||!/^(_?self)?$/i.test(y.target)||!G1(J)||y.download)return w;A0=!0,v.preventDefault(),b=y.href.replace(location.origin,"")}else if(v&&v.url)A0=!v.replace,b=v.url;else b=location.pathname+location.search;if(A0===!0)history.pushState(null,"",b);else if(A0===!1)history.replaceState(null,"",b);return b}var A1=(w,v,b={})=>{if(w=w.split("/").filter(Boolean),v=(v||"").split("/").filter(Boolean),!b.params)b.params={};for(let y=0,J,X;y<Math.max(w.length,v.length);y++){let[,z,Z,Q]=(v[y]||"").match(/^(:?)(.*?)([+*?]?)$/);if(J=w[y],!z&&Z==J)continue;if(!z&&J&&Q=="*"){b.rest="/"+w.slice(y).map(decodeURIComponent).join("/");break}if(!z||!J&&Q!="?"&&Q!="*")return;if(X=Q=="+"||Q=="*",X)J=w.slice(y).map(decodeURIComponent).join("/")||void 0;else if(J)J=decodeURIComponent(J);if(b.params[Z]=J,!(Z in b))b[Z]=J;if(X)break}return b};function U0(w){let[v,b]=T0(h1,w.url||location.pathname+location.search);if(w.scope)L0=w.scope;let y=A0===!0,J=a(()=>{let X=new URL(v,location.origin),z=X.pathname.replace(/\/+$/g,"")||"/";return{url:v,path:z,query:Object.fromEntries(X.searchParams),route:(Z,Q)=>b({url:Z,replace:Q}),wasPush:y}},[v]);return fw(()=>{return addEventListener("click",b),addEventListener("popstate",b),()=>{removeEventListener("click",b),removeEventListener("popstate",b)}},[]),p(U0.ctx.Provider,{value:J},w.children)}var O1=Promise.resolve();function Qw(w){let[v,b]=T0((M)=>M+1,0),{url:y,query:J,wasPush:X,path:z}=O0();if(!y)throw Error("preact-iso's <Router> must be used within a <LocationProvider>, see: https://github.com/preactjs/preact-iso#locationprovider");let{rest:Z=z,params:Q={}}=Jw(Nv),Y=l(!1),K=l(z),D=l(0),$=l(),q=l(),d=l(),k=l(!1),F=l();F.current=!1;let O,_,h;Q0(w.children).some((M)=>{if(A1(Z,M.props.path,h={...M.props,path:Z,query:J,params:Object.assign({},Q),rest:""}))return O=Zw(M,h);if(M.props.default)_=Zw(M,h)});let B=O||_,C=$.current&&$.current.__u&Xw&&$.current.__u&zw,I=$.current&&$.current.__h,o=a(()=>{q.current=$.current,$.current=p(Nv.Provider,{value:h},B);let M=q.current&&q.current.props.children;if(!M||!B||B.type!==M.type||B.props.component!==M.props.component){if(this.__v&&this.__v.__k)this.__v.__k.reverse();return D.current++,!0}return!1},[y,JSON.stringify(h)]);if(C)$.current.__u|=Xw,$.current.__u|=zw;else if(I)$.current.__h=!0;let U=q.current;return q.current=null,this.__c=(M,s)=>{if(F.current=!0,q.current=U,w.onLoadStart)w.onLoadStart(y);Y.current=!0;let v0=D.current;M.then(()=>{if(v0!==D.current)return;if(q.current=null,$.current){if(s.__h)$.current.__h=s.__h;if(s.__u&zw)$.current.__u|=zw;if(s.__u&Xw)$.current.__u|=Xw}O1.then(b)})},fw(()=>{let M=this.__v&&this.__v.__e;if(F.current){if(!k.current&&!d.current)d.current=M;return}if(!k.current&&d.current){if(d.current!==M)d.current.remove();d.current=null}if(k.current=!0,K.current!==z){if(X)scrollTo(0,0);if(w.onRouteChange)w.onRouteChange(y);K.current=z}if(w.onLoadEnd&&Y.current)w.onLoadEnd(y);Y.current=!1},[z,X,v]),o?[p(Pw,{r:$}),p(Pw,{r:q})]:p(Pw,{r:$})}var Xw=32,zw=128,Pw=({r:w})=>w.current;Qw.Provider=U0;U0.ctx=C0({});var Nv=C0({}),B0=(w)=>p(w.component,w),O0=()=>Jw(U0.ctx);var Iv=x.__b;x.__b=(w)=>{if(w.type&&w.type._forwarded&&w.ref)w.props.ref=w.ref,w.ref=null;if(Iv)Iv(w)};var Rv=x.__e;x.__e=(w,v,b)=>{if(w&&w.then){let y=v;while(y=y.__)if(y.__c&&y.__c.__c){if(v.__e==null)v.__c.__z=[b.__e],v.__e=b.__e,v.__k=b.__k;if(!v.__k)v.__k=[];return y.__c.__c(w,v)}}if(Rv)Rv(w,v,b)};var xw=(w)=>w.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),P1=(w)=>w.replace(/^([A-Z])|[\s-_]+(\w)/g,(v,b,y)=>y?y.toUpperCase():b.toLowerCase()),rw=(w)=>{let v=P1(w);return v.charAt(0).toUpperCase()+v.slice(1)},Tv=(...w)=>w.filter((v,b,y)=>{return Boolean(v)&&v.trim()!==""&&y.indexOf(v)===b}).join(" ").trim();var Lv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"};var Cv=({color:w="currentColor",size:v=24,strokeWidth:b=2,absoluteStrokeWidth:y,children:J,iconNode:X,class:z="",...Z})=>p("svg",{...Lv,width:String(v),height:v,stroke:w,["stroke-width"]:y?Number(b)*24/Number(v):b,class:["lucide",z].join(" "),...Z},[...X.map(([Q,Y])=>p(Q,Y)),...Q0(J)]);var V=(w,v)=>{let b=({class:y="",children:J,...X})=>p(Cv,{...X,iconNode:v,class:Tv(`lucide-${xw(rw(w))}`,`lucide-${xw(w)}`,y)},J);return b.displayName=rw(w),b};var j0=V("book-open",[["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"}]]);var Nw=V("box",[["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"}]]);var Iw=V("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var Rw=V("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var Tw=V("circle-arrow-up",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]]);var Kw=V("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var Lw=V("circle-x",[["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"}]]);var S0=V("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var g0=V("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]);var Cw=V("copy",[["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"}]]);var m0=V("download",[["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"}]]);var l0=V("external-link",[["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"}]]);var y0=V("file-code",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);var jw=V("file-cog",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m2.305 15.53.923-.382",key:"yfp9st"}],["path",{d:"m3.228 12.852-.924-.383",key:"bckynb"}],["path",{d:"M4.677 21.5a2 2 0 0 0 1.313.5H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2.5",key:"1yo3oz"}],["path",{d:"m4.852 11.228-.383-.923",key:"1j88i9"}],["path",{d:"m4.852 16.772-.383.924",key:"sag1dv"}],["path",{d:"m7.148 11.228.383-.923",key:"rj39hk"}],["path",{d:"m7.53 17.696-.382-.924",key:"1uu5cs"}],["path",{d:"m8.772 12.852.923-.383",key:"13811l"}],["path",{d:"m8.772 15.148.923.383",key:"z1a5l0"}],["circle",{cx:"6",cy:"14",r:"3",key:"a1xfv6"}]]);var Sw=V("file-plus",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]);var gw=V("file-symlink",[["path",{d:"m10 18 3-3-3-3",key:"18f6ys"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4 11V4a2 2 0 0 1 2-2h9l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h7",key:"50q2rw"}]]);var mw=V("file-terminal",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m8 16 2-2-2-2",key:"10vzyd"}],["path",{d:"M12 18h4",key:"1wd2n7"}]]);var Y0=V("file",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);var lw=V("folder-cog",[["path",{d:"M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.98a2 2 0 0 1 1.69.9l.66 1.2A2 2 0 0 0 12 6h8a2 2 0 0 1 2 2v3.3",key:"128dxu"}],["path",{d:"m14.305 19.53.923-.382",key:"3m78fa"}],["path",{d:"m15.228 16.852-.923-.383",key:"npixar"}],["path",{d:"m16.852 15.228-.383-.923",key:"5xggr7"}],["path",{d:"m16.852 20.772-.383.924",key:"dpfhf9"}],["path",{d:"m19.148 15.228.383-.923",key:"1reyyz"}],["path",{d:"m19.53 21.696-.382-.924",key:"1goivc"}],["path",{d:"m20.772 16.852.924-.383",key:"htqkph"}],["path",{d:"m20.772 19.148.924.383",key:"9w9pjp"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}]]);var i0=V("folder-open",[["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"}]]);var iw=V("folder-plus",[["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"}]]);var o0=V("folder-tree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);var ow=V("folder",[["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"}]]);var _0=V("git-branch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);var pw=V("hard-drive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);var uw=V("heart-pulse",[["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"}],["path",{d:"M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"auskq0"}]]);var p0=V("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);var cw=V("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var aw=V("layers",[["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"}]]);var u0=V("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);var K0=V("package",[["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"}]]);var tw=V("refresh-cw",[["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"}]]);var E0=V("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var nw=V("settings",[["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"}]]);var sw=V("shield",[["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"}]]);var ew=V("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);var wv=V("trash-2",[["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"}]]);var vv=V("triangle-alert",[["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"}]]);var bv=V("wrench",[["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"}]]);var F0=V("zap",[["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"}]]);async function jv(w){let b=await(await fetch("/api"+w)).json();if(!b.success)throw Error(b.error||"API error");return b.data}async function $w(w,v){let y=await(await fetch("/api"+w,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(v)})).json();if(!y.success)throw Error(y.error||"API error");return y.data}function j(w,v=[]){let[b,y]=R(null),[J,X]=R(!0),[z,Z]=R(null);return z0(()=>{(async()=>{X(!0),Z(null);try{let Y=await jv(w);y(Y)}catch(Y){Z(Y instanceof Error?Y:Error(String(Y)))}finally{X(!1)}})()},[w,...v]),{data:b,loading:J,error:z}}var x1=0;function f(w,v,b,y,J,X){v||(v={});var z,Z,Q=v;if("ref"in Q)for(Z in Q={},v)Z=="ref"?z=v[Z]:Q[Z]=v[Z];var Y={type:w,props:Q,key:b,ref:z,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--x1,__i:-1,__u:0,__source:J,__self:X};if(typeof w=="function"&&(z=w.defaultProps))for(Z in z)Q[Z]===void 0&&(Q[Z]=z[Z]);return x.vnode&&x.vnode(Y),Y}function Sv(){let[w,v]=R(!1),[b,y]=R(""),[J,X]=R(0),z=l(null),{route:Z}=O0(),{data:Q}=j("/tools");z0(()=>{let $=(q)=>{if((q.metaKey||q.ctrlKey)&&q.key==="k")q.preventDefault(),v((d)=>!d);if(q.key==="Escape"&&w)v(!1)};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[w]),z0(()=>{if(w)y(""),X(0),setTimeout(()=>z.current?.focus(),0)},[w]);let Y=a(()=>{if(!Q||!b.trim())return[];let $=b.toLowerCase(),q=[];for(let d of Q){if(d.config.name.toLowerCase().includes($)){q.push({tool:d,matchType:"name",matchedValue:d.config.name});continue}let k=d.config.binaries||[];for(let F of k){let O=typeof F==="string"?F:F.name;if(O.toLowerCase().includes($)){q.push({tool:d,matchType:"binary",matchedValue:O});break}}}return q.slice(0,10)},[Q,b]),K=Z0(($)=>{v(!1),Z(`/tools/${encodeURIComponent($.tool.config.name)}`)},[Z]),D=Z0(($)=>{if($.key==="ArrowDown")$.preventDefault(),X((q)=>Math.min(q+1,Y.length-1));else if($.key==="ArrowUp")$.preventDefault(),X((q)=>Math.max(q-1,0));else if($.key==="Enter"&&Y[J])$.preventDefault(),K(Y[J])},[Y,J,K]);if(!w)return null;return f("div",{class:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",children:[f("div",{class:"fixed inset-0 bg-black/50",onClick:()=>v(!1)}),f("div",{class:"relative w-full max-w-lg bg-card border border-border rounded-lg shadow-lg overflow-hidden",children:[f("div",{class:"flex items-center border-b border-border px-3",children:[f(E0,{class:"w-4 h-4 text-muted-foreground"}),f("input",{ref:z,type:"text",value:b,onInput:($)=>{y($.target.value),X(0)},onKeyDown:D,placeholder:"Search tools by name or binary...",class:"flex-1 bg-transparent px-3 py-3 focus:outline-none"}),f("kbd",{class:"text-xs text-muted-foreground bg-muted px-1.5 py-0.5 rounded",children:"esc"})]}),b.trim()&&f("div",{class:"max-h-80 overflow-y-auto",children:Y.length===0?f("div",{class:"px-4 py-8 text-center text-muted-foreground",children:"No tools found"}):f("ul",{children:Y.map(($,q)=>f("li",{class:`px-4 py-2 cursor-pointer flex items-center justify-between ${q===J?"bg-accent":"hover:bg-accent/50"}`,onClick:()=>K($),onMouseEnter:()=>X(q),children:[f("div",{children:[f("div",{class:"font-medium",children:$.tool.config.name}),$.matchType==="binary"&&f("div",{class:"text-sm text-muted-foreground",children:["binary: ",f("code",{class:"bg-muted px-1 rounded",children:$.matchedValue})]})]}),f("span",{class:"text-xs text-muted-foreground",children:$.tool.config.installationMethod})]},$.tool.config.name))})}),!b.trim()&&f("div",{class:"px-4 py-3 text-sm text-muted-foreground",children:"Type to search tools by name or binary..."})]})]})}function gv(w){var v,b,y="";if(typeof w=="string"||typeof w=="number")y+=w;else if(typeof w=="object")if(Array.isArray(w)){var J=w.length;for(v=0;v<J;v++)w[v]&&(b=gv(w[v]))&&(y&&(y+=" "),y+=b)}else for(b in w)w[b]&&(y&&(y+=" "),y+=b);return y}function k0(){for(var w,v,b=0,y="",J=arguments.length;b<J;b++)(w=arguments[b])&&(v=gv(w))&&(y&&(y+=" "),y+=v);return y}var r1=(w,v)=>{let b=Array(w.length+v.length);for(let y=0;y<w.length;y++)b[y]=w[y];for(let y=0;y<v.length;y++)b[w.length+y]=v[y];return b},N1=(w,v)=>({classGroupId:w,validator:v}),uv=(w=new Map,v=null,b)=>({nextPart:w,validators:v,classGroupId:b});var mv=[];var I1=(w)=>{let v=T1(w),{conflictingClassGroups:b,conflictingClassGroupModifiers:y}=w;return{getClassGroupId:(z)=>{if(z.startsWith("[")&&z.endsWith("]"))return R1(z);let Z=z.split("-"),Q=Z[0]===""&&Z.length>1?1:0;return cv(Z,Q,v)},getConflictingClassGroupIds:(z,Z)=>{if(Z){let Q=y[z],Y=b[z];if(Q){if(Y)return r1(Y,Q);return Q}return Y||mv}return b[z]||mv}}},cv=(w,v,b)=>{if(w.length-v===0)return b.classGroupId;let J=w[v],X=b.nextPart.get(J);if(X){let Y=cv(w,v+1,X);if(Y)return Y}let z=b.validators;if(z===null)return;let Z=v===0?w.join("-"):w.slice(v).join("-"),Q=z.length;for(let Y=0;Y<Q;Y++){let K=z[Y];if(K.validator(Z))return K.classGroupId}return},R1=(w)=>w.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let v=w.slice(1,-1),b=v.indexOf(":"),y=v.slice(0,b);return y?"arbitrary.."+y:void 0})(),T1=(w)=>{let{theme:v,classGroups:b}=w;return L1(b,v)},L1=(w,v)=>{let b=uv();for(let y in w){let J=w[y];fv(J,b,y,v)}return b},fv=(w,v,b,y)=>{let J=w.length;for(let X=0;X<J;X++){let z=w[X];C1(z,v,b,y)}},C1=(w,v,b,y)=>{if(typeof w==="string"){j1(w,v,b);return}if(typeof w==="function"){S1(w,v,b,y);return}g1(w,v,b,y)},j1=(w,v,b)=>{let y=w===""?v:av(v,w);y.classGroupId=b},S1=(w,v,b,y)=>{if(m1(w)){fv(w(y),v,b,y);return}if(v.validators===null)v.validators=[];v.validators.push(N1(b,w))},g1=(w,v,b,y)=>{let J=Object.entries(w),X=J.length;for(let z=0;z<X;z++){let[Z,Q]=J[z];fv(Q,av(v,Z),b,y)}},av=(w,v)=>{let b=w,y=v.split("-"),J=y.length;for(let X=0;X<J;X++){let z=y[X],Z=b.nextPart.get(z);if(!Z)Z=uv(),b.nextPart.set(z,Z);b=Z}return b},m1=(w)=>("isThemeGetter"in w)&&w.isThemeGetter===!0,l1=(w)=>{if(w<1)return{get:()=>{return},set:()=>{}};let v=0,b=Object.create(null),y=Object.create(null),J=(X,z)=>{if(b[X]=z,v++,v>w)v=0,y=b,b=Object.create(null)};return{get(X){let z=b[X];if(z!==void 0)return z;if((z=y[X])!==void 0)return J(X,z),z},set(X,z){if(X in b)b[X]=z;else J(X,z)}}};var i1=[],lv=(w,v,b,y,J)=>({modifiers:w,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:y,isExternal:J}),o1=(w)=>{let{prefix:v,experimentalParseClassName:b}=w,y=(J)=>{let X=[],z=0,Z=0,Q=0,Y,K=J.length;for(let k=0;k<K;k++){let F=J[k];if(z===0&&Z===0){if(F===":"){X.push(J.slice(Q,k)),Q=k+1;continue}if(F==="/"){Y=k;continue}}if(F==="[")z++;else if(F==="]")z--;else if(F==="(")Z++;else if(F===")")Z--}let D=X.length===0?J:J.slice(Q),$=D,q=!1;if(D.endsWith("!"))$=D.slice(0,-1),q=!0;else if(D.startsWith("!"))$=D.slice(1),q=!0;let d=Y&&Y>Q?Y-Q:void 0;return lv(X,q,$,d)};if(v){let J=v+":",X=y;y=(z)=>z.startsWith(J)?X(z.slice(J.length)):lv(i1,!1,z,void 0,!0)}if(b){let J=y;y=(X)=>b({className:X,parseClassName:J})}return y},p1=(w)=>{let v=new Map;return w.orderSensitiveModifiers.forEach((b,y)=>{v.set(b,1e6+y)}),(b)=>{let y=[],J=[];for(let X=0;X<b.length;X++){let z=b[X],Z=z[0]==="[",Q=v.has(z);if(Z||Q){if(J.length>0)J.sort(),y.push(...J),J=[];y.push(z)}else J.push(z)}if(J.length>0)J.sort(),y.push(...J);return y}},u1=(w)=>({cache:l1(w.cacheSize),parseClassName:o1(w),sortModifiers:p1(w),...I1(w)}),c1=/\s+/,a1=(w,v)=>{let{parseClassName:b,getClassGroupId:y,getConflictingClassGroupIds:J,sortModifiers:X}=v,z=[],Z=w.trim().split(c1),Q="";for(let Y=Z.length-1;Y>=0;Y-=1){let K=Z[Y],{isExternal:D,modifiers:$,hasImportantModifier:q,baseClassName:d,maybePostfixModifierPosition:k}=b(K);if(D){Q=K+(Q.length>0?" "+Q:Q);continue}let F=!!k,O=y(F?d.substring(0,k):d);if(!O){if(!F){Q=K+(Q.length>0?" "+Q:Q);continue}if(O=y(d),!O){Q=K+(Q.length>0?" "+Q:Q);continue}F=!1}let _=$.length===0?"":$.length===1?$[0]:X($).join(":"),h=q?_+"!":_,B=h+O;if(z.indexOf(B)>-1)continue;z.push(B);let C=J(O,F);for(let I=0;I<C.length;++I){let o=C[I];z.push(h+o)}Q=K+(Q.length>0?" "+Q:Q)}return Q},t1=(...w)=>{let v=0,b,y,J="";while(v<w.length)if(b=w[v++]){if(y=tv(b))J&&(J+=" "),J+=y}return J},tv=(w)=>{if(typeof w==="string")return w;let v,b="";for(let y=0;y<w.length;y++)if(w[y]){if(v=tv(w[y]))b&&(b+=" "),b+=v}return b},n1=(w,...v)=>{let b,y,J,X,z=(Q)=>{let Y=v.reduce((K,D)=>D(K),w());return b=u1(Y),y=b.cache.get,J=b.cache.set,X=Z,Z(Q)},Z=(Q)=>{let Y=y(Q);if(Y)return Y;let K=a1(Q,b);return J(Q,K),K};return X=z,(...Q)=>X(t1(...Q))},s1=[],S=(w)=>{let v=(b)=>b[w]||s1;return v.isThemeGetter=!0,v},nv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,sv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,e1=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,w5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,v5=/\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$/,b5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,y5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,f5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$0=(w)=>e1.test(w),G=(w)=>!!w&&!Number.isNaN(Number(w)),q0=(w)=>!!w&&Number.isInteger(Number(w)),yv=(w)=>w.endsWith("%")&&G(w.slice(0,-1)),X0=(w)=>w5.test(w),ev=()=>!0,J5=(w)=>v5.test(w)&&!b5.test(w),Jv=()=>!1,X5=(w)=>y5.test(w),z5=(w)=>f5.test(w),Z5=(w)=>!H(w)&&!W(w),Q5=(w)=>D0(w,bb,Jv),H=(w)=>nv.test(w),M0=(w)=>D0(w,yb,J5),iv=(w)=>D0(w,H5,G),Y5=(w)=>D0(w,Jb,ev),K5=(w)=>D0(w,fb,Jv),ov=(w)=>D0(w,wb,Jv),$5=(w)=>D0(w,vb,z5),qw=(w)=>D0(w,Xb,X5),W=(w)=>sv.test(w),c0=(w)=>G0(w,yb),q5=(w)=>G0(w,fb),pv=(w)=>G0(w,wb),D5=(w)=>G0(w,bb),V5=(w)=>G0(w,vb),Dw=(w)=>G0(w,Xb,!0),d5=(w)=>G0(w,Jb,!0),D0=(w,v,b)=>{let y=nv.exec(w);if(y){if(y[1])return v(y[1]);return b(y[2])}return!1},G0=(w,v,b=!1)=>{let y=sv.exec(w);if(y){if(y[1])return v(y[1]);return b}return!1},wb=(w)=>w==="position"||w==="percentage",vb=(w)=>w==="image"||w==="url",bb=(w)=>w==="length"||w==="size"||w==="bg-size",yb=(w)=>w==="length",H5=(w)=>w==="number",fb=(w)=>w==="family-name",Jb=(w)=>w==="number"||w==="weight",Xb=(w)=>w==="shadow";var W5=()=>{let w=S("color"),v=S("font"),b=S("text"),y=S("font-weight"),J=S("tracking"),X=S("leading"),z=S("breakpoint"),Z=S("container"),Q=S("spacing"),Y=S("radius"),K=S("shadow"),D=S("inset-shadow"),$=S("text-shadow"),q=S("drop-shadow"),d=S("blur"),k=S("perspective"),F=S("aspect"),O=S("ease"),_=S("animate"),h=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...B(),W,H],I=()=>["auto","hidden","clip","visible","scroll"],o=()=>["auto","contain","none"],U=()=>[W,H,Q],M=()=>[$0,"full","auto",...U()],s=()=>[q0,"none","subgrid",W,H],v0=()=>["auto",{span:["full",q0,W,H]},q0,W,H],b0=()=>[q0,"auto",W,H],f0=()=>["auto","min","max","fr",W,H],A=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],T=()=>["start","end","center","stretch","center-safe","end-safe"],c=()=>["auto",...U()],H0=()=>[$0,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],kw=()=>[$0,"screen","full","dvw","lvw","svw","min","max","fit",...U()],Mw=()=>[$0,"screen","full","lh","dvh","lvh","svh","min","max","fit",...U()],E=()=>[w,W,H],Wv=()=>[...B(),pv,ov,{position:[W,H]}],Uv=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Bv=()=>["auto","cover","contain",D5,Q5,{size:[W,H]}],Gw=()=>[yv,c0,M0],t=()=>["","none","full",Y,W,H],n=()=>["",G,c0,M0],e0=()=>["solid","dashed","dotted","double"],Ev=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],m=()=>[G,yv,pv,ov],Fv=()=>["","none",d,W,H],ww=()=>["none",G,W,H],vw=()=>["none",G,W,H],hw=()=>[G,W,H],bw=()=>[$0,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[X0],breakpoint:[X0],color:[ev],container:[X0],"drop-shadow":[X0],ease:["in","out","in-out"],font:[Z5],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[X0],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[X0],shadow:[X0],spacing:["px",G],text:[X0],"text-shadow":[X0],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$0,H,W,F]}],container:["container"],columns:[{columns:[G,H,W,Z]}],"break-after":[{"break-after":h()}],"break-before":[{"break-before":h()}],"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:C()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:o()}],"overscroll-x":[{"overscroll-x":o()}],"overscroll-y":[{"overscroll-y":o()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[q0,"auto",W,H]}],basis:[{basis:[$0,"full","auto",Z,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[G,$0,"auto","initial","none",H]}],grow:[{grow:["",G,W,H]}],shrink:[{shrink:["",G,W,H]}],order:[{order:[q0,"first","last","none",W,H]}],"grid-cols":[{"grid-cols":s()}],"col-start-end":[{col:v0()}],"col-start":[{"col-start":b0()}],"col-end":[{"col-end":b0()}],"grid-rows":[{"grid-rows":s()}],"row-start-end":[{row:v0()}],"row-start":[{"row-start":b0()}],"row-end":[{"row-end":b0()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":f0()}],"auto-rows":[{"auto-rows":f0()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...A(),"normal"]}],"justify-items":[{"justify-items":[...T(),"normal"]}],"justify-self":[{"justify-self":["auto",...T()]}],"align-content":[{content:["normal",...A()]}],"align-items":[{items:[...T(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...T(),{baseline:["","last"]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...T(),"baseline"]}],"place-self":[{"place-self":["auto",...T()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pbs:[{pbs:U()}],pbe:[{pbe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:c()}],mx:[{mx:c()}],my:[{my:c()}],ms:[{ms:c()}],me:[{me:c()}],mbs:[{mbs:c()}],mbe:[{mbe:c()}],mt:[{mt:c()}],mr:[{mr:c()}],mb:[{mb:c()}],ml:[{ml:c()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:H0()}],"inline-size":[{inline:["auto",...kw()]}],"min-inline-size":[{"min-inline":["auto",...kw()]}],"max-inline-size":[{"max-inline":["none",...kw()]}],"block-size":[{block:["auto",...Mw()]}],"min-block-size":[{"min-block":["auto",...Mw()]}],"max-block-size":[{"max-block":["none",...Mw()]}],w:[{w:[Z,"screen",...H0()]}],"min-w":[{"min-w":[Z,"screen","none",...H0()]}],"max-w":[{"max-w":[Z,"screen","none","prose",{screen:[z]},...H0()]}],h:[{h:["screen","lh",...H0()]}],"min-h":[{"min-h":["screen","lh","none",...H0()]}],"max-h":[{"max-h":["screen","lh",...H0()]}],"font-size":[{text:["base",b,c0,M0]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[y,d5,Y5]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yv,H]}],"font-family":[{font:[q5,K5,v]}],"font-features":[{"font-features":[H]}],"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:[J,W,H]}],"line-clamp":[{"line-clamp":[G,"none",W,iv]}],leading:[{leading:[X,...U()]}],"list-image":[{"list-image":["none",W,H]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",W,H]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...e0(),"wavy"]}],"text-decoration-thickness":[{decoration:[G,"from-font","auto",W,M0]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[G,"auto",W,H]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W,H]}],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",W,H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Wv()}],"bg-repeat":[{bg:Uv()}],"bg-size":[{bg:Bv()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},q0,W,H],radial:["",W,H],conic:[q0,W,H]},V5,$5]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:Gw()}],"gradient-via-pos":[{via:Gw()}],"gradient-to-pos":[{to:Gw()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:t()}],"rounded-s":[{"rounded-s":t()}],"rounded-e":[{"rounded-e":t()}],"rounded-t":[{"rounded-t":t()}],"rounded-r":[{"rounded-r":t()}],"rounded-b":[{"rounded-b":t()}],"rounded-l":[{"rounded-l":t()}],"rounded-ss":[{"rounded-ss":t()}],"rounded-se":[{"rounded-se":t()}],"rounded-ee":[{"rounded-ee":t()}],"rounded-es":[{"rounded-es":t()}],"rounded-tl":[{"rounded-tl":t()}],"rounded-tr":[{"rounded-tr":t()}],"rounded-br":[{"rounded-br":t()}],"rounded-bl":[{"rounded-bl":t()}],"border-w":[{border:n()}],"border-w-x":[{"border-x":n()}],"border-w-y":[{"border-y":n()}],"border-w-s":[{"border-s":n()}],"border-w-e":[{"border-e":n()}],"border-w-bs":[{"border-bs":n()}],"border-w-be":[{"border-be":n()}],"border-w-t":[{"border-t":n()}],"border-w-r":[{"border-r":n()}],"border-w-b":[{"border-b":n()}],"border-w-l":[{"border-l":n()}],"divide-x":[{"divide-x":n()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":n()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...e0(),"hidden","none"]}],"divide-style":[{divide:[...e0(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-bs":[{"border-bs":E()}],"border-color-be":[{"border-be":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...e0(),"none","hidden"]}],"outline-offset":[{"outline-offset":[G,W,H]}],"outline-w":[{outline:["",G,c0,M0]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",K,Dw,qw]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",D,Dw,qw]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:n()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[G,M0]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":n()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",$,Dw,qw]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[G,W,H]}],"mix-blend":[{"mix-blend":[...Ev(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ev()}],"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":[G]}],"mask-image-linear-from-pos":[{"mask-linear-from":m()}],"mask-image-linear-to-pos":[{"mask-linear-to":m()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":m()}],"mask-image-t-to-pos":[{"mask-t-to":m()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":m()}],"mask-image-r-to-pos":[{"mask-r-to":m()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":m()}],"mask-image-b-to-pos":[{"mask-b-to":m()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":m()}],"mask-image-l-to-pos":[{"mask-l-to":m()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":m()}],"mask-image-x-to-pos":[{"mask-x-to":m()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":m()}],"mask-image-y-to-pos":[{"mask-y-to":m()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[W,H]}],"mask-image-radial-from-pos":[{"mask-radial-from":m()}],"mask-image-radial-to-pos":[{"mask-radial-to":m()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":B()}],"mask-image-conic-pos":[{"mask-conic":[G]}],"mask-image-conic-from-pos":[{"mask-conic-from":m()}],"mask-image-conic-to-pos":[{"mask-conic-to":m()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Wv()}],"mask-repeat":[{mask:Uv()}],"mask-size":[{mask:Bv()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",W,H]}],filter:[{filter:["","none",W,H]}],blur:[{blur:Fv()}],brightness:[{brightness:[G,W,H]}],contrast:[{contrast:[G,W,H]}],"drop-shadow":[{"drop-shadow":["","none",q,Dw,qw]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",G,W,H]}],"hue-rotate":[{"hue-rotate":[G,W,H]}],invert:[{invert:["",G,W,H]}],saturate:[{saturate:[G,W,H]}],sepia:[{sepia:["",G,W,H]}],"backdrop-filter":[{"backdrop-filter":["","none",W,H]}],"backdrop-blur":[{"backdrop-blur":Fv()}],"backdrop-brightness":[{"backdrop-brightness":[G,W,H]}],"backdrop-contrast":[{"backdrop-contrast":[G,W,H]}],"backdrop-grayscale":[{"backdrop-grayscale":["",G,W,H]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[G,W,H]}],"backdrop-invert":[{"backdrop-invert":["",G,W,H]}],"backdrop-opacity":[{"backdrop-opacity":[G,W,H]}],"backdrop-saturate":[{"backdrop-saturate":[G,W,H]}],"backdrop-sepia":[{"backdrop-sepia":["",G,W,H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",W,H]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[G,"initial",W,H]}],ease:[{ease:["linear","initial",O,W,H]}],delay:[{delay:[G,W,H]}],animate:[{animate:["none",_,W,H]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,W,H]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:ww()}],"rotate-x":[{"rotate-x":ww()}],"rotate-y":[{"rotate-y":ww()}],"rotate-z":[{"rotate-z":ww()}],scale:[{scale:vw()}],"scale-x":[{"scale-x":vw()}],"scale-y":[{"scale-y":vw()}],"scale-z":[{"scale-z":vw()}],"scale-3d":["scale-3d"],skew:[{skew:hw()}],"skew-x":[{"skew-x":hw()}],"skew-y":[{"skew-y":hw()}],transform:[{transform:[W,H,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:bw()}],"translate-x":[{"translate-x":bw()}],"translate-y":[{"translate-y":bw()}],"translate-z":[{"translate-z":bw()}],"translate-none":["translate-none"],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"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",W,H]}],"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":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mbs":[{"scroll-mbs":U()}],"scroll-mbe":[{"scroll-mbe":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pbs":[{"scroll-pbs":U()}],"scroll-pbe":[{"scroll-pbe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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",W,H]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[G,c0,M0,iv]}],stroke:[{stroke:["none",...E()]}],"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"]}};var zb=n1(W5);function u(...w){return zb(k0(w))}var Zb=(w)=>typeof w==="boolean"?`${w}`:w===0?"0":w,Qb=k0,Vw=(w,v)=>(b)=>{var y;if((v===null||v===void 0?void 0:v.variants)==null)return Qb(w,b===null||b===void 0?void 0:b.class,b===null||b===void 0?void 0:b.className);let{variants:J,defaultVariants:X}=v,z=Object.keys(J).map((Y)=>{let K=b===null||b===void 0?void 0:b[Y],D=X===null||X===void 0?void 0:X[Y];if(K===null)return null;let $=Zb(K)||Zb(D);return J[Y][$]}),Z=b&&Object.entries(b).reduce((Y,K)=>{let[D,$]=K;if($===void 0)return Y;return Y[D]=$,Y},{}),Q=v===null||v===void 0?void 0:(y=v.compoundVariants)===null||y===void 0?void 0:y.reduce((Y,K)=>{let{class:D,className:$,...q}=K;return Object.entries(q).every((d)=>{let[k,F]=d;return Array.isArray(F)?F.includes({...X,...Z}[k]):{...X,...Z}[k]===F})?[...Y,D,$]:Y},[]);return Qb(w,z,Q,b===null||b===void 0?void 0:b.class,b===null||b===void 0?void 0:b.className)};var U5=Vw('inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*="size-"])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer',{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function w0({class:w,variant:v,size:b,...y}){return f("button",{"data-slot":"button",class:u(U5({variant:v,size:b,className:w})),...y})}var B5=[{path:"/",label:"\uD83C\uDFE0 Home"},{path:"/health",label:"\uD83C\uDFE5 Health"},{path:"/settings",label:"⚙️ Settings"}];function E5(){document.dispatchEvent(new KeyboardEvent("keydown",{key:"k",metaKey:!0}))}function Yb(){let{url:w}=O0();return f("nav",{class:"bg-card border-b border-border",children:f("div",{class:"max-w-7xl mx-auto px-4",children:f("div",{class:"flex items-center justify-between h-14",children:[f("div",{class:"flex items-center space-x-4",children:[f("span",{class:"text-xl font-bold text-primary",children:"⚡ Dotfiles"}),f("div",{class:"flex space-x-1",children:B5.map((v)=>{let b=w===v.path||v.path!=="/"&&w.startsWith(v.path);return f(w0,{variant:b?"secondary":"ghost",size:"sm",asChild:!0,children:f("a",{href:v.path,class:u(b&&"pointer-events-none"),children:v.label})},v.path)})})]}),f("div",{class:"flex items-center space-x-4",children:f("button",{onClick:E5,class:"flex items-center gap-2 px-3 py-1.5 text-sm text-muted-foreground bg-input border border-border rounded-md hover:bg-accent transition-colors",children:[f(E0,{class:"w-4 h-4"}),f("span",{children:"Search..."}),f("kbd",{class:"text-xs bg-muted px-1.5 py-0.5 rounded",children:"⌘K"})]})})]})})})}function P0({class:w,...v}){return f("div",{"data-slot":"card",class:u("bg-card text-card-foreground flex flex-col gap-2 rounded-xl border py-6 shadow-sm",w),...v})}function Kb({class:w,...v}){return f("div",{"data-slot":"card-header",class:u("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",w),...v})}function $b({class:w,...v}){return f("div",{"data-slot":"card-title",class:u("text-lg leading-none font-bold",w),...v})}function x0({class:w,...v}){return f("div",{"data-slot":"card-content",class:u("px-6",w),...v})}function P({title:w,icon:v,action:b,children:y,class:J,contentClass:X}){return f(P0,{class:J,children:[f(Kb,{class:"pb-2",children:f("div",{class:"flex items-center justify-between",children:[f($b,{class:"flex items-center gap-2 text-lg font-semibold",children:[v,w]}),b]})}),f(x0,{class:X,children:y})]})}function F5(w){switch(w){case"pass":return f(Kw,{class:"h-4 w-4"});case"warn":return f(vv,{class:"h-4 w-4"});case"fail":return f(Lw,{class:"h-4 w-4"});default:return f(Kw,{class:"h-4 w-4"})}}function k5({check:w}){return f(P,{title:w.name,icon:F5(w.status),children:[w.message&&f("p",{class:"text-sm font-bold text-foreground",children:w.message}),(w.details?.length||0)>0&&f("ul",{class:"text-xs text-muted-foreground/70 mt-2 ml-4 space-y-1 list-disc",children:w.details?.map((v,b)=>f("li",{children:v},b))})]})}function qb(){let{data:w,loading:v}=j("/health");if(v)return f("div",{class:"flex items-center justify-center h-64",children:f("div",{class:"text-muted-foreground",children:"Loading..."})});return f("div",{class:"space-y-6",children:[f("div",{class:"flex items-center space-x-2",children:[f(uw,{class:"h-6 w-6"}),f("h1",{class:"text-2xl font-bold",children:"Health Checks"})]}),f(P0,{class:"text-center",children:f(x0,{class:"pt-6",children:[f("div",{class:`w-4 h-4 rounded-full mx-auto mb-4 ${{healthy:"bg-green-500",warning:"bg-amber-500",unhealthy:"bg-red-500"}[w?.overall||"healthy"]}`}),f("h2",{class:"text-2xl font-bold capitalize",children:w?.overall||"Unknown"}),f("p",{class:"text-muted-foreground text-sm mt-2",children:["Last check: ",w?.lastCheck?new Date(w.lastCheck).toLocaleString():"Never"]})]})}),f("div",{class:"space-y-4",children:w?.checks?.map((y,J)=>f(k5,{check:y},J))||f("div",{class:"text-muted-foreground",children:"No checks available"})})]})}function Db(){return f("div",{class:"text-center py-8",children:[f("h1",{class:"text-2xl font-bold mb-4",children:"404 - Not Found"}),f(w0,{variant:"link",asChild:!0,children:f("a",{href:"/",children:"Go to Dashboard"})})]})}function Vb(){let{data:w,loading:v}=j("/config");if(v)return f("div",{class:"flex items-center justify-center h-64",children:f("div",{class:"text-muted-foreground",children:"Loading..."})});let b=[{label:"Dotfiles Directory",value:w?.dotfilesDir},{label:"Generated Directory",value:w?.generatedDir},{label:"Binaries Directory",value:w?.binariesDir},{label:"Target Directory",value:w?.targetDir},{label:"Tool Configs Directory",value:w?.toolConfigsDir}];return f("div",{class:"space-y-6",children:f(P,{title:"Project Paths",icon:f(lw,{class:"h-4 w-4"}),children:f("div",{class:"space-y-4",children:b.map((y,J)=>f("div",{children:[f("div",{class:"text-sm text-muted-foreground mb-1",children:y.label}),f("code",{class:"text-sm bg-muted px-3 py-2 rounded block overflow-x-auto",children:y.value||"Not configured"})]},J))})})})}var M5=Vw("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-green-500/20 text-green-500 border-green-500/30",warning:"border-transparent bg-yellow-500/20 text-yellow-400 border-yellow-500/30",error:"border-transparent bg-red-500 text-white"}},defaultVariants:{variant:"default"}});function V0({class:w,variant:v,...b}){return f("div",{class:u(M5({variant:v}),w),...b})}var G5={"github-release":f(_0,{class:"h-3 w-3"}),"github-release:cli":f(_0,{class:"h-3 w-3"}),homebrew:f(K0,{class:"h-3 w-3"}),brew:f(K0,{class:"h-3 w-3"}),cargo:f(Nw,{class:"h-3 w-3"}),"curl-tar":f(m0,{class:"h-3 w-3"}),"curl-script":f(y0,{class:"h-3 w-3"}),"zsh-plugin":f(ew,{class:"h-3 w-3"}),manual:f(bv,{class:"h-3 w-3"})};function a0({method:w,ghCli:v}){let b=w==="github-release"&&v?"github-release:cli":w,y=G5[b]||f(K0,{class:"h-3 w-3"});return f(V0,{variant:"outline",class:"gap-1",children:[y,b]})}function dw({href:w,children:v}){return f(w0,{variant:"outline",size:"sm",asChild:!0,children:f("a",{href:w,target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-1.5 whitespace-nowrap",children:[f(l0,{class:"h-4 w-4"}),v]})})}function Ub(w,v,b=!1){if(!w)return w;if(w.startsWith("http://")||w.startsWith("https://")||w.startsWith("//"))return w;if(w.startsWith("#"))return w;let y=w.startsWith("./")?w.slice(2):w;return`https://github.com/${v}/${b?"raw":"blob"}/HEAD/${y}`}function h5(w){return{a:({href:v,children:b,...y})=>{let J=typeof v==="string"?v:void 0,X=Ub(J,w,!1),z=J?.startsWith("#");return f("a",{...y,href:X,target:z?void 0:"_blank",rel:z?void 0:"noopener noreferrer",children:b})},img:({src:v,alt:b,...y})=>{return f("img",{...y,src:Ub(typeof v==="string"?v:void 0,w,!0),alt:b})}}}function Bb({toolName:w,repo:v}){let{data:b,loading:y,error:J}=j(`/tools/${encodeURIComponent(w)}/readme`,[w]);if(y)return f(P,{title:"README",icon:f(j0,{class:"h-4 w-4"}),children:f("div",{class:"text-muted-foreground text-center py-8",children:"Loading README..."})});if(J||!b?.content)return f(P,{title:"README",icon:f(j0,{class:"h-4 w-4"}),children:f("div",{class:"text-muted-foreground text-center py-8",children:[f("p",{class:"mb-2",children:"README not available"}),f("a",{href:`https://github.com/${v}#readme`,target:"_blank",rel:"noopener noreferrer",class:"text-sm text-blue-500 hover:underline inline-flex items-center gap-1",children:["View on GitHub ",f(l0,{class:"h-3 w-3"})]})]})});return f(P,{title:"README",icon:f(j0,{class:"h-4 w-4"}),action:f(dw,{href:`https://github.com/${v}#readme`,children:"View on GitHub"}),children:f("div",{class:"markdown-body p-4 text-lg",children:f(db,{remarkPlugins:[Wb],rehypePlugins:[Hb],components:h5(v),children:b.content})})})}function Eb({status:w}){switch(w){case"installed":return f(V0,{variant:"success",children:"✓ Installed"});case"not-installed":return f(V0,{variant:"error",children:"Not Installed"});case"error":return f(V0,{variant:"error",children:"Error"})}}var A5={writeFile:f(Sw,{class:"h-4 w-4"}),chmod:f(sw,{class:"h-4 w-4"}),rm:f(wv,{class:"h-4 w-4"}),mkdir:f(iw,{class:"h-4 w-4"}),symlink:f(u0,{class:"h-4 w-4"}),rename:f(Y0,{class:"h-4 w-4"}),cp:f(Cw,{class:"h-4 w-4"})},O5={writeFile:"Created",chmod:"Permissions",rm:"Removed",mkdir:"Directory",symlink:"Linked",rename:"Renamed",cp:"Copied"};function _5(w,v){if(w.startsWith(v))return`<dotfiles>${w.slice(v.length)}`;return w}function Fb({entries:w,installedAt:v,dotfilesDir:b}){if(w.length===0&&!v)return f("div",{class:"text-muted-foreground text-center py-4",children:"No history recorded"});return f("div",{class:"space-y-4",children:[v&&f("div",{class:"flex items-center gap-3 p-3 rounded-lg bg-muted/50",children:[f("div",{class:"flex items-center justify-center w-8 h-8 rounded-full bg-green-500/20 text-green-500",children:f(S0,{class:"h-4 w-4"})}),f("div",{children:[f("div",{class:"font-medium",children:"Installed"}),f("div",{class:"text-sm text-muted-foreground",children:new Date(v).toLocaleString()})]})]}),w.length>0&&f("div",{class:"relative",children:[f("div",{class:"absolute left-4 top-0 bottom-0 w-px bg-border"}),f("div",{class:"space-y-3",children:w.map((y)=>f("div",{class:"relative flex items-start gap-3 pl-8",children:[f("div",{class:"absolute left-2 top-1 flex items-center justify-center w-4 h-4 rounded-full bg-background border border-border",children:f("div",{class:"w-2 h-2 rounded-full bg-muted-foreground"})}),f("div",{class:"flex-1 min-w-0",children:[f("div",{class:"flex items-center gap-2",children:[f("span",{class:"text-muted-foreground",children:A5[y.operationType]||f(Y0,{class:"h-4 w-4"})}),f("span",{class:"font-medium",children:O5[y.operationType]||y.operationType}),f("span",{class:"text-xs text-muted-foreground ml-auto",children:y.relativeTime})]}),f("div",{class:"text-sm text-muted-foreground truncate mt-1",title:y.filePath,children:_5(y.filePath,b)})]})]},y.id))})]})]})}function rb(w,v){for(var b in v)w[b]=v[b];return w}function kb(w,v){for(var b in w)if(b!=="__source"&&!(b in v))return!0;for(var y in v)if(y!=="__source"&&w[y]!==v[y])return!0;return!1}function Mb(w,v){this.props=w,this.context=v}(Mb.prototype=new h0).isPureReactComponent=!0,Mb.prototype.shouldComponentUpdate=function(w,v){return kb(this.props,w)||kb(this.state,v)};var Gb=x.__b;x.__b=function(w){w.type&&w.type.__f&&w.ref&&(w.props.ref=w.ref,w.ref=null),Gb&&Gb(w)};var x5=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Nb(w){function v(b){var y=rb({},b);return delete y.ref,w(y,b.ref||null)}return v.$$typeof=x5,v.render=w,v.prototype.isReactComponent=v.__f=!0,v.displayName="ForwardRef("+(w.displayName||w.name)+")",v}var r5=x.__e;x.__e=function(w,v,b,y){if(w.then){for(var J,X=v;X=X.__;)if((J=X.__c)&&J.__c)return v.__e==null&&(v.__e=b.__e,v.__k=b.__k),J.__c(w,v)}r5(w,v,b,y)};var hb=x.unmount;function Ib(w,v,b){return w&&(w.__c&&w.__c.__H&&(w.__c.__H.__.forEach(function(y){typeof y.__c=="function"&&y.__c()}),w.__c.__H=null),(w=rb({},w)).__c!=null&&(w.__c.__P===b&&(w.__c.__P=v),w.__c.__e=!0,w.__c=null),w.__k=w.__k&&w.__k.map(function(y){return Ib(y,v,b)})),w}function Rb(w,v,b){return w&&b&&(w.__v=null,w.__k=w.__k&&w.__k.map(function(y){return Rb(y,v,b)}),w.__c&&w.__c.__P===v&&(w.__e&&b.appendChild(w.__e),w.__c.__e=!0,w.__c.__P=b)),w}function Xv(){this.__u=0,this.o=null,this.__b=null}function Tb(w){if(!w.__)return null;var v=w.__.__c;return v&&v.__a&&v.__a(w)}function Hw(){this.i=null,this.l=null}x.unmount=function(w){var v=w.__c;v&&(v.__z=!0),v&&v.__R&&v.__R(),v&&32&w.__u&&(w.type=null),hb&&hb(w)},(Xv.prototype=new h0).__c=function(w,v){var b=v.__c,y=this;y.o==null&&(y.o=[]),y.o.push(b);var J=Tb(y.__v),X=!1,z=function(){X||y.__z||(X=!0,b.__R=null,J?J(Q):Q())};b.__R=z;var Z=b.__P;b.__P=null;var Q=function(){if(!--y.__u){if(y.state.__a){var Y=y.state.__a;y.__v.__k[0]=Rb(Y,Y.__c.__P,Y.__c.__O)}var K;for(y.setState({__a:y.__b=null});K=y.o.pop();)K.__P=Z,K.forceUpdate()}};y.__u++||32&v.__u||y.setState({__a:y.__b=y.__v.__k[0]}),w.then(z,z)},Xv.prototype.componentWillUnmount=function(){this.o=[]},Xv.prototype.render=function(w,v){if(this.__b){if(this.__v.__k){var b=document.createElement("div"),y=this.__v.__k[0].__c;this.__v.__k[0]=Ib(this.__b,b,y.__O=y.__P)}this.__b=null}var J=v.__a&&p(J0,null,w.fallback);return J&&(J.__u&=-33),[p(J0,null,v.__a?null:w.children),J]};var Ab=function(w,v,b){if(++b[1]===b[0]&&w.l.delete(v),w.props.revealOrder&&(w.props.revealOrder[0]!=="t"||!w.l.size))for(b=w.i;b;){for(;b.length>3;)b.pop()();if(b[1]<b[0])break;w.i=b=b[2]}};(Hw.prototype=new h0).__a=function(w){var v=this,b=Tb(v.__v),y=v.l.get(w);return y[0]++,function(J){var X=function(){v.props.revealOrder?(y.push(J),Ab(v,w,y)):J()};b?b(X):X()}},Hw.prototype.render=function(w){this.i=null,this.l=new Map;var v=Q0(w.children);w.revealOrder&&w.revealOrder[0]==="b"&&v.reverse();for(var b=v.length;b--;)this.l.set(v[b],this.i=[1,0,this.i]);return w.children},Hw.prototype.componentDidUpdate=Hw.prototype.componentDidMount=function(){var w=this;this.l.forEach(function(v,b){Ab(w,b,v)})};var N5=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,I5=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,R5=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,T5=/[A-Z0-9]/g,L5=typeof document<"u",C5=function(w){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(w)};h0.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(w){Object.defineProperty(h0.prototype,w,{configurable:!0,get:function(){return this["UNSAFE_"+w]},set:function(v){Object.defineProperty(this,w,{configurable:!0,writable:!0,value:v})}})});var Ob=x.event;function j5(){}function S5(){return this.cancelBubble}function g5(){return this.defaultPrevented}x.event=function(w){return Ob&&(w=Ob(w)),w.persist=j5,w.isPropagationStopped=S5,w.isDefaultPrevented=g5,w.nativeEvent=w};var Lb,m5={enumerable:!1,configurable:!0,get:function(){return this.class}},_b=x.vnode;x.vnode=function(w){typeof w.type=="string"&&function(v){var{props:b,type:y}=v,J={},X=y.indexOf("-")===-1;for(var z in b){var Z=b[z];if(!(z==="value"&&("defaultValue"in b)&&Z==null||L5&&z==="children"&&y==="noscript"||z==="class"||z==="className")){var Q=z.toLowerCase();z==="defaultValue"&&"value"in b&&b.value==null?z="value":z==="download"&&Z===!0?Z="":Q==="translate"&&Z==="no"?Z=!1:Q[0]==="o"&&Q[1]==="n"?Q==="ondoubleclick"?z="ondblclick":Q!=="onchange"||y!=="input"&&y!=="textarea"||C5(b.type)?Q==="onfocus"?z="onfocusin":Q==="onblur"?z="onfocusout":R5.test(z)&&(z=Q):Q=z="oninput":X&&I5.test(z)?z=z.replace(T5,"-$&").toLowerCase():Z===null&&(Z=void 0),Q==="oninput"&&J[z=Q]&&(z="oninputCapture"),J[z]=Z}}y=="select"&&J.multiple&&Array.isArray(J.value)&&(J.value=Q0(b.children).forEach(function(Y){Y.props.selected=J.value.indexOf(Y.props.value)!=-1})),y=="select"&&J.defaultValue!=null&&(J.value=Q0(b.children).forEach(function(Y){Y.props.selected=J.multiple?J.defaultValue.indexOf(Y.props.value)!=-1:J.defaultValue==Y.props.value})),b.class&&!b.className?(J.class=b.class,Object.defineProperty(J,"className",m5)):b.className&&(J.class=J.className=b.className),v.props=J}(w),w.$$typeof=N5,_b&&_b(w)};var Pb=x.__r;x.__r=function(w){Pb&&Pb(w),Lb=w.__c};var xb=x.diffed;x.diffed=function(w){xb&&xb(w);var{props:v,__e:b}=w;b!=null&&w.type==="textarea"&&"value"in v&&v.value!==b.value&&(b.value=v.value==null?"":v.value),Lb=null};var jb=Object.prototype.hasOwnProperty;function Sb(w,v,b){for(b of w.keys())if(r0(b,v))return b}function r0(w,v){var b,y,J;if(w===v)return!0;if(w&&v&&(b=w.constructor)===v.constructor){if(b===Date)return w.getTime()===v.getTime();if(b===RegExp)return w.toString()===v.toString();if(b===Array){if((y=w.length)===v.length)while(y--&&r0(w[y],v[y]));return y===-1}if(b===Set){if(w.size!==v.size)return!1;for(y of w){if(J=y,J&&typeof J==="object"){if(J=Sb(v,J),!J)return!1}if(!v.has(J))return!1}return!0}if(b===Map){if(w.size!==v.size)return!1;for(y of w){if(J=y[0],J&&typeof J==="object"){if(J=Sb(v,J),!J)return!1}if(!r0(y[1],v.get(J)))return!1}return!0}if(b===ArrayBuffer)w=new Uint8Array(w),v=new Uint8Array(v);else if(b===DataView){if((y=w.byteLength)===v.byteLength)while(y--&&w.getInt8(y)===v.getInt8(y));return y===-1}if(ArrayBuffer.isView(w)){if((y=w.byteLength)===v.byteLength)while(y--&&w[y]===v[y]);return y===-1}if(!b||typeof w==="object"){y=0;for(b in w){if(jb.call(w,b)&&++y&&!jb.call(v,b))return!1;if(!(b in v)||!r0(w[b],v[b]))return!1}return Object.keys(v).length===y}}return w!==w&&v!==v}var zv=(w)=>{let v=l(w),b=l(0);if(typeof w!=="object"||w===null){if(w!==v.current)v.current=w,b.current+=1;return[w,b.current]}if(w!==v.current){if(!r0(w,v.current))v.current=w,b.current+=1}return[v.current,b.current]},i5=(w,v,b)=>{let y=Date.now();clearTimeout(v.current.timeoutId);let J=Math.max(0,v.current.nextAllowedTime-y);v.current.timeoutId=setTimeout(()=>{w().catch(console.error),v.current.nextAllowedTime=y+b},J)},lb=(w,v,b)=>{let y=v?Array.isArray(v)?v:[v]:[];if(w==null||typeof w==="string"&&!w.trim())return{languageId:"plaintext",displayLanguageId:"plaintext",langsToLoad:void 0};if(typeof w==="object")return{languageId:w.name,displayLanguageId:w.name||null,langsToLoad:w};let J=w.toLowerCase(),X=(Z)=>Z?.toLowerCase()===J,z=y.find((Z)=>X(Z.name)||X(Z.scopeName)||X(Z.scopeName?.split(".").pop())||Z.aliases?.some(X)||Z.fileTypes?.some(X));if(z)return{languageId:z.name||w,displayLanguageId:w,langsToLoad:z};if(b?.[w])return{languageId:b[w],displayLanguageId:w,langsToLoad:b[w]};return{languageId:w,displayLanguageId:w,langsToLoad:w}},gb=(w)=>typeof w==="object"&&w!==null&&("tokenColors"in w)&&Array.isArray(w.tokenColors);function o5(w){let v=gb(w),b=typeof w==="object"&&w!==null&&!v,y=typeof w==="object"&&w!==null&&!v&&Object.entries(w).some(([J,X])=>J&&X&&J.trim()!==""&&X!==""&&(typeof X==="string"||gb(X)));if(b)return{isMultiTheme:!0,themeId:y?`multi-${Object.values(w).map((X)=>(typeof X==="string"?X:X?.name)||"custom").sort().join("-")}`:"multi-default",multiTheme:y?w:null,themesToLoad:y?Object.values(w):[]};return{isMultiTheme:!1,themeId:typeof w==="string"?w:w?.name||"custom",singleTheme:w,themesToLoad:[w]}}function p5(w=1){return{name:"react-shiki:line-numbers",code(v){if(this.addClassToHast(v,"has-line-numbers"),w!==1){let b=v.properties?.style||"",y=b?`${b}; --line-start: ${w}`:`--line-start: ${w}`;v.properties={...v.properties,style:y}}},line(v){return this.addClassToHast(v,"line-numbers"),v}}}var mb={light:"github-light",dark:"github-dark"},ib=(w,v,b,y={},J)=>{let[X,z]=R(null),[Z,Q]=zv(v),[Y,K]=zv(b),[D,$]=zv(y),{languageId:q,langsToLoad:d}=a(()=>lb(Z,D.customLanguages,D.langAlias),[Z,D.customLanguages,D.langAlias]),{isMultiTheme:k,themeId:F,multiTheme:O,singleTheme:_,themesToLoad:h}=a(()=>o5(Y),[Y]),B=l({nextAllowedTime:0,timeoutId:void 0}),C=a(()=>{let I={lang:q},{defaultColor:o,cssVariablePrefix:U,showLineNumbers:M,startingLineNumber:s,...v0}=D,b0=k?{themes:O||mb,defaultColor:o,cssVariablePrefix:U}:{theme:_||mb.dark},f0=v0.transformers||[];if(M)f0.push(p5(s));return{...I,...b0,...v0,transformers:f0}},[q,F,Q,K,$]);return z0(()=>{let I=!0,o=async()=>{if(!q)return;let M=D.highlighter?D.highlighter:await J(d,h,D.engine),v0=M.getLoadedLanguages().includes(q)?q:"plaintext",b0={...C,lang:v0};if(I){let f0=D.outputFormat==="html"?M.codeToHtml(w,b0):Cb(M.codeToHast(w,b0),{jsx:f,jsxs:f,Fragment:J0});z(f0)}},{delay:U}=D;if(U)i5(o,B,U);else o().catch(console.error);return()=>{I=!1,clearTimeout(B.current.timeoutId)}},[w,C,D.delay,D.highlighter,d,h]),X};function u5(w,{insertAt:v}={}){if(!w||typeof document>"u")return;let b=document.head||document.getElementsByTagName("head")[0],y=document.createElement("style");if(y.type="text/css",v==="top")if(b.firstChild)b.insertBefore(y,b.firstChild);else b.appendChild(y);else b.appendChild(y);if(y.styleSheet)y.styleSheet.cssText=w;else y.appendChild(document.createTextNode(w))}u5(`.relative {
2
- position: relative;
3
- }
4
- .defaultStyles pre {
5
- overflow: auto;
6
- border-radius: 0.5rem;
7
- padding-left: 1.5rem;
8
- padding-right: 1.5rem;
9
- padding-top: 1.25rem;
10
- padding-bottom: 1.25rem;
11
- }
12
- .languageLabel {
13
- position: absolute;
14
- right: 0.75rem;
15
- top: 0.5rem;
16
- font-family: monospace;
17
- font-size: 0.75rem;
18
- letter-spacing: -0.05em;
19
- color: rgba(107, 114, 128, 0.85);
20
- }
21
- .line-numbers::before {
22
- counter-increment: line-number;
23
- content: counter(line-number);
24
- display: inline-flex;
25
- justify-content: flex-end;
26
- align-items: flex-start;
27
- box-sizing: content-box;
28
- min-width: var(--line-numbers-width, 2ch);
29
- padding-left: var(--line-numbers-padding-left, 2ch);
30
- padding-right: var(--line-numbers-padding-right, 2ch);
31
- color: var(--line-numbers-foreground, rgba(107, 114, 128, 0.6));
32
- font-size: var(--line-numbers-font-size, inherit);
33
- font-weight: var(--line-numbers-font-weight, inherit);
34
- line-height: var(--line-numbers-line-height, inherit);
35
- font-family: var(--line-numbers-font-family, inherit);
36
- opacity: var(--line-numbers-opacity, 1);
37
- user-select: none;
38
- pointer-events: none;
39
- }
40
- .has-line-numbers {
41
- counter-reset: line-number calc(var(--line-start, 1) - 1);
42
- --line-numbers-foreground: rgba(107, 114, 128, 0.5);
43
- --line-numbers-width: 2ch;
44
- --line-numbers-padding-left: 0ch;
45
- --line-numbers-padding-right: 2ch;
46
- --line-numbers-font-size: inherit;
47
- --line-numbers-font-weight: inherit;
48
- --line-numbers-line-height: inherit;
49
- --line-numbers-font-family: inherit;
50
- --line-numbers-opacity: 1;
51
- }
52
- `);var ob=(w)=>{return Nb(({language:v,theme:b,delay:y,transformers:J,defaultColor:X,cssVariablePrefix:z,addDefaultStyles:Z=!0,style:Q,langStyle:Y,className:K,langClassName:D,showLanguage:$=!0,showLineNumbers:q=!1,startingLineNumber:d=1,children:k,as:F="pre",customLanguages:O,..._},h)=>{let B={delay:y,transformers:J,customLanguages:O,showLineNumbers:q,defaultColor:X,cssVariablePrefix:z,startingLineNumber:d,..._},{displayLanguageId:C}=lb(v,O),I=w(k,v,b,B),o=typeof I==="string";return f(F,{ref:h,"data-testid":"shiki-container",className:k0("relative","not-prose",Z&&"defaultStyles",K),style:Q,id:"shiki-container",children:[$&&C?f("span",{className:k0("languageLabel",D),style:Y,id:"language-label",children:C}):null,o?f("div",{dangerouslySetInnerHTML:{__html:I}}):I]})})};function ub(w,v){if(w<v)return-1;if(w>v)return 1;return 0}function cb(w,v){if(w===null&&v===null)return 0;if(!w)return-1;if(!v)return 1;let b=w.length,y=v.length;if(b===y){for(let J=0;J<b;J++){let X=ub(w[J],v[J]);if(X!==0)return X}return 0}return b-y}function pb(w){if(/^#[0-9a-f]{6}$/i.test(w))return!0;if(/^#[0-9a-f]{8}$/i.test(w))return!0;if(/^#[0-9a-f]{3}$/i.test(w))return!0;if(/^#[0-9a-f]{4}$/i.test(w))return!0;return!1}function c5(w){return w.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var ab=class{constructor(w){this.fn=w}cache=new Map;get(w){if(this.cache.has(w))return this.cache.get(w);let v=this.fn(w);return this.cache.set(w,v),v}},tb=class{constructor(w,v,b){this._colorMap=w,this._defaults=v,this._root=b}static createFromRawTheme(w,v){return this.createFromParsedTheme(n5(w),v)}static createFromParsedTheme(w,v){return e5(w,v)}_cachedMatchRoot=new ab((w)=>this._root.match(w));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(w){if(w===null)return this._defaults;let v=w.scopeName,y=this._cachedMatchRoot.get(v).find((J)=>a5(w.parent,J.parentScopes));if(!y)return null;return new nb(y.fontStyle,y.foreground,y.background)}},Zv=class w{constructor(v,b){this.parent=v,this.scopeName=b}static push(v,b){for(let y of b)v=new w(v,y);return v}static from(...v){let b=null;for(let y=0;y<v.length;y++)b=new w(b,v[y]);return b}push(v){return new w(this,v)}getSegments(){let v=this,b=[];while(v)b.push(v.scopeName),v=v.parent;return b.reverse(),b}toString(){return this.getSegments().join(" ")}extends(v){if(this===v)return!0;if(this.parent===null)return!1;return this.parent.extends(v)}getExtensionIfDefined(v){let b=[],y=this;while(y&&y!==v)b.push(y.scopeName),y=y.parent;return y===v?b.reverse():void 0}};function a5(w,v){if(v.length===0)return!0;for(let b=0;b<v.length;b++){let y=v[b],J=!1;if(y===">"){if(b===v.length-1)return!1;y=v[++b],J=!0}while(w){if(t5(w.scopeName,y))break;if(J)return!1;w=w.parent}if(!w)return!1;w=w.parent}return!0}function t5(w,v){return v===w||w.startsWith(v)&&w[v.length]==="."}var nb=class{constructor(w,v,b){this.fontStyle=w,this.foregroundId=v,this.backgroundId=b}};function n5(w){if(!w)return[];if(!w.settings||!Array.isArray(w.settings))return[];let v=w.settings,b=[],y=0;for(let J=0,X=v.length;J<X;J++){let z=v[J];if(!z.settings)continue;let Z;if(typeof z.scope==="string"){let D=z.scope;D=D.replace(/^[,]+/,""),D=D.replace(/[,]+$/,""),Z=D.split(",")}else if(Array.isArray(z.scope))Z=z.scope;else Z=[""];let Q=-1;if(typeof z.settings.fontStyle==="string"){Q=0;let D=z.settings.fontStyle.split(" ");for(let $=0,q=D.length;$<q;$++)switch(D[$]){case"italic":Q=Q|1;break;case"bold":Q=Q|2;break;case"underline":Q=Q|4;break;case"strikethrough":Q=Q|8;break}}let Y=null;if(typeof z.settings.foreground==="string"&&pb(z.settings.foreground))Y=z.settings.foreground;let K=null;if(typeof z.settings.background==="string"&&pb(z.settings.background))K=z.settings.background;for(let D=0,$=Z.length;D<$;D++){let d=Z[D].trim().split(" "),k=d[d.length-1],F=null;if(d.length>1)F=d.slice(0,d.length-1),F.reverse();b[y++]=new s5(k,F,J,Q,Y,K)}}return b}var s5=class{constructor(w,v,b,y,J,X){this.scope=w,this.parentScopes=v,this.index=b,this.fontStyle=y,this.foreground=J,this.background=X}};function e5(w,v){w.sort((Q,Y)=>{let K=ub(Q.scope,Y.scope);if(K!==0)return K;if(K=cb(Q.parentScopes,Y.parentScopes),K!==0)return K;return Q.index-Y.index});let b=0,y="#000000",J="#ffffff";while(w.length>=1&&w[0].scope===""){let Q=w.shift();if(Q.fontStyle!==-1)b=Q.fontStyle;if(Q.foreground!==null)y=Q.foreground;if(Q.background!==null)J=Q.background}let X=new wy(v),z=new nb(b,X.getId(y),X.getId(J)),Z=new by(new Kv(0,null,-1,0,0),[]);for(let Q=0,Y=w.length;Q<Y;Q++){let K=w[Q];Z.insert(0,K.scope,K.parentScopes,K.fontStyle,X.getId(K.foreground),X.getId(K.background))}return new tb(X,z,Z)}var wy=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(w){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(w)){this._isFrozen=!0;for(let v=0,b=w.length;v<b;v++)this._color2id[w[v]]=v,this._id2color[v]=w[v]}else this._isFrozen=!1}getId(w){if(w===null)return 0;w=w.toUpperCase();let v=this._color2id[w];if(v)return v;if(this._isFrozen)throw Error(`Missing color in color map - ${w}`);return v=++this._lastColorId,this._color2id[w]=v,this._id2color[v]=w,v}getColorMap(){return this._id2color.slice(0)}},vy=Object.freeze([]),Kv=class w{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(v,b,y,J,X){this.scopeDepth=v,this.parentScopes=b||vy,this.fontStyle=y,this.foreground=J,this.background=X}clone(){return new w(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(v){let b=[];for(let y=0,J=v.length;y<J;y++)b[y]=v[y].clone();return b}acceptOverwrite(v,b,y,J){if(this.scopeDepth>v)console.log("how did this happen?");else this.scopeDepth=v;if(b!==-1)this.fontStyle=b;if(y!==0)this.foreground=y;if(J!==0)this.background=J}},by=class w{constructor(v,b=[],y={}){this._mainRule=v,this._children=y,this._rulesWithParentScopes=b}_rulesWithParentScopes;static _cmpBySpecificity(v,b){if(v.scopeDepth!==b.scopeDepth)return b.scopeDepth-v.scopeDepth;let y=0,J=0;while(!0){if(v.parentScopes[y]===">")y++;if(b.parentScopes[J]===">")J++;if(y>=v.parentScopes.length||J>=b.parentScopes.length)break;let X=b.parentScopes[J].length-v.parentScopes[y].length;if(X!==0)return X;y++,J++}return b.parentScopes.length-v.parentScopes.length}match(v){if(v!==""){let y=v.indexOf("."),J,X;if(y===-1)J=v,X="";else J=v.substring(0,y),X=v.substring(y+1);if(this._children.hasOwnProperty(J))return this._children[J].match(X)}let b=this._rulesWithParentScopes.concat(this._mainRule);return b.sort(w._cmpBySpecificity),b}insert(v,b,y,J,X,z){if(b===""){this._doInsertHere(v,y,J,X,z);return}let Z=b.indexOf("."),Q,Y;if(Z===-1)Q=b,Y="";else Q=b.substring(0,Z),Y=b.substring(Z+1);let K;if(this._children.hasOwnProperty(Q))K=this._children[Q];else K=new w(this._mainRule.clone(),Kv.cloneArr(this._rulesWithParentScopes)),this._children[Q]=K;K.insert(v+1,Y,y,J,X,z)}_doInsertHere(v,b,y,J,X){if(b===null){this._mainRule.acceptOverwrite(v,y,J,X);return}for(let z=0,Z=this._rulesWithParentScopes.length;z<Z;z++){let Q=this._rulesWithParentScopes[z];if(cb(Q.parentScopes,b)===0){Q.acceptOverwrite(v,y,J,X);return}}if(y===-1)y=this._mainRule.fontStyle;if(J===0)J=this._mainRule.foreground;if(X===0)X=this._mainRule.background;this._rulesWithParentScopes.push(new Kv(v,b,y,J,X))}},sb=class w{static toBinaryStr(v){return v.toString(2).padStart(32,"0")}static print(v){let b=w.getLanguageId(v),y=w.getTokenType(v),J=w.getFontStyle(v),X=w.getForeground(v),z=w.getBackground(v);console.log({languageId:b,tokenType:y,fontStyle:J,foreground:X,background:z})}static getLanguageId(v){return(v&255)>>>0}static getTokenType(v){return(v&768)>>>8}static containsBalancedBrackets(v){return(v&1024)!==0}static getFontStyle(v){return(v&30720)>>>11}static getForeground(v){return(v&16744448)>>>15}static getBackground(v){return(v&4278190080)>>>24}static set(v,b,y,J,X,z,Z){let Q=w.getLanguageId(v),Y=w.getTokenType(v),K=w.containsBalancedBrackets(v)?1:0,D=w.getFontStyle(v),$=w.getForeground(v),q=w.getBackground(v);if(b!==0)Q=b;if(y!==8)Y=yy(y);if(J!==null)K=J?1:0;if(X!==-1)D=X;if(z!==0)$=z;if(Z!==0)q=Z;return(Q<<0|Y<<8|K<<10|D<<11|$<<15|q<<24)>>>0}};function yy(w){return w}var X9=Symbol("RuleId");function fy(w){return w}function Jy(w){return w}var Qv=class{constructor(w,v){this.languageId=w,this.tokenType=v}},z9=class w{_defaultAttributes;_embeddedLanguagesMatcher;constructor(v,b){this._defaultAttributes=new Qv(v,8),this._embeddedLanguagesMatcher=new Xy(Object.entries(b||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(v){if(v===null)return w._NULL_SCOPE_METADATA;return this._getBasicScopeAttributes.get(v)}static _NULL_SCOPE_METADATA=new Qv(0,0);_getBasicScopeAttributes=new ab((v)=>{let b=this._scopeToLanguage(v),y=this._toStandardTokenType(v);return new Qv(b,y)});_scopeToLanguage(v){return this._embeddedLanguagesMatcher.match(v)||0}_toStandardTokenType(v){let b=v.match(w.STANDARD_TOKEN_TYPE_REGEXP);if(!b)return 8;switch(b[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Xy=class{values;scopesRegExp;constructor(w){if(w.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(w);let v=w.map(([b,y])=>c5(b));v.sort(),v.reverse(),this.scopesRegExp=new RegExp(`^((${v.join(")|(")}))($|\\.)`,"")}}match(w){if(!this.scopesRegExp)return;let v=w.match(this.scopesRegExp);if(!v)return;return this.values.get(v[1])}},Z9={InDebugMode:typeof process<"u"&&!!process.env.VSCODE_TEXTMATE_DEBUG};var Yv=class w{constructor(v,b,y){this.parent=v,this.scopePath=b,this.tokenAttributes=y}static fromExtension(v,b){let y=v,J=v?.scopePath??null;for(let X of b)J=Zv.push(J,X.scopeNames),y=new w(y,J,X.encodedTokenAttributes);return y}static createRoot(v,b){return new w(null,new Zv(null,v),b)}static createRootAndLookUpScopeName(v,b,y){let J=y.getMetadataForScope(v),X=new Zv(null,v),z=y.themeProvider.themeMatch(X),Z=w.mergeAttributes(b,J,z);return new w(null,X,Z)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(v){return w.equals(this,v)}static equals(v,b){do{if(v===b)return!0;if(!v&&!b)return!0;if(!v||!b)return!1;if(v.scopeName!==b.scopeName||v.tokenAttributes!==b.tokenAttributes)return!1;v=v.parent,b=b.parent}while(!0)}static mergeAttributes(v,b,y){let J=-1,X=0,z=0;if(y!==null)J=y.fontStyle,X=y.foregroundId,z=y.backgroundId;return sb.set(v,b.languageId,b.tokenType,null,J,X,z)}pushAttributed(v,b){if(v===null)return this;if(v.indexOf(" ")===-1)return w._pushAttributed(this,v,b);let y=v.split(/ /g),J=this;for(let X of y)J=w._pushAttributed(J,X,b);return J}static _pushAttributed(v,b,y){let J=y.getMetadataForScope(b),X=v.scopePath.push(b),z=y.themeProvider.themeMatch(X),Z=w.mergeAttributes(v.tokenAttributes,J,z);return new w(v,X,Z)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(v){let b=[],y=this;while(y&&y!==v)b.push({encodedTokenAttributes:y.tokenAttributes,scopeNames:y.scopePath.getExtensionIfDefined(y.parent?.scopePath??null)}),y=y.parent;return y===v?b.reverse():void 0}},zy=class w{constructor(v,b,y,J,X,z,Z,Q){this.parent=v,this.ruleId=b,this.beginRuleCapturedEOL=X,this.endRule=z,this.nameScopesList=Z,this.contentNameScopesList=Q,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=y,this._anchorPos=J}_stackElementBrand=void 0;static NULL=new w(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(v){if(v===null)return!1;return w._equals(this,v)}static _equals(v,b){if(v===b)return!0;if(!this._structuralEquals(v,b))return!1;return Yv.equals(v.contentNameScopesList,b.contentNameScopesList)}static _structuralEquals(v,b){do{if(v===b)return!0;if(!v&&!b)return!0;if(!v||!b)return!1;if(v.depth!==b.depth||v.ruleId!==b.ruleId||v.endRule!==b.endRule)return!1;v=v.parent,b=b.parent}while(!0)}clone(){return this}static _reset(v){while(v)v._enterPos=-1,v._anchorPos=-1,v=v.parent}reset(){w._reset(this)}pop(){return this.parent}safePop(){if(this.parent)return this.parent;return this}push(v,b,y,J,X,z,Z){return new w(this,v,b,y,J,X,z,Z)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(v){return v.getRule(this.ruleId)}toString(){let v=[];return this._writeString(v,0),"["+v.join(",")+"]"}_writeString(v,b){if(this.parent)b=this.parent._writeString(v,b);return v[b++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,b}withContentNameScopesList(v){if(this.contentNameScopesList===v)return this;return this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,v)}withEndRule(v){if(this.endRule===v)return this;return new w(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,v,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(v){let b=this;while(b&&b._enterPos===v._enterPos){if(b.ruleId===v.ruleId)return!0;b=b.parent}return!1}toStateStackFrame(){return{ruleId:Jy(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(v,b){let y=Yv.fromExtension(v?.nameScopesList??null,b.nameScopesList);return new w(v,fy(b.ruleId),b.enterPos??-1,b.anchorPos??-1,b.beginRuleCapturedEOL,b.endRule,y,Yv.fromExtension(y,b.contentNameScopesList))}};var Zy=zy.NULL;class Uw extends Error{constructor(w){super(w);this.name="ShikiError"}}function Yy(){return 2147483648}function Ky(){return typeof performance<"u"?performance.now():Date.now()}var $y=(w,v)=>w+(v-w%v)%v;async function qy(w){let v,b,y={};function J(q){b=q,y.HEAPU8=new Uint8Array(q),y.HEAPU32=new Uint32Array(q)}function X(q,d,k){y.HEAPU8.copyWithin(q,d,d+k)}function z(q){try{return v.grow(q-b.byteLength+65535>>>16),J(v.buffer),1}catch{}}function Z(q){let d=y.HEAPU8.length;q=q>>>0;let k=Yy();if(q>k)return!1;for(let F=1;F<=4;F*=2){let O=d*(1+0.2/F);O=Math.min(O,q+100663296);let _=Math.min(k,$y(Math.max(q,O),65536));if(z(_))return!0}return!1}let Q=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Y(q,d,k=1024){let F=d+k,O=d;while(q[O]&&!(O>=F))++O;if(O-d>16&&q.buffer&&Q)return Q.decode(q.subarray(d,O));let _="";while(d<O){let h=q[d++];if(!(h&128)){_+=String.fromCharCode(h);continue}let B=q[d++]&63;if((h&224)===192){_+=String.fromCharCode((h&31)<<6|B);continue}let C=q[d++]&63;if((h&240)===224)h=(h&15)<<12|B<<6|C;else h=(h&7)<<18|B<<12|C<<6|q[d++]&63;if(h<65536)_+=String.fromCharCode(h);else{let I=h-65536;_+=String.fromCharCode(55296|I>>10,56320|I&1023)}}return _}function K(q,d){return q?Y(y.HEAPU8,q,d):""}let D={emscripten_get_now:Ky,emscripten_memcpy_big:X,emscripten_resize_heap:Z,fd_write:()=>0};async function $(){let d=await w({env:D,wasi_snapshot_preview1:D});v=d.memory,J(v.buffer),Object.assign(y,d),y.UTF8ToString=K}return await $(),y}var Dy=Object.defineProperty,Vy=(w,v,b)=>(v in w)?Dy(w,v,{enumerable:!0,configurable:!0,writable:!0,value:b}):w[v]=b,g=(w,v,b)=>Vy(w,typeof v!=="symbol"?v+"":v,b),i=null;function dy(w){throw new Uw(w.UTF8ToString(w.getLastOnigError()))}class Bw{constructor(w){g(this,"utf16Length"),g(this,"utf8Length"),g(this,"utf16Value"),g(this,"utf8Value"),g(this,"utf16OffsetToUtf8"),g(this,"utf8OffsetToUtf16");let v=w.length,b=Bw._utf8ByteLength(w),y=b!==v,J=y?new Uint32Array(v+1):null;if(y)J[v]=b;let X=y?new Uint32Array(b+1):null;if(y)X[b]=v;let z=new Uint8Array(b),Z=0;for(let Q=0;Q<v;Q++){let Y=w.charCodeAt(Q),K=Y,D=!1;if(Y>=55296&&Y<=56319){if(Q+1<v){let $=w.charCodeAt(Q+1);if($>=56320&&$<=57343)K=(Y-55296<<10)+65536|$-56320,D=!0}}if(y){if(J[Q]=Z,D)J[Q+1]=Z;if(K<=127)X[Z+0]=Q;else if(K<=2047)X[Z+0]=Q,X[Z+1]=Q;else if(K<=65535)X[Z+0]=Q,X[Z+1]=Q,X[Z+2]=Q;else X[Z+0]=Q,X[Z+1]=Q,X[Z+2]=Q,X[Z+3]=Q}if(K<=127)z[Z++]=K;else if(K<=2047)z[Z++]=192|(K&1984)>>>6,z[Z++]=128|(K&63)>>>0;else if(K<=65535)z[Z++]=224|(K&61440)>>>12,z[Z++]=128|(K&4032)>>>6,z[Z++]=128|(K&63)>>>0;else z[Z++]=240|(K&1835008)>>>18,z[Z++]=128|(K&258048)>>>12,z[Z++]=128|(K&4032)>>>6,z[Z++]=128|(K&63)>>>0;if(D)Q++}this.utf16Length=v,this.utf8Length=b,this.utf16Value=w,this.utf8Value=z,this.utf16OffsetToUtf8=J,this.utf8OffsetToUtf16=X}static _utf8ByteLength(w){let v=0;for(let b=0,y=w.length;b<y;b++){let J=w.charCodeAt(b),X=J,z=!1;if(J>=55296&&J<=56319){if(b+1<y){let Z=w.charCodeAt(b+1);if(Z>=56320&&Z<=57343)X=(J-55296<<10)+65536|Z-56320,z=!0}}if(X<=127)v+=1;else if(X<=2047)v+=2;else if(X<=65535)v+=3;else v+=4;if(z)b++}return v}createString(w){let v=w.omalloc(this.utf8Length);return w.HEAPU8.set(this.utf8Value,v),v}}var Ew=class w{constructor(v){if(g(this,"id",++w.LAST_ID),g(this,"_onigBinding"),g(this,"content"),g(this,"utf16Length"),g(this,"utf8Length"),g(this,"utf16OffsetToUtf8"),g(this,"utf8OffsetToUtf16"),g(this,"ptr"),!i)throw new Uw("Must invoke loadWasm first.");this._onigBinding=i,this.content=v;let b=new Bw(v);if(this.utf16Length=b.utf16Length,this.utf8Length=b.utf8Length,this.utf16OffsetToUtf8=b.utf16OffsetToUtf8,this.utf8OffsetToUtf16=b.utf8OffsetToUtf16,this.utf8Length<1e4&&!w._sharedPtrInUse){if(!w._sharedPtr)w._sharedPtr=i.omalloc(1e4);w._sharedPtrInUse=!0,i.HEAPU8.set(b.utf8Value,w._sharedPtr),this.ptr=w._sharedPtr}else this.ptr=b.createString(i)}convertUtf8OffsetToUtf16(v){if(this.utf8OffsetToUtf16){if(v<0)return 0;if(v>this.utf8Length)return this.utf16Length;return this.utf8OffsetToUtf16[v]}return v}convertUtf16OffsetToUtf8(v){if(this.utf16OffsetToUtf8){if(v<0)return 0;if(v>this.utf16Length)return this.utf8Length;return this.utf16OffsetToUtf8[v]}return v}dispose(){if(this.ptr===w._sharedPtr)w._sharedPtrInUse=!1;else this._onigBinding.ofree(this.ptr)}};g(Ew,"LAST_ID",0);g(Ew,"_sharedPtr",0);g(Ew,"_sharedPtrInUse",!1);var eb=Ew;class w1{constructor(w){if(g(this,"_onigBinding"),g(this,"_ptr"),!i)throw new Uw("Must invoke loadWasm first.");let v=[],b=[];for(let z=0,Z=w.length;z<Z;z++){let Q=new Bw(w[z]);v[z]=Q.createString(i),b[z]=Q.utf8Length}let y=i.omalloc(4*w.length);i.HEAPU32.set(v,y/4);let J=i.omalloc(4*w.length);i.HEAPU32.set(b,J/4);let X=i.createOnigScanner(y,J,w.length);for(let z=0,Z=w.length;z<Z;z++)i.ofree(v[z]);if(i.ofree(J),i.ofree(y),X===0)dy(i);this._onigBinding=i,this._ptr=X}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(w,v,b){let y=0;if(typeof b==="number")y=b;if(typeof w==="string"){w=new eb(w);let J=this._findNextMatchSync(w,v,!1,y);return w.dispose(),J}return this._findNextMatchSync(w,v,!1,y)}_findNextMatchSync(w,v,b,y){let J=this._onigBinding,X=J.findNextOnigScannerMatch(this._ptr,w.id,w.ptr,w.utf8Length,w.convertUtf16OffsetToUtf8(v),y);if(X===0)return null;let z=J.HEAPU32,Z=X/4,Q=z[Z++],Y=z[Z++],K=[];for(let D=0;D<Y;D++){let $=w.convertUtf8OffsetToUtf16(z[Z++]),q=w.convertUtf8OffsetToUtf16(z[Z++]);K[D]={start:$,end:q,length:q-$}}return{index:Q,captureIndices:K}}}function Hy(w){return typeof w.instantiator==="function"}function Wy(w){return typeof w.default==="function"}function Uy(w){return typeof w.data<"u"}function By(w){return typeof Response<"u"&&w instanceof Response}function Ey(w){return typeof ArrayBuffer<"u"&&(w instanceof ArrayBuffer||ArrayBuffer.isView(w))||typeof Buffer<"u"&&Buffer.isBuffer?.(w)||typeof SharedArrayBuffer<"u"&&w instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&w instanceof Uint32Array}var Ww;function Fy(w){if(Ww)return Ww;async function v(){i=await qy(async(b)=>{let y=w;if(y=await y,typeof y==="function")y=await y(b);if(typeof y==="function")y=await y(b);if(Hy(y))y=await y.instantiator(b);else if(Wy(y))y=await y.default(b);else{if(Uy(y))y=y.data;if(By(y))if(typeof WebAssembly.instantiateStreaming==="function")y=await ky(y)(b);else y=await My(y)(b);else if(Ey(y))y=await qv(y)(b);else if(y instanceof WebAssembly.Module)y=await qv(y)(b);else if("default"in y&&y.default instanceof WebAssembly.Module)y=await qv(y.default)(b)}if("instance"in y)y=y.instance;if("exports"in y)y=y.exports;return y})}return Ww=v(),Ww}function qv(w){return(v)=>WebAssembly.instantiate(w,v)}function ky(w){return(v)=>WebAssembly.instantiateStreaming(w,v)}function My(w){return async(v)=>{let b=await w.arrayBuffer();return WebAssembly.instantiate(b,v)}}async function Dv(w){if(w)await Fy(w);return{createScanner(v){return new w1(v.map((b)=>typeof b==="string"?b:b.source))},createString(v){return new eb(v)}}}function Vv(w){return w.replace(/[- _]+/g,"").toLowerCase()}var v1=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;var b1=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});var Z7=new RegExp(String.raw`(?<noncapturingStart>${v1})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");var hy=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Q7=new RegExp(String.raw`
53
- \\(?: \d+
54
- | c[A-Za-z]
55
- | [gk]<[^>]+>
56
- | [pPu]\{[^\}]+\}
57
- | u[A-Fa-f\d]{4}
58
- | x[A-Fa-f\d]{2}
59
- )
60
- | \((?: \? (?: [:=!>]
61
- | <(?:[=!]|[^>]+>)
62
- | [A-Za-z\-]+:
63
- | \(DEFINE\)
64
- ))?
65
- | (?<qBase>${hy})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
66
- | \\?.
67
- `.replace(/\s+/g,""),"gsu");var t0=String.raw,_y=t0`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Py=t0`\(\?R=(?<rDepth>[^\)]+)\)|${_y}`,y1=t0`\(\?<(?![=!])(?<captureName>[^>]+)>`,B7=t0`${y1}|(?<unnamed>\()(?!\?)`,E7=new RegExp(t0`${y1}|${Py}|\(\?|\\?.`,"gsu");var{fromCodePoint:e,raw:N}=String,Fw={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("[[]]","v")}catch{return!1}return!0})()};Fw.bugFlagVLiteralHyphenIsRange=Fw.unicodeSets?(()=>{try{new RegExp(N`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Fw.bugNestedClassIgnoresNegation=Fw.unicodeSets&&new RegExp("[[^a]]","v").test("a");function Ty(w,v,b){if(!w.has(v))w.set(v,b);return w.get(v)}var R7=new Set([e(304),e(305)]),T7=N`[\p{L}\p{M}\p{N}\p{Pc}]`;var L7=new Map(`C Other
68
- Cc Control cntrl
69
- Cf Format
70
- Cn Unassigned
71
- Co Private_Use
72
- Cs Surrogate
73
- L Letter
74
- LC Cased_Letter
75
- Ll Lowercase_Letter
76
- Lm Modifier_Letter
77
- Lo Other_Letter
78
- Lt Titlecase_Letter
79
- Lu Uppercase_Letter
80
- M Mark Combining_Mark
81
- Mc Spacing_Mark
82
- Me Enclosing_Mark
83
- Mn Nonspacing_Mark
84
- N Number
85
- Nd Decimal_Number digit
86
- Nl Letter_Number
87
- No Other_Number
88
- P Punctuation punct
89
- Pc Connector_Punctuation
90
- Pd Dash_Punctuation
91
- Pe Close_Punctuation
92
- Pf Final_Punctuation
93
- Pi Initial_Punctuation
94
- Po Other_Punctuation
95
- Ps Open_Punctuation
96
- S Symbol
97
- Sc Currency_Symbol
98
- Sk Modifier_Symbol
99
- Sm Math_Symbol
100
- So Other_Symbol
101
- Z Separator
102
- Zl Line_Separator
103
- Zp Paragraph_Separator
104
- Zs Space_Separator
105
- ASCII
106
- ASCII_Hex_Digit AHex
107
- Alphabetic Alpha
108
- Any
109
- Assigned
110
- Bidi_Control Bidi_C
111
- Bidi_Mirrored Bidi_M
112
- Case_Ignorable CI
113
- Cased
114
- Changes_When_Casefolded CWCF
115
- Changes_When_Casemapped CWCM
116
- Changes_When_Lowercased CWL
117
- Changes_When_NFKC_Casefolded CWKCF
118
- Changes_When_Titlecased CWT
119
- Changes_When_Uppercased CWU
120
- Dash
121
- Default_Ignorable_Code_Point DI
122
- Deprecated Dep
123
- Diacritic Dia
124
- Emoji
125
- Emoji_Component EComp
126
- Emoji_Modifier EMod
127
- Emoji_Modifier_Base EBase
128
- Emoji_Presentation EPres
129
- Extended_Pictographic ExtPict
130
- Extender Ext
131
- Grapheme_Base Gr_Base
132
- Grapheme_Extend Gr_Ext
133
- Hex_Digit Hex
134
- IDS_Binary_Operator IDSB
135
- IDS_Trinary_Operator IDST
136
- ID_Continue IDC
137
- ID_Start IDS
138
- Ideographic Ideo
139
- Join_Control Join_C
140
- Logical_Order_Exception LOE
141
- Lowercase Lower
142
- Math
143
- Noncharacter_Code_Point NChar
144
- Pattern_Syntax Pat_Syn
145
- Pattern_White_Space Pat_WS
146
- Quotation_Mark QMark
147
- Radical
148
- Regional_Indicator RI
149
- Sentence_Terminal STerm
150
- Soft_Dotted SD
151
- Terminal_Punctuation Term
152
- Unified_Ideograph UIdeo
153
- Uppercase Upper
154
- Variation_Selector VS
155
- White_Space space
156
- XID_Continue XIDC
157
- XID_Start XIDS`.split(/\s/).map((w)=>[Vv(w),w])),C7=new Map([["s",e(383)],[e(383),"s"]]),j7=new Map([[e(223),e(7838)],[e(107),e(8490)],[e(229),e(8491)],[e(969),e(8486)]]),S7=new Map([d0(453),d0(456),d0(459),d0(498),...dv(8072,8079),...dv(8088,8095),...dv(8104,8111),d0(8124),d0(8140),d0(8188)]),g7=new Map([["alnum",N`[\p{Alpha}\p{Nd}]`],["alpha",N`\p{Alpha}`],["ascii",N`\p{ASCII}`],["blank",N`[\p{Zs}\t]`],["cntrl",N`\p{Cc}`],["digit",N`\p{Nd}`],["graph",N`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",N`\p{Lower}`],["print",N`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",N`[\p{P}\p{S}]`],["space",N`\p{space}`],["upper",N`\p{Upper}`],["word",N`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",N`\p{AHex}`]]);function Ly(w,v){let b=[];for(let y=w;y<=v;y++)b.push(y);return b}function d0(w){let v=e(w);return[v.toLowerCase(),v]}function dv(w,v){return Ly(w,v).map((b)=>d0(b))}var p7=new Map([[9,N`\t`],[10,N`\n`],[11,N`\v`],[12,N`\f`],[13,N`\r`],[8232,N`\u2028`],[8233,N`\u2029`],[65279,N`\uFEFF`]]);var u7=class w extends RegExp{#v=new Map;#w=null;#y;#b=null;#f=null;rawOptions={};get source(){return this.#y||"(?:)"}constructor(v,b,y){let J=!!y?.lazyCompile;if(v instanceof RegExp){if(y)throw Error("Cannot provide options when copying a regexp");let X=v;super(X,b);if(this.#y=X.source,X instanceof w)this.#v=X.#v,this.#b=X.#b,this.#f=X.#f,this.rawOptions=X.rawOptions}else{let X={hiddenCaptures:[],strategy:null,transfers:[],...y};super(J?"":v,b);this.#y=v,this.#v=jy(X.hiddenCaptures,X.transfers),this.#f=X.strategy,this.rawOptions=y??{}}if(!J)this.#w=this}exec(v){if(!this.#w){let{lazyCompile:J,...X}=this.rawOptions;this.#w=new w(this.#y,this.flags,X)}let b=this.global||this.sticky,y=this.lastIndex;if(this.#f==="clip_search"&&b&&y){this.lastIndex=0;let J=this.#J(v.slice(y));if(J)Cy(J,y,v,this.hasIndices),this.lastIndex+=y;return J}return this.#J(v)}#J(v){this.#w.lastIndex=this.lastIndex;let b=super.exec.call(this.#w,v);if(this.lastIndex=this.#w.lastIndex,!b||!this.#v.size)return b;let y=[...b];b.length=1;let J;if(this.hasIndices)J=[...b.indices],b.indices.length=1;let X=[0];for(let z=1;z<y.length;z++){let{hidden:Z,transferTo:Q}=this.#v.get(z)??{};if(Z)X.push(null);else if(X.push(b.length),b.push(y[z]),this.hasIndices)b.indices.push(J[z]);if(Q&&y[z]!==void 0){let Y=X[Q];if(!Y)throw Error(`Invalid capture transfer to "${Y}"`);if(b[Y]=y[z],this.hasIndices)b.indices[Y]=J[z];if(b.groups){if(!this.#b)this.#b=Sy(this.source);let K=this.#b.get(Q);if(K){if(b.groups[K]=y[z],this.hasIndices)b.indices.groups[K]=J[z]}}}}return b}};function Cy(w,v,b,y){if(w.index+=v,w.input=b,y){let J=w.indices;for(let z=0;z<J.length;z++){let Z=J[z];if(Z)J[z]=[Z[0]+v,Z[1]+v]}let X=J.groups;if(X)Object.keys(X).forEach((z)=>{let Z=X[z];if(Z)X[z]=[Z[0]+v,Z[1]+v]})}}function jy(w,v){let b=new Map;for(let y of w)b.set(y,{hidden:!0});for(let[y,J]of v)for(let X of J)Ty(b,X,{}).transferTo=y;return b}function Sy(w){let v=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,b=new Map,y=0,J=0,X;while(X=v.exec(w)){let{0:z,groups:{capture:Z,name:Q}}=X;if(z==="[")y++;else if(!y){if(Z){if(J++,Q)b.set(J,Q)}}else if(z==="]")y--}return b}async function ly(w,v,b){try{return await $v({langs:[w],themes:v,engine:b??Dv(import("./wasm-n3cagcre.js"))})}catch(y){if(y instanceof Error&&y.message.includes("Language"))return await $v({langs:["plaintext"],themes:v,engine:b??Dv(import("./wasm-n3cagcre.js"))});throw y}}var iy=(w,v,b,y={})=>{return ib(w,v,b,y,ly)},J1=ob(iy);function X1({toolName:w}){let{data:v,loading:b,error:y}=j(`/tools/${encodeURIComponent(w)}/source`,[w]);if(b)return f(P,{title:"Source",icon:f(g0,{class:"h-4 w-4"}),children:f("div",{class:"text-muted-foreground text-center py-8",children:"Loading source..."})});if(y||!v?.content)return f(P,{title:"Source",icon:f(g0,{class:"h-4 w-4"}),children:f("div",{class:"text-muted-foreground text-center py-8",children:"Source not available"})});return f(P,{title:"Source",icon:f(g0,{class:"h-4 w-4"}),action:f(dw,{href:`vscode://file/${v.filePath}`,children:"Open in VSCode"}),children:f("div",{class:"overflow-x-auto rounded-md border border-border [&_pre]:!bg-muted/25",children:f(J1,{language:"typescript",theme:"github-light",children:v.content.trim()})})})}function z1({item:w,depth:v=0,defaultExpanded:b=!0,renderActions:y,renderLabel:J,onItemClick:X,iconClassName:z}){let[Z,Q]=R(b),Y=w.children&&w.children.length>0,K=v*16;function D(){if(Y)Q(!Z);X?.(w)}function $(){if(!Y)return f("span",{class:"w-4 mr-1"});return f("span",{class:"w-4 mr-1 flex items-center justify-center",children:Z?f(Iw,{class:"h-4 w-4 text-muted-foreground"}):f(Rw,{class:"h-4 w-4 text-muted-foreground"})})}return f("div",{children:[f("div",{class:"flex items-center py-1 hover:bg-accent rounded cursor-pointer text-sm group",style:{paddingLeft:`${K}px`},onClick:D,children:[$(),w.iconDecorator&&f("span",{class:"flex-shrink-0 mr-1",children:w.iconDecorator}),w.icon&&f("span",{class:u("flex-shrink-0",z),children:w.icon}),f("span",{class:u("ml-2 flex-1 min-w-0",Y&&"font-medium"),children:J?J(w):w.label}),y&&f("span",{class:"ml-2 flex-shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",children:y(w)})]}),Y&&Z&&f("div",{children:w.children?.map((q)=>f(z1,{item:q,depth:v+1,defaultExpanded:b,renderActions:y,renderLabel:J,onItemClick:X,iconClassName:z},q.id))})]})}function n0({items:w,defaultExpanded:v=!0,renderActions:b,renderLabel:y,onItemClick:J,iconClassName:X,class:z}){return f("div",{class:u("space-y-1",z),children:w.map((Z)=>f(z1,{item:Z,defaultExpanded:v,renderActions:b,renderLabel:y,onItemClick:J,iconClassName:X},Z.id))})}var oy={shim:"text-blue-400",binary:"text-green-400","binary-path":"text-cyan-400",symlink:"text-purple-400",config:"text-amber-400",completion:"text-cyan-400",init:"text-pink-400","hook-generated":"text-orange-400",catalog:"text-muted-foreground",install:"text-green-400",source:"text-purple-400"};function py(w){switch(w){case"shim":return f(y0,{class:"h-4 w-4"});case"binary":return f(mw,{class:"h-4 w-4"});case"binary-path":return f(F0,{class:"h-4 w-4"});case"symlink":return f(gw,{class:"h-4 w-4"});case"config":return f(jw,{class:"h-4 w-4"});case"completion":return f(nw,{class:"h-4 w-4"});case"init":return f(y0,{class:"h-4 w-4"});case"hook-generated":return f(y0,{class:"h-4 w-4"});case"catalog":return f(K0,{class:"h-4 w-4"});case"install":return f(K0,{class:"h-4 w-4"});case"source":return f(u0,{class:"h-4 w-4"});default:return f(Y0,{class:"h-4 w-4"})}}function uy(w){let v=w.type==="directory",b=w.children&&w.children.length>0,y=v?"text-amber-300":oy[w.fileType||""]||"text-muted-foreground";if(v)return f("span",{class:y,children:b?f(i0,{class:"h-4 w-4"}):f(ow,{class:"h-4 w-4"})});return f("span",{class:y,children:py(w.fileType)})}function Z1(w){return w.map((v)=>({id:v.path,label:v.name,icon:uy(v),data:v,children:v.children?Z1(v.children):void 0}))}function cy(w){let v=w.data,b=v?.type==="directory";return f("span",{class:"flex items-center",children:[f("span",{children:w.label}),!b&&v?.fileType&&f(V0,{variant:"outline",class:"ml-2 text-xs",children:v.fileType})]})}function Q1({nodes:w}){let v=Z1(w);return f(n0,{items:v,renderLabel:cy})}function N0(w){if(w===0)return"0 B";let v=["B","KB","MB","GB"],b=w,y=0;while(b>=1024&&y<v.length-1)b/=1024,y++;return`${b.toFixed(b>=10?0:1)} ${v[y]}`}function Y1(w){if(w.children)w.children.sort((v,b)=>{if(v.type!==b.type)return v.type==="directory"?-1:1;return v.name.localeCompare(b.name)}),w.children.forEach(Y1)}function K1(w){if(!w?.length)return[];let v=w.map((X)=>X.filePath),b="";if(v.length===1){let X=v[0];if(X){let z=X.split("/").filter(Boolean);if(z.length>=2){if(b="/"+z.slice(0,z.length-2).join("/"),b==="/")b=""}}}else if(v.length>1){let X=v.map((Y)=>Y.split("/").filter(Boolean)),z=Math.min(...X.map((Y)=>Y.length)),Z=[],Q=X[0];if(Q)for(let Y=0;Y<z-1;Y++){let K=Q[Y];if(K&&X.every((D)=>D[Y]===K))Z.push(K);else break}if(Z.length>1)b="/"+Z.slice(0,-1).join("/")}let y=new Map;for(let X of w){let z=X.filePath;if(b&&z.startsWith(b))z=z.substring(b.length);if(!z.startsWith("/"))z="/"+z;let Z=z.split("/").filter(Boolean),Q="";for(let K=0;K<Z.length-1;K++){let D=Z[K];if(!D)continue;let $=Q;Q=Q?Q+"/"+D:"/"+D;let q=y.get(Q);if(!q){let d={name:D,path:b+Q,type:"directory",children:[]};y.set(Q,d);let k=$?y.get($):void 0;if(k?.children)k.children.push(d)}else if(q.type==="file")q.type="directory",q.children=[]}let Y=Z[Z.length-1];if(Y){let K=Q?Q+"/"+Y:"/"+Y,D={name:Y,path:b+K,type:"file",fileType:X.fileType,lastOperation:X.lastOperation};y.set(K,D);let $=Q?y.get(Q):void 0;if($?.children)$.children.push(D)}}let J=[];for(let[X,z]of y){let Z=X.substring(0,X.lastIndexOf("/"));if(!Z||!y.has(Z))J.push(z)}return J.forEach(Y1),J.sort((X,z)=>{if(X.type!==z.type)return X.type==="directory"?-1:1;return X.name.localeCompare(z.name)}),J}function ay(w){let v=[{installationMethod:w.installationMethod,installParams:w.installParams}];for(let b of w.platformConfigs??[])v.push({installationMethod:b.installationMethod??w.installationMethod,installParams:b.installParams??w.installParams});return v}function ty(w,v){switch(w){case"github-release":if(v.repo)return{value:v.repo,url:`https://github.com/${v.repo}`};break;case"cargo":if(v.crate)return{value:v.crate,url:`https://crates.io/crates/${v.crate}`};break;case"brew":if(v.formula)return{value:v.formula,url:`https://formulae.brew.sh/formula/${v.formula}`};break;case"zsh-plugin":if(v.repo)return{value:v.repo,url:`https://github.com/${v.repo}`};break;case"curl-script":if(v.url)return{value:v.url,url:v.url};break;case"curl-tar":if(v.url)return{value:v.url,url:v.url};break;default:return null}return null}function Hv(w){return typeof w==="string"?w:w.name}function $1(w){let v=new Map;for(let b of w){let y=b.config.binaries??[];for(let J of y){let X=Hv(J);v.set(X,b.config.name)}}return v}function q1(w,v){let b=new Set(v);return w.filter((y)=>{return(y.config.dependencies??[]).some((X)=>b.has(X))})}function D1(w){if(w.installParams.repo)return w.installParams.repo;for(let v of w.platformConfigs??[])if(v.installParams?.repo)return v.installParams.repo;return null}function V1(w){for(let v of ay(w)){let b=ty(v.installationMethod,v.installParams);if(b)return b}return null}function ny(w){let v=V1(w);if(!v)return null;return f("div",{class:"flex items-center gap-2",children:[f("span",{class:"text-sm text-muted-foreground w-24",children:"Source"}),v.url?f("a",{href:v.url,target:"_blank",rel:"noopener noreferrer",class:"text-sm text-blue-500 hover:underline break-all",children:v.value}):f("span",{class:"text-sm font-medium break-all",children:v.value})]})}function sy({entry:w}){let v=w.platforms.join(", "),b=w.architectures?` (${w.architectures.join(", ")})`:"";return f("div",{class:"border border-border rounded-md p-3 space-y-2",children:[f("div",{class:"flex items-center gap-2",children:f("span",{class:"text-sm font-medium text-foreground",children:[v,b]})}),f("div",{class:"pl-2 space-y-1.5 text-sm",children:[w.installationMethod&&f("div",{class:"flex items-center gap-2",children:[f("span",{class:"text-muted-foreground",children:"Method:"}),f(a0,{method:w.installationMethod,ghCli:w.installParams?.ghCli})]}),w.installParams?.repo&&f("div",{class:"flex items-center gap-2",children:[f("span",{class:"text-muted-foreground",children:"Repo:"}),f("a",{href:`https://github.com/${w.installParams.repo}`,target:"_blank",rel:"noopener noreferrer",class:"text-blue-500 hover:underline",children:w.installParams.repo})]}),w.installParams?.formula&&f("div",{class:"flex items-center gap-2",children:[f("span",{class:"text-muted-foreground",children:"Formula:"}),f("span",{class:"font-mono",children:w.installParams.formula})]}),w.installParams?.crate&&f("div",{class:"flex items-center gap-2",children:[f("span",{class:"text-muted-foreground",children:"Crate:"}),f("span",{class:"font-mono",children:w.installParams.crate})]}),w.installParams?.url&&f("div",{class:"flex items-center gap-2",children:[f("span",{class:"text-muted-foreground",children:"URL:"}),f("span",{class:"font-mono text-xs break-all",children:w.installParams.url})]}),w.binaries&&w.binaries.length>0&&f("div",{class:"flex items-start gap-2",children:[f("span",{class:"text-muted-foreground",children:"Binaries:"}),f("span",{class:"font-mono",children:w.binaries.map((y)=>typeof y==="string"?y:y.name).join(", ")})]}),w.symlinks&&w.symlinks.length>0&&f("div",{class:"flex flex-col gap-1",children:[f("span",{class:"text-muted-foreground",children:"Symlinks:"}),f("div",{class:"pl-2",children:w.symlinks.map((y,J)=>f("div",{class:"font-mono text-xs",children:[y.source," → ",y.target]},J))})]})]})]})}function d1({params:w}){let v=decodeURIComponent(w.name),{data:b,loading:y}=j("/tools",[v]),{data:J,loading:X}=j(`/tools/${encodeURIComponent(v)}/history`,[v]),[z,Z]=R(!1),[Q,Y]=R(null),[K,D]=R(null),[$,q]=R(!1),[d,k]=R(null),[F,O]=R(!1),[_,h]=R(null),B=b?.find((A)=>A.config.name===v)||null,C=y||X,I=a(()=>$1(b??[]),[b]),o=a(()=>(B?.config.binaries??[]).map(Hv),[B]),U=a(()=>q1(b??[],o),[b,o]),M=Z0(async(A)=>{Z(!0),Y(null),D(null);try{let T=await $w(`/tools/${encodeURIComponent(v)}/install`,{force:A});if(T.installed){let c=T.alreadyInstalled?`Already installed (${T.version})`:`Installed ${T.version}`;D(c),setTimeout(()=>window.location.reload(),1500)}else Y(T.error??"Installation failed")}catch(T){Y(T instanceof Error?T.message:"Installation failed")}finally{Z(!1)}},[v]),s=Z0(async()=>{q(!0),k(null);try{let A=await $w(`/tools/${encodeURIComponent(v)}/check-update`,{});k(A)}catch(A){k({hasUpdate:!1,currentVersion:"unknown",latestVersion:"unknown",supported:!1,error:A instanceof Error?A.message:"Check failed"})}finally{q(!1)}},[v]),v0=Z0(async()=>{O(!0),h(null);try{let A=await $w(`/tools/${encodeURIComponent(v)}/update`,{});if(h(A),A.updated)setTimeout(()=>window.location.reload(),1500)}catch(A){h({updated:!1,supported:!1,error:A instanceof Error?A.message:"Update failed"})}finally{O(!1)}},[v]);if(C)return f("div",{class:"flex items-center justify-center h-64",children:f("div",{class:"text-muted-foreground",children:"Loading..."})});if(!B)return f("div",{class:"text-center py-8",children:[f("div",{class:"text-muted-foreground mb-4",children:"Tool not found"}),f(w0,{variant:"link",asChild:!0,children:f("a",{href:"/",children:"← Back to Home"})})]});let b0=K1(B.files||[]),f0=D1(B.config);return f("div",{class:"space-y-4",children:[f("div",{class:"flex items-center justify-between",children:[f("div",{class:"flex items-center gap-4",children:[f("h1",{class:"text-2xl font-bold",children:B.config.name}),f(Eb,{status:B.runtime.status})]}),f("div",{class:"flex items-center gap-2",children:B.runtime.status==="installed"?f(J0,{children:[f(w0,{variant:"outline",size:"sm",onClick:s,disabled:$||z||F,children:[f(E0,{class:`h-4 w-4 ${$?"animate-spin":""}`}),$?"Checking...":"Check for updates"]}),f(w0,{variant:"outline",size:"sm",onClick:v0,disabled:F||z||$,children:[f(Tw,{class:`h-4 w-4 ${F?"animate-spin":""}`}),F?"Updating...":"Update"]}),f(w0,{variant:"outline",size:"sm",onClick:()=>M(!0),disabled:z||F||$,children:[f(tw,{class:`h-4 w-4 ${z?"animate-spin":""}`}),z?"Installing...":"Re-install"]})]}):f(w0,{variant:"default",size:"sm",onClick:()=>M(!1),disabled:z,children:[f(m0,{class:"h-4 w-4"}),z?"Installing...":"Install"]})})]}),Q&&f("div",{class:"bg-destructive/10 border border-destructive/20 text-destructive px-4 py-2 rounded-md text-sm",children:Q}),K&&f("div",{class:"bg-green-500/10 border border-green-500/20 text-green-600 dark:text-green-400 px-4 py-2 rounded-md text-sm",children:K}),d&&!d.error&&f("div",{class:`px-4 py-2 rounded-md text-sm ${d.hasUpdate?"bg-yellow-500/10 border border-yellow-500/20 text-yellow-600 dark:text-yellow-400":"bg-green-500/10 border border-green-500/20 text-green-600 dark:text-green-400"}`,children:d.hasUpdate?`Update available: ${d.currentVersion} → ${d.latestVersion}`:`Up to date (${d.currentVersion})`}),d?.error&&f("div",{class:"bg-destructive/10 border border-destructive/20 text-destructive px-4 py-2 rounded-md text-sm",children:d.error}),_&&!_.error&&_.updated&&f("div",{class:"bg-green-500/10 border border-green-500/20 text-green-600 dark:text-green-400 px-4 py-2 rounded-md text-sm",children:`Updated: ${_.oldVersion} → ${_.newVersion}`}),_?.error&&f("div",{class:"bg-destructive/10 border border-destructive/20 text-destructive px-4 py-2 rounded-md text-sm",children:_.error}),f("div",{class:`grid gap-4 ${B.usage.totalCount>0?"lg:grid-cols-2":""}`,children:[f(P,{title:"Overview",icon:f(cw,{class:"h-4 w-4"}),children:f("div",{class:"space-y-3",children:[f("div",{class:"flex items-center gap-2",children:[f("span",{class:"text-sm text-muted-foreground w-24",children:"Method"}),f(a0,{method:B.config.installationMethod,ghCli:B.config.installParams.ghCli})]}),ny(B.config),f("div",{class:"flex items-center gap-2",children:[f("span",{class:"text-sm text-muted-foreground w-24",children:"Version"}),f("span",{class:"font-medium",children:B.runtime.installedVersion||B.config.version||"Unknown"})]}),f("div",{class:"flex items-center gap-2",children:[f("span",{class:"text-sm text-muted-foreground w-24",children:"Installed"}),f("span",{class:"font-medium",children:B.runtime.installedAt?new Date(B.runtime.installedAt).toLocaleDateString():"Not installed"})]}),B.binaryDiskSize>0&&f("div",{class:"flex items-center gap-2",children:[f("span",{class:"text-sm text-muted-foreground w-24",children:"Binary Size"}),f("span",{class:"font-medium",children:N0(B.binaryDiskSize)})]}),B.config.hostname&&f("div",{class:"flex items-center gap-2",children:[f("span",{class:"text-sm text-muted-foreground w-24",children:"Hostname"}),f("code",{class:"text-sm font-mono bg-muted px-1.5 py-0.5 rounded",children:B.config.hostname})]}),B.config.dependencies&&B.config.dependencies.length>0&&f("div",{class:"flex items-start gap-2",children:[f("span",{class:"text-sm text-muted-foreground w-24",children:"Depends on"}),f("div",{class:"flex flex-wrap gap-2",children:B.config.dependencies.map((A,T)=>{let c=I.get(A);return f("a",{href:`/tools/${encodeURIComponent(c??A)}`,class:"text-sm text-blue-500 hover:underline",children:c??A},T)})})]}),U.length>0&&f("div",{class:"flex items-start gap-2",children:[f("span",{class:"text-sm text-muted-foreground w-24",children:"Required by"}),f("div",{class:"flex flex-wrap gap-2",children:U.map((A,T)=>f("a",{href:`/tools/${encodeURIComponent(A.config.name)}`,class:"text-sm text-blue-500 hover:underline",children:A.config.name},T))})]})]})}),B.usage.totalCount>0&&f(P,{title:"Usage",icon:f(F0,{class:"h-4 w-4"}),children:f("div",{class:"space-y-3",children:[f("div",{class:"flex items-center gap-2",children:[f("span",{class:"text-sm text-muted-foreground w-24",children:"Total Runs"}),f("span",{class:"font-medium",children:B.usage.totalCount.toLocaleString()})]}),f("div",{class:"space-y-2",children:B.usage.binaries.map((A)=>f("div",{class:"rounded-md border border-border p-2",children:[f("div",{class:"flex items-center justify-between gap-2",children:[f("code",{class:"text-xs font-mono bg-muted px-1.5 py-0.5 rounded",children:A.binaryName}),f("span",{class:"text-sm font-medium",children:[A.count.toLocaleString()," runs"]})]}),A.lastUsedAt&&f("div",{class:"mt-1 text-xs text-muted-foreground",children:["Last used ",new Date(A.lastUsedAt).toLocaleString()]})]},A.binaryName))})]})})]}),f(X1,{toolName:B.config.name}),B.config.platformConfigs&&B.config.platformConfigs.length>0&&f(P,{title:"Platform Configurations",icon:f(aw,{class:"h-4 w-4"}),children:f("div",{class:"space-y-3",children:B.config.platformConfigs.map((A,T)=>f(sy,{entry:A},T))})}),B.runtime.status==="installed"&&f(P,{title:"Files",icon:f(Y0,{class:"h-4 w-4"}),children:(B.files?.length||0)>0?f(Q1,{nodes:b0}):f("div",{class:"text-muted-foreground text-center py-4",children:"No files tracked"})}),B.runtime.status==="installed"&&f(P,{title:"History",icon:f(p0,{class:"h-4 w-4"}),children:f(Fb,{entries:J?.entries??[],installedAt:J?.installedAt??null,dotfilesDir:J?.dotfilesDir??""})}),f0&&f(Bb,{toolName:B.config.name,repo:f0})]})}function ey({source:w}){if(w==="git")return f(_0,{class:"h-3 w-3 text-green-500",title:"From git commit date"});return f(pw,{class:"h-3 w-3 text-amber-500",title:"From file modification time"})}function H1(){let{data:w,loading:v}=j("/recent-tools"),b=w?.tools||[];return f(P,{title:"Recently Added",icon:f(S0,{class:"h-4 w-4 text-muted-foreground"}),class:"h-full",contentClass:"flex-1 overflow-auto",children:v?f("div",{class:"text-muted-foreground text-sm",children:"Loading..."}):b.length===0?f("div",{class:"text-muted-foreground text-sm text-center py-4",children:"No tools added yet"}):f("div",{class:"space-y-0",children:b.map((y)=>f("a",{href:`/tools/${encodeURIComponent(y.name)}`,class:"flex items-center gap-2 py-1 rounded hover:bg-accent cursor-pointer text-sm group",children:[f(y0,{class:"h-4 w-4 text-muted-foreground group-hover:text-foreground transition-colors flex-shrink-0"}),f("span",{class:"font-medium truncate text-sm flex-1 min-w-0",children:y.name}),f("span",{class:"flex items-center gap-1 text-xs text-muted-foreground flex-shrink-0",children:[f(ey,{source:y.timestampSource}),y.relativeTime]})]},y.configFilePath))})})}function s0({value:w,label:v,color:b="text-foreground"}){return f(P0,{class:"text-center py-4",children:f(x0,{class:"space-y-1",children:[f("div",{class:u("text-3xl font-bold",b),children:w}),f("div",{class:"text-muted-foreground text-sm",children:v})]})})}function W1(w,v,b,y,J,X){return w.map((z)=>{if(z.type==="directory")return{id:z.path,label:z.name,icon:f(i0,{class:"h-4 w-4 text-amber-300"}),children:z.children?W1(z.children,v,b,y,J,X):[]};let Z=z.toolName?v.get(z.toolName):void 0,Q=Z==="installed"?"text-green-400":Z==="error"?"text-red-400":"text-blue-400",Y=w2(Z);return{id:z.path,label:z.name,icon:f(y0,{class:`h-4 w-4 ${Q}`}),iconDecorator:f("span",{class:`inline-block w-2 h-2 rounded-full ${Y}`}),data:{toolName:z.toolName,isFile:!0,installMethod:z.toolName?b.get(z.toolName):void 0,ghCli:z.toolName?y.get(z.toolName):void 0,fileCount:z.toolName?J.get(z.toolName):void 0,status:Z,binaryDiskSize:z.toolName?X.get(z.toolName):void 0}}})}function w2(w){switch(w){case"installed":return"bg-green-500";case"error":return"bg-red-500";default:return"bg-gray-300"}}function v2(w){if(w.data?.isFile&&w.label.endsWith(".tool.ts")){let v=w.label.replace(/\.tool\.ts$/,""),b=w.data.fileCount??0,y=w.data.binaryDiskSize??0;return f("span",{class:"flex items-center justify-between flex-1",children:[f("span",{children:[v,f("span",{class:"text-gray-400",children:".tool.ts"})]}),f("span",{class:"flex items-center gap-2",children:[w.data.installMethod&&f(a0,{method:w.data.installMethod,ghCli:w.data.ghCli}),f("span",{class:"text-xs text-muted-foreground",children:[b," files"]}),y>0&&f("span",{class:"text-xs font-bold text-orange-400",children:N0(y)})]})]})}return w.label}function b2(w){if(w.data?.toolName)window.location.href=`/tools/${encodeURIComponent(w.data.toolName)}`}function U1({tools:w}){let{data:v,loading:b}=j("/tool-configs-tree"),y=new Map,J=new Map,X=new Map,z=new Map,Z=new Map;for(let Y of w)y.set(Y.config.name,Y.runtime.status),J.set(Y.config.name,Y.config.installationMethod),X.set(Y.config.name,Y.config.installParams.ghCli??!1),z.set(Y.config.name,Y.files.length),Z.set(Y.config.name,Y.binaryDiskSize);if(b)return f(P,{title:"Tool Files",icon:f(o0,{class:"h-4 w-4"}),children:f("div",{class:"text-muted-foreground text-sm",children:"Loading..."})});let Q=v?W1(v.entries,y,J,X,z,Z):[];if(Q.length===0)return f(P,{title:"Tool Files",icon:f(o0,{class:"h-4 w-4"}),children:f("div",{class:"text-muted-foreground text-sm",children:"No tool files found"})});return f(P,{title:"Tool Files",icon:f(o0,{class:"h-4 w-4"}),children:f(n0,{items:Q,defaultExpanded:!0,onItemClick:b2,renderLabel:v2,iconClassName:"mr-1"})})}function y2(w){let b=Date.now()-w,y=Math.floor(b/1000);if(y<60)return"just now";let J=Math.floor(y/60);if(J<60)return`${J} minute${J===1?"":"s"} ago`;let X=Math.floor(J/60);if(X<24)return`${X} hour${X===1?"":"s"} ago`;let z=Math.floor(X/24);if(z<30)return`${z} day${z===1?"":"s"} ago`;let Z=Math.floor(z/30);return`${Z} month${Z===1?"":"s"} ago`}function f2(w){return w.usage.binaries.reduce((v,b)=>{if(!b.lastUsedAt)return v;let y=Date.parse(b.lastUsedAt);if(Number.isNaN(y))return v;return Math.max(v,y)},0)}function J2(w){return w.map((v)=>({name:v.config.name,count:v.usage.totalCount,lastUsedAt:f2(v)})).filter((v)=>v.count>0)}function B1({title:w,icon:v,items:b,secondary:y,emptyText:J}){return f(P,{title:w,icon:v,class:"h-full",contentClass:"flex-1 overflow-auto",children:b.length===0?f("div",{class:"text-muted-foreground text-sm text-center py-4",children:J}):f("div",{class:"space-y-0",children:b.map((X)=>f("a",{href:`/tools/${encodeURIComponent(X.name)}`,class:"flex items-center gap-2 py-1 rounded hover:bg-accent cursor-pointer text-sm group",children:[f("span",{class:"font-medium truncate text-sm flex-1 min-w-0",children:X.name}),f("span",{class:"text-xs text-muted-foreground flex-shrink-0",children:y(X)})]},X.name))})})}function E1(){let{data:w,loading:v}=j("/tools"),b=w||[],y=b.reduce((Y,K)=>Y+(K.files?.length||0),0),J=b.filter((Y)=>Y.runtime.status==="installed").length,X=b.reduce((Y,K)=>Y+(K.binaryDiskSize||0),0),z=J2(b),Z=z.toSorted((Y,K)=>K.count-Y.count||K.lastUsedAt-Y.lastUsedAt).slice(0,10),Q=z.toSorted((Y,K)=>K.lastUsedAt-Y.lastUsedAt||K.count-Y.count).slice(0,10);if(v)return f("div",{class:"flex items-center justify-center h-64",children:f("div",{class:"text-muted-foreground",children:"Loading..."})});return f("div",{class:"space-y-4",children:[f("div",{class:"grid grid-cols-4 gap-4",children:[f(s0,{value:b.length,label:"Total Tools",color:"text-blue-400"}),f(s0,{value:J,label:"Installed",color:"text-green-400"}),f(s0,{value:y,label:"Files Tracked",color:"text-purple-400"}),f(s0,{value:N0(X),label:"Binary Size",color:"text-orange-400"})]}),f("div",{class:"grid gap-4 lg:grid-cols-3",children:[f(H1,{}),f(B1,{title:"Most Recently Used",icon:f(p0,{class:"h-4 w-4 text-muted-foreground"}),items:Q,secondary:(Y)=>y2(Y.lastUsedAt),emptyText:"No usage recorded yet"}),f(B1,{title:"Most Used",icon:f(F0,{class:"h-4 w-4 text-muted-foreground"}),items:Z,secondary:(Y)=>`${Y.count.toLocaleString()} runs`,emptyText:"No usage recorded yet"})]}),f("div",{children:f(U1,{tools:b})}),b.length===0&&f("div",{class:"text-center text-muted-foreground py-8",children:"No tools configured"})]})}function F1(){return f(U0,{children:f("div",{class:"min-h-screen bg-background text-foreground",children:[f(Yb,{}),f("main",{class:"max-w-7xl mx-auto px-4 py-6",children:f(Qw,{children:[f(B0,{path:"/",component:E1}),f(B0,{path:"/tools/:name",component:d1}),f(B0,{path:"/health",component:qb}),f(B0,{path:"/settings",component:Vb}),f(B0,{default:!0,component:Db})]})}),f(Sv,{})]})})}if(typeof window<"u"){let w=document.getElementById("app");if(w)Yw(f(F1,{}),w)}
158
-
159
- //# debugId=81CDE4CA55AA871364756E2164756E21